ontotext-yasgui-web-component 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/cjs/index-c487dc05.js +1152 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/ontotext-yasgui-web-component.cjs.js +19 -0
- package/dist/cjs/ontotext-yasgui.cjs.entry.js +391 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.css +2361 -0
- package/dist/collection/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.js +152 -0
- package/dist/collection/components/yasgui/yasgui-script.js +4 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/js/main.js +8 -0
- package/dist/collection/models/ontotext-yasgui.js +41 -0
- package/dist/collection/models/yasgui-configuration.js +11 -0
- package/dist/collection/pages/default-view/main.js +8 -0
- package/dist/collection/pages/view-configurations/main.js +31 -0
- package/dist/collection/pages/view-modes/main.js +18 -0
- package/dist/collection/services/yasgui/configuration/configurator.js +1 -0
- package/dist/collection/services/yasgui/configuration/yasgui-configuration-builder.js +28 -0
- package/dist/collection/services/yasgui/configuration/yasgui-configurator.js +45 -0
- package/dist/collection/services/yasgui/configuration/yasqe-configurator.js +17 -0
- package/dist/collection/services/yasgui/configuration/yasr-configurator.js +12 -0
- package/dist/collection/services/yasgui/yasgui-builder.js +26 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.js +2 -0
- package/dist/components/ontotext-yasgui.d.ts +11 -0
- package/dist/components/ontotext-yasgui.js +407 -0
- package/dist/esm/index-5e3f8118.js +1124 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/ontotext-yasgui-web-component.js +17 -0
- package/dist/esm/ontotext-yasgui.entry.js +387 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/ontotext-yasgui-web-component/index.esm.js +0 -0
- package/dist/ontotext-yasgui-web-component/ontotext-yasgui-web-component.esm.js +1 -0
- package/dist/ontotext-yasgui-web-component/p-498af5d3.js +2 -0
- package/dist/ontotext-yasgui-web-component/p-88daf135.entry.js +2 -0
- package/dist/types/components/ontotext-yasgui-web-component/ontotext-yasgui-web-component.d.ts +21 -0
- package/dist/types/components.d.ts +46 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/ontotext-yasgui.d.ts +17 -0
- package/dist/types/models/yasgui-configuration.d.ts +40 -0
- package/dist/types/services/yasgui/configuration/configurator.d.ts +15 -0
- package/dist/types/services/yasgui/configuration/yasgui-configuration-builder.d.ts +18 -0
- package/dist/types/services/yasgui/configuration/yasgui-configurator.d.ts +14 -0
- package/dist/types/services/yasgui/configuration/yasqe-configurator.d.ts +8 -0
- package/dist/types/services/yasgui/configuration/yasr-configurator.d.ts +8 -0
- package/dist/types/services/yasgui/yasgui-builder.d.ts +20 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +41 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./p-498af5d3.js";
|
|
2
|
+
/*! For license information please see yasgui.min.js.LICENSE.txt */var e,t;e=window,t=function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)n.d(e,i,function(r){return t[r]}.bind(null,i));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="/",n(n.s=174)}([function(t,r,n){n.d(r,"a",(function(){return u})),n.d(r,"d",(function(){return l})),n.d(r,"c",(function(){return c})),n.d(r,"f",(function(){return f})),n.d(r,"b",(function(){return h})),n.d(r,"g",(function(){return p})),n.d(r,"e",(function(){return d}));var e=n(4),i=n.n(e),o=n(5),s=n.n(o),a=n(106),u=function(){function t(r){i()(this,t),this.namespace=r}return s()(t,[{key:"set",value:function(t,r,n,e){if(a.enabled&&(this.removeExpiredKeys(),t&&void 0!==r)){r.documentElement&&(r=(new XMLSerializer).serializeToString(r.documentElement));try{a.set(t,{namespace:this.namespace,val:r,exp:n,time:(new Date).getTime()/1e3})}catch(t){if(t instanceof Error){var i=t;if(i.quotaExceeded=function(t){var r=!1;if(t)if(t.code)switch(t.code){case 22:r=!0;break;case 1014:"NS_ERROR_DOM_QUOTA_REACHED"===t.name&&(r=!0)}else-2147024882===t.number&&(r=!0);return r}(t),!i.quotaExceeded||!e)throw i;e(t)}throw t}}}},{key:"remove",value:function(t){a.enabled&&t&&a.remove(t)}},{key:"removeExpiredKeys",value:function(){var t=this;a.enabled&&a.each((function(r,n){r&&r.exp&&(new Date).getTime()/1e3-r.time>r.exp&&t.remove(n)}))}},{key:"removeAll",value:function(){}},{key:"removeNamespace",value:function(){var t=this;a.each((function(r,n){r.namespace&&r.namespace===t.namespace&&t.remove(n)}))}},{key:"get",value:function(t){if(a.enabled&&t&&(this.removeExpiredKeys(),t)){var r=a.get(t);if(!r)return;return r.val}}}]),t}();function l(t){if(t&&0==t.trim().indexOf("<svg")){var r=(new DOMParser).parseFromString(t,"text/xml").documentElement;r.setAttribute("aria-hidden","true");var n=document.createElement("div");return n.className="svgImg",n.appendChild(r),n}throw new Error("No svg string given. Cannot draw")}function c(t){return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(t.width," ").concat(t.height,'" aria-hidden="true"><path fill="currentColor" d="').concat(t.svgPathData,'"></path></svg>')}function f(t,r){if(t)return t.classList?t.classList.contains(r):!!t.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function h(t){if(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];for(var i=0,o=n;i<o.length;i++){var s=o[i];t.classList?t.classList.add(s):f(t,s)||(t.className+=" "+s)}}}function p(t,r){if(t)if(t.classList)t.classList.remove(r);else if(f(t,r)){var n=new RegExp("(\\s|^)"+r+"(\\s|$)");t.className=t.className.replace(n," ")}}function d(t,r){return"function"==typeof t?t(r):t}},function(t,r){r.a=Array.isArray},function(t,r){r.a=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},function(t,r,n){var e=n(63),i="object"==typeof self&&self&&self.Object===Object&&self,o=e.a||i||Function("return this")();r.a=o},function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}},function(t){function r(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}t.exports=function(t,n,e){return n&&r(t.prototype,n),e&&r(t,e),t}},function(t,r){r.a=function(t){return null!=t&&"object"==typeof t}},function(t){t.exports=function(){var t=navigator.userAgent,r=navigator.platform,n=/gecko\/\d/i.test(t),e=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=e||i||o,a=s&&(e?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(t),l=u&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),d=/PhantomJS/.test(t),v=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),E=/Android/.test(t),b=v||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),m=v||/Mac/.test(r),g=/\bCrOS\b/.test(t),y=/win/i.test(r),x=f&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(f=!1,u=!0);var T=m&&(l||f&&(null==x||x<12.11)),I=n||s&&a>=9;function N(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var A,S=function(t,r){var n=t.className,e=N(r).exec(n);if(e){var i=n.slice(e.index+e[0].length);t.className=n.slice(0,e.index)+(i?e[1]+i:"")}};function L(t){for(var r=t.childNodes.length;r>0;--r)t.removeChild(t.firstChild);return t}function C(t,r){return L(t).appendChild(r)}function R(t,r,n,e){var i=document.createElement(t);if(n&&(i.className=n),e&&(i.style.cssText=e),"string"==typeof r)i.appendChild(document.createTextNode(r));else if(r)for(var o=0;o<r.length;++o)i.appendChild(r[o]);return i}function w(t,r,n,e){var i=R(t,r,n,e);return i.setAttribute("role","presentation"),i}function O(t,r){if(3==r.nodeType&&(r=r.parentNode),t.contains)return t.contains(r);do{if(11==r.nodeType&&(r=r.host),r==t)return!0}while(r=r.parentNode)}function _(){var t;try{t=document.activeElement}catch(r){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function k(t,r){var n=t.className;N(r).test(n)||(t.className+=(n?" ":"")+r)}function P(t,r){for(var n=t.split(" "),e=0;e<n.length;e++)n[e]&&!N(n[e]).test(r)&&(r+=" "+n[e]);return r}A=document.createRange?function(t,r,n,e){var i=document.createRange();return i.setEnd(e||t,n),i.setStart(t,r),i}:function(t,r,n){var e=document.body.createTextRange();try{e.moveToElementText(t.parentNode)}catch(t){return e}return e.collapse(!0),e.moveEnd("character",n),e.moveStart("character",r),e};var D=function(t){t.select()};function M(t){var r=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,r)}}function j(t,r,n){for(var e in r||(r={}),t)!t.hasOwnProperty(e)||!1===n&&r.hasOwnProperty(e)||(r[e]=t[e]);return r}function G(t,r,n,e,i){null==r&&-1==(r=t.search(/[^\s\u00a0]/))&&(r=t.length);for(var o=e||0,s=i||0;;){var a=t.indexOf("\t",o);if(a<0||a>=r)return s+(r-o);s+=a-o,s+=n-s%n,o=a+1}}v?D=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(D=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function U(t,r){for(var n=0;n<t.length;++n)if(t[n]==r)return n;return-1}F.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},F.prototype.set=function(t,r){this.f=r;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var B={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},q={origin:"*mouse"},H={origin:"+move"};function z(t,r,n){for(var e=0,i=0;;){var o=t.indexOf("\t",e);-1==o&&(o=t.length);var s=o-e;if(o==t.length||i+s>=r)return e+Math.min(s,r-i);if(i+=o-e,e=o+1,(i+=n-i%n)>=r)return e}}var $=[""];function W(t){for(;$.length<=t;)$.push(Y($)+" ");return $[t]}function Y(t){return t[t.length-1]}function X(t,r){for(var n=[],e=0;e<t.length;e++)n[e]=r(t[e],e);return n}function Z(){}function Q(t,r){var n;return Object.create?n=Object.create(t):(Z.prototype=t,n=new Z),r&&j(r,n),n}var K=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||K.test(t))}function tt(t,r){return r?!!(r.source.indexOf("\\w")>-1&&J(t))||r.test(t):J(t)}function rt(t){for(var r in t)if(t.hasOwnProperty(r)&&t[r])return!1;return!0}var nt=/[\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 et(t){return t.charCodeAt(0)>=768&&nt.test(t)}function it(t,r,n){for(;(n<0?r>0:r<t.length)&&et(t.charAt(r));)r+=n;return r}function ot(t,r,n){for(var e=r>n?-1:1;;){if(r==n)return r;var i=(r+n)/2,o=e<0?Math.ceil(i):Math.floor(i);if(o==r)return t(o)?r:n;t(o)?n=o:r=o+e}}var st=null;function at(t,r,n){var e;st=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<r&&o.to>r)return i;o.to==r&&(o.from!=o.to&&"before"==n?e=i:st=i),o.from==r&&(o.from!=o.to&&"before"!=n?e=i:st=i)}return null!=e?e:st}var ut=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,n=/[LRr]/,e=/[Lb1n]/,i=/[1n]/;function o(t,r,n){this.level=t,this.from=r,this.to=n}return function(s,a){var u="ltr"==a?"L":"R";if(0==s.length||"ltr"==a&&!t.test(s))return!1;for(var l,c=s.length,f=[],h=0;h<c;++h)f.push((l=s.charCodeAt(h))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var p=0,d=u;p<c;++p){var v=f[p];"m"==v?f[p]=d:d=v}for(var E=0,b=u;E<c;++E){var m=f[E];"1"==m&&"r"==b?f[E]="n":n.test(m)&&(b=m,"r"==m&&(f[E]="R"))}for(var g=1,y=f[0];g<c-1;++g){var x=f[g];"+"==x&&"1"==y&&"1"==f[g+1]?f[g]="1":","!=x||y!=f[g+1]||"1"!=y&&"n"!=y||(f[g]=y),y=x}for(var T=0;T<c;++T){var I=f[T];if(","==I)f[T]="N";else if("%"==I){var N=void 0;for(N=T+1;N<c&&"%"==f[N];++N);for(var A=T&&"!"==f[T-1]||N<c&&"1"==f[N]?"1":"N",S=T;S<N;++S)f[S]=A;T=N-1}}for(var L=0,C=u;L<c;++L){var R=f[L];"L"==C&&"1"==R?f[L]="L":n.test(R)&&(C=R)}for(var w=0;w<c;++w)if(r.test(f[w])){var O=void 0;for(O=w+1;O<c&&r.test(f[O]);++O);for(var _="L"==(w?f[w-1]:u),k=_==("L"==(O<c?f[O]:u))?_?"L":"R":u,P=w;P<O;++P)f[P]=k;w=O-1}for(var D,M=[],j=0;j<c;)if(e.test(f[j])){var G=j;for(++j;j<c&&e.test(f[j]);++j);M.push(new o(0,G,j))}else{var F=j,U=M.length,B="rtl"==a?1:0;for(++j;j<c&&"L"!=f[j];++j);for(var V=F;V<j;)if(i.test(f[V])){F<V&&(M.splice(U,0,new o(1,F,V)),U+=B);var q=V;for(++V;V<j&&i.test(f[V]);++V);M.splice(U,0,new o(2,q,V)),U+=B,F=V}else++V;F<j&&M.splice(U,0,new o(1,F,j))}return"ltr"==a&&(1==M[0].level&&(D=s.match(/^\s+/))&&(M[0].from=D[0].length,M.unshift(new o(0,0,D[0].length))),1==Y(M).level&&(D=s.match(/\s+$/))&&(Y(M).to-=D[0].length,M.push(new o(0,c-D[0].length,c)))),"rtl"==a?M.reverse():M}}();function lt(t,r){var n=t.order;return null==n&&(n=t.order=ut(t.text,r)),n}var ct=[],ft=function(t,r,n){if(t.addEventListener)t.addEventListener(r,n,!1);else if(t.attachEvent)t.attachEvent("on"+r,n);else{var e=t._handlers||(t._handlers={});e[r]=(e[r]||ct).concat(n)}};function ht(t,r){return t._handlers&&t._handlers[r]||ct}function pt(t,r,n){if(t.removeEventListener)t.removeEventListener(r,n,!1);else if(t.detachEvent)t.detachEvent("on"+r,n);else{var e=t._handlers,i=e&&e[r];if(i){var o=U(i,n);o>-1&&(e[r]=i.slice(0,o).concat(i.slice(o+1)))}}}function dt(t,r){var n=ht(t,r);if(n.length)for(var e=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,e)}function vt(t,r,n){return"string"==typeof r&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),dt(t,n||r.type,t,r),xt(r)||r.codemirrorIgnore}function Et(t){var r=t._handlers&&t._handlers.cursorActivity;if(r)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),e=0;e<r.length;++e)-1==U(n,r[e])&&n.push(r[e])}function bt(t,r){return ht(t,r).length>0}function mt(t){t.prototype.on=function(t,r){ft(this,t,r)},t.prototype.off=function(t,r){pt(this,t,r)}}function gt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function yt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Tt(t){gt(t),yt(t)}function It(t){return t.target||t.srcElement}function Nt(t){var r=t.which;return null==r&&(1&t.button?r=1:2&t.button?r=3:4&t.button&&(r=2)),m&&t.ctrlKey&&1==r&&(r=3),r}var At,St,Lt=function(){if(s&&a<9)return!1;var t=R("div");return"draggable"in t||"dragDrop"in t}();function Ct(t){if(null==At){var r=R("span","");C(t,R("span",[r,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(At=r.offsetWidth<=1&&r.offsetHeight>2&&!(s&&a<8))}var n=At?R("span",""):R("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Rt(t){if(null!=St)return St;var r=C(t,document.createTextNode("AخA")),n=A(r,0,1).getBoundingClientRect(),e=A(r,1,2).getBoundingClientRect();return L(t),!(!n||n.left==n.right)&&(St=e.right-n.right<3)}var wt,Ot=3!="\n\nb".split(/\n/).length?function(t){for(var r=0,n=[],e=t.length;r<=e;){var i=t.indexOf("\n",r);-1==i&&(i=t.length);var o=t.slice(r,"\r"==t.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),r+=s+1):(n.push(o),r=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},_t=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var r;try{r=t.ownerDocument.selection.createRange()}catch(t){}return!(!r||r.parentElement()!=t)&&0!=r.compareEndPoints("StartToEnd",r)},kt="oncopy"in(wt=R("div"))||(wt.setAttribute("oncopy","return;"),"function"==typeof wt.oncopy),Pt=null,Dt={},Mt={};function jt(t,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),Dt[t]=r}function Gt(t){if("string"==typeof t&&Mt.hasOwnProperty(t))t=Mt[t];else if(t&&"string"==typeof t.name&&Mt.hasOwnProperty(t.name)){var r=Mt[t.name];"string"==typeof r&&(r={name:r}),(t=Q(r,t)).name=r.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Gt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Gt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ft(t,r){r=Gt(r);var n=Dt[r.name];if(!n)return Ft(t,"text/plain");var e=n(t,r);if(Ut.hasOwnProperty(r.name)){var i=Ut[r.name];for(var o in i)i.hasOwnProperty(o)&&(e.hasOwnProperty(o)&&(e["_"+o]=e[o]),e[o]=i[o])}if(e.name=r.name,r.helperType&&(e.helperType=r.helperType),r.modeProps)for(var s in r.modeProps)e[s]=r.modeProps[s];return e}var Ut={};function Bt(t,r){j(r,Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={})}function Vt(t,r){if(!0===r)return r;if(t.copyState)return t.copyState(r);var n={};for(var e in r){var i=r[e];i instanceof Array&&(i=i.concat([])),n[e]=i}return n}function qt(t,r){for(var n;t.innerMode&&(n=t.innerMode(r))&&n.mode!=t;)r=n.state,t=n.mode;return n||{mode:t,state:r}}function Ht(t,r,n){return!t.startState||t.startState(r,n)}var zt=function(t,r,n){this.pos=this.start=0,this.string=t,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function $t(t,r){if((r-=t.first)<0||r>=t.size)throw new Error("There is no line "+(r+t.first)+" in the document.");for(var n=t;!n.lines;)for(var e=0;;++e){var i=n.children[e],o=i.chunkSize();if(r<o){n=i;break}r-=o}return n.lines[r]}function Wt(t,r,n){var e=[],i=r.line;return t.iter(r.line,n.line+1,(function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==r.line&&(o=o.slice(r.ch)),e.push(o),++i})),e}function Yt(t,r,n){var e=[];return t.iter(r,n,(function(t){e.push(t.text)})),e}function Xt(t,r){var n=r-t.height;if(n)for(var e=t;e;e=e.parent)e.height+=n}function Zt(t){if(null==t.parent)return null;for(var r=t.parent,n=U(r.lines,t),e=r.parent;e;r=e,e=e.parent)for(var i=0;e.children[i]!=r;++i)n+=e.children[i].chunkSize();return n+r.first}function Qt(t,r){var n=t.first;t:do{for(var e=0;e<t.children.length;++e){var i=t.children[e],o=i.height;if(r<o){t=i;continue t}r-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s].height;if(r<a)break;r-=a}return n+s}function Kt(t,r){return r>=t.first&&r<t.first+t.size}function Jt(t,r){return String(t.lineNumberFormatter(r+t.firstLineNumber))}function tr(t,r,n){if(void 0===n&&(n=null),!(this instanceof tr))return new tr(t,r,n);this.line=t,this.ch=r,this.sticky=n}function rr(t,r){return t.line-r.line||t.ch-r.ch}function nr(t,r){return t.sticky==r.sticky&&0==rr(t,r)}function er(t){return tr(t.line,t.ch)}function ir(t,r){return rr(t,r)<0?r:t}function or(t,r){return rr(t,r)<0?t:r}function sr(t,r){return Math.max(t.first,Math.min(r,t.first+t.size-1))}function ar(t,r){if(r.line<t.first)return tr(t.first,0);var n=t.first+t.size-1;return r.line>n?tr(n,$t(t,n).text.length):function(t,r){var n=t.ch;return null==n||n>r?tr(t.line,r):n<0?tr(t.line,0):t}(r,$t(t,r.line).text.length)}function ur(t,r){for(var n=[],e=0;e<r.length;e++)n[e]=ar(t,r[e]);return n}zt.prototype.eol=function(){return this.pos>=this.string.length},zt.prototype.sol=function(){return this.pos==this.lineStart},zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},zt.prototype.eat=function(t){var r=this.string.charAt(this.pos);if("string"==typeof t?r==t:r&&(t.test?t.test(r):t(r)))return++this.pos,r},zt.prototype.eatWhile=function(t){for(var r=this.pos;this.eat(t););return this.pos>r},zt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},zt.prototype.skipToEnd=function(){this.pos=this.string.length},zt.prototype.skipTo=function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},zt.prototype.backUp=function(t){this.pos-=t},zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=G(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},zt.prototype.indentation=function(){return G(this.string,null,this.tabSize)-(this.lineStart?G(this.string,this.lineStart,this.tabSize):0)},zt.prototype.match=function(t,r,n){if("string"!=typeof t){var e=this.string.slice(this.pos).match(t);return e&&e.index>0?null:(e&&!1!==r&&(this.pos+=e[0].length),e)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==r&&(this.pos+=t.length),!0},zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},zt.prototype.hideFirstChars=function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},zt.prototype.lookAhead=function(t){var r=this.lineOracle;return r&&r.lookAhead(t)},zt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var lr=function(t,r){this.state=t,this.lookAhead=r},cr=function(t,r,n,e){this.state=r,this.doc=t,this.line=n,this.maxLookAhead=e||0,this.baseTokens=null,this.baseTokenPos=1};function fr(t,r,n,e){var i=[t.state.modeGen],o={};yr(t,r.text,t.doc.mode,n,(function(t,r){return i.push(t,r)}),o,e);for(var s=n.state,a=function(e){n.baseTokens=i;var a=t.state.overlays[e],u=1,l=0;n.state=!0,yr(t,r.text,a.mode,n,(function(t,r){for(var n=u;l<t;){var e=i[u];e>t&&i.splice(u,1,t,i[u+1],e),u+=2,l=Math.min(t,e)}if(r)if(a.opaque)i.splice(n,u-n,t,"overlay "+r),u=n+2;else for(;n<u;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+r}}),o),n.state=s,n.baseTokens=null,n.baseTokenPos=1},u=0;u<t.state.overlays.length;++u)a(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function hr(t,r,n){if(!r.styles||r.styles[0]!=t.state.modeGen){var e=pr(t,Zt(r)),i=r.text.length>t.options.maxHighlightLength&&Vt(t.doc.mode,e.state),o=fr(t,r,e);i&&(e.state=i),r.stateAfter=e.save(!i),r.styles=o.styles,o.classes?r.styleClasses=o.classes:r.styleClasses&&(r.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return r.styles}function pr(t,r,n){var e=t.doc,i=t.display;if(!e.mode.startState)return new cr(e,!0,r);var o=function(t,r,n){for(var e,i,o=t.doc,s=n?-1:r-(t.doc.mode.innerMode?1e3:100),a=r;a>s;--a){if(a<=o.first)return o.first;var u=$t(o,a-1),l=u.stateAfter;if(l&&(!n||a+(l instanceof lr?l.lookAhead:0)<=o.modeFrontier))return a;var c=G(u.text,null,t.options.tabSize);(null==i||e>c)&&(i=a-1,e=c)}return i}(t,r,n),s=o>e.first&&$t(e,o-1).stateAfter,a=s?cr.fromSaved(e,s,o):new cr(e,Ht(e.mode),o);return e.iter(o,r,(function(n){dr(t,n.text,a);var e=a.line;n.stateAfter=e==r-1||e%5==0||e>=i.viewFrom&&e<i.viewTo?a.save():null,a.nextLine()})),n&&(e.modeFrontier=a.line),a}function dr(t,r,n,e){var i=t.doc.mode,o=new zt(r,t.options.tabSize,n);for(o.start=o.pos=e||0,""==r&&vr(i,n.state);!o.eol();)Er(i,o,n.state),o.start=o.pos}function vr(t,r){if(t.blankLine)return t.blankLine(r);if(t.innerMode){var n=qt(t,r);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Er(t,r,n,e){for(var i=0;i<10;i++){e&&(e[0]=qt(t,n).mode);var o=t.token(r,n);if(r.pos>r.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}cr.prototype.lookAhead=function(t){var r=this.doc.getLine(this.line+t);return null!=r&&t>this.maxLookAhead&&(this.maxLookAhead=t),r},cr.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},cr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cr.fromSaved=function(t,r,n){return r instanceof lr?new cr(t,Vt(t.mode,r.state),n,r.lookAhead):new cr(t,Vt(t.mode,r),n)},cr.prototype.save=function(t){var r=!1!==t?Vt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lr(r,this.maxLookAhead):r};var br=function(t,r,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=r||null,this.state=n};function mr(t,r,n,e){var i,o,s=t.doc,a=s.mode,u=$t(s,(r=ar(s,r)).line),l=pr(t,r.line,n),c=new zt(u.text,t.options.tabSize,l);for(e&&(o=[]);(e||c.pos<r.ch)&&!c.eol();)c.start=c.pos,i=Er(a,c,l.state),e&&o.push(new br(c,i,Vt(s.mode,l.state)));return e?o:new br(c,i,l.state)}function gr(t,r){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var e=n[1]?"bgClass":"textClass";null==r[e]?r[e]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(r[e])||(r[e]+=" "+n[2])}return t}function yr(t,r,n,e,i,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var u,l=0,c=null,f=new zt(r,t.options.tabSize,e),h=t.options.addModeClass&&[null];for(""==r&&gr(vr(n,e.state),o);!f.eol();){if(f.pos>t.options.maxHighlightLength?(a=!1,s&&dr(t,r,e,f.pos),f.pos=r.length,u=null):u=gr(Er(n,f,e.state,h),o),h){var p=h[0].name;p&&(u="m-"+(u?p+" "+u:p))}if(!a||c!=u){for(;l<f.start;)i(l=Math.min(f.start,l+5e3),c);c=u}f.start=f.pos}for(;l<f.pos;){var d=Math.min(f.pos,l+5e3);i(d,c),l=d}}var xr=!1,Tr=!1;function Ir(t,r,n){this.marker=t,this.from=r,this.to=n}function Nr(t,r){if(t)for(var n=0;n<t.length;++n){var e=t[n];if(e.marker==r)return e}}function Ar(t,r){for(var n,e=0;e<t.length;++e)t[e]!=r&&(n||(n=[])).push(t[e]);return n}function Sr(t,r){if(r.full)return null;var n=Kt(t,r.from.line)&&$t(t,r.from.line).markedSpans,e=Kt(t,r.to.line)&&$t(t,r.to.line).markedSpans;if(!n&&!e)return null;var i=r.from.ch,o=r.to.ch,s=0==rr(r.from,r.to),a=function(t,r,n){var e;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker;null!=o.from&&!(s.inclusiveLeft?o.from<=r:o.from<r)&&(o.from!=r||"bookmark"!=s.type||n&&o.marker.insertLeft)||(e||(e=[])).push(new Ir(s,o.from,null==o.to||(s.inclusiveRight?o.to>=r:o.to>r)?null:o.to))}return e}(n,i,s),u=function(t,r,n){var e;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker;(null==o.to||(s.inclusiveRight?o.to>=r:o.to>r)||o.from==r&&"bookmark"==s.type&&(!n||o.marker.insertLeft))&&(e||(e=[])).push(new Ir(s,null==o.from||(s.inclusiveLeft?o.from<=r:o.from<r)?null:o.from-r,null==o.to?null:o.to-r))}return e}(e,o,s),l=1==r.text.length,c=Y(r.text).length+(l?i:0);if(a)for(var f=0;f<a.length;++f){var h=a[f];if(null==h.to){var p=Nr(u,h.marker);p?l&&(h.to=null==p.to?null:p.to+c):h.to=i}}if(u)for(var d=0;d<u.length;++d){var v=u[d];null!=v.to&&(v.to+=c),null==v.from?Nr(a,v.marker)||(v.from=c,l&&(a||(a=[])).push(v)):(v.from+=c,l&&(a||(a=[])).push(v))}a&&(a=Lr(a)),u&&u!=a&&(u=Lr(u));var E=[a];if(!l){var b,m=r.text.length-2;if(m>0&&a)for(var g=0;g<a.length;++g)null==a[g].to&&(b||(b=[])).push(new Ir(a[g].marker,null,null));for(var y=0;y<m;++y)E.push(b);E.push(u)}return E}function Lr(t){for(var r=0;r<t.length;++r){var n=t[r];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(r--,1)}return t.length?t:null}function Cr(t){var r=t.markedSpans;if(r){for(var n=0;n<r.length;++n)r[n].marker.detachLine(t);t.markedSpans=null}}function Rr(t,r){if(r){for(var n=0;n<r.length;++n)r[n].marker.attachLine(t);t.markedSpans=r}}function wr(t){return t.inclusiveLeft?-1:0}function Or(t){return t.inclusiveRight?1:0}function _r(t,r){var n=t.lines.length-r.lines.length;if(0!=n)return n;var e=t.find(),i=r.find(),o=rr(e.from,i.from)||wr(t)-wr(r);return o?-o:rr(e.to,i.to)||Or(t)-Or(r)||r.id-t.id}function kr(t,r){var n,e=Tr&&t.markedSpans;if(e)for(var i=void 0,o=0;o<e.length;++o)(i=e[o]).marker.collapsed&&null==(r?i.from:i.to)&&(!n||_r(n,i.marker)<0)&&(n=i.marker);return n}function Pr(t){return kr(t,!0)}function Dr(t){return kr(t,!1)}function Mr(t,r){var n,e=Tr&&t.markedSpans;if(e)for(var i=0;i<e.length;++i){var o=e[i];o.marker.collapsed&&(null==o.from||o.from<r)&&(null==o.to||o.to>r)&&(!n||_r(n,o.marker)<0)&&(n=o.marker)}return n}function jr(t,r,n,e,i){var o=$t(t,r),s=Tr&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var u=s[a];if(u.marker.collapsed){var l=u.marker.find(0),c=rr(l.from,n)||wr(u.marker)-wr(i),f=rr(l.to,e)||Or(u.marker)-Or(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?rr(l.to,n)>=0:rr(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?rr(l.from,e)<=0:rr(l.from,e)<0)))return!0}}}function Gr(t){for(var r;r=Pr(t);)t=r.find(-1,!0).line;return t}function Fr(t,r){var n=$t(t,r),e=Gr(n);return n==e?r:Zt(e)}function Ur(t,r){if(r>t.lastLine())return r;var n,e=$t(t,r);if(!Br(t,e))return r;for(;n=Dr(e);)e=n.find(1,!0).line;return Zt(e)+1}function Br(t,r){var n=Tr&&r.markedSpans;if(n)for(var e=void 0,i=0;i<n.length;++i)if((e=n[i]).marker.collapsed){if(null==e.from)return!0;if(!e.marker.widgetNode&&0==e.from&&e.marker.inclusiveLeft&&Vr(t,r,e))return!0}}function Vr(t,r,n){if(null==n.to){var e=n.marker.find(1,!0);return Vr(t,e.line,Nr(e.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==r.text.length)return!0;for(var i=void 0,o=0;o<r.markedSpans.length;++o)if((i=r.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Vr(t,r,i))return!0}function qr(t){for(var r=0,n=(t=Gr(t)).parent,e=0;e<n.lines.length;++e){var i=n.lines[e];if(i==t)break;r+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;r+=a.height}return r}function Hr(t){if(0==t.height)return 0;for(var r,n=t.text.length,e=t;r=Pr(e);){var i=r.find(0,!0);e=i.from.line,n+=i.from.ch-i.to.ch}for(e=t;r=Dr(e);){var o=r.find(0,!0);n-=e.text.length-o.from.ch,n+=(e=o.to.line).text.length-o.to.ch}return n}function zr(t){var r=t.display,n=t.doc;r.maxLine=$t(n,n.first),r.maxLineLength=Hr(r.maxLine),r.maxLineChanged=!0,n.iter((function(t){var n=Hr(t);n>r.maxLineLength&&(r.maxLineLength=n,r.maxLine=t)}))}var $r=function(t,r,n){this.text=t,Rr(this,r),this.height=n?n(this):1};function Wr(t){t.parent=null,Cr(t)}$r.prototype.lineNo=function(){return Zt(this)},mt($r);var Yr={},Xr={};function Zr(t,r){if(!t||/^\s*$/.test(t))return null;var n=r.addModeClass?Xr:Yr;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Qr(t,r){var n=w("span",null,null,u?"padding-right: .1px":null),e={pre:w("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};r.measure={};for(var i=0;i<=(r.rest?r.rest.length:0);i++){var o=i?r.rest[i-1]:r.line,s=void 0;e.pos=0,e.addToken=Jr,Rt(t.display.measure)&&(s=lt(o,t.doc.direction))&&(e.addToken=tn(e.addToken,s)),e.map=[],nn(o,e,hr(t,o,r!=t.display.externalMeasured&&Zt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(e.bgClass=P(o.styleClasses.bgClass,e.bgClass||"")),o.styleClasses.textClass&&(e.textClass=P(o.styleClasses.textClass,e.textClass||""))),0==e.map.length&&e.map.push(0,0,e.content.appendChild(Ct(t.display.measure))),0==i?(r.measure.map=e.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(e.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(u){var a=e.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(e.content.className="cm-tab-wrap-hack")}return dt(t,"renderLine",t,r.line,e.pre),e.pre.className&&(e.textClass=P(e.pre.className,e.textClass||"")),e}function Kr(t){var r=R("span","•","cm-invalidchar");return r.title="\\u"+t.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Jr(t,r,n,e,i,o,u){if(r){var l,c=t.splitSpaces?function(t,r){if(t.length>1&&!/ /.test(t))return t;for(var n=r,e="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o=" "),e+=o,n=" "==o}return e}(r,t.trailingSpace):r,f=t.cm.state.specialChars,h=!1;if(f.test(r)){l=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var d=f.exec(r),v=d?d.index-p:r.length-p;if(v){var E=document.createTextNode(c.slice(p,p+v));l.appendChild(s&&a<9?R("span",[E]):E),t.map.push(t.pos,t.pos+v,E),t.col+=v,t.pos+=v}if(!d)break;p+=v+1;var b=void 0;if("\t"==d[0]){var m=t.cm.options.tabSize,g=m-t.col%m;(b=l.appendChild(R("span",W(g),"cm-tab"))).setAttribute("role","presentation"),b.setAttribute("cm-text","\t"),t.col+=g}else"\r"==d[0]||"\n"==d[0]?((b=l.appendChild(R("span","\r"==d[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",d[0]),t.col+=1):((b=t.cm.options.specialCharPlaceholder(d[0])).setAttribute("cm-text",d[0]),l.appendChild(s&&a<9?R("span",[b]):b),t.col+=1);t.map.push(t.pos,t.pos+1,b),t.pos++}}else t.col+=r.length,l=document.createTextNode(c),t.map.push(t.pos,t.pos+r.length,l),s&&a<9&&(h=!0),t.pos+=r.length;if(t.trailingSpace=32==c.charCodeAt(r.length-1),n||e||i||h||o){var y=n||"";e&&(y+=e),i&&(y+=i);var x=R("span",[l],y,o);if(u)for(var T in u)u.hasOwnProperty(T)&&"style"!=T&&"class"!=T&&x.setAttribute(T,u[T]);return t.content.appendChild(x)}t.content.appendChild(l)}}function tn(t,r){return function(n,e,i,o,s,a,u){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+e.length;;){for(var f=void 0,h=0;h<r.length&&!((f=r[h]).to>l&&f.from<=l);h++);if(f.to>=c)return t(n,e,i,o,s,a,u);t(n,e.slice(0,f.to-l),i,o,null,a,u),o=null,e=e.slice(f.to-l),l=f.to}}}function rn(t,r,n,e){var i=!e&&n.widgetNode;i&&t.map.push(t.pos,t.pos+r,i),!e&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=r,t.trailingSpace=!1}function nn(t,r,n){var e=t.markedSpans,i=t.text,o=0;if(e)for(var s,a,u,l,c,f,h,p=i.length,d=0,v=1,E="",b=0;;){if(b==d){u=l=c=a="",h=null,f=null,b=1/0;for(var m=[],g=void 0,y=0;y<e.length;++y){var x=e[y],T=x.marker;if("bookmark"==T.type&&x.from==d&&T.widgetNode)m.push(T);else if(x.from<=d&&(null==x.to||x.to>d||T.collapsed&&x.to==d&&x.from==d)){if(null!=x.to&&x.to!=d&&b>x.to&&(b=x.to,l=""),T.className&&(u+=" "+T.className),T.css&&(a=(a?a+";":"")+T.css),T.startStyle&&x.from==d&&(c+=" "+T.startStyle),T.endStyle&&x.to==b&&(g||(g=[])).push(T.endStyle,x.to),T.title&&((h||(h={})).title=T.title),T.attributes)for(var I in T.attributes)(h||(h={}))[I]=T.attributes[I];T.collapsed&&(!f||_r(f.marker,T)<0)&&(f=x)}else x.from>d&&b>x.from&&(b=x.from)}if(g)for(var N=0;N<g.length;N+=2)g[N+1]==b&&(l+=" "+g[N]);if(!f||f.from==d)for(var A=0;A<m.length;++A)rn(r,0,m[A]);if(f&&(f.from||0)==d){if(rn(r,(null==f.to?p+1:f.to)-d,f.marker,null==f.from),null==f.to)return;f.to==d&&(f=!1)}}if(d>=p)break;for(var S=Math.min(p,b);;){if(E){var L=d+E.length;if(!f){var C=L>S?E.slice(0,S-d):E;r.addToken(r,C,s?s+u:u,c,d+C.length==b?l:"",a,h)}if(L>=S){E=E.slice(S-d),d=S;break}d=L,c=""}E=i.slice(o,o=n[v++]),s=Zr(n[v++],r.cm.options)}}else for(var R=1;R<n.length;R+=2)r.addToken(r,i.slice(o,o=n[R]),Zr(n[R+1],r.cm.options))}function en(t,r,n){this.line=r,this.rest=function(t){for(var r,n;r=Dr(t);)t=r.find(1,!0).line,(n||(n=[])).push(t);return n}(r),this.size=this.rest?Zt(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Br(t,r)}function on(t,r,n){for(var e,i=[],o=r;o<n;o=e){var s=new en(t.doc,$t(t.doc,o),o);e=o+s.size,i.push(s)}return i}var sn=null,an=null;function un(t,r){var n=ht(t,r);if(n.length){var e,i=Array.prototype.slice.call(arguments,2);sn?e=sn.delayedCallbacks:an?e=an:(e=an=[],setTimeout(ln,0));for(var o=function(t){e.push((function(){return n[t].apply(null,i)}))},s=0;s<n.length;++s)o(s)}}function ln(){var t=an;an=null;for(var r=0;r<t.length;++r)t[r]()}function cn(t,r,n,e){for(var i=0;i<r.changes.length;i++){var o=r.changes[i];"text"==o?pn(t,r):"gutter"==o?vn(t,r,n,e):"class"==o?dn(t,r):"widget"==o&&En(t,r,e)}r.changes=null}function fn(t){return t.node==t.text&&(t.node=R("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),s&&a<8&&(t.node.style.zIndex=2)),t.node}function hn(t,r){var n=t.display.externalMeasured;return n&&n.line==r.line?(t.display.externalMeasured=null,r.measure=n.measure,n.built):Qr(t,r)}function pn(t,r){var n=r.text.className,e=hn(t,r);r.text==r.node&&(r.node=e.pre),r.text.parentNode.replaceChild(e.pre,r.text),r.text=e.pre,e.bgClass!=r.bgClass||e.textClass!=r.textClass?(r.bgClass=e.bgClass,r.textClass=e.textClass,dn(t,r)):n&&(r.text.className=n)}function dn(t,r){!function(t,r){var n=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),r.background)n?r.background.className=n:(r.background.parentNode.removeChild(r.background),r.background=null);else if(n){var e=fn(r);r.background=e.insertBefore(R("div",null,n),e.firstChild),t.display.input.setUneditable(r.background)}}(t,r),r.line.wrapClass?fn(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className=""),r.text.className=(r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass)||""}function vn(t,r,n,e){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var i=fn(r);r.gutterBackground=R("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(t.options.fixedGutter?e.fixedPos:-e.gutterTotalWidth)+"px; width: "+e.gutterTotalWidth+"px"),t.display.input.setUneditable(r.gutterBackground),i.insertBefore(r.gutterBackground,r.text)}var o=r.line.gutterMarkers;if(t.options.lineNumbers||o){var s=fn(r),a=r.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?e.fixedPos:-e.gutterTotalWidth)+"px");if(t.display.input.setUneditable(a),s.insertBefore(a,r.text),r.line.gutterClass&&(a.className+=" "+r.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(r.lineNumber=a.appendChild(R("div",Jt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+e.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var u=0;u<t.display.gutterSpecs.length;++u){var l=t.display.gutterSpecs[u].className,c=o.hasOwnProperty(l)&&o[l];c&&a.appendChild(R("div",[c],"CodeMirror-gutter-elt","left: "+e.gutterLeft[l]+"px; width: "+e.gutterWidth[l]+"px"))}}}function En(t,r,n){r.alignable&&(r.alignable=null);for(var e=N("CodeMirror-linewidget"),i=r.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,e.test(i.className)&&r.node.removeChild(i);mn(t,r,n)}function bn(t,r,n,e){var i=hn(t,r);return r.text=r.node=i.pre,i.bgClass&&(r.bgClass=i.bgClass),i.textClass&&(r.textClass=i.textClass),dn(t,r),vn(t,r,n,e),mn(t,r,e),r.node}function mn(t,r,n){if(gn(t,r.line,r,n,!0),r.rest)for(var e=0;e<r.rest.length;e++)gn(t,r.rest[e],r,n,!1)}function gn(t,r,n,e,i){if(r.widgets)for(var o=fn(n),s=0,a=r.widgets;s<a.length;++s){var u=a[s],l=R("div",[u.node],"CodeMirror-linewidget"+(u.className?" "+u.className:""));u.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),yn(u,l,n,e),t.display.input.setUneditable(l),i&&u.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),un(u,"redraw")}}function yn(t,r,n,e){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(r);var i=e.wrapperWidth;r.style.left=e.fixedPos+"px",t.coverGutter||(i-=e.gutterTotalWidth,r.style.paddingLeft=e.gutterTotalWidth+"px"),r.style.width=i+"px"}t.coverGutter&&(r.style.zIndex=5,r.style.position="relative",t.noHScroll||(r.style.marginLeft=-e.gutterTotalWidth+"px"))}function xn(t){if(null!=t.height)return t.height;var r=t.doc.cm;if(!r)return 0;if(!O(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+r.display.wrapper.clientWidth+"px;"),C(r.display.measure,R("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function Tn(t,r){for(var n=It(r);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function In(t){return t.lineSpace.offsetTop}function Nn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function An(t){if(t.cachedPaddingH)return t.cachedPaddingH;var r=C(t.measure,R("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,e={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(e.left)||isNaN(e.right)||(t.cachedPaddingH=e),e}function Sn(t){return 50-t.display.nativeBarWidth}function Ln(t){return t.display.scroller.clientWidth-Sn(t)-t.display.barWidth}function Cn(t){return t.display.scroller.clientHeight-Sn(t)-t.display.barHeight}function Rn(t,r,n){if(t.line==r)return{map:t.measure.map,cache:t.measure.cache};for(var e=0;e<t.rest.length;e++)if(t.rest[e]==r)return{map:t.measure.maps[e],cache:t.measure.caches[e]};for(var i=0;i<t.rest.length;i++)if(Zt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function wn(t,r,n,e){return kn(t,_n(t,r),n,e)}function On(t,r){if(r>=t.display.viewFrom&&r<t.display.viewTo)return t.display.view[ce(t,r)];var n=t.display.externalMeasured;return n&&r>=n.lineN&&r<n.lineN+n.size?n:void 0}function _n(t,r){var n=Zt(r),e=On(t,n);e&&!e.text?e=null:e&&e.changes&&(cn(t,e,n,oe(t)),t.curOp.forceUpdate=!0),e||(e=function(t,r){var n=Zt(r=Gr(r)),e=t.display.externalMeasured=new en(t.doc,r,n);e.lineN=n;var i=e.built=Qr(t,e);return e.text=i.pre,C(t.display.lineMeasure,i.pre),e}(t,r));var i=Rn(e,r,n);return{line:r,view:e,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function kn(t,r,n,e,i){r.before&&(n=-1);var o,u=n+(e||"");return r.cache.hasOwnProperty(u)?o=r.cache[u]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(function(t,r,n){var e=t.options.lineWrapping,i=e&&Ln(t);if(!r.measure.heights||e&&r.measure.width!=i){var o=r.measure.heights=[];if(e){r.measure.width=i;for(var s=r.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var u=s[a],l=s[a+1];Math.abs(u.bottom-l.bottom)>2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,r.view,r.rect),r.hasHeights=!0),(o=function(t,r,n,e){var i,o=Mn(r.map,n,e),u=o.node,l=o.start,c=o.end,f=o.collapse;if(3==u.nodeType){for(var h=0;h<4;h++){for(;l&&et(r.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+c<o.coverEnd&&et(r.line.text.charAt(o.coverStart+c));)++c;if((i=s&&a<9&&0==l&&c==o.coverEnd-o.coverStart?u.parentNode.getBoundingClientRect():jn(A(u,l,c).getClientRects(),e)).left||i.right||0==l)break;c=l,l-=1,f="right"}s&&a<11&&(i=function(t,r){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Pt)return Pt;var r=C(t,R("span","x")),n=r.getBoundingClientRect(),e=A(r,0,1).getBoundingClientRect();return Pt=Math.abs(n.left-e.left)>1}(t))return r;var n=screen.logicalXDPI/screen.deviceXDPI,e=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*n,right:r.right*n,top:r.top*e,bottom:r.bottom*e}}(t.display.measure,i))}else{var p;l>0&&(f=e="right"),i=t.options.lineWrapping&&(p=u.getClientRects()).length>1?p["right"==e?p.length-1:0]:u.getBoundingClientRect()}if(s&&a<9&&!l&&(!i||!i.left&&!i.right)){var d=u.parentNode.getClientRects()[0];i=d?{left:d.left,right:d.left+ie(t.display),top:d.top,bottom:d.bottom}:Dn}for(var v=i.top-r.rect.top,E=i.bottom-r.rect.top,b=(v+E)/2,m=r.view.measure.heights,g=0;g<m.length-1&&!(b<m[g]);g++);var y={left:("right"==f?i.right:i.left)-r.rect.left,right:("left"==f?i.left:i.right)-r.rect.left,top:g?m[g-1]:0,bottom:m[g]};return i.left||i.right||(y.bogus=!0),t.options.singleCursorHeightPerLine||(y.rtop=v,y.rbottom=E),y}(t,r,n,e)).bogus||(r.cache[u]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Pn,Dn={left:0,right:0,top:0,bottom:0};function Mn(t,r,n){for(var e,i,o,s,a,u,l=0;l<t.length;l+=3)if(u=t[l+1],r<(a=t[l])?(i=0,o=1,s="left"):r<u?o=1+(i=r-a):(l==t.length-3||r==u&&t[l+3]>r)&&(i=(o=u-a)-1,r>=u&&(s="right")),null!=i){if(e=t[l+2],a==u&&n==(e.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)e=t[2+(l-=3)],s="left";if("right"==n&&i==u-a)for(;l<t.length-3&&t[l+3]==t[l+4]&&!t[l+5].insertLeft;)e=t[(l+=3)+2],s="right";break}return{node:e,start:i,end:o,collapse:s,coverStart:a,coverEnd:u}}function jn(t,r){var n=Dn;if("left"==r)for(var e=0;e<t.length&&(n=t[e]).left==n.right;e++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function Gn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var r=0;r<t.rest.length;r++)t.measure.caches[r]={}}function Fn(t){t.display.externalMeasure=null,L(t.display.lineMeasure);for(var r=0;r<t.display.view.length;r++)Gn(t.display.view[r])}function Un(t){Fn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Bn(){return c&&E?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vn(){return c&&E?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qn(t){var r=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(r+=xn(t.widgets[n]));return r}function Hn(t,r,n,e,i){if(!i){var o=qn(r);n.top+=o,n.bottom+=o}if("line"==e)return n;e||(e="local");var s=qr(r);if("local"==e?s+=In(t.display):s-=t.display.viewOffset,"page"==e||"window"==e){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==e?0:Vn());var u=a.left+("window"==e?0:Bn());n.left+=u,n.right+=u}return n.top+=s,n.bottom+=s,n}function zn(t,r,n){if("div"==n)return r;var e=r.left,i=r.top;if("page"==n)e-=Bn(),i-=Vn();else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();e+=o.left,i+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:e-s.left,top:i-s.top}}function $n(t,r,n,e,i){return e||(e=$t(t.doc,r.line)),Hn(t,e,wn(t,e,r.ch,i),n)}function Wn(t,r,n,e,i,o){function s(r,s){var a=kn(t,i,r,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,Hn(t,e,a,n)}e=e||$t(t.doc,r.line),i||(i=_n(t,e));var a=lt(e,t.doc.direction),u=r.ch,l=r.sticky;if(u>=e.text.length?(u=e.text.length,l="before"):u<=0&&(u=0,l="after"),!a)return s("before"==l?u-1:u,"before"==l);function c(t,r,n){return s(n?t-1:t,1==a[r].level!=n)}var f=at(a,u,l),h=st,p=c(u,f,"before"==l);return null!=h&&(p.other=c(u,h,"before"!=l)),p}function Yn(t,r){var n=0;r=ar(t.doc,r),t.options.lineWrapping||(n=ie(t.display)*r.ch);var e=$t(t.doc,r.line),i=qr(e)+In(t.display);return{left:n,right:n,top:i,bottom:i+e.height}}function Xn(t,r,n,e,i){var o=tr(t,r,n);return o.xRel=i,e&&(o.outside=e),o}function Zn(t,r,n){var e=t.doc;if((n+=t.display.viewOffset)<0)return Xn(e.first,0,null,-1,-1);var i=Qt(e,n),o=e.first+e.size-1;if(i>o)return Xn(e.first+e.size-1,$t(e,o).text.length,null,1,1);r<0&&(r=0);for(var s=$t(e,i);;){var a=te(t,s,i,r,n),u=Mr(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!u)return a;var l=u.find(1);if(l.line==i)return l;s=$t(e,i=l.line)}}function Qn(t,r,n,e){e-=qn(r);var i=r.text.length,o=ot((function(r){return kn(t,n,r-1).bottom<=e}),i,0);return{begin:o,end:i=ot((function(r){return kn(t,n,r).top>e}),o,i)}}function Kn(t,r,n,e){return n||(n=_n(t,r)),Qn(t,r,n,Hn(t,r,kn(t,n,e),"line").top)}function Jn(t,r,n,e){return!(t.bottom<=n)&&(t.top>n||(e?t.left:t.right)>r)}function te(t,r,n,e,i){i-=qr(r);var o=_n(t,r),s=qn(r),a=0,u=r.text.length,l=!0,c=lt(r,t.doc.direction);if(c){var f=(t.options.lineWrapping?ne:re)(t,r,n,o,c,e,i);a=(l=1!=f.level)?f.from:f.to-1,u=l?f.to:f.from-1}var h,p,d=null,v=null,E=ot((function(r){var n=kn(t,o,r);return n.top+=s,n.bottom+=s,!!Jn(n,e,i,!1)&&(n.top<=i&&n.left<=e&&(d=r,v=n),!0)}),a,u),b=!1;if(v){var m=e-v.left<v.right-e,g=m==l;E=d+(g?0:1),p=g?"after":"before",h=m?v.left:v.right}else{l||E!=u&&E!=a||E++,p=0==E?"after":E==r.text.length?"before":kn(t,o,E-(l?1:0)).bottom+s<=i==l?"after":"before";var y=Wn(t,tr(n,E,p),"line",r,o);h=y.left,b=i<y.top?-1:i>=y.bottom?1:0}return Xn(n,E=it(r.text,E,1),p,b,e-h)}function re(t,r,n,e,i,o,s){var a=ot((function(a){var u=i[a],l=1!=u.level;return Jn(Wn(t,tr(n,l?u.to:u.from,l?"before":"after"),"line",r,e),o,s,!0)}),0,i.length-1),u=i[a];if(a>0){var l=1!=u.level,c=Wn(t,tr(n,l?u.from:u.to,l?"after":"before"),"line",r,e);Jn(c,o,s,!0)&&c.top>s&&(u=i[a-1])}return u}function ne(t,r,n,e,i,o,s){var a=Qn(t,r,e,s),u=a.begin,l=a.end;/\s/.test(r.text.charAt(l-1))&&l--;for(var c=null,f=null,h=0;h<i.length;h++){var p=i[h];if(!(p.from>=l||p.to<=u)){var d=kn(t,e,1!=p.level?Math.min(l,p.to)-1:Math.max(u,p.from)).right,v=d<o?o-d+1e9:d-o;(!c||f>v)&&(c=p,f=v)}}return c||(c=i[i.length-1]),c.from<u&&(c={from:u,to:c.to,level:c.level}),c.to>l&&(c={from:c.from,to:l,level:c.level}),c}function ee(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Pn){Pn=R("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Pn.appendChild(document.createTextNode("x")),Pn.appendChild(R("br"));Pn.appendChild(document.createTextNode("x"))}C(t.measure,Pn);var n=Pn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),L(t.measure),n||1}function ie(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var r=R("span","xxxxxxxxxx"),n=R("pre",[r],"CodeMirror-line-like");C(t.measure,n);var e=r.getBoundingClientRect(),i=(e.right-e.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function oe(t){for(var r=t.display,n={},e={},i=r.gutters.clientLeft,o=r.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=t.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+i,e[a]=o.clientWidth}return{fixedPos:se(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:n,gutterWidth:e,wrapperWidth:r.wrapper.clientWidth}}function se(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ae(t){var r=ee(t.display),n=t.options.lineWrapping,e=n&&Math.max(5,t.display.scroller.clientWidth/ie(t.display)-3);return function(i){if(Br(t.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s<i.widgets.length;s++)i.widgets[s].height&&(o+=i.widgets[s].height);return n?o+(Math.ceil(i.text.length/e)||1)*r:o+r}}function ue(t){var r=t.doc,n=ae(t);r.iter((function(t){var r=n(t);r!=t.height&&Xt(t,r)}))}function le(t,r,n,e){var i=t.display;if(!n&&"true"==It(r).getAttribute("cm-not-content"))return null;var o,s,a=i.lineSpace.getBoundingClientRect();try{o=r.clientX-a.left,s=r.clientY-a.top}catch(t){return null}var u,l=Zn(t,o,s);if(e&&l.xRel>0&&(u=$t(t.doc,l.line).text).length==l.ch){var c=G(u,u.length,t.options.tabSize)-u.length;l=tr(l.line,Math.max(0,Math.round((o-An(t.display).left)/ie(t.display))-c))}return l}function ce(t,r){if(r>=t.display.viewTo)return null;if((r-=t.display.viewFrom)<0)return null;for(var n=t.display.view,e=0;e<n.length;e++)if((r-=n[e].size)<0)return e}function fe(t,r,n,e){null==r&&(r=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),e||(e=0);var i=t.display;if(e&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>r)&&(i.updateLineNumbers=r),t.curOp.viewChanged=!0,r>=i.viewTo)Tr&&Fr(t.doc,r)<i.viewTo&&pe(t);else if(n<=i.viewFrom)Tr&&Ur(t.doc,n+e)>i.viewFrom?pe(t):(i.viewFrom+=e,i.viewTo+=e);else if(r<=i.viewFrom&&n>=i.viewTo)pe(t);else if(r<=i.viewFrom){var o=de(t,n,n+e,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=e):pe(t)}else if(n>=i.viewTo){var s=de(t,r,r,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):pe(t)}else{var a=de(t,r,r,-1),u=de(t,n,n+e,1);a&&u?(i.view=i.view.slice(0,a.index).concat(on(t,a.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=e):pe(t)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=e:r<l.lineN+l.size&&(i.externalMeasured=null))}function he(t,r,n){t.curOp.viewChanged=!0;var e=t.display,i=t.display.externalMeasured;if(i&&r>=i.lineN&&r<i.lineN+i.size&&(e.externalMeasured=null),!(r<e.viewFrom||r>=e.viewTo)){var o=e.view[ce(t,r)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==U(s,n)&&s.push(n)}}}function pe(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function de(t,r,n,e){var i,o=ce(t,r),s=t.display.view;if(!Tr||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,u=0;u<o;u++)a+=s[u].size;if(a!=r){if(e>0){if(o==s.length-1)return null;i=a+s[o].size-r,o++}else i=a-r;r+=i,n+=i}for(;Fr(t.doc,n)!=n;){if(o==(e<0?0:s.length-1))return null;n+=e*s[o-(e<0?1:0)].size,o+=e}return{index:o,lineN:n}}function ve(t){for(var r=t.display.view,n=0,e=0;e<r.length;e++){var i=r[e];i.hidden||i.node&&!i.changes||++n}return n}function Ee(t){t.display.input.showSelection(t.display.input.prepareSelection())}function be(t,r){void 0===r&&(r=!0);for(var n=t.doc,e={},i=e.cursors=document.createDocumentFragment(),o=e.selection=document.createDocumentFragment(),s=0;s<n.sel.ranges.length;s++)if(r||s!=n.sel.primIndex){var a=n.sel.ranges[s];if(!(a.from().line>=t.display.viewTo||a.to().line<t.display.viewFrom)){var u=a.empty();(u||t.options.showCursorWhenSelecting)&&me(t,a.head,i),u||ye(t,a,o)}}return e}function me(t,r,n){var e=Wn(t,r,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(R("div"," ","CodeMirror-cursor"));if(i.style.left=e.left+"px",i.style.top=e.top+"px",i.style.height=Math.max(0,e.bottom-e.top)*t.options.cursorHeight+"px",e.other){var o=n.appendChild(R("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=e.other.left+"px",o.style.top=e.other.top+"px",o.style.height=.85*(e.other.bottom-e.other.top)+"px"}}function ge(t,r){return t.top-r.top||t.left-r.left}function ye(t,r,n){var e=t.display,i=t.doc,o=document.createDocumentFragment(),s=An(t.display),a=s.left,u=Math.max(e.sizerWidth,Ln(t)-e.sizer.offsetLeft)-s.right,l="ltr"==i.direction;function c(t,r,n,e){r<0&&(r=0),r=Math.round(r),e=Math.round(e),o.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+r+"px; width: "+(null==n?u-t:n)+"px;\n height: "+(e-r)+"px"))}function f(r,n,e){var o,s,f=$t(i,r),h=f.text.length;function p(n,e){return $n(t,tr(r,n),"div",f,e)}function d(r,n,e){var i=Kn(t,f,null,r),o="ltr"==n==("after"==e)?"left":"right";return p("after"==e?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var v=lt(f,i.direction);return function(t,r,n,e){if(!t)return e(r,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>r||r==n&&s.to==r)&&(e(Math.max(s.from,r),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||e(r,n,"ltr")}(v,n||0,null==e?h:e,(function(t,r,i,f){var E="ltr"==i,b=p(t,E?"left":"right"),m=p(r-1,E?"right":"left"),g=null==n&&0==t,y=null==e&&r==h,x=0==f,T=!v||f==v.length-1;if(m.top-b.top<=3){var I=(l?g:y)&&x?a:(E?b:m).left;c(I,b.top,((l?y:g)&&T?u:(E?m:b).right)-I,b.bottom)}else{var N,A,S,L;E?(N=l&&g&&x?a:b.left,A=l?u:d(t,i,"before"),S=l?a:d(r,i,"after"),L=l&&y&&T?u:m.right):(N=l?d(t,i,"before"):a,A=!l&&g&&x?u:b.right,S=!l&&y&&T?a:m.left,L=l?d(r,i,"after"):u),c(N,b.top,A-N,b.bottom),b.bottom<m.top&&c(a,b.bottom,null,m.top),c(S,m.top,L-S,m.bottom)}(!o||ge(b,o)<0)&&(o=b),ge(m,o)<0&&(o=m),(!s||ge(b,s)<0)&&(s=b),ge(m,s)<0&&(s=m)})),{start:o,end:s}}var h=r.from(),p=r.to();if(h.line==p.line)f(h.line,h.ch,p.ch);else{var d=$t(i,h.line),v=$t(i,p.line),E=Gr(d)==Gr(v),b=f(h.line,h.ch,E?d.text.length+1:null).end,m=f(p.line,E?0:null,p.ch).start;E&&(b.top<m.top-2?(c(b.right,b.top,null,b.bottom),c(a,m.top,m.left,m.bottom)):c(b.right,b.top,m.left-b.right,b.bottom)),b.bottom<m.top&&c(a,b.bottom,null,m.top)}n.appendChild(o)}function xe(t){if(t.state.focused){var r=t.display;clearInterval(r.blinker);var n=!0;r.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?r.blinker=setInterval((function(){return r.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Te(t){t.state.focused||(t.display.input.focus(),Ne(t))}function Ie(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,Ae(t))}),100)}function Ne(t,r){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(dt(t,"focus",t,r),t.state.focused=!0,k(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),u&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xe(t))}function Ae(t,r){t.state.delayingBlurEvent||(t.state.focused&&(dt(t,"blur",t,r),t.state.focused=!1,S(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Se(t){for(var r=t.display,n=r.lineDiv.offsetTop,e=0;e<r.view.length;e++){var i=r.view[e],o=t.options.lineWrapping,u=void 0,l=0;if(!i.hidden){if(s&&a<8){var c=i.node.offsetTop+i.node.offsetHeight;u=c-n,n=c}else{var f=i.node.getBoundingClientRect();u=f.bottom-f.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var h=i.line.height-u;if((h>.005||h<-.005)&&(Xt(i.line,u),Le(i.line),i.rest))for(var p=0;p<i.rest.length;p++)Le(i.rest[p]);if(l>t.display.sizerWidth){var d=Math.ceil(l/ie(t.display));d>t.display.maxLineLength&&(t.display.maxLineLength=d,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function Le(t){if(t.widgets)for(var r=0;r<t.widgets.length;++r){var n=t.widgets[r],e=n.node.parentNode;e&&(n.height=e.offsetHeight)}}function Ce(t,r,n){var e=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;e=Math.floor(e-In(t));var i=n&&null!=n.bottom?n.bottom:e+t.wrapper.clientHeight,o=Qt(r,e),s=Qt(r,i);if(n&&n.ensure){var a=n.ensure.from.line,u=n.ensure.to.line;a<o?(o=a,s=Qt(r,qr($t(r,a))+t.wrapper.clientHeight)):Math.min(u,r.lastLine())>=s&&(o=Qt(r,qr($t(r,u))-t.wrapper.clientHeight),s=u)}return{from:o,to:Math.max(s,o+1)}}function Re(t,r){var n=t.display,e=ee(t.display);r.top<0&&(r.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=Cn(t),s={};r.bottom-r.top>o&&(r.bottom=r.top+o);var a=t.doc.height+Nn(n),u=r.bottom>a-e;if(r.top<i)s.scrollTop=r.top<e?0:r.top;else if(r.bottom>i+o){var l=Math.min(r.top,(u?a:r.bottom)-o);l!=i&&(s.scrollTop=l)}var c=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft,f=Ln(t)-(t.options.fixedGutter?n.gutters.offsetWidth:0),h=r.right-r.left>f;return h&&(r.right=r.left+f),r.left<10?s.scrollLeft=0:r.left<c?s.scrollLeft=Math.max(0,r.left-(h?0:10)):r.right>f+c-3&&(s.scrollLeft=r.right+(h?0:10)-f),s}function we(t,r){null!=r&&(ke(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+r)}function Oe(t){ke(t);var r=t.getCursor();t.curOp.scrollToPos={from:r,to:r,margin:t.options.cursorScrollMargin}}function _e(t,r,n){null==r&&null==n||ke(t),null!=r&&(t.curOp.scrollLeft=r),null!=n&&(t.curOp.scrollTop=n)}function ke(t){var r=t.curOp.scrollToPos;r&&(t.curOp.scrollToPos=null,Pe(t,Yn(t,r.from),Yn(t,r.to),r.margin))}function Pe(t,r,n,e){var i=Re(t,{left:Math.min(r.left,n.left),top:Math.min(r.top,n.top)-e,right:Math.max(r.right,n.right),bottom:Math.max(r.bottom,n.bottom)+e});_e(t,i.scrollLeft,i.scrollTop)}function De(t,r){Math.abs(t.doc.scrollTop-r)<2||(n||ui(t,{top:r}),Me(t,r,!0),n&&ui(t),ei(t,100))}function Me(t,r,n){r=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,r)),(t.display.scroller.scrollTop!=r||n)&&(t.doc.scrollTop=r,t.display.scrollbars.setScrollTop(r),t.display.scroller.scrollTop!=r&&(t.display.scroller.scrollTop=r))}function je(t,r,n,e){r=Math.max(0,Math.min(r,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?r==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-r)<2)&&!e||(t.doc.scrollLeft=r,fi(t),t.display.scroller.scrollLeft!=r&&(t.display.scroller.scrollLeft=r),t.display.scrollbars.setScrollLeft(r))}function Ge(t){var r=t.display,n=r.gutters.offsetWidth,e=Math.round(t.doc.height+Nn(t.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:e,scrollHeight:e+Sn(t)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:n}}var Fe=function(t,r,n){this.cm=n;var e=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e.tabIndex=i.tabIndex=-1,t(e),t(i),ft(e,"scroll",(function(){e.clientHeight&&r(e.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&r(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fe.prototype.update=function(t){var r=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,e=t.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=r?e+"px":"0",this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+(t.viewHeight-(r?e:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0"),r?(this.horiz.style.display="block",this.horiz.style.right=n?e+"px":"0",this.horiz.style.left=t.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+(t.viewWidth-t.barLeft-(n?e:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&t.clientHeight>0&&(0==e&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?e:0,bottom:r?e:0}},Fe.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fe.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fe.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=m&&!p?"12px":"18px",this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Fe.prototype.enableZeroWidthBar=function(t,r,n){t.style.pointerEvents="auto",r.set(1e3,(function e(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":r.set(1e3,e)}))},Fe.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ue=function(){};function Be(t,r){r||(r=Ge(t));var n=t.display.barWidth,e=t.display.barHeight;Ve(t,r);for(var i=0;i<4&&n!=t.display.barWidth||e!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Se(t),Ve(t,Ge(t)),n=t.display.barWidth,e=t.display.barHeight}function Ve(t,r){var n=t.display,e=n.scrollbars.update(r);n.sizer.style.paddingRight=(n.barWidth=e.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=e.bottom)+"px",n.heightForcer.style.borderBottom=e.bottom+"px solid transparent",e.right&&e.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=e.bottom+"px",n.scrollbarFiller.style.width=e.right+"px"):n.scrollbarFiller.style.display="",e.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=e.bottom+"px",n.gutterFiller.style.width=r.gutterWidth+"px"):n.gutterFiller.style.display=""}Ue.prototype.update=function(){return{bottom:0,right:0}},Ue.prototype.setScrollLeft=function(){},Ue.prototype.setScrollTop=function(){},Ue.prototype.clear=function(){};var qe={native:Fe,null:Ue};function He(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&S(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new qe[t.options.scrollbarStyle]((function(r){t.display.wrapper.insertBefore(r,t.display.scrollbarFiller),ft(r,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),r.setAttribute("cm-not-content","true")}),(function(r,n){"horizontal"==n?je(t,r):De(t,r)}),t),t.display.scrollbars.addClass&&k(t.display.wrapper,t.display.scrollbars.addClass)}var ze=0;function $e(t){var r;t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++ze},r=t.curOp,sn?sn.ops.push(r):r.ownsGroup=sn={ops:[r],delayedCallbacks:[]}}function We(t){var r=t.curOp;r&&function(t){var r=t.ownsGroup;if(r)try{!function(t){var r=t.delayedCallbacks,n=0;do{for(;n<r.length;n++)r[n].call(null);for(var e=0;e<t.ops.length;e++){var i=t.ops[e];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<r.length)}(r)}finally{sn=null,function(t){for(var r=0;r<t.ops.length;r++)t.ops[r].cm.curOp=null;!function(t){for(var r=t.ops,n=0;n<r.length;n++)Ye(r[n]);for(var e=0;e<r.length;e++)Xe(r[e]);for(var i=0;i<r.length;i++)Ze(r[i]);for(var o=0;o<r.length;o++)Qe(r[o]);for(var s=0;s<r.length;s++)Ke(r[s])}(t)}(r)}}(r)}function Ye(t){var r=t.cm,n=r.display;!function(t){var r=t.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Sn(t)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Sn(t)+"px",r.scrollbarsClipped=!0)}(r),t.updateMaxLine&&zr(r),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&r.options.lineWrapping,t.update=t.mustUpdate&&new oi(r,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Xe(t){t.updatedDisplay=t.mustUpdate&&si(t.cm,t.update)}function Ze(t){var r=t.cm,n=r.display;t.updatedDisplay&&Se(r),t.barMeasure=Ge(r),n.maxLineChanged&&!r.options.lineWrapping&&(t.adjustWidthTo=wn(r,n.maxLine,n.maxLine.text.length).left+3,r.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Sn(r)+r.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Ln(r))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Qe(t){var r=t.cm;null!=t.adjustWidthTo&&(r.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<r.doc.scrollLeft&&je(r,Math.min(r.display.scroller.scrollLeft,t.maxScrollLeft),!0),r.display.maxLineChanged=!1);var n=t.focus&&t.focus==_();t.preparedSelection&&r.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=r.doc.height)&&Be(r,t.barMeasure),t.updatedDisplay&&ci(r,t.barMeasure),t.selectionChanged&&xe(r),r.state.focused&&t.updateInput&&r.display.input.reset(t.typing),n&&Te(t.cm)}function Ke(t){var r=t.cm,n=r.display,e=r.doc;t.updatedDisplay&&ai(r,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Me(r,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&je(r,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,r){if(!vt(t,"scrollCursorIntoView")){var n=t.display,e=n.sizer.getBoundingClientRect(),i=null;if(r.top+e.top<0?i=!0:r.bottom+e.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!d){var o=R("div","",null,"position: absolute;\n top: "+(r.top-n.viewOffset-In(t.display))+"px;\n height: "+(r.bottom-r.top+Sn(t)+n.barHeight)+"px;\n left: "+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(r,function(t,r,n,e){var i;null==e&&(e=0),t.options.lineWrapping||r!=n||(n="before"==(r=r.ch?tr(r.line,"before"==r.sticky?r.ch-1:r.ch,"after"):r).sticky?tr(r.line,r.ch+1,"before"):r);for(var o=0;o<5;o++){var s=!1,a=Wn(t,r),u=n&&n!=r?Wn(t,n):a,l=Re(t,i={left:Math.min(a.left,u.left),top:Math.min(a.top,u.top)-e,right:Math.max(a.left,u.left),bottom:Math.max(a.bottom,u.bottom)+e}),c=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=l.scrollTop&&(De(t,l.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(s=!0)),null!=l.scrollLeft&&(je(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(s=!0)),!s)break}return i}(r,ar(e,t.scrollToPos.from),ar(e,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var s=0;s<i.length;++s)i[s].lines.length||dt(i[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&dt(o[a],"unhide");n.wrapper.offsetHeight&&(e.scrollTop=r.display.scroller.scrollTop),t.changeObjs&&dt(r,"changes",r,t.changeObjs),t.update&&t.update.finish()}function Je(t,r){if(t.curOp)return r();$e(t);try{return r()}finally{We(t)}}function ti(t,r){return function(){if(t.curOp)return r.apply(t,arguments);$e(t);try{return r.apply(t,arguments)}finally{We(t)}}}function ri(t){return function(){if(this.curOp)return t.apply(this,arguments);$e(this);try{return t.apply(this,arguments)}finally{We(this)}}}function ni(t){return function(){var r=this.cm;if(!r||r.curOp)return t.apply(this,arguments);$e(r);try{return t.apply(this,arguments)}finally{We(r)}}}function ei(t,r){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(r,M(ii,t))}function ii(t){var r=t.doc;if(!(r.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,e=pr(t,r.highlightFrontier),i=[];r.iter(e.line,Math.min(r.first+r.size,t.display.viewTo+500),(function(o){if(e.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Vt(r.mode,e.state):null,u=fr(t,o,e,!0);a&&(e.state=a),o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!s||s.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!f&&h<s.length;++h)f=s[h]!=o.styles[h];f&&i.push(e.line),o.stateAfter=e.save(),e.nextLine()}else o.text.length<=t.options.maxHighlightLength&&dr(t,o.text,e),o.stateAfter=e.line%5==0?e.save():null,e.nextLine();if(+new Date>n)return ei(t,t.options.workDelay),!0})),r.highlightFrontier=e.line,r.modeFrontier=Math.max(r.modeFrontier,e.line),i.length&&Je(t,(function(){for(var r=0;r<i.length;r++)he(t,i[r],"text")}))}}var oi=function(t,r,n){var e=t.display;this.viewport=r,this.visible=Ce(e,t.doc,r),this.editorIsHidden=!e.wrapper.offsetWidth,this.wrapperHeight=e.wrapper.clientHeight,this.wrapperWidth=e.wrapper.clientWidth,this.oldDisplayWidth=Ln(t),this.force=n,this.dims=oe(t),this.events=[]};function si(t,r){var n=t.display,e=t.doc;if(r.editorIsHidden)return pe(t),!1;if(!r.force&&r.visible.from>=n.viewFrom&&r.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==ve(t))return!1;hi(t)&&(pe(t),r.dims=oe(t));var i=e.first+e.size,o=Math.max(r.visible.from-t.options.viewportMargin,e.first),s=Math.min(i,r.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(e.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),Tr&&(o=Fr(t.doc,o),s=Ur(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=r.wrapperHeight||n.lastWrapWidth!=r.wrapperWidth;!function(t,r,n){var e=t.display;0==e.view.length||r>=e.viewTo||n<=e.viewFrom?(e.view=on(t,r,n),e.viewFrom=r):(e.viewFrom>r?e.view=on(t,r,e.viewFrom).concat(e.view):e.viewFrom<r&&(e.view=e.view.slice(ce(t,r))),e.viewFrom=r,e.viewTo<n?e.view=e.view.concat(on(t,e.viewTo,n)):e.viewTo>n&&(e.view=e.view.slice(0,ce(t,n)))),e.viewTo=n}(t,o,s),n.viewOffset=qr($t(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=ve(t);if(!a&&0==l&&!r.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var r=_();if(!r||!O(t.display.lineDiv,r))return null;var n={activeElt:r};if(window.getSelection){var e=window.getSelection();e.anchorNode&&e.extend&&O(t.display.lineDiv,e.anchorNode)&&(n.anchorNode=e.anchorNode,n.anchorOffset=e.anchorOffset,n.focusNode=e.focusNode,n.focusOffset=e.focusOffset)}return n}(t);return l>4&&(n.lineDiv.style.display="none"),function(t,r,n){var e=t.display,i=t.options.lineNumbers,o=e.lineDiv,s=o.firstChild;function a(r){var n=r.nextSibling;return u&&m&&t.display.currentWheelTarget==r?r.style.display="none":r.parentNode.removeChild(r),n}for(var l=e.view,c=e.viewFrom,f=0;f<l.length;f++){var h=l[f];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;s!=h.node;)s=a(s);var p=i&&null!=r&&r<=c&&h.lineNumber;h.changes&&(U(h.changes,"gutter")>-1&&(p=!1),cn(t,h,c,n)),p&&(L(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Jt(t.options,c)))),s=h.node.nextSibling}else{var d=bn(t,h,c,n);o.insertBefore(d,s)}c+=h.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,r.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=_()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&O(document.body,t.anchorNode)&&O(document.body,t.focusNode))){var r=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),r.removeAllRanges(),r.addRange(n),r.extend(t.focusNode,t.focusOffset)}}(c),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=r.wrapperHeight,n.lastWrapWidth=r.wrapperWidth,ei(t,400)),n.updateLineNumbers=null,!0}function ai(t,r){for(var n=r.viewport,e=!0;;e=!1){if(e&&t.options.lineWrapping&&r.oldDisplayWidth!=Ln(t))e&&(r.visible=Ce(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Nn(t.display)-Cn(t),n.top)}),r.visible=Ce(t.display,t.doc,n),r.visible.from>=t.display.viewFrom&&r.visible.to<=t.display.viewTo)break;if(!si(t,r))break;Se(t);var i=Ge(t);Ee(t),Be(t,i),ci(t,i),r.force=!1}r.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(r.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function ui(t,r){var n=new oi(t,r);if(si(t,n)){Se(t),ai(t,n);var e=Ge(t);Ee(t),Be(t,e),ci(t,e),n.finish()}}function li(t){t.sizer.style.marginLeft=t.gutters.offsetWidth+"px"}function ci(t,r){t.display.sizer.style.minHeight=r.docHeight+"px",t.display.heightForcer.style.top=r.docHeight+"px",t.display.gutters.style.height=r.docHeight+t.display.barHeight+Sn(t)+"px"}function fi(t){var r=t.display,n=r.view;if(r.alignWidgets||r.gutters.firstChild&&t.options.fixedGutter){for(var e=se(r)-r.scroller.scrollLeft+t.doc.scrollLeft,i=r.gutters.offsetWidth,o=e+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var u=0;u<a.length;u++)a[u].style.left=o}t.options.fixedGutter&&(r.gutters.style.left=e+i+"px")}}function hi(t){if(!t.options.lineNumbers)return!1;var r=t.doc,n=Jt(t.options,r.first+r.size-1),e=t.display;if(n.length!=e.lineNumChars){var i=e.measure.appendChild(R("div",[R("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,s=i.offsetWidth-o;return e.lineGutter.style.width="",e.lineNumInnerWidth=Math.max(o,e.lineGutter.offsetWidth-s)+1,e.lineNumWidth=e.lineNumInnerWidth+s,e.lineNumChars=e.lineNumInnerWidth?n.length:-1,e.lineGutter.style.width=e.lineNumWidth+"px",li(t.display),!0}return!1}function pi(t,r){for(var n=[],e=!1,i=0;i<t.length;i++){var o=t[i],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!r)continue;e=!0}n.push({className:o,style:s})}return r&&!e&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function di(t){var r=t.gutters,n=t.gutterSpecs;L(r),t.lineGutter=null;for(var e=0;e<n.length;++e){var i=n[e],o=i.className,s=i.style,a=r.appendChild(R("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&(t.lineGutter=a,a.style.width=(t.lineNumWidth||1)+"px")}r.style.display=n.length?"":"none",li(t)}function vi(t){di(t.display),fe(t),fi(t)}function Ei(t,r,e,i){var o=this;this.input=e,o.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=w("div",null,"CodeMirror-code"),o.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=R("div",null,"CodeMirror-cursors"),o.measure=R("div",null,"CodeMirror-measure"),o.lineMeasure=R("div",null,"CodeMirror-measure"),o.lineSpace=w("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=w("div",[o.lineSpace],"CodeMirror-lines");o.mover=R("div",[l],null,"position: relative"),o.sizer=R("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=R("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=R("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=R("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=R("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),s&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),u||n&&b||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=r.first,o.reportedViewFrom=o.reportedViewTo=r.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=pi(i.gutters,i.lineNumbers),di(o),e.init(o)}oi.prototype.signal=function(t,r){bt(t,r)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)dt.apply(null,this.events[t])};var bi=0,mi=null;function gi(t){var r=t.wheelDeltaX,n=t.wheelDeltaY;return null==r&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(r=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:r,y:n}}function yi(t){var r=gi(t);return r.x*=mi,r.y*=mi,r}function xi(t,r){var e=gi(r),i=e.x,o=e.y,s=t.display,a=s.scroller,l=a.scrollHeight>a.clientHeight;if(i&&a.scrollWidth>a.clientWidth||o&&l){if(o&&m&&u)t:for(var c=r.target,h=s.view;c!=a;c=c.parentNode)for(var p=0;p<h.length;p++)if(h[p].node==c){t.display.currentWheelTarget=c;break t}if(i&&!n&&!f&&null!=mi)return o&&l&&De(t,Math.max(0,a.scrollTop+o*mi)),je(t,Math.max(0,a.scrollLeft+i*mi)),(!o||o&&l)&>(r),void(s.wheelStartX=null);if(o&&null!=mi){var d=o*mi,v=t.doc.scrollTop,E=v+s.wrapper.clientHeight;d<0?v=Math.max(0,v+d-50):E=Math.min(t.doc.height,E+d+50),ui(t,{top:v,bottom:E})}bi<20&&(null==s.wheelStartX?(s.wheelStartX=a.scrollLeft,s.wheelStartY=a.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var t=a.scrollLeft-s.wheelStartX,r=a.scrollTop-s.wheelStartY,n=r&&s.wheelDY&&r/s.wheelDY||t&&s.wheelDX&&t/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(mi=(mi*bi+n)/(bi+1),++bi)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}s?mi=-.53:n?mi=15:c?mi=-.7:h&&(mi=-1/3);var Ti=function(t,r){this.ranges=t,this.primIndex=r};Ti.prototype.primary=function(){return this.ranges[this.primIndex]},Ti.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r],e=t.ranges[r];if(!nr(n.anchor,e.anchor)||!nr(n.head,e.head))return!1}return!0},Ti.prototype.deepCopy=function(){for(var t=[],r=0;r<this.ranges.length;r++)t[r]=new Ii(er(this.ranges[r].anchor),er(this.ranges[r].head));return new Ti(t,this.primIndex)},Ti.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Ti.prototype.contains=function(t,r){r||(r=t);for(var n=0;n<this.ranges.length;n++){var e=this.ranges[n];if(rr(r,e.from())>=0&&rr(t,e.to())<=0)return n}return-1};var Ii=function(t,r){this.anchor=t,this.head=r};function Ni(t,r,n){var e=t&&t.options.selectionsMayTouch,i=r[n];r.sort((function(t,r){return rr(t.from(),r.from())})),n=U(r,i);for(var o=1;o<r.length;o++){var s=r[o],a=r[o-1],u=rr(a.to(),s.from());if(e&&!s.empty()?u>0:u>=0){var l=or(a.from(),s.from()),c=ir(a.to(),s.to()),f=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,r.splice(--o,2,new Ii(f?c:l,f?l:c))}}return new Ti(r,n)}function Ai(t,r){return new Ti([new Ii(t,r||t)],0)}function Si(t){return t.text?tr(t.from.line+t.text.length-1,Y(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Li(t,r){if(rr(t,r.from)<0)return t;if(rr(t,r.to)<=0)return Si(r);var n=t.line+r.text.length-(r.to.line-r.from.line)-1,e=t.ch;return t.line==r.to.line&&(e+=Si(r).ch-r.to.ch),tr(n,e)}function Ci(t,r){for(var n=[],e=0;e<t.sel.ranges.length;e++){var i=t.sel.ranges[e];n.push(new Ii(Li(i.anchor,r),Li(i.head,r)))}return Ni(t.cm,n,t.sel.primIndex)}function Ri(t,r,n){return t.line==r.line?tr(n.line,t.ch-r.ch+n.ch):tr(n.line+(t.line-r.line),t.ch)}function wi(t){t.doc.mode=Ft(t.options,t.doc.modeOption),Oi(t)}function Oi(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ei(t,100),t.state.modeGen++,t.curOp&&fe(t)}function _i(t,r){return 0==r.from.ch&&0==r.to.ch&&""==Y(r.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function ki(t,r,n,e){function i(t){return n?n[t]:null}function o(t,n,i){!function(t,r,n,e){t.text=r,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Cr(t),Rr(t,n);var i=e?e(t):1;i!=t.height&&Xt(t,i)}(t,n,i,e),un(t,"change",t,r)}function s(t,r){for(var n=[],o=t;o<r;++o)n.push(new $r(l[o],i(o),e));return n}var a=r.from,u=r.to,l=r.text,c=$t(t,a.line),f=$t(t,u.line),h=Y(l),p=i(l.length-1),d=u.line-a.line;if(r.full)t.insert(0,s(0,l.length)),t.remove(l.length,t.size-l.length);else if(_i(t,r)){var v=s(0,l.length-1);o(f,f.text,p),d&&t.remove(a.line,d),v.length&&t.insert(a.line,v)}else if(c==f)if(1==l.length)o(c,c.text.slice(0,a.ch)+h+c.text.slice(u.ch),p);else{var E=s(1,l.length-1);E.push(new $r(h+c.text.slice(u.ch),p,e)),o(c,c.text.slice(0,a.ch)+l[0],i(0)),t.insert(a.line+1,E)}else if(1==l.length)o(c,c.text.slice(0,a.ch)+l[0]+f.text.slice(u.ch),i(0)),t.remove(a.line+1,d);else{o(c,c.text.slice(0,a.ch)+l[0],i(0)),o(f,h+f.text.slice(u.ch),p);var b=s(1,l.length-1);d>1&&t.remove(a.line+1,d-1),t.insert(a.line+1,b)}un(t,"change",t,r)}function Pi(t,r,n){!function t(e,i,o){if(e.linked)for(var s=0;s<e.linked.length;++s){var a=e.linked[s];if(a.doc!=i){var u=o&&a.sharedHist;n&&!u||(r(a.doc,u),t(a.doc,e,u))}}}(t,null,!0)}function Di(t,r){if(r.cm)throw new Error("This document is already in use.");t.doc=r,r.cm=t,ue(t),wi(t),Mi(t),t.options.lineWrapping||zr(t),t.options.mode=r.modeOption,fe(t)}function Mi(t){("rtl"==t.doc.direction?k:S)(t.display.lineDiv,"CodeMirror-rtl")}function ji(t){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=t||1}function Gi(t,r){var n={from:er(r.from),to:Si(r),text:Wt(t,r.from,r.to)};return Vi(t,n,r.from.line,r.to.line+1),Pi(t,(function(t){return Vi(t,n,r.from.line,r.to.line+1)}),!0),n}function Fi(t){for(;t.length&&Y(t).ranges;)t.pop()}function Ui(t,r,n,e){var i=t.history;i.undone.length=0;var o,s,a=+new Date;if((i.lastOp==e||i.lastOrigin==r.origin&&r.origin&&("+"==r.origin.charAt(0)&&i.lastModTime>a-(t.cm?t.cm.options.historyEventDelay:500)||"*"==r.origin.charAt(0)))&&(o=function(t,r){return r?(Fi(t.done),Y(t.done)):t.done.length&&!Y(t.done).ranges?Y(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Y(t.done)):void 0}(i,i.lastOp==e)))s=Y(o.changes),0==rr(r.from,r.to)&&0==rr(r.from,s.to)?s.to=Si(r):o.changes.push(Gi(t,r));else{var u=Y(i.done);for(u&&u.ranges||Bi(t.sel,i.done),o={changes:[Gi(t,r)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=e,i.lastOrigin=i.lastSelOrigin=r.origin,s||dt(t,"historyAdded")}function Bi(t,r){var n=Y(r);n&&n.ranges&&n.equals(t)||r.push(t)}function Vi(t,r,n,e){var i=r["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,e),(function(n){n.markedSpans&&((i||(i=r["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function qi(t){if(!t)return null;for(var r,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?r||(r=t.slice(0,n)):r&&r.push(t[n]);return r?r.length?r:null:t}function Hi(t,r){var n=function(t,r){var n=r["spans_"+t.id];if(!n)return null;for(var e=[],i=0;i<r.text.length;++i)e.push(qi(n[i]));return e}(t,r),e=Sr(t,r);if(!n)return e;if(!e)return n;for(var i=0;i<n.length;++i){var o=n[i],s=e[i];if(o&&s)t:for(var a=0;a<s.length;++a){for(var u=s[a],l=0;l<o.length;++l)if(o[l].marker==u.marker)continue t;o.push(u)}else s&&(n[i]=s)}return n}function zi(t,r,n){for(var e=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)e.push(n?Ti.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];e.push({changes:a});for(var u=0;u<s.length;++u){var l=s[u],c=void 0;if(a.push({from:l.from,to:l.to,text:l.text}),r)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&U(r,Number(c[1]))>-1&&(Y(a)[f]=l[f],delete l[f])}}}return e}function $i(t,r,n,e){if(e){var i=t.anchor;if(n){var o=rr(r,i)<0;o!=rr(n,i)<0?(i=r,r=n):o!=rr(r,n)<0&&(r=n)}return new Ii(i,r)}return new Ii(n||r,r)}function Wi(t,r,n,e,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ki(t,new Ti([$i(t.sel.primary(),r,n,i)],0),e)}function Yi(t,r,n){for(var e=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)e[o]=$i(t.sel.ranges[o],r[o],null,i);Ki(t,Ni(t.cm,e,t.sel.primIndex),n)}function Xi(t,r,n,e){var i=t.sel.ranges.slice(0);i[r]=n,Ki(t,Ni(t.cm,i,t.sel.primIndex),e)}function Zi(t,r,n,e){Ki(t,Ai(r,n),e)}function Qi(t,r,n){var e=t.history.done,i=Y(e);i&&i.ranges?(e[e.length-1]=r,Ji(t,r,n)):Ki(t,r,n)}function Ki(t,r,n){Ji(t,r,n),function(t,r,n,e){var i=t.history,o=e&&e.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,r,n,e){var i=r.charAt(0);return"*"==i||"+"==i&&n.ranges.length==e.ranges.length&&n.somethingSelected()==e.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,Y(i.done),r))?i.done[i.done.length-1]=r:Bi(r,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,e&&!1!==e.clearRedo&&Fi(i.undone)}(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function Ji(t,r,n){(bt(t,"beforeSelectionChange")||t.cm&&bt(t.cm,"beforeSelectionChange"))&&(r=function(t,r,n){var e={ranges:r.ranges,update:function(r){this.ranges=[];for(var n=0;n<r.length;n++)this.ranges[n]=new Ii(ar(t,r[n].anchor),ar(t,r[n].head))},origin:n&&n.origin};return dt(t,"beforeSelectionChange",t,e),t.cm&&dt(t.cm,"beforeSelectionChange",t.cm,e),e.ranges!=r.ranges?Ni(t.cm,e.ranges,e.ranges.length-1):r}(t,r,n));var e=n&&n.bias||(rr(r.primary().head,t.sel.primary().head)<0?-1:1);to(t,no(t,r,e,!0)),n&&!1===n.scroll||!t.cm||Oe(t.cm)}function to(t,r){r.equals(t.sel)||(t.sel=r,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,Et(t.cm)),un(t,"cursorActivity",t))}function ro(t){to(t,no(t,t.sel,null,!1))}function no(t,r,n,e){for(var i,o=0;o<r.ranges.length;o++){var s=r.ranges[o],a=r.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],u=io(t,s.anchor,a&&a.anchor,n,e),l=io(t,s.head,a&&a.head,n,e);(i||u!=s.anchor||l!=s.head)&&(i||(i=r.ranges.slice(0,o)),i[o]=new Ii(u,l))}return i?Ni(t.cm,i,r.primIndex):r}function eo(t,r,n,e,i){var o=$t(t,r.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],u=a.marker,l="selectLeft"in u?!u.selectLeft:u.inclusiveLeft,c="selectRight"in u?!u.selectRight:u.inclusiveRight;if((null==a.from||(l?a.from<=r.ch:a.from<r.ch))&&(null==a.to||(c?a.to>=r.ch:a.to>r.ch))){if(i&&(dt(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!u.atomic)continue;if(n){var f=u.find(e<0?1:-1),h=void 0;if((e<0?c:l)&&(f=oo(t,f,-e,f&&f.line==r.line?o:null)),f&&f.line==r.line&&(h=rr(f,n))&&(e<0?h<0:h>0))return eo(t,f,r,e,i)}var p=u.find(e<0?-1:1);return(e<0?l:c)&&(p=oo(t,p,e,p.line==r.line?o:null)),p?eo(t,p,r,e,i):null}}return r}function io(t,r,n,e,i){var o=e||1;return eo(t,r,n,o,i)||!i&&eo(t,r,n,o,!0)||eo(t,r,n,-o,i)||!i&&eo(t,r,n,-o,!0)||(t.cantEdit=!0,tr(t.first,0))}function oo(t,r,n,e){return n<0&&0==r.ch?r.line>t.first?ar(t,tr(r.line-1)):null:n>0&&r.ch==(e||$t(t,r.line)).text.length?r.line<t.first+t.size-1?tr(r.line+1,0):null:new tr(r.line,r.ch+n)}function so(t){t.setSelection(tr(t.firstLine(),0),tr(t.lastLine()),V)}function ao(t,r,n){var e={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return e.canceled=!0}};return n&&(e.update=function(r,n,i,o){r&&(e.from=ar(t,r)),n&&(e.to=ar(t,n)),i&&(e.text=i),void 0!==o&&(e.origin=o)}),dt(t,"beforeChange",t,e),t.cm&&dt(t.cm,"beforeChange",t.cm,e),e.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:e.from,to:e.to,text:e.text,origin:e.origin}}function uo(t,r,n){if(t.cm){if(!t.cm.curOp)return ti(t.cm,uo)(t,r,n);if(t.cm.state.suppressEdits)return}if(!(bt(t,"beforeChange")||t.cm&&bt(t.cm,"beforeChange"))||(r=ao(t,r,!0))){var e=xr&&!n&&function(t,r,n){var e=null;if(t.iter(r.line,n.line+1,(function(t){if(t.markedSpans)for(var r=0;r<t.markedSpans.length;++r){var n=t.markedSpans[r].marker;!n.readOnly||e&&-1!=U(e,n)||(e||(e=[])).push(n)}})),!e)return null;for(var i=[{from:r,to:n}],o=0;o<e.length;++o)for(var s=e[o],a=s.find(0),u=0;u<i.length;++u){var l=i[u];if(!(rr(l.to,a.from)<0||rr(l.from,a.to)>0)){var c=[u,1],f=rr(l.from,a.from),h=rr(l.to,a.to);(f<0||!s.inclusiveLeft&&!f)&&c.push({from:l.from,to:a.from}),(h>0||!s.inclusiveRight&&!h)&&c.push({from:a.to,to:l.to}),i.splice.apply(i,c),u+=c.length-3}}return i}(t,r.from,r.to);if(e)for(var i=e.length-1;i>=0;--i)lo(t,{from:e[i].from,to:e[i].to,text:i?[""]:r.text,origin:r.origin});else lo(t,r)}}function lo(t,r){if(1!=r.text.length||""!=r.text[0]||0!=rr(r.from,r.to)){var n=Ci(t,r);Ui(t,r,n,t.cm?t.cm.curOp.id:NaN),ho(t,r,n,Sr(t,r));var e=[];Pi(t,(function(t,n){n||-1!=U(e,t.history)||(bo(t.history,r),e.push(t.history)),ho(t,r,null,Sr(t,r))}))}}function co(t,r,n){var e=t.cm&&t.cm.state.suppressEdits;if(!e||n){for(var i,o=t.history,s=t.sel,a="undo"==r?o.done:o.undone,u="undo"==r?o.undone:o.done,l=0;l<a.length&&(i=a[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=a.pop()).ranges){if(e)return void a.push(i);break}if(Bi(i,u),n&&!i.equals(t.sel))return void Ki(t,i,{clearRedo:!1});s=i}var c=[];Bi(s,u),u.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=bt(t,"beforeChange")||t.cm&&bt(t.cm,"beforeChange"),h=function(n){var e=i.changes[n];if(e.origin=r,f&&!ao(t,e,!1))return a.length=0,{};c.push(Gi(t,e));var o=n?Ci(t,e):Y(a);ho(t,e,o,Hi(t,e)),!n&&t.cm&&t.cm.scrollIntoView({from:e.from,to:Si(e)});var s=[];Pi(t,(function(t,r){r||-1!=U(s,t.history)||(bo(t.history,e),s.push(t.history)),ho(t,e,null,Hi(t,e))}))},p=i.changes.length-1;p>=0;--p){var d=h(p);if(d)return d.v}}}}function fo(t,r){if(0!=r&&(t.first+=r,t.sel=new Ti(X(t.sel.ranges,(function(t){return new Ii(tr(t.anchor.line+r,t.anchor.ch),tr(t.head.line+r,t.head.ch))})),t.sel.primIndex),t.cm)){fe(t.cm,t.first,t.first-r,r);for(var n=t.cm.display,e=n.viewFrom;e<n.viewTo;e++)he(t.cm,e,"gutter")}}function ho(t,r,n,e){if(t.cm&&!t.cm.curOp)return ti(t.cm,ho)(t,r,n,e);if(r.to.line<t.first)fo(t,r.text.length-1-(r.to.line-r.from.line));else if(!(r.from.line>t.lastLine())){if(r.from.line<t.first){var i=r.text.length-1-(t.first-r.from.line);fo(t,i),r={from:tr(t.first,0),to:tr(r.to.line+i,r.to.ch),text:[Y(r.text)],origin:r.origin}}var o=t.lastLine();r.to.line>o&&(r={from:r.from,to:tr(o,$t(t,o).text.length),text:[r.text[0]],origin:r.origin}),r.removed=Wt(t,r.from,r.to),n||(n=Ci(t,r)),t.cm?function(t,r,n){var e=t.doc,i=t.display,o=r.from,s=r.to,a=!1,u=o.line;t.options.lineWrapping||(u=Zt(Gr($t(e,o.line))),e.iter(u,s.line+1,(function(t){if(t==i.maxLine)return a=!0,!0}))),e.sel.contains(r.from,r.to)>-1&&Et(t),ki(e,r,n,ae(t)),t.options.lineWrapping||(e.iter(u,o.line+r.text.length,(function(t){var r=Hr(t);r>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=r,i.maxLineChanged=!0,a=!1)})),a&&(t.curOp.updateMaxLine=!0)),function(t,r){if(t.modeFrontier=Math.min(t.modeFrontier,r),!(t.highlightFrontier<r-10)){for(var n=t.first,e=r-1;e>n;e--){var i=$t(t,e).stateAfter;if(i&&(!(i instanceof lr)||e+i.lookAhead<r)){n=e+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(e,o.line),ei(t,400);var l=r.text.length-(s.line-o.line)-1;r.full?fe(t):o.line!=s.line||1!=r.text.length||_i(t.doc,r)?fe(t,o.line,s.line+1,l):he(t,o.line,"text");var c=bt(t,"changes"),f=bt(t,"change");if(f||c){var h={from:o,to:s,text:r.text,removed:r.removed,origin:r.origin};f&&un(t,"change",t,h),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(h)}t.display.selForContextMenu=null}(t.cm,r,e):ki(t,r,e),Ji(t,n,V),t.cantEdit&&io(t,tr(t.firstLine(),0))&&(t.cantEdit=!1)}}function po(t,r,n,e,i){var o;e||(e=n),rr(e,n)<0&&(n=(o=[e,n])[0],e=o[1]),"string"==typeof r&&(r=t.splitLines(r)),uo(t,{from:n,to:e,text:r,origin:i})}function vo(t,r,n,e){n<t.line?t.line+=e:r<t.line&&(t.line=r,t.ch=0)}function Eo(t,r,n,e){for(var i=0;i<t.length;++i){var o=t[i],s=!0;if(o.ranges){o.copied||((o=t[i]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)vo(o.ranges[a].anchor,r,n,e),vo(o.ranges[a].head,r,n,e)}else{for(var u=0;u<o.changes.length;++u){var l=o.changes[u];if(n<l.from.line)l.from=tr(l.from.line+e,l.from.ch),l.to=tr(l.to.line+e,l.to.ch);else if(r<=l.to.line){s=!1;break}}s||(t.splice(0,i+1),i=0)}}}function bo(t,r){var n=r.from.line,e=r.to.line,i=r.text.length-(e-n)-1;Eo(t.done,n,e,i),Eo(t.undone,n,e,i)}function mo(t,r,n,e){var i=r,o=r;return"number"==typeof r?o=$t(t,sr(t,r)):i=Zt(r),null==i?null:(e(o,i)&&t.cm&&he(t.cm,i,n),o)}function go(t){this.lines=t,this.parent=null;for(var r=0,n=0;n<t.length;++n)t[n].parent=this,r+=t[n].height;this.height=r}function yo(t){this.children=t;for(var r=0,n=0,e=0;e<t.length;++e){var i=t[e];r+=i.chunkSize(),n+=i.height,i.parent=this}this.size=r,this.height=n,this.parent=null}Ii.prototype.from=function(){return or(this.anchor,this.head)},Ii.prototype.to=function(){return ir(this.anchor,this.head)},Ii.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},go.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,r){for(var n=t,e=t+r;n<e;++n){var i=this.lines[n];this.height-=i.height,Wr(i),un(i,"delete")}this.lines.splice(t,r)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,r,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(r).concat(this.lines.slice(t));for(var e=0;e<r.length;++e)r[e].parent=this},iterN:function(t,r,n){for(var e=t+r;t<e;++t)if(n(this.lines[t]))return!0}},yo.prototype={chunkSize:function(){return this.size},removeInner:function(t,r){this.size-=r;for(var n=0;n<this.children.length;++n){var e=this.children[n],i=e.chunkSize();if(t<i){var o=Math.min(r,i-t),s=e.height;if(e.removeInner(t,o),this.height-=s-e.height,i==o&&(this.children.splice(n--,1),e.parent=null),0==(r-=o))break;t=0}else t-=i}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof go))){var a=[];this.collapse(a),this.children=[new go(a)],this.children[0].parent=this}},collapse:function(t){for(var r=0;r<this.children.length;++r)this.children[r].collapse(t)},insertInner:function(t,r,n){this.size+=r.length,this.height+=n;for(var e=0;e<this.children.length;++e){var i=this.children[e],o=i.chunkSize();if(t<=o){if(i.insertInner(t,r,n),i.lines&&i.lines.length>50){for(var s=i.lines.length%25+25,a=s;a<i.lines.length;){var u=new go(i.lines.slice(a,a+=25));i.height-=u.height,this.children.splice(++e,0,u),u.parent=this}i.lines=i.lines.slice(0,s),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var r=new yo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=r.size,t.height-=r.height;var n=U(t.parent.children,t);t.parent.children.splice(n+1,0,r)}else{var e=new yo(t.children);e.parent=t,t.children=[e,r],t=e}r.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,r,n){for(var e=0;e<this.children.length;++e){var i=this.children[e],o=i.chunkSize();if(t<o){var s=Math.min(r,o-t);if(i.iterN(t,s,n))return!0;if(0==(r-=s))break;t=0}else t-=o}}};var xo=function(t,r,n){if(n)for(var e in n)n.hasOwnProperty(e)&&(this[e]=n[e]);this.doc=t,this.node=r};function To(t,r,n){qr(r)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&we(t,n)}xo.prototype.clear=function(){var t=this.doc.cm,r=this.line.widgets,n=this.line,e=Zt(n);if(null!=e&&r){for(var i=0;i<r.length;++i)r[i]==this&&r.splice(i--,1);r.length||(n.widgets=null);var o=xn(this);Xt(n,Math.max(0,n.height-o)),t&&(Je(t,(function(){To(t,n,-o),he(t,e,"widget")})),un(t,"lineWidgetCleared",t,this,e))}},xo.prototype.changed=function(){var t=this,r=this.height,n=this.doc.cm,e=this.line;this.height=null;var i=xn(this)-r;i&&(Br(this.doc,e)||Xt(e,e.height+i),n&&Je(n,(function(){n.curOp.forceUpdate=!0,To(n,e,i),un(n,"lineWidgetChanged",n,t,Zt(e))})))},mt(xo);var Io=0,No=function(t,r){this.lines=[],this.type=r,this.doc=t,this.id=++Io};function Ao(t,r,n,e,i){if(e&&e.shared)return function(t,r,n,e,i){(e=j(e)).shared=!1;var o=[Ao(t,r,n,e,i)],s=o[0],a=e.widgetNode;return Pi(t,(function(t){a&&(e.widgetNode=a.cloneNode(!0)),o.push(Ao(t,ar(t,r),ar(t,n),e,i));for(var u=0;u<t.linked.length;++u)if(t.linked[u].isParent)return;s=Y(o)})),new So(o,s)}(t,r,n,e,i);if(t.cm&&!t.cm.curOp)return ti(t.cm,Ao)(t,r,n,e,i);var o=new No(t,i),s=rr(r,n);if(e&&j(e,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=w("span",[o.replacedWith],"CodeMirror-widget"),e.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),e.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(jr(t,r.line,r,n,o)||r.line!=n.line&&jr(t,n.line,r,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tr=!0}o.addToHistory&&Ui(t,{from:r,to:n,origin:"markText"},t.sel,NaN);var a,u=r.line,l=t.cm;if(t.iter(u,n.line+1,(function(t){l&&o.collapsed&&!l.options.lineWrapping&&Gr(t)==l.display.maxLine&&(a=!0),o.collapsed&&u!=r.line&&Xt(t,0),function(t,r){t.markedSpans=t.markedSpans?t.markedSpans.concat([r]):[r],r.marker.attachLine(t)}(t,new Ir(o,u==r.line?r.ch:null,u==n.line?n.ch:null)),++u})),o.collapsed&&t.iter(r.line,n.line+1,(function(r){Br(t,r)&&Xt(r,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xr=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Io,o.atomic=!0),l){if(a&&(l.curOp.updateMaxLine=!0),o.collapsed)fe(l,r.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=r.line;c<=n.line;c++)he(l,c,"text");o.atomic&&ro(l.doc),un(l,"markerAdded",l,o)}return o}No.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&$e(t),bt(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var e=null,i=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=Nr(s.markedSpans,this);t&&!this.collapsed?he(t,Zt(s),"text"):t&&(null!=a.to&&(i=Zt(s)),null!=a.from&&(e=Zt(s))),s.markedSpans=Ar(s.markedSpans,a),null==a.from&&this.collapsed&&!Br(this.doc,s)&&t&&Xt(s,ee(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var l=Gr(this.lines[u]),c=Hr(l);c>t.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=e&&t&&this.collapsed&&fe(t,e,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ro(t.doc)),t&&un(t,"markerCleared",t,this,e,i),r&&We(t),this.parent&&this.parent.clear()}},No.prototype.find=function(t,r){var n,e;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],s=Nr(o.markedSpans,this);if(null!=s.from&&(n=tr(r?o:Zt(o),s.from),-1==t))return n;if(null!=s.to&&(e=tr(r?o:Zt(o),s.to),1==t))return e}return n&&{from:n,to:e}},No.prototype.changed=function(){var t=this,r=this.find(-1,!0),n=this,e=this.doc.cm;r&&e&&Je(e,(function(){var i=r.line,o=Zt(r.line),s=On(e,o);if(s&&(Gn(s),e.curOp.selectionChanged=e.curOp.forceUpdate=!0),e.curOp.updateMaxLine=!0,!Br(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var u=xn(n)-a;u&&Xt(i,i.height+u)}un(e,"markerChanged",e,t)}))},No.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;r.maybeHiddenMarkers&&-1!=U(r.maybeHiddenMarkers,this)||(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},No.prototype.detachLine=function(t){if(this.lines.splice(U(this.lines,t),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},mt(No);var So=function(t,r){this.markers=t,this.primary=r;for(var n=0;n<t.length;++n)t[n].parent=this};function Lo(t){return t.findMarks(tr(t.first,0),t.clipPos(tr(t.lastLine())),(function(t){return t.parent}))}function Co(t){for(var r=function(r){var n=t[r],e=[n.primary.doc];Pi(n.primary.doc,(function(t){return e.push(t)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(e,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)r(n)}So.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();un(this,"clear")}},So.prototype.find=function(t,r){return this.primary.find(t,r)},mt(So);var Ro=0,wo=function(t,r,n,e,i){if(!(this instanceof wo))return new wo(t,r,n,e,i);null==n&&(n=0),yo.call(this,[new go([new $r("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=tr(n,0);this.sel=Ai(o),this.history=new ji(null),this.id=++Ro,this.modeOption=r,this.lineSep=e,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),ki(this,{from:o,to:o,text:t}),Ki(this,Ai(o),V)};wo.prototype=Q(yo.prototype,{constructor:wo,iter:function(t,r,n){n?this.iterN(t-this.first,r-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,r){for(var n=0,e=0;e<r.length;++e)n+=r[e].height;this.insertInner(t-this.first,r,n)},remove:function(t,r){this.removeInner(t-this.first,r)},getValue:function(t){var r=Yt(this,this.first,this.first+this.size);return!1===t?r:r.join(t||this.lineSeparator())},setValue:ni((function(t){var r=tr(this.first,0),n=this.first+this.size-1;uo(this,{from:r,to:tr(n,$t(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&_e(this.cm,0,0),Ki(this,Ai(r),V)})),replaceRange:function(t,r,n,e){po(this,t,r=ar(this,r),n=n?ar(this,n):r,e)},getRange:function(t,r,n){var e=Wt(this,ar(this,t),ar(this,r));return!1===n?e:e.join(n||this.lineSeparator())},getLine:function(t){var r=this.getLineHandle(t);return r&&r.text},getLineHandle:function(t){if(Kt(this,t))return $t(this,t)},getLineNumber:function(t){return Zt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=$t(this,t)),Gr(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ar(this,t)},getCursor:function(t){var r=this.sel.primary();return null==t||"head"==t?r.head:"anchor"==t?r.anchor:"end"==t||"to"==t||!1===t?r.to():r.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(t,r,n){Zi(this,ar(this,"number"==typeof t?tr(t,r||0):t),null,n)})),setSelection:ni((function(t,r,n){Zi(this,ar(this,t),ar(this,r||t),n)})),extendSelection:ni((function(t,r,n){Wi(this,ar(this,t),r&&ar(this,r),n)})),extendSelections:ni((function(t,r){Yi(this,ur(this,t),r)})),extendSelectionsBy:ni((function(t,r){Yi(this,ur(this,X(this.sel.ranges,t)),r)})),setSelections:ni((function(t,r,n){if(t.length){for(var e=[],i=0;i<t.length;i++)e[i]=new Ii(ar(this,t[i].anchor),ar(this,t[i].head));null==r&&(r=Math.min(t.length-1,this.sel.primIndex)),Ki(this,Ni(this.cm,e,r),n)}})),addSelection:ni((function(t,r,n){var e=this.sel.ranges.slice(0);e.push(new Ii(ar(this,t),ar(this,r||t))),Ki(this,Ni(this.cm,e,e.length-1),n)})),getSelection:function(t){for(var r,n=this.sel.ranges,e=0;e<n.length;e++){var i=Wt(this,n[e].from(),n[e].to());r=r?r.concat(i):i}return!1===t?r:r.join(t||this.lineSeparator())},getSelections:function(t){for(var r=[],n=this.sel.ranges,e=0;e<n.length;e++){var i=Wt(this,n[e].from(),n[e].to());!1!==t&&(i=i.join(t||this.lineSeparator())),r[e]=i}return r},replaceSelection:function(t,r,n){for(var e=[],i=0;i<this.sel.ranges.length;i++)e[i]=t;this.replaceSelections(e,r,n||"+input")},replaceSelections:ni((function(t,r,n){for(var e=[],i=this.sel,o=0;o<i.ranges.length;o++){var s=i.ranges[o];e[o]={from:s.from(),to:s.to(),text:this.splitLines(t[o]),origin:n}}for(var a=r&&"end"!=r&&function(t,r,n){for(var e=[],i=tr(t.first,0),o=i,s=0;s<r.length;s++){var a=r[s],u=Ri(a.from,i,o),l=Ri(Si(a),i,o);if(i=a.to,o=l,"around"==n){var c=t.sel.ranges[s],f=rr(c.head,c.anchor)<0;e[s]=new Ii(f?l:u,f?u:l)}else e[s]=new Ii(u,u)}return new Ti(e,t.sel.primIndex)}(this,e,r),u=e.length-1;u>=0;u--)uo(this,e[u]);a?Qi(this,a):this.cm&&Oe(this.cm)})),undo:ni((function(){co(this,"undo")})),redo:ni((function(){co(this,"redo")})),undoSelection:ni((function(){co(this,"undo",!0)})),redoSelection:ni((function(){co(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,r=0,n=0,e=0;e<t.done.length;e++)t.done[e].ranges||++r;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:r,redo:n}},clearHistory:function(){var t=this;this.history=new ji(this.history.maxGeneration),Pi(this,(function(r){return r.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:zi(this.history.done),undone:zi(this.history.undone)}},setHistory:function(t){var r=this.history=new ji(this.history.maxGeneration);r.done=zi(t.done.slice(0),null,!0),r.undone=zi(t.undone.slice(0),null,!0)},setGutterMarker:ni((function(t,r,n){return mo(this,t,"gutter",(function(t){var e=t.gutterMarkers||(t.gutterMarkers={});return e[r]=n,!n&&rt(e)&&(t.gutterMarkers=null),!0}))})),clearGutter:ni((function(t){var r=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&mo(r,n,"gutter",(function(){return n.gutterMarkers[t]=null,rt(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var r;if("number"==typeof t){if(!Kt(this,t))return null;if(r=t,!(t=$t(this,t)))return null}else if(null==(r=Zt(t)))return null;return{line:r,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ni((function(t,r,n){return mo(this,t,"gutter"==r?"gutter":"class",(function(t){var e="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass";if(t[e]){if(N(n).test(t[e]))return!1;t[e]+=" "+n}else t[e]=n;return!0}))})),removeLineClass:ni((function(t,r,n){return mo(this,t,"gutter"==r?"gutter":"class",(function(t){var e="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass",i=t[e];if(!i)return!1;if(null==n)t[e]=null;else{var o=i.match(N(n));if(!o)return!1;var s=o.index+o[0].length;t[e]=i.slice(0,o.index)+(o.index&&s!=i.length?" ":"")+i.slice(s)||null}return!0}))})),addLineWidget:ni((function(t,r,n){return function(t,r,n,e){var i=new xo(t,n,e),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),mo(t,r,"widget",(function(r){var n=r.widgets||(r.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=r,o&&!Br(t,r)){var e=qr(r)<t.scrollTop;Xt(r,r.height+xn(i)),e&&we(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&un(o,"lineWidgetAdded",o,i,"number"==typeof r?r:Zt(r)),i}(this,t,r,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,r,n){return Ao(this,ar(this,t),ar(this,r),n,n&&n.type||"range")},setBookmark:function(t,r){var n={replacedWith:r&&(null==r.nodeType?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return Ao(this,t=ar(this,t),t,n,"bookmark")},findMarksAt:function(t){var r=[],n=$t(this,(t=ar(this,t)).line).markedSpans;if(n)for(var e=0;e<n.length;++e){var i=n[e];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&r.push(i.marker.parent||i.marker)}return r},findMarks:function(t,r,n){t=ar(this,t),r=ar(this,r);var e=[],i=t.line;return this.iter(t.line,r.line+1,(function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var u=s[a];null!=u.to&&i==t.line&&t.ch>=u.to||null==u.from&&i!=t.line||null!=u.from&&i==r.line&&u.from>=r.ch||n&&!n(u.marker)||e.push(u.marker.parent||u.marker)}++i})),e},getAllMarks:function(){var t=[];return this.iter((function(r){var n=r.markedSpans;if(n)for(var e=0;e<n.length;++e)null!=n[e].from&&t.push(n[e].marker)})),t},posFromIndex:function(t){var r,n=this.first,e=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+e;if(o>t)return r=t,!0;t-=o,++n})),ar(this,tr(n,r))},indexFromPos:function(t){var r=(t=ar(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){r+=t.text.length+n})),r},copy:function(t){var r=new wo(Yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,t&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(t){t||(t={});var r=this.first,n=this.first+this.size;null!=t.from&&t.from>r&&(r=t.from),null!=t.to&&t.to<n&&(n=t.to);var e=new wo(Yt(this,r,n),t.mode||this.modeOption,r,this.lineSep,this.direction);return t.sharedHist&&(e.history=this.history),(this.linked||(this.linked=[])).push({doc:e,sharedHist:t.sharedHist}),e.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,r){for(var n=0;n<r.length;n++){var e=r[n],i=e.find(),o=t.clipPos(i.from),s=t.clipPos(i.to);if(rr(o,s)){var a=Ao(t,o,s,e.primary,e.primary.type);e.markers.push(a),a.parent=e}}}(e,Lo(this)),e},unlinkDoc:function(t){if(t instanceof As&&(t=t.doc),this.linked)for(var r=0;r<this.linked.length;++r)if(this.linked[r].doc==t){this.linked.splice(r,1),t.unlinkDoc(this),Co(Lo(this));break}if(t.history==this.history){var n=[t.id];Pi(t,(function(t){return n.push(t.id)}),!0),t.history=new ji(null),t.history.done=zi(this.history.done,n),t.history.undone=zi(this.history.undone,n)}},iterLinkedDocs:function(t){Pi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Ot(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(t){var r;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&Je(r=this.cm,(function(){Mi(r),fe(r)})))}))}),wo.prototype.eachLine=wo.prototype.iter;var Oo=0;function _o(t){var r=this;if(ko(r),!vt(r,t)&&!Tn(r.display,t)){gt(t),s&&(Oo=+new Date);var n=le(r,t,!0),e=t.dataTransfer.files;if(n&&!r.isReadOnly())if(e&&e.length&&window.FileReader&&window.File)for(var i=e.length,o=Array(i),a=0,u=function(){++a==i&&ti(r,(function(){var t={from:n=ar(r.doc,n),to:n,text:r.doc.splitLines(o.filter((function(t){return null!=t})).join(r.doc.lineSeparator())),origin:"paste"};uo(r.doc,t),Qi(r.doc,Ai(ar(r.doc,n),ar(r.doc,Si(t))))}))()},l=function(t,n){if(r.options.allowDropFileTypes&&-1==U(r.options.allowDropFileTypes,t.type))u();else{var e=new FileReader;e.onerror=function(){return u()},e.onload=function(){var t=e.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),u()},e.readAsText(t)}},c=0;c<e.length;c++)l(e[c],c);else{if(r.state.draggingText&&r.doc.sel.contains(n)>-1)return r.state.draggingText(t),void setTimeout((function(){return r.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var h;if(r.state.draggingText&&!r.state.draggingText.copy&&(h=r.listSelections()),Ji(r.doc,Ai(n,n)),h)for(var p=0;p<h.length;++p)po(r.doc,"",h[p].anchor,h[p].head,"drag");r.replaceSelection(f,"around","paste"),r.display.input.focus()}}catch(t){}}}}function ko(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Po(t){if(document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),n=[],e=0;e<r.length;e++){var i=r[e].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var r=0;r<n.length;r++)t(n[r])}))}}var Do=!1;function Mo(t){var r=t.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,t.setSize()}for(var jo={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"},Go=0;Go<10;Go++)jo[Go+48]=jo[Go+96]=String(Go);for(var Fo=65;Fo<=90;Fo++)jo[Fo]=String.fromCharCode(Fo);for(var Uo=1;Uo<=12;Uo++)jo[Uo+111]=jo[Uo+63235]="F"+Uo;var Bo={};function Vo(t){var r,n,e,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);e=!0}}return r&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),e&&(t="Shift-"+t),t}function qo(t){var r={};for(var n in t)if(t.hasOwnProperty(n)){var e=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==e){delete t[n];continue}for(var i=X(n.split(" "),Vo),o=0;o<i.length;o++){var s=void 0,a=void 0;o==i.length-1?(a=i.join(" "),s=e):(a=i.slice(0,o+1).join(" "),s="...");var u=r[a];if(u){if(u!=s)throw new Error("Inconsistent bindings for "+a)}else r[a]=s}delete t[n]}for(var l in r)t[l]=r[l];return t}function Ho(t,r,n,e){var i=(r=Yo(r)).call?r.call(t,e):r[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(r.fallthrough){if("[object Array]"!=Object.prototype.toString.call(r.fallthrough))return Ho(t,r.fallthrough,n,e);for(var o=0;o<r.fallthrough.length;o++){var s=Ho(t,r.fallthrough[o],n,e);if(s)return s}}}function zo(t){var r="string"==typeof t?t:jo[t.keyCode];return"Ctrl"==r||"Alt"==r||"Shift"==r||"Mod"==r}function $o(t,r,n){var e=t;return r.altKey&&"Alt"!=e&&(t="Alt-"+t),(T?r.metaKey:r.ctrlKey)&&"Ctrl"!=e&&(t="Ctrl-"+t),(T?r.ctrlKey:r.metaKey)&&"Cmd"!=e&&(t="Cmd-"+t),!n&&r.shiftKey&&"Shift"!=e&&(t="Shift-"+t),t}function Wo(t,r){if(f&&34==t.keyCode&&t.char)return!1;var n=jo[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),$o(n,t,r))}function Yo(t){return"string"==typeof t?Bo[t]:t}function Xo(t,r){for(var n=t.doc.sel.ranges,e=[],i=0;i<n.length;i++){for(var o=r(n[i]);e.length&&rr(o.from,Y(e).to)<=0;){var s=e.pop();if(rr(s.from,o.from)<0){o.from=s.from;break}}e.push(o)}Je(t,(function(){for(var r=e.length-1;r>=0;r--)po(t.doc,"",e[r].from,e[r].to,"+delete");Oe(t)}))}function Zo(t,r,n){var e=it(t.text,r+n,n);return e<0||e>t.text.length?null:e}function Qo(t,r,n){var e=Zo(t,r.ch,n);return null==e?null:new tr(r.line,e,n<0?"after":"before")}function Ko(t,r,n,e,i){if(t){"rtl"==r.doc.direction&&(i=-i);var o=lt(n,r.doc.direction);if(o){var s,a=i<0?Y(o):o[0],u=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==r.doc.direction){var l=_n(r,n),c=kn(r,l,s=i<0?n.text.length-1:0).top;s=ot((function(t){return kn(r,l,t).top==c}),i<0==(1==a.level)?a.from:a.to-1,s),"before"==u&&(s=Zo(n,s,1))}else s=i<0?a.to:a.from;return new tr(e,s,u)}}return new tr(e,i<0?n.text.length:0,i<0?"before":"after")}Bo.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"},Bo.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"},Bo.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"},Bo.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"]},Bo.default=m?Bo.macDefault:Bo.pcDefault;var Jo={selectAll:so,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),V)},killLine:function(t){return Xo(t,(function(r){if(r.empty()){var n=$t(t.doc,r.head.line).text.length;return r.head.ch==n&&r.head.line<t.lastLine()?{from:r.head,to:tr(r.head.line+1,0)}:{from:r.head,to:tr(r.head.line,n)}}return{from:r.from(),to:r.to()}}))},deleteLine:function(t){return Xo(t,(function(r){return{from:tr(r.from().line,0),to:ar(t.doc,tr(r.to().line+1,0))}}))},delLineLeft:function(t){return Xo(t,(function(t){return{from:tr(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Xo(t,(function(r){var n=t.charCoords(r.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:r.from()}}))},delWrappedLineRight:function(t){return Xo(t,(function(r){var n=t.charCoords(r.head,"div").top+5,e=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:r.from(),to:e}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(tr(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(tr(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(r){return ts(t,r.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(r){return rs(t,r.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(r){return function(t,r){var n=$t(t.doc,r),e=function(t){for(var r;r=Dr(t);)t=r.find(1,!0).line;return t}(n);return e!=n&&(r=Zt(e)),Ko(!0,t,n,r,-1)}(t,r.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(r){var n=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),H)},goLineLeft:function(t){return t.extendSelectionsBy((function(r){var n=t.cursorCoords(r.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),H)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(r){var n=t.cursorCoords(r.head,"div").top+5,e=t.coordsChar({left:0,top:n},"div");return e.ch<t.getLine(e.line).search(/\S/)?rs(t,r.head):e}),H)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var r=[],n=t.listSelections(),e=t.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),s=G(t.getLine(o.line),o.ch,e);r.push(W(e-s%e))}t.replaceSelections(r)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Je(t,(function(){for(var r=t.listSelections(),n=[],e=0;e<r.length;e++)if(r[e].empty()){var i=r[e].head,o=$t(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new tr(i.line,i.ch-1)),i.ch>0)i=new tr(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),tr(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var s=$t(t.doc,i.line-1).text;s&&(i=new tr(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),tr(i.line-1,s.length-1),i,"+transpose"))}n.push(new Ii(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return Je(t,(function(){for(var r=t.listSelections(),n=r.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),r[n].anchor,r[n].head,"+input");r=t.listSelections();for(var e=0;e<r.length;e++)t.indentLine(r[e].from().line,null,!0);Oe(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ts(t,r){var n=$t(t.doc,r),e=Gr(n);return e!=n&&(r=Zt(e)),Ko(!0,t,e,r,1)}function rs(t,r){var n=ts(t,r.line),e=$t(t.doc,n.line),i=lt(e,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,e.text.search(/\S/));return tr(n.line,r.line==n.line&&r.ch<=o&&r.ch?0:o,n.sticky)}return n}function ns(t,r,n){if("string"==typeof r&&!(r=Jo[r]))return!1;t.display.input.ensurePolled();var e=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=r(t)!=B}finally{t.display.shift=e,t.state.suppressEdits=!1}return i}var es=new F;function is(t,r,n,e){var i=t.state.keySeq;if(i){if(zo(r))return"handled";if(/\'$/.test(r)?t.state.keySeq=null:es.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),os(t,i+" "+r,n,e))return!0}return os(t,r,n,e)}function os(t,r,n,e){var i=function(t,r,n){for(var e=0;e<t.state.keyMaps.length;e++){var i=Ho(r,t.state.keyMaps[e],n,t);if(i)return i}return t.options.extraKeys&&Ho(r,t.options.extraKeys,n,t)||Ho(r,t.options.keyMap,n,t)}(t,r,e);return"multi"==i&&(t.state.keySeq=r),"handled"==i&&un(t,"keyHandled",t,r,n),"handled"!=i&&"multi"!=i||(gt(n),xe(t)),!!i}function ss(t,r){var n=Wo(r,!0);return!!n&&(r.shiftKey&&!t.state.keySeq?is(t,"Shift-"+n,r,(function(r){return ns(t,r,!0)}))||is(t,n,r,(function(r){if("string"==typeof r?/^go[A-Z]/.test(r):r.motion)return ns(t,r)})):is(t,n,r,(function(r){return ns(t,r)})))}var as=null;function us(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField()||(r.curOp.focus=_(),vt(r,t)))){s&&a<11&&27==t.keyCode&&(t.returnValue=!1);var e=t.keyCode;r.display.shift=16==e||t.shiftKey;var i=ss(r,t);f&&(as=i?e:null,i||88!=e||kt||!(m?t.metaKey:t.ctrlKey)||r.replaceSelection("",null,"cut")),n&&!m&&!i&&46==e&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=e||/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)||function(t){var r=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(S(r,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n))}k(r,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n)}(r)}}function ls(t){16==t.keyCode&&(this.doc.sel.shift=!1),vt(this,t)}function cs(t){var r=this;if(!(t.target&&t.target!=r.display.input.getField()||Tn(r.display,t)||vt(r,t)||t.ctrlKey&&!t.altKey||m&&t.metaKey)){var n=t.keyCode,e=t.charCode;if(f&&n==as)return as=null,void gt(t);if(!f||t.which&&!(t.which<10)||!ss(r,t)){var i=String.fromCharCode(null==e?n:e);"\b"!=i&&(function(t,r,n){return is(t,"'"+n+"'",r,(function(r){return ns(t,r,!0)}))}(r,t,i)||r.display.input.onKeyPress(t))}}}var fs,hs,ps=function(t,r,n){this.time=t,this.pos=r,this.button=n};function ds(t){var r=this,n=r.display;if(!(vt(r,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,Tn(n,t))u||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!bs(r,t)){var e=le(r,t),i=Nt(t),o=e?function(t,r){var n=+new Date;return hs&&hs.compare(n,t,r)?(fs=hs=null,"triple"):fs&&fs.compare(n,t,r)?(hs=new ps(n,t,r),fs=null,"double"):(fs=new ps(n,t,r),hs=null,"single")}(e,i):"single";window.focus(),1==i&&r.state.selectingText&&r.state.selectingText(t),e&&function(t,r,n,e,i){var o="Click";return"double"==e?o="Double"+o:"triple"==e&&(o="Triple"+o),is(t,$o(o=(1==r?"Left":2==r?"Middle":"Right")+o,i),i,(function(r){if("string"==typeof r&&(r=Jo[r]),!r)return!1;var e=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),e=r(t,n)!=B}finally{t.state.suppressEdits=!1}return e}))}(r,i,e,o,t)||(1==i?e?function(t,r,n,e){s?setTimeout(M(Te,t),0):t.curOp.focus=_();var i,o=function(t,r,n){var e=t.getOption("configureMouse"),i=e?e(t,r,n):{};return null==i.unit&&(i.unit=(g?n.shiftKey&&n.metaKey:n.altKey)?"rectangle":"single"==r?"char":"double"==r?"word":"line"),(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=m?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(m?n.altKey:n.ctrlKey)),i}(t,n,e),l=t.doc.sel;t.options.dragDrop&&Lt&&!t.isReadOnly()&&"single"==n&&(i=l.contains(r))>-1&&(rr((i=l.ranges[i]).from(),r)<0||r.xRel>0)&&(rr(i.to(),r)>0||r.xRel<0)?function(t,r,n,e){var i=t.display,o=!1,l=ti(t,(function(r){u&&(i.scroller.draggable=!1),t.state.draggingText=!1,pt(i.wrapper.ownerDocument,"mouseup",l),pt(i.wrapper.ownerDocument,"mousemove",c),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",l),o||(gt(r),e.addNew||Wi(t.doc,n,null,null,e.extend),u&&!h||s&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(t){o=o||Math.abs(r.clientX-t.clientX)+Math.abs(r.clientY-t.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!e.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ft(i.wrapper.ownerDocument,"mouseup",l),ft(i.wrapper.ownerDocument,"mousemove",c),ft(i.scroller,"dragstart",f),ft(i.scroller,"drop",l),Ie(t),setTimeout((function(){return i.input.focus()}),20)}(t,e,r,o):function(t,r,n,e){var i=t.display,o=t.doc;gt(r);var s,a,u=o.sel,l=u.ranges;if(e.addNew&&!e.extend?(a=o.sel.contains(n),s=a>-1?l[a]:new Ii(n,n)):(s=o.sel.primary(),a=o.sel.primIndex),"rectangle"==e.unit)e.addNew||(s=new Ii(n,n)),n=le(t,r,!0,!0),a=-1;else{var c=vs(t,n,e.unit);s=e.extend?$i(s,c.anchor,c.head,e.extend):c}e.addNew?-1==a?(a=l.length,Ki(o,Ni(t,l.concat([s]),a),{scroll:!1,origin:"*mouse"})):l.length>1&&l[a].empty()&&"char"==e.unit&&!e.extend?(Ki(o,Ni(t,l.slice(0,a).concat(l.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Xi(o,a,s,q):(a=0,Ki(o,new Ti([s],0),q),u=o.sel);var f=n;function h(r){if(0!=rr(f,r))if(f=r,"rectangle"==e.unit){for(var i=[],l=t.options.tabSize,c=G($t(o,n.line).text,n.ch,l),h=G($t(o,r.line).text,r.ch,l),p=Math.min(c,h),d=Math.max(c,h),v=Math.min(n.line,r.line),E=Math.min(t.lastLine(),Math.max(n.line,r.line));v<=E;v++){var b=$t(o,v).text,m=z(b,p,l);p==d?i.push(new Ii(tr(v,m),tr(v,m))):b.length>m&&i.push(new Ii(tr(v,m),tr(v,z(b,d,l))))}i.length||i.push(new Ii(n,n)),Ki(o,Ni(t,u.ranges.slice(0,a).concat(i),a),{origin:"*mouse",scroll:!1}),t.scrollIntoView(r)}else{var g,y=s,x=vs(t,r,e.unit),T=y.anchor;rr(x.anchor,T)>0?(g=x.head,T=or(y.from(),x.anchor)):(g=x.anchor,T=ir(y.to(),x.head));var I=u.ranges.slice(0);I[a]=function(t,r){var n=r.anchor,e=r.head,i=$t(t.doc,n.line);if(0==rr(n,e)&&n.sticky==e.sticky)return r;var o=lt(i);if(!o)return r;var s=at(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return r;var u,l=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==o.length)return r;if(e.line!=n.line)u=(e.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=at(o,e.ch,e.sticky),f=c-s||(e.ch-n.ch)*(1==a.level?-1:1);u=c==l-1||c==l?f<0:f>0}var h=o[l+(u?-1:0)],p=u==(1==h.level),d=p?h.from:h.to,v=p?"after":"before";return n.ch==d&&n.sticky==v?r:new Ii(new tr(n.line,d,v),e)}(t,new Ii(ar(o,T),g)),Ki(o,Ni(t,I,a),q)}}var p=i.wrapper.getBoundingClientRect(),d=0;function v(r){t.state.selectingText=!1,d=1/0,r&&(gt(r),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",E),pt(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var E=ti(t,(function(r){0!==r.buttons&&Nt(r)?function r(n){var s=++d,a=le(t,n,!0,"rectangle"==e.unit);if(a)if(0!=rr(a,f)){t.curOp.focus=_(),h(a);var u=Ce(i,o);(a.line>=u.to||a.line<u.from)&&setTimeout(ti(t,(function(){d==s&&r(n)})),150)}else{var l=n.clientY<p.top?-20:n.clientY>p.bottom?20:0;l&&setTimeout(ti(t,(function(){d==s&&(i.scroller.scrollTop+=l,r(n))})),50)}}(r):v(r)})),b=ti(t,v);t.state.selectingText=b,ft(i.wrapper.ownerDocument,"mousemove",E),ft(i.wrapper.ownerDocument,"mouseup",b)}(t,e,r,o)}(r,e,o,t):It(t)==n.scroller&>(t):2==i?(e&&Wi(r.doc,e),setTimeout((function(){return n.input.focus()}),20)):3==i&&(I?r.display.input.onContextMenu(t):Ie(r)))}}function vs(t,r,n){if("char"==n)return new Ii(r,r);if("word"==n)return t.findWordAt(r);if("line"==n)return new Ii(tr(r.line,0),ar(t.doc,tr(r.line+1,0)));var e=n(t,r);return new Ii(e.from,e.to)}function Es(t,r,n,e){var i,o;if(r.touches)i=r.touches[0].clientX,o=r.touches[0].clientY;else try{i=r.clientX,o=r.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;e&>(r);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!bt(t,n))return xt(r);o-=a.top-s.viewOffset;for(var u=0;u<t.display.gutterSpecs.length;++u){var l=s.gutters.childNodes[u];if(l&&l.getBoundingClientRect().right>=i)return dt(t,n,t,Qt(t.doc,o),t.display.gutterSpecs[u].className,r),xt(r)}}function bs(t,r){return Es(t,r,"gutterClick",!0)}function ms(t,r){Tn(t.display,r)||function(t,r){return!!bt(t,"gutterContextMenu")&&Es(t,r,"gutterContextMenu",!1)}(t,r)||vt(t,r,"contextmenu")||I||t.display.input.onContextMenu(r)}function gs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(t)}ps.prototype.compare=function(t,r,n){return this.time+400>t&&0==rr(r,this.pos)&&n==this.button};var ys={toString:function(){return"CodeMirror.Init"}},xs={},Ts={};function Is(t,r,n){if(!r!=!(n&&n!=ys)){var e=t.display.dragFunctions,i=r?ft:pt;i(t.display.scroller,"dragstart",e.start),i(t.display.scroller,"dragenter",e.enter),i(t.display.scroller,"dragover",e.over),i(t.display.scroller,"dragleave",e.leave),i(t.display.scroller,"drop",e.drop)}}function Ns(t){t.options.lineWrapping?(k(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(S(t.display.wrapper,"CodeMirror-wrap"),zr(t)),ue(t),fe(t),Un(t),setTimeout((function(){return Be(t)}),100)}function As(t,r){var n=this;if(!(this instanceof As))return new As(t,r);this.options=r=r?j(r):{},j(xs,r,!1);var e=r.value;"string"==typeof e?e=new wo(e,r.mode,null,r.lineSeparator,r.direction):r.mode&&(e.modeOption=r.mode),this.doc=e;var i=new As.inputStyles[r.inputStyle](this),o=this.display=new Ei(t,e,i,r);for(var l in o.wrapper.CodeMirror=this,gs(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),He(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 F,keySeq:null,specialChars:null},r.autofocus&&!b&&o.input.focus(),s&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var r=t.display;ft(r.scroller,"mousedown",ti(t,ds)),ft(r.scroller,"dblclick",s&&a<11?ti(t,(function(r){if(!vt(t,r)){var n=le(t,r);if(n&&!bs(t,r)&&!Tn(t.display,r)){gt(r);var e=t.findWordAt(n);Wi(t.doc,e.anchor,e.head)}}})):function(r){return vt(t,r)||gt(r)}),ft(r.scroller,"contextmenu",(function(r){return ms(t,r)})),ft(r.input.getField(),"contextmenu",(function(n){r.scroller.contains(n.target)||ms(t,n)}));var n,e={end:0};function i(){r.activeTouch&&(n=setTimeout((function(){return r.activeTouch=null}),1e3),(e=r.activeTouch).end=+new Date)}function o(t,r){if(null==r.left)return!0;var n=r.left-t.left,e=r.top-t.top;return n*n+e*e>400}ft(r.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var r=t.touches[0];return r.radiusX<=1&&r.radiusY<=1}(i)&&!bs(t,i)){r.input.ensurePolled(),clearTimeout(n);var o=+new Date;r.activeTouch={start:o,moved:!1,prev:o-e.end<=300?e:null},1==i.touches.length&&(r.activeTouch.left=i.touches[0].pageX,r.activeTouch.top=i.touches[0].pageY)}})),ft(r.scroller,"touchmove",(function(){r.activeTouch&&(r.activeTouch.moved=!0)})),ft(r.scroller,"touchend",(function(n){var e=r.activeTouch;if(e&&!Tn(r,n)&&null!=e.left&&!e.moved&&new Date-e.start<300){var s,a=t.coordsChar(r.activeTouch,"page");s=!e.prev||o(e,e.prev)?new Ii(a,a):!e.prev.prev||o(e,e.prev.prev)?t.findWordAt(a):new Ii(tr(a.line,0),ar(t.doc,tr(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),gt(n)}i()})),ft(r.scroller,"touchcancel",i),ft(r.scroller,"scroll",(function(){r.scroller.clientHeight&&(De(t,r.scroller.scrollTop),je(t,r.scroller.scrollLeft,!0),dt(t,"scroll",t))})),ft(r.scroller,"mousewheel",(function(r){return xi(t,r)})),ft(r.scroller,"DOMMouseScroll",(function(r){return xi(t,r)})),ft(r.wrapper,"scroll",(function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0})),r.dragFunctions={enter:function(r){vt(t,r)||Tt(r)},over:function(r){vt(t,r)||(function(t,r){var n=le(t,r);if(n){var e=document.createDocumentFragment();me(t,n,e),t.display.dragCursor||(t.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),C(t.display.dragCursor,e)}}(t,r),Tt(r))},start:function(r){return function(t,r){if(s&&(!t.state.draggingText||+new Date-Oo<100))Tt(r);else if(!vt(t,r)&&!Tn(t.display,r)&&(r.dataTransfer.setData("Text",t.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!h)){var n=R("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),r.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,r)},drop:ti(t,_o),leave:function(r){vt(t,r)||ko(t)}};var u=r.input.getField();ft(u,"keyup",(function(r){return ls.call(t,r)})),ft(u,"keydown",ti(t,us)),ft(u,"keypress",ti(t,cs)),ft(u,"focus",(function(r){return Ne(t,r)})),ft(u,"blur",(function(r){return Ae(t,r)}))}(this),function(){var t;Do||(ft(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Po(Mo)}),100))})),ft(window,"blur",(function(){return Po(Ae)})),Do=!0)}(),$e(this),this.curOp.forceUpdate=!0,Di(this,e),r.autofocus&&!b||this.hasFocus()?setTimeout(M(Ne,this),20):Ae(this),Ts)Ts.hasOwnProperty(l)&&Ts[l](this,r[l],ys);hi(this),r.finishInit&&r.finishInit(this);for(var c=0;c<Ss.length;++c)Ss[c](this);We(this),u&&r.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}As.defaults=xs,As.optionHandlers=Ts;var Ss=[];function Ls(t,r,n,e){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=pr(t,r).state:n="prev");var s=t.options.tabSize,a=$t(o,r),u=G(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var l,c=a.text.match(/^\s*/)[0];if(e||/\S/.test(a.text)){if("smart"==n&&((l=o.mode.indent(i,a.text.slice(c.length),a.text))==B||l>150)){if(!e)return;n="prev"}}else l=0,n="not";"prev"==n?l=r>o.first?G($t(o,r-1).text,null,s):0:"add"==n?l=u+t.options.indentUnit:"subtract"==n?l=u-t.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var f="",h=0;if(t.options.indentWithTabs)for(var p=Math.floor(l/s);p;--p)h+=s,f+="\t";if(h<l&&(f+=W(l-h)),f!=c)return po(o,f,tr(r,0),tr(r,c.length),"+input"),a.stateAfter=null,!0;for(var d=0;d<o.sel.ranges.length;d++){var v=o.sel.ranges[d];if(v.head.line==r&&v.head.ch<c.length){var E=tr(r,c.length);Xi(o,d,new Ii(E,E));break}}}As.defineInitHook=function(t){return Ss.push(t)};var Cs=null;function Rs(t){Cs=t}function ws(t,r,n,e,i){var o=t.doc;t.display.shift=!1,e||(e=o.sel);var s=+new Date-200,a="paste"==i||t.state.pasteIncoming>s,u=Ot(r),l=null;if(a&&e.ranges.length>1)if(Cs&&Cs.text.join("\n")==r){if(e.ranges.length%Cs.text.length==0){l=[];for(var c=0;c<Cs.text.length;c++)l.push(o.splitLines(Cs.text[c]))}}else u.length==e.ranges.length&&t.options.pasteLinesPerSelection&&(l=X(u,(function(t){return[t]})));for(var f=t.curOp.updateInput,h=e.ranges.length-1;h>=0;h--){var p=e.ranges[h],d=p.from(),v=p.to();p.empty()&&(n&&n>0?d=tr(d.line,d.ch-n):t.state.overwrite&&!a?v=tr(v.line,Math.min($t(o,v.line).text.length,v.ch+Y(u).length)):a&&Cs&&Cs.lineWise&&Cs.text.join("\n")==r&&(d=v=tr(d.line,0)));var E={from:d,to:v,text:l?l[h%l.length]:u,origin:i||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};uo(t.doc,E),un(t,"inputRead",t,E)}r&&!a&&_s(t,r),Oe(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Os(t,r){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),r.isReadOnly()||r.options.disableInput||Je(r,(function(){return ws(r,n,0,null,"paste")})),!0}function _s(t,r){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,e=n.ranges.length-1;e>=0;e--){var i=n.ranges[e];if(!(i.head.ch>100||e&&n.ranges[e-1].head.line==i.head.line)){var o=t.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(r.indexOf(o.electricChars.charAt(a))>-1){s=Ls(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test($t(t.doc,i.head.line).text.slice(0,i.head.ch))&&(s=Ls(t,i.head.line,"smart"));s&&un(t,"electricInput",t,i.head.line)}}}function ks(t){for(var r=[],n=[],e=0;e<t.doc.sel.ranges.length;e++){var i=t.doc.sel.ranges[e].head.line,o={anchor:tr(i,0),head:tr(i+1,0)};n.push(o),r.push(t.getRange(o.anchor,o.head))}return{text:r,ranges:n}}function Ps(t,r,n,e){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",e?"":"off"),t.setAttribute("spellcheck",!!r)}function Ds(){var t=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=R("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return u?t.style.width="1000px":t.setAttribute("wrap","off"),v&&(t.style.border="1px solid black"),Ps(t),r}function Ms(t,r,n,e,i){var o=r,s=n,a=$t(t,r.line),u=i&&"rtl"==t.direction?-n:n;function l(e){var o,s;if(null==(o=i?function(t,r,n,e){var i=lt(r,t.doc.direction);if(!i)return Qo(r,n,e);n.ch>=r.text.length?(n.ch=r.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=at(i,n.ch,n.sticky),s=i[o];if("ltr"==t.doc.direction&&s.level%2==0&&(e>0?s.to>n.ch:s.from<n.ch))return Qo(r,n,e);var a,u=function(t,n){return Zo(r,t instanceof tr?t.ch:t,n)},l=function(n){return t.options.lineWrapping?(a=a||_n(t,r),Kn(t,r,a,n)):{begin:0,end:r.text.length}},c=l("before"==n.sticky?u(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var f=1==s.level==e<0,h=u(n,f?1:-1);if(null!=h&&(f?h<=s.to&&h<=c.end:h>=s.from&&h>=c.begin))return new tr(n.line,h,f?"before":"after")}var p=function(t,r,e){for(var o=function(t,r){return r?new tr(n.line,u(t,1),"before"):new tr(n.line,t,"after")};t>=0&&t<i.length;t+=r){var s=i[t],a=r>0==(1!=s.level),l=a?e.begin:u(e.end,-1);if(s.from<=l&&l<s.to)return o(l,a);if(l=a?s.from:u(s.to,-1),e.begin<=l&&l<e.end)return o(l,a)}},d=p(o+e,e,c);if(d)return d;var v=e>0?c.end:u(c.begin,-1);return null==v||e>0&&v==r.text.length||!(d=p(e>0?0:i.length-1,e,l(v)))?null:d}(t.cm,a,r,n):Qo(a,r,n))){if(e||(s=r.line+u)<t.first||s>=t.first+t.size||(r=new tr(s,r.ch,r.sticky),!(a=$t(t,s))))return!1;r=Ko(i,t.cm,a,r.line,u)}else r=o;return!0}if("char"==e)l();else if("column"==e)l(!0);else if("word"==e||"group"==e)for(var c=null,f="group"==e,h=t.cm&&t.cm.getHelper(r,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var d=a.text.charAt(r.ch)||"\n",v=tt(d,h)?"w":f&&"\n"==d?"n":!f||/\s/.test(d)?null:"p";if(!f||p||v||(v="s"),c&&c!=v){n<0&&(n=1,l(),r.sticky="after");break}if(v&&(c=v),n>0&&!l(!p))break}var E=io(t,r,o,s,!0);return nr(o,E)&&(E.hitSide=!0),E}function js(t,r,n,e){var i,o,s=t.doc,a=r.left;if("page"==e){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(u-.5*ee(t.display),3);i=(n>0?r.bottom:r.top)+n*l}else"line"==e&&(i=n>0?r.bottom+3:r.top-3);for(;(o=Zn(t,a,i)).outside;){if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}var Gs=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Fs(t,r){var n=On(t,r.line);if(!n||n.hidden)return null;var e=$t(t.doc,r.line),i=Rn(n,e,r.line),o=lt(e,t.doc.direction),s="left";o&&(s=at(o,r.ch)%2?"right":"left");var a=Mn(i.map,r.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Us(t,r){return r&&(t.bad=!0),t}function Bs(t,r,n){var e;if(r==t.display.lineDiv){if(!(e=t.display.lineDiv.childNodes[n]))return Us(t.clipPos(tr(t.display.viewTo-1)),!0);r=null,n=0}else for(e=r;;e=e.parentNode){if(!e||e==t.display.lineDiv)return null;if(e.parentNode&&e.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==e)return Vs(o,r,n)}}function Vs(t,r,n){var e=t.text.firstChild,i=!1;if(!r||!O(e,r))return Us(tr(Zt(t.line),0),!0);if(r==e&&(i=!0,r=e.childNodes[n],n=0,!r)){var o=t.rest?Y(t.rest):t.line;return Us(tr(Zt(o),o.text.length),i)}var s=3==r.nodeType?r:null,a=r;for(s||1!=r.childNodes.length||3!=r.firstChild.nodeType||(s=r.firstChild,n&&(n=s.nodeValue.length));a.parentNode!=e;)a=a.parentNode;var u=t.measure,l=u.maps;function c(r,n,e){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?u.map:l[i],s=0;s<o.length;s+=3){var a=o[s+2];if(a==r||a==n){var c=Zt(i<0?t.line:t.rest[i]),f=o[s]+e;return(e<0||a!=r)&&(f=o[s+(e?1:0)]),tr(c,f)}}}var f=c(s,a,n);if(f)return Us(f,i);for(var h=a.nextSibling,p=s?s.nodeValue.length-n:0;h;h=h.nextSibling){if(f=c(h,h.firstChild,0))return Us(tr(f.line,f.ch-p),i);p+=h.textContent.length}for(var d=a.previousSibling,v=n;d;d=d.previousSibling){if(f=c(d,d.firstChild,-1))return Us(tr(f.line,f.ch+v),i);v+=d.textContent.length}}Gs.prototype.init=function(t){var r=this,n=this,e=n.cm,i=n.div=t.lineDiv;function o(t){for(var r=t.target;r;r=r.parentNode){if(r==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(r.className))break}return!1}function s(t){if(o(t)&&!vt(e,t)){if(e.somethingSelected())Rs({lineWise:!1,text:e.getSelections()}),"cut"==t.type&&e.replaceSelection("",null,"cut");else{if(!e.options.lineWiseCopyCut)return;var r=ks(e);Rs({lineWise:!0,text:r.text}),"cut"==t.type&&e.operation((function(){e.setSelections(r.ranges,0,V),e.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var s=Cs.text.join("\n");if(t.clipboardData.setData("Text",s),t.clipboardData.getData("Text")==s)return void t.preventDefault()}var a=Ds(),u=a.firstChild;e.display.lineSpace.insertBefore(a,e.display.lineSpace.firstChild),u.value=Cs.text.join("\n");var l=document.activeElement;D(u),setTimeout((function(){e.display.lineSpace.removeChild(a),l.focus(),l==i&&n.showPrimarySelection()}),50)}}Ps(i,e.options.spellcheck,e.options.autocorrect,e.options.autocapitalize),ft(i,"paste",(function(t){!o(t)||vt(e,t)||Os(t,e)||a<=11&&setTimeout(ti(e,(function(){return r.updateFromDOM()})),20)})),ft(i,"compositionstart",(function(t){r.composing={data:t.data,done:!1}})),ft(i,"compositionupdate",(function(t){r.composing||(r.composing={data:t.data,done:!1})})),ft(i,"compositionend",(function(t){r.composing&&(t.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)})),ft(i,"touchstart",(function(){return n.forceCompositionEnd()})),ft(i,"input",(function(){r.composing||r.readFromDOMSoon()})),ft(i,"copy",s),ft(i,"cut",s)},Gs.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Gs.prototype.prepareSelection=function(){var t=be(this.cm,!1);return t.focus=document.activeElement==this.div,t},Gs.prototype.showSelection=function(t,r){t&&this.cm.display.view.length&&((t.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Gs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gs.prototype.showPrimarySelection=function(){var t=this.getSelection(),r=this.cm,e=r.doc.sel.primary(),i=e.from(),o=e.to();if(r.display.viewTo==r.display.viewFrom||i.line>=r.display.viewTo||o.line<r.display.viewFrom)t.removeAllRanges();else{var s=Bs(r,t.anchorNode,t.anchorOffset),a=Bs(r,t.focusNode,t.focusOffset);if(!s||s.bad||!a||a.bad||0!=rr(or(s,a),i)||0!=rr(ir(s,a),o)){var u=r.display.view,l=i.line>=r.display.viewFrom&&Fs(r,i)||{node:u[0].measure.map[2],offset:0},c=o.line<r.display.viewTo&&Fs(r,o);if(!c){var f=u[u.length-1].measure,h=f.maps?f.maps[f.maps.length-1]:f.map;c={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(l&&c){var p,d=t.rangeCount&&t.getRangeAt(0);try{p=A(l.node,l.offset,c.offset,c.node)}catch(t){}p&&(!n&&r.state.focused?(t.collapse(l.node,l.offset),p.collapsed||(t.removeAllRanges(),t.addRange(p))):(t.removeAllRanges(),t.addRange(p)),d&&null==t.anchorNode?t.addRange(d):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Gs.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Gs.prototype.showMultipleSelections=function(t){C(this.cm.display.cursorDiv,t.cursors),C(this.cm.display.selectionDiv,t.selection)},Gs.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Gs.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var r=t.getRangeAt(0).commonAncestorContainer;return O(this.div,r)},Gs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Gs.prototype.blur=function(){this.div.blur()},Gs.prototype.getField=function(){return this.div},Gs.prototype.supportsTouch=function(){return!0},Gs.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Je(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function r(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,r))}))},Gs.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Gs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),r=this.cm;if(E&&c&&this.cm.display.gutterSpecs.length&&function(t){for(var r=t;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Bs(r,t.anchorNode,t.anchorOffset),e=Bs(r,t.focusNode,t.focusOffset);n&&e&&Je(r,(function(){Ki(r.doc,Ai(n,e),V),(n.bad||e.bad)&&(r.curOp.selectionChanged=!0)}))}}},Gs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,r,n,e=this.cm,i=e.display,o=e.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>e.firstLine()&&(s=tr(s.line-1,$t(e.doc,s.line-1).length)),a.ch==$t(e.doc,a.line).text.length&&a.line<e.lastLine()&&(a=tr(a.line+1,0)),s.line<i.viewFrom||a.line>i.viewTo-1)return!1;s.line==i.viewFrom||0==(t=ce(e,s.line))?(r=Zt(i.view[0].line),n=i.view[0].node):(r=Zt(i.view[t].line),n=i.view[t-1].node.nextSibling);var u,l,c=ce(e,a.line);if(c==i.view.length-1?(u=i.viewTo-1,l=i.lineDiv.lastChild):(u=Zt(i.view[c+1].line)-1,l=i.view[c+1].node.previousSibling),!n)return!1;for(var f=e.doc.splitLines(function(t,r,n,e,i){var o="",s=!1,a=t.doc.lineSeparator(),u=!1;function l(){s&&(o+=a,u&&(o+=a),s=u=!1)}function c(t){t&&(l(),o+=t)}function f(r){if(1==r.nodeType){var n=r.getAttribute("cm-text");if(n)return void c(n);var o,h=r.getAttribute("cm-marker");if(h){var p=t.findMarks(tr(e,0),tr(i+1,0),(E=+h,function(t){return t.id==E}));return void(p.length&&(o=p[0].find(0))&&c(Wt(t.doc,o.from,o.to).join(a)))}if("false"==r.getAttribute("contenteditable"))return;var d=/^(pre|div|p|li|table|br)$/i.test(r.nodeName);if(!/^br$/i.test(r.nodeName)&&0==r.textContent.length)return;d&&l();for(var v=0;v<r.childNodes.length;v++)f(r.childNodes[v]);/^(pre|p)$/i.test(r.nodeName)&&(u=!0),d&&(s=!0)}else 3==r.nodeType&&c(r.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var E}for(;f(r),r!=n;)r=r.nextSibling,u=!1;return o}(e,n,l,r,u)),h=Wt(e.doc,tr(r,0),tr(u,$t(e.doc,u).text.length));f.length>1&&h.length>1;)if(Y(f)==Y(h))f.pop(),h.pop(),u--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),r++}for(var p=0,d=0,v=f[0],E=h[0],b=Math.min(v.length,E.length);p<b&&v.charCodeAt(p)==E.charCodeAt(p);)++p;for(var m=Y(f),g=Y(h),y=Math.min(m.length-(1==f.length?p:0),g.length-(1==h.length?p:0));d<y&&m.charCodeAt(m.length-d-1)==g.charCodeAt(g.length-d-1);)++d;if(1==f.length&&1==h.length&&r==s.line)for(;p&&p>s.ch&&m.charCodeAt(m.length-d-1)==g.charCodeAt(g.length-d-1);)p--,d++;f[f.length-1]=m.slice(0,m.length-d).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var x=tr(r,p),T=tr(u,h.length?Y(h).length-d:0);return f.length>1||f[0]||rr(x,T)?(po(e.doc,f,x,T,"+input"),!0):void 0},Gs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gs.prototype.reset=function(){this.forceCompositionEnd()},Gs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gs.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Gs.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Je(this.cm,(function(){return fe(t.cm)}))},Gs.prototype.setUneditable=function(t){t.contentEditable="false"},Gs.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,ws)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Gs.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Gs.prototype.onContextMenu=function(){},Gs.prototype.resetPosition=function(){},Gs.prototype.needsContentAttribute=!0;var qs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};qs.prototype.init=function(t){var r=this,n=this,e=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(e,t)){if(e.somethingSelected())Rs({lineWise:!1,text:e.getSelections()});else{if(!e.options.lineWiseCopyCut)return;var r=ks(e);Rs({lineWise:!0,text:r.text}),"cut"==t.type?e.setSelections(r.ranges,null,V):(n.prevInput="",i.value=r.text.join("\n"),D(i))}"cut"==t.type&&(e.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),v&&(i.style.width="0px"),ft(i,"input",(function(){s&&a>=9&&r.hasSelection&&(r.hasSelection=null),n.poll()})),ft(i,"paste",(function(t){vt(e,t)||Os(t,e)||(e.state.pasteIncoming=+new Date,n.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(t.scroller,"paste",(function(r){if(!Tn(t,r)&&!vt(e,r)){if(!i.dispatchEvent)return e.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=r.clipboardData,i.dispatchEvent(o)}})),ft(t.lineSpace,"selectstart",(function(r){Tn(t,r)||gt(r)})),ft(i,"compositionstart",(function(){var t=e.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:e.markText(t,e.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},qs.prototype.createField=function(){this.wrapper=Ds(),this.textarea=this.wrapper.firstChild},qs.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},qs.prototype.prepareSelection=function(){var t=this.cm,r=t.display,n=t.doc,e=be(t);if(t.options.moveInputWithCursor){var i=Wn(t,n.sel.primary().head,"div"),o=r.wrapper.getBoundingClientRect(),s=r.lineDiv.getBoundingClientRect();e.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,i.top+s.top-o.top)),e.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,i.left+s.left-o.left))}return e},qs.prototype.showSelection=function(t){var r=this.cm.display;C(r.cursorDiv,t.cursors),C(r.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},qs.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var n=r.getSelection();this.textarea.value=n,r.state.focused&&D(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null))}},qs.prototype.getField=function(){return this.textarea},qs.prototype.supportsTouch=function(){return!1},qs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||_()!=this.textarea))try{this.textarea.focus()}catch(t){}},qs.prototype.blur=function(){this.textarea.blur()},qs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qs.prototype.receivedFocus=function(){this.slowPoll()},qs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},qs.prototype.fastPoll=function(){var t=!1,r=this;r.pollingFast=!0,r.polling.set(20,(function n(){r.poll()||t?(r.pollingFast=!1,r.slowPoll()):(t=!0,r.polling.set(60,n))}))},qs.prototype.poll=function(){var t=this,r=this.cm,n=this.textarea,e=this.prevInput;if(this.contextMenuPending||!r.state.focused||_t(n)&&!e&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var i=n.value;if(i==e&&!r.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===i||m&&/[\uf700-\uf7ff]/.test(i))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||e||(e=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,l=Math.min(e.length,i.length);u<l&&e.charCodeAt(u)==i.charCodeAt(u);)++u;return Je(r,(function(){ws(r,i.slice(u),e.length-u,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=r.markText(t.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},qs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},qs.prototype.onContextMenu=function(t){var r=this,n=r.cm,e=n.display,i=r.textarea;r.contextMenuPending&&r.contextMenuPending();var o=le(n,t),l=e.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Ki)(n.doc,Ai(o),V);var c,h=i.style.cssText,p=r.wrapper.style.cssText,d=r.wrapper.offsetParent.getBoundingClientRect();if(r.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-d.top-5)+"px; left: "+(t.clientX-d.left-5)+"px;\n z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),e.input.focus(),u&&window.scrollTo(null,c),e.input.reset(),n.somethingSelected()||(i.value=r.prevInput=" "),r.contextMenuPending=b,e.selForContextMenu=n.doc.sel,clearTimeout(e.detectingSelectAll),s&&a>=9&&E(),I){Tt(t);var v=function(){pt(window,"mouseup",v),setTimeout(b,20)};ft(window,"mouseup",v)}else setTimeout(b,50)}function E(){if(null!=i.selectionStart){var t=n.somethingSelected(),o=""+(t?i.value:"");i.value="⇚",i.value=o,r.prevInput=t?"":"",i.selectionStart=1,i.selectionEnd=o.length,e.selForContextMenu=n.doc.sel}}function b(){if(r.contextMenuPending==b&&(r.contextMenuPending=!1,r.wrapper.style.cssText=p,i.style.cssText=h,s&&a<9&&e.scrollbars.setScrollTop(e.scroller.scrollTop=l),null!=i.selectionStart)){(!s||s&&a<9)&&E();var t=0,o=function(){e.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==r.prevInput?ti(n,so)(n):t++<10?e.detectingSelectAll=setTimeout(o,500):(e.selForContextMenu=null,e.input.reset())};e.detectingSelectAll=setTimeout(o,200)}}},qs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},qs.prototype.setUneditable=function(){},qs.prototype.needsContentAttribute=!1,function(t){var r=t.optionHandlers;function n(n,e,i,o){t.defaults[n]=e,i&&(r[n]=o?function(t,r,n){n!=ys&&i(t,r,n)}:i)}t.defineOption=n,t.Init=ys,n("value","",(function(t,r){return t.setValue(r)}),!0),n("mode",null,(function(t,r){t.doc.modeOption=r,wi(t)}),!0),n("indentUnit",2,wi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Oi(t),Un(t),fe(t)}),!0),n("lineSeparator",null,(function(t,r){if(t.doc.lineSep=r,r){var n=[],e=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(r,i);if(-1==o)break;i=o+r.length,n.push(tr(e,o))}e++}));for(var i=n.length-1;i>=0;i--)po(t.doc,r,n[i],tr(n[i].line,n[i].ch+r.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,r,n){t.state.specialChars=new RegExp(r.source+(r.test("\t")?"":"|\t"),"g"),n!=ys&&t.refresh()})),n("specialCharPlaceholder",Kr,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,r){return t.getInputField().spellcheck=r}),!0),n("autocorrect",!1,(function(t,r){return t.getInputField().autocorrect=r}),!0),n("autocapitalize",!1,(function(t,r){return t.getInputField().autocapitalize=r}),!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){gs(t),vi(t)}),!0),n("keyMap","default",(function(t,r,n){var e=Yo(r),i=n!=ys&&Yo(n);i&&i.detach&&i.detach(t,e),e.attach&&e.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ns,!0),n("gutters",[],(function(t,r){t.display.gutterSpecs=pi(r,t.options.lineNumbers),vi(t)}),!0),n("fixedGutter",!0,(function(t,r){t.display.gutters.style.left=r?se(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Be(t)}),!0),n("scrollbarStyle","native",(function(t){He(t),Be(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,r){t.display.gutterSpecs=pi(t.options.gutters,r),vi(t)}),!0),n("firstLineNumber",1,vi,!0),n("lineNumberFormatter",(function(t){return t}),vi,!0),n("showCursorWhenSelecting",!1,Ee,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,r){"nocursor"==r&&(Ae(t),t.display.input.blur()),t.display.input.readOnlyChanged(r)})),n("screenReaderLabel",null,(function(t,r){t.display.input.screenReaderLabelChanged(r=""===r?null:r)})),n("disableInput",!1,(function(t,r){r||t.display.input.reset()}),!0),n("dragDrop",!0,Is),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ee,!0),n("singleCursorHeightPerLine",!0,Ee,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Oi,!0),n("addModeClass",!1,Oi,!0),n("pollInterval",100),n("undoDepth",200,(function(t,r){return t.doc.history.undoDepth=r})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Oi,!0),n("moveInputWithCursor",!0,(function(t,r){r||t.display.input.resetPosition()})),n("tabindex",null,(function(t,r){return t.display.input.getField().tabIndex=r||""})),n("autofocus",null),n("direction","ltr",(function(t,r){return t.doc.setDirection(r)}),!0),n("phrases",null)}(As),function(t){var r=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var e=this.options,i=e[t];e[t]==n&&"mode"!=t||(e[t]=n,r.hasOwnProperty(t)&&ti(this,r[t])(this,n,i),dt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,r){this.state.keyMaps[r?"push":"unshift"](Yo(t))},removeKeyMap:function(t){for(var r=this.state.keyMaps,n=0;n<r.length;++n)if(r[n]==t||r[n].name==t)return r.splice(n,1),!0},addOverlay:ri((function(r,n){var e=r.token?r:t.getMode(this.options,r);if(e.startState)throw new Error("Overlays may not be stateful.");!function(t,r,n){for(var e=0,i=n(r);e<t.length&&n(t[e])<=i;)e++;t.splice(e,0,r)}(this.state.overlays,{mode:e,modeSpec:r,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,fe(this)})),removeOverlay:ri((function(t){for(var r=this.state.overlays,n=0;n<r.length;++n){var e=r[n].modeSpec;if(e==t||"string"==typeof t&&e.name==t)return r.splice(n,1),this.state.modeGen++,void fe(this)}})),indentLine:ri((function(t,r,n){"string"!=typeof r&&"number"!=typeof r&&(r=null==r?this.options.smartIndent?"smart":"prev":r?"add":"subtract"),Kt(this.doc,t)&&Ls(this,t,r,n)})),indentSelection:ri((function(t){for(var r=this.doc.sel.ranges,n=-1,e=0;e<r.length;e++){var i=r[e];if(i.empty())i.head.line>n&&(Ls(this,i.head.line,t,!0),n=i.head.line,e==this.doc.sel.primIndex&&Oe(this));else{var o=i.from(),s=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var u=a;u<n;++u)Ls(this,u,t);var l=this.doc.sel.ranges;0==o.ch&&r.length==l.length&&l[e].from().ch>0&&Xi(this.doc,e,new Ii(o,l[e].to()),V)}}})),getTokenAt:function(t,r){return mr(this,t,r)},getLineTokens:function(t,r){return mr(this,tr(t),r,!0)},getTokenTypeAt:function(t){t=ar(this.doc,t);var r,n=hr(this,$t(this.doc,t.line)),e=0,i=(n.length-1)/2,o=t.ch;if(0==o)r=n[2];else for(;;){var s=e+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]<o)){r=n[2*s+2];break}e=s+1}}var a=r?r.indexOf("overlay "):-1;return a<0?r:0==a?null:r.slice(0,a-1)},getModeAt:function(r){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(r).state).mode:n},getHelper:function(t,r){return this.getHelpers(t,r)[0]},getHelpers:function(t,r){var e=[];if(!n.hasOwnProperty(r))return e;var i=n[r],o=this.getModeAt(t);if("string"==typeof o[r])i[o[r]]&&e.push(i[o[r]]);else if(o[r])for(var s=0;s<o[r].length;s++){var a=i[o[r][s]];a&&e.push(a)}else o.helperType&&i[o.helperType]?e.push(i[o.helperType]):i[o.name]&&e.push(i[o.name]);for(var u=0;u<i._global.length;u++){var l=i._global[u];l.pred(o,this)&&-1==U(e,l.val)&&e.push(l.val)}return e},getStateAfter:function(t,r){var n=this.doc;return pr(this,(t=sr(n,null==t?n.first+n.size-1:t))+1,r).state},cursorCoords:function(t,r){var n=this.doc.sel.primary();return Wn(this,null==t?n.head:"object"==typeof t?ar(this.doc,t):t?n.from():n.to(),r||"page")},charCoords:function(t,r){return $n(this,ar(this.doc,t),r||"page")},coordsChar:function(t,r){return Zn(this,(t=zn(this,t,r||"page")).left,t.top)},lineAtHeight:function(t,r){return t=zn(this,{top:t,left:0},r||"page").top,Qt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,r,n){var e,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),e=$t(this.doc,t)}else e=t;return Hn(this,e,{top:0,left:0},r||"page",n||i).top+(i?this.doc.height-qr(e):0)},defaultTextHeight:function(){return ee(this.display)},defaultCharWidth:function(){return ie(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,r,n,e,i){var o,s=this.display,a=(t=Wn(this,ar(this.doc,t))).bottom,u=t.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),s.sizer.appendChild(r),"over"==e)a=t.top;else if("above"==e||"near"==e){var l=Math.max(s.wrapper.clientHeight,this.doc.height),c=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==e||t.bottom+r.offsetHeight>l)&&t.top>r.offsetHeight?a=t.top-r.offsetHeight:t.bottom+r.offsetHeight<=l&&(a=t.bottom),u+r.offsetWidth>c&&(u=c-r.offsetWidth)}r.style.top=a+"px",r.style.left=r.style.right="","right"==i?(u=s.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(s.sizer.clientWidth-r.offsetWidth)/2),r.style.left=u+"px"),n&&(null!=(o=Re(this,{left:u,top:a,right:u+r.offsetWidth,bottom:a+r.offsetHeight})).scrollTop&&De(this,o.scrollTop),null!=o.scrollLeft&&je(this,o.scrollLeft))},triggerOnKeyDown:ri(us),triggerOnKeyPress:ri(cs),triggerOnKeyUp:ls,triggerOnMouseDown:ri(ds),execCommand:function(t){if(Jo.hasOwnProperty(t))return Jo[t].call(null,this)},triggerElectric:ri((function(t){_s(this,t)})),findPosH:function(t,r,n,e){var i=1;r<0&&(i=-1,r=-r);for(var o=ar(this.doc,t),s=0;s<r&&!(o=Ms(this.doc,o,i,n,e)).hitSide;++s);return o},moveH:ri((function(t,r){var n=this;this.extendSelectionsBy((function(e){return n.display.shift||n.doc.extend||e.empty()?Ms(n.doc,e.head,t,r,n.options.rtlMoveVisually):t<0?e.from():e.to()}),H)})),deleteH:ri((function(t,r){var n=this.doc;this.doc.sel.somethingSelected()?n.replaceSelection("",null,"+delete"):Xo(this,(function(e){var i=Ms(n,e.head,t,r,!1);return t<0?{from:i,to:e.head}:{from:e.head,to:i}}))})),findPosV:function(t,r,n,e){var i=1,o=e;r<0&&(i=-1,r=-r);for(var s=ar(this.doc,t),a=0;a<r;++a){var u=Wn(this,s,"div");if(null==o?o=u.left:u.left=o,(s=js(this,u,i,n)).hitSide)break}return s},moveV:ri((function(t,r){var n=this,e=this.doc,i=[],o=!this.display.shift&&!e.extend&&e.sel.somethingSelected();if(e.extendSelectionsBy((function(s){if(o)return t<0?s.from():s.to();var a=Wn(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),i.push(a.left);var u=js(n,a,t,r);return"page"==r&&s==e.sel.primary()&&we(n,$n(n,u,"div").top-a.top),u}),H),i.length)for(var s=0;s<e.sel.ranges.length;s++)e.sel.ranges[s].goalColumn=i[s]})),findWordAt:function(t){var r=$t(this.doc,t.line).text,n=t.ch,e=t.ch;if(r){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&e!=r.length||!n?++e:--n;for(var o=r.charAt(n),s=tt(o,i)?function(t){return tt(t,i)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};n>0&&s(r.charAt(n-1));)--n;for(;e<r.length&&s(r.charAt(e));)++e}return new Ii(tr(t.line,n),tr(t.line,e))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),dt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ri((function(t,r){_e(this,t,r)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-Sn(this)-this.display.barHeight,width:t.scrollWidth-Sn(this)-this.display.barWidth,clientHeight:Cn(this),clientWidth:Ln(this)}},scrollIntoView:ri((function(t,r){null==t?(t={from:this.doc.sel.primary().head,to:null},null==r&&(r=this.options.cursorScrollMargin)):"number"==typeof t?t={from:tr(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=r||0,null!=t.from.line?function(t,r){ke(t),t.curOp.scrollToPos=r}(this,t):Pe(this,t.from,t.to,t.margin)})),setSize:ri((function(t,r){var n=this,e=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=e(t)),null!=r&&(this.display.wrapper.style.height=e(r)),this.options.lineWrapping&&Fn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var r=0;r<t.widgets.length;r++)if(t.widgets[r].noHScroll){he(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,dt(this,"refresh",this)})),operation:function(t){return Je(this,t)},startOperation:function(){return $e(this)},endOperation:function(){return We(this)},refresh:ri((function(){var t=this.display.cachedTextHeight;fe(this),this.curOp.forceUpdate=!0,Un(this),_e(this,this.doc.scrollLeft,this.doc.scrollTop),li(this.display),(null==t||Math.abs(t-ee(this.display))>.5||this.options.lineWrapping)&&ue(this),dt(this,"refresh",this)})),swapDoc:ri((function(t){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),Di(this,t),Un(this),this.display.input.reset(),_e(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,r),r})),phrase:function(t){var r=this.options.phrases;return r&&Object.prototype.hasOwnProperty.call(r,t)?r[t]:t},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}},mt(t),t.registerHelper=function(r,e,i){n.hasOwnProperty(r)||(n[r]=t[r]={_global:[]}),n[r][e]=i},t.registerGlobalHelper=function(r,e,i,o){t.registerHelper(r,e,o),n[r]._global.push({pred:i,val:o})}}(As);var Hs="iter insert remove copy getEditor constructor".split(" ");for(var zs in wo.prototype)wo.prototype.hasOwnProperty(zs)&&U(Hs,zs)<0&&(As.prototype[zs]=function(t){return function(){return t.apply(this.doc,arguments)}}(wo.prototype[zs]));return mt(wo),As.inputStyles={textarea:qs,contenteditable:Gs},As.defineMode=function(t){As.defaults.mode||"null"==t||(As.defaults.mode=t),jt.apply(this,arguments)},As.defineMIME=function(t,r){Mt[t]=r},As.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),As.defineMIME("text/plain","null"),As.defineExtension=function(t,r){As.prototype[t]=r},As.defineDocExtension=function(t,r){wo.prototype[t]=r},As.fromTextArea=function(t,r){if((r=r?j(r):{}).value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),null==r.autofocus){var n=_();r.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function e(){t.value=a.getValue()}var i;if(t.form&&(ft(t.form,"submit",e),!r.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var s=o.submit=function(){e(),o.submit=i,o.submit(),o.submit=s}}catch(t){}}r.finishInit=function(n){n.save=e,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,e(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",e),r.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var a=As((function(r){return t.parentNode.insertBefore(r,t.nextSibling)}),r);return a},function(t){t.off=pt,t.on=ft,t.wheelEventPixels=yi,t.Doc=wo,t.splitLines=Ot,t.countColumn=G,t.findColumn=z,t.isWordChar=J,t.Pass=B,t.signal=dt,t.Line=$r,t.changeEnd=Si,t.scrollbarModel=qe,t.Pos=tr,t.cmpPos=rr,t.modes=Dt,t.mimeModes=Mt,t.resolveMode=Gt,t.getMode=Ft,t.modeExtensions=Ut,t.extendMode=Bt,t.copyState=Vt,t.startState=Ht,t.innerMode=qt,t.commands=Jo,t.keyMap=Bo,t.keyName=Wo,t.isModifierKey=zo,t.lookupKey=Ho,t.normalizeKeyMap=qo,t.StringStream=zt,t.SharedTextMarker=So,t.TextMarker=No,t.LineWidget=xo,t.e_preventDefault=gt,t.e_stopPropagation=yt,t.e_stop=Tt,t.addClass=k,t.contains=O,t.rmClass=S,t.keyNames=jo}(As),As.version="5.55.0",As}()},function(t,r,n){var e=n(3).a.Symbol;r.a=e},function(t,r,n){var e,i=n(44),o=n(3).a["__core-js_shared__"],s=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",a=n(2),u=n(22),l=/^\[object .+?Constructor\]$/,c=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.a=function(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return function(t){return!(!Object(a.a)(t)||function(t){return!!s&&s in t}(t))&&(Object(i.a)(t)?c:l).test(Object(u.a)(t))}(n)?n:void 0}},function(t,r,n){var e=n(44),i=n(43);r.a=function(t){return null!=t&&Object(i.a)(t.length)&&!Object(e.a)(t)}},function(t,r,n){var e=n(8),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=e.a?e.a.toStringTag:void 0,u=Object.prototype.toString,l=e.a?e.a.toStringTag:void 0;r.a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var r=o.call(t,a),n=t[a];try{t[a]=void 0;var e=!0}catch(t){}var i=s.call(t);return e&&(r?t[a]=n:delete t[a]),i}(t):function(t){return u.call(t)}(t)}},function(t,r){r.a=function(t,r){return t===r||t!=t&&r!=r}},function(t,r,n){var e=n(68),i=n(80),o=n(10);r.a=function(t){return Object(o.a)(t)?Object(e.a)(t):Object(i.a)(t)}},function(t,r,n){(function(t){var e=n(3),i=n(93),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===o?e.a.Buffer:void 0;r.a=(a?a.isBuffer:void 0)||i.a}).call(this,n(83)(t))},function(t,r,n){var e=n(11),i=n(6),o=function(t){return Object(i.a)(t)&&"[object Arguments]"==Object(e.a)(t)},s=Object.prototype,a=s.hasOwnProperty,u=s.propertyIsEnumerable,l=o(function(){return arguments}())?o:function(t){return Object(i.a)(t)&&a.call(t,"callee")&&!u.call(t,"callee")};r.a=l},function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,r,n){var e=n(11),i=n(6);r.a=function(t){return"symbol"==typeof t||Object(i.a)(t)&&"[object Symbol]"==Object(e.a)(t)}},function(t,r,n){var e=n(26),i=n(28),o=n(34);function s(t){var r=this.__data__=new e.a(t);this.size=r.size}s.prototype.clear=function(){this.__data__=new e.a,this.size=0},s.prototype.delete=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n},s.prototype.get=function(t){return this.__data__.get(t)},s.prototype.has=function(t){return this.__data__.has(t)},s.prototype.set=function(t,r){var n=this.__data__;if(n instanceof e.a){var s=n.__data__;if(!i.a||s.length<199)return s.push([t,r]),this.size=++n.size,this;n=this.__data__=new o.a(s)}return n.set(t,r),this.size=n.size,this},r.a=s},function(t,r,n){t.exports=n(105)},function(t,r,n){var e=n(9),i=n(3),o=Object(e.a)(i.a,"DataView"),s=n(28),a=Object(e.a)(i.a,"Promise"),u=Object(e.a)(i.a,"Set"),l=Object(e.a)(i.a,"WeakMap"),c=n(11),f=n(22),h=Object(f.a)(o),p=Object(f.a)(s.a),d=Object(f.a)(a),v=Object(f.a)(u),E=Object(f.a)(l),b=c.a;(o&&"[object DataView]"!=b(new o(new ArrayBuffer(1)))||s.a&&"[object Map]"!=b(new s.a)||a&&"[object Promise]"!=b(a.resolve())||u&&"[object Set]"!=b(new u)||l&&"[object WeakMap]"!=b(new l))&&(b=function(t){var r=Object(c.a)(t),n="[object Object]"==r?t.constructor:void 0,e=n?Object(f.a)(n):"";if(e)switch(e){case h:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case v:return"[object Set]";case E:return"[object WeakMap]"}return r}),r.a=b},function(t){function r(n){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(n)}t.exports=r},function(t,r){var n=Function.prototype.toString;r.a=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,r){var n="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e="http://www.w3.org/2001/XMLSchema#",i="http://www.w3.org/2000/10/swap/";r.a={xsd:{decimal:e+"decimal",boolean:e+"boolean",double:e+"double",integer:e+"integer",string:e+"string"},rdf:{type:n+"type",nil:n+"nil",first:n+"first",rest:n+"rest",langString:n+"langString"},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:i+"reify#forSome",forAll:i+"reify#forAll"},log:{implies:i+"log#implies"}}},function(t,r,n){var e=n(17);r.a=function(t){if("string"==typeof t||Object(e.a)(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},function(t,r){r.a=function(t){return t}},function(t,r,n){var e=n(12),i=function(t,r){for(var n=t.length;n--;)if(Object(e.a)(t[n][0],r))return n;return-1},o=Array.prototype.splice;function s(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var r=this.__data__,n=i(r,t);return!(n<0||(n==r.length-1?r.pop():o.call(r,n,1),--this.size,0))},s.prototype.get=function(t){var r=this.__data__,n=i(r,t);return n<0?void 0:r[n][1]},s.prototype.has=function(t){return i(this.__data__,t)>-1},s.prototype.set=function(t,r){var n=this.__data__,e=i(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this},r.a=s},function(t,r,n){var e=n(8),i=n(60),o=n(1),s=n(17),a=e.a?e.a.prototype:void 0,u=a?a.toString:void 0,l=function t(r){if("string"==typeof r)return r;if(Object(o.a)(r))return Object(i.a)(r,t)+"";if(Object(s.a)(r))return u?u.call(r):"";var n=r+"";return"0"==n&&1/r==-1/0?"-0":n};r.a=function(t){return null==t?"":l(t)}},function(t,r,n){var e=n(9),i=n(3),o=Object(e.a)(i.a,"Map");r.a=o},,function(t,r){var n=Object.prototype;r.a=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||n)}},function(t,r,n){var e=n(48);r.a=function(t,r,n){"__proto__"==r&&e.a?Object(e.a)(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}},function(t,r,n){var e=n(67),i=n(31);r.a=function(t,r,n,o){var s=!n;n||(n={});for(var a=-1,u=r.length;++a<u;){var l=r[a],c=o?o(n[l],t[l],l,n,t):void 0;void 0===c&&(c=t[l]),s?Object(i.a)(n,l,c):Object(e.a)(n,l,c)}return n}},function(t,r,n){var e=n(11),i=n(43),o=n(6),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var a=n(45),u=n(35),l=u.a&&u.a.isTypedArray,c=l?Object(a.a)(l):function(t){return Object(o.a)(t)&&Object(i.a)(t.length)&&!!s[Object(e.a)(t)]};r.a=c},function(t,r,n){var e=n(9),i=Object(e.a)(Object,"create"),o=Object.prototype.hasOwnProperty,s=Object.prototype.hasOwnProperty;function a(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}a.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},a.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},a.prototype.get=function(t){var r=this.__data__;if(i){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(r,t)?r[t]:void 0},a.prototype.has=function(t){var r=this.__data__;return i?void 0!==r[t]:s.call(r,t)},a.prototype.set=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===r?"__lodash_hash_undefined__":r,this};var u=a,l=n(26),c=n(28),f=function(t,r){var n=t.__data__;return function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}(r)?n["string"==typeof r?"string":"hash"]:n.map};function h(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}h.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(c.a||l.a),string:new u}},h.prototype.delete=function(t){var r=f(this,t).delete(t);return this.size-=r?1:0,r},h.prototype.get=function(t){return f(this,t).get(t)},h.prototype.has=function(t){return f(this,t).has(t)},h.prototype.set=function(t,r){var n=f(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this},r.a=h},function(t,r,n){(function(t){var e=n(63),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i&&e.a.process,a=function(){try{return o&&o.require&&o.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();r.a=a}).call(this,n(83)(t))},function(t,r,n){var e=n(138),i=n(120),o=n(94),s=n(139);t.exports=function(t){return e(t)||i(t)||o(t)||s()}},function(t,r){var n=/^(?:0|[1-9]\d*)$/;r.a=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&n.test(t))&&t>-1&&t%1==0&&t<r}},function(t,r,n){var e=n(68),i=n(2),o=n(30),s=Object.prototype.hasOwnProperty,a=n(10);r.a=function(t){return Object(a.a)(t)?Object(e.a)(t,!0):function(t){if(!Object(i.a)(t))return function(t){var r=[];if(null!=t)for(var n in Object(t))r.push(n);return r}(t);var r=Object(o.a)(t),n=[];for(var e in t)("constructor"!=e||!r&&s.call(t,e))&&n.push(e);return n}(t)}},function(t,r,n){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=n(151),s=n(152),a=n(153),u=n(121),l=n(154),c=n(156);function f(){}t.exports=function(t,n){return"function"==typeof n?new r.Request("GET",t).end(n):1===arguments.length?new r.Request("GET",t):new r.Request(t,n)};var h=r=t.exports;r.Request=g,h.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function d(t){if(!u(t))return t;var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&v(r,n,t[n]);return r.join("&")}function v(t,r,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){v(t,r,n)}));else if(u(n))for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&v(t,"".concat(r,"[").concat(e,"]"),n[e]);else t.push(encodeURI(r)+"="+encodeURIComponent(n));else t.push(encodeURI(r))}function E(t){for(var r,n,e={},i=t.split("&"),o=0,s=i.length;o<s;++o)-1===(n=(r=i[o]).indexOf("="))?e[decodeURIComponent(r)]="":e[decodeURIComponent(r.slice(0,n))]=decodeURIComponent(r.slice(n+1));return e}function b(t){return/[/+]json($|[^-\w])/.test(t)}function m(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var r=this.xhr.status;1223===r&&(r=204),this._setStatusProperties(r),this.headers=function(t){for(var r,n,e,i,o=t.split(/\r?\n/),s={},a=0,u=o.length;a<u;++a)-1!==(r=(n=o[a]).indexOf(":"))&&(e=n.slice(0,r).toLowerCase(),i=p(n.slice(r+1)),s[e]=i);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.body=null===this.text&&t._responseType?this.xhr.response:"HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(t,r){var n=this;this._query=this._query||[],this.method=t,this.url=r,this.header={},this._header={},this.on("end",(function(){var t,r=null,e=null;try{e=new m(n)}catch(t){return(r=new Error("Parser is unable to parse the response")).parse=!0,r.original=t,n.xhr?(r.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,r.status=n.xhr.status?n.xhr.status:null,r.statusCode=r.status):(r.rawResponse=null,r.status=null),n.callback(r)}n.emit("response",e);try{n._isResponseOK(e)||(t=new Error(e.statusText||e.text||"Unsuccessful HTTP response"))}catch(r){t=r}t?(t.original=r,t.response=e,t.status=e.status,n.callback(t,e)):n.callback(null,e)}))}function y(t,r,n){var e=h("DELETE",t);return"function"==typeof r&&(n=r,r=null),r&&e.send(r),n&&e.end(n),e}h.serializeObject=d,h.parseString=E,h.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"},h.serialize={"application/x-www-form-urlencoded":d,"application/json":s},h.parse={"application/x-www-form-urlencoded":E,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(t){var r=h.parse[this.type];return this.req._parser?this.req._parser(this,t):(!r&&b(this.type)&&(r=h.parse["application/json"]),r&&t&&(t.length>0||t instanceof Object)?r(t):null)},m.prototype.toError=function(){var t=this.req,r=t.method,n=t.url,e="cannot ".concat(r," ").concat(n," (").concat(this.status,")"),i=new Error(e);return i.status=this.status,i.method=r,i.url=n,i},h.Response=m,o(g.prototype),a(g.prototype),g.prototype.type=function(t){return this.set("Content-Type",h.types[t]||t),this},g.prototype.accept=function(t){return this.set("Accept",h.types[t]||t),this},g.prototype.auth=function(t,r,n){1===arguments.length&&(r=""),"object"===e(r)&&null!==r&&(n=r,r=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var i=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,r,n,i)},g.prototype.query=function(t){return"string"!=typeof t&&(t=d(t)),t&&this._query.push(t),this},g.prototype.attach=function(t,r,n){if(r){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,r,n||r.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},g.prototype.callback=function(t,r){if(this._shouldRetry(t,r))return this._retry();var n=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),n(t,r)},g.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},g.prototype.buffer=g.prototype.ca=g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.pipe=g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype._isHost=function(t){return t&&"object"===e(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},g.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=h.getXHR();var r=this.xhr,n=this._formData||this._data;this._setTimeouts(),r.onreadystatechange=function(){var n=r.readyState;if(n>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===n){var e;try{e=r.status}catch(t){e=0}if(!e){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var e=function(r,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(t._uploadTimeoutTimer)),n.direction=r,t.emit("progress",n)};if(this.hasListeners("progress"))try{r.addEventListener("progress",e.bind(null,"download")),r.upload&&r.upload.addEventListener("progress",e.bind(null,"upload"))}catch(t){}r.upload&&this._setUploadTimeout();try{this.username&&this.password?r.open(this.method,this.url,!0,this.username,this.password):r.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(r.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],o=this._serializer||h.serialize[i?i.split(";")[0]:""];!o&&b(i)&&(o=h.serialize["application/json"]),o&&(n=o(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&r.setRequestHeader(s,this.header[s]);this._responseType&&(r.responseType=this._responseType),this.emit("request",this),r.send(void 0===n?null:n)},h.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){c.prototype[t.toLowerCase()]=function(r,n){var e=new h.Request(t,r);return this._setDefaults(e),n&&e.end(n),e}})),c.prototype.del=c.prototype.delete,h.get=function(t,r,n){var e=h("GET",t);return"function"==typeof r&&(n=r,r=null),r&&e.query(r),n&&e.end(n),e},h.head=function(t,r,n){var e=h("HEAD",t);return"function"==typeof r&&(n=r,r=null),r&&e.query(r),n&&e.end(n),e},h.options=function(t,r,n){var e=h("OPTIONS",t);return"function"==typeof r&&(n=r,r=null),r&&e.send(r),n&&e.end(n),e},h.del=y,h.delete=y,h.patch=function(t,r,n){var e=h("PATCH",t);return"function"==typeof r&&(n=r,r=null),r&&e.send(r),n&&e.end(n),e},h.post=function(t,r,n){var e=h("POST",t);return"function"==typeof r&&(n=r,r=null),r&&e.send(r),n&&e.end(n),e},h.put=function(t,r,n){var e=h("PUT",t);return"function"==typeof r&&(n=r,r=null),r&&e.send(r),n&&e.end(n),e}},function(t,r,n){(function(r){var n=Object.assign?Object.assign:function(t){for(var r=1;r<arguments.length;r++)a(Object(arguments[r]),(function(r,n){t[n]=r}));return t},e=function(){if(Object.create)return function(t,r,e,i){var o=s(arguments,1);return n.apply(this,[Object.create(t)].concat(o))};{function t(){}return function(r,e,i,o){var a=s(arguments,1);return t.prototype=r,n.apply(this,[new t].concat(a))}}}(),i=String.prototype.trim?function(t){return String.prototype.trim.call(t)}:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},o="undefined"!=typeof window?window:r;function s(t,r){return Array.prototype.slice.call(t,r||0)}function a(t,r){u(t,(function(t,n){return r(t,n),!1}))}function u(t,r){if(l(t)){for(var n=0;n<t.length;n++)if(r(t[n],n))return t[n]}else for(var e in t)if(t.hasOwnProperty(e)&&r(t[e],e))return t[e]}function l(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length}t.exports={assign:n,create:e,trim:i,bind:function(t,r){return function(){return r.apply(t,Array.prototype.slice.call(arguments,0))}},slice:s,each:a,map:function(t,r){var n=l(t)?[]:{};return u(t,(function(t,e){return n[e]=r(t,e),!1})),n},pluck:u,isList:l,isFunction:function(t){return t&&"[object Function]"==={}.toString.call(t)},isObject:function(t){return t&&"[object Object]"==={}.toString.call(t)},Global:o}}).call(this,n(72))},function(t,r,n){var e=n(104);t.exports=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&e(t,r)}},function(t,r,n){var e=n(49),i=n(16);t.exports=function(t,r){return!r||"object"!==e(r)&&"function"!=typeof r?i(t):r}},function(t,r){r.a=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,r,n){var e=n(11),i=n(2);r.a=function(t){if(!Object(i.a)(t))return!1;var r=Object(e.a)(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},function(t,r){r.a=function(t){return function(r){return t(r)}}},function(t,r,n){var e=n(1),i=n(17),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;r.a=function(t,r){if(Object(e.a)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Object(i.a)(t))||s.test(t)||!o.test(t)||null!=r&&t in Object(r)}},function(t,r,n){var e=n(3).a.Uint8Array;r.a=e},function(t,r,n){var e=n(9),i=function(){try{var t=Object(e.a)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();r.a=i},function(t){function r(n){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(n)}t.exports=r},function(t,r,n){function e(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],e=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(e=(s=a.next()).done)&&(n.push(s.value),!r||n.length!==r);e=!0);}catch(t){i=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}return n}}(t,r)||s(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,r){if(t){if("string"==typeof t)return a(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,r):void 0}}function a(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var u=n(157),l=n(158),c=n(159);function f(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(t,r){return r.encode?r.strict?u(t):encodeURIComponent(t):t}function p(t,r){return r.decode?l(t):t}function d(t){var r=t.indexOf("#");return-1!==r&&(t=t.slice(0,r)),t}function v(t){var r=(t=d(t)).indexOf("?");return-1===r?"":t.slice(r+1)}function E(t,r){return r.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!r.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function b(t,r){f((r=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},r)).arrayFormatSeparator);var n=function(t){var r;switch(t.arrayFormat){case"index":return function(t,n,e){r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===e[t]&&(e[t]={}),e[t][r[1]]=n):e[t]=n};case"bracket":return function(t,n,e){r=/(\[\])$/.exec(t),e[t=t.replace(/\[\]$/,"")]=r?void 0!==e[t]?[].concat(e[t],n):[n]:n};case"comma":case"separator":return function(r,n,e){var i="string"==typeof n&&n.split("").indexOf(t.arrayFormatSeparator)>-1?n.split(t.arrayFormatSeparator).map((function(r){return p(r,t)})):null===n?n:p(n,t);e[r]=i};default:return function(t,r,n){n[t]=void 0!==n[t]?[].concat(n[t],r):r}}}(r),o=Object.create(null);if("string"!=typeof t)return o;if(!(t=t.trim().replace(/^[?#&]/,"")))return o;var a,u=function(t){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=s(t))){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(t.split("&"));try{for(u.s();!(a=u.n()).done;){var l=a.value,h=e(c(r.decode?l.replace(/\+/g," "):l,"="),2),d=h[0],v=h[1];v=void 0===v?null:["comma","separator"].includes(r.arrayFormat)?v:p(v,r),n(p(d,r),v,o)}}catch(t){u.e(t)}finally{u.f()}for(var b=0,m=Object.keys(o);b<m.length;b++){var g=m[b],y=o[g];if("object"===i(y)&&null!==y)for(var x=0,T=Object.keys(y);x<T.length;x++){var I=T[x];y[I]=E(y[I],r)}else o[g]=E(y,r)}return!1===r.sort?o:(!0===r.sort?Object.keys(o).sort():Object.keys(o).sort(r.sort)).reduce((function(t,r){var n=o[r];return t[r]=Boolean(n)&&"object"===i(n)&&!Array.isArray(n)?function t(r){return Array.isArray(r)?r.sort():"object"===i(r)?t(Object.keys(r)).sort((function(t,r){return Number(t)-Number(r)})).map((function(t){return r[t]})):r}(n):n,t}),Object.create(null))}r.extract=v,r.parse=b,r.stringify=function(t,r){if(!t)return"";f((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);for(var n=function(n){return r.skipNull&&null==t[n]||r.skipEmptyString&&""===t[n]},e=function(t){switch(t.arrayFormat){case"index":return function(r){return function(n,e){var i=n.length;return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:[].concat(o(n),null===e?[[h(r,t),"[",i,"]"].join("")]:[[h(r,t),"[",h(i,t),"]=",h(e,t)].join("")])}};case"bracket":return function(r){return function(n,e){return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:[].concat(o(n),null===e?[[h(r,t),"[]"].join("")]:[[h(r,t),"[]=",h(e,t)].join("")])}};case"comma":case"separator":return function(r){return function(n,e){return null==e||0===e.length?n:0===n.length?[[h(r,t),"=",h(e,t)].join("")]:[[n,h(e,t)].join(t.arrayFormatSeparator)]}};default:return function(r){return function(n,e){return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:[].concat(o(n),null===e?[h(r,t)]:[[h(r,t),"=",h(e,t)].join("")])}}}}(r),i={},s=0,a=Object.keys(t);s<a.length;s++){var u=a[s];n(u)||(i[u]=t[u])}var l=Object.keys(i);return!1!==r.sort&&l.sort(r.sort),l.map((function(n){var i=t[n];return void 0===i?"":null===i?h(n,r):Array.isArray(i)?i.reduce(e(n),[]).join("&"):h(n,r)+"="+h(i,r)})).filter((function(t){return t.length>0})).join("&")},r.parseUrl=function(t,r){r=Object.assign({decode:!0},r);var n=e(c(t,"#"),2),i=n[1];return Object.assign({url:n[0].split("?")[0]||"",query:b(v(t),r)},r&&r.parseFragmentIdentifier&&i?{fragmentIdentifier:p(i,r)}:{})},r.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var e=d(t.url).split("?")[0]||"",i=r.extract(t.url),o=r.parse(i,{sort:!1}),s=Object.assign(o,t.query),a=r.stringify(s,n);a&&(a="?".concat(a));var u=function(t){var r="",n=t.indexOf("#");return-1!==n&&(r=t.slice(n)),r}(t.url);return t.fragmentIdentifier&&(u="#".concat(h(t.fragmentIdentifier,n))),"".concat(e).concat(a).concat(u)}},function(t,r,n){var e=n(65),i=Object(e.a)(Object.getPrototypeOf,Object);r.a=i},function(t,r,n){var e=n(18),i=n(59),o=n(2),s=function(t){return t==t&&!Object(o.a)(t)},a=n(13),u=function(t,r){return function(n){return null!=n&&n[t]===r&&(void 0!==r||t in Object(n))}},l=n(55),c=n(88),f=n(46),h=n(24),p=n(25),d=n(1);r.a=function(t){return"function"==typeof t?t:null==t?p.a:"object"==typeof t?Object(d.a)(t)?function(t,r){return Object(f.a)(t)&&s(r)?u(Object(h.a)(t),r):function(n){var e=function(t,r){var n=null==t?void 0:Object(l.a)(t,r);return void 0===n?void 0:n}(n,t);return void 0===e&&e===r?Object(c.a)(n,t):Object(i.a)(r,e,3)}}(t[0],t[1]):function(t){var r=function(t){for(var r=Object(a.a)(t),n=r.length;n--;){var e=r[n],i=t[e];r[n]=[e,i,s(i)]}return r}(t);return 1==r.length&&r[0][2]?u(r[0][0],r[0][1]):function(n){return n===t||function(t,r,n,o){var s=n.length,a=s;if(null==t)return!a;for(t=Object(t);s--;){var u=n[s];if(u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<a;){var l=(u=n[s])[0],c=t[l],f=u[1];if(u[2]){if(void 0===c&&!(l in t))return!1}else{var h,p=new e.a;if(!(void 0===h?Object(i.a)(f,c,3,o,p):h))return!1}}return!0}(n,0,r)}}(t):function(t){return Object(f.a)(t)?function(t){return function(r){return null==r?void 0:r[t]}}(Object(h.a)(t)):function(t){return function(r){return Object(l.a)(r,t)}}(t)}(t)}},function(t,r,n){var e=n(1),i=n(46),o=n(34);function s(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=function(){var e=arguments,i=r?r.apply(this,e):e[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,e);return n.cache=o.set(i,s)||o,s};return n.cache=new(s.Cache||o.a),n}s.Cache=o.a;var a=s,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,c=function(){var t=a((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(u,(function(t,n,e,i){r.push(e?i.replace(l,"$1"):n||t)})),r}),(function(t){return 500===r.size&&r.clear(),t})),r=t.cache;return t}(),f=n(27);r.a=function(t,r){return Object(e.a)(t)?t:Object(i.a)(t,r)?[t]:c(Object(f.a)(t))}},function(t){var r,n="object"==typeof Reflect?Reflect:null,e=n&&"function"==typeof n.apply?n.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)};r=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,r,n,e){var i,o,s;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",r,n.listener?n.listener:n),o=t._events),s=o[r]),void 0===s)s=o[r]=n,++t._eventsCount;else if("function"==typeof s?s=o[r]=e?[n,s]:[s,n]:e?s.unshift(n):s.push(n),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=r,l.count=s.length,console&&console.warn&&console.warn(l)}return t}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,r,n){var e={fired:!1,wrapFn:void 0,target:t,type:r,listener:n},i=c.bind(e);return i.listener=n,e.wrapFn=i,i}function h(t,r,n){var e=t._events;if(void 0===e)return[];var i=e[r];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var r=new Array(t.length),n=0;n<r.length;++n)r[n]=t[n].listener||t[n];return r}(i):d(i,i.length)}function p(t){var r=this._events;if(void 0!==r){var n=r[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,r){for(var n=new Array(r),e=0;e<r;++e)n[e]=t[e];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)e(u,this,r);else{var l=u.length,c=d(u,l);for(n=0;n<l;++n)e(c[n],this,r)}return!0},o.prototype.on=o.prototype.addListener=function(t,r){return l(this,t,r,!1)},o.prototype.prependListener=function(t,r){return l(this,t,r,!0)},o.prototype.once=function(t,r){return a(r),this.on(t,f(this,t,r)),this},o.prototype.prependOnceListener=function(t,r){return a(r),this.prependListener(t,f(this,t,r)),this},o.prototype.off=o.prototype.removeListener=function(t,r){var n,e,i,o,s;if(a(r),void 0===(e=this._events))return this;if(void 0===(n=e[t]))return this;if(n===r||n.listener===r)0==--this._eventsCount?this._events=Object.create(null):(delete e[t],e.removeListener&&this.emit("removeListener",t,n.listener||r));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,r){for(;r+1<t.length;r++)t[r]=t[r+1];t.pop()}(n,i),1===n.length&&(e[t]=n[0]),void 0!==e.removeListener&&this.emit("removeListener",t,s||r)}return this},o.prototype.removeAllListeners=function(t){var r,n,e;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(e=0;e<o.length;++e)"removeListener"!==(i=o[e])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(r=n[t]))this.removeListener(t,r);else if(void 0!==r)for(e=r.length-1;e>=0;e--)this.removeListener(t,r[e]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,r){return"function"==typeof t.listenerCount?t.listenerCount(r):p.call(t,r)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,r,n){var e=n(53),i=n(24);r.a=function(t,r){for(var n=0,o=(r=Object(e.a)(r,t)).length;null!=t&&n<o;)t=t[Object(i.a)(r[n++])];return n&&n==o?t:void 0}},function(t,r){r.a=function(t,r){for(var n=-1,e=r.length,i=t.length;++n<e;)t[i+n]=r[n];return t}},function(t,r,n){var e=n(75),i=n(74),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;r.a=s?function(t){return null==t?[]:(t=Object(t),Object(e.a)(s(t),(function(r){return o.call(t,r)})))}:i.a},function(t,r,n){var e=n(47);r.a=function(t){var r=new t.constructor(t.byteLength);return new e.a(r).set(new e.a(t)),r}},function(t,r,n){var e=n(18),i=n(34);function o(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new i.a;++r<n;)this.add(t[r])}o.prototype.add=o.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},o.prototype.has=function(t){return this.__data__.has(t)};var s=o,a=function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(r(t[n],n,t))return!0;return!1},u=function(t,r){return t.has(r)},l=function(t,r,n,e,i,o){var l=1&n,c=t.length,f=r.length;if(c!=f&&!(l&&f>c))return!1;var h=o.get(t);if(h&&o.get(r))return h==r;var p=-1,d=!0,v=2&n?new s:void 0;for(o.set(t,r),o.set(r,t);++p<c;){var E=t[p],b=r[p];if(e)var m=l?e(b,E,p,r,t,o):e(E,b,p,t,r,o);if(void 0!==m){if(m)continue;d=!1;break}if(v){if(!a(r,(function(t,r){if(!u(v,r)&&(E===t||i(E,t,n,e,o)))return v.push(r)}))){d=!1;break}}else if(E!==b&&!i(E,b,n,e,o)){d=!1;break}}return o.delete(t),o.delete(r),d},c=n(8),f=n(47),h=n(12),p=n(84),d=function(t){var r=-1,n=Array(t.size);return t.forEach((function(t){n[++r]=t})),n},v=c.a?c.a.prototype:void 0,E=v?v.valueOf:void 0,b=function(t,r,n,e,i,o,s){switch(n){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!o(new f.a(t),new f.a(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Object(h.a)(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var a=p.a;case"[object Set]":if(a||(a=d),t.size!=r.size&&!(1&e))return!1;var u=s.get(t);if(u)return u==r;e|=2,s.set(t,r);var c=l(a(t),a(r),e,i,o,s);return s.delete(t),c;case"[object Symbol]":if(E)return E.call(t)==E.call(r)}return!1},m=n(61),g=Object.prototype.hasOwnProperty,y=n(20),x=n(1),T=n(14),I=n(33),N="[object Object]",A=Object.prototype.hasOwnProperty,S=function(t,r,n,i,o,s){var a=Object(x.a)(t),u=Object(x.a)(r),c=a?"[object Array]":Object(y.a)(t),f=u?"[object Array]":Object(y.a)(r),h=(c="[object Arguments]"==c?N:c)==N,p=(f="[object Arguments]"==f?N:f)==N,d=c==f;if(d&&Object(T.a)(t)){if(!Object(T.a)(r))return!1;a=!0,h=!1}if(d&&!h)return s||(s=new e.a),a||Object(I.a)(t)?l(t,r,n,i,o,s):b(t,r,c,n,i,o,s);if(!(1&n)){var v=h&&A.call(t,"__wrapped__"),E=p&&A.call(r,"__wrapped__");if(v||E){var S=v?t.value():t,L=E?r.value():r;return s||(s=new e.a),o(S,L,n,i,s)}}return!!d&&(s||(s=new e.a),function(t,r,n,e,i,o){var s=1&n,a=Object(m.a)(t),u=a.length;if(u!=Object(m.a)(r).length&&!s)return!1;for(var l=u;l--;){var c=a[l];if(!(s?c in r:g.call(r,c)))return!1}var f=o.get(t);if(f&&o.get(r))return f==r;var h=!0;o.set(t,r),o.set(r,t);for(var p=s;++l<u;){var d=t[c=a[l]],v=r[c];if(e)var E=s?e(v,d,c,r,t,o):e(d,v,c,t,r,o);if(!(void 0===E?d===v||i(d,v,n,e,o):E)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var b=t.constructor,y=r.constructor;b==y||!("constructor"in t)||!("constructor"in r)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(t),o.delete(r),h}(t,r,n,i,o,s))},L=n(6);r.a=function t(r,n,e,i,o){return r===n||(null==r||null==n||!Object(L.a)(r)&&!Object(L.a)(n)?r!=r&&n!=n:S(r,n,e,i,t,o))}},function(t,r){r.a=function(t,r){for(var n=-1,e=null==t?0:t.length,i=Array(e);++n<e;)i[n]=r(t[n],n,t);return i}},function(t,r,n){var e=n(73),i=n(57),o=n(13);r.a=function(t){return Object(e.a)(t,o.a,i.a)}},function(t,r,n){n.r(r),n.d(r,"Parser",(function(){return Mt})),n.d(r,"Yasr",(function(){return ar})),n.d(r,"registerPlugin",(function(){return ur}));var e=n(49),i=n.n(e),o=n(19),s=n.n(o),a=n(4),u=n.n(a),l=n(5),c=n.n(l),f=n(41),h=n.n(f),p=n(42),d=n.n(p),v=n(21),E=n.n(v),b=n(54),m=n(170),g=n(27),y=0,x=function(t){var r=++y;return Object(g.a)(t)+r},T=n(75),I=n(90),N=function(t,r){var n=[];return Object(I.a)(t,(function(t,e,i){r(t,e,i)&&n.push(t)})),n},A=n(52),S=n(1),L=function(t,r){return(Object(S.a)(t)?T.a:N)(t,Object(A.a)(r,3))},C=n(175),R=n(0),w=function(t,r){if("string"==typeof t){var n=JSON.parse(t);if(r)for(var e in n.results.bindings)n.results.bindings[e]=r(n.results.bindings[e]);return n}if("object"==i()(t)&&t.constructor==={}.constructor){if(r&&t.results)for(var o in t.results.bindings)t.results.bindings[o]=r(t.results.bindings[o]);return t}throw new Error("Could not parse json")},O=n(123),_=n(23);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&D(t,r)}function D(t,r){return(D=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function M(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=F(t);if(r){var i=F(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return j(this,n)}}function j(t,r){return!r||"object"!==k(r)&&"function"!=typeof r?G(t):r}function G(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function U(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function B(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function V(t,r,n){return r&&B(t.prototype,r),n&&B(t,n),t}var q,H=_.a.rdf,z=_.a.xsd,$=0,W={namedNode:function(t){return new X(t)},blankNode:function(t){return new Q(t||"n3-".concat($++))},variable:function(t){return new K(t)},literal:function(t,r){if("string"==typeof r)return new Z('"'+t+'"@'+r.toLowerCase());var n=r?r.value:"";return""===n&&("boolean"==typeof t?n=z.boolean:"number"==typeof t&&(Number.isFinite(t)?n=Number.isInteger(t)?z.integer:z.double:(n=z.double,Number.isNaN(t)||(t=t>0?"INF":"-INF")))),new Z(""===n||n===z.string?'"'+t+'"':'"'+t+'"^^'+n)},defaultGraph:function(){return q},quad:tt,triple:tt},Y=function(){function t(r){U(this,t),this.id=r}return V(t,[{key:"equals",value:function(r){return r instanceof t?this.id===r.id:!!r&&this.termType===r.termType&&this.value===r.value}},{key:"toJSON",value:function(){return{termType:this.termType,value:this.value}}},{key:"value",get:function(){return this.id}}]),t}(),X=function(t){P(n,t);var r=M(n);function n(){return U(this,n),r.apply(this,arguments)}return V(n,[{key:"termType",get:function(){return"NamedNode"}}]),n}(Y),Z=function(t){P(n,t);var r=M(n);function n(){return U(this,n),r.apply(this,arguments)}return V(n,[{key:"equals",value:function(t){return t instanceof n?this.id===t.id:!!t&&!!t.datatype&&this.termType===t.termType&&this.value===t.value&&this.language===t.language&&this.datatype.value===t.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 t=this.id,r=t.lastIndexOf('"')+1;return r<t.length&&"@"===t[r++]?t.substr(r).toLowerCase():""}},{key:"datatype",get:function(){return new X(this.datatypeString)}},{key:"datatypeString",get:function(){var t,r=this.id,n=r.lastIndexOf('"')+1;return n<r.length&&"^"===(t=r[n])?r.substr(n+2):"@"!==t?z.string:H.langString}}]),n}(Y),Q=function(t){P(n,t);var r=M(n);function n(t){return U(this,n),r.call(this,"_:"+t)}return V(n,[{key:"termType",get:function(){return"BlankNode"}},{key:"value",get:function(){return this.id.substr(2)}}]),n}(Y),K=function(t){P(n,t);var r=M(n);function n(t){return U(this,n),r.call(this,"?"+t)}return V(n,[{key:"termType",get:function(){return"Variable"}},{key:"value",get:function(){return this.id.substr(1)}}]),n}(Y);q=new(function(t){P(n,t);var r=M(n);function n(){var t;return U(this,n),j(t=r.call(this,""),q||G(t))}return V(n,[{key:"equals",value:function(t){return this===t||!!t&&this.termType===t.termType}},{key:"termType",get:function(){return"DefaultGraph"}}]),n}(Y));var J=function(){function t(r,n,e,i){U(this,t),this.subject=r,this.predicate=n,this.object=e,this.graph=i||q}return V(t,[{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(t){return!!t&&this.subject.equals(t.subject)&&this.predicate.equals(t.predicate)&&this.object.equals(t.object)&&this.graph.equals(t.graph)}}]),t}();function tt(t,r,n,e){return new J(t,r,n,e)}function rt(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}var nt=0,et=function(){function t(r){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this._contextStack=[],this._graph=null,this._setBase((r=r||{}).baseIRI),r.factory&&ot(this,r.factory);var n="string"==typeof r.format?r.format.match(/\w*$/)[0].toLowerCase():"",e="turtle"===n,i="trig"===n,o=/triple/.test(n),s=/quad/.test(n),a=this._n3Mode=/n3/.test(n),u=o||s;(this._supportsNamedGraphs=!(e||a))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(e||i||o||a),u&&(this._resolveRelativeIRI=function(){return null}),this._blankNodePrefix="string"!=typeof r.blankNodePrefix?"":r.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=r.lexer||new O.a({lineMode:u,n3:a}),this._explicitQuantifiers=!!r.explicitQuantifiers}var r,n,e;return r=t,e=[{key:"_resetBlankNodePrefix",value:function(){nt=0}}],(n=[{key:"_setBase",value:function(t){if(t){var r=t.indexOf("#");r>=0&&(t=t.substr(0,r)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=t[0],this._baseScheme=t[1]}else this._base="",this._basePath=""}},{key:"_saveContext",value:function(t,r,n,e,i){var o=this._n3Mode;this._contextStack.push({subject:n,predicate:e,object:i,graph:r,type:t,inverse:!!o&&this._inversePredicate,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?this._graph.id.substr(2)+".":".",this._quantified=Object.create(this._quantified))}},{key:"_restoreContext",value:function(){var t=this._contextStack.pop(),r=this._n3Mode;this._subject=t.subject,this._predicate=t.predicate,this._object=t.object,this._graph=t.graph,r&&(this._inversePredicate=t.inverse,this._prefixes._=t.blankPrefix,this._quantified=t.quantified)}},{key:"_readInTopContext",value:function(t){switch(t.type){case"eof":return null!==this._graph?this._error("Unclosed graph",t):(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(t)}}},{key:"_readEntity",value:function(t,r){var n;switch(t.type){case"IRI":case"typeIRI":var e=this._resolveIRI(t.value);if(null===e)return this._error("Invalid IRI",t);n=this._namedNode(e);break;case"type":case"prefixed":var i=this._prefixes[t.prefix];if(void 0===i)return this._error('Undefined prefix "'+t.prefix+':"',t);n=this._namedNode(i+t.value);break;case"blank":n=this._blankNode(this._prefixes[t.prefix]+t.value);break;case"var":n=this._variable(t.value.substr(1));break;default:return this._error("Expected entity but got "+t.type,t)}return!r&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}},{key:"_readSubject",value:function(t){switch(this._predicate=null,t.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",t);case"}":return this._readPunctuation(t);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',t);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',t);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",t);if(0===t.prefix.length)return this._literalValue=t.value,this._completeSubjectLiteral;this._subject=this._literal(t.value,this._namedNode(t.prefix));break;default:if(void 0===(this._subject=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}},{key:"_readPredicate",value:function(t){var r=t.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[t.value];break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected "+r,t):(this._subject=null,"]"===r?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return null!==this._predicate?this._readPredicate:this._error("Expected predicate but got ;",t);case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",t);default:if(void 0===(this._predicate=this._readEntity(t)))return}return this._readObject}},{key:"_readObject",value:function(t){switch(t.type){case"literal":if(0===t.prefix.length)return this._literalValue=t.value,this._readDataTypeOrLang;this._object=this._literal(t.value,this._namedNode(t.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",t);default:if(void 0===(this._object=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}},{key:"_readPredicateOrNamedGraph",value:function(t){return"{"===t.type?this._readGraph(t):this._readPredicate(t)}},{key:"_readGraph",value:function(t){return"{"!==t.type?this._error("Expected graph but got "+t.type,t):(this._graph=this._subject,this._subject=null,this._readSubject)}},{key:"_readBlankNodeHead",value:function(t){return"]"===t.type?(this._subject=null,this._readBlankNodeTail(t)):(this._predicate=null,this._readPredicate(t))}},{key:"_readBlankNodeTail",value:function(t){if("]"!==t.type)return this._readBlankNodePunctuation(t);null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph);var r=null===this._predicate;return this._restoreContext(),null===this._object?r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank:this._getContextEndReader()}},{key:"_readPredicateAfterBlank",value:function(t){switch(t.type){case".":case"}":return this._subject=null,this._readPunctuation(t);default:return this._readPredicate(t)}}},{key:"_readListItem",value:function(t){var r=null,n=null,e=this._subject,i=this._contextStack,o=i[i.length-1],s=this._readListItem;switch(t.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=r=this._blankNode()),s=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext(),0!==i.length&&"list"===i[i.length-1].type&&this._emit(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(s=this._readPredicate,this._subject===this.RDF_NIL)return s}else if(s=this._getContextEndReader(),this._object===this.RDF_NIL)return s;n=this.RDF_NIL;break;case"literal":0===t.prefix.length?(this._literalValue=t.value,s=this._readListItemDataTypeOrLang):(r=this._literal(t.value,this._namedNode(t.prefix)),s=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",t);default:if(void 0===(r=this._readEntity(t)))return}if(null===n&&(this._subject=n=this._blankNode()),null===e?null===o.predicate?o.subject=n:o.object=n:this._emit(e,this.RDF_REST,n,this._graph),null!==r){if(this._n3Mode&&("IRI"===t.type||"prefixed"===t.type))return this._saveContext("item",this._graph,n,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,r,this._graph)}return s}},{key:"_readDataTypeOrLang",value:function(t){return this._completeObjectLiteral(t,!1)}},{key:"_readListItemDataTypeOrLang",value:function(t){return this._completeObjectLiteral(t,!0)}},{key:"_completeLiteral",value:function(t){var r=this._literal(this._literalValue);switch(t.type){case"type":case"typeIRI":var n=this._readEntity(t);if(void 0===n)return;r=this._literal(this._literalValue,n),t=null;break;case"langcode":r=this._literal(this._literalValue,t.value),t=null}return{token:t,literal:r}}},{key:"_completeSubjectLiteral",value:function(t){return this._subject=this._completeLiteral(t).literal,this._readPredicateOrNamedGraph}},{key:"_completeObjectLiteral",value:function(t,r){var n=this._completeLiteral(t);if(n)return this._object=n.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),null===n.token?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}},{key:"_readFormulaTail",value:function(t){return"}"!==t.type?this._readPunctuation(t):(null!==this._subject&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext(),null===this._object?this._readPredicate:this._getContextEndReader())}},{key:"_readPunctuation",value:function(t){var r,n=this._subject,e=this._graph,i=this._inversePredicate;switch(t.type){case"}":if(null===this._graph)return this._error("Unexpected graph closing",t);if(this._n3Mode)return this._readFormulaTail(t);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(e=this._readEntity(t))){r=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'+this._object.id+'"',t)}if(null!==n){var o=this._predicate,s=this._object;i?this._emit(s,o,n,e):this._emit(n,o,s,e)}return r}},{key:"_readBlankNodePunctuation",value:function(t){var r;switch(t.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error('Expected punctuation to follow "'+this._object.id+'"',t)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}},{key:"_readQuadPunctuation",value:function(t){return"."!==t.type?this._error("Expected dot to follow quad",t):this._readInTopContext}},{key:"_readPrefix",value:function(t){return"prefix"!==t.type?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)}},{key:"_readPrefixIRI",value:function(t){if("IRI"!==t.type)return this._error('Expected IRI to follow prefix "'+this._prefix+':"',t);var r=this._readEntity(t);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}},{key:"_readBaseIRI",value:function(t){var r="IRI"===t.type&&this._resolveIRI(t.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",t)}},{key:"_readNamedGraphLabel",value:function(t){switch(t.type){case"IRI":case"blank":case"prefixed":return this._readSubject(t),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",t)}}},{key:"_readNamedGraphBlankLabel",value:function(t){return"]"!==t.type?this._error("Invalid graph label",t):(this._subject=this._blankNode(),this._readGraph)}},{key:"_readDeclarationPunctuation",value:function(t){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(t)):"."!==t.type?this._error("Expected declaration to end with a dot",t):this._readInTopContext}},{key:"_readQuantifierList",value:function(t){var r;switch(t.type){case"IRI":case"prefixed":if(void 0!==(r=this._readEntity(t,!0)))break;default:return this._error("Unexpected "+t.type,t)}return this._explicitQuantifiers?(null===this._subject?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,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}},{key:"_readQuantifierPunctuation",value:function(t){return","===t.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(t))}},{key:"_getPathReader",value:function(t){return this._afterPath=t,this._readPath}},{key:"_readPath",value:function(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var r=this._contextStack,n=r.length&&r[r.length-1];if(n&&"item"===n.type){var e=this._subject;this._restoreContext(),this._emit(this._subject,this.RDF_FIRST,e,this._graph)}return this._afterPath(t)}}},{key:"_readForwardPath",value:function(t){var r,n,e=this._blankNode();if(void 0!==(n=this._readEntity(t)))return null===this._predicate?(r=this._subject,this._subject=e):(r=this._object,this._object=e),this._emit(r,n,e,this._graph),this._readPath}},{key:"_readBackwardPath",value:function(t){var r,n,e=this._blankNode();if(void 0!==(r=this._readEntity(t)))return null===this._predicate?(n=this._subject,this._subject=e):(n=this._object,this._object=e),this._emit(e,r,n,this._graph),this._readPath}},{key:"_getContextEndReader",value:function(){var t=this._contextStack;if(!t.length)return this._readPunctuation;switch(t[t.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail}}},{key:"_emit",value:function(t,r,n,e){this._callback(null,this._quad(t,r,n,e||this.DEFAULTGRAPH))}},{key:"_error",value:function(t,r){var n=new Error(t+" on line "+r.line+".");n.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=it}},{key:"_resolveIRI",value:function(t){return/^[a-z][a-z0-9+.-]*:/i.test(t)?t:this._resolveRelativeIRI(t)}},{key:"_resolveRelativeIRI",value:function(t){if(!t.length)return this._base;switch(t[0]){case"#":return this._base+t;case"?":return this._base.replace(/(?:\?.*)?$/,t);case"/":return("/"===t[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(t);default:return/^[^/:]*:/.test(t)?null:this._removeDotSegments(this._basePath+t)}}},{key:"_removeDotSegments",value:function(t){if(!/(^|\/)\.\.?($|[/#?])/.test(t))return t;for(var r="",n=t.length,e=-1,i=-1,o=0,s="/";e<n;){switch(s){case":":if(i<0&&"/"===t[++e]&&"/"===t[++e])for(;(i=e+1)<n&&"/"!==t[i];)e=i;break;case"?":case"#":e=n;break;case"/":if("."===t[e+1])switch(s=t[1+ ++e]){case"/":r+=t.substring(o,e-1),o=e+1;break;case void 0:case"?":case"#":return r+t.substring(o,e)+t.substr(e+1);case".":if(void 0===(s=t[1+ ++e])||"/"===s||"?"===s||"#"===s){if((o=(r+=t.substring(o,e-2)).lastIndexOf("/"))>=i&&(r=r.substr(0,o)),"/"!==s)return r+"/"+t.substr(e+1);o=e+1}}}s=t[++e]}return r+t.substring(o)}},{key:"parse",value:function(t,r,n){var e=this;if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):"b"+nt+++"_",this._prefixCallback=n||it,this._inversePredicate=!1,this._quantified=Object.create(null),!r){var i,o=[];if(this._callback=function(t,r){t?i=t:r&&o.push(r)},this._lexer.tokenize(t).every((function(t){return e._readCallback=e._readCallback(t)})),i)throw i;return o}this._callback=r,this._lexer.tokenize(t,(function(t,r){null!==t?(e._callback(t),e._callback=it):e._readCallback&&(e._readCallback=e._readCallback(r))}))}}])&&rt(r.prototype,n),e&&rt(r,e),t}();function it(){}function ot(t,r){var n=r.namedNode;t._namedNode=n,t._blankNode=r.blankNode,t._literal=r.literal,t._variable=r.variable,t._quad=r.quad,t.DEFAULTGRAPH=r.defaultGraph(),t.RDF_FIRST=n(_.a.rdf.first),t.RDF_REST=n(_.a.rdf.rest),t.RDF_NIL=n(_.a.rdf.nil),t.N3_FORALL=n(_.a.r.forAll),t.N3_FORSOME=n(_.a.r.forSome),t.ABBREVIATIONS={a:n(_.a.rdf.type),"=":n(_.a.owl.sameAs),">":n(_.a.log.implies)},t.QUANTIFIERS_GRAPH=n("urn:n3:quantifiers")}function st(t){if("NamedNode"===t.termType)return{value:t.value,type:"uri"};if("Literal"===t.termType){var r={value:t.value,type:"literal"},n=t.language;n&&(r["xml:lang"]=n);var e=t.datatypeString;return e&&(r.datatype=e),r}return"BlankNode"===t.termType?{value:t.value,type:"bnode"}:{value:t.value,type:"uri"}}function at(t){return(new et).parse(t||"")}ot(et.prototype,W);var ut=n(64),lt=Object(ut.a)({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ct=/&(?:amp|lt|gt|quot|#39);/g,ft=RegExp(ct.source),ht=function(t){return(t=Object(g.a)(t))&&ft.test(t)?t.replace(ct,lt):t},pt=n(80),dt=n(20),vt=n(15),Et=n(10),bt=n(14),mt=n(30),gt=n(33),yt=Object.prototype.hasOwnProperty,xt=function(t){if(null==t)return!0;if(Object(Et.a)(t)&&(Object(S.a)(t)||"string"==typeof t||"function"==typeof t.splice||Object(bt.a)(t)||Object(gt.a)(t)||Object(vt.a)(t)))return!t.length;var r=Object(dt.a)(t);if("[object Map]"==r||"[object Set]"==r)return!t.size;if(Object(mt.a)(t))return!Object(pt.a)(t).length;for(var n in t)if(yt.call(t,n))return!1;return!0};function Tt(t){for(var r={vars:[]},n=0;n<t.childNodes.length;n++){var e=t.childNodes[n];if("variable"==e.nodeName){var i=e.getAttribute("name");i&&r.vars.push(i)}}return r}var It=["uri","literal","bnode","typed-literal"];function Nt(t,r){for(var n={bindings:[]},e=0;e<t.childNodes.length;e++){for(var i=t.childNodes[e],o={},s=0;s<i.childNodes.length;s++){var a=i.childNodes[s];if("binding"==a.nodeName){var u=a.getAttribute("name");if(u)for(var l=0;l<a.childNodes.length;l++){var c=a.childNodes[l];if("#text"!==c.nodeName&&!(It.indexOf(c.nodeName)<0)){var f={type:c.nodeName,value:ht(c.innerHTML)},h=c.getAttribute("datatype");h&&(f.datatype=h),o[u]=f}}}}xt(o)||n.bindings.push(r(o))}return n}function At(t){return"true"===t.innerHTML}var St=function(t,r){if("string"==typeof t){var n=(new DOMParser).parseFromString(t,"text/xml");if(n.childNodes.length){for(var e=n.childNodes[0],i={},o=0;o<e.childNodes.length;o++){var s=e.childNodes[o];"head"==s.nodeName&&(i.head=Tt(s)),"results"==s.nodeName&&(i.results=Nt(s,r)),"boolean"==s.nodeName&&(i.boolean=At(s))}return i}}},Lt=n(125),Ct=n(71),Rt=n.n(Ct),wt=n(126),Ot=n.n(wt);function _t(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var kt=n(127),Pt=n(186),Dt=function(t){for(var r in t)"uri"!==t[r].type&&(t[r].value=t[r].value.replace(/{{(.*?)}}/g,(function(r){return r=r.substring(2,r.length-2).trim(),t[r]?t[r].value:r})));return t},Mt=function(){function t(r,n){u()(this,t),r.executionTime&&(this.executionTime=r.executionTime),n&&(this.executionTime=n),r instanceof Error?this.error=r:r.xhr?this.setResponse(r):this.setSummary(r)}return c()(t,[{key:"setResponse",value:function(t){this.res=t}},{key:"setSummary",value:function(t){this.summary=t.data||t.error?t:{data:t}}},{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&&void 0!==this.error.response?(this.errorSummary={text:this.error.response.text,status:this.error.response.status,statusText:this.error.response.statusText},this.error.response.body&&"object"===i()(this.error.response.body)&&"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:!1===this.json||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 t=this.getContentType();if(t){var r=Object(Pt.a)(this.getData());try{if(t.indexOf("json")>-1){if(t.indexOf("sparql-results+json")>=0)return this.json=w(r,Dt),this.type="json",!0;if(t.indexOf("application/rdf+json")>-1)return this.type="json",!0;this.type="json"}else{if(t.indexOf("xml")>-1)return this.json=St(r,Dt),this.type="xml",!0;if(t.indexOf("csv")>-1)return this.json=function(t){var r=Lt.parse(t,{header:!0,skipEmptyLines:!0});if(void 0===r.meta.fields)throw new Error("Could not parse CSV, no headers found!");return{head:{vars:r.meta.fields},results:{bindings:r.data.map((function(t){var r={};for(var n in t)r[n]={value:t[n],type:"literal"};return r}))}}}(r),this.type="csv",!0;if(t.indexOf("tab-separated")>-1)return this.json=function(t){var r=t.split("\n");r.pop();var n=Ot()(r),e=n[0],i=n.slice(1),o=e.split("\t").map((function(t){return t.substring(1)})),s=i.map((function(t){var r,n={},e=function(t){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,r){if(t){if("string"==typeof t)return _t(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(t,r):void 0}}(t))){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(t.split("\t").entries());try{for(e.s();!(r=e.n()).done;){var i=Rt()(r.value,2),s=i[1],a=o[i[0]];if("<"===s[0])n[a]={value:s.substring(1,s.length-1),type:"uri"};else if('"'===s[0]){var u=s.lastIndexOf('"'),l=s.substring(1,u);if(u===s.length-1)n[a]={value:l,type:"literal"};else if(u<s.lastIndexOf("@")){var c=s.substring(s.lastIndexOf("@")+1);n[a]={value:l,type:"literal","xml:lang":c}}else if(u<s.lastIndexOf("^^")){var f=s.substring(s.lastIndexOf("^^")+2);n[a]={value:l,type:"typed-literal",datatype:f}}}}}catch(t){e.e(t)}finally{e.f()}return n}));return{head:{vars:o},results:{bindings:s}}}(r),this.type="tsv",!0;if(t.indexOf("turtle")>0||t.indexOf("trig")>0||t.indexOf("triple")>0||t.indexOf("quad")>0)return this.json={head:{vars:["subject","predicate","object"]},results:{bindings:at(r).map((function(t){return{subject:st(t.subject),predicate:st(t.predicate),object:st(t.object)}}))}},this.type="ttl",!0}}catch(t){this.errorSummary=t instanceof Error?{text:t.message}:{text:t}}}return!1}},{key:"doLuckyGuess",value:function(){var t=Object(Pt.a)(this.getData());try{return this.json=w(t,Dt),this.type="json",!0}catch(t){}try{return this.json=St(t,Dt),this.type="xml",!0}catch(t){}return!1}},{key:"getVariables",value:function(){var t=this.getAsJson();return t&&t.head?t.head.vars:[]}},{key:"getBoolean",value:function(){var t=this.getAsJson();if(t&&"boolean"in t)return t.boolean}},{key:"getBindings",value:function(){var t=this.getAsJson();return t&&t.results?t.results.bindings:null}},{key:"getStatements",value:function(){return this.statements||"ttl"!==this.type||(this.statements=at(this.getData())),this.statements?this.statements:null}},{key:"getOriginalResponseAsString",value:function(){var t=this.getData();return"string"==typeof t?t:"json"===this.type?JSON.stringify(t,void 0,2):t}},{key:"getOriginalResponse",value:function(){var t;return null===(t=this.res)||void 0===t?void 0:t.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(t){var r=this.summary;if(!r&&this.res&&(r={contentType:this.getContentType(),data:this.getOriginalResponseAsString(),error:this.getError(),status:this.getStatus(),executionTime:this.getResponseTime()}),r){if(r.data&&r.data.length>t)return;return r}if(this.error)return{error:this.getError(),executionTime:this.getResponseTime()}}},{key:"asCsv",value:function(){var t,r,n,e,i=this.getAsJson();return"csv"===this.type?this.getOriginalResponseAsString():i&&i.results?(n=(t=i).head.vars,e=null===(r=t.results)||void 0===r?void 0:r.bindings,new kt.Parser({fields:n}).parse(e?e.map((function(t){return Object(C.a)(t,(function(t){return t.value}))})):[])):void 0}}]),t}();function jt(t){var r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(r)}function Gt(t,r){return new Promise((function(n){var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("async",""),e.setAttribute("src",t),r&&(e.innerHTML=r),e.onload=function(){return n()},document.getElementsByTagName("head")[0].appendChild(e)}))}var Ft=n(98);Ft.addHook("afterSanitizeAttributes",(function(t){t instanceof HTMLAnchorElement&&(t.target="_blank",t.rel="noopener noreferrer")}));var Ut=Ft.sanitize,Bt=n(128),Vt=n(129),qt=n(36),Ht=n.n(qt),zt=n(95),$t=n.n(zt),Wt=n(171),Yt=n(130);n(140),n(141),n(142);var Xt=n(143);function Zt(t){Object(R.b)(this,"expanded"),t.preventDefault()}var Qt=function(){function t(r){var n=this;u()(this,t),this.persistentConfig={},this.helpReference="https://triply.cc/docs/yasgui#table",this.label="Table",this.priority=10,this.setEllipsisHandlers=function(){var t;null===(t=n.dataTable)||void 0===t||t.cells({page:"current"}).every((function(t,r){var e,i,o=null===(e=n.dataTable)||void 0===e?void 0:e.cell(t,r);if(""!==(null==o?void 0:o.data())){var s=null==o?void 0:o.node();if(s){var a=s.firstChild;((null===(i=a.firstElementChild)||void 0===i?void 0:i.getBoundingClientRect().width)||0)>a.getBoundingClientRect().width?a.classList.contains("expandable")||(Object(R.b)(a,"expandable"),a.addEventListener("click",Zt,{once:!0})):a.classList.contains("expandable")&&(Object(R.g)(a,"expandable"),a.removeEventListener("click",Zt))}}}))},this.handleTableSearch=function(t){var r;null===(r=n.dataTable)||void 0===r||r.search(t.target.value).draw("page")},this.handleTableSizeSelect=function(t){var r,e=parseInt(t.target.value);null===(r=n.dataTable)||void 0===r||r.page.len(e).draw("page"),n.persistentConfig.pageSize=e,n.yasr.storePluginConfig("table",n.persistentConfig)},this.handleSetCompactToggle=function(t){n.persistentConfig.compact=t.target.checked,n.draw(n.persistentConfig),n.yasr.storePluginConfig("table",n.persistentConfig)},this.handleSetEllipsisToggle=function(t){n.persistentConfig.isEllipsed=t.target.checked,n.draw(n.persistentConfig),n.yasr.storePluginConfig("table",n.persistentConfig)},this.yasr=r,this.config=t.defaults}return c()(t,[{key:"getIcon",value:function(){return Object(R.d)(Object(R.c)(Yt))}},{key:"getRows",value:function(){if(!this.yasr.results)return[];var t=this.yasr.results.getBindings();if(!t)return[];var r=this.yasr.results.getVariables();return t.map((function(t,n){return[n+1].concat(Ht()(r.map((function(r){var n;return null!==(n=t[r])&&void 0!==n?n:""}))))}))}},{key:"getUriLinkFromBinding",value:function(t,r){var n=t.value,e=n,i=!1;if(r)for(var o in r)if(0==e.indexOf(r[o])){e=o+":"+n.substring(r[o].length),i=!0;break}var s=i||this.persistentConfig.compact;return"".concat(s?"":"<","<a class='iri' target='").concat(this.config.openIriInNewWindow?"_blank":"_self","'").concat(this.config.openIriInNewWindow?" ref='noopener noreferrer'":""," href='").concat(n,"'>").concat(e,"</a>").concat(s?"":">")}},{key:"getCellContent",value:function(t,r){var n;return n="uri"==t.type?"<span>".concat(this.getUriLinkFromBinding(t,r),"</span>"):"<span class='nonIri'>".concat(this.formatLiteral(t,r),"</span>"),"<div>".concat(n,"</div>")}},{key:"formatLiteral",value:function(t,r){var n=Object(Wt.a)(t.value);if(this.persistentConfig.compact)return n;if(t["xml:lang"])n='"'.concat(n,'"<sup>@').concat(t["xml:lang"],"</sup>");else if(t.datatype){var e=this.getUriLinkFromBinding({type:"uri",value:t.datatype},r);n='"'.concat(n,'"<sup>^^').concat(e,"</sup>")}return n}},{key:"getColumns",value:function(){var t,r=this;if(!this.yasr.results)return[];var n=this.yasr.getPrefixes();return[{name:"",searchable:!1,width:"".concat(this.getSizeFirstColumn(),"px"),type:"num",orderable:!1,visible:!0!==this.persistentConfig.compact,render:function(t,r){return"filter"!==r&&"sort"!==r&&r?'<div class="rowNumber">'.concat(t,"</div>"):t}}].concat(Ht()(null===(t=this.yasr.results)||void 0===t?void 0:t.getVariables().map((function(t){return{name:t,title:t,render:function(t,e){return""===t?t:"filter"!==e&&"sort"!==e&&e?r.getCellContent(t,n):t.value}}}))))}},{key:"getSizeFirstColumn",value:function(){var t,r;return 8*((null===(r=null===(t=this.yasr.results)||void 0===t?void 0:t.getBindings())||void 0===r?void 0:r.length)||0).toString().length}},{key:"draw",value:function(t){var r,n,e=this;this.persistentConfig=Object.assign(Object.assign({},this.persistentConfig),t),this.tableEl=document.createElement("table");var i=this.getRows(),o=this.getColumns();i.length<=((null==t?void 0:t.pageSize)||50)?Object(R.b)(this.yasr.rootEl,"isSinglePage"):Object(R.g)(this.yasr.rootEl,"isSinglePage"),this.dataTable&&(this.destroyResizer(),this.dataTable.destroy(!0),this.dataTable=void 0),this.yasr.resultsEl.appendChild(this.tableEl);var s=Object.assign(Object.assign({},Object(Pt.a)(this.config.tableConfig)),{pageLength:(null==t?void 0:t.pageSize)?t.pageSize:50,data:i,columns:o});this.dataTable=$t()(this.tableEl).DataTable(s),this.tableEl.style.removeProperty("width"),this.tableEl.style.width=this.tableEl.clientWidth+"px";var a=Array.from(this.tableEl.querySelectorAll("th")).map((function(t){return t.offsetWidth-26}));this.tableResizer=new Xt.default(this.tableEl,{widths:!0===this.persistentConfig.compact?a:[this.getSizeFirstColumn()].concat(Ht()(a.slice(1))),partialRefresh:!0,onResize:!1!==this.persistentConfig.isEllipsed&&this.setEllipsisHandlers,headerOnly:!0}),!1!==this.persistentConfig.isEllipsed&&(null===(r=this.dataTable)||void 0===r||r.on("preDraw",(function(){var t,r,n;return null===(t=e.tableResizer)||void 0===t||t.reset({disable:!0}),Object(R.g)(e.tableEl,"ellipseTable"),null===(r=e.tableEl)||void 0===r||r.style.removeProperty("width"),null===(n=e.tableEl)||void 0===n||n.style.setProperty("width",e.tableEl.clientWidth+"px"),!0})),null===(n=this.dataTable)||void 0===n||n.on("draw",(function(){var t,r;if(e.tableEl){var n=e.tableEl.clientWidth;e.tableEl.style.removeProperty("width"),n>e.tableEl.clientWidth&&(n=e.tableEl.clientWidth),null===(t=e.tableEl)||void 0===t||t.style.setProperty("width","".concat(n,"px")),null===(r=e.tableResizer)||void 0===r||r.reset({disable:!1,partialRefresh:!0,onResize:e.setEllipsisHandlers,headerOnly:!0}),Object(R.b)(e.tableEl,"ellipseTable"),e.setEllipsisHandlers()}}))),this.drawControls(),!1!==this.persistentConfig.isEllipsed&&(Object(R.b)(this.tableEl,"ellipseTable"),this.setEllipsisHandlers())}},{key:"drawControls",value:function(){var t;this.removeControls(),this.tableControls=document.createElement("div"),this.tableControls.className="tableControls";var r=document.createElement("div"),n=document.createElement("label"),e=document.createElement("span");e.innerText="Simple view",Object(R.b)(e,"label"),n.appendChild(e),Object(R.b)(n,"switch"),r.appendChild(n),this.tableCompactSwitch=document.createElement("input"),n.addEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch.type="checkbox",n.appendChild(this.tableCompactSwitch),this.tableCompactSwitch.defaultChecked=!!this.persistentConfig.compact,this.tableControls.appendChild(r);var i=document.createElement("div"),o=document.createElement("label"),s=document.createElement("span");s.innerText="Ellipse",Object(R.b)(s,"label"),o.appendChild(s),Object(R.b)(o,"switch"),i.appendChild(o),this.tableEllipseSwitch=document.createElement("input"),o.addEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch.type="checkbox",o.appendChild(this.tableEllipseSwitch),this.tableEllipseSwitch.defaultChecked=!1!==this.persistentConfig.isEllipsed,this.tableControls.appendChild(i),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 a=document.createElement("div");a.className="pageSizeWrapper";var u=document.createElement("span");u.textContent="Page size: ",u.className="pageSizerLabel",a.appendChild(u),this.tableSizeField=document.createElement("select"),this.tableSizeField.className="tableSizer";for(var l=0,c=[10,50,100,1e3,-1];l<c.length;l++){var f=c[l],h=document.createElement("option");h.value=f+"",h.innerText=f>0?f+"":"All",(null===(t=this.dataTable)||void 0===t?void 0:t.page.len())===f&&(h.selected=!0),this.tableSizeField.appendChild(h)}a.appendChild(this.tableSizeField),this.tableSizeField.addEventListener("change",this.handleTableSizeSelect),this.tableControls.appendChild(a),this.yasr.pluginControls.appendChild(this.tableControls)}},{key:"download",value:function(t){var r=this;return{getData:function(){var t;return(null===(t=r.yasr.results)||void 0===t?void 0:t.asCsv())||""},contentType:"text/csv",title:"Download result",filename:"".concat(t||"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 t,r,n,e,i,o;for(null===(t=this.tableFilterField)||void 0===t||t.removeEventListener("keyup",this.handleTableSearch),this.tableFilterField=void 0,null===(r=this.tableSizeField)||void 0===r||r.removeEventListener("change",this.handleTableSizeSelect),this.tableSizeField=void 0,null===(n=this.tableCompactSwitch)||void 0===n||n.removeEventListener("change",this.handleSetCompactToggle),this.tableCompactSwitch=void 0,null===(e=this.tableEllipseSwitch)||void 0===e||e.removeEventListener("change",this.handleSetEllipsisToggle),this.tableEllipseSwitch=void 0;null===(i=this.tableControls)||void 0===i?void 0:i.firstChild;)this.tableControls.firstChild.remove();null===(o=this.tableControls)||void 0===o||o.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 t;this.removeControls(),this.destroyResizer(),null===(t=this.dataTable)||void 0===t||t.destroy(!0),this.dataTable=void 0,Object(R.g)(this.yasr.rootEl,"isSinglePage")}}]),t}();Qt.defaults={openIriInNewWindow:!0,tableConfig:{dom:"tip",pageLength:50,lengthChange:!0,data:[],columns:[],order:[],deferRender:!0,orderClasses:!1,language:{paginate:{first:"<<",last:">>",next:">",previous:"<"}}}},n(144);var Kt=function(){function t(r){u()(this,t),this.priority=10,this.hideFromSelection=!0,this.yasr=r}return c()(t,[{key:"draw",value:function(){var t,r=document.createElement("div");r.className="booleanResult";var n=null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean();r.appendChild(Object(R.d)(n?'<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 e=document.createElement("span");e.textContent=n?"True":"False",r.appendChild(e),this.yasr.resultsEl.appendChild(r)}},{key:"canHandleResults",value:function(){var t;return!!(null===(t=this.yasr.results)||void 0===t?void 0:t.getBoolean)&&(!0===this.yasr.results.getBoolean()||0==this.yasr.results.getBoolean())}},{key:"getIcon",value:function(){return document.createElement("")}}]),t}(),Jt=n(131),tr='<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>';n(145);var rr=n(7);n(92),n(99),n(100),n(101),n(102),n(146),n(147),n(103);var nr=function(){function t(r){u()(this,t),this.label="Response",this.priority=2,this.helpReference="https://triply.cc/docs/yasgui#response",this.yasr=r,this.config=t.defaults,r.config.plugins.response&&r.config.plugins.response.dynamicConfig&&(this.config=Object.assign(Object.assign({},this.config),r.config.plugins.response.dynamicConfig))}return c()(t,[{key:"canHandleResults",value:function(){if(!this.yasr.results)return!1;if(!this.yasr.results.getOriginalResponseAsString)return!1;var t=this.yasr.results.getOriginalResponseAsString();return!((!t||0==t.length)&&this.yasr.results.getError())}},{key:"getIcon",value:function(){return Object(R.d)(Object(R.c)(Jt))}},{key:"download",value:function(t){var r=this;if(this.yasr.results){var n=this.yasr.results.getContentType(),e=this.yasr.results.getType(),i="xml"===e?"rdf":e;return{getData:function(){var t;return(null===(t=r.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""},filename:"".concat(t||"queryResults").concat(i?"."+i:""),contentType:n||"text/plain",title:"Download result"}}}},{key:"draw",value:function(t){var r,n,e=Object.assign(Object.assign({},this.config),t),i=(null===(r=this.yasr.results)||void 0===r?void 0:r.getOriginalResponseAsString())||"",o=i.split("\n");o.length>e.maxLines&&(i=o.slice(0,e.maxLines).join("\n"));var s={readOnly:!0,lineNumbers:!0,lineWrapping:!0,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],value:i,extraKeys:{Tab:!1}};"json"===(null===(n=this.yasr.results)||void 0===n?void 0:n.getType())&&(s.mode={name:"javascript",json:!0}),this.cm=rr(this.yasr.resultsEl,s),o.length>e.maxLines&&this.showLess(!1)}},{key:"limitData",value:function(t){var r=t.split("\n");return r.length>this.config.maxLines&&(t=r.slice(0,this.config.maxLines).join("\n")),t}},{key:"showLess",value:function(){var t,r=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.cm){Object(R.b)(this.cm.getWrapperElement(),"overflow"),this.overLay&&(this.overLay.remove(),this.overLay=void 0),this.overLay=document.createElement("div"),Object(R.b)(this.overLay,"overlay");var e=document.createElement("div");Object(R.b)(e,"overlay_content");var i=document.createElement("button");i.title="Show all",Object(R.b)(i,"yasr_btn","overlay_btn"),i.textContent="Show all",i.addEventListener("click",(function(){return r.showMore()})),e.append(i);var o=document.createElement("button");o.title="Download result",Object(R.b)(o,"yasr_btn","overlay_btn");var s=document.createElement("span");s.innerText="Download result",o.appendChild(s),o.appendChild(Object(R.d)(tr)),o.addEventListener("click",(function(){return r.yasr.download()})),o.addEventListener("keydown",(function(t){"Space"!==t.code&&"Enter"!==t.code||r.yasr.download()})),e.appendChild(o),this.overLay.appendChild(e),this.cm.getWrapperElement().appendChild(this.overLay),n&&this.cm.setValue(this.limitData((null===(t=this.yasr.results)||void 0===t?void 0:t.getOriginalResponseAsString())||""))}}},{key:"showMore",value:function(){var t,r;this.cm&&(Object(R.g)(this.cm.getWrapperElement(),"overflow"),null===(t=this.overLay)||void 0===t||t.remove(),this.overLay=void 0,this.cm.setValue((null===(r=this.yasr.results)||void 0===r?void 0:r.getOriginalResponseAsString())||""),this.cm.refresh())}}]),t}();nr.defaults={maxLines:30},n(148);var er=function(){function t(r){u()(this,t),this.priority=20,this.hideFromSelection=!0,this.yasr=r}return c()(t,[{key:"canHandleResults",value:function(){return!!this.yasr.results&&!!this.yasr.results.getError()}},{key:"getTryBtn",value:function(t){var r=document.createElement("a");return r.href=t,r.rel="noopener noreferrer",r.target="_blank",r.className="yasr_tryQuery",r.textContent="Try query in a new browser window",r}},{key:"getCorsMessage",value:function(){var t=document.createElement("div");t.className="redOutline";var r=document.createElement("p");r.textContent="Unable to get response from endpoint. Possible reasons:",t.appendChild(r);var n=document.createElement("ul"),e=document.createElement("li");e.textContent="Incorrect endpoint URL",n.appendChild(e);var i=document.createElement("li");i.textContent="Endpoint is down",n.appendChild(i);var o=document.createElement("li"),s=document.createElement("span");s.textContent="Endpoint is not accessible from the YASGUI server and website, and the endpoint is not ",o.appendChild(s);var a=document.createElement("a");return a.textContent="CORS-enabled",a.href="http://enable-cors.org/",a.target="_blank",a.rel="noopener noreferrer",o.appendChild(a),n.appendChild(o),t.appendChild(n),t}},{key:"draw",value:function(){var t;return function(t,r,n,e){return new(n||(n=Promise))((function(r,i){function o(t){try{a(e.next(t))}catch(t){i(t)}}function s(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}a((e=e.apply(t,[])).next())}))}(this,0,void 0,s.a.mark((function r(){var n,e,i,o,a,u,l,c,f,h,p,d;return s.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if((n=document.createElement("div")).className="errorResult",this.yasr.resultsEl.appendChild(n),e=null===(t=this.yasr.results)||void 0===t?void 0:t.getError()){r.next=6;break}return r.abrupt("return");case 6:return(i=document.createElement("div")).className="errorHeader",n.appendChild(i),r.next=11,this.yasr.renderError(e);case 11:if(!(o=r.sent)){r.next=18;break}return(a=document.createElement("div")).className="redOutline",a.appendChild(o),n.appendChild(a),r.abrupt("return");case 18:e.status?(u="Error",e.statusText&&e.statusText.length<100&&(u=e.statusText),u+=" (#".concat(e.status,")"),(l=document.createElement("span")).className="status",l.textContent=u,i.appendChild(l),this.yasr.config.getPlainQueryLinkToEndpoint&&(c=this.yasr.config.getPlainQueryLinkToEndpoint())&&i.appendChild(this.getTryBtn(c)),e.text&&(f=document.createElement("div"),Object(R.b)(f,"errorMessageContainer"),n.appendChild(f),h=document.createElement("pre"),Object(R.b)(h,"errorMessage"),h.textContent=e.text,f.appendChild(h))):(this.yasr.config.getPlainQueryLinkToEndpoint&&(p=this.yasr.config.getPlainQueryLinkToEndpoint())&&i.appendChild(this.getTryBtn(p)),!e.text||e.text.indexOf("Request has been terminated")>=0?n.appendChild(this.getCorsMessage()):((d=document.createElement("pre")).textContent=e.text,n.appendChild(d)));case 19:case"end":return r.stop()}}),r,this)})))}},{key:"getIcon",value:function(){return document.createElement("")}}]),t}();function ir(t,r){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return or(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?or(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function or(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var sr=function(t,r,n,e){return new(n||(n=Promise))((function(i,o){function s(t){try{u(e.next(t))}catch(t){o(t)}}function a(t){try{u(e.throw(t))}catch(t){o(t)}}function u(t){var r;t.done?i(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(s,a)}u((e=e.apply(t,r||[])).next())}))};n(137);var ar=function(t){h()(n,t);var r=function(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=E()(t);if(r){var i=E()(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return d()(this,n)}}(n);function n(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(u()(this,n),(e=r.call(this)).plugins={},e.helpDrawn=!1,e.utils={addScript:Gt,addCSS:jt,sanitize:Ut},!t)throw new Error("No parent passed as argument. Dont know where to draw YASR");e.rootEl=document.createElement("div"),e.rootEl.className="yasr",t.appendChild(e.rootEl),e.config=Object(m.a)({},n.defaults,i),e.storage=new R.a(n.storageNamespace),e.getConfigFromStorage(),e.headerEl=document.createElement("div"),e.headerEl.className="yasr_header",e.rootEl.appendChild(e.headerEl),e.fallbackInfoEl=document.createElement("div"),e.fallbackInfoEl.className="yasr_fallback_info",e.rootEl.appendChild(e.fallbackInfoEl),e.resultsEl=document.createElement("div"),e.resultsEl.className="yasr_results",e.resultsEl.id=x("resultsId"),e.rootEl.appendChild(e.resultsEl),e.initializePlugins(),e.drawHeader();var s=o||e.getResponseFromStorage();return s&&e.setResponse(s),e}return c()(n,[{key:"getConfigFromStorage",value:function(){var t=this.getStorageId(this.config.persistenceLabelConfig);if(t){var r=this.storage.get(t);if(r)for(var n in this.selectedPlugin=r.selectedPlugin,r.pluginsConfig){var e=r.pluginsConfig[n];e&&this.config.plugins[n]&&(this.config.plugins[n].dynamicConfig=e)}}}},{key:"renderError",value:function(t){return sr(this,void 0,void 0,s.a.mark((function r(){var n,e,i,o;return s.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=void 0,void 0===this.config.errorRenderers){r.next=22;break}e=ir(this.config.errorRenderers),r.prev=3,e.s();case 5:if((i=e.n()).done){r.next=14;break}return o=i.value,r.next=9,o(t);case 9:if(void 0===(n=r.sent)){r.next=12;break}return r.abrupt("break",14);case 12:r.next=5;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(3),e.e(r.t0);case 19:return r.prev=19,e.f(),r.finish(19);case 22:return r.abrupt("return",n);case 23:case"end":return r.stop()}}),r,this,[[3,16,19,22]])})))}},{key:"getStorageId",value:function(t,r){var n=r||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+t:n(this)+"_"+t}},{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(t){if(this.pluginSelectorsEl)for(var r in this.config.plugins){var n=this.plugins[r];n&&!n.hideFromSelection&&(t&&(t.indexOf(r)>=0?Object(R.g)(this.pluginSelectorsEl.querySelector(".select_"+r),"disabled"):Object(R.b)(this.pluginSelectorsEl.querySelector(".select_"+r),"disabled")),r===this.getSelectedPluginName()?Object(R.b)(this.pluginSelectorsEl.querySelector(".select_"+r),"selected"):Object(R.g)(this.pluginSelectorsEl.querySelector(".select_"+r),"selected"))}}},{key:"getCompatiblePlugins",value:function(){if(!this.results)return Object.keys(L(this.config.plugins,(function(t){return"object"===i()(t)&&t.enabled||!0===t})));var t=[];for(var r in this.plugins)this.plugins[r].canHandleResults()&&t.push({name:r,priority:this.plugins[r].priority});return t.sort((function(t,r){return r.priority-t.priority})).map((function(t){return t.name}))}},{key:"draw",value:function(){var t,r,n,e,i,o=this;if(this.updateHelpButton(),this.updateResponseInfo(),this.results){var a,u=this.getCompatiblePlugins();if(this.drawnPlugin&&this.getSelectedPluginName()!==this.drawnPlugin){for(;this.pluginControls.firstChild;)this.pluginControls.firstChild.remove();null===(r=(t=this.plugins[this.drawnPlugin]).destroy)||void 0===r||r.call(t)}if(this.getSelectedPlugin()&&(null===(n=this.getSelectedPlugin())||void 0===n?void 0:n.canHandleResults())?(a=this.getSelectedPluginName(),this.emptyFallbackElement()):u[0]&&(this.drawnPlugin&&(null===(i=(e=this.plugins[this.drawnPlugin]).destroy)||void 0===i||i.call(e)),this.fillFallbackBox(a=u[0])),a){this.drawnPlugin=a,this.emit("draw",this,this.plugins[a]);var l=this.plugins[a];(l.initialize?l.initialize():Promise.resolve()).then((function(){return sr(o,void 0,void 0,s.a.mark((function t(){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a){t.next=7;break}for(;this.resultsEl.firstChild;)this.resultsEl.firstChild.remove();return t.next=4,this.plugins[a].draw(this.config.plugins[a].dynamicConfig);case 4:this.emit("drawn",this,this.plugins[a]),this.updateExportHeaders(),this.updatePluginSelectors(u);case 7:case"end":return t.stop()}}),t,this)})))}),(function(){return console.error}))}else this.resultsEl.textContent="cannot render result",this.updateExportHeaders(),this.updatePluginSelectors(u)}}},{key:"refresh",value:function(){this.draw()}},{key:"destroy",value:function(){var t,r;this.drawnPlugin&&(null===(r=null===(t=this.plugins[this.drawnPlugin])||void 0===t?void 0:t.destroy)||void 0===r||r.call(t)),this.removeAllListeners(),this.rootEl.remove()}},{key:"getPrefixes",value:function(){return this.config.prefixes?"function"==typeof this.config.prefixes?this.config.prefixes(this):this.config.prefixes:{}}},{key:"selectPlugin",value:function(t){this.selectedPlugin!==t&&(this.config.plugins[t]?this.selectedPlugin=t:(console.warn("Plugin ".concat(t," does not exist.")),this.selectedPlugin=this.config.defaultPlugin),this.storeConfig(),this.emit("change",this),this.updatePluginSelectors(),this.draw())}},{key:"drawPluginSelectors",value:function(){var t=this;this.pluginSelectorsEl=document.createElement("ul"),this.pluginSelectorsEl.className="yasr_btnGroup";var r=this.config.pluginOrder;Object.keys(this.config.plugins).sort().forEach((function(t){-1===r.indexOf(t)&&r.push(t)}));var n,e=ir(r);try{var i=function(){var r=n.value;if(!t.config.plugins[r]||!t.config.plugins[r].enabled)return"continue";var e=t.plugins[r];if(!e)return"continue";if(e.hideFromSelection)return"continue";var i=e.label||r,o=document.createElement("button");if(Object(R.b)(o,"yasr_btn","select_"+r),o.title=i,o.type="button",o.setAttribute("aria-label","Shows ".concat(i," view")),e.getIcon){var s=e.getIcon();s&&(Object(R.b)(s,"plugin_icon"),o.appendChild(s))}var a=document.createElement("span");a.textContent=i,o.appendChild(a),o.addEventListener("click",(function(){return t.selectPlugin(r)}));var u=document.createElement("li");u.appendChild(o),t.pluginSelectorsEl.appendChild(u)};for(e.s();!(n=e.n()).done;)i()}catch(t){e.e(t)}finally{e.f()}this.pluginSelectorsEl.children.length>=1&&this.headerEl.appendChild(this.pluginSelectorsEl),this.updatePluginSelectors()}},{key:"fillFallbackBox",value:function(t){var r,n,e;if(this.emptyFallbackElement(),!(null===(r=this.plugins[t||this.drawnPlugin||""])||void 0===r?void 0:r.hideFromSelection)){var i=this.getSelectedPlugin(),o=(null===(n=this.plugins[t||this.drawnPlugin||""])||void 0===n?void 0:n.label)||t||this.drawnPlugin,s=(null==i?void 0:i.label)||this.getSelectedPluginName(),a=document.createElement("p");if(a.innerText="Could not render results with the ".concat(s," plugin, the results currently are rendered with the ").concat(o," plugin. ").concat((null===(e=this.getSelectedPlugin())||void 0===e?void 0:e.helpReference)?"See ":""),null==i?void 0:i.helpReference){var u=document.createElement("a");u.innerText="".concat(s," documentation"),u.href=i.helpReference,u.rel="noopener noreferrer",u.target="_blank",a.append(u),a.innerHTML+=" for more information."}this.fallbackInfoEl.appendChild(a)}}},{key:"drawPluginElement",value:function(){var t=document.createElement("div");Object(R.b)(t,"space_element"),this.headerEl.appendChild(t),this.pluginControls=document.createElement("div"),this.pluginControls.setAttribute("id","yasr_plugin_control"),Object(R.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 t=this;this.downloadBtn=document.createElement("a"),Object(R.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 r=Object(R.d)(Object(R.c)(Bt));r.setAttribute("aria-hidden","true"),this.downloadBtn.appendChild(r),this.downloadBtn.addEventListener("click",(function(){Object(R.f)(t.downloadBtn,"disabled")||t.download()})),this.downloadBtn.addEventListener("keydown",(function(r){if("Space"===r.code||"Enter"===r.code){if(Object(R.f)(t.downloadBtn,"disabled"))return;t.download()}})),this.headerEl.appendChild(this.downloadBtn)}},{key:"drawResponseInfo",value:function(){this.dataElement=document.createElement("div"),Object(R.b)(this.dataElement,"yasr_response_chip"),this.headerEl.appendChild(this.dataElement),this.updateResponseInfo()}},{key:"updateResponseInfo",value:function(){var t="";if(this.results){Object(R.g)(this.dataElement,"empty");var r=this.results.getBindings();r&&(t+="".concat(r.length," result").concat(1===r.length?"":"s"));var n=this.results.getResponseTime();if(n){t||(t="Response");var e=n/1e3;t+=" in ".concat(e," second").concat(1===e?"":"s")}}else Object(R.b)(this.dataElement,"empty");this.dataElement.innerText=t}},{key:"updateHelpButton",value:function(){var t=this.getSelectedPlugin();if(null==t?void 0:t.helpReference){var r="View documentation of ".concat(t.label||this.getSelectedPluginName());this.documentationLink.href=t.helpReference,this.documentationLink.title=r,this.documentationLink.setAttribute("aria-label",r),Object(R.g)(this.documentationLink,"disabled")}else Object(R.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 t,r;if(this.downloadBtn&&this.drawnPlugin){this.downloadBtn.title="";var n=this.plugins[this.drawnPlugin];if(n&&n.download){var e=n.download(null===(r=(t=this.config).getDownloadFileName)||void 0===r?void 0:r.call(t));if(Object(R.g)(this.downloadBtn,"disabled"),e)return void(e.title&&(this.downloadBtn.title=e.title))}this.downloadBtn.title="Download not supported",Object(R.b)(this.downloadBtn,"disabled")}}},{key:"drawDocumentationButton",value:function(){this.documentationLink=document.createElement("a"),Object(R.b)(this.documentationLink,"yasr_btn","yasr_external_ref_btn"),this.documentationLink.appendChild(Object(R.d)(Object(R.c)(Vt))),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 t,r,n;if(this.drawnPlugin){var e=this.plugins[this.drawnPlugin];if(e&&e.download){var i=e.download(null===(r=(t=this.config).getDownloadFileName)||void 0===r?void 0:r.call(t));if(!i)return;var o,s=i.getData();if(s.startsWith("data:"))o=s;else{var a=new Blob([s],{type:null!==(n=i.contentType)&&void 0!==n?n:"text/plain"});o=window.URL.createObjectURL(a)}var u=document.createElement("a");u.href=o,u.download=i.filename,u.click()}}}},{key:"handleLocalStorageQuotaFull",value:function(){console.warn("Localstorage quota exceeded. Clearing all queries"),n.clearStorage()}},{key:"getResponseFromStorage",value:function(){var t=this.getStorageId(this.config.persistenceLabelResponse);if(t)return this.storage.get(t)}},{key:"getPersistentConfig",value:function(){return{selectedPlugin:this.getSelectedPluginName(),pluginsConfig:Object(C.a)(this.config.plugins,(function(t){return t.dynamicConfig}))}}},{key:"storePluginConfig",value:function(t,r){this.config.plugins[t].dynamicConfig=r,this.storeConfig(),this.emit("change",this)}},{key:"storeConfig",value:function(){var t=this.getStorageId(this.config.persistenceLabelConfig);t&&this.storage.set(t,this.getPersistentConfig(),this.config.persistencyExpire,this.handleLocalStorageQuotaFull)}},{key:"storeResponse",value:function(){var t=this.getStorageId(this.config.persistenceLabelResponse);if(t&&this.results){var r=this.results.getAsStoreObject(this.config.maxPersistentResponseSize);r&&!r.error?this.storage.set(t,r,this.config.persistencyExpire,this.handleLocalStorageQuotaFull):this.storage.remove(t)}}},{key:"setResponse",value:function(t,r){t&&(this.results=new Mt(t,r),this.draw(),this.storeResponse())}},{key:"initializePlugins",value:function(){for(var t in this.config.plugins)this.config.plugins[t]&&(n.plugins[t]?this.plugins[t]=new n.plugins[t](this):console.warn("Wanted to initialize plugin "+t+" but could not find a matching registered plugin"))}}],[{key:"registerPlugin",value:function(t,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n.plugins[t]=r,n.defaults.plugins[t]=e?{enabled:!0}:{enabled:!1}}},{key:"clearStorage",value:function(){new R.a(n.storageNamespace).removeNamespace()}}]),n}(b.EventEmitter);function ur(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];ar.plugins[t]=r,ar.defaults.plugins[t]=n?{enabled:!0}:{enabled:!1}}ar.defaults={persistenceId:function(t){var r="",n=t.rootEl;for(n.id&&(r=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(r=n.id);break}return"yasr_"+r},getPlainQueryLinkToEndpoint:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",maxPersistentResponseSize:1e5,prefixes:{},plugins:{},pluginOrder:["table","response"],defaultPlugin:"table"},ar.plugins={},ar.Dependencies={},ar.storageNamespace="triply",ar.registerPlugin("table",Qt),ar.registerPlugin("boolean",Kt),ar.registerPlugin("response",nr),ar.registerPlugin("error",er),r.default=ar},function(t,r,n){(function(t){r.a="object"==typeof t&&t&&t.Object===Object&&t}).call(this,n(72))},function(t,r){r.a=function(t){return function(r){return null==t?void 0:t[r]}}},function(t,r){r.a=function(t,r){return function(n){return t(r(n))}}},function(t,r,n){var e=n(69),i=n(13);r.a=function(t,r){return t&&Object(e.a)(t,r,i.a)}},function(t,r,n){var e=n(31),i=n(12),o=Object.prototype.hasOwnProperty;r.a=function(t,r,n){var s=t[r];o.call(t,r)&&Object(i.a)(s,n)&&(void 0!==n||r in t)||Object(e.a)(t,r,n)}},function(t,r,n){var e=n(15),i=n(1),o=n(14),s=n(37),a=n(33),u=Object.prototype.hasOwnProperty;r.a=function(t,r){var n=Object(i.a)(t),l=!n&&Object(e.a)(t),c=!n&&!l&&Object(o.a)(t),f=!n&&!l&&!c&&Object(a.a)(t),h=n||l||c||f,p=h?function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e}(t.length,String):[],d=p.length;for(var v in t)!r&&!u.call(t,v)||h&&("length"==v||c&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||Object(s.a)(v,d))||p.push(v);return p}},function(t,r){r.a=function(t,r,n){for(var e=-1,i=Object(t),o=n(t),s=o.length;s--;){var a=o[++e];if(!1===r(i[a],a,i))break}return t}},function(t,r,n){var e=n(12),i=n(10),o=n(37),s=n(2);r.a=function(t,r,n){if(!Object(s.a)(n))return!1;var a=typeof r;return!!("number"==a?Object(i.a)(n)&&Object(o.a)(r,n.length):"string"==a&&r in n)&&Object(e.a)(n[r],t)}},function(t,r,n){var e=n(117),i=n(136),o=n(94),s=n(119);t.exports=function(t,r){return e(t)||i(t,r)||o(t,r)||s()}},function(t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,r,n){var e=n(56),i=n(1);r.a=function(t,r,n){var o=r(t);return Object(i.a)(t)?o:Object(e.a)(o,n(t))}},function(t,r){r.a=function(){return[]}},function(t,r){r.a=function(t,r){for(var n=-1,e=null==t?0:t.length,i=0,o=[];++n<e;){var s=t[n];r(s,n,t)&&(o[i++]=s)}return o}},function(t,r){r.a=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r}},function(t,r,n){(function(t){var e=n(3),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=o&&o.exports===i?e.a.Buffer:void 0,a=s?s.allocUnsafe:void 0;r.a=function(t,r){if(r)return t.slice();var n=t.length,e=a?a(n):new t.constructor(n);return t.copy(e),e}}).call(this,n(83)(t))},function(t,r,n){var e=n(58);r.a=function(t,r){var n=r?Object(e.a)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,r,n){var e=n(25),i=n(91),o=n(89);r.a=function(t,r){return Object(o.a)(Object(i.a)(t,r,e.a),t+"")}},function(t,r,n){var e=n(30),i=n(65),o=Object(i.a)(Object.keys,Object),s=Object.prototype.hasOwnProperty;r.a=function(t){if(!Object(e.a)(t))return o(t);var r=[];for(var n in Object(t))s.call(t,n)&&"constructor"!=n&&r.push(n);return r}},function(t,r,n){var e=n(2),i=Object.create,o=function(){function t(){}return function(r){if(!Object(e.a)(r))return{};if(i)return i(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),s=n(51),a=n(30);r.a=function(t){return"function"!=typeof t.constructor||Object(a.a)(t)?{}:o(Object(s.a)(t))}},function(t,r,n){n.r(r),n.d(r,"Yasqe",(function(){return mt}));var e={};n.r(e),n.d(e,"getAjaxConfig",(function(){return O})),n.d(e,"executeQuery",(function(){return _})),n.d(e,"getUrlArguments",(function(){return k})),n.d(e,"getAcceptHeader",(function(){return P})),n.d(e,"getAsCurlString",(function(){return D}));var i=n(4),o=n.n(i),s=n(5),a=n.n(s),u=n(16),l=n.n(u),c=n(41),f=n.n(c),h=n(42),p=n.n(h),d=n(21),v=n.n(d),E=n(39),b=n(7),m=n.n(b);function g(t,r,n){null==n&&(n=1);var e=t.getTokenAt({line:r,ch:n});if(!(null==e||null==e||e.end<n))return"ws"==e.type?g(t,r,e.end+1):e}function y(t){for(var r=t.getDoc().lastLine(),n=0;n<=r;++n){var e=x(t,n);if(null!=e&&e>=0)return n}}function x(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3?arguments[3]:void 0;e||(e=t.getDoc().getLine(r));var i=(e=e.toUpperCase()).indexOf("PREFIX ",n);if(i>=0){var o=t.getTokenTypeAt(m.a.Pos(r,i+1));if("keyword"===o)return i}}function T(t,r){t.getDoc().replaceRange("PREFIX "+r+"\n",{line:0,ch:0}),t.collapsePrefixes(!1)}var I=n(0),N=n(50);function A(t,r,n){var e;r.onmouseover=function(){e||((e=document.createElement("div")).className="yasqe_tooltip"),e.style.display="block",e.innerHTML=n,r.appendChild(e)},r.onmouseout=function(){e&&(e.style.display="none"),e.innerHTML=n}}var S=n(19),L=n.n(S),C=n(44),R=n(170);function w(t,r){return Object(C.a)(r)?r(t):r}function O(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(R.a)({},w(t,t.config.requestConfig),w(t,r));if(n.endpoint&&0!=n.endpoint.length){var e=t.getQueryMode(),i=Object(C.a)(n.endpoint)?n.endpoint(t):n.endpoint,o="update"==e?"POST":Object(C.a)(n.method)?n.method(t):n.method,s=Object(C.a)(n.headers)?n.headers(t):n.headers,a=Object(C.a)(n.withCredentials)?n.withCredentials(t):n.withCredentials;return{reqMethod:o,url:i,args:k(t,n),headers:s,accept:P(t,n),withCredentials:a}}}function _(t,r){return function(t,r,n,e){return new(n||(n=Promise))((function(r,i){function o(t){try{a(e.next(t))}catch(t){i(t)}}function s(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}a((e=e.apply(t,[])).next())}))}(this,0,void 0,L.a.mark((function n(){var e,i,o;return L.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,O(t,r),i=O(t,r)){n.next=5;break}return n.abrupt("return");case 5:return o=Date.now(),(e="POST"===i.reqMethod?E.post(i.url).type("form").send(i.args):E.get(i.url).query(i.args)).accept(i.accept).set(i.headers||{}),i.withCredentials&&e.withCredentials(),t.emit("query",e,i),n.next=12,e.then((function(r){return t.emit("queryResponse",r,Date.now()-o),t.emit("queryResults",r.body,Date.now()-o),r.body}),(function(r){throw r instanceof Error&&"Aborted"===r.message||t.emit("queryResponse",r,Date.now()-o),t.emit("error",r),r}));case 12:return n.abrupt("return",n.sent);case 15:n.prev=15,n.t0=n.catch(0),console.error(n.t0);case 18:case"end":return n.stop()}}),n,null,[[0,15]])})))}function k(t,r){var n=t.getQueryMode(),e={},i=w(t,r),o=Object(C.a)(i.queryArgument)?i.queryArgument(t):i.queryArgument;o||(o=t.getQueryMode()),e[o]=i.adjustQueryBeforeRequest?i.adjustQueryBeforeRequest(t):t.getValue();var s=Object(C.a)(i.namedGraphs)?i.namedGraphs(t):i.namedGraphs;s&&s.length>0&&(e["query"===n?"named-graph-uri":"using-named-graph-uri "]=s);var a=Object(C.a)(i.defaultGraphs)?i.defaultGraphs(t):i.defaultGraphs;a&&a.length>0&&(e["query"==n?"default-graph-uri":"using-graph-uri "]=s);var u=Object(C.a)(i.args)?i.args(t):i.args;return u&&u.length>0&&Object(R.a)(e,u.reduce((function(t,r){return t[r.name]?t[r.name].push(r.value):t[r.name]=[r.value],t}),{})),e}function P(t,r){var n=w(t,r),e=null;if("update"==t.getQueryMode())e=Object(C.a)(n.acceptHeaderUpdate)?n.acceptHeaderUpdate(t):n.acceptHeaderUpdate;else{var i=t.getQueryType();e="DESCRIBE"==i||"CONSTRUCT"==i?Object(C.a)(n.acceptHeaderGraph)?n.acceptHeaderGraph(t):n.acceptHeaderGraph:Object(C.a)(n.acceptHeaderSelect)?n.acceptHeaderSelect(t):n.acceptHeaderSelect}return e}function D(t,r){var n=O(t,w(t,r));if(!n)return"";var e=n.url;0!==n.url.indexOf("http")&&(e="".concat(window.location.protocol,"//").concat(window.location.host),0===n.url.indexOf("/")?e+=n.url:e+=window.location.pathname+n.url);var i=["curl"];for(var o in"GET"===n.reqMethod?(e+="?".concat(N.stringify(n.args)),i.push(e)):"POST"===n.reqMethod?(i.push(e),i.push("--data",N.stringify(n.args))):(console.warn("Unexpected request-method",n.reqMethod),i.push(e)),i.push("-X",n.reqMethod),n.headers)i.push("-H '".concat(o,": ").concat(n.headers[o],"'"));return i.join(" ")}var M='<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>',j=function(){function t(){o()(this,t),this.words=0,this.prefixes=0,this.children={}}return a()(t,[{key:"insert",value:function(r,n){if(0!=r.length){var e,i=this;void 0===n&&(n=0),n!==r.length?(i.prefixes++,void 0===i.children[e=r[n]]&&(i.children[e]=new t),i.children[e].insert(r,n+1)):i.words++}}},{key:"remove",value:function(t,r){if(0!=t.length){var n=this;void 0===r&&(r=0),void 0!==n&&(r!==t.length?(n.prefixes--,n.children[t[r]].remove(t,r+1)):n.words--)}}},{key:"update",value:function(t,r){0!=t.length&&0!=r.length&&(this.remove(t),this.insert(r))}},{key:"countWord",value:function(t,r){if(0==t.length)return 0;var n,e=0;return void 0===r&&(r=0),r===t.length?this.words:(void 0!==(n=this.children[t[r]])&&(e=n.countWord(t,r+1)),e)}},{key:"countPrefix",value:function(t,r){if(0==t.length)return 0;var n,e=0;return void 0===r&&(r=0),r===t.length?this.prefixes:(void 0!==(n=this.children[t[r]])&&(e=n.countPrefix(t,r+1)),e)}},{key:"find",value:function(t){return 0!=t.length&&this.countWord(t)>0}},{key:"getAllWords",value:function(t){var r,n=this,e=[];if(void 0===t&&(t=""),void 0===n)return[];for(r in n.words>0&&e.push(t),n.children)n.children.hasOwnProperty(r)&&(e=e.concat(n.children[r].getAllWords(t+r)));return e}},{key:"autoComplete",value:function(t,r){var n;return 0==t.length?void 0===r?this.getAllWords(t):[]:(void 0===r&&(r=0),void 0===(n=this.children[t[r]])?[]:r===t.length-1?n.getAllWords(t):n.autoComplete(t,r+1))}}]),t}(),G=n(54),F=n(96),U=n(97),B=n(60),V=n(52),q=n(90),H=n(10),z=n(45),$=n(17),W=function(t,r){if(t!==r){var n=void 0!==t,e=null===t,i=t==t,o=Object($.a)(t),s=void 0!==r,a=null===r,u=r==r,l=Object($.a)(r);if(!a&&!l&&!o&&t>r||o&&s&&u&&!a&&!l||e&&s&&u||!n&&u||!i)return 1;if(!e&&!o&&!l&&t<r||l&&n&&i&&!e&&!o||a&&n&&i||!s&&i||!u)return-1}return 0},Y=n(25),X=n(79),Z=n(70),Q=Object(X.a)((function(t,r){if(null==t)return[];var n=r.length;return n>1&&Object(Z.a)(t,r[0],r[1])?r=[]:n>2&&Object(Z.a)(r[0],r[1],r[2])&&(r=[r[0]]),function(t,r,n){var e=-1;return r=Object(B.a)(r.length?r:[Y.a],Object(z.a)(V.a)),function(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}(function(t,r){var n=-1,e=Object(H.a)(t)?Array(t.length):[];return Object(q.a)(t,(function(t){e[++n]=r(t)})),e}(t,(function(t){return{criteria:Object(B.a)(r,(function(r){return r(t)})),index:++e,value:t}})),(function(t,r){return function(t,r,n){for(var e=-1,i=t.criteria,o=r.criteria,s=i.length,a=n.length;++e<s;){var u=W(i[e],o[e]);if(u)return e>=a?u:u*("desc"==n[e]?-1:1)}return t.index-r.index}(t,r,n)}))}(t,Object(U.a)(r,1),[])})),K={"string-2":"prefixed",atom:"var"},J={postprocessHints:function(t,r){return Q(r,(function(t){return t.text.split(":")[0]}))},onInitialize:function(t){var r=this;t.on("change",(function(){var n;if(t.config.autocompleters&&-1!=t.config.autocompleters.indexOf(r.name)){var e=t.getDoc().getCursor(),i=t.getTokenAt(e);if(i.type&&"prefixed"==K[i.type]){var o=i.string.indexOf(":");if(-1!==o){var s=t.getPreviousNonWsToken(e.line,i).string.toUpperCase(),a=t.getTokenAt({line:e.line,ch:i.start});if("PREFIX"!==s&&("ws"==a.type||null==a.type||"punc"===a.type&&("|"===a.string||"/"===a.string||"^^"==a.string||"{"==a.string||"("===a.string))){var u=i.string.substring(0,o+1);null==t.getPrefixesFromQuery()[u.slice(0,-1)]&&(i.autocompletionString=u,null===(n=t.autocompleters[r.name])||void 0===n||n.getCompletions(i).then((function(r){r.length&&(t.addPrefixes(r[0]),t.autocomplete())}),console.warn))}}}}}))},isValidCompletionPosition:function(t){var r=t.getDoc().getCursor(),n=t.getTokenAt(r);if(t.getDoc().getLine(r.line).length>r.ch)return!1;if("ws"!=n.type&&(n=t.getCompleteToken()),0!==n.string.indexOf("a")&&n.state.possibleCurrent.indexOf("PNAME_NS")<0)return!1;var e=t.getPreviousNonWsToken(r.line,n);return!(!e||"PREFIX"!=e.string.toUpperCase())},get:function(t){return E.get(t.config.prefixCcApi).then((function(t){var r=[];for(var n in t.body)r.push(n+": <"+t.body[n]+">");return r.sort()}))},preProcessToken:function(t,r){var n=t.getPreviousNonWsToken(t.getDoc().getCursor().line,r);return n&&n.string&&":"==n.string.slice(-1)&&(r={start:n.start,end:r.end,string:n.string+" "+r.string,state:r.state,type:r.type}),r},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},tt={onInitialize:function(){},get:function(t,r){return at(t,"property",r)},isValidCompletionPosition:function(t){var r=t.getCompleteToken();return 0!=r.string.length&&"?"!==r.string[0]&&"$"!==r.string[0]&&r.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(t,r){return ot(t,r)},postProcessSuggestion:function(t,r,n){return st(0,r,n)},bulk:!1,name:"property"},rt={onInitialize:function(){},get:function(t,r){return at(t,"class",r)},isValidCompletionPosition:function(t){var r=t.getCompleteToken();if("?"===r.string[0]||"$"===r.string[0])return!1;var n=t.getDoc().getCursor(),e=t.getPreviousNonWsToken(n.line,r);return"a"===e.state.lastProperty||"rdf:type"===e.state.lastProperty||"rdfs:domain"===e.state.lastProperty||"rdfs:range"===e.state.lastProperty},preProcessToken:function(t,r){return ot(t,r)},postProcessSuggestion:function(t,r,n){return st(0,r,n)},bulk:!1,name:"class"};function nt(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var et=n(7);n(160);var it=function(t){f()(n,t);var r=function(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=v()(t);if(r){var i=v()(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return p()(this,n)}}(n);function n(t,e){var i;return o()(this,n),(i=r.call(this)).yasqe=t,i.config=e,i}return a()(n,[{key:"getStorageId",value:function(){return this.yasqe.getStorageId(this.config.persistenceId)}},{key:"storeBulkCompletions",value:function(t){if(t&&t instanceof Array){this.trie=new j;var r,n=function(t){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,r){if(t){if("string"==typeof t)return nt(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nt(t,r):void 0}}(t))){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(t);try{for(n.s();!(r=n.n()).done;)this.trie.insert(r.value)}catch(t){n.e(t)}finally{n.f()}var e=this.getStorageId();e&&this.yasqe.storage.set(e,t,2592e3,this.yasqe.handleLocalStorageQuotaFull)}}},{key:"getCompletions",value:function(t){if(!this.config.get)return Promise.resolve([]);if(!t)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then((function(t){return t instanceof Array?t:[]}));var r=t.autocompletionString||t.string;return this.trie?Promise.resolve(function(t,r,n){return t&&t.length?function(t,r,n){var e=-1,i=t.length;r<0&&(r=-r>i?0:i+r),(n=n>i?i:n)<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++e<i;)o[e]=t[e+r];return o}(t,0,(r=n||void 0===r?1:Object(F.a)(r))<0?0:r):[]}(this.trie.autoComplete(r),100)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter((function(t){return 0===t.indexOf(r)}))):Promise.resolve(this.config.get(this.yasqe,t)).then((function(t){return t instanceof Array?t:[]}))}},{key:"initialize",value:function(){var t=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 r,n=this.getStorageId();return n&&(r=this.yasqe.storage.get(n)),r&&r.length>0?(this.storeBulkCompletions(r),Promise.resolve()):this.getCompletions().then((function(r){return t.storeBulkCompletions(r)}))}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(t,r){var n,e;this.config.postProcessSuggestion&&(r=this.config.postProcessSuggestion(this.yasqe,t,r));var i=this.yasqe.getDoc().getCursor();t.from&&(e=Object.assign(Object.assign({},i),t.from));var o=this.yasqe.getDoc().getCursor().line;return{text:r,displayText:r,from:e,to:t.to?{ch:(null===(n=null==t?void 0:t.to)||void 0===n?void 0:n.ch)||this.yasqe.getCompleteToken().end,line:o}:t.string.length>0?{ch:this.yasqe.getCompleteToken().end,line:o}:t.from}}},{key:"getHints",value:function(t){var r=this;return this.config.preProcessToken&&(t=this.config.preProcessToken(this.yasqe,t)),t?this.getCompletions(t).then((function(n){return n.map((function(n){return r.getHint(t,n)}))})).then((function(t){return r.config.postprocessHints?r.config.postprocessHints(r.yasqe,t):t})):Promise.resolve([])}},{key:"autocomplete",value:function(t){var r=this;if(!this.isValidPosition())return!1;var n=this.yasqe.state.completionActive,e=this.yasqe.getDoc().getCursor();if(n&&e.sticky&&e.ch!==n.startPos.ch?this.yasqe.state.completionActive.startPos=e:n&&!e.sticky&&e.ch<n.startPos.ch&&(e.sticky=n.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=e.ch,this.yasqe.state.completionActive.startLen--),t&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;var i=function(){return r.getHints(r.yasqe.getCompleteToken()).then((function(t){var n=r.yasqe.getDoc().getCursor(),e=r.yasqe.getCompleteToken(),i={list:t,from:{line:n.line,ch:e.start},to:{line:n.line,ch:e.end}};return et.on(i,"shown",(function(){r.yasqe.emit("autocompletionShown",r.yasqe.state.completionActive.widget)})),et.on(i,"close",(function(){r.yasqe.emit("autocompletionClose")})),i}))};i.async=!1;var o=Object.assign({closeCharacters:/[\s>"]/,completeSingle:!1,hint:i,container:this.yasqe.rootEl,extraKeys:{Home:function(t,r){t.getDoc().setCursor({ch:0,line:r.data.from.line})},End:function(t,r){t.getDoc().setCursor({ch:t.getLine(r.data.to.line).length,line:r.data.to.line})}}},this.yasqe.config.hintConfig);return this.yasqe.showHint(o),!0}}]),n}(G.EventEmitter);function ot(t,r){var n=t.getPrefixesFromQuery(),e=r.string;if(e.indexOf("<")<0&&(r.tokenPrefix=e.substring(0,e.indexOf(":")+1),null!=n[r.tokenPrefix.slice(0,-1)]&&(r.tokenPrefixUri=n[r.tokenPrefix.slice(0,-1)])),r.autocompletionString=e.trim(),e.indexOf("<")<0&&e.indexOf(":")>-1)for(var i in n)if(r.tokenPrefix===i+":"){r.autocompletionString=n[i],r.autocompletionString+=e.substring(i.length+1);break}return 0==r.autocompletionString.indexOf("<")&&(r.autocompletionString=r.autocompletionString.substring(1)),r.autocompletionString.indexOf(">",r.autocompletionString.length-1)>0&&(r.autocompletionString=r.autocompletionString.substring(0,r.autocompletionString.length-1)),r}function st(t,r,n){return r.tokenPrefix&&r.autocompletionString&&r.tokenPrefixUri?r.tokenPrefix+n.substring(r.tokenPrefixUri.length):"<"+n+">"}var at=function(t,r,n){var e=0===window.location.protocol.indexOf("http")?"https://":"http://",i="autocomplete_"+r;return n&&n.string&&0!=n.string.trim().length?E.get(e+"lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms").query({q:n.autocompletionString,page_size:50,type:r}).then((function(t){return t.body.results?t.body.results.map((function(t){return t.uri[0]})):[]}),(function(){t.showNotification(i,"Failed fetching suggestions")})):(t.showNotification(i,"Nothing to autocomplete yet!"),Promise.resolve([]))},ut=[{name:"variables",isValidCompletionPosition:function(t){var r=t.getTokenAt(t.getDoc().getCursor());return!("ws"==r.type||!(r=t.getCompleteToken(r))||"?"!==r.string[0]&&"$"!==r.string[0])},get:function(t,r){if(!r||0==r.string.length)return[];for(var n={},e=[],i=t.getWrapperElement().querySelectorAll(".cm-atom"),o=0;o<i.length;o++){var s=i[o],a=s.innerHTML;if("?"===a[0]||"$"===a[0]){var u=s.nextSibling;if(u&&u.className&&u.className.indexOf("cm-atom")>=0&&(a+=u.innerText),n[a])continue;if(a.length<=1)continue;if(0!==a.indexOf(r.string))continue;if(a===r.string)continue;n[a]=!0,e.push(a)}}return e.sort()},bulk:!1,autoShow:!0},J,tt,rt],lt=n(171),ct=n(7);n(92),n(99),n(100),n(101),n(162),n(122),n(163),n(102),n(166),n(103),n(167),n(168),ct.registerHelper("fold","prefix",(function(t,r){var n=r.line,e=t.getDoc().getLine(n),i=function(r,n){var e=t.getTokenAt(m.a.Pos(r,n+1));if(!e||"keyword"!=e.type)return-1;var i=g(t,r,e.end+1);if(!i||"string-2"!=i.type)return-1;var o=g(t,r,i.end+1);return o&&"variable-3"==o.type?o.end:-1};if(!function(){for(var r=!1,e=n-1;e>=0;e--)if(t.getDoc().getLine(e).toUpperCase().indexOf("PREFIX ")>=0){r=!0;break}return r}()){var o=x(t,n,r.ch,e);if(null!=o){for(var s,a=!1,u=t.getDoc().lastLine(),l=i(n,o),c=n,f=n;f<=u&&!a;++f)for(var h=t.getDoc().getLine(f),p=f==n?o+1:0;;){!a&&h.indexOf("{")>=0&&(a=!0);var d=h.toUpperCase().indexOf("PREFIX ",p);if(!(d>=0))break;(s=i(f,d))>0&&(c=f,p=l=s),p++}return{from:m.a.Pos(n,o+"PREFIX ".length),to:m.a.Pos(c,l)}}}})),ct.defineMode("sparql11",(function(t){var r=n(161),e=r.table,i="[0-9A-Fa-f]",o="\\\\[tbnrf\\\\\"']",s=i+"{4}",a="(\\\\u"+s+"|\\\\U00(10|0"+i+")"+s+")",u={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+o+"|"+a+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+o+"|"+a+"))*"}};for(var l in u)u[l].COMPLETE=u[l].QUOTES+u[l].CONTENTS+u[l].QUOTES;var c={};for(var f in u)c[f]={complete:{name:"STRING_LITERAL_LONG_"+f,regex:new RegExp("^"+u[f].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+f,regex:new RegExp("^"+u[f].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+f,regex:new RegExp("^"+u[f].CONTENTS+u[f].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+f,regex:new RegExp("^"+u[f].QUOTES),style:"string"}};var h=[{name:"WS",regex:new RegExp("^[\\x20\\x09\\x0D\\x0A]+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)"),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("^(([0-9]+\\.[0-9]*[eE][\\+-]?[0-9]+)|(\\.[0-9]+[eE][\\+-]?[0-9]+)|([0-9]+[eE][\\+-]?[0-9]+))"),style:"number"},{name:"DECIMAL",regex:new RegExp("^[0-9]*\\.[0-9]+"),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("^(([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])))?)?:"),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 p(t){var r=[],n=e[t];if(null!=n)for(var i in n)r.push(i.toString());else r.push(t);return r}function d(t,n){function i(){var r=t.column();n.errorStartPos=r,n.errorEndPos=r+l.string.length}function o(t){if(null==n.queryType)switch(t){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":n.queryType=t}}function s(t){switch(n.inPrefixDecl="prefixDecl"===t,t){case"disallowVars":n.allowVars=!1;break;case"allowVars":n.allowVars=!0;break;case"disallowBnodes":n.allowBnodes=!1;break;case"allowBnodes":n.allowBnodes=!0;break;case"storeProperty":n.storeProperty=!0}}function a(t){return(n.allowVars||"var"!=t)&&(n.allowBnodes||"blankNode"!=t&&"blankNodePropertyList"!=t&&"blankNodePropertyListPath"!=t)}0==t.pos&&(n.possibleCurrent=n.possibleNext);var l=function(){var e;if(n.inLiteral){var i=!1;if((e=t.match(c[n.inLiteral].contents.regex,!0,!1))&&0==e[0].length&&(e=t.match(c[n.inLiteral].closing.regex,!0,!1),i=!0),e&&e[0].length>0){var o={quotePos:i?"end":"content",cat:u[n.inLiteral].CAT,style:c[n.inLiteral].complete.style,string:e[0],start:t.start};return i&&(n.inLiteral=void 0),o}}for(var s in c){var a;if(e=t.match(c[s].quotes.regex,!0,!1))return n.inLiteral?(n.inLiteral=void 0,a="end"):(n.inLiteral=s,a="start"),{cat:u[s].CAT,style:c[s].quotes.style,string:e[0],quotePos:a,start:t.start}}for(var l=0;l<h.length;++l)if(e=t.match(h[l].regex,!0,!1))return{cat:h[l].name,style:h[l].style,string:e[0],start:t.start,quotePos:void 0};return(e=t.match(r.keywords,!0,!1))?{cat:t.current().toUpperCase(),style:"keyword",string:e[0],start:t.start,quotePos:void 0}:(e=t.match(r.punct,!0,!1))?{cat:t.current(),style:"punc",string:e[0],start:t.start,quotePos:void 0}:{cat:"<invalid_token>",style:"error",string:(e=t.match(/^.[A-Za-z0-9]*/,!0,!1))[0],start:t.start,quotePos:void 0}}();if("<invalid_token>"==l.cat)return 1==n.OK&&(n.OK=!1,i()),n.complete=!1,l.style;if("WS"===l.cat||"COMMENT"===l.cat||l.quotePos&&"end"!=l.quotePos)return n.possibleCurrent=n.possibleNext,n.possibleFullIri=!1,l.style;var f,d=!1,v=l.cat;if(n.possibleFullIri&&">"===l.string&&(n.possibleFullIri=!1),n.possibleFullIri||"<"!==l.string||(n.possibleFullIri=!0),!l.quotePos||"end"==l.quotePos)for(;n.stack.length>0&&v&&n.OK&&!d;)if("var"===(f=n.stack.pop())&&l.string&&(n.variables[l.string]=l.string),e[f]){var E=e[f][v];if(null!=E&&a(f)){for(var b=E.length-1;b>=0;--b)n.stack.push(E[b]);s(f)}else n.OK=!1,n.complete=!1,i(),n.stack.push(f)}else if(f==v){n.inPrefixDecl&&("PNAME_NS"===f&&l.string.length>0?n.currentPnameNs=l.string.slice(0,-1):"string"==typeof n.currentPnameNs&&l.string.length>1&&(n.prefixes[n.currentPnameNs]=l.string.slice(1,-1),n.currentPnameNs=void 0)),d=!0,o(f);for(var m=!0,g=n.stack.length;g>0;--g){var y=e[n.stack[g-1]];y&&y.$||(m=!1)}if(n.complete=m,n.storeProperty&&"punc"!=v?(n.lastProperty=l.string,n.lastPropertyIndex=l.start,n.storeProperty=!1):"."!==v&&";"!==v||(n.lastProperty="",n.lastPropertyIndex=0),!n.inPrefixDecl&&("PNAME_NS"===v||"PNAME_LN"===v)){var x=l.string.indexOf(":");if(x>=0){var T=l.string.slice(0,x);void 0===n.prefixes[T]&&(n.OK=!1,i(),n.errorMsg="Prefix '"+T+"' is not defined")}}}else n.OK=!1,n.complete=!1,i();if(!d&&n.OK&&(n.OK=!1,n.complete=!1,i()),n.possibleNext.indexOf("a")>=0)for(var I=t.string,N=l.start;N>=0;N--)if(" "!==I[N-1]){"|"===I[N-1]||"/"===I[N-1]||"punc"===l.style||(n.lastPredicateOffset=l.start);break}return n.possibleCurrent=n.possibleNext,n.possibleNext=p(n.stack[n.stack.length-1]),l.style}var v={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},E={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};return{token:d,startState:function(){return{tokenize:d,OK:!0,complete:r.acceptEmpty,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:p(r.startSymbol),possibleNext:p(r.startSymbol),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[r.startSymbol],lastPredicateOffset:t.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:function(r,n){var e;if(r.inLiteral)return 0;if(void 0!==r.lastPredicateOffset&&r.stack.length&&"?[or([verbPath,verbSimple]),objectListPath]"==r.stack[r.stack.length-1])return r.lastPredicateOffset;var i=0,o=r.stack.length-1;if(/^[\}\]\)]/.test(n)){for(var s=n.substr(0,1);o>=0;--o)if(r.stack[o]==s){--o;break}}else{var a=v[r.stack[o]];a&&(i+=a,--o)}for(;o>=0;--o){var u=E[r.stack[o]];u&&(i+=u)}return i*(null!==(e=t.indentUnit)&&void 0!==e?e:2)},electricChars:"}])"}}));var ft=ct;function ht(t,r){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return pt(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pt(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function pt(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}n(149),n(150);var dt,vt,Et,bt,mt=function(t){f()(n,t);var r=function(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=v()(t);if(r){var i=v()(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return p()(this,n)}}(n);function n(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o()(this,n),(e=r.call(this)).autocompleters={},e.prevQueryValid=!1,e.queryValid=!0,e.superagent=E,e.handleHashChange=function(){var t,r;null===(r=(t=e.config).consumeShareLink)||void 0===r||r.call(t,l()(e))},e.notificationEls={},!t)throw new Error("No parent passed as argument. Dont know where to draw YASQE");e.rootEl=document.createElement("div"),e.rootEl.className="yasqe",t.appendChild(e.rootEl),e.config=Object(R.a)({},n.defaults,i);var s,a=ft(e.rootEl,e.config),u=ht(Object.getOwnPropertyNames(n.prototype));try{for(u.s();!(s=u.n()).done;){var c=s.value;a[c]=n.prototype[c].bind(l()(e))}}catch(t){u.e(t)}finally{u.f()}Object.assign(l()(e),ft.prototype,a),e.storage=new I.a(n.storageNamespace),e.drawButtons();var f=e.getStorageId();if(f){var h=e.storage.get(f);e.persistentConfig=h&&"string"==typeof h?{query:h,editorHeight:e.config.editorHeight}:h,e.persistentConfig||(e.persistentConfig={query:e.getValue(),editorHeight:e.config.editorHeight}),e.persistentConfig&&e.persistentConfig.query&&e.setValue(e.persistentConfig.query)}return e.config.autocompleters.forEach((function(t){return e.enableCompleter(t).then((function(){}),console.warn)})),e.config.consumeShareLink&&(e.config.consumeShareLink(l()(e)),window.addEventListener("hashchange",e.handleHashChange)),e.checkSyntax(),e.persistentConfig&&e.persistentConfig.editorHeight?e.getWrapperElement().style.height=e.persistentConfig.editorHeight:e.config.editorHeight&&(e.getWrapperElement().style.height=e.config.editorHeight),e.config.resizeable&&e.drawResizer(),e.config.collapsePrefixesOnLoad&&e.collapsePrefixes(!0),e.registerEventListeners(),e}return a()(n,[{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(t,r){this.req=r,this.updateQueryButton()}},{key:"handleQueryResponse",value:function(t,r,n){this.lastQueryDuration=n,this.req=void 0,this.updateQueryButton()}},{key:"handleQueryAbort",value:function(){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(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];ft.signal.apply(ft,[this,t,this].concat(n))}},{key:"getStorageId",value:function(t){var r=t||this.config.persistenceId;if(r)return"string"==typeof r?r:r(this)}},{key:"drawButtons",value:function(){var t=this,r=document.createElement("div");if(r.className="yasqe_buttons",this.getWrapperElement().appendChild(r),this.config.pluginButtons){var n=this.config.pluginButtons();if(!n)return;if(Array.isArray(n)){var e,i=ht(n);try{for(i.s();!(e=i.n()).done;)r.append(e.value)}catch(t){i.e(t)}finally{i.f()}}else r.appendChild(n)}if(this.config.createShareableLink){var o=Object(I.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>'),s=document.createElement("button");s.className="yasqe_share",s.title="Share query",s.setAttribute("aria-label","Share query"),s.appendChild(o),r.appendChild(s),s.addEventListener("click",(function(t){return a(t)})),s.addEventListener("keydown",(function(t){"Enter"===t.code&&a(t)}));var a=function(n){n.stopPropagation();var e=document.createElement("div");e.className="yasqe_sharePopup",r.appendChild(e),document.body.addEventListener("click",(function(t){e&&t.target!==e&&!e.contains(t.target)&&(e.remove(),e=void 0)}),!0);var i=document.createElement("input");i.type="text",i.value=t.config.createShareableLink(t),i.onfocus=function(){i.select()},i.onmouseup=function(){return!1},e.innerHTML="";var s=document.createElement("div");s.className="inputWrapper",s.appendChild(i),e.appendChild(s);var a=[],u=t.config.createShortLink;if(u){e.className=e.className+=" enableShort";var l=document.createElement("button");a.push(l),l.innerHTML="Shorten",l.className="yasqe_btn yasqe_btn-sm shorten",e.appendChild(l),l.onclick=function(){a.forEach((function(t){return t.disabled=!0})),u(t,i.value).then((function(t){i.value=t,i.focus()}),(function(t){var r=document.createElement("span");r.className="shortlinkErr";var n="An error has occurred";"string"==typeof t&&0!==t.length?n=t:t.message&&0!==t.message.length&&(n=t.message),r.textContent=n,i.replaceWith(r)}))}}var c=document.createElement("button");a.push(c),c.innerText="cURL",c.className="yasqe_btn yasqe_btn-sm curl",e.appendChild(c),c.onclick=function(){a.forEach((function(t){return t.disabled=!0})),i.value=t.getAsCurlString(),i.focus(),null==e||e.appendChild(c)};var f=o.getBoundingClientRect();e.style.top=o.offsetTop+f.height+"px",e.style.left=o.offsetLeft+o.clientWidth-e.clientWidth+"px",i.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Object(I.b)(this.queryBtn,"yasqe_queryButton");var u=Object(I.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(I.b)(u,"queryIcon"),this.queryBtn.appendChild(u);var l=Object(I.d)(M);Object(I.b)(l,"warningIcon"),this.queryBtn.appendChild(l),this.queryBtn.onclick=function(){t.config.queryingDisabled||(t.req?t.abortQuery():t.query().catch((function(){})))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),r.appendChild(this.queryBtn),this.updateQueryButton()}}},{key:"drawResizer",value:function(){if(!this.resizeWrapper){this.resizeWrapper=document.createElement("div"),Object(I.b)(this.resizeWrapper,"resizeWrapper");var t=document.createElement("div");Object(I.b)(t,"resizeChip"),this.resizeWrapper.appendChild(t),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(t,r){var n=0;r.offsetParent&&(n=r.offsetParent.offsetTop);for(var e=0,i=r.parentElement;i;)e+=i.scrollTop,i=i.parentElement;return t.clientY-n-this.rootEl.offsetTop+e}},{key:"doDrag",value:function(t){this.getWrapperElement().style.height=this.calculateDragOffset(t,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 t=this.getDoc().getCursor();if(t){var r=this.getDoc().getLine(t.line);this.getDoc().replaceRange(r+"\n"+r,{ch:0,line:t.line},{ch:r.length,line:t.line})}}},{key:"updateQueryButton",value:function(t){this.queryBtn&&(this.config.queryingDisabled?(Object(I.b)(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Object(I.g)(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),t||(t=this.queryValid?"valid":"error"),t!=this.queryStatus&&(Object(I.g)(this.queryBtn,"query_"+this.queryStatus),Object(I.b)(this.queryBtn,"query_"+t),this.queryStatus=t),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(){console.warn("Localstorage quota exceeded. Clearing all queries"),n.clearStorage()}},{key:"saveQuery",value:function(){var t=this.getStorageId();t&&this.persistentConfig&&(this.persistentConfig.query=this.getValue(),this.storage.set(t,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 t=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),r=[];for(var n in t.state.variables)r.push(n);return r.sort()}},{key:"autoformatSelection",value:function(t,r){var e=this.getValue();return e=e.substring(t,r),n.autoformatString(e)}},{key:"commentLines",value:function(){for(var t=this.getDoc().getCursor("start").line,r=this.getDoc().getCursor("end").line,n=Math.min(t,r),e=Math.max(t,r),i=!0,o=n;o<=e;o++){var s=this.getDoc().getLine(o);if(0==s.length||"#"!=s.substring(0,1)){i=!1;break}}for(o=n;o<=e;o++)i?this.getDoc().replaceRange("",{line:o,ch:0},{line:o,ch:1}):this.getDoc().replaceRange("#",{line:o,ch:0})}},{key:"autoformat",value:function(){var t=this;this.getDoc().somethingSelected()||this.execCommand("selectAll");var r=this.getDoc().getCursor("start"),n={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},e=this.getDoc().indexFromPos(r),i=this.getDoc().indexFromPos(n),o=this.autoformatSelection(e,i);this.operation((function(){t.getDoc().replaceRange(o,r,n);for(var i=t.getDoc().posFromIndex(e).line,s=t.getDoc().posFromIndex(e+o.length).line,a=i;a<=s;a++)t.indentLine(a,"smart")}))}},{key:"getQueryWithValues",value:function(t){if(!t)return this.getValue();var r;if("string"==typeof t)r=t;else{t instanceof Array||(t=[t]);var e=t.reduce((function(t,r){for(var n in r)t[n]=n;return t}),{}),i=[];for(var o in e)i.push(o);if(!i.length)return this.getValue();r="VALUES ("+i.join(" ")+") {\n",t.forEach((function(t){r+="( ",i.forEach((function(n){r+=t[n]||"UNDEF"})),r+=" )\n"})),r+="}\n"}if(!r)return this.getValue();var s="",a=!1,u=!1;return n.runMode(this.getValue(),"sparql11",(function(t,n){"keyword"===n&&"select"===t.toLowerCase()&&(u=!0),s+=t,u&&!a&&"punc"===n&&"{"===t&&(a=!0,s+="\n"+r)})),s}},{key:"getValueWithoutComments",value:function(){var t="";return n.runMode(this.getValue(),"sparql11",(function(r,n){"comment"!=n&&(t+=r)})),t}},{key:"setCheckSyntaxErrors",value:function(t){this.config.syntaxErrorCheck=t,this.checkSyntax()}},{key:"checkSyntax",value:function(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var t=0;t<this.getDoc().lineCount();++t){var r=!1;this.prevQueryValid||(r=!0);var n=this.getTokenAt({line:t,ch:this.getDoc().getLine(t).length},r),e=n.state;if(this.setOption("queryType",e.queryType),0==e.OK){if(!this.config.syntaxErrorCheck){for(var i=this.getWrapperElement().querySelectorAll(".sp-error"),o=0;o<i.length;o++){var s=i[o];s.style&&(s.style.color="black")}return}var a=Object(I.d)(M);if(e.errorMsg)A(0,a,Object(lt.a)(n.state.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){var u=[];e.possibleCurrent.forEach((function(t){u.push("<strong style='text-decoration:underline'>"+Object(lt.a)(t)+"</strong>")})),A(0,a,"This line is invalid. Expected: "+u.join(", "))}a.className="parseErrorIcon",this.setGutterMarker(t,"gutterErrorBar",a),this.queryValid=!1;break}}}},{key:"getCompleteToken",value:function(t,r){return function(t,r,n){return n||(n=t.getDoc().getCursor()),r||(r=t.getTokenAt(n)),function t(r,n,e){if(n.string.indexOf(" ")>=0){var i=n.string.indexOf(" ");return n.string=n.string.substr(0,i),n.end=n.start+n.string.length,n}if(!n.type)return n;var o=r.getTokenAt({line:e.line,ch:n.end+1});return"ws"!==o.type&&n.state.possibleFullIri&&null!==n.type&&"ws"!==n.type&&o.end!==n.end?(n.end=o.end,n.string=n.string+o.string,t(r,n,{line:e.line,ch:o.end})):"ws"===n.type?(n.end=n.end+1,n.string=n.string.substring(n.string.length-1),n):n}(t,function t(r,n,e){var i=r.getTokenAt({line:e.line,ch:n.start});return"punc"!==n.type&&"error"!==n.type||n.state.possibleFullIri||n.state.inPrefixDecl?"punc"!==i.type||i.state.possibleFullIri||i.state.inPrefixDecl?null!=i.type&&"ws"!=i.type&&null!=n.type&&"ws"!=n.type?(n.start=i.start,n.string=i.string+n.string,t(r,n,{line:e.line,ch:i.start})):null!=n.type&&"ws"==n.type?(n.start=n.start+1,n.string=n.string.substring(1),n):n:n:(n.state.possibleCurrent=n.state.possibleNext,n)}(t,r,n),n)}(this,t,r)}},{key:"getPreviousNonWsToken",value:function(t,r){return function t(r,n,e){var i=r.getTokenAt({line:n,ch:e.start});return null!=i&&"ws"==i.type&&(i=t(r,n,i)),i}(this,t,r)}},{key:"getNextNonWsToken",value:function(t,r){return g(this,t,r)}},{key:"showNotification",value:function(t,r){if(!this.notificationEls[t]){var n=document.createElement("div");Object(I.b)(n,"notificationContainer"),this.getWrapperElement().appendChild(n),this.notificationEls[t]=document.createElement("div"),Object(I.b)(this.notificationEls[t],"notification","notif_"+t),n.appendChild(this.notificationEls[t])}for(var e in this.notificationEls)e!==t&&this.hideNotification(e);var i=this.notificationEls[t];Object(I.b)(i,"active"),i.innerText=r}},{key:"hideNotification",value:function(t){this.notificationEls[t]&&Object(I.g)(this.notificationEls[t],"active")}},{key:"enableCompleter",value:function(t){return n.Autocompleters[t]?(this.config.autocompleters.indexOf(t)<0&&this.config.autocompleters.push(t),(this.autocompleters[t]=new it(this,n.Autocompleters[t])).initialize()):Promise.reject(new Error("Autocompleter "+t+" is not a registered autocompleter"))}},{key:"disableCompleter",value:function(t){this.config.autocompleters=this.config.autocompleters.filter((function(r){return r!==t})),this.autocompleters[t]=void 0}},{key:"autocomplete",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.getDoc().somethingSelected())for(var r in this.config.autocompleters){var n=this.autocompleters[this.config.autocompleters[r]];n&&n.autocomplete(t)}}},{key:"collapsePrefixes",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=y(this);void 0!==r&&this.foldCode(r,ft.fold.prefix,t?"fold":"unfold")}},{key:"getPrefixesFromQuery",value:function(){return(t=this).getTokenAt({line:t.getDoc().lastLine(),ch:t.getDoc().getLine(t.getDoc().lastLine()).length},!0).state.prefixes;var t}},{key:"addPrefixes",value:function(t){return function(t,r){var n=t.getPrefixesFromQuery();if("string"==typeof r)T(t,r);else for(var e in r)e in n||T(t,e+": <"+r[e]+">");t.collapsePrefixes(!1)}(this,t)}},{key:"removePrefixes",value:function(t){return function(t,r){for(var n in r)t.setValue(t.getValue().replace(new RegExp("PREFIX\\s*"+n+":\\s*"+("<"+r[n]+">").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"\\s*","ig"),""));t.collapsePrefixes(!1)}(this,t)}},{key:"updateWidget",value:function(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){var t=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=t+"px"}}},{key:"query",value:function(t){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.abortQuery(),_(this,t))}},{key:"getUrlParams",value:function(){var t={};return window.location.hash.length>1&&(t=N.parse(location.hash)),t&&"query"in t||!(window.location.search.length>1)||(t=N.parse(window.location.search)),t}},{key:"configToQueryParams",value:function(){var t={};return window.location.hash.length>1&&(t=N.parse(window.location.hash)),t.query=this.getValue(),t}},{key:"queryParamsToConfig",value:function(t){t&&t.query&&"string"==typeof t.query&&this.setValue(t.query)}},{key:"getAsCurlString",value:function(t){return D(this,t)}},{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 t,r;for(var n in this.abortQuery(),this.unregisterEventListeners(),null===(t=this.resizeWrapper)||void 0===t||t.removeEventListener("mousedown",this.initDrag,!1),null===(r=this.resizeWrapper)||void 0===r||r.removeEventListener("dblclick",this.expandEditor),this.autocompleters)this.disableCompleter(n);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}}],[{key:"autoformatString",value:function(t){var r=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],e=["}"],i="",o="",s=[];return n.runMode(t,"sparql11",(function(t,n){s.push(n);var a=function(t){if("{"===t)return 1;if("."===t)return 1;if(";"===t)return s.length>2&&"punc"===s[s.length-2]?0:1;for(var n=0;n<r.length;n++)if(s.valueOf().toString()===r[n].valueOf().toString())return 1;for(n=0;n<e.length;n++)if(""!==o.trim()&&t==e[n])return-1;return 0}(t);0!=a?(1==a?(i+=t+"\n",o=""):(i+="\n"+t,o=t),s=[]):(o+=t,i+=t),1==s.length&&"sp-ws"==s[0]&&(s=[])})),i.replace(/\n\s*\n/g,"\n").trim()}},{key:"clearStorage",value:function(){new I.a(n.storageNamespace).removeNamespace()}},{key:"registerAutocompleter",value:function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t.name;n.Autocompleters[e]=t,r&&n.defaults.autocompleters.indexOf(e)<0&&n.defaults.autocompleters.push(e)}},{key:"forkAutocompleter",value:function(t,r){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!n.Autocompleters[t])throw new Error("Autocompleter "+t+" does not exist");if(!(null==r?void 0:r.name))throw new Error("Expected a name for newly registered autocompleter");var i=r.name;n.Autocompleters[i]=Object.assign(Object.assign({},n.Autocompleters[t]),r),e&&n.defaults.autocompleters.indexOf(i)<0&&n.defaults.autocompleters.push(i)}}]),n}(ft);mt.storageNamespace="triply",mt.Sparql=e,mt.runMode=ft.runMode,mt.Autocompleters={},mt.defaults=(dt=(0===window.location.protocol.indexOf("http")?"//":"http://")+"prefix.cc/popular/all.file.json",Et={mode:"sparql11",value:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nSELECT * WHERE {\n ?sub ?pred ?obj .\n} LIMIT 10",highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new((vt=n(7)).fold.combine)(vt.fold.brace,vt.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(t){t.autocomplete()},"Shift-Ctrl-K":function(t){var r=t,n=r.getDoc().getCursor().line;return n===r.getDoc().lastLine()&&n>1?r.getDoc().replaceRange("",{ch:r.getDoc().getLine(n-1).length,line:n-1},{ch:r.getDoc().getLine(n).length,line:n}):r.getDoc().replaceRange("",{ch:0,line:n},{ch:0,line:n+1})},"Ctrl-/":function(t){t.commentLines()},"Shift-Ctrl-D":function(t){t.duplicateLine()},"Shift-Ctrl-F":function(t){t.autoformat()},"Ctrl-S":function(t){t.saveQuery()},"Cmd-Enter":function(t){t.query().catch((function(){}))},"Ctrl-Enter":function(t){t.query().catch((function(){}))},Esc:function(t){t.getInputField().blur()}},createShareableLink:function(t){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+N.stringify(t.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(t){t.queryParamsToConfig(t.getUrlParams())},persistenceId:function(t){var r="",n=t.rootEl;for(n.id&&(r=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(r=n.id);break}return"yasqe_"+r+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:dt},bt={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({},Et),{requestConfig:bt})),Object.assign(ft.prototype,mt.prototype),ut.forEach((function(t){mt.registerAutocompleter(t)})),r.default=mt},function(t){t.exports=function(t){if(!t.webpackPolyfill){var r=Object.create(t);r.children||(r.children=[]),Object.defineProperty(r,"loaded",{enumerable:!0,get:function(){return r.l}}),Object.defineProperty(r,"id",{enumerable:!0,get:function(){return r.i}}),Object.defineProperty(r,"exports",{enumerable:!0}),r.webpackPolyfill=1}return r}},function(t,r){r.a=function(t){var r=-1,n=Array(t.size);return t.forEach((function(t,e){n[++r]=[e,t]})),n}},function(t,r,n){var e=n(79),i=n(70);r.a=function(t){return Object(e.a)((function(r,n){var e=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&Object(i.a)(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),r=Object(r);++e<o;){var u=n[e];u&&t(r,u,e,s)}return r}))}},function(t,r){r.a=function(t){return function(){return t}}},function(t,r,n){var e=n(18),i=n(31),o=n(12),s=function(t,r,n){(void 0!==n&&!Object(o.a)(t[r],n)||void 0===n&&!(r in t))&&Object(i.a)(t,r,n)},a=n(69),u=n(77),l=n(78),c=n(76),f=n(81),h=n(15),p=n(1),d=n(10),v=n(6),E=function(t){return Object(v.a)(t)&&Object(d.a)(t)},b=n(14),m=n(44),g=n(2),y=n(11),x=n(51),T=Function.prototype.toString,I=Object.prototype.hasOwnProperty,N=T.call(Object),A=function(t){if(!Object(v.a)(t)||"[object Object]"!=Object(y.a)(t))return!1;var r=Object(x.a)(t);if(null===r)return!0;var n=I.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==N},S=n(33),L=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},C=n(32),R=n(38),w=function(t,r,n,e,i,o,a){var d=L(t,n),v=L(r,n),y=a.get(v);if(y)s(t,n,y);else{var x=o?o(d,v,n+"",t,r,a):void 0,T=void 0===x;if(T){var I=Object(p.a)(v),N=!I&&Object(b.a)(v),w=!I&&!N&&Object(S.a)(v);x=v,I||N||w?Object(p.a)(d)?x=d:E(d)?x=Object(c.a)(d):N?(T=!1,x=Object(u.a)(v,!0)):w?(T=!1,x=Object(l.a)(v,!0)):x=[]:A(v)||Object(h.a)(v)?(x=d,Object(h.a)(d)?x=function(t){return Object(C.a)(t,Object(R.a)(t))}(d):Object(g.a)(d)&&!Object(m.a)(d)||(x=Object(f.a)(v))):T=!1}T&&(a.set(v,x),i(x,v,e,o,a),a.delete(v)),s(t,n,x)}};r.a=function t(r,n,i,o,u){r!==n&&Object(a.a)(n,(function(a,l){if(u||(u=new e.a),Object(g.a)(a))w(r,n,l,i,t,o,u);else{var c=o?o(L(r,l),a,l+"",r,n,u):void 0;void 0===c&&(c=a),s(r,l,c)}}),R.a)}},function(t,r,n){var e=function(t,r){return null!=t&&r in Object(t)},i=n(53),o=n(15),s=n(1),a=n(37),u=n(43),l=n(24);r.a=function(t,r){return null!=t&&function(t,r,n){for(var e=-1,c=(r=Object(i.a)(r,t)).length,f=!1;++e<c;){var h=Object(l.a)(r[e]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++e!=c?f:!!(c=null==t?0:t.length)&&Object(u.a)(c)&&Object(a.a)(h,c)&&(Object(s.a)(t)||Object(o.a)(t))}(t,r,e)}},function(t,r,n){var e=n(86),i=n(48),o=n(25),s=Date.now,a=function(t){var r=0,n=0;return function(){var e=s(),i=16-(e-n);if(n=e,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(i.a?function(t,r){return Object(i.a)(t,"toString",{configurable:!0,enumerable:!1,value:Object(e.a)(r),writable:!0})}:o.a);r.a=a},function(t,r,n){var e=n(66),i=n(10),o=function(t){return function(r,n){if(null==r)return r;if(!Object(i.a)(r))return t(r,n);for(var e=r.length,o=-1,s=Object(r);++o<e&&!1!==n(s[o],o,s););return r}}(e.a);r.a=o},function(t,r){var n=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)},e=Math.max;r.a=function(t,r,i){return r=e(void 0===r?t.length-1:r,0),function(){for(var o=arguments,s=-1,a=e(o.length-r,0),u=Array(a);++s<a;)u[s]=o[r+s];s=-1;for(var l=Array(r+1);++s<r;)l[s]=o[s];return l[r]=i(u),n(t,this,l)}}},function(t,r,n){!function(t){function r(r,n,i,o){if(i&&i.call){var s=i;i=null}else s=e(r,i,"rangeFinder");"number"==typeof n&&(n=t.Pos(n,0));var a=e(r,i,"minFoldSize");function u(t){var e=s(r,n);if(!e||e.to.line-e.from.line<a)return null;for(var i=r.findMarksAt(e.from),u=0;u<i.length;++u)if(i[u].__isFold&&"fold"!==o){if(!t)return null;e.cleared=!0,i[u].clear()}return e}var l=u(!0);if(e(r,i,"scanUp"))for(;!l&&n.line>r.firstLine();)n=t.Pos(n.line-1,0),l=u(!1);if(l&&!l.cleared&&"unfold"!==o){var c=function(t,r,n){var i=e(t,r,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(r,i,l);t.on(c,"mousedown",(function(r){f.clear(),t.e_preventDefault(r)}));var f=r.markText(l.from,l.to,{replacedWith:c,clearOnEnter:e(r,i,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,e){t.signal(r,"unfold",r,n,e)})),t.signal(r,"fold",r,l.from,l.to)}}t.newFoldFunction=function(t,n){return function(e,i){r(e,i,{rangeFinder:t,widget:n})}},t.defineExtension("foldCode",(function(t,n,e){r(this,t,n,e)})),t.defineExtension("isFolded",(function(t){for(var r=this.findMarksAt(t),n=0;n<r.length;++n)if(r[n].__isFold)return!0})),t.commands.toggleFold=function(t){t.foldCode(t.getCursor())},t.commands.fold=function(t){t.foldCode(t.getCursor(),null,"fold")},t.commands.unfold=function(t){t.foldCode(t.getCursor(),null,"unfold")},t.commands.foldAll=function(r){r.operation((function(){for(var n=r.firstLine(),e=r.lastLine();n<=e;n++)r.foldCode(t.Pos(n,0),null,"fold")}))},t.commands.unfoldAll=function(r){r.operation((function(){for(var n=r.firstLine(),e=r.lastLine();n<=e;n++)r.foldCode(t.Pos(n,0),null,"unfold")}))},t.registerHelper("fold","combine",(function(){var t=Array.prototype.slice.call(arguments,0);return function(r,n){for(var e=0;e<t.length;++e){var i=t[e](r,n);if(i)return i}}})),t.registerHelper("fold","auto",(function(t,r){for(var n=t.getHelpers(r,"fold"),e=0;e<n.length;e++){var i=n[e](t,r);if(i)return i}}));var n={rangeFinder:t.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function e(t,r,e){if(r&&void 0!==r[e])return r[e];var i=t.options.foldOptions;return i&&void 0!==i[e]?i[e]:n[e]}t.defineOption("foldOptions",null),t.defineExtension("foldOption",(function(t,r){return e(this,t,r)}))}(n(7))},function(t,r){r.a=function(){return!1}},function(t,r,n){var e=n(118);t.exports=function(t,r){if(t){if("string"==typeof t)return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}},function(t,r){var n;!function(r,n){"object"==typeof t.exports?t.exports=r.document?n(r,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(r)}("undefined"!=typeof window?window:this,(function(e,i){var o=[],s=Object.getPrototypeOf,a=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,f={},h=f.toString,p=f.hasOwnProperty,d=p.toString,v=d.call(Object),E={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},m=function(t){return null!=t&&t===t.window},g=e.document,y={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,r,n){var e,i,o=(n=n||g).createElement("script");if(o.text=t,r)for(e in y)(i=r[e]||r.getAttribute&&r.getAttribute(e))&&o.setAttribute(e,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[h.call(t)]||"object":typeof t}var I=function(t,r){return new I.fn.init(t,r)};function N(t){var r=!!t&&"length"in t&&t.length,n=T(t);return!b(t)&&!m(t)&&("array"===n||0===r||"number"==typeof r&&r>0&&r-1 in t)}I.fn=I.prototype={jquery:"3.5.1",constructor:I,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var r=I.merge(this.constructor(),t);return r.prevObject=this,r},each:function(t){return I.each(this,t)},map:function(t){return this.pushStack(I.map(this,(function(r,n){return t.call(r,n,r)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(I.grep(this,(function(t,r){return(r+1)%2})))},odd:function(){return this.pushStack(I.grep(this,(function(t,r){return r%2})))},eq:function(t){var r=this.length,n=+t+(t<0?r:0);return this.pushStack(n>=0&&n<r?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},I.extend=I.fn.extend=function(){var t,r,n,e,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||b(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(r in t)e=t[r],"__proto__"!==r&&s!==e&&(l&&e&&(I.isPlainObject(e)||(i=Array.isArray(e)))?(n=s[r],o=i&&!Array.isArray(n)?[]:i||I.isPlainObject(n)?n:{},i=!1,s[r]=I.extend(l,o,e)):void 0!==e&&(s[r]=e));return s},I.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var r,n;return!(!t||"[object Object]"!==h.call(t)||(r=s(t))&&("function"!=typeof(n=p.call(r,"constructor")&&r.constructor)||d.call(n)!==v))},isEmptyObject:function(t){var r;for(r in t)return!1;return!0},globalEval:function(t,r,n){x(t,{nonce:r&&r.nonce},n)},each:function(t,r){var n,e=0;if(N(t))for(n=t.length;e<n&&!1!==r.call(t[e],e,t[e]);e++);else for(e in t)if(!1===r.call(t[e],e,t[e]))break;return t},makeArray:function(t,r){var n=r||[];return null!=t&&(N(Object(t))?I.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,r,n){return null==r?-1:c.call(r,t,n)},merge:function(t,r){for(var n=+r.length,e=0,i=t.length;e<n;e++)t[i++]=r[e];return t.length=i,t},grep:function(t,r,n){for(var e=[],i=0,o=t.length,s=!n;i<o;i++)!r(t[i],i)!==s&&e.push(t[i]);return e},map:function(t,r,n){var e,i,o=0,s=[];if(N(t))for(e=t.length;o<e;o++)null!=(i=r(t[o],o,n))&&s.push(i);else for(o in t)null!=(i=r(t[o],o,n))&&s.push(i);return u(s)},guid:1,support:E}),"function"==typeof Symbol&&(I.fn[Symbol.iterator]=o[Symbol.iterator]),I.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,r){f["[object "+r+"]"]=r.toLowerCase()}));var A=function(t){var r,n,e,i,o,s,a,u,l,c,f,h,p,d,v,E,b,m,g,y="sizzle"+1*new Date,x=t.document,T=0,I=0,N=ut(),A=ut(),S=ut(),L=ut(),C=function(t,r){return t===r&&(f=!0),0},R={}.hasOwnProperty,w=[],O=w.pop,_=w.push,k=w.push,P=w.slice,D=function(t,r){for(var n=0,e=t.length;n<e;n++)if(t[n]===r)return n;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",G="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+j+"*("+G+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+G+"))|)"+j+"*\\]",U=":("+G+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",B=new RegExp(j+"+","g"),V=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),q=new RegExp("^"+j+"*,"+j+"*"),H=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),z=new RegExp(j+"|>"),$=new RegExp(U),W=new RegExp("^"+G+"$"),Y={ID:new RegExp("^#("+G+")"),CLASS:new RegExp("^\\.("+G+")"),TAG:new RegExp("^("+G+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,rt=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,r){var n="0x"+t.slice(1)-65536;return r||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,r){return r?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},st=yt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{k.apply(w=P.call(x.childNodes),x.childNodes)}catch(t){k={apply:w.length?function(t,r){_.apply(t,P.call(r))}:function(t,r){for(var n=t.length,e=0;t[n++]=r[e++];);t.length=n-1}}}function at(t,r,e,i){var o,a,l,c,f,d,b,m=r&&r.ownerDocument,x=r?r.nodeType:9;if(e=e||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return e;if(!i&&(h(r),r=r||p,v)){if(11!==x&&(f=J.exec(t)))if(o=f[1]){if(9===x){if(!(l=r.getElementById(o)))return e;if(l.id===o)return e.push(l),e}else if(m&&(l=m.getElementById(o))&&g(r,l)&&l.id===o)return e.push(l),e}else{if(f[2])return k.apply(e,r.getElementsByTagName(t)),e;if((o=f[3])&&n.getElementsByClassName&&r.getElementsByClassName)return k.apply(e,r.getElementsByClassName(o)),e}if(n.qsa&&!L[t+" "]&&(!E||!E.test(t))&&(1!==x||"object"!==r.nodeName.toLowerCase())){if(b=t,m=r,1===x&&(z.test(t)||H.test(t))){for((m=tt.test(t)&&bt(r.parentNode)||r)===r&&n.scope||((c=r.getAttribute("id"))?c=c.replace(et,it):r.setAttribute("id",c=y)),a=(d=s(t)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+gt(d[a]);b=d.join(",")}try{return k.apply(e,m.querySelectorAll(b)),e}catch(r){L(t,!0)}finally{c===y&&r.removeAttribute("id")}}}return u(t.replace(V,"$1"),r,e,i)}function ut(){var t=[];return function r(n,i){return t.push(n+" ")>e.cacheLength&&delete r[t.shift()],r[n+" "]=i}}function lt(t){return t[y]=!0,t}function ct(t){var r=p.createElement("fieldset");try{return!!t(r)}catch(t){return!1}finally{r.parentNode&&r.parentNode.removeChild(r),r=null}}function ft(t,r){for(var n=t.split("|"),i=n.length;i--;)e.attrHandle[n[i]]=r}function ht(t,r){var n=r&&t,e=n&&1===t.nodeType&&1===r.nodeType&&t.sourceIndex-r.sourceIndex;if(e)return e;if(n)for(;n=n.nextSibling;)if(n===r)return-1;return t?1:-1}function pt(t){return function(r){return"input"===r.nodeName.toLowerCase()&&r.type===t}}function dt(t){return function(r){var n=r.nodeName.toLowerCase();return("input"===n||"button"===n)&&r.type===t}}function vt(t){return function(r){return"form"in r?r.parentNode&&!1===r.disabled?"label"in r?"label"in r.parentNode?r.parentNode.disabled===t:r.disabled===t:r.isDisabled===t||r.isDisabled!==!t&&st(r)===t:r.disabled===t:"label"in r&&r.disabled===t}}function Et(t){return lt((function(r){return r=+r,lt((function(n,e){for(var i,o=t([],n.length,r),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(e[i]=n[i]))}))}))}function bt(t){return t&&void 0!==t.getElementsByTagName&&t}for(r in n=at.support={},o=at.isXML=function(t){var r=(t.ownerDocument||t).documentElement;return!X.test(t.namespaceURI||r&&r.nodeName||"HTML")},h=at.setDocument=function(t){var r,i,s=t?t.ownerDocument||t:x;return s!=p&&9===s.nodeType&&s.documentElement?(d=(p=s).documentElement,v=!o(p),x!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ct((function(t){return d.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(p.getElementsByClassName),n.getById=ct((function(t){return d.appendChild(t).id=y,!p.getElementsByName||!p.getElementsByName(y).length})),n.getById?(e.filter.ID=function(t){var r=t.replace(rt,nt);return function(t){return t.getAttribute("id")===r}},e.find.ID=function(t,r){if(void 0!==r.getElementById&&v){var n=r.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var r=t.replace(rt,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===r}},e.find.ID=function(t,r){if(void 0!==r.getElementById&&v){var n,e,i,o=r.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=r.getElementsByName(t),e=0;o=i[e++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=n.getElementsByTagName?function(t,r){return void 0!==r.getElementsByTagName?r.getElementsByTagName(t):n.qsa?r.querySelectorAll(t):void 0}:function(t,r){var n,e=[],i=0,o=r.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&e.push(n);return e}return o},e.find.CLASS=n.getElementsByClassName&&function(t,r){if(void 0!==r.getElementsByClassName&&v)return r.getElementsByClassName(t)},b=[],E=[],(n.qsa=K.test(p.querySelectorAll))&&(ct((function(t){var r;d.appendChild(t).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&E.push("[*^$]="+j+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||E.push("\\["+j+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||E.push("~="),(r=p.createElement("input")).setAttribute("name",""),t.appendChild(r),t.querySelectorAll("[name='']").length||E.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||E.push(":checked"),t.querySelectorAll("a#"+y+"+*").length||E.push(".#.+[+~]"),t.querySelectorAll("\\\f"),E.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var r=p.createElement("input");r.setAttribute("type","hidden"),t.appendChild(r).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&E.push("name"+j+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&E.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&E.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),E.push(",.*:")}))),(n.matchesSelector=K.test(m=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=m.call(t,"*"),m.call(t,"[s!='']:x"),b.push("!=",U)})),E=E.length&&new RegExp(E.join("|")),b=b.length&&new RegExp(b.join("|")),r=K.test(d.compareDocumentPosition),g=r||K.test(d.contains)?function(t,r){var n=9===t.nodeType?t.documentElement:t,e=r&&r.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,r){if(r)for(;r=r.parentNode;)if(r===t)return!0;return!1},C=r?function(t,r){if(t===r)return f=!0,0;var e=!t.compareDocumentPosition-!r.compareDocumentPosition;return e||(1&(e=(t.ownerDocument||t)==(r.ownerDocument||r)?t.compareDocumentPosition(r):1)||!n.sortDetached&&r.compareDocumentPosition(t)===e?t==p||t.ownerDocument==x&&g(x,t)?-1:r==p||r.ownerDocument==x&&g(x,r)?1:c?D(c,t)-D(c,r):0:4&e?-1:1)}:function(t,r){if(t===r)return f=!0,0;var n,e=0,i=t.parentNode,o=r.parentNode,s=[t],a=[r];if(!i||!o)return t==p?-1:r==p?1:i?-1:o?1:c?D(c,t)-D(c,r):0;if(i===o)return ht(t,r);for(n=t;n=n.parentNode;)s.unshift(n);for(n=r;n=n.parentNode;)a.unshift(n);for(;s[e]===a[e];)e++;return e?ht(s[e],a[e]):s[e]==x?-1:a[e]==x?1:0},p):p},at.matches=function(t,r){return at(t,null,null,r)},at.matchesSelector=function(t,r){if(h(t),n.matchesSelector&&v&&!L[r+" "]&&(!b||!b.test(r))&&(!E||!E.test(r)))try{var e=m.call(t,r);if(e||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return e}catch(t){L(r,!0)}return at(r,p,null,[t]).length>0},at.contains=function(t,r){return(t.ownerDocument||t)!=p&&h(t),g(t,r)},at.attr=function(t,r){(t.ownerDocument||t)!=p&&h(t);var i=e.attrHandle[r.toLowerCase()],o=i&&R.call(e.attrHandle,r.toLowerCase())?i(t,r,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(r):(o=t.getAttributeNode(r))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(et,it)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var r,e=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(C),f){for(;r=t[o++];)r===t[o]&&(i=e.push(o));for(;i--;)t.splice(e[i],1)}return c=null,t},i=at.getText=function(t){var r,n="",e=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;r=t[e++];)n+=i(r);return n},(e=at.selectors={cacheLength:50,createPseudo:lt,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(rt,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(rt,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var r,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&$.test(n)&&(r=s(n,!0))&&(r=n.indexOf(")",n.length-r)-n.length)&&(t[0]=t[0].slice(0,r),t[2]=n.slice(0,r)),t.slice(0,3))}},filter:{TAG:function(t){var r=t.replace(rt,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===r}},CLASS:function(t){var r=N[t+" "];return r||(r=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&N(t,(function(t){return r.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,r,n){return function(e){var i=at.attr(e,t);return null==i?"!="===r:!r||(i+="","="===r?i===n:"!="===r?i!==n:"^="===r?n&&0===i.indexOf(n):"*="===r?n&&i.indexOf(n)>-1:"$="===r?n&&i.slice(-n.length)===n:"~="===r?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===r&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,r,n,e,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===r;return 1===e&&0===i?function(t){return!!t.parentNode}:function(r,n,u){var l,c,f,h,p,d,v=o!==s?"nextSibling":"previousSibling",E=r.parentNode,b=a&&r.nodeName.toLowerCase(),m=!u&&!a,g=!1;if(E){if(o){for(;v;){for(h=r;h=h[v];)if(a?h.nodeName.toLowerCase()===b:1===h.nodeType)return!1;d=v="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?E.firstChild:E.lastChild],s&&m){for(g=(p=(l=(c=(f=(h=E)[y]||(h[y]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===T&&l[1])&&l[2],h=p&&E.childNodes[p];h=++p&&h&&h[v]||(g=p=0)||d.pop();)if(1===h.nodeType&&++g&&h===r){c[t]=[T,p,g];break}}else if(m&&(g=p=(l=(c=(f=(h=r)[y]||(h[y]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]||[])[0]===T&&l[1]),!1===g)for(;(h=++p&&h&&h[v]||(g=p=0)||d.pop())&&((a?h.nodeName.toLowerCase()!==b:1!==h.nodeType)||!++g||(m&&((c=(f=h[y]||(h[y]={}))[h.uniqueID]||(f[h.uniqueID]={}))[t]=[T,g]),h!==r)););return(g-=i)===e||g%e==0&&g/e>=0}}},PSEUDO:function(t,r){var n,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return i[y]?i(r):i.length>1?(n=[t,t,"",r],e.setFilters.hasOwnProperty(t.toLowerCase())?lt((function(t,n){for(var e,o=i(t,r),s=o.length;s--;)t[e=D(t,o[s])]=!(n[e]=o[s])})):function(t){return i(t,0,n)}):i}},pseudos:{not:lt((function(t){var r=[],n=[],e=a(t.replace(V,"$1"));return e[y]?lt((function(t,r,n,i){for(var o,s=e(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(r[a]=o))})):function(t,i,o){return r[0]=t,e(r,null,o,n),r[0]=null,!n.pop()}})),has:lt((function(t){return function(r){return at(t,r).length>0}})),contains:lt((function(t){return t=t.replace(rt,nt),function(r){return(r.textContent||i(r)).indexOf(t)>-1}})),lang:lt((function(t){return W.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(rt,nt).toLowerCase(),function(r){var n;do{if(n=v?r.lang:r.getAttribute("xml:lang")||r.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((r=r.parentNode)&&1===r.nodeType);return!1}})),target:function(r){var n=t.location&&t.location.hash;return n&&n.slice(1)===r.id},root:function(t){return t===d},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:vt(!1),disabled:vt(!0),checked:function(t){var r=t.nodeName.toLowerCase();return"input"===r&&!!t.checked||"option"===r&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var r=t.nodeName.toLowerCase();return"input"===r&&"button"===t.type||"button"===r},text:function(t){var r;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(r=t.getAttribute("type"))||"text"===r.toLowerCase())},first:Et((function(){return[0]})),last:Et((function(t,r){return[r-1]})),eq:Et((function(t,r,n){return[n<0?n+r:n]})),even:Et((function(t,r){for(var n=0;n<r;n+=2)t.push(n);return t})),odd:Et((function(t,r){for(var n=1;n<r;n+=2)t.push(n);return t})),lt:Et((function(t,r,n){for(var e=n<0?n+r:n>r?r:n;--e>=0;)t.push(e);return t})),gt:Et((function(t,r,n){for(var e=n<0?n+r:n;++e<r;)t.push(e);return t}))}}).pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[r]=pt(r);for(r in{submit:!0,reset:!0})e.pseudos[r]=dt(r);function mt(){}function gt(t){for(var r=0,n=t.length,e="";r<n;r++)e+=t[r].value;return e}function yt(t,r,n){var e=r.dir,i=r.next,o=i||e,s=n&&"parentNode"===o,a=I++;return r.first?function(r,n,i){for(;r=r[e];)if(1===r.nodeType||s)return t(r,n,i);return!1}:function(r,n,u){var l,c,f,h=[T,a];if(u){for(;r=r[e];)if((1===r.nodeType||s)&&t(r,n,u))return!0}else for(;r=r[e];)if(1===r.nodeType||s)if(c=(f=r[y]||(r[y]={}))[r.uniqueID]||(f[r.uniqueID]={}),i&&i===r.nodeName.toLowerCase())r=r[e]||r;else{if((l=c[o])&&l[0]===T&&l[1]===a)return h[2]=l[2];if(c[o]=h,h[2]=t(r,n,u))return!0}return!1}}function xt(t){return t.length>1?function(r,n,e){for(var i=t.length;i--;)if(!t[i](r,n,e))return!1;return!0}:t[0]}function Tt(t,r,n,e,i){for(var o,s=[],a=0,u=t.length,l=null!=r;a<u;a++)(o=t[a])&&(n&&!n(o,e,i)||(s.push(o),l&&r.push(a)));return s}function It(t,r,n,e,i,o){return e&&!e[y]&&(e=It(e)),i&&!i[y]&&(i=It(i,o)),lt((function(o,s,a,u){var l,c,f,h=[],p=[],d=s.length,v=o||function(t,r,n){for(var e=0,i=r.length;e<i;e++)at(t,r[e],n);return n}(r||"*",a.nodeType?[a]:a,[]),E=!t||!o&&r?v:Tt(v,h,t,a,u),b=n?i||(o?t:d||e)?[]:s:E;if(n&&n(E,b,a,u),e)for(l=Tt(b,p),e(l,[],a,u),c=l.length;c--;)(f=l[c])&&(b[p[c]]=!(E[p[c]]=f));if(o){if(i||t){if(i){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(E[c]=f);i(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=i?D(o,f):h[c])>-1&&(o[l]=!(s[l]=f))}}else b=Tt(b===s?b.splice(d,b.length):b),i?i(null,s,b,u):k.apply(s,b)}))}function Nt(t){for(var r,n,i,o=t.length,s=e.relative[t[0].type],a=s||e.relative[" "],u=s?1:0,c=yt((function(t){return t===r}),a,!0),f=yt((function(t){return D(r,t)>-1}),a,!0),h=[function(t,n,e){var i=!s&&(e||n!==l)||((r=n).nodeType?c(t,n,e):f(t,n,e));return r=null,i}];u<o;u++)if(n=e.relative[t[u].type])h=[yt(xt(h),n)];else{if((n=e.filter[t[u].type].apply(null,t[u].matches))[y]){for(i=++u;i<o&&!e.relative[t[i].type];i++);return It(u>1&&xt(h),u>1&>(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(V,"$1"),n,u<i&&Nt(t.slice(u,i)),i<o&&Nt(t=t.slice(i)),i<o&>(t))}h.push(n)}return xt(h)}return mt.prototype=e.filters=e.pseudos,e.setFilters=new mt,s=at.tokenize=function(t,r){var n,i,o,s,a,u,l,c=A[t+" "];if(c)return r?0:c.slice(0);for(a=t,u=[],l=e.preFilter;a;){for(s in n&&!(i=q.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),n=!1,(i=H.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),a=a.slice(n.length)),e.filter)!(i=Y[s].exec(a))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return r?a.length:a?at.error(t):A(t,u).slice(0)},a=at.compile=function(t,r){var n,i=[],o=[],a=S[t+" "];if(!a){for(r||(r=s(t)),n=r.length;n--;)(a=Nt(r[n]))[y]?i.push(a):o.push(a);(a=S(t,function(t,r){var n=r.length>0,i=t.length>0,o=function(o,s,a,u,c){var f,d,E,b=0,m="0",g=o&&[],y=[],x=l,I=o||i&&e.find.TAG("*",c),N=T+=null==x?1:Math.random()||.1,A=I.length;for(c&&(l=s==p||s||c);m!==A&&null!=(f=I[m]);m++){if(i&&f){for(d=0,s||f.ownerDocument==p||(h(f),a=!v);E=t[d++];)if(E(f,s||p,a)){u.push(f);break}c&&(T=N)}n&&((f=!E&&f)&&b--,o&&g.push(f))}if(b+=m,n&&m!==b){for(d=0;E=r[d++];)E(g,y,s,a);if(o){if(b>0)for(;m--;)g[m]||y[m]||(y[m]=O.call(u));y=Tt(y)}k.apply(u,y),c&&!o&&y.length>0&&b+r.length>1&&at.uniqueSort(u)}return c&&(T=N,l=x),g};return n?lt(o):o}(o,i))).selector=t}return a},u=at.select=function(t,r,n,i){var o,u,l,c,f,h="function"==typeof t&&t,p=!i&&s(t=h.selector||t);if(n=n||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===r.nodeType&&v&&e.relative[u[1].type]){if(!(r=(e.find.ID(l.matches[0].replace(rt,nt),r)||[])[0]))return n;h&&(r=r.parentNode),t=t.slice(u.shift().value.length)}for(o=Y.needsContext.test(t)?0:u.length;o--&&!e.relative[c=(l=u[o]).type];)if((f=e.find[c])&&(i=f(l.matches[0].replace(rt,nt),tt.test(u[0].type)&&bt(r.parentNode)||r))){if(u.splice(o,1),!(t=i.length&>(u)))return k.apply(n,i),n;break}}return(h||a(t,p))(i,r,!v,n,!r||tt.test(t)&&bt(r.parentNode)||r),n},n.sortStable=y.split("").sort(C).join("")===y,n.detectDuplicates=!!f,h(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,r,n){if(!n)return t.getAttribute(r,"type"===r.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,r,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(M,(function(t,r,n){var e;if(!n)return!0===t[r]?r.toLowerCase():(e=t.getAttributeNode(r))&&e.specified?e.value:null})),at}(e);I.find=A,I.expr=A.selectors,I.expr[":"]=I.expr.pseudos,I.uniqueSort=I.unique=A.uniqueSort,I.text=A.getText,I.isXMLDoc=A.isXML,I.contains=A.contains,I.escapeSelector=A.escape;var S=function(t,r,n){for(var e=[],i=void 0!==n;(t=t[r])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&I(t).is(n))break;e.push(t)}return e},L=function(t,r){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==r&&n.push(t);return n},C=I.expr.match.needsContext;function R(t,r){return t.nodeName&&t.nodeName.toLowerCase()===r.toLowerCase()}var w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,r,n){return b(r)?I.grep(t,(function(t,e){return!!r.call(t,e,t)!==n})):r.nodeType?I.grep(t,(function(t){return t===r!==n})):"string"!=typeof r?I.grep(t,(function(t){return c.call(r,t)>-1!==n})):I.filter(r,t,n)}I.filter=function(t,r,n){var e=r[0];return n&&(t=":not("+t+")"),1===r.length&&1===e.nodeType?I.find.matchesSelector(e,t)?[e]:[]:I.find.matches(t,I.grep(r,(function(t){return 1===t.nodeType})))},I.fn.extend({find:function(t){var r,n,e=this.length,i=this;if("string"!=typeof t)return this.pushStack(I(t).filter((function(){for(r=0;r<e;r++)if(I.contains(i[r],this))return!0})));for(n=this.pushStack([]),r=0;r<e;r++)I.find(t,i[r],n);return e>1?I.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&C.test(t)?I(t):t||[],!1).length}});var _,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(I.fn.init=function(t,r,n){var e,i;if(!t)return this;if(n=n||_,"string"==typeof t){if(!(e="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:k.exec(t))||!e[1]&&r)return!r||r.jquery?(r||n).find(t):this.constructor(r).find(t);if(e[1]){if(I.merge(this,I.parseHTML(e[1],(r=r instanceof I?r[0]:r)&&r.nodeType?r.ownerDocument||r:g,!0)),w.test(e[1])&&I.isPlainObject(r))for(e in r)b(this[e])?this[e](r[e]):this.attr(e,r[e]);return this}return(i=g.getElementById(e[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(I):I.makeArray(t,this)}).prototype=I.fn,_=I(g);var P=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function M(t,r){for(;(t=t[r])&&1!==t.nodeType;);return t}I.fn.extend({has:function(t){var r=I(t,this),n=r.length;return this.filter((function(){for(var t=0;t<n;t++)if(I.contains(this,r[t]))return!0}))},closest:function(t,r){var n,e=0,i=this.length,o=[],s="string"!=typeof t&&I(t);if(!C.test(t))for(;e<i;e++)for(n=this[e];n&&n!==r;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&I.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?I.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(I(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,r){return this.pushStack(I.uniqueSort(I.merge(this.get(),I(t,r))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),I.each({parent:function(t){var r=t.parentNode;return r&&11!==r.nodeType?r:null},parents:function(t){return S(t,"parentNode")},parentsUntil:function(t,r,n){return S(t,"parentNode",n)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,r,n){return S(t,"nextSibling",n)},prevUntil:function(t,r,n){return S(t,"previousSibling",n)},siblings:function(t){return L((t.parentNode||{}).firstChild,t)},children:function(t){return L(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(R(t,"template")&&(t=t.content||t),I.merge([],t.childNodes))}},(function(t,r){I.fn[t]=function(n,e){var i=I.map(this,r,n);return"Until"!==t.slice(-5)&&(e=n),e&&"string"==typeof e&&(i=I.filter(e,i)),this.length>1&&(D[t]||I.uniqueSort(i),P.test(t)&&i.reverse()),this.pushStack(i)}}));var j=/[^\x20\t\r\n\f]+/g;function G(t){return t}function F(t){throw t}function U(t,r,n,e){var i;try{t&&b(i=t.promise)?i.call(t).done(r).fail(n):t&&b(i=t.then)?i.call(t,r,n):r.apply(void 0,[t].slice(e))}catch(t){n.apply(void 0,[t])}}I.Callbacks=function(t){t="string"==typeof t?function(t){var r={};return I.each(t.match(j)||[],(function(t,n){r[n]=!0})),r}(t):I.extend({},t);var r,n,e,i,o=[],s=[],a=-1,u=function(){for(i=i||t.once,e=r=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),r=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!r&&(a=o.length-1,s.push(n)),function r(n){I.each(n,(function(n,e){b(e)?t.unique&&l.has(e)||o.push(e):e&&e.length&&"string"!==T(e)&&r(e)}))}(arguments),n&&!r&&u()),this},remove:function(){return I.each(arguments,(function(t,r){for(var n;(n=I.inArray(r,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?I.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||r||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),r||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!e}};return l},I.extend({Deferred:function(t){var r=[["notify","progress",I.Callbacks("memory"),I.Callbacks("memory"),2],["resolve","done",I.Callbacks("once memory"),I.Callbacks("once memory"),0,"resolved"],["reject","fail",I.Callbacks("once memory"),I.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return I.Deferred((function(n){I.each(r,(function(r,e){var i=b(t[e[4]])&&t[e[4]];o[e[1]]((function(){var t=i&&i.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var o=0;function s(t,r,n,i){return function(){var a=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=n.apply(a,u))===r.promise())throw new TypeError("Thenable self-resolution");b(l=e&&("object"==typeof e||"function"==typeof e)&&e.then)?i?l.call(e,s(o,r,G,i),s(o,r,F,i)):(o++,l.call(e,s(o,r,G,i),s(o,r,F,i),s(o,r,G,r.notifyWith))):(n!==G&&(a=void 0,u=[e]),(i||r.resolveWith)(a,u))}},c=i?l:function(){try{l()}catch(e){I.Deferred.exceptionHook&&I.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(n!==F&&(a=void 0,u=[e]),r.rejectWith(a,u))}};t?c():(I.Deferred.getStackHook&&(c.stackTrace=I.Deferred.getStackHook()),e.setTimeout(c))}}return I.Deferred((function(e){r[0][3].add(s(0,e,b(i)?i:G,e.notifyWith)),r[1][3].add(s(0,e,b(t)?t:G)),r[2][3].add(s(0,e,b(n)?n:F))})).promise()},promise:function(t){return null!=t?I.extend(t,i):i}},o={};return I.each(r,(function(t,e){var s=e[2],a=e[5];i[e[1]]=s.add,a&&s.add((function(){n=a}),r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),s.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=s.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var r=arguments.length,n=r,e=Array(n),i=a.call(arguments),o=I.Deferred(),s=function(t){return function(n){e[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--r||o.resolveWith(e,i)}};if(r<=1&&(U(t,o.done(s(n)).resolve,o.reject,!r),"pending"===o.state()||b(i[n]&&i[n].then)))return o.then();for(;n--;)U(i[n],s(n),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;I.Deferred.exceptionHook=function(t,r){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,r)},I.readyException=function(t){e.setTimeout((function(){throw t}))};var V=I.Deferred();function q(){g.removeEventListener("DOMContentLoaded",q),e.removeEventListener("load",q),I.ready()}I.fn.ready=function(t){return V.then(t).catch((function(t){I.readyException(t)})),this},I.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--I.readyWait:I.isReady)||(I.isReady=!0,!0!==t&&--I.readyWait>0||V.resolveWith(g,[I]))}}),I.ready.then=V.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(I.ready):(g.addEventListener("DOMContentLoaded",q),e.addEventListener("load",q));var H=function(t,r,n,e,i,o,s){var a=0,u=t.length,l=null==n;if("object"===T(n))for(a in i=!0,n)H(t,r,a,n[a],!0,o,s);else if(void 0!==e&&(i=!0,b(e)||(s=!0),l&&(s?(r.call(t,e),r=null):(l=r,r=function(t,r,n){return l.call(I(t),n)})),r))for(;a<u;a++)r(t[a],n,s?e:e.call(t[a],a,r(t[a],n)));return i?t:l?r.call(t):u?r(t[0],n):o},z=/^-ms-/,$=/-([a-z])/g;function W(t,r){return r.toUpperCase()}function Y(t){return t.replace(z,"ms-").replace($,W)}var X=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Z(){this.expando=I.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var r=t[this.expando];return r||(r={},X(t)&&(t.nodeType?t[this.expando]=r:Object.defineProperty(t,this.expando,{value:r,configurable:!0}))),r},set:function(t,r,n){var e,i=this.cache(t);if("string"==typeof r)i[Y(r)]=n;else for(e in r)i[Y(e)]=r[e];return i},get:function(t,r){return void 0===r?this.cache(t):t[this.expando]&&t[this.expando][Y(r)]},access:function(t,r,n){return void 0===r||r&&"string"==typeof r&&void 0===n?this.get(t,r):(this.set(t,r,n),void 0!==n?n:r)},remove:function(t,r){var n,e=t[this.expando];if(void 0!==e){if(void 0!==r){n=(r=Array.isArray(r)?r.map(Y):(r=Y(r))in e?[r]:r.match(j)||[]).length;for(;n--;)delete e[r[n]]}(void 0===r||I.isEmptyObject(e))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var r=t[this.expando];return void 0!==r&&!I.isEmptyObject(r)}};var Q=new Z,K=new Z,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function rt(t,r,n){var e;if(void 0===n&&1===t.nodeType)if(e="data-"+r.replace(tt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(e))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:J.test(t)?JSON.parse(t):t)}(n)}catch(t){}K.set(t,r,n)}else n=void 0;return n}I.extend({hasData:function(t){return K.hasData(t)||Q.hasData(t)},data:function(t,r,n){return K.access(t,r,n)},removeData:function(t,r){K.remove(t,r)},_data:function(t,r,n){return Q.access(t,r,n)},_removeData:function(t,r){Q.remove(t,r)}}),I.fn.extend({data:function(t,r){var n,e,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=K.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(e=s[n].name).indexOf("data-")&&(e=Y(e.slice(5)),rt(o,e,i[e]));Q.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){K.set(this,t)})):H(this,(function(r){var n;if(o&&void 0===r)return void 0!==(n=K.get(o,t))||void 0!==(n=rt(o,t))?n:void 0;this.each((function(){K.set(this,t,r)}))}),null,r,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),I.extend({queue:function(t,r,n){var e;if(t)return e=Q.get(t,r=(r||"fx")+"queue"),n&&(!e||Array.isArray(n)?e=Q.access(t,r,I.makeArray(n)):e.push(n)),e||[]},dequeue:function(t,r){var n=I.queue(t,r=r||"fx"),e=n.length,i=n.shift(),o=I._queueHooks(t,r);"inprogress"===i&&(i=n.shift(),e--),i&&("fx"===r&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){I.dequeue(t,r)}),o)),!e&&o&&o.empty.fire()},_queueHooks:function(t,r){var n=r+"queueHooks";return Q.get(t,n)||Q.access(t,n,{empty:I.Callbacks("once memory").add((function(){Q.remove(t,[r+"queue",n])}))})}}),I.fn.extend({queue:function(t,r){var n=2;return"string"!=typeof t&&(r=t,t="fx",n--),arguments.length<n?I.queue(this[0],t):void 0===r?this:this.each((function(){var n=I.queue(this,t,r);I._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&I.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){I.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,r){var n,e=1,i=I.Deferred(),o=this,s=this.length,a=function(){--e||i.resolveWith(o,[o])};for("string"!=typeof t&&(r=t,t=void 0),t=t||"fx";s--;)(n=Q.get(o[s],t+"queueHooks"))&&n.empty&&(e++,n.empty.add(a));return a(),i.promise(r)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],ot=g.documentElement,st=function(t){return I.contains(t.ownerDocument,t)},at={composed:!0};ot.getRootNode&&(st=function(t){return I.contains(t.ownerDocument,t)||t.getRootNode(at)===t.ownerDocument});var ut=function(t,r){return"none"===(t=r||t).style.display||""===t.style.display&&st(t)&&"none"===I.css(t,"display")};function lt(t,r,n,e){var i,o,s=20,a=e?function(){return e.cur()}:function(){return I.css(t,r,"")},u=a(),l=n&&n[3]||(I.cssNumber[r]?"":"px"),c=t.nodeType&&(I.cssNumber[r]||"px"!==l&&+u)&&et.exec(I.css(t,r));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;s--;)I.style(t,r,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;I.style(t,r,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],e&&(e.unit=l,e.start=c,e.end=i)),i}var ct={};function ft(t){var r,n=t.ownerDocument,e=t.nodeName,i=ct[e];return i||(r=n.body.appendChild(n.createElement(e)),i=I.css(r,"display"),r.parentNode.removeChild(r),"none"===i&&(i="block"),ct[e]=i,i)}function ht(t,r){for(var n,e,i=[],o=0,s=t.length;o<s;o++)(e=t[o]).style&&(n=e.style.display,r?("none"===n&&(i[o]=Q.get(e,"display")||null,i[o]||(e.style.display="")),""===e.style.display&&ut(e)&&(i[o]=ft(e))):"none"!==n&&(i[o]="none",Q.set(e,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}I.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?I(this).show():I(this).hide()}))}});var pt,dt,vt=/^(?:checkbox|radio)$/i,Et=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,bt=/^$|^module$|\/(?:java|ecma)script/i;pt=g.createDocumentFragment().appendChild(g.createElement("div")),(dt=g.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),pt.appendChild(dt),E.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",E.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue,pt.innerHTML="<option></option>",E.option=!!pt.lastChild;var mt={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 gt(t,r){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(r||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(r||"*"):[],void 0===r||r&&R(t,r)?I.merge([t],n):n}function yt(t,r){for(var n=0,e=t.length;n<e;n++)Q.set(t[n],"globalEval",!r||Q.get(r[n],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,E.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var xt=/<|&#?\w+;/;function Tt(t,r,n,e,i){for(var o,s,a,u,l,c,f=r.createDocumentFragment(),h=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===T(o))I.merge(h,o.nodeType?[o]:o);else if(xt.test(o)){for(s=s||f.appendChild(r.createElement("div")),a=(Et.exec(o)||["",""])[1].toLowerCase(),s.innerHTML=(u=mt[a]||mt._default)[1]+I.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;I.merge(h,s.childNodes),(s=f.firstChild).textContent=""}else h.push(r.createTextNode(o));for(f.textContent="",p=0;o=h[p++];)if(e&&I.inArray(o,e)>-1)i&&i.push(o);else if(l=st(o),s=gt(f.appendChild(o),"script"),l&&yt(s),n)for(c=0;o=s[c++];)bt.test(o.type||"")&&n.push(o);return f}var It=/^key/,Nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function Lt(){return!1}function Ct(t,r){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===r)}function Rt(t,r,n,e,i,o){var s,a;if("object"==typeof r){for(a in"string"!=typeof n&&(e=e||n,n=void 0),r)Rt(t,a,n,e,r[a],o);return t}if(null==e&&null==i?(i=n,e=n=void 0):null==i&&("string"==typeof n?(i=e,e=void 0):(i=e,e=n,n=void 0)),!1===i)i=Lt;else if(!i)return t;return 1===o&&(s=i,(i=function(t){return I().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=I.guid++)),t.each((function(){I.event.add(this,r,i,e,n)}))}function wt(t,r,n){n?(Q.set(t,r,!1),I.event.add(t,r,{namespace:!1,handler:function(t){var e,i,o=Q.get(this,r);if(1&t.isTrigger&&this[r]){if(o.length)(I.event.special[r]||{}).delegateType&&t.stopPropagation();else if(o=a.call(arguments),Q.set(this,r,o),e=n(this,r),this[r](),o!==(i=Q.get(this,r))||e?Q.set(this,r,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else o.length&&(Q.set(this,r,{value:I.event.trigger(I.extend(o[0],I.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,r)&&I.event.add(t,r,St)}I.event={global:{},add:function(t,r,n,e,i){var o,s,a,u,l,c,f,h,p,d,v,E=Q.get(t);if(X(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&I.find.matchesSelector(ot,i),n.guid||(n.guid=I.guid++),(u=E.events)||(u=E.events=Object.create(null)),(s=E.handle)||(s=E.handle=function(r){return void 0!==I&&I.event.triggered!==r.type?I.event.dispatch.apply(t,arguments):void 0}),l=(r=(r||"").match(j)||[""]).length;l--;)p=v=(a=At.exec(r[l])||[])[1],d=(a[2]||"").split(".").sort(),p&&(f=I.event.special[p]||{},f=I.event.special[p=(i?f.delegateType:f.bindType)||p]||{},c=I.extend({type:p,origType:v,data:e,handler:n,guid:n.guid,selector:i,needsContext:i&&I.expr.match.needsContext.test(i),namespace:d.join(".")},o),(h=u[p])||((h=u[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,e,d,s)||t.addEventListener&&t.addEventListener(p,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),I.event.global[p]=!0)},remove:function(t,r,n,e,i){var o,s,a,u,l,c,f,h,p,d,v,E=Q.hasData(t)&&Q.get(t);if(E&&(u=E.events)){for(l=(r=(r||"").match(j)||[""]).length;l--;)if(p=v=(a=At.exec(r[l])||[])[1],d=(a[2]||"").split(".").sort(),p){for(f=I.event.special[p]||{},h=u[p=(e?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!i&&v!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||e&&e!==c.selector&&("**"!==e||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(t,c));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(t,d,E.handle)||I.removeEvent(t,p,E.handle),delete u[p])}else for(p in u)I.event.remove(t,p+r[l],n,e,!0);I.isEmptyObject(u)&&Q.remove(t,"handle events")}},dispatch:function(t){var r,n,e,i,o,s,a=new Array(arguments.length),u=I.event.fix(t),l=(Q.get(this,"events")||Object.create(null))[u.type]||[],c=I.event.special[u.type]||{};for(a[0]=u,r=1;r<arguments.length;r++)a[r]=arguments[r];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(s=I.event.handlers.call(this,u,l),r=0;(i=s[r++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(e=((I.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(u.result=e)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,r){var n,e,i,o,s,a=[],u=r.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],s={},n=0;n<u;n++)void 0===s[i=(e=r[n]).selector+" "]&&(s[i]=e.needsContext?I(i,this).index(l)>-1:I.find(i,this,null,[l]).length),s[i]&&o.push(e);o.length&&a.push({elem:l,handlers:o})}return l=this,u<r.length&&a.push({elem:l,handlers:r.slice(u)}),a},addProp:function(t,r){Object.defineProperty(I.Event.prototype,t,{enumerable:!0,configurable:!0,get:b(r)?function(){if(this.originalEvent)return r(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(r){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}})},fix:function(t){return t[I.expando]?t:new I.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var r=this||t;return vt.test(r.type)&&r.click&&R(r,"input")&&wt(r,"click",St),!1},trigger:function(t){var r=this||t;return vt.test(r.type)&&r.click&&R(r,"input")&&wt(r,"click"),!0},_default:function(t){var r=t.target;return vt.test(r.type)&&r.click&&R(r,"input")&&Q.get(r,"click")||R(r,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},I.removeEvent=function(t,r,n){t.removeEventListener&&t.removeEventListener(r,n)},I.Event=function(t,r){if(!(this instanceof I.Event))return new I.Event(t,r);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?St:Lt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,r&&I.extend(this,r),this.timeStamp=t&&t.timeStamp||Date.now(),this[I.expando]=!0},I.Event.prototype={constructor:I.Event,isDefaultPrevented:Lt,isPropagationStopped:Lt,isImmediatePropagationStopped:Lt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=St,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=St,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=St,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},I.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(t){var r=t.button;return null==t.which&&It.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==r&&Nt.test(t.type)?1&r?1:2&r?3:4&r?2:0:t.which}},I.event.addProp),I.each({focus:"focusin",blur:"focusout"},(function(t,r){I.event.special[t]={setup:function(){return wt(this,t,Ct),!1},trigger:function(){return wt(this,t),!0},delegateType:r}})),I.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,r){I.event.special[t]={delegateType:r,bindType:r,handle:function(t){var n,e=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===e||I.contains(e,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=r),n}}})),I.fn.extend({on:function(t,r,n,e){return Rt(this,t,r,n,e)},one:function(t,r,n,e){return Rt(this,t,r,n,e,1)},off:function(t,r,n){var e,i;if(t&&t.preventDefault&&t.handleObj)return e=t.handleObj,I(t.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if("object"==typeof t){for(i in t)this.off(i,r,t[i]);return this}return!1!==r&&"function"!=typeof r||(n=r,r=void 0),!1===n&&(n=Lt),this.each((function(){I.event.remove(this,t,n,r)}))}});var Ot=/<script|<style|<link/i,_t=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pt(t,r){return R(t,"table")&&R(11!==r.nodeType?r:r.firstChild,"tr")&&I(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function jt(t,r){var n,e,i,o,s,a;if(1===r.nodeType){if(Q.hasData(t)&&(a=Q.get(t).events))for(i in Q.remove(r,"handle events"),a)for(n=0,e=a[i].length;n<e;n++)I.event.add(r,i,a[i][n]);K.hasData(t)&&(o=K.access(t),s=I.extend({},o),K.set(r,s))}}function Gt(t,r){var n=r.nodeName.toLowerCase();"input"===n&&vt.test(t.type)?r.checked=t.checked:"input"!==n&&"textarea"!==n||(r.defaultValue=t.defaultValue)}function Ft(t,r,n,e){r=u(r);var i,o,s,a,l,c,f=0,h=t.length,p=h-1,d=r[0],v=b(d);if(v||h>1&&"string"==typeof d&&!E.checkClone&&_t.test(d))return t.each((function(i){var o=t.eq(i);v&&(r[0]=d.call(this,i,o.html())),Ft(o,r,n,e)}));if(h&&(o=(i=Tt(r,t[0].ownerDocument,!1,t,e)).firstChild,1===i.childNodes.length&&(i=o),o||e)){for(a=(s=I.map(gt(i,"script"),Dt)).length;f<h;f++)l=i,f!==p&&(l=I.clone(l,!0,!0),a&&I.merge(s,gt(l,"script"))),n.call(t[f],l,f);if(a)for(c=s[s.length-1].ownerDocument,I.map(s,Mt),f=0;f<a;f++)bt.test((l=s[f]).type||"")&&!Q.access(l,"globalEval")&&I.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?I._evalUrl&&!l.noModule&&I._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):x(l.textContent.replace(kt,""),l,c))}return t}function Ut(t,r,n){for(var e,i=r?I.filter(r,t):t,o=0;null!=(e=i[o]);o++)n||1!==e.nodeType||I.cleanData(gt(e)),e.parentNode&&(n&&st(e)&&yt(gt(e,"script")),e.parentNode.removeChild(e));return t}I.extend({htmlPrefilter:function(t){return t},clone:function(t,r,n){var e,i,o,s,a=t.cloneNode(!0),u=st(t);if(!(E.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||I.isXMLDoc(t)))for(s=gt(a),e=0,i=(o=gt(t)).length;e<i;e++)Gt(o[e],s[e]);if(r)if(n)for(o=o||gt(t),s=s||gt(a),e=0,i=o.length;e<i;e++)jt(o[e],s[e]);else jt(t,a);return(s=gt(a,"script")).length>0&&yt(s,!u&>(t,"script")),a},cleanData:function(t){for(var r,n,e,i=I.event.special,o=0;void 0!==(n=t[o]);o++)if(X(n)){if(r=n[Q.expando]){if(r.events)for(e in r.events)i[e]?I.event.remove(n,e):I.removeEvent(n,e,r.handle);n[Q.expando]=void 0}n[K.expando]&&(n[K.expando]=void 0)}}}),I.fn.extend({detach:function(t){return Ut(this,t,!0)},remove:function(t){return Ut(this,t)},text:function(t){return H(this,(function(t){return void 0===t?I.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Ft(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)}))},prepend:function(){return Ft(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var r=Pt(this,t);r.insertBefore(t,r.firstChild)}}))},before:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ft(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,r=0;null!=(t=this[r]);r++)1===t.nodeType&&(I.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,r){return t=null!=t&&t,r=null==r?t:r,this.map((function(){return I.clone(this,t,r)}))},html:function(t){return H(this,(function(t){var r=this[0]||{},n=0,e=this.length;if(void 0===t&&1===r.nodeType)return r.innerHTML;if("string"==typeof t&&!Ot.test(t)&&!mt[(Et.exec(t)||["",""])[1].toLowerCase()]){t=I.htmlPrefilter(t);try{for(;n<e;n++)1===(r=this[n]||{}).nodeType&&(I.cleanData(gt(r,!1)),r.innerHTML=t);r=0}catch(t){}}r&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Ft(this,arguments,(function(r){var n=this.parentNode;I.inArray(this,t)<0&&(I.cleanData(gt(this)),n&&n.replaceChild(r,this))}),t)}}),I.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,r){I.fn[t]=function(t){for(var n,e=[],i=I(t),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),I(i[s])[r](n),l.apply(e,n.get());return this.pushStack(e)}}));var Bt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Vt=function(t){var r=t.ownerDocument.defaultView;return r&&r.opener||(r=e),r.getComputedStyle(t)},qt=function(t,r,n){var e,i,o={};for(i in r)o[i]=t.style[i],t.style[i]=r[i];for(i in e=n.call(t),r)t.style[i]=o[i];return e},Ht=new RegExp(it.join("|"),"i");function zt(t,r,n){var e,i,o,s,a=t.style;return(n=n||Vt(t))&&(""!==(s=n.getPropertyValue(r)||n[r])||st(t)||(s=I.style(t,r)),!E.pixelBoxStyles()&&Bt.test(s)&&Ht.test(r)&&(e=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=e,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function $t(t,r){return{get:function(){if(!t())return(this.get=r).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);n="1%"!==t.top,u=12===r(t.marginLeft),c.style.right="60%",s=36===r(t.right),i=36===r(t.width),c.style.position="absolute",o=12===r(c.offsetWidth/3),ot.removeChild(l),c=null}}function r(t){return Math.round(parseFloat(t))}var n,i,o,s,a,u,l=g.createElement("div"),c=g.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",E.clearCloneStyle="content-box"===c.style.backgroundClip,I.extend(E,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,r,n,i;return null==a&&(t=g.createElement("table"),r=g.createElement("tr"),n=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px",r.style.height="1px",n.style.height="9px",ot.appendChild(t).appendChild(r).appendChild(n),i=e.getComputedStyle(r),a=parseInt(i.height)>3,ot.removeChild(t)),a}}))}();var Wt=["Webkit","Moz","ms"],Yt=g.createElement("div").style,Xt={};function Zt(t){return I.cssProps[t]||Xt[t]||(t in Yt?t:Xt[t]=function(t){for(var r=t[0].toUpperCase()+t.slice(1),n=Wt.length;n--;)if((t=Wt[n]+r)in Yt)return t}(t)||t)}var Qt=/^(none|table(?!-c[ea]).+)/,Kt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},tr={letterSpacing:"0",fontWeight:"400"};function rr(t,r,n){var e=et.exec(r);return e?Math.max(0,e[2]-(n||0))+(e[3]||"px"):r}function nr(t,r,n,e,i,o){var s="width"===r?1:0,a=0,u=0;if(n===(e?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=I.css(t,n+it[s],!0,i)),e?("content"===n&&(u-=I.css(t,"padding"+it[s],!0,i)),"margin"!==n&&(u-=I.css(t,"border"+it[s]+"Width",!0,i))):(u+=I.css(t,"padding"+it[s],!0,i),"padding"!==n?u+=I.css(t,"border"+it[s]+"Width",!0,i):a+=I.css(t,"border"+it[s]+"Width",!0,i));return!e&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+r[0].toUpperCase()+r.slice(1)]-o-u-a-.5))||0),u}function er(t,r,n){var e=Vt(t),i=(!E.boxSizingReliable()||n)&&"border-box"===I.css(t,"boxSizing",!1,e),o=i,s=zt(t,r,e),a="offset"+r[0].toUpperCase()+r.slice(1);if(Bt.test(s)){if(!n)return s;s="auto"}return(!E.boxSizingReliable()&&i||!E.reliableTrDimensions()&&R(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===I.css(t,"display",!1,e))&&t.getClientRects().length&&(i="border-box"===I.css(t,"boxSizing",!1,e),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+nr(t,r,n||(i?"border":"content"),o,e,s)+"px"}function ir(t,r,n,e,i){return new ir.prototype.init(t,r,n,e,i)}I.extend({cssHooks:{opacity:{get:function(t,r){if(r){var n=zt(t,"opacity");return""===n?"1":n}}}},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(t,r,n,e){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=Y(r),u=Kt.test(r),l=t.style;if(u||(r=Zt(a)),s=I.cssHooks[r]||I.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,e))?i:l[r];"string"==(o=typeof n)&&(i=et.exec(n))&&i[1]&&(n=lt(t,r,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(I.cssNumber[a]?"":"px")),E.clearCloneStyle||""!==n||0!==r.indexOf("background")||(l[r]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,e))||(u?l.setProperty(r,n):l[r]=n))}},css:function(t,r,n,e){var i,o,s,a=Y(r);return Kt.test(r)||(r=Zt(a)),(s=I.cssHooks[r]||I.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=zt(t,r,e)),"normal"===i&&r in tr&&(i=tr[r]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),I.each(["height","width"],(function(t,r){I.cssHooks[r]={get:function(t,n,e){if(n)return!Qt.test(I.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?er(t,r,e):qt(t,Jt,(function(){return er(t,r,e)}))},set:function(t,n,e){var i,o=Vt(t),s=!E.scrollboxSize()&&"absolute"===o.position,a=(s||e)&&"border-box"===I.css(t,"boxSizing",!1,o),u=e?nr(t,r,e,a,o):0;return a&&s&&(u-=Math.ceil(t["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(o[r])-nr(t,r,"border",!1,o)-.5)),u&&(i=et.exec(n))&&"px"!==(i[3]||"px")&&(t.style[r]=n,n=I.css(t,r)),rr(0,n,u)}}})),I.cssHooks.marginLeft=$t(E.reliableMarginLeft,(function(t,r){if(r)return(parseFloat(zt(t,"marginLeft"))||t.getBoundingClientRect().left-qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),I.each({margin:"",padding:"",border:"Width"},(function(t,r){I.cssHooks[t+r]={expand:function(n){for(var e=0,i={},o="string"==typeof n?n.split(" "):[n];e<4;e++)i[t+it[e]+r]=o[e]||o[e-2]||o[0];return i}},"margin"!==t&&(I.cssHooks[t+r].set=rr)})),I.fn.extend({css:function(t,r){return H(this,(function(t,r,n){var e,i,o={},s=0;if(Array.isArray(r)){for(e=Vt(t),i=r.length;s<i;s++)o[r[s]]=I.css(t,r[s],!1,e);return o}return void 0!==n?I.style(t,r,n):I.css(t,r)}),t,r,arguments.length>1)}}),I.Tween=ir,(ir.prototype={constructor:ir,init:function(t,r,n,e,i,o){this.elem=t,this.prop=n,this.easing=i||I.easing._default,this.options=r,this.start=this.now=this.cur(),this.end=e,this.unit=o||(I.cssNumber[n]?"":"px")},cur:function(){var t=ir.propHooks[this.prop];return t&&t.get?t.get(this):ir.propHooks._default.get(this)},run:function(t){var r,n=ir.propHooks[this.prop];return this.pos=r=this.options.duration?I.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ir.propHooks._default.set(this),this}}).init.prototype=ir.prototype,(ir.propHooks={_default:{get:function(t){var r;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(r=I.css(t.elem,t.prop,""))&&"auto"!==r?r:0},set:function(t){I.fx.step[t.prop]?I.fx.step[t.prop](t):1!==t.elem.nodeType||!I.cssHooks[t.prop]&&null==t.elem.style[Zt(t.prop)]?t.elem[t.prop]=t.now:I.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=ir.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},I.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},I.fx=ir.prototype.init,I.fx.step={};var or,sr,ar=/^(?:toggle|show|hide)$/,ur=/queueHooks$/;function lr(){sr&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(lr):e.setTimeout(lr,I.fx.interval),I.fx.tick())}function cr(){return e.setTimeout((function(){or=void 0})),or=Date.now()}function fr(t,r){var n,e=0,i={height:t};for(r=r?1:0;e<4;e+=2-r)i["margin"+(n=it[e])]=i["padding"+n]=t;return r&&(i.opacity=i.width=t),i}function hr(t,r,n){for(var e,i=(pr.tweeners[r]||[]).concat(pr.tweeners["*"]),o=0,s=i.length;o<s;o++)if(e=i[o].call(n,r,t))return e}function pr(t,r,n){var e,i,o=0,s=pr.prefilters.length,a=I.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var r=or||cr(),n=Math.max(0,l.startTime+l.duration-r),e=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(e);return a.notifyWith(t,[l,e,n]),e<1&&s?n:(s||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:I.extend({},r),opts:I.extend(!0,{specialEasing:{},easing:I.easing._default},n),originalProperties:r,originalOptions:n,startTime:or||cr(),duration:n.duration,tweens:[],createTween:function(r,n){var e=I.Tween(t,l.opts,r,n,l.opts.specialEasing[r]||l.opts.easing);return l.tweens.push(e),e},stop:function(r){var n=0,e=r?l.tweens.length:0;if(i)return this;for(i=!0;n<e;n++)l.tweens[n].run(1);return r?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,r])):a.rejectWith(t,[l,r]),this}}),c=l.props;for(function(t,r){var n,e,i,o,s;for(n in t)if(i=r[e=Y(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==e&&(t[e]=o,delete t[n]),(s=I.cssHooks[e])&&"expand"in s)for(n in o=s.expand(o),delete t[e],o)n in t||(t[n]=o[n],r[n]=i);else r[e]=i}(c,l.opts.specialEasing);o<s;o++)if(e=pr.prefilters[o].call(l,t,c,l.opts))return b(e.stop)&&(I._queueHooks(l.elem,l.opts.queue).stop=e.stop.bind(e)),e;return I.map(c,hr,l),b(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),I.fx.timer(I.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}I.Animation=I.extend(pr,{tweeners:{"*":[function(t,r){var n=this.createTween(t,r);return lt(n.elem,t,et.exec(r),n),n}]},tweener:function(t,r){b(t)?(r=t,t=["*"]):t=t.match(j);for(var n,e=0,i=t.length;e<i;e++)(pr.tweeners[n=t[e]]=pr.tweeners[n]||[]).unshift(r)},prefilters:[function(t,r,n){var e,i,o,s,a,u,l,c,f="width"in r||"height"in r,h=this,p={},d=t.style,v=t.nodeType&&ut(t),E=Q.get(t,"fxshow");for(e in n.queue||(null==(s=I._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,I.queue(t,"fx").length||s.empty.fire()}))}))),r)if(ar.test(i=r[e])){if(delete r[e],o=o||"toggle"===i,i===(v?"hide":"show")){if("show"!==i||!E||void 0===E[e])continue;v=!0}p[e]=E&&E[e]||I.style(t,e)}if((u=!I.isEmptyObject(r))||!I.isEmptyObject(p))for(e in f&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(l=E&&E.display)&&(l=Q.get(t,"display")),"none"===(c=I.css(t,"display"))&&(l?c=l:(ht([t],!0),l=t.style.display||l,c=I.css(t,"display"),ht([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===I.css(t,"float")&&(u||(h.done((function(){d.display=l})),null==l&&(l="none"===(c=d.display)?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always((function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}))),u=!1,p)u||(E?"hidden"in E&&(v=E.hidden):E=Q.access(t,"fxshow",{display:l}),o&&(E.hidden=!v),v&&ht([t],!0),h.done((function(){for(e in v||ht([t]),Q.remove(t,"fxshow"),p)I.style(t,e,p[e])}))),u=hr(v?E[e]:0,e,h),e in E||(E[e]=u.start,v&&(u.end=u.start,u.start=0))}],prefilter:function(t,r){r?pr.prefilters.unshift(t):pr.prefilters.push(t)}}),I.speed=function(t,r,n){var e=t&&"object"==typeof t?I.extend({},t):{complete:n||!n&&r||b(t)&&t,duration:t,easing:n&&r||r&&!b(r)&&r};return I.fx.off?e.duration=0:"number"!=typeof e.duration&&(e.duration=e.duration in I.fx.speeds?I.fx.speeds[e.duration]:I.fx.speeds._default),null!=e.queue&&!0!==e.queue||(e.queue="fx"),e.old=e.complete,e.complete=function(){b(e.old)&&e.old.call(this),e.queue&&I.dequeue(this,e.queue)},e},I.fn.extend({fadeTo:function(t,r,n,e){return this.filter(ut).css("opacity",0).show().end().animate({opacity:r},t,n,e)},animate:function(t,r,n,e){var i=I.isEmptyObject(t),o=I.speed(r,n,e),s=function(){var r=pr(this,I.extend({},t),o);(i||Q.get(this,"finish"))&&r.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,r,n){var e=function(t){var r=t.stop;delete t.stop,r(n)};return"string"!=typeof t&&(n=r,r=t,t=void 0),r&&this.queue(t||"fx",[]),this.each((function(){var r=!0,i=null!=t&&t+"queueHooks",o=I.timers,s=Q.get(this);if(i)s[i]&&s[i].stop&&e(s[i]);else for(i in s)s[i]&&s[i].stop&&ur.test(i)&&e(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),r=!1,o.splice(i,1));!r&&n||I.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var r,n=Q.get(this),e=n[t+"queue"],i=n[t+"queueHooks"],o=I.timers,s=e?e.length:0;for(n.finish=!0,I.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),r=o.length;r--;)o[r].elem===this&&o[r].queue===t&&(o[r].anim.stop(!0),o.splice(r,1));for(r=0;r<s;r++)e[r]&&e[r].finish&&e[r].finish.call(this);delete n.finish}))}}),I.each(["toggle","show","hide"],(function(t,r){var n=I.fn[r];I.fn[r]=function(t,e,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fr(r,!0),t,e,i)}})),I.each({slideDown:fr("show"),slideUp:fr("hide"),slideToggle:fr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,r){I.fn[t]=function(t,n,e){return this.animate(r,t,n,e)}})),I.timers=[],I.fx.tick=function(){var t,r=0,n=I.timers;for(or=Date.now();r<n.length;r++)(t=n[r])()||n[r]!==t||n.splice(r--,1);n.length||I.fx.stop(),or=void 0},I.fx.timer=function(t){I.timers.push(t),I.fx.start()},I.fx.interval=13,I.fx.start=function(){sr||(sr=!0,lr())},I.fx.stop=function(){sr=null},I.fx.speeds={slow:600,fast:200,_default:400},I.fn.delay=function(t,r){return t=I.fx&&I.fx.speeds[t]||t,this.queue(r=r||"fx",(function(r,n){var i=e.setTimeout(r,t);n.stop=function(){e.clearTimeout(i)}}))},function(){var t=g.createElement("input"),r=g.createElement("select").appendChild(g.createElement("option"));t.type="checkbox",E.checkOn=""!==t.value,E.optSelected=r.selected,(t=g.createElement("input")).value="t",t.type="radio",E.radioValue="t"===t.value}();var dr,vr=I.expr.attrHandle;I.fn.extend({attr:function(t,r){return H(this,I.attr,t,r,arguments.length>1)},removeAttr:function(t){return this.each((function(){I.removeAttr(this,t)}))}}),I.extend({attr:function(t,r,n){var e,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?I.prop(t,r,n):(1===o&&I.isXMLDoc(t)||(i=I.attrHooks[r.toLowerCase()]||(I.expr.match.bool.test(r)?dr:void 0)),void 0!==n?null===n?void I.removeAttr(t,r):i&&"set"in i&&void 0!==(e=i.set(t,n,r))?e:(t.setAttribute(r,n+""),n):i&&"get"in i&&null!==(e=i.get(t,r))?e:null==(e=I.find.attr(t,r))?void 0:e)},attrHooks:{type:{set:function(t,r){if(!E.radioValue&&"radio"===r&&R(t,"input")){var n=t.value;return t.setAttribute("type",r),n&&(t.value=n),r}}}},removeAttr:function(t,r){var n,e=0,i=r&&r.match(j);if(i&&1===t.nodeType)for(;n=i[e++];)t.removeAttribute(n)}}),dr={set:function(t,r,n){return!1===r?I.removeAttr(t,n):t.setAttribute(n,n),n}},I.each(I.expr.match.bool.source.match(/\w+/g),(function(t,r){var n=vr[r]||I.find.attr;vr[r]=function(t,r,e){var i,o,s=r.toLowerCase();return e||(o=vr[s],vr[s]=i,i=null!=n(t,r,e)?s:null,vr[s]=o),i}}));var Er=/^(?:input|select|textarea|button)$/i,br=/^(?:a|area)$/i;function mr(t){return(t.match(j)||[]).join(" ")}function gr(t){return t.getAttribute&&t.getAttribute("class")||""}function yr(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(j)||[]}I.fn.extend({prop:function(t,r){return H(this,I.prop,t,r,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[I.propFix[t]||t]}))}}),I.extend({prop:function(t,r,n){var e,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&I.isXMLDoc(t)||(i=I.propHooks[r=I.propFix[r]||r]),void 0!==n?i&&"set"in i&&void 0!==(e=i.set(t,n,r))?e:t[r]=n:i&&"get"in i&&null!==(e=i.get(t,r))?e:t[r]},propHooks:{tabIndex:{get:function(t){var r=I.find.attr(t,"tabindex");return r?parseInt(r,10):Er.test(t.nodeName)||br.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),E.optSelected||(I.propHooks.selected={get:function(){return null},set:function(){}}),I.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){I.propFix[this.toLowerCase()]=this})),I.fn.extend({addClass:function(t){var r,n,e,i,o,s,a,u=0;if(b(t))return this.each((function(r){I(this).addClass(t.call(this,r,gr(this)))}));if((r=yr(t)).length)for(;n=this[u++];)if(i=gr(n),e=1===n.nodeType&&" "+mr(i)+" "){for(s=0;o=r[s++];)e.indexOf(" "+o+" ")<0&&(e+=o+" ");i!==(a=mr(e))&&n.setAttribute("class",a)}return this},removeClass:function(t){var r,n,e,i,o,s,a,u=0;if(b(t))return this.each((function(r){I(this).removeClass(t.call(this,r,gr(this)))}));if(!arguments.length)return this.attr("class","");if((r=yr(t)).length)for(;n=this[u++];)if(i=gr(n),e=1===n.nodeType&&" "+mr(i)+" "){for(s=0;o=r[s++];)for(;e.indexOf(" "+o+" ")>-1;)e=e.replace(" "+o+" "," ");i!==(a=mr(e))&&n.setAttribute("class",a)}return this},toggleClass:function(t,r){var n=typeof t,e="string"===n||Array.isArray(t);return"boolean"==typeof r&&e?r?this.addClass(t):this.removeClass(t):b(t)?this.each((function(n){I(this).toggleClass(t.call(this,n,gr(this),r),r)})):this.each((function(){var r,i,o,s;if(e)for(i=0,o=I(this),s=yr(t);r=s[i++];)o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==n||((r=gr(this))&&Q.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":Q.get(this,"__className__")||""))}))},hasClass:function(t){var r,n,e=0;for(r=" "+t+" ";n=this[e++];)if(1===n.nodeType&&(" "+mr(gr(n))+" ").indexOf(r)>-1)return!0;return!1}});var xr=/\r/g;I.fn.extend({val:function(t){var r,n,e,i=this[0];return arguments.length?(e=b(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=e?t.call(this,n,I(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=I.map(i,(function(t){return null==t?"":t+""}))),(r=I.valHooks[this.type]||I.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,i,"value")||(this.value=i))}))):i?(r=I.valHooks[i.type]||I.valHooks[i.nodeName.toLowerCase()])&&"get"in r&&void 0!==(n=r.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xr,""):null==n?"":n:void 0}}),I.extend({valHooks:{option:{get:function(t){var r=I.find.attr(t,"value");return null!=r?r:mr(I.text(t))}},select:{get:function(t){var r,n,e,i=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?o+1:i.length;for(e=o<0?u:s?o:0;e<u;e++)if(((n=i[e]).selected||e===o)&&!n.disabled&&(!n.parentNode.disabled||!R(n.parentNode,"optgroup"))){if(r=I(n).val(),s)return r;a.push(r)}return a},set:function(t,r){for(var n,e,i=t.options,o=I.makeArray(r),s=i.length;s--;)((e=i[s]).selected=I.inArray(I.valHooks.option.get(e),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),I.each(["radio","checkbox"],(function(){I.valHooks[this]={set:function(t,r){if(Array.isArray(r))return t.checked=I.inArray(I(t).val(),r)>-1}},E.checkOn||(I.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),E.focusin="onfocusin"in e;var Tr=/^(?:focusinfocus|focusoutblur)$/,Ir=function(t){t.stopPropagation()};I.extend(I.event,{trigger:function(t,r,n,i){var o,s,a,u,l,c,f,h,d=[n||g],v=p.call(t,"type")?t.type:t,E=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||g,3!==n.nodeType&&8!==n.nodeType&&!Tr.test(v+I.event.triggered)&&(v.indexOf(".")>-1&&(E=v.split("."),v=E.shift(),E.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[I.expando]?t:new I.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=E.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+E.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),r=null==r?[t]:I.makeArray(r,[t]),f=I.event.special[v]||{},i||!f.trigger||!1!==f.trigger.apply(n,r))){if(!i&&!f.noBubble&&!m(n)){for(Tr.test((u=f.delegateType||v)+v)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(n.ownerDocument||g)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?u:f.bindType||v,(c=(Q.get(s,"events")||Object.create(null))[t.type]&&Q.get(s,"handle"))&&c.apply(s,r),(c=l&&s[l])&&c.apply&&X(s)&&(t.result=c.apply(s,r),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(d.pop(),r)||!X(n)||l&&b(n[v])&&!m(n)&&((a=n[l])&&(n[l]=null),I.event.triggered=v,t.isPropagationStopped()&&h.addEventListener(v,Ir),n[v](),t.isPropagationStopped()&&h.removeEventListener(v,Ir),I.event.triggered=void 0,a&&(n[l]=a)),t.result}},simulate:function(t,r,n){var e=I.extend(new I.Event,n,{type:t,isSimulated:!0});I.event.trigger(e,null,r)}}),I.fn.extend({trigger:function(t,r){return this.each((function(){I.event.trigger(t,r,this)}))},triggerHandler:function(t,r){var n=this[0];if(n)return I.event.trigger(t,r,n,!0)}}),E.focusin||I.each({focus:"focusin",blur:"focusout"},(function(t,r){var n=function(t){I.event.simulate(r,t.target,I.event.fix(t))};I.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,i=Q.access(e,r);i||e.addEventListener(t,n,!0),Q.access(e,r,(i||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,i=Q.access(e,r)-1;i?Q.access(e,r,i):(e.removeEventListener(t,n,!0),Q.remove(e,r))}}}));var Nr=e.location,Ar={guid:Date.now()},Sr=/\?/;I.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||I.error("Invalid XML: "+t),r};var Lr=/\[\]$/,Cr=/\r?\n/g,Rr=/^(?:submit|button|image|reset|file)$/i,wr=/^(?:input|select|textarea|keygen)/i;function Or(t,r,n,e){var i;if(Array.isArray(r))I.each(r,(function(r,i){n||Lr.test(t)?e(t,i):Or(t+"["+("object"==typeof i&&null!=i?r:"")+"]",i,n,e)}));else if(n||"object"!==T(r))e(t,r);else for(i in r)Or(t+"["+i+"]",r[i],n,e)}I.param=function(t,r){var n,e=[],i=function(t,r){var n=b(r)?r():r;e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!I.isPlainObject(t))I.each(t,(function(){i(this.name,this.value)}));else for(n in t)Or(n,t[n],r,i);return e.join("&")},I.fn.extend({serialize:function(){return I.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=I.prop(this,"elements");return t?I.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!I(this).is(":disabled")&&wr.test(this.nodeName)&&!Rr.test(t)&&(this.checked||!vt.test(t))})).map((function(t,r){var n=I(this).val();return null==n?null:Array.isArray(n)?I.map(n,(function(t){return{name:r.name,value:t.replace(Cr,"\r\n")}})):{name:r.name,value:n.replace(Cr,"\r\n")}})).get()}});var _r=/%20/g,kr=/#.*$/,Pr=/([?&])_=[^&]*/,Dr=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mr=/^(?:GET|HEAD)$/,jr=/^\/\//,Gr={},Fr={},Ur="*/".concat("*"),Br=g.createElement("a");function Vr(t){return function(r,n){"string"!=typeof r&&(n=r,r="*");var e,i=0,o=r.toLowerCase().match(j)||[];if(b(n))for(;e=o[i++];)"+"===e[0]?(e=e.slice(1)||"*",(t[e]=t[e]||[]).unshift(n)):(t[e]=t[e]||[]).push(n)}}function qr(t,r,n,e){var i={},o=t===Fr;function s(a){var u;return i[a]=!0,I.each(t[a]||[],(function(t,a){var l=a(r,n,e);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(r.dataTypes.unshift(l),s(l),!1)})),u}return s(r.dataTypes[0])||!i["*"]&&s("*")}function Hr(t,r){var n,e,i=I.ajaxSettings.flatOptions||{};for(n in r)void 0!==r[n]&&((i[n]?t:e||(e={}))[n]=r[n]);return e&&I.extend(!0,t,e),t}Br.href=Nr.href,I.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nr.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Nr.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ur,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":I.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,r){return r?Hr(Hr(t,I.ajaxSettings),r):Hr(I.ajaxSettings,t)},ajaxPrefilter:Vr(Gr),ajaxTransport:Vr(Fr),ajax:function(t,r){"object"==typeof t&&(r=t,t=void 0);var n,i,o,s,a,u,l,c,f,h,p=I.ajaxSetup({},r=r||{}),d=p.context||p,v=p.context&&(d.nodeType||d.jquery)?I(d):I.event,E=I.Deferred(),b=I.Callbacks("once memory"),m=p.statusCode||{},y={},x={},T="canceled",N={readyState:0,getResponseHeader:function(t){var r;if(l){if(!s)for(s={};r=Dr.exec(o);)s[r[1].toLowerCase()+" "]=(s[r[1].toLowerCase()+" "]||[]).concat(r[2]);r=s[t.toLowerCase()+" "]}return null==r?null:r.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,r){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,y[t]=r),this},overrideMimeType:function(t){return null==l&&(p.mimeType=t),this},statusCode:function(t){var r;if(t)if(l)N.always(t[N.status]);else for(r in t)m[r]=[m[r],t[r]];return this},abort:function(t){var r=t||T;return n&&n.abort(r),A(0,r),this}};if(E.promise(N),p.url=((t||p.url||Nr.href)+"").replace(jr,Nr.protocol+"//"),p.type=r.method||r.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain){u=g.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Br.protocol+"//"+Br.host!=u.protocol+"//"+u.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=I.param(p.data,p.traditional)),qr(Gr,p,r,N),l)return N;for(f in(c=I.event&&p.global)&&0==I.active++&&I.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Mr.test(p.type),i=p.url.replace(kr,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(_r,"+")):(h=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Sr.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Pr,"$1"),h=(Sr.test(i)?"&":"?")+"_="+Ar.guid+++h),p.url=i+h),p.ifModified&&(I.lastModified[i]&&N.setRequestHeader("If-Modified-Since",I.lastModified[i]),I.etag[i]&&N.setRequestHeader("If-None-Match",I.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||r.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ur+"; q=0.01":""):p.accepts["*"]),p.headers)N.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(d,N,p)||l))return N.abort();if(T="abort",b.add(p.complete),N.done(p.success),N.fail(p.error),n=qr(Fr,p,r,N)){if(N.readyState=1,c&&v.trigger("ajaxSend",[N,p]),l)return N;p.async&&p.timeout>0&&(a=e.setTimeout((function(){N.abort("timeout")}),p.timeout));try{l=!1,n.send(y,A)}catch(t){if(l)throw t;A(-1,t)}}else A(-1,"No Transport");function A(t,r,s,u){var f,h,g,y,x,T=r;l||(l=!0,a&&e.clearTimeout(a),n=void 0,o=u||"",N.readyState=t>0?4:0,f=t>=200&&t<300||304===t,s&&(y=function(t,r,n){for(var e,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===e&&(e=t.mimeType||r.getResponseHeader("Content-Type"));if(e)for(i in a)if(a[i]&&a[i].test(e)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(p,N,s)),!f&&I.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),y=function(t,r,n,e){var i,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=r),!u&&e&&t.dataFilter&&(r=t.dataFilter(r,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)r=s(r);else try{r=s(r)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:r}}(p,y,N,f),f?(p.ifModified&&((x=N.getResponseHeader("Last-Modified"))&&(I.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(I.etag[i]=x)),204===t||"HEAD"===p.type?T="nocontent":304===t?T="notmodified":(T=y.state,h=y.data,f=!(g=y.error))):(g=T,!t&&T||(T="error",t<0&&(t=0))),N.status=t,N.statusText=(r||T)+"",f?E.resolveWith(d,[h,T,N]):E.rejectWith(d,[N,T,g]),N.statusCode(m),m=void 0,c&&v.trigger(f?"ajaxSuccess":"ajaxError",[N,p,f?h:g]),b.fireWith(d,[N,T]),c&&(v.trigger("ajaxComplete",[N,p]),--I.active||I.event.trigger("ajaxStop")))}return N},getJSON:function(t,r,n){return I.get(t,r,n,"json")},getScript:function(t,r){return I.get(t,void 0,r,"script")}}),I.each(["get","post"],(function(t,r){I[r]=function(t,n,e,i){return b(n)&&(i=i||e,e=n,n=void 0),I.ajax(I.extend({url:t,type:r,dataType:i,data:n,success:e},I.isPlainObject(t)&&t))}})),I.ajaxPrefilter((function(t){var r;for(r in t.headers)"content-type"===r.toLowerCase()&&(t.contentType=t.headers[r]||"")})),I._evalUrl=function(t,r,n){return I.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){I.globalEval(t,r,n)}})},I.fn.extend({wrapAll:function(t){var r;return this[0]&&(b(t)&&(t=t.call(this[0])),r=I(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&r.insertBefore(this[0]),r.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return b(t)?this.each((function(r){I(this).wrapInner(t.call(this,r))})):this.each((function(){var r=I(this),n=r.contents();n.length?n.wrapAll(t):r.append(t)}))},wrap:function(t){var r=b(t);return this.each((function(n){I(this).wrapAll(r?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){I(this).replaceWith(this.childNodes)})),this}}),I.expr.pseudos.hidden=function(t){return!I.expr.pseudos.visible(t)},I.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},I.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var zr={0:200,1223:204},$r=I.ajaxSettings.xhr();E.cors=!!$r&&"withCredentials"in $r,E.ajax=$r=!!$r,I.ajaxTransport((function(t){var r,n;if(E.cors||$r&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);r=function(t){return function(){r&&(r=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(zr[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=r(),n=a.onerror=a.ontimeout=r("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout((function(){r&&n()}))},r=r("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}})),I.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),I.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return I.globalEval(t),t}}}),I.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),I.ajaxTransport("script",(function(t){var r,n;if(t.crossDomain||t.scriptAttrs)return{send:function(e,i){r=I("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){r.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),g.head.appendChild(r[0])},abort:function(){n&&n()}}}));var Wr,Yr=[],Xr=/(=)\?(?=&|$)|\?\?/;I.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Yr.pop()||I.expando+"_"+Ar.guid++;return this[t]=!0,t}}),I.ajaxPrefilter("json jsonp",(function(t,r,n){var i,o,s,a=!1!==t.jsonp&&(Xr.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xr.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Xr,"$1"+i):!1!==t.jsonp&&(t.url+=(Sr.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||I.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},n.always((function(){void 0===o?I(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=r.jsonpCallback,Yr.push(i)),s&&b(o)&&o(s[0]),s=o=void 0})),"script"})),E.createHTMLDocument=((Wr=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wr.childNodes.length),I.parseHTML=function(t,r,n){return"string"!=typeof t?[]:("boolean"==typeof r&&(n=r,r=!1),r||(E.createHTMLDocument?((e=(r=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,r.head.appendChild(e)):r=g),o=!n&&[],(i=w.exec(t))?[r.createElement(i[1])]:(i=Tt([t],r,o),o&&o.length&&I(o).remove(),I.merge([],i.childNodes)));var e,i,o},I.fn.load=function(t,r,n){var e,i,o,s=this,a=t.indexOf(" ");return a>-1&&(e=mr(t.slice(a)),t=t.slice(0,a)),b(r)?(n=r,r=void 0):r&&"object"==typeof r&&(i="POST"),s.length>0&&I.ajax({url:t,type:i||"GET",dataType:"html",data:r}).done((function(t){o=arguments,s.html(e?I("<div>").append(I.parseHTML(t)).find(e):t)})).always(n&&function(t,r){s.each((function(){n.apply(this,o||[t.responseText,r,t])}))}),this},I.expr.pseudos.animated=function(t){return I.grep(I.timers,(function(r){return t===r.elem})).length},I.offset={setOffset:function(t,r,n){var e,i,o,s,a,u,l=I.css(t,"position"),c=I(t),f={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=I.css(t,"top"),u=I.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(e=c.position()).top,i=e.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),b(r)&&(r=r.call(t,n,I.extend({},a))),null!=r.top&&(f.top=r.top-a.top+s),null!=r.left&&(f.left=r.left-a.left+i),"using"in r?r.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},I.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(r){I.offset.setOffset(this,t,r)}));var r,n,e=this[0];return e?e.getClientRects().length?{top:(r=e.getBoundingClientRect()).top+(n=e.ownerDocument.defaultView).pageYOffset,left:r.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,r,n,e=this[0],i={top:0,left:0};if("fixed"===I.css(e,"position"))r=e.getBoundingClientRect();else{for(r=this.offset(),n=e.ownerDocument,t=e.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===I.css(t,"position");)t=t.parentNode;t&&t!==e&&1===t.nodeType&&((i=I(t).offset()).top+=I.css(t,"borderTopWidth",!0),i.left+=I.css(t,"borderLeftWidth",!0))}return{top:r.top-i.top-I.css(e,"marginTop",!0),left:r.left-i.left-I.css(e,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===I.css(t,"position");)t=t.offsetParent;return t||ot}))}}),I.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,r){var n="pageYOffset"===r;I.fn[t]=function(e){return H(this,(function(t,e,i){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[r]:t[e];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[e]=i}),t,e,arguments.length)}})),I.each(["top","left"],(function(t,r){I.cssHooks[r]=$t(E.pixelPosition,(function(t,n){if(n)return n=zt(t,r),Bt.test(n)?I(t).position()[r]+"px":n}))})),I.each({Height:"height",Width:"width"},(function(t,r){I.each({padding:"inner"+t,content:r,"":"outer"+t},(function(n,e){I.fn[e]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return H(this,(function(r,n,i){var o;return m(r)?0===e.indexOf("outer")?r["inner"+t]:r.document.documentElement["client"+t]:9===r.nodeType?(o=r.documentElement,Math.max(r.body["scroll"+t],o["scroll"+t],r.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?I.css(r,n,a):I.style(r,n,i,a)}),r,s?i:void 0,s)}}))})),I.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,r){I.fn[r]=function(t){return this.on(r,t)}})),I.fn.extend({bind:function(t,r,n){return this.on(t,null,r,n)},unbind:function(t,r){return this.off(t,null,r)},delegate:function(t,r,n,e){return this.on(r,t,n,e)},undelegate:function(t,r,n){return 1===arguments.length?this.off(t,"**"):this.off(r,t||"**",n)},hover:function(t,r){return this.mouseenter(t).mouseleave(r||t)}}),I.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(t,r){I.fn[r]=function(t,n){return arguments.length>0?this.on(r,null,t,n):this.trigger(r)}}));var Zr=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;I.proxy=function(t,r){var n,e,i;if("string"==typeof r&&(n=t[r],r=t,t=n),b(t))return e=a.call(arguments,2),(i=function(){return t.apply(r||this,e.concat(a.call(arguments)))}).guid=t.guid=t.guid||I.guid++,i},I.holdReady=function(t){t?I.readyWait++:I.ready(!0)},I.isArray=Array.isArray,I.parseJSON=JSON.parse,I.nodeName=R,I.isFunction=b,I.isWindow=m,I.camelCase=Y,I.type=T,I.now=Date.now,I.isNumeric=function(t){var r=I.type(t);return("number"===r||"string"===r)&&!isNaN(t-parseFloat(t))},I.trim=function(t){return null==t?"":(t+"").replace(Zr,"")},void 0===(n=function(){return I}.apply(r,[]))||(t.exports=n);var Qr=e.jQuery,Kr=e.$;return I.noConflict=function(t){return e.$===I&&(e.$=Kr),t&&e.jQuery===I&&(e.jQuery=Qr),I},void 0===i&&(e.jQuery=e.$=I),I}))},function(t,r,n){var e=n(2),i=n(17),o=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;r.a=function(t){var r=function(t){return t?(t=function(t){if("number"==typeof t)return t;if(Object(i.a)(t))return NaN;if(Object(e.a)(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=Object(e.a)(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=a.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):s.test(t)?NaN:+t}(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}(t),n=r%1;return r==r?n?r-n:r:0}},function(t,r,n){var e=n(56),i=n(8),o=n(15),s=n(1),a=i.a?i.a.isConcatSpreadable:void 0,u=function(t){return Object(s.a)(t)||Object(o.a)(t)||!!(a&&t&&t[a])};r.a=function t(r,n,i,o,s){var a=-1,l=r.length;for(i||(i=u),s||(s=[]);++a<l;){var c=r[a];n>0&&i(c)?n>1?t(c,n-1,i,o,s):Object(e.a)(s,c):o||(s[s.length]=c)}return s}},function(t){t.exports=function(){var t=Object.hasOwnProperty,r=Object.setPrototypeOf,n=Object.isFrozen,e=Object.keys,i=Object.freeze,o=Object.seal,s="undefined"!=typeof Reflect&&Reflect,a=s.apply,u=s.construct;a||(a=function(t,r,n){return t.apply(r,n)}),i||(i=function(t){return t}),o||(o=function(t){return t}),u||(u=function(t,r){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var r=0,n=Array(t.length);r<t.length;r++)n[r]=t[r];return n}return Array.from(t)}(r))))});var l=I(Array.prototype.forEach),c=I(Array.prototype.indexOf),f=I(Array.prototype.join),h=I(Array.prototype.pop),p=I(Array.prototype.push),d=I(Array.prototype.slice),v=I(String.prototype.toLowerCase),E=I(String.prototype.match),b=I(String.prototype.replace),m=I(String.prototype.indexOf),g=I(String.prototype.trim),y=I(RegExp.prototype.test),x=N(RegExp),T=N(TypeError);function I(t){return function(r){for(var n=arguments.length,e=Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];return a(t,r,e)}}function N(t){return function(){for(var r=arguments.length,n=Array(r),e=0;e<r;e++)n[e]=arguments[e];return u(t,n)}}function A(t,e){r&&r(t,null);for(var i=e.length;i--;){var o=e[i];if("string"==typeof o){var s=v(o);s!==o&&(n(e)||(e[i]=s),o=s)}t[o]=!0}return t}function S(r){var n={},e=void 0;for(e in r)a(t,r,[e])&&(n[e]=r[e]);return n}var L=i(["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"]),C=i(["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"]),R=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),w=i(["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"]),O=i(["#text"]),_=i(["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"]),k=i(["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"]),P=i(["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"]),D=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),M=o(/\{\{[\s\S]*|[\s\S]*\}\}/gm),j=o(/<%[\s\S]*|[\s\S]*%>/gm),G=o(/^data-[\-\w.\u00B7-\uFFFF]/),F=o(/^aria-[\-\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=o(/^(?:\w+script|data):/i),V=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function H(t){if(Array.isArray(t)){for(var r=0,n=Array(t.length);r<t.length;r++)n[r]=t[r];return n}return Array.from(t)}var z=function(){return"undefined"==typeof window?null:window},$=function(t,r){if("object"!==(void 0===t?"undefined":q(t))||"function"!=typeof t.createPolicy)return null;var n=null;r.currentScript&&r.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=r.currentScript.getAttribute("data-tt-policy-suffix"));var e="dompurify"+(n?"#"+n:"");try{return t.createPolicy(e,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+e+" could not be created."),null}};return function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:z(),n=function(r){return t(r)};if(n.version="2.0.12",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var o=r.document,s=!1,a=r.document,u=r.DocumentFragment,I=r.HTMLTemplateElement,N=r.Node,W=r.NodeFilter,Y=r.NamedNodeMap,X=void 0===Y?r.NamedNodeMap||r.MozNamedAttrMap:Y,Z=r.Text,Q=r.Comment,K=r.DOMParser,J=r.trustedTypes;if("function"==typeof I){var tt=a.createElement("template");tt.content&&tt.content.ownerDocument&&(a=tt.content.ownerDocument)}var rt=$(J,o),nt=rt&&Pt?rt.createHTML(""):"",et=a,it=et.implementation,ot=et.createNodeIterator,st=et.getElementsByTagName,at=et.createDocumentFragment,ut=o.importNode,lt={};n.isSupported=it&&void 0!==it.createHTMLDocument&&9!==a.documentMode;var ct=M,ft=j,ht=G,pt=F,dt=B,vt=V,Et=U,bt=null,mt=A({},[].concat(H(L),H(C),H(R),H(w),H(O))),gt=null,yt=A({},[].concat(H(_),H(k),H(P),H(D))),xt=null,Tt=null,It=!0,Nt=!0,At=!1,St=!1,Lt=!1,Ct=!1,Rt=!1,wt=!1,Ot=!1,_t=!1,kt=!1,Pt=!1,Dt=!0,Mt=!0,jt=!1,Gt={},Ft=A({},["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"]),Ut=null,Bt=A({},["audio","video","img","source","image","track"]),Vt=null,qt=A({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Ht=null,zt=a.createElement("form"),$t=function(t){Ht&&Ht===t||(t&&"object"===(void 0===t?"undefined":q(t))||(t={}),bt="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS):mt,gt="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR):yt,Vt="ADD_URI_SAFE_ATTR"in t?A(S(qt),t.ADD_URI_SAFE_ATTR):qt,Ut="ADD_DATA_URI_TAGS"in t?A(S(Bt),t.ADD_DATA_URI_TAGS):Bt,xt="FORBID_TAGS"in t?A({},t.FORBID_TAGS):{},Tt="FORBID_ATTR"in t?A({},t.FORBID_ATTR):{},It=!1!==t.ALLOW_ARIA_ATTR,Nt=!1!==t.ALLOW_DATA_ATTR,At=t.ALLOW_UNKNOWN_PROTOCOLS||!1,St=t.SAFE_FOR_JQUERY||!1,Ct=t.WHOLE_DOCUMENT||!1,Ot=t.RETURN_DOM||!1,kt=t.RETURN_DOM_IMPORT||!1,Pt=t.RETURN_TRUSTED_TYPE||!1,wt=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,Mt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,Et=t.ALLOWED_URI_REGEXP||Et,(Lt=t.SAFE_FOR_TEMPLATES||!1)&&(Nt=!1),(_t=t.RETURN_DOM_FRAGMENT||!1)&&(Ot=!0),(Gt="USE_PROFILES"in t&&t.USE_PROFILES)&&(bt=A({},[].concat(H(O))),gt=[],!0===Gt.html&&(A(bt,L),A(gt,_)),!0===Gt.svg&&(A(bt,C),A(gt,k),A(gt,D)),!0===Gt.svgFilters&&(A(bt,R),A(gt,k),A(gt,D)),!0===Gt.mathMl&&(A(bt,w),A(gt,P),A(gt,D))),t.ADD_TAGS&&(bt===mt&&(bt=S(bt)),A(bt,t.ADD_TAGS)),t.ADD_ATTR&&(gt===yt&&(gt=S(gt)),A(gt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&A(Vt,t.ADD_URI_SAFE_ATTR),Mt&&(bt["#text"]=!0),Ct&&A(bt,["html","head","body"]),bt.table&&(A(bt,["tbody"]),delete xt.tbody),i&&i(t),Ht=t)},Wt=function(t){p(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(r){t.outerHTML=nt}},Yt=function(t,r){try{p(n.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){p(n.removed,{attribute:null,from:r})}r.removeAttribute(t)},Xt=function(t){var r=void 0,n=void 0;if(wt)t="<remove></remove>"+t;else{var e=E(t,/^[\r\n\t ]+/);n=e&&e[0]}var i=rt?rt.createHTML(t):t;try{r=(new K).parseFromString(i,"text/html")}catch(t){}if(s&&A(xt,["title"]),!r||!r.documentElement){var o=(r=it.createHTMLDocument("")).body;o.parentNode.removeChild(o.parentNode.firstElementChild),o.outerHTML=i}return t&&n&&r.body.insertBefore(a.createTextNode(n),r.body.childNodes[0]||null),st.call(r,Ct?"html":"body")[0]};n.isSupported&&function(){try{var t=Xt("<x/><title></title><img>");y(/<\/title/,t.querySelector("title").innerHTML)&&(s=!0)}catch(t){}}();var Zt=function(t){return ot.call(t.ownerDocument||t,t,W.SHOW_ELEMENT|W.SHOW_COMMENT|W.SHOW_TEXT,(function(){return W.FILTER_ACCEPT}),!1)},Qt=function(t){return!(t instanceof Z||t instanceof Q||"string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof X&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI)},Kt=function(t){return"object"===(void 0===N?"undefined":q(N))?t instanceof N:t&&"object"===(void 0===t?"undefined":q(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Jt=function(t,r,e){lt[t]&&l(lt[t],(function(t){t.call(n,r,e,Ht)}))},tr=function(t){var r=void 0;if(Jt("beforeSanitizeElements",t,null),Qt(t))return Wt(t),!0;var e=v(t.nodeName);if(Jt("uponSanitizeElement",t,{tagName:e,allowedTags:bt}),("svg"===e||"math"===e)&&0!==t.querySelectorAll("p, br").length)return Wt(t),!0;if(!bt[e]||xt[e]){if(Mt&&!Ft[e]&&"function"==typeof t.insertAdjacentHTML)try{var i=t.innerHTML;t.insertAdjacentHTML("AfterEnd",rt?rt.createHTML(i):i)}catch(t){}return Wt(t),!0}return"noscript"===e&&y(/<\/noscript/i,t.innerHTML)||"noembed"===e&&y(/<\/noembed/i,t.innerHTML)?(Wt(t),!0):(!St||t.firstElementChild||t.content&&t.content.firstElementChild||!y(/</g,t.textContent)||(p(n.removed,{element:t.cloneNode()}),t.innerHTML=b(t.innerHTML?t.innerHTML:t.textContent,/</g,"<")),Lt&&3===t.nodeType&&(r=b(r=t.textContent,ct," "),r=b(r,ft," "),t.textContent!==r&&(p(n.removed,{element:t.cloneNode()}),t.textContent=r)),Jt("afterSanitizeElements",t,null),!1)},rr=function(t,r,n){if(Dt&&("id"===r||"name"===r)&&(n in a||n in zt))return!1;if(Nt&&y(ht,r));else if(It&&y(pt,r));else{if(!gt[r]||Tt[r])return!1;if(Vt[r]);else if(y(Et,b(n,vt,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==m(n,"data:")||!Ut[t])if(At&&!y(dt,b(n,vt,"")));else if(n)return!1}return!0},nr=function(t){var r=void 0,i=void 0,o=void 0,s=void 0,a=void 0;Jt("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:gt};for(a=u.length;a--;){var p=r=u[a],E=p.name,m=p.namespaceURI;if(i=g(r.value),o=v(E),l.attrName=o,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,Jt("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr){if("name"===o&&"IMG"===t.nodeName&&u.id)s=u.id,u=d(u,[]),Yt("id",t),Yt(E,t),c(u,s)>a&&t.setAttribute("id",s.value);else{if("INPUT"===t.nodeName&&"type"===o&&"file"===i&&l.keepAttr&&(gt[o]||!Tt[o]))continue;"id"===E&&t.setAttribute(E,""),Yt(E,t)}if(l.keepAttr)if(St&&y(/\/>/i,i))Yt(E,t);else if(y(/svg|math/i,t.namespaceURI)&&y(x("</("+f(e(Ft),"|")+")","i"),i))Yt(E,t);else{Lt&&(i=b(i,ct," "),i=b(i,ft," "));var T=t.nodeName.toLowerCase();if(rr(T,o,i))try{m?t.setAttributeNS(m,E,i):t.setAttribute(E,i),h(n.removed)}catch(t){}}}}Jt("afterSanitizeAttributes",t,null)}},er=function t(r){var n=void 0,e=Zt(r);for(Jt("beforeSanitizeShadowDOM",r,null);n=e.nextNode();)Jt("uponSanitizeShadowNode",n,null),tr(n)||(n.content instanceof u&&t(n.content),nr(n));Jt("afterSanitizeShadowDOM",r,null)};return n.sanitize=function(t,e){var i=void 0,s=void 0,a=void 0,l=void 0,c=void 0;if(t||(t="\x3c!--\x3e"),"string"!=typeof t&&!Kt(t)){if("function"!=typeof t.toString)throw T("toString is not a function");if("string"!=typeof(t=t.toString()))throw T("dirty is not a string, aborting")}if(!n.isSupported){if("object"===q(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof t)return r.toStaticHTML(t);if(Kt(t))return r.toStaticHTML(t.outerHTML)}return t}if(Rt||$t(e),n.removed=[],"string"==typeof t&&(jt=!1),jt);else if(t instanceof N)1===(s=(i=Xt("\x3c!--\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?i=s:i.appendChild(s);else{if(!Ot&&!Lt&&!Ct&&-1===t.indexOf("<"))return rt&&Pt?rt.createHTML(t):t;if(!(i=Xt(t)))return Ot?null:nt}i&&wt&&Wt(i.firstChild);for(var f=Zt(jt?t:i);a=f.nextNode();)3===a.nodeType&&a===l||tr(a)||(a.content instanceof u&&er(a.content),nr(a),l=a);if(l=null,jt)return t;if(Ot){if(_t)for(c=at.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return kt&&(c=ut.call(o,c,!0)),c}var h=Ct?i.outerHTML:i.innerHTML;return Lt&&(h=b(h,ct," "),h=b(h,ft," ")),rt&&Pt?rt.createHTML(h):h},n.setConfig=function(t){$t(t),Rt=!0},n.clearConfig=function(){Ht=null,Rt=!1},n.isValidAttribute=function(t,r,n){Ht||$t({});var e=v(t),i=v(r);return rr(e,i,n)},n.addHook=function(t,r){"function"==typeof r&&(lt[t]=lt[t]||[],p(lt[t],r))},n.removeHook=function(t){lt[t]&&h(lt[t])},n.removeHooks=function(t){lt[t]&&(lt[t]=[])},n.removeAllHooks=function(){lt={}},n}()}()},function(t,r,n){!function(t){t.defineOption("foldGutter",!1,(function(r,e,i){var o;i&&i!=t.Init&&(r.clearGutter(r.state.foldGutter.options.gutter),r.state.foldGutter=null,r.off("gutterClick",u),r.off("changes",l),r.off("viewportChange",c),r.off("fold",f),r.off("unfold",f),r.off("swapDoc",l)),e&&(r.state.foldGutter=new n((!0===(o=e)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),a(r),r.on("gutterClick",u),r.on("changes",l),r.on("viewportChange",c),r.on("fold",f),r.on("unfold",f),r.on("swapDoc",l))}));var r=t.Pos;function n(t){this.options=t,this.from=this.to=0}function e(t,n){for(var e=t.findMarks(r(n,0),r(n+1,0)),i=0;i<e.length;++i)if(e[i].__isFold){var o=e[i].find(-1);if(o&&o.line===n)return e[i]}}function i(t){if("string"==typeof t){var r=document.createElement("div");return r.className=t+" CodeMirror-guttermarker-subtle",r}return t.cloneNode(!0)}function o(t,n,o){var a=t.state.foldGutter.options,u=n-1,l=t.foldOption(a,"minFoldSize"),c=t.foldOption(a,"rangeFinder"),f="string"==typeof a.indicatorFolded&&s(a.indicatorFolded),h="string"==typeof a.indicatorOpen&&s(a.indicatorOpen);t.eachLine(n,o,(function(n){++u;var o=null,s=n.gutterMarkers;if(s&&(s=s[a.gutter]),e(t,u)){if(f&&s&&f.test(s.className))return;o=i(a.indicatorFolded)}else{var p=r(u,0),d=c&&c(t,p);if(d&&d.to.line-d.from.line>=l){if(h&&s&&h.test(s.className))return;o=i(a.indicatorOpen)}}(o||s)&&t.setGutterMarker(n,a.gutter,o)}))}function s(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}function a(t){var r=t.getViewport(),n=t.state.foldGutter;n&&(t.operation((function(){o(t,r.from,r.to)})),n.from=r.from,n.to=r.to)}function u(t,n,i){var o=t.state.foldGutter;if(o){var s=o.options;if(i==s.gutter){var a=e(t,n);a?a.clear():t.foldCode(r(n,0),s)}}}function l(t){var r=t.state.foldGutter;if(r){var n=r.options;r.from=r.to=0,clearTimeout(r.changeUpdate),r.changeUpdate=setTimeout((function(){a(t)}),n.foldOnChangeTimeSpan||600)}}function c(t){var r=t.state.foldGutter;if(r){var n=r.options;clearTimeout(r.changeUpdate),r.changeUpdate=setTimeout((function(){var n=t.getViewport();r.from==r.to||n.from-r.to>20||r.from-n.to>20?a(t):t.operation((function(){n.from<r.from&&(o(t,n.from,r.from),r.from=n.from),n.to>r.to&&(o(t,r.to,n.to),r.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(t,r){var n=t.state.foldGutter;if(n){var e=r.line;e>=n.from&&e<n.to&&o(t,e,e+1)}}}(n(7),n(92))},function(t,r,n){!function(t){var r=t.Pos;function n(t,r){return t.line-r.line||t.ch-r.ch}var e="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",i=new RegExp("<(/?)(["+e+"]["+e+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(t,r,n,e){this.line=r,this.ch=n,this.cm=t,this.text=t.getLine(r),this.min=e?Math.max(e.from,t.firstLine()):t.firstLine(),this.max=e?Math.min(e.to-1,t.lastLine()):t.lastLine()}function s(t,n){var e=t.cm.getTokenTypeAt(r(t.line,n));return e&&/\btag\b/.test(e)}function a(t){if(!(t.line>=t.max))return t.ch=0,t.text=t.cm.getLine(++t.line),!0}function u(t){if(!(t.line<=t.min))return t.text=t.cm.getLine(--t.line),t.ch=t.text.length,!0}function l(t){for(;;){var r=t.text.indexOf(">",t.ch);if(-1==r){if(a(t))continue;return}if(s(t,r+1)){var n=t.text.lastIndexOf("/",r),e=n>-1&&!/\S/.test(t.text.slice(n+1,r));return t.ch=r+1,e?"selfClose":"regular"}t.ch=r+1}}function c(t){for(;;){var r=t.ch?t.text.lastIndexOf("<",t.ch-1):-1;if(-1==r){if(u(t))continue;return}if(s(t,r+1)){i.lastIndex=r,t.ch=r;var n=i.exec(t.text);if(n&&n.index==r)return n}else t.ch=r}}function f(t){for(;;){i.lastIndex=t.ch;var r=i.exec(t.text);if(!r){if(a(t))continue;return}if(s(t,r.index+1))return t.ch=r.index+r[0].length,r;t.ch=r.index+1}}function h(t){for(;;){var r=t.ch?t.text.lastIndexOf(">",t.ch-1):-1;if(-1==r){if(u(t))continue;return}if(s(t,r+1)){var n=t.text.lastIndexOf("/",r),e=n>-1&&!/\S/.test(t.text.slice(n+1,r));return t.ch=r+1,e?"selfClose":"regular"}t.ch=r}}function p(t,n){for(var e=[];;){var i,o=f(t),s=t.line,a=t.ch-(o?o[0].length:0);if(!o||!(i=l(t)))return;if("selfClose"!=i)if(o[1]){for(var u=e.length-1;u>=0;--u)if(e[u]==o[2]){e.length=u;break}if(u<0&&(!n||n==o[2]))return{tag:o[2],from:r(s,a),to:r(t.line,t.ch)}}else e.push(o[2])}}function d(t,n){for(var e=[];;){var i=h(t);if(!i)return;if("selfClose"!=i){var o=t.line,s=t.ch,a=c(t);if(!a)return;if(a[1])e.push(a[2]);else{for(var u=e.length-1;u>=0;--u)if(e[u]==a[2]){e.length=u;break}if(u<0&&(!n||n==a[2]))return{tag:a[2],from:r(t.line,t.ch),to:r(o,s)}}}else c(t)}}t.registerHelper("fold","xml",(function(t,e){for(var i=new o(t,e.line,0);;){var s=f(i);if(!s||i.line!=e.line)return;var a=l(i);if(!a)return;if(!s[1]&&"selfClose"!=a){var u=r(i.line,i.ch),c=p(i,s[2]);return c&&n(c.from,u)>0?{from:u,to:c.from}:null}}})),t.findMatchingTag=function(t,e,i){var s=new o(t,e.line,e.ch,i);if(-1!=s.text.indexOf(">")||-1!=s.text.indexOf("<")){var a=l(s),u=a&&r(s.line,s.ch),f=a&&c(s);if(a&&f&&!(n(s,e)>0)){var h={from:r(s.line,s.ch),to:u,tag:f[2]};return"selfClose"==a?{open:h,close:null,at:"open"}:f[1]?{open:d(s,f[2]),close:h,at:"close"}:{open:h,close:p(s=new o(t,u.line,u.ch,i),f[2]),at:"open"}}}},t.findEnclosingTag=function(t,r,n,e){for(var i=new o(t,r.line,r.ch,n);;){var s=d(i,e);if(!s)break;var a=p(new o(t,r.line,r.ch,n),s.tag);if(a)return{open:s,close:a}}},t.scanForClosingTag=function(t,r,n,e){return p(new o(t,r.line,r.ch,e?{from:0,to:e}:null),n)}}(n(7))},function(t,r,n){!function(t){t.registerHelper("fold","brace",(function(r,n){var e,i=n.line,o=r.getLine(i);function s(s){for(var a=n.ch,u=0;;){var l=a<=0?-1:o.lastIndexOf(s,a-1);if(-1!=l){if(1==u&&l<n.ch)break;if(e=r.getTokenTypeAt(t.Pos(i,l+1)),!/^(comment|string)/.test(e))return l+1;a=l-1}else{if(1==u)break;u=1,a=o.length}}}var a="{",u="}",l=s("{");if(null==l&&(a="[",u="]",l=s("[")),null!=l){var c,f,h=1,p=r.lastLine();t:for(var d=i;d<=p;++d)for(var v=r.getLine(d),E=d==i?l:0;;){var b=v.indexOf(a,E),m=v.indexOf(u,E);if(b<0&&(b=v.length),m<0&&(m=v.length),(E=Math.min(b,m))==v.length)break;if(r.getTokenTypeAt(t.Pos(d,E+1))==e)if(E==b)++h;else if(!--h){c=d,f=E;break t}++E}if(null!=c&&i!=c)return{from:t.Pos(i,l),to:t.Pos(c,f)}}})),t.registerHelper("fold","import",(function(r,n){function e(n){if(n<r.firstLine()||n>r.lastLine())return null;var e=r.getTokenAt(t.Pos(n,1));if(/\S/.test(e.string)||(e=r.getTokenAt(t.Pos(n,e.end+1))),"keyword"!=e.type||"import"!=e.string)return null;for(var i=n,o=Math.min(r.lastLine(),n+10);i<=o;++i){var s=r.getLine(i).indexOf(";");if(-1!=s)return{startCh:e.end,end:t.Pos(i,s)}}}var i,o=n.line,s=e(o);if(!s||e(o-1)||(i=e(o-2))&&i.end.line==o-1)return null;for(var a=s.end;;){var u=e(a.line+1);if(null==u)break;a=u.end}return{from:r.clipPos(t.Pos(o,s.startCh+1)),to:a}})),t.registerHelper("fold","include",(function(r,n){function e(n){if(n<r.firstLine()||n>r.lastLine())return null;var e=r.getTokenAt(t.Pos(n,1));return/\S/.test(e.string)||(e=r.getTokenAt(t.Pos(n,e.end+1))),"meta"==e.type&&"#include"==e.string.slice(0,8)?e.start+8:void 0}var i=n.line,o=e(i);if(null==o||null!=e(i-1))return null;for(var s=i;null!=e(s+1);)++s;return{from:t.Pos(i,o+1),to:r.clipPos(t.Pos(s))}}))}(n(7))},function(t,r,n){!function(t){var r=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=t.Pos,e={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(t){return t&&t.bracketRegex||/[(){}[\]]/}function o(t,r,o){var a=t.getLineHandle(r.line),u=r.ch-1,l=o&&o.afterCursor;null==l&&(l=/(^| )cm-fat-cursor($| )/.test(t.getWrapperElement().className));var c=i(o),f=!l&&u>=0&&c.test(a.text.charAt(u))&&e[a.text.charAt(u)]||c.test(a.text.charAt(u+1))&&e[a.text.charAt(++u)];if(!f)return null;var h=">"==f.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(u==r.ch))return null;var p=t.getTokenTypeAt(n(r.line,u+1)),d=s(t,n(r.line,u+(h>0?1:0)),h,p||null,o);return null==d?null:{from:n(r.line,u),to:d&&d.pos,match:d&&d.ch==f.charAt(0),forward:h>0}}function s(t,r,o,s,a){for(var u=a&&a.maxScanLineLength||1e4,l=a&&a.maxScanLines||1e3,c=[],f=i(a),h=o>0?Math.min(r.line+l,t.lastLine()+1):Math.max(t.firstLine()-1,r.line-l),p=r.line;p!=h;p+=o){var d=t.getLine(p);if(d){var v=o>0?0:d.length-1,E=o>0?d.length:-1;if(!(d.length>u))for(p==r.line&&(v=r.ch-(o<0?1:0));v!=E;v+=o){var b=d.charAt(v);if(f.test(b)&&(void 0===s||t.getTokenTypeAt(n(p,v+1))==s)){var m=e[b];if(m&&">"==m.charAt(1)==o>0)c.push(b);else{if(!c.length)return{pos:n(p,v),ch:b};c.pop()}}}}}return p-o!=(o>0?t.lastLine():t.firstLine())&&null}function a(t,e,i){for(var s=t.state.matchBrackets.maxHighlightLineLength||1e3,a=[],u=t.listSelections(),l=0;l<u.length;l++){var c=u[l].empty()&&o(t,u[l].head,i);if(c&&t.getLine(c.from.line).length<=s){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";a.push(t.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&t.getLine(c.to.line).length<=s&&a.push(t.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(a.length){r&&t.state.focused&&t.focus();var h=function(){t.operation((function(){for(var t=0;t<a.length;t++)a[t].clear()}))};if(!e)return h;setTimeout(h,800)}}function u(t){t.operation((function(){t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null),t.state.matchBrackets.currentlyHighlighted=a(t,!1,t.state.matchBrackets)}))}t.defineOption("matchBrackets",!1,(function(r,n,e){function i(t){t.state.matchBrackets&&t.state.matchBrackets.currentlyHighlighted&&(t.state.matchBrackets.currentlyHighlighted(),t.state.matchBrackets.currentlyHighlighted=null)}e&&e!=t.Init&&(r.off("cursorActivity",u),r.off("focus",u),r.off("blur",i),i(r)),n&&(r.state.matchBrackets="object"==typeof n?n:{},r.on("cursorActivity",u),r.on("focus",u),r.on("blur",i))})),t.defineExtension("matchBrackets",(function(){a(this,!0)})),t.defineExtension("findMatchingBracket",(function(t,r,n){return(n||"boolean"==typeof r)&&(n?(n.strict=r,r=n):r=r?{strict:!0}:null),o(this,t,r)})),t.defineExtension("scanForBracket",(function(t,r,n,e){return s(this,t,r,n,e)}))}(n(7))},function(){},function(t){function r(n,e){return t.exports=r=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},r(n,e)}t.exports=r},function(t){var r=function(t){var r=Object.prototype,n=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function a(t,r,n,e){var i=Object.create((r&&r.prototype instanceof c?r:c).prototype),o=new T(e||[]);return i._invoke=function(t,r,n){var e="suspendedStart";return function(i,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=g(s,n);if(a){if(a===l)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===e)throw e="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);e="executing";var c=u(t,r,n);if("normal"===c.type){if(e=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(e="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),i}function u(t,r,n){try{return{type:"normal",arg:t.call(r,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var l={};function c(){}function f(){}function h(){}var p={};p[i]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(I([])));v&&v!==r&&n.call(v,i)&&(p=v);var E=h.prototype=c.prototype=Object.create(p);function b(t){["next","throw","return"].forEach((function(r){t[r]=function(t){return this._invoke(r,t)}}))}function m(t,r){var e;this._invoke=function(i,o){function s(){return new r((function(e,s){!function e(i,o,s,a){var l=u(t[i],t,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,s,a)}),(function(t){e("throw",t,s,a)})):r.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return e("throw",t,s,a)}))}a(l.arg)}(i,o,e,s)}))}return e=e?e.then(s,s):s()}}function g(t,r){var n=t.iterator[r.method];if(void 0===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,g(t,r),"throw"===r.method))return l;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var e=u(n,t.iterator,r.arg);if("throw"===e.type)return r.method="throw",r.arg=e.arg,r.delegate=null,l;var i=e.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,l):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,l)}function y(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function x(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function I(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(n.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return o.next=o}}return{next:N}}function N(){return{value:void 0,done:!0}}return f.prototype=E.constructor=h,h.constructor=f,h[s]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===f||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},b(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(r,n,e,i,o){void 0===o&&(o=Promise);var s=new m(a(r,n,e,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},b(E),E[s]="Generator",E[i]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var r=[];for(var n in t)r.push(n);return r.reverse(),function n(){for(;r.length;){var e=r.pop();if(e in t)return n.value=e,n.done=!1,n}return n.done=!0,n}},t.values=I,T.prototype={constructor:T,reset:function(t){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(x),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(n,e){return s.type="throw",s.arg=t,r.next=n,e&&(r.method="next",r.arg=void 0),!!e}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=r,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(s)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),l},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var e=n.completion;if("throw"===e.type){var i=e.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,r,n){var e=n(107),i=n(108),o=[n(115)];t.exports=e.createStore(i,o)},function(t,r,n){var e=n(40),i=e.slice,o=e.pluck,s=e.each,a=e.bind,u=e.create,l=e.isList,c=e.isFunction,f=e.isObject;t.exports={createStore:p};var h={version:"2.0.12",enabled:!1,get:function(t,r){var n=this.storage.read(this._namespacePrefix+t);return this._deserialize(n,r)},set:function(t,r){return void 0===r?this.remove(t):(this.storage.write(this._namespacePrefix+t,this._serialize(r)),r)},remove:function(t){this.storage.remove(this._namespacePrefix+t)},each:function(t){var r=this;this.storage.each((function(n,e){t.call(r,r._deserialize(n),(e||"").replace(r._namespaceRegexp,""))}))},clearAll:function(){this.storage.clearAll()},hasNamespace:function(t){return this._namespacePrefix=="__storejs_"+t+"_"},createStore:function(){return p.apply(this,arguments)},addPlugin:function(t){this._addPlugin(t)},namespace:function(t){return p(this.storage,this.plugins,t)}};function p(t,r,n){n||(n=""),t&&!l(t)&&(t=[t]),r&&!l(r)&&(r=[r]);var e=n?"__storejs_"+n+"_":"",p=n?new RegExp("^"+e):null;if(!/^[a-zA-Z0-9_\-]*$/.test(n))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var d=u({_namespacePrefix:e,_namespaceRegexp:p,_testStorage:function(t){try{var r="__storejs__test__";t.write(r,r);var n=t.read(r)===r;return t.remove(r),n}catch(t){return!1}},_assignPluginFnProp:function(t,r){var n=this[r];this[r]=function(){var r=i(arguments,0),e=this;function o(){if(n)return s(arguments,(function(t,n){r[n]=t})),n.apply(e,r)}var a=[o].concat(r);return t.apply(e,a)}},_serialize:function(t){return JSON.stringify(t)},_deserialize:function(t,r){if(!t)return r;var n="";try{n=JSON.parse(t)}catch(r){n=t}return void 0!==n?n:r},_addStorage:function(t){this.enabled||this._testStorage(t)&&(this.storage=t,this.enabled=!0)},_addPlugin:function(t){var r=this;if(l(t))s(t,(function(t){r._addPlugin(t)}));else if(!o(this.plugins,(function(r){return t===r}))){if(this.plugins.push(t),!c(t))throw new Error("Plugins must be function values that return objects");var n=t.call(this);if(!f(n))throw new Error("Plugins must return an object of function properties");s(n,(function(n,e){if(!c(n))throw new Error("Bad plugin property: "+e+" from plugin "+t.name+". Plugins should only return functions.");r._assignPluginFnProp(n,e)}))}},addStorage:function(t){!function(){var t="undefined"==typeof console?null:console;if(t){var r=t.warn?t.warn:t.log;r.apply(t,arguments)}}("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(t)}},h,{plugins:[]});return d.raw={},s(d,(function(t,r){c(t)&&(d.raw[r]=a(d,t))})),s(t,(function(t){d._addStorage(t)})),s(r,(function(t){d._addPlugin(t)})),d}},function(t,r,n){t.exports=[n(109),n(110),n(111),n(112),n(113),n(114)]},function(t,r,n){var e=n(40).Global;function i(){return e.localStorage}function o(t){return i().getItem(t)}t.exports={name:"localStorage",read:o,write:function(t,r){return i().setItem(t,r)},each:function(t){for(var r=i().length-1;r>=0;r--){var n=i().key(r);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t,r,n){var e=n(40).Global;t.exports={name:"oldFF-globalStorage",read:function(t){return i[t]},write:function(t,r){i[t]=r},each:o,remove:function(t){return i.removeItem(t)},clearAll:function(){o((function(t){delete i[t]}))}};var i=e.globalStorage;function o(t){for(var r=i.length-1;r>=0;r--){var n=i.key(r);t(i[n],n)}}},function(t,r,n){var e=n(40).Global;t.exports={name:"oldIE-userDataStorage",write:function(t,r){if(!s){var n=u(t);o((function(t){t.setAttribute(n,r),t.save("storejs")}))}},read:function(t){if(!s){var r=u(t),n=null;return o((function(t){n=t.getAttribute(r)})),n}},each:function(t){o((function(r){for(var n=r.XMLDocument.documentElement.attributes,e=n.length-1;e>=0;e--){var i=n[e];t(r.getAttribute(i.name),i.name)}}))},remove:function(t){var r=u(t);o((function(t){t.removeAttribute(r),t.save("storejs")}))},clearAll:function(){o((function(t){var r=t.XMLDocument.documentElement.attributes;t.load("storejs");for(var n=r.length-1;n>=0;n--)t.removeAttribute(r[n].name);t.save("storejs")}))}};var i=e.document,o=function(){if(!i||!i.documentElement||!i.documentElement.addBehavior)return null;var t,r,n;try{(r=new ActiveXObject("htmlfile")).open(),r.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),r.close(),n=(t=r.w.frames[0].document).createElement("div")}catch(r){n=i.createElement("div"),t=i.body}return function(r){var e=[].slice.call(arguments,0);e.unshift(n),t.appendChild(n),n.addBehavior("#default#userData"),n.load("storejs"),r.apply(this,e),t.removeChild(n)}}(),s=(e.navigator?e.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./),a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function u(t){return t.replace(/^\d/,"___$&").replace(a,"___")}},function(t,r,n){var e=n(40),i=e.Global,o=e.trim;t.exports={name:"cookieStorage",read:function(t){if(!t||!l(t))return null;var r="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(s.cookie.replace(new RegExp(r),"$1"))},write:function(t,r){t&&(s.cookie=escape(t)+"="+escape(r)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")},each:a,remove:u,clearAll:function(){a((function(t,r){u(r)}))}};var s=i.document;function a(t){for(var r=s.cookie.split(/; ?/g),n=r.length-1;n>=0;n--)if(o(r[n])){var e=r[n].split("="),i=unescape(e[0]);t(unescape(e[1]),i)}}function u(t){t&&l(t)&&(s.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function l(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)}},function(t,r,n){var e=n(40).Global;function i(){return e.sessionStorage}function o(t){return i().getItem(t)}t.exports={name:"sessionStorage",read:o,write:function(t,r){return i().setItem(t,r)},each:function(t){for(var r=i().length-1;r>=0;r--){var n=i().key(r);t(o(n),n)}},remove:function(t){return i().removeItem(t)},clearAll:function(){return i().clear()}}},function(t){t.exports={name:"memoryStorage",read:function(t){return r[t]},write:function(t,n){r[t]=n},each:function(t){for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},remove:function(t){delete r[t]},clearAll:function(){r={}}};var r={}},function(t,r,n){t.exports=function(){return n(116),{}}},function(module,exports){"object"!=typeof JSON&&(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(t){return t<10?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,(function(t){var r=meta[t];return"string"==typeof r?r:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'}function str(t,r){var n,e,i,o,s,a=gap,u=r[t];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(t)),"function"==typeof rep&&(u=rep.call(r,t,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,s=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,n=0;n<o;n+=1)s[n]=str(n,u)||"null";return i=0===s.length?"[]":gap?"[\n"+gap+s.join(",\n"+gap)+"\n"+a+"]":"["+s.join(",")+"]",gap=a,i}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(i=str(e=rep[n],u))&&s.push(quote(e)+(gap?": ":":")+i);else for(e in u)Object.prototype.hasOwnProperty.call(u,e)&&(i=str(e,u))&&s.push(quote(e)+(gap?": ":":")+i);return i=0===s.length?"{}":gap?"{\n"+gap+s.join(",\n"+gap)+"\n"+a+"}":"{"+s.join(",")+"}",gap=a,i}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value),"function"!=typeof JSON.stringify&&(meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,r,n){var e;if(gap="",indent="","number"==typeof n)for(e=0;e<n;e+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=r,r&&"function"!=typeof r&&("object"!=typeof r||"number"!=typeof r.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){var j;function walk(t,r){var n,e,i=t[r];if(i&&"object"==typeof i)for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(void 0!==(e=walk(i,n))?i[n]=e:delete i[n]);return reviver.call(t,r,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,(function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},function(t){t.exports=function(t){if(Array.isArray(t))return t}},function(t){t.exports=function(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}},function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===r(t)}},function(t,r,n){!function(t){var r,n,e=t.Pos;function i(t,r){for(var n=function(t){var r=t.flags;return null!=r?r:(t.ignoreCase?"i":"")+(t.global?"g":"")+(t.multiline?"m":"")}(t),e=n,i=0;i<r.length;i++)-1==e.indexOf(r.charAt(i))&&(e+=r.charAt(i));return n==e?t:new RegExp(t.source,e)}function o(t){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(t.source)}function s(t,r,n){r=i(r,"g");for(var o=n.line,s=n.ch,a=t.lastLine();o<=a;o++,s=0){r.lastIndex=s;var u=t.getLine(o),l=r.exec(u);if(l)return{from:e(o,l.index),to:e(o,l.index+l[0].length),match:l}}}function a(t,r,n){if(!o(r))return s(t,r,n);r=i(r,"gm");for(var a,u=1,l=n.line,c=t.lastLine();l<=c;){for(var f=0;f<u&&!(l>c);f++){var h=t.getLine(l++);a=null==a?h:a+"\n"+h}u*=2,r.lastIndex=n.ch;var p=r.exec(a);if(p){var d=a.slice(0,p.index).split("\n"),v=p[0].split("\n"),E=n.line+d.length-1,b=d[d.length-1].length;return{from:e(E,b),to:e(E+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:p}}}}function u(t,r,n){for(var e,i=0;i<=t.length;){r.lastIndex=i;var o=r.exec(t);if(!o)break;var s=o.index+o[0].length;if(s>t.length-n)break;(!e||s>e.index+e[0].length)&&(e=o),i=o.index+1}return e}function l(t,r,n){r=i(r,"g");for(var o=n.line,s=n.ch,a=t.firstLine();o>=a;o--,s=-1){var l=t.getLine(o),c=u(l,r,s<0?0:l.length-s);if(c)return{from:e(o,c.index),to:e(o,c.index+c[0].length),match:c}}}function c(t,r,n){if(!o(r))return l(t,r,n);r=i(r,"gm");for(var s,a=1,c=t.getLine(n.line).length-n.ch,f=n.line,h=t.firstLine();f>=h;){for(var p=0;p<a&&f>=h;p++){var d=t.getLine(f--);s=null==s?d:d+"\n"+s}a*=2;var v=u(s,r,c);if(v){var E=s.slice(0,v.index).split("\n"),b=v[0].split("\n"),m=f+E.length,g=E[E.length-1].length;return{from:e(m,g),to:e(m+b.length-1,1==b.length?g+b[0].length:b[b.length-1].length),match:v}}}}function f(t,r,n,e){if(t.length==r.length)return n;for(var i=0,o=n+Math.max(0,t.length-r.length);;){if(i==o)return i;var s=i+o>>1,a=e(t.slice(0,s)).length;if(a==n)return s;a>n?o=s:i=s+1}}function h(t,i,o,s){if(!i.length)return null;var a=s?r:n,u=a(i).split(/\r|\n\r?/);t:for(var l=o.line,c=o.ch,h=t.lastLine()+1-u.length;l<=h;l++,c=0){var p=t.getLine(l).slice(c),d=a(p);if(1==u.length){var v=d.indexOf(u[0]);if(-1==v)continue t;return o=f(p,d,v,a)+c,{from:e(l,f(p,d,v,a)+c),to:e(l,f(p,d,v+u[0].length,a)+c)}}var E=d.length-u[0].length;if(d.slice(E)==u[0]){for(var b=1;b<u.length-1;b++)if(a(t.getLine(l+b))!=u[b])continue t;var m=t.getLine(l+u.length-1),g=a(m),y=u[u.length-1];if(g.slice(0,y.length)==y)return{from:e(l,f(p,d,E,a)+c),to:e(l+u.length-1,f(m,g,y.length,a))}}}}function p(t,i,o,s){if(!i.length)return null;var a=s?r:n,u=a(i).split(/\r|\n\r?/);t:for(var l=o.line,c=o.ch,h=t.firstLine()-1+u.length;l>=h;l--,c=-1){var p=t.getLine(l);c>-1&&(p=p.slice(0,c));var d=a(p);if(1==u.length){var v=d.lastIndexOf(u[0]);if(-1==v)continue t;return{from:e(l,f(p,d,v,a)),to:e(l,f(p,d,v+u[0].length,a))}}var E=u[u.length-1];if(d.slice(0,E.length)==E){var b=1;for(o=l-u.length+1;b<u.length-1;b++)if(a(t.getLine(o+b))!=u[b])continue t;var m=t.getLine(l+1-u.length),g=a(m);if(g.slice(g.length-u[0].length)==u[0])return{from:e(l+1-u.length,f(m,g,m.length-u[0].length,a)),to:e(l,f(p,d,E.length,a))}}}}function d(t,r,n,o){var u;this.atOccurrence=!1,this.doc=t,n=n?t.clipPos(n):e(0,0),this.pos={from:n,to:n},"object"==typeof o?u=o.caseFold:(u=o,o=null),"string"==typeof r?(null==u&&(u=!1),this.matches=function(n,e){return(n?p:h)(t,r,e,u)}):(r=i(r,"gm"),this.matches=o&&!1===o.multiline?function(n,e){return(n?l:s)(t,r,e)}:function(n,e){return(n?c:a)(t,r,e)})}String.prototype.normalize?(r=function(t){return t.normalize("NFD").toLowerCase()},n=function(t){return t.normalize("NFD")}):(r=function(t){return t.toLowerCase()},n=function(t){return t}),d.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(r){for(var n=this.matches(r,this.doc.clipPos(r?this.pos.from:this.pos.to));n&&0==t.cmpPos(n.from,n.to);)r?n.from.ch?n.from=e(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(r,this.doc.clipPos(e(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=e(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(r,e(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=e(r?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(r,n){if(this.atOccurrence){var i=t.splitLines(r);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=e(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},t.defineExtension("getSearchCursor",(function(t,r,n){return new d(this.doc,t,r,n)})),t.defineDocExtension("getSearchCursor",(function(t,r,n){return new d(this,t,r,n)})),t.defineExtension("selectMatches",(function(r,n){for(var e=[],i=this.getSearchCursor(r,this.getCursor("from"),n);i.findNext()&&!(t.cmpPos(i.to(),this.getCursor("to"))>0);)e.push({anchor:i.from(),head:i.to()});e.length&&this.setSelections(e,0)}))}(n(7))},function(t,r,n){(function(t){n.d(r,"a",(function(){return h}));var e=n(23),i=n(124),o=n.n(i),s=e.a.xsd,a=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,u={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},l=/[\x00-\x20<>\\"\{\}\|\^\`]/,c={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},f=/$0^/,h=function(){function r(t){if(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),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]*)?$/,this._lineMode=!!(t=t||{}).lineMode)for(var n in this._n3Mode=!1,this)!(n in c)&&this[n]instanceof RegExp&&(this[n]=f);else this._n3Mode=!1!==t.n3;this._comments=!!t.comments,this._literalClosingPos=0}var n;return(n=[{key:"_tokenizeToEnd",value:function(t,r){for(var n=this._input,e=this._comments;;){for(var i,o;i=this._newline.exec(n);)e&&(o=this._comment.exec(i[0]))&&t(null,{line:this._line,type:"comment",value:o[1],prefix:""}),n=n.substr(i[0].length,n.length),this._line++;if(!i&&(i=this._whitespace.exec(n))&&(n=n.substr(i[0].length,n.length)),this._endOfFile.test(n))return r&&(e&&(o=this._comment.exec(n))&&t(null,{line:this._line,type:"comment",value:o[1],prefix:""}),t(n=null,{line:this._line,type:"eof",value:"",prefix:""})),this._input=n;var a=this._line,u="",c="",f="",h=n[0],p=null,d=0,v=!1;switch(h){case"^":if(n.length<3)break;if("^"!==n[1]){this._n3Mode&&(d=1,u="^");break}if(this._previousMarker="^^","<"!==(n=n.substr(2))[0]){v=!0;break}case"<":if(p=this._unescapedIri.exec(n))u="IRI",c=p[1];else if(p=this._iri.exec(n)){if(null===(c=this._unescape(p[1]))||l.test(c))return g(this);u="IRI"}else this._n3Mode&&n.length>1&&"="===n[1]&&(u="inverse",d=2,c=">");break;case"_":((p=this._blank.exec(n))||r&&(p=this._blank.exec(n+" ")))&&(u="blank",f="_",c=p[1]);break;case'"':if(p=this._simpleQuotedString.exec(n))c=p[1];else{var E=this._parseLiteral(n);if(d=E.matchLength,null===(c=E.value))return g(this)}null===p&&0===d||(u="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(p=this._simpleApostropheString.exec(n))c=p[1];else{var b=this._parseLiteral(n);if(d=b.matchLength,null===(c=b.value))return g(this)}null===p&&0===d||(u="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(p=this._variable.exec(n))&&(u="var",c=p[0]);break;case"@":"literal"===this._previousMarker&&(p=this._langcode.exec(n))?(u="langcode",c=p[1]):(p=this._keyword.exec(n))&&(u=p[0]);break;case".":if(1===n.length?r:n[1]<"0"||n[1]>"9"){u=".",d=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(p=this._number.exec(n)||r&&(p=this._number.exec(n+" ")))&&(u="literal",c=p[0],f="string"==typeof p[1]?s.double:"string"==typeof p[2]?s.decimal:s.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(p=this._sparqlKeyword.exec(n))?u=p[0].toUpperCase():v=!0;break;case"f":case"t":(p=this._boolean.exec(n))?(u="literal",c=p[0],f=s.boolean):v=!0;break;case"a":(p=this._shortPredicates.exec(n))?(u="abbreviation",c="a"):v=!0;break;case"=":this._n3Mode&&n.length>1&&(u="abbreviation",">"!==n[1]?(d=1,c="="):(d=2,c=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"{":case"}":this._lineMode||(d=1,u=h);break;default:v=!0}if(v&&("@prefix"!==this._previousMarker&&"PREFIX"!==this._previousMarker||!(p=this._prefix.exec(n))?((p=this._prefixed.exec(n))||r&&(p=this._prefixed.exec(n+" ")))&&(u="prefixed",f=p[1]||"",c=this._unescape(p[2])):(u="prefix",c=p[1]||"")),"^^"===this._previousMarker)switch(u){case"prefixed":u="type";break;case"IRI":u="typeIRI";break;default:u=""}if(!u)return r||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?g(this):this._input=n;var m={line:a,type:u,value:c,prefix:f};t(null,m),this.previousToken=m,this._previousMarker=u,n=n.substr(d||p[0].length,n.length)}function g(r){t(r._syntaxError(/^\S*/.exec(n)[0]))}}},{key:"_unescape",value:function(t){var r=!1,n=t.replace(a,(function(t,n,e,i){if("string"==typeof n)return String.fromCharCode(Number.parseInt(n,16));if("string"==typeof e){var o=Number.parseInt(e,16);return o<=65535?String.fromCharCode(Number.parseInt(e,16)):String.fromCharCode(55296+((o-=65536)>>10),56320+(1023&o))}return i in u?u[i]:(r=!0,"")}));return r?null:n}},{key:"_parseLiteral",value:function(t){if(t.length>=3){for(var r=t.match(/^(?:"""|"|'''|'|)/)[0],n=r.length,e=Math.max(this._literalClosingPos,n);(e=t.indexOf(r,e))>0;){for(var i=0;"\\"===t[e-i-1];)i++;if(i%2==0){var o=t.substring(n,e),s=o.split(/\r\n|\r|\n/).length-1,a=e+n;if(1===n&&0!==s||3===n&&this._lineMode)break;return this._line+=s,{value:this._unescape(o),matchLength:a}}e++}this._literalClosingPos=t.length-n+1}return{value:"",matchLength:0}}},{key:"_syntaxError",value:function(t){this._input=null;var r=new Error('Unexpected "'+t+'" on line '+this._line+".");return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}},{key:"tokenize",value:function(r,n){var e=this;if(this._line=1,"string"==typeof r){if(this._input=r,"function"!=typeof n){var i,s=[];if(this._tokenizeToEnd((function(t,r){t?i=t:s.push(r)}),!0),i)throw i;return s}o()((function(){return e._tokenizeToEnd(n,!0)}))}else this._input="",this._pendingBuffer=null,"function"==typeof r.setEncoding&&r.setEncoding("utf8"),r.on("data",(function(r){null!==e._input&&0!==r.length&&(e._pendingBuffer&&(r=t.concat([e._pendingBuffer,r]),e._pendingBuffer=null),128&r[r.length-1]?e._pendingBuffer=r:(e._input+=r,e._tokenizeToEnd(n,!1)))})),r.on("end",(function(){null!==e._input&&e._tokenizeToEnd(n,!0)})),r.on("error",n)}}])&&function(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}(r.prototype,n),r}()}).call(this,n(132).Buffer)},function(t){let r;t.exports="function"==typeof queueMicrotask?queueMicrotask:t=>(r||(r=Promise.resolve())).then(t).catch((t=>setTimeout((()=>{throw t}),0)))},function(t,r){var n,e;void 0===(e="function"==typeof(n=function t(){var r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,e=n&&/blob:/i.test((r.location||{}).protocol),i={},o=0,s={parse:function(n,e){var a=(e=e||{}).dynamicTyping||!1;if(x(a)&&(e.dynamicTypingFunction=a,a={}),e.dynamicTyping=a,e.transform=!!x(e.transform)&&e.transform,e.worker&&s.WORKERS_SUPPORTED){var u=function(){if(!s.WORKERS_SUPPORTED)return!1;var n,e,a=(n=r.URL||r.webkitURL||null,e=t.toString(),s.BLOB_URL||(s.BLOB_URL=n.createObjectURL(new Blob(["(",e,")();"],{type:"text/javascript"})))),u=new r.Worker(a);return u.onmessage=E,u.id=o++,i[u.id]=u}();return u.userStep=e.step,u.userChunk=e.chunk,u.userComplete=e.complete,u.userError=e.error,e.step=x(e.step),e.chunk=x(e.chunk),e.complete=x(e.complete),e.error=x(e.error),delete e.worker,void u.postMessage({input:n,config:e,workerId:u.id})}var p=null;return"string"==typeof n?p=e.download?new l(e):new f(e):!0===n.readable&&x(n.read)&&x(n.on)?p=new h(e):(r.File&&n instanceof File||n instanceof Object)&&(p=new c(e)),p.stream(n)},unparse:function(t,r){var n=!1,e=!0,i=",",o="\r\n",a='"',u=a+a,l=!1,c=null,f=!1;!function(){if("object"==typeof r){if("string"!=typeof r.delimiter||s.BAD_DELIMITERS.filter((function(t){return-1!==r.delimiter.indexOf(t)})).length||(i=r.delimiter),("boolean"==typeof r.quotes||"function"==typeof r.quotes||Array.isArray(r.quotes))&&(n=r.quotes),"boolean"!=typeof r.skipEmptyLines&&"string"!=typeof r.skipEmptyLines||(l=r.skipEmptyLines),"string"==typeof r.newline&&(o=r.newline),"string"==typeof r.quoteChar&&(a=r.quoteChar),"boolean"==typeof r.header&&(e=r.header),Array.isArray(r.columns)){if(0===r.columns.length)throw new Error("Option columns is empty");c=r.columns}void 0!==r.escapeChar&&(u=r.escapeChar+a),"boolean"==typeof r.escapeFormulae&&(f=r.escapeFormulae)}}();var h=new RegExp(d(a),"g");if("string"==typeof t&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return p(null,t,l);if("object"==typeof t[0])return p(c||Object.keys(t[0]),t,l)}else if("object"==typeof t)return"string"==typeof t.data&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:"object"==typeof t.data[0]?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||"object"==typeof t.data[0]||(t.data=[t.data])),p(t.fields||[],t.data||[],l);throw new Error("Unable to serialize unrecognized input");function p(t,r,n){var s="";"string"==typeof t&&(t=JSON.parse(t)),"string"==typeof r&&(r=JSON.parse(r));var a=Array.isArray(t)&&0<t.length,u=!Array.isArray(r[0]);if(a&&e){for(var l=0;l<t.length;l++)0<l&&(s+=i),s+=v(t[l],l);0<r.length&&(s+=o)}for(var c=0;c<r.length;c++){var f=a?t.length:r[c].length,h=!1,p=a?0===Object.keys(r[c]).length:0===r[c].length;if(n&&!a&&(h="greedy"===n?""===r[c].join("").trim():1===r[c].length&&0===r[c][0].length),"greedy"===n&&a){for(var d=[],E=0;E<f;E++)d.push(r[c][u?t[E]:E]);h=""===d.join("").trim()}if(!h){for(var b=0;b<f;b++)0<b&&!p&&(s+=i),s+=v(r[c][a&&u?t[b]:b],b);c<r.length-1&&(!n||0<f&&!p)&&(s+=o)}}return s}function v(t,r){if(null==t)return"";if(t.constructor===Date)return JSON.stringify(t).slice(1,25);!0===f&&"string"==typeof t&&null!==t.match(/^[=+\-@].*$/)&&(t="'"+t);var e=t.toString().replace(h,u);return"boolean"==typeof n&&n||"function"==typeof n&&n(t,r)||Array.isArray(n)&&n[r]||function(t,r){for(var n=0;n<r.length;n++)if(-1<t.indexOf(r[n]))return!0;return!1}(e,s.BAD_DELIMITERS)||-1<e.indexOf(i)||" "===e.charAt(0)||" "===e.charAt(e.length-1)?a+e+a:e}}};if(s.RECORD_SEP=String.fromCharCode(30),s.UNIT_SEP=String.fromCharCode(31),s.BYTE_ORDER_MARK="\ufeff",s.BAD_DELIMITERS=["\r","\n",'"',s.BYTE_ORDER_MARK],s.WORKERS_SUPPORTED=!n&&!!r.Worker,s.NODE_STREAM_INPUT=1,s.LocalChunkSize=10485760,s.RemoteChunkSize=5242880,s.DefaultDelimiter=",",s.Parser=v,s.ParserHandle=p,s.NetworkStreamer=l,s.FileStreamer=c,s.StringStreamer=f,s.ReadableStreamStreamer=h,r.jQuery){var a=r.jQuery;a.fn.parse=function(t){var n=t.config||{},e=[];return this.each((function(){if("INPUT"!==a(this).prop("tagName").toUpperCase()||"file"!==a(this).attr("type").toLowerCase()||!r.FileReader||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)e.push({file:this.files[t],inputElem:this,instanceConfig:a.extend({},n)})})),i(),this;function i(){if(0!==e.length){var r,n,i,u=e[0];if(x(t.before)){var l=t.before(u.file,u.inputElem);if("object"==typeof l){if("abort"===l.action)return r=u.file,n=u.inputElem,i=l.reason,void(x(t.error)&&t.error({name:"AbortError"},r,n,i));if("skip"===l.action)return void o();"object"==typeof l.config&&(u.instanceConfig=a.extend(u.instanceConfig,l.config))}else if("skip"===l)return void o()}var c=u.instanceConfig.complete;u.instanceConfig.complete=function(t){x(c)&&c(t,u.file,u.inputElem),o()},s.parse(u.file,u.instanceConfig)}else x(t.complete)&&t.complete()}function o(){e.splice(0,1),i()}}}function u(t){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(t){var r=g(t);r.chunkSize=parseInt(r.chunkSize),t.step||t.chunk||(r.chunkSize=null),this._handle=new p(r),(this._handle.streamer=this)._config=r}.call(this,t),this.parseChunk=function(t,n){if(this.isFirstChunk&&x(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(t);void 0!==i&&(t=i)}this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+t;this._partialLine="";var a=this._handle.parse(o,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var u=a.meta.cursor;this._finished||(this._partialLine=o.substring(u-this._baseIndex),this._baseIndex=u),a&&a.data&&(this._rowCount+=a.data.length);var l=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(e)r.postMessage({results:a,workerId:s.WORKER_ID,finished:l});else if(x(this._config.chunk)&&!n){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!l||!x(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),l||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(t){x(this._config.error)?this._config.error(t):e&&this._config.error&&r.postMessage({workerId:s.WORKER_ID,error:t,finished:!1})}}function l(t){var r;(t=t||{}).chunkSize||(t.chunkSize=s.RemoteChunkSize),u.call(this,t),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(t){this._input=t,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=y(this._chunkLoaded,this),r.onerror=y(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var t=this._config.downloadRequestHeaders;for(var e in t)r.setRequestHeader(e,t[e])}this._config.chunkSize&&r.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{r.send(this._config.downloadRequestBody)}catch(t){this._chunkError(t.message)}n&&0===r.status&&this._chunkError()}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(t){var r=t.getResponseHeader("Content-Range");return null===r?-1:parseInt(r.substring(r.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)))},this._chunkError=function(t){this._sendError(new Error(r.statusText||t))}}function c(t){var r,n;(t=t||{}).chunkSize||(t.chunkSize=s.LocalChunkSize),u.call(this,t);var e="undefined"!=typeof FileReader;this.stream=function(t){this._input=t,n=t.slice||t.webkitSlice||t.mozSlice,e?((r=new FileReader).onload=y(this._chunkLoaded,this),r.onerror=y(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var t=this._input;if(this._config.chunkSize){var i=Math.min(this._start+this._config.chunkSize,this._input.size);t=n.call(t,this._start,i)}var o=r.readAsText(t,this._config.encoding);e||this._chunkLoaded({target:{result:o}})},this._chunkLoaded=function(t){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(t.target.result)},this._chunkError=function(){this._sendError(r.error)}}function f(t){var r;u.call(this,t=t||{}),this.stream=function(t){return r=t,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var t,n=this._config.chunkSize;return n?(t=r.substring(0,n),r=r.substring(n)):(t=r,r=""),this._finished=!r,this.parseChunk(t)}}}function h(t){u.call(this,t=t||{});var r=[],n=!0,e=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(t){this._input=t,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){e&&1===r.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):n=!0},this._streamData=y((function(t){try{r.push("string"==typeof t?t:t.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(t){this._streamError(t)}}),this),this._streamError=y((function(t){this._streamCleanUp(),this._sendError(t)}),this),this._streamEnd=y((function(){this._streamCleanUp(),e=!0,this._streamData("")}),this),this._streamCleanUp=y((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function p(t){var r,n,e,i=Math.pow(2,53),o=-i,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\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))$/,l=this,c=0,f=0,h=!1,p=!1,E=[],b={data:[],errors:[],meta:{}};if(x(t.step)){var m=t.step;t.step=function(r){if(b=r,I())T();else{if(T(),0===b.data.length)return;c+=r.data.length,t.preview&&c>t.preview?n.abort():(b.data=b.data[0],m(b,l))}}}function y(r){return"greedy"===t.skipEmptyLines?""===r.join("").trim():1===r.length&&0===r[0].length}function T(){if(b&&e&&(A("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+s.DefaultDelimiter+"'"),e=!1),t.skipEmptyLines)for(var r=0;r<b.data.length;r++)y(b.data[r])&&b.data.splice(r--,1);return I()&&function(){if(b)if(Array.isArray(b.data[0])){for(var r=0;I()&&r<b.data.length;r++)b.data[r].forEach(n);b.data.splice(0,1)}else b.data.forEach(n);function n(r,n){x(t.transformHeader)&&(r=t.transformHeader(r,n)),E.push(r)}}(),function(){if(!b||!t.header&&!t.dynamicTyping&&!t.transform)return b;function r(r,n){var e,i=t.header?{}:[];for(e=0;e<r.length;e++){var o=e,s=r[e];t.header&&(o=e>=E.length?"__parsed_extra":E[e]),t.transform&&(s=t.transform(s,o)),s=N(o,s),"__parsed_extra"===o?(i[o]=i[o]||[],i[o].push(s)):i[o]=s}return t.header&&(e>E.length?A("FieldMismatch","TooManyFields","Too many fields: expected "+E.length+" fields but parsed "+e,f+n):e<E.length&&A("FieldMismatch","TooFewFields","Too few fields: expected "+E.length+" fields but parsed "+e,f+n)),i}var n=1;return!b.data.length||Array.isArray(b.data[0])?(b.data=b.data.map(r),n=b.data.length):b.data=r(b.data,0),t.header&&b.meta&&(b.meta.fields=E),f+=n,b}()}function I(){return t.header&&0===E.length}function N(r,n){return e=r,t.dynamicTypingFunction&&void 0===t.dynamicTyping[e]&&(t.dynamicTyping[e]=t.dynamicTypingFunction(e)),!0===(t.dynamicTyping[e]||t.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(function(t){if(a.test(t)){var r=parseFloat(t);if(o<r&&r<i)return!0}return!1}(n)?parseFloat(n):u.test(n)?new Date(n):""===n?null:n):n;var e}function A(t,r,n,e){var i={type:t,code:r,message:n};void 0!==e&&(i.row=e),b.errors.push(i)}this.parse=function(i,o,a){if(t.newline||(t.newline=function(t,r){t=t.substring(0,1048576);var n=new RegExp(d(r)+"([^]*?)"+d(r),"gm"),e=(t=t.replace(n,"")).split("\r"),i=t.split("\n");if(1===e.length||1<i.length&&i[0].length<e[0].length)return"\n";for(var o=0,s=0;s<e.length;s++)"\n"===e[s][0]&&o++;return o>=e.length/2?"\r\n":"\r"}(i,t.quoteChar||'"')),e=!1,t.delimiter)x(t.delimiter)&&(t.delimiter=t.delimiter(i),b.meta.delimiter=t.delimiter);else{var u=function(r,n,e,i,o){var a,u,l,c;o=o||[",","\t","|",";",s.RECORD_SEP,s.UNIT_SEP];for(var f=0;f<o.length;f++){var h=o[f],p=0,d=0,E=0;l=void 0;for(var b=new v({comments:i,delimiter:h,newline:n,preview:10}).parse(r),m=0;m<b.data.length;m++)if(e&&y(b.data[m]))E++;else{var g=b.data[m].length;d+=g,void 0!==l?0<g&&(p+=Math.abs(g-l),l=g):l=g}0<b.data.length&&(d/=b.data.length-E),(void 0===u||p<=u)&&(void 0===c||c<d)&&1.99<d&&(u=p,a=h,c=d)}return{successful:!!(t.delimiter=a),bestDelimiter:a}}(i,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess);u.successful?t.delimiter=u.bestDelimiter:(e=!0,t.delimiter=s.DefaultDelimiter),b.meta.delimiter=t.delimiter}var l=g(t);return t.preview&&t.header&&l.preview++,r=i,n=new v(l),b=n.parse(r,o,a),T(),h?{meta:{paused:!0}}:b||{meta:{paused:!1}}},this.paused=function(){return h},this.pause=function(){h=!0,n.abort(),r=x(t.chunk)?"":r.substring(n.getCharIndex())},this.resume=function(){l.streamer._halted?(h=!1,l.streamer.parseChunk(r,!0)):setTimeout(l.resume,3)},this.aborted=function(){return p},this.abort=function(){p=!0,n.abort(),b.meta.aborted=!0,x(t.complete)&&t.complete(b),r=""}}function d(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(t){var r,n=(t=t||{}).delimiter,e=t.newline,i=t.comments,o=t.step,a=t.preview,u=t.fastMode,l=r=void 0===t.quoteChar?'"':t.quoteChar;if(void 0!==t.escapeChar&&(l=t.escapeChar),("string"!=typeof n||-1<s.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw new Error("Comment character same as delimiter");!0===i?i="#":("string"!=typeof i||-1<s.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==e&&"\r"!==e&&"\r\n"!==e&&(e="\n");var c=0,f=!1;this.parse=function(t,s,h){if("string"!=typeof t)throw new Error("Input must be a string");var p=t.length,v=n.length,E=e.length,b=i.length,m=x(o),g=[],y=[],T=[],I=c=0;if(!t)return M();if(u||!1!==u&&-1===t.indexOf(r)){for(var N=t.split(e),A=0;A<N.length;A++){if(c+=(T=N[A]).length,A!==N.length-1)c+=e.length;else if(h)return M();if(!i||T.substring(0,b)!==i){if(m){if(g=[],_(T.split(n)),j(),f)return M()}else _(T.split(n));if(a&&a<=A)return g=g.slice(0,a),M(!0)}}return M()}for(var S=t.indexOf(n,c),L=t.indexOf(e,c),C=new RegExp(d(l)+d(r),"g"),R=t.indexOf(r,c);;)if(t[c]!==r)if(i&&0===T.length&&t.substring(c,c+b)===i){if(-1===L)return M();L=t.indexOf(e,c=L+E),S=t.indexOf(n,c)}else if(-1!==S&&(S<L||-1===L))T.push(t.substring(c,S)),S=t.indexOf(n,c=S+v);else{if(-1===L)break;if(T.push(t.substring(c,L)),D(L+E),m&&(j(),f))return M();if(a&&g.length>=a)return M(!0)}else for(R=c,c++;;){if(-1===(R=t.indexOf(r,R+1)))return h||y.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:g.length,index:c}),P();if(R===p-1)return P(t.substring(c,R).replace(C,r));if(r!==l||t[R+1]!==l){if(r===l||0===R||t[R-1]!==l){-1!==S&&S<R+1&&(S=t.indexOf(n,R+1)),-1!==L&&L<R+1&&(L=t.indexOf(e,R+1));var w=k(-1===L?S:Math.min(S,L));if(t[R+1+w]===n){T.push(t.substring(c,R).replace(C,r)),t[c=R+1+w+v]!==r&&(R=t.indexOf(r,c)),S=t.indexOf(n,c),L=t.indexOf(e,c);break}var O=k(L);if(t.substring(R+1+O,R+1+O+E)===e){if(T.push(t.substring(c,R).replace(C,r)),D(R+1+O+E),S=t.indexOf(n,c),R=t.indexOf(r,c),m&&(j(),f))return M();if(a&&g.length>=a)return M(!0);break}y.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:g.length,index:c}),R++}}else R++}return P();function _(t){g.push(t),I=c}function k(r){var n=0;if(-1!==r){var e=t.substring(R+1,r);e&&""===e.trim()&&(n=e.length)}return n}function P(r){return h||(void 0===r&&(r=t.substring(c)),T.push(r),c=p,_(T),m&&j()),M()}function D(r){c=r,_(T),T=[],L=t.indexOf(e,c)}function M(t){return{data:g,errors:y,meta:{delimiter:n,linebreak:e,aborted:f,truncated:!!t,cursor:I+(s||0)}}}function j(){o(M()),g=[],y=[]}},this.abort=function(){f=!0},this.getCharIndex=function(){return c}}function E(t){var r=t.data,n=i[r.workerId],e=!1;if(r.error)n.userError(r.error,r.file);else if(r.results&&r.results.data){var o={abort:function(){e=!0,b(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:m,resume:m};if(x(n.userStep)){for(var s=0;s<r.results.data.length&&(n.userStep({data:r.results.data[s],errors:r.results.errors,meta:r.results.meta},o),!e);s++);delete r.results}else x(n.userChunk)&&(n.userChunk(r.results,o,r.file),delete r.results)}r.finished&&!e&&b(r.workerId,r.results)}function b(t,r){var n=i[t];x(n.userComplete)&&n.userComplete(r),n.terminate(),delete i[t]}function m(){throw new Error("Not implemented.")}function g(t){if("object"!=typeof t||null===t)return t;var r=Array.isArray(t)?[]:{};for(var n in t)r[n]=g(t[n]);return r}function y(t,r){return function(){t.apply(r,arguments)}}function x(t){return"function"==typeof t}return e&&(r.onmessage=function(t){var n=t.data;if(void 0===s.WORKER_ID&&n&&(s.WORKER_ID=n.workerId),"string"==typeof n.input)r.postMessage({workerId:s.WORKER_ID,results:s.parse(n.input,n.config),finished:!0});else if(r.File&&n.input instanceof File||n.input instanceof Object){var e=s.parse(n.input,n.config);e&&r.postMessage({workerId:s.WORKER_ID,results:e,finished:!0})}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(f.prototype=Object.create(f.prototype)).constructor=f,(h.prototype=Object.create(u.prototype)).constructor=h,s})?n.apply(r,[]):n)||(t.exports=e)},function(t,r,n){var e=n(117),i=n(120),o=n(94),s=n(119);t.exports=function(t){return e(t)||i(t)||o(t)||s()}},function(t,r,n){(function(t){!function(r){function n(){}function e(){e.init.call(this)}function i(t){return void 0===t._maxListeners?e.defaultMaxListeners:t._maxListeners}function o(t,r,n){if(r)t.call(n);else for(var e=t.length,i=p(t,e),o=0;o<e;++o)i[o].call(n)}function s(t,r,n,e){if(r)t.call(n,e);else for(var i=t.length,o=p(t,i),s=0;s<i;++s)o[s].call(n,e)}function a(t,r,n,e,i){if(r)t.call(n,e,i);else for(var o=t.length,s=p(t,o),a=0;a<o;++a)s[a].call(n,e,i)}function u(t,r,n,e,i,o){if(r)t.call(n,e,i,o);else for(var s=t.length,a=p(t,s),u=0;u<s;++u)a[u].call(n,e,i,o)}function l(t,r,n,e){if(r)t.apply(n,e);else for(var i=t.length,o=p(t,i),s=0;s<i;++s)o[s].apply(n,e)}function c(t,r,e,o){var s,a,u,l;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if((a=t._events)?(a.newListener&&(t.emit("newListener",r,e.listener?e.listener:e),a=t._events),u=a[r]):(a=t._events=new n,t._eventsCount=0),u){if("function"==typeof u?u=a[r]=o?[e,u]:[u,e]:o?u.unshift(e):u.push(e),!u.warned&&(s=i(t))&&s>0&&u.length>s){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+r+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=r,c.count=u.length,l=c,"function"==typeof console.warn?console.warn(l):console.log(l)}}else u=a[r]=e,++t._eventsCount;return t}function f(t,r,n){var e=!1;function i(){t.removeListener(r,i),e||(e=!0,n.apply(t,arguments))}return i.listener=n,i}function h(t){var r=this._events;if(r){var n=r[t];if("function"==typeof n)return 1;if(n)return n.length}return 0}function p(t,r){for(var n=new Array(r);r--;)n[r]=t[r];return n}n.prototype=Object.create(null),e.EventEmitter=e,e.usingDomains=!1,e.prototype.domain=void 0,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.init=function(){this.domain=null,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new n,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},e.prototype.getMaxListeners=function(){return i(this)},e.prototype.emit=function(t){var r,n,e,i,c,f,h,p="error"===t;if(f=this._events)p=p&&null==f.error;else if(!p)return!1;if(h=this.domain,p){if(r=arguments[1],!h){if(r instanceof Error)throw r;var d=new Error('Uncaught, unspecified "error" event. ('+r+")");throw d.context=r,d}return r||(r=new Error('Uncaught, unspecified "error" event')),r.domainEmitter=this,r.domain=h,r.domainThrown=!1,h.emit("error",r),!1}if(!(n=f[t]))return!1;var v="function"==typeof n;switch(e=arguments.length){case 1:o(n,v,this);break;case 2:s(n,v,this,arguments[1]);break;case 3:a(n,v,this,arguments[1],arguments[2]);break;case 4:u(n,v,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(e-1),c=1;c<e;c++)i[c-1]=arguments[c];l(n,v,this,i)}return!0},e.prototype.on=e.prototype.addListener=function(t,r){return c(this,t,r,!1)},e.prototype.prependListener=function(t,r){return c(this,t,r,!0)},e.prototype.once=function(t,r){if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');return this.on(t,f(this,t,r)),this},e.prototype.prependOnceListener=function(t,r){if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,f(this,t,r)),this},e.prototype.removeListener=function(t,r){var e,i,o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(e=i[t]))return this;if(e===r||e.listener&&e.listener===r)0==--this._eventsCount?this._events=new n:(delete i[t],i.removeListener&&this.emit("removeListener",t,e.listener||r));else if("function"!=typeof e){for(o=-1,s=e.length;s-- >0;)if(e[s]===r||e[s].listener&&e[s].listener===r){a=e[s].listener,o=s;break}if(o<0)return this;if(1===e.length){if(e[0]=void 0,0==--this._eventsCount)return this._events=new n,this;delete i[t]}else!function(t,r){for(var n=r,e=n+1,i=t.length;e<i;n+=1,e+=1)t[n]=t[e];t.pop()}(e,o);i.removeListener&&this.emit("removeListener",t,a||r)}return this},e.prototype.removeAllListeners=function(t){var r,e;if(!(e=this._events))return this;if(!e.removeListener)return 0===arguments.length?(this._events=new n,this._eventsCount=0):e[t]&&(0==--this._eventsCount?this._events=new n:delete e[t]),this;if(0===arguments.length){for(var i,o=Object.keys(e),s=0;s<o.length;++s)"removeListener"!==(i=o[s])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new n,this._eventsCount=0,this}if("function"==typeof(r=e[t]))this.removeListener(t,r);else if(r)do{this.removeListener(t,r[r.length-1])}while(r[0]);return this},e.prototype.listeners=function(t){var r,n=this._events;return n&&(r=n[t])?"function"==typeof r?[r.listener||r]:function(t){for(var r=new Array(t.length),n=0;n<r.length;++n)r[n]=t[n].listener||t[n];return r}(r):[]},e.listenerCount=function(t,r){return"function"==typeof t.listenerCount?t.listenerCount(r):h.call(t,r)},e.prototype.listenerCount=h,e.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var d=void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},v=[],E=[],b="undefined"!=typeof Uint8Array?Uint8Array:Array,m=!1;function g(){m=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=t.length;r<n;++r)v[r]=t[r],E[t.charCodeAt(r)]=r;E["-".charCodeAt(0)]=62,E["_".charCodeAt(0)]=63}function y(t,r,n){for(var e,i=[],o=r;o<n;o+=3)i.push(v[(e=(t[o]<<16)+(t[o+1]<<8)+t[o+2])>>18&63]+v[e>>12&63]+v[e>>6&63]+v[63&e]);return i.join("")}function x(t,r,n,e,i){var o,s,a=8*i-e-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?i-1:0,h=n?-1:1,p=t[r+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[r+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=e;c>0;s=256*s+t[r+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,e),o-=l}return(p?-1:1)*s*Math.pow(2,o-e)}function T(t,r,n,e,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,d=e?1:-1,v=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,s=c):(s=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-s))<1&&(s--,u*=2),(r+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(r*u-1)*Math.pow(2,i),s+=f):(a=r*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+p]=255&s,p+=d,s/=256,l-=8);t[n+p-d]|=128*v}var I={}.toString,N=Array.isArray||function(t){return"[object Array]"==I.call(t)};function A(){return L.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(t,r){if(A()<r)throw new RangeError("Invalid typed array length");return L.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=L.prototype:(null===t&&(t=new L(r)),t.length=r),t}function L(t,r,n){if(!(L.TYPED_ARRAY_SUPPORT||this instanceof L))return new L(t,r,n);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return w(this,t)}return C(this,t,r,n)}function C(t,r,n,e){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,n,e){if(n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===e?new Uint8Array(r):void 0===e?new Uint8Array(r,n):new Uint8Array(r,n,e),L.TYPED_ARRAY_SUPPORT?(t=r).__proto__=L.prototype:t=O(t,r),t}(t,r,n,e):"string"==typeof r?function(t,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!L.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=0|P(r,n),i=(t=S(t,e)).write(r,n);return i!==e&&(t=t.slice(0,i)),t}(t,r,n):function(t,r){if(k(r)){var n=0|_(r.length);return 0===(t=S(t,n)).length||r.copy(t,0,0,n),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(e=r.length)!=e?S(t,0):O(t,r);if("Buffer"===r.type&&N(r.data))return O(t,r.data)}var e;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function R(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function w(t,r){if(R(r),t=S(t,r<0?0:0|_(r)),!L.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)t[n]=0;return t}function O(t,r){var n=r.length<0?0:0|_(r.length);t=S(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function _(t){if(t>=A())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A().toString(16)+" bytes");return 0|t}function k(t){return!(null==t||!t._isBuffer)}function P(t,r){if(k(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return ot(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return st(t).length;default:if(e)return ot(t).length;r=(""+r).toLowerCase(),e=!0}}function D(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return X(this,r,n);case"utf8":case"utf-8":return $(this,r,n);case"ascii":return W(this,r,n);case"latin1":case"binary":return Y(this,r,n);case"base64":return z(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function M(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function j(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=L.from(r,e)),k(r))return 0===r.length?-1:G(t,r,n,e,i);if("number"==typeof r)return r&=255,L.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):G(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function G(t,r,n,e,i){var o,s=1,a=t.length,u=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(t,o)===l(r,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(t,o+h)!==l(r,h)){f=!1;break}if(f)return o}return-1}function F(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e))>i&&(e=i):e=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var s=0;s<e;++s){var a=parseInt(r.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function U(t,r,n,e){return at(ot(r,t.length-n),t,n,e)}function B(t,r,n,e){return at(function(t){for(var r=[],n=0;n<t.length;++n)r.push(255&t.charCodeAt(n));return r}(r),t,n,e)}function V(t,r,n,e){return B(t,r,n,e)}function q(t,r,n,e){return at(st(r),t,n,e)}function H(t,r,n,e){return at(function(t,r){for(var n,e,i=[],o=0;o<t.length&&!((r-=2)<0);++o)e=(n=t.charCodeAt(o))>>8,i.push(n%256),i.push(e);return i}(r,t.length-n),t,n,e)}function z(t,r,n){return function(t){var r;m||g();for(var n=t.length,e=n%3,i="",o=[],s=0,a=n-e;s<a;s+=16383)o.push(y(t,s,s+16383>a?a:s+16383));return 1===e?(i+=v[(r=t[n-1])>>2],i+=v[r<<4&63],i+="=="):2===e&&(i+=v[(r=(t[n-2]<<8)+t[n-1])>>10],i+=v[r>>4&63],i+=v[r<<2&63],i+="="),o.push(i),o.join("")}(0===r&&n===t.length?t:t.slice(r,n))}function $(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var o,s,a,u,l=t[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:s=t[i+2],128==(192&(o=t[i+1]))&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:s=t[i+2],a=t[i+3],128==(192&(o=t[i+1]))&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(e.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),e.push(c),i+=f}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=4096));return n}(e)}function W(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(127&t[i]);return e}function Y(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(t[i]);return e}function X(t,r,n){var e,i=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>i)&&(n=i);for(var o="",s=r;s<n;++s)o+=(e=t[s])<16?"0"+e.toString(16):e.toString(16);return o}function Z(t,r,n){for(var e=t.slice(r,n),i="",o=0;o<e.length;o+=2)i+=String.fromCharCode(e[o]+256*e[o+1]);return i}function Q(t,r,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function K(t,r,n,e,i,o){if(!k(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(n+e>t.length)throw new RangeError("Index out of range")}function J(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(r&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function tt(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=r>>>8*(e?i:3-i)&255}function rt(t,r,n,e){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function nt(t,r,n,e,i){return i||rt(t,0,n,4),T(t,r,n,e,23,4),n+4}function et(t,r,n,e,i){return i||rt(t,0,n,8),T(t,r,n,e,52,8),n+8}L.TYPED_ARRAY_SUPPORT=void 0===d.TYPED_ARRAY_SUPPORT||d.TYPED_ARRAY_SUPPORT,L.poolSize=8192,L._augment=function(t){return t.__proto__=L.prototype,t},L.from=function(t,r,n){return C(null,t,r,n)},L.TYPED_ARRAY_SUPPORT&&(L.prototype.__proto__=Uint8Array.prototype,L.__proto__=Uint8Array),L.alloc=function(t,r,n){return function(t,r,n,e){return R(r),r<=0?S(t,r):void 0!==n?"string"==typeof e?S(t,r).fill(n,e):S(t,r).fill(n):S(t,r)}(null,t,r,n)},L.allocUnsafe=function(t){return w(null,t)},L.allocUnsafeSlow=function(t){return w(null,t)},L.isBuffer=ut,L.compare=function(t,r){if(!k(t)||!k(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,e=r.length,i=0,o=Math.min(n,e);i<o;++i)if(t[i]!==r[i]){n=t[i],e=r[i];break}return n<e?-1:e<n?1:0},L.isEncoding=function(t){switch(String(t).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}},L.concat=function(t,r){if(!N(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return L.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var e=L.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var o=t[n];if(!k(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(e,i),i+=o.length}return e},L.byteLength=P,L.prototype._isBuffer=!0,L.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)M(this,r,r+1);return this},L.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)M(this,r,r+3),M(this,r+1,r+2);return this},L.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)M(this,r,r+7),M(this,r+1,r+6),M(this,r+2,r+5),M(this,r+3,r+4);return this},L.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?$(this,0,t):D.apply(this,arguments)},L.prototype.equals=function(t){if(!k(t))throw new TypeError("Argument must be a Buffer");return this===t||0===L.compare(this,t)},L.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},L.prototype.compare=function(t,r,n,e,i){if(!k(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(e>>>=0),s=(n>>>=0)-(r>>>=0),a=Math.min(o,s),u=this.slice(e,i),l=t.slice(r,n),c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},L.prototype.includes=function(t,r,n){return-1!==this.indexOf(t,r,n)},L.prototype.indexOf=function(t,r,n){return j(this,t,r,n,!0)},L.prototype.lastIndexOf=function(t,r,n){return j(this,t,r,n,!1)},L.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(n)?(n|=0,void 0===e&&(e="utf8")):(e=n,n=void 0)}var i=this.length-r;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return F(this,t,r,n);case"utf8":case"utf-8":return U(this,t,r,n);case"ascii":return B(this,t,r,n);case"latin1":case"binary":return V(this,t,r,n);case"base64":return q(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},L.prototype.slice=function(t,r){var n,e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(r=void 0===r?e:~~r)<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t),L.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,r)).__proto__=L.prototype;else{var i=r-t;n=new L(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},L.prototype.readUIntLE=function(t,r,n){t|=0,r|=0,n||Q(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e},L.prototype.readUIntBE=function(t,r,n){t|=0,r|=0,n||Q(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},L.prototype.readUInt8=function(t,r){return r||Q(t,1,this.length),this[t]},L.prototype.readUInt16LE=function(t,r){return r||Q(t,2,this.length),this[t]|this[t+1]<<8},L.prototype.readUInt16BE=function(t,r){return r||Q(t,2,this.length),this[t]<<8|this[t+1]},L.prototype.readUInt32LE=function(t,r){return r||Q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},L.prototype.readUInt32BE=function(t,r){return r||Q(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},L.prototype.readIntLE=function(t,r,n){t|=0,r|=0,n||Q(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e>=(i*=128)&&(e-=Math.pow(2,8*r)),e},L.prototype.readIntBE=function(t,r,n){t|=0,r|=0,n||Q(t,r,this.length);for(var e=r,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},L.prototype.readInt8=function(t,r){return r||Q(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},L.prototype.readInt16LE=function(t,r){r||Q(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},L.prototype.readInt16BE=function(t,r){r||Q(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},L.prototype.readInt32LE=function(t,r){return r||Q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},L.prototype.readInt32BE=function(t,r){return r||Q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},L.prototype.readFloatLE=function(t,r){return r||Q(t,4,this.length),x(this,t,!0,23,4)},L.prototype.readFloatBE=function(t,r){return r||Q(t,4,this.length),x(this,t,!1,23,4)},L.prototype.readDoubleLE=function(t,r){return r||Q(t,8,this.length),x(this,t,!0,52,8)},L.prototype.readDoubleBE=function(t,r){return r||Q(t,8,this.length),x(this,t,!1,52,8)},L.prototype.writeUIntLE=function(t,r,n,e){t=+t,r|=0,n|=0,e||K(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[r]=255&t;++o<n&&(i*=256);)this[r+o]=t/i&255;return r+n},L.prototype.writeUIntBE=function(t,r,n,e){t=+t,r|=0,n|=0,e||K(this,t,r,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+n},L.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,1,255,0),L.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},L.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,2,65535,0),L.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):J(this,t,r,!0),r+2},L.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,2,65535,0),L.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):J(this,t,r,!1),r+2},L.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,4,4294967295,0),L.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):tt(this,t,r,!0),r+4},L.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,4,4294967295,0),L.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):tt(this,t,r,!1),r+4},L.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);K(this,t,r,n,i-1,-i)}var o=0,s=1,a=0;for(this[r]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[r+o-1]&&(a=1),this[r+o]=(t/s>>0)-a&255;return r+n},L.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);K(this,t,r,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[r+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[r+o+1]&&(a=1),this[r+o]=(t/s>>0)-a&255;return r+n},L.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,1,127,-128),L.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},L.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,2,32767,-32768),L.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):J(this,t,r,!0),r+2},L.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,2,32767,-32768),L.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):J(this,t,r,!1),r+2},L.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,4,2147483647,-2147483648),L.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):tt(this,t,r,!0),r+4},L.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||K(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),L.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):tt(this,t,r,!1),r+4},L.prototype.writeFloatLE=function(t,r,n){return nt(this,t,r,!0,n)},L.prototype.writeFloatBE=function(t,r,n){return nt(this,t,r,!1,n)},L.prototype.writeDoubleLE=function(t,r,n){return et(this,t,r,!0,n)},L.prototype.writeDoubleBE=function(t,r,n){return et(this,t,r,!1,n)},L.prototype.copy=function(t,r,n,e){if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e<n&&(e=n),e===n)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r<e-n&&(e=t.length-r+n);var i,o=e-n;if(this===t&&n<r&&r<e)for(i=o-1;i>=0;--i)t[i+r]=this[i+n];else if(o<1e3||!L.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o},L.prototype.fill=function(t,r,n,e){if("string"==typeof t){if("string"==typeof r?(e=r,r=0,n=this.length):"string"==typeof n&&(e=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!L.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;var o;if(r>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=r;o<n;++o)this[o]=t;else{var s=k(t)?t:ot(new L(t,e).toString()),a=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%a]}return this};var it=/[^+\/0-9A-Za-z-_]/g;function ot(t,r){var n;r=r||1/0;for(var e=t.length,i=null,o=[],s=0;s<e;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===e){(r-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function st(t){return function(t){var r,n,e,i,o,s;m||g();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s=new b(3*a/4-(o="="===t[a-2]?2:"="===t[a-1]?1:0)),e=o>0?a-4:a;var u=0;for(r=0,n=0;r<e;r+=4,n+=3)i=E[t.charCodeAt(r)]<<18|E[t.charCodeAt(r+1)]<<12|E[t.charCodeAt(r+2)]<<6|E[t.charCodeAt(r+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=E[t.charCodeAt(r)]<<2|E[t.charCodeAt(r+1)]>>4,s[u++]=255&i):1===o&&(i=E[t.charCodeAt(r)]<<10|E[t.charCodeAt(r+1)]<<4|E[t.charCodeAt(r+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(it,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function at(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);++i)r[i+n]=t[i];return i}function ut(t){return null!=t&&(!!t._isBuffer||lt(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&<(t.slice(0,0))}(t))}function lt(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function ct(){throw new Error("setTimeout has not been defined")}function ft(){throw new Error("clearTimeout has not been defined")}var ht=ct,pt=ft;function dt(t){if(ht===setTimeout)return setTimeout(t,0);if((ht===ct||!ht)&&setTimeout)return ht=setTimeout,setTimeout(t,0);try{return ht(t,0)}catch(r){try{return ht.call(null,t,0)}catch(r){return ht.call(this,t,0)}}}"function"==typeof d.setTimeout&&(ht=setTimeout),"function"==typeof d.clearTimeout&&(pt=clearTimeout);var vt,Et=[],bt=!1,mt=-1;function gt(){bt&&vt&&(bt=!1,vt.length?Et=vt.concat(Et):mt=-1,Et.length&&yt())}function yt(){if(!bt){var t=dt(gt);bt=!0;for(var r=Et.length;r;){for(vt=Et,Et=[];++mt<r;)vt&&vt[mt].run();mt=-1,r=Et.length}vt=null,bt=!1,function(t){if(pt===clearTimeout)return clearTimeout(t);if((pt===ft||!pt)&&clearTimeout)return pt=clearTimeout,clearTimeout(t);try{pt(t)}catch(r){try{return pt.call(null,t)}catch(r){return pt.call(this,t)}}}(t)}}function xt(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];Et.push(new Tt(t,r)),1!==Et.length||bt||dt(yt)}function Tt(t,r){this.fun=t,this.array=r}Tt.prototype.run=function(){this.fun.apply(null,this.array)};var It="function"==typeof Object.create?function(t,r){t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t},Nt=/%[sdj%]/g;function At(t){if(!jt(t)){for(var r=[],n=0;n<arguments.length;n++)r.push(Rt(arguments[n]));return r.join(" ")}n=1;for(var e=arguments,i=e.length,o=String(t).replace(Nt,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(e[n++]);case"%d":return Number(e[n++]);case"%j":try{return JSON.stringify(e[n++])}catch(t){return"[Circular]"}default:return t}})),s=e[n];n<i;s=e[++n])Mt(s)||!Ut(s)?o+=" "+s:o+=" "+Rt(s);return o}function St(t,r){if(Gt(d.process))return function(){return St(t,r).apply(this,arguments)};var n=!1;return function(){return n||(console.error(r),n=!0),t.apply(this,arguments)}}var Lt,Ct={};function Rt(t,r){var n={seen:[],stylize:Ot};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Dt(r)?n.showHidden=r:r&&zt(n,r),Gt(n.showHidden)&&(n.showHidden=!1),Gt(n.depth)&&(n.depth=2),Gt(n.colors)&&(n.colors=!1),Gt(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=wt),_t(n,t,n.depth)}function wt(t,r){var n=Rt.styles[r];return n?"["+Rt.colors[n][0]+"m"+t+"["+Rt.colors[n][1]+"m":t}function Ot(t){return t}function _t(t,r,n){if(t.customInspect&&r&&qt(r.inspect)&&r.inspect!==Rt&&(!r.constructor||r.constructor.prototype!==r)){var e=r.inspect(n,t);return jt(e)||(e=_t(t,e,n)),e}var i=function(t,r){if(Gt(r))return t.stylize("undefined","undefined");if(jt(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return"number"==typeof r?t.stylize(""+r,"number"):Dt(r)?t.stylize(""+r,"boolean"):Mt(r)?t.stylize("null","null"):void 0}(t,r);if(i)return i;var o=Object.keys(r),s=function(t){var r={};return t.forEach((function(t){r[t]=!0})),r}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),Vt(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return kt(r);if(0===o.length){if(qt(r))return t.stylize("[Function"+(r.name?": "+r.name:"")+"]","special");if(Ft(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(Bt(r))return t.stylize(Date.prototype.toString.call(r),"date");if(Vt(r))return kt(r)}var a,u="",l=!1,c=["{","}"];return Array.isArray(r)&&(l=!0,c=["[","]"]),qt(r)&&(u=" [Function"+(r.name?": "+r.name:"")+"]"),Ft(r)&&(u=" "+RegExp.prototype.toString.call(r)),Bt(r)&&(u=" "+Date.prototype.toUTCString.call(r)),Vt(r)&&(u=" "+kt(r)),0!==o.length||l&&0!=r.length?n<0?Ft(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),a=l?function(t,r,n,e,i){for(var o=[],s=0,a=r.length;s<a;++s)$t(r,String(s))?o.push(Pt(t,r,n,e,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(Pt(t,r,n,e,i,!0))})),o}(t,r,n,s,o):o.map((function(e){return Pt(t,r,n,s,e,l)})),t.seen.pop(),function(t,r,n){return t.reduce((function(t,r){return r.indexOf("\n"),t+r.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===r?"":r+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+r+" "+t.join(", ")+" "+n[1]}(a,u,c)):c[0]+u+c[1]}function kt(t){return"["+Error.prototype.toString.call(t)+"]"}function Pt(t,r,n,e,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]}).get?a=t.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),$t(e,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=Mt(n)?_t(t,u.value,null):_t(t,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),Gt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function Dt(t){return"boolean"==typeof t}function Mt(t){return null===t}function jt(t){return"string"==typeof t}function Gt(t){return void 0===t}function Ft(t){return Ut(t)&&"[object RegExp]"===Ht(t)}function Ut(t){return"object"==typeof t&&null!==t}function Bt(t){return Ut(t)&&"[object Date]"===Ht(t)}function Vt(t){return Ut(t)&&("[object Error]"===Ht(t)||t instanceof Error)}function qt(t){return"function"==typeof t}function Ht(t){return Object.prototype.toString.call(t)}function zt(t,r){if(!r||!Ut(r))return t;for(var n=Object.keys(r),e=n.length;e--;)t[n[e]]=r[n[e]];return t}function $t(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function Wt(){this.head=null,this.tail=null,this.length=0}Rt.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]},Rt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Wt.prototype.push=function(t){var r={data:t,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},Wt.prototype.unshift=function(t){var r={data:t,next:this.head};0===this.length&&(this.tail=r),this.head=r,++this.length},Wt.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},Wt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Wt.prototype.join=function(t){if(0===this.length)return"";for(var r=this.head,n=""+r.data;r=r.next;)n+=t+r.data;return n},Wt.prototype.concat=function(t){if(0===this.length)return L.alloc(0);if(1===this.length)return this.head.data;for(var r=L.allocUnsafe(t>>>0),n=this.head,e=0;n;)n.data.copy(r,e),e+=n.data.length,n=n.next;return r};var Yt=L.isEncoding||function(t){switch(t&&t.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 Xt(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!Yt(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Qt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Kt;break;default:return void(this.write=Zt)}this.charBuffer=new L(6),this.charReceived=0,this.charLength=0}function Zt(t){return t.toString(this.encoding)}function Qt(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function Kt(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}Xt.prototype.write=function(t){for(var r="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(t=t.slice(n,t.length),!((e=(r=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(r.length-1))>=55296&&e<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return r;break}this.charLength+=this.surrogateSize,r=""}this.detectIncompleteChar(t);var e,i=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),i=(r+=t.toString(this.encoding,0,i)).length-1,(e=r.charCodeAt(i))>=55296&&e<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),r.substring(0,i)}return r},Xt.prototype.detectIncompleteChar=function(t){for(var r=t.length>=3?3:t.length;r>0;r--){var n=t[t.length-r];if(1==r&&n>>5==6){this.charLength=2;break}if(r<=2&&n>>4==14){this.charLength=3;break}if(r<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=r},Xt.prototype.end=function(t){var r="";if(t&&t.length&&(r=this.write(t)),this.charReceived){var n=this.encoding;r+=this.charBuffer.slice(0,this.charReceived).toString(n)}return r},nr.ReadableState=rr;var Jt,tr=(Jt="stream",Gt(Lt)&&(Lt=""),Ct[Jt=Jt.toUpperCase()]||(Ct[Jt]=new RegExp("\\b"+Jt+"\\b","i").test(Lt)?function(){var t=At.apply(null,arguments);console.error("%s %d: %s",Jt,0,t)}:function(){}),Ct[Jt]);function rr(t,r){this.objectMode=!!(t=t||{}).objectMode,r instanceof Rr&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=new Wt,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=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new Xt(t.encoding),this.encoding=t.encoding)}function nr(t){if(!(this instanceof nr))return new nr(t);this._readableState=new rr(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),e.call(this)}function er(t,r,n,e,i){var o=function(t,r){var n=null;return ut(r)||"string"==typeof r||null==r||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(r,n);if(o)t.emit("error",o);else if(null===n)r.reading=!1,function(t,r){if(!r.ended){if(r.decoder){var n=r.decoder.end();n&&n.length&&(r.buffer.push(n),r.length+=r.objectMode?1:n.length)}r.ended=!0,or(t)}}(t,r);else if(r.objectMode||n&&n.length>0)if(r.ended&&!i){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(r.endEmitted&&i){var a=new Error("stream.unshift() after end event");t.emit("error",a)}else{var u;!r.decoder||i||e||(n=r.decoder.write(n),u=!r.objectMode&&0===n.length),i||(r.reading=!1),u||(r.flowing&&0===r.length&&!r.sync?(t.emit("data",n),t.read(0)):(r.length+=r.objectMode?1:n.length,i?r.buffer.unshift(n):r.buffer.push(n),r.needReadable&&or(t))),function(t,r){r.readingMore||(r.readingMore=!0,xt(ar,t,r))}(t,r)}else i||(r.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(r)}function ir(t,r){return t<=0||0===r.length&&r.ended?0:r.objectMode?1:t!=t?r.flowing&&r.length?r.buffer.head.data.length:r.length:(t>r.highWaterMark&&(r.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=r.length?t:r.ended?r.length:(r.needReadable=!0,0))}function or(t){var r=t._readableState;r.needReadable=!1,r.emittedReadable||(tr("emitReadable",r.flowing),r.emittedReadable=!0,r.sync?xt(sr,t):sr(t))}function sr(t){tr("emit readable"),t.emit("readable"),cr(t)}function ar(t,r){for(var n=r.length;!r.reading&&!r.flowing&&!r.ended&&r.length<r.highWaterMark&&(tr("maybeReadMore read 0"),t.read(0),n!==r.length);)n=r.length;r.readingMore=!1}function ur(t){tr("readable nexttick read 0"),t.read(0)}function lr(t,r){r.reading||(tr("resume read 0"),t.read(0)),r.resumeScheduled=!1,r.awaitDrain=0,t.emit("resume"),cr(t),r.flowing&&!r.reading&&t.read(0)}function cr(t){var r=t._readableState;for(tr("flow",r.flowing);r.flowing&&null!==t.read(););}function fr(t,r){return 0===r.length?null:(r.objectMode?n=r.buffer.shift():!t||t>=r.length?(n=r.decoder?r.buffer.join(""):1===r.buffer.length?r.buffer.head.data:r.buffer.concat(r.length),r.buffer.clear()):n=function(t,r,n){var e;return t<r.head.data.length?(e=r.head.data.slice(0,t),r.head.data=r.head.data.slice(t)):e=t===r.head.data.length?r.shift():n?function(t,r){var n=r.head,e=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(i+=s===o.length?o:o.slice(0,t),0==(t-=s)){s===o.length?(++e,r.head=n.next?n.next:r.tail=null):(r.head=n,n.data=o.slice(s));break}++e}return r.length-=e,i}(t,r):function(t,r){var n=L.allocUnsafe(t),e=r.head,i=1;for(e.data.copy(n),t-=e.data.length;e=e.next;){var o=e.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0==(t-=s)){s===o.length?(++i,r.head=e.next?e.next:r.tail=null):(r.head=e,e.data=o.slice(s));break}++i}return r.length-=i,n}(t,r),e}(t,r.buffer,r.decoder),n);var n}function hr(t){var r=t._readableState;if(r.length>0)throw new Error('"endReadable()" called on non-empty stream');r.endEmitted||(r.ended=!0,xt(pr,r,t))}function pr(t,r){t.endEmitted||0!==t.length||(t.endEmitted=!0,r.readable=!1,r.emit("end"))}function dr(t,r){for(var n=0,e=t.length;n<e;n++)if(t[n]===r)return n;return-1}function vr(){}function Er(t,r,n){this.chunk=t,this.encoding=r,this.callback=n,this.next=null}function br(t,r){Object.defineProperty(this,"buffer",{get:St((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),this.objectMode=!!(t=t||{}).objectMode,r instanceof Rr&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,r){var n=t._writableState,e=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),r)!function(t,r,n,e,i){--r.pendingcb,n?xt(i,e):i(e),t._writableState.errorEmitted=!0,t.emit("error",e)}(t,n,e,r,i);else{var o=Tr(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||xr(t,n),e?xt(yr,t,n,o,i):yr(t,n,o,i)}}(r,t)},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 Ar(this)}function mr(t){if(!(this instanceof mr||this instanceof Rr))return new mr(t);this._writableState=new br(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),e.call(this)}function gr(t,r,n,e,i,o,s){r.writelen=e,r.writecb=s,r.writing=!0,r.sync=!0,n?t._writev(i,r.onwrite):t._write(i,o,r.onwrite),r.sync=!1}function yr(t,r,n,e){n||function(t,r){0===r.length&&r.needDrain&&(r.needDrain=!1,t.emit("drain"))}(t,r),r.pendingcb--,e(),Nr(t,r)}function xr(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var e=new Array(r.bufferedRequestCount),i=r.corkedRequestsFree;i.entry=n;for(var o=0;n;)e[o]=n,n=n.next,o+=1;gr(t,r,!0,r.length,e,"",i.finish),r.pendingcb++,r.lastBufferedRequest=null,i.next?(r.corkedRequestsFree=i.next,i.next=null):r.corkedRequestsFree=new Ar(r)}else{for(;n;){var s=n.chunk;if(gr(t,r,!1,r.objectMode?1:s.length,s,n.encoding,n.callback),n=n.next,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequestCount=0,r.bufferedRequest=n,r.bufferProcessing=!1}function Tr(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function Ir(t,r){r.prefinished||(r.prefinished=!0,t.emit("prefinish"))}function Nr(t,r){var n=Tr(r);return n&&(0===r.pendingcb?(Ir(t,r),r.finished=!0,t.emit("finish")):Ir(t,r)),n}function Ar(t){var r=this;this.next=null,this.entry=null,this.finish=function(n){var e=r.entry;for(r.entry=null;e;){var i=e.callback;t.pendingcb--,i(n),e=e.next}t.corkedRequestsFree?t.corkedRequestsFree.next=r:t.corkedRequestsFree=r}}It(nr,e),nr.prototype.push=function(t,r){var n=this._readableState;return n.objectMode||"string"!=typeof t||(r=r||n.defaultEncoding)!==n.encoding&&(t=L.from(t,r),r=""),er(this,n,t,r,!1)},nr.prototype.unshift=function(t){return er(this,this._readableState,t,"",!0)},nr.prototype.isPaused=function(){return!1===this._readableState.flowing},nr.prototype.setEncoding=function(t){return this._readableState.decoder=new Xt(t),this._readableState.encoding=t,this},nr.prototype.read=function(t){tr("read",t),t=parseInt(t,10);var r=this._readableState,n=t;if(0!==t&&(r.emittedReadable=!1),0===t&&r.needReadable&&(r.length>=r.highWaterMark||r.ended))return tr("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?hr(this):or(this),null;if(0===(t=ir(t,r))&&r.ended)return 0===r.length&&hr(this),null;var e,i=r.needReadable;return tr("need readable",i),(0===r.length||r.length-t<r.highWaterMark)&&tr("length less than watermark",i=!0),r.ended||r.reading?tr("reading or ended",i=!1):i&&(tr("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(t=ir(n,r))),null===(e=t>0?fr(t,r):null)?(r.needReadable=!0,t=0):r.length-=t,0===r.length&&(r.ended||(r.needReadable=!0),n!==t&&r.ended&&hr(this)),null!==e&&this.emit("data",e),e},nr.prototype._read=function(){this.emit("error",new Error("not implemented"))},nr.prototype.pipe=function(t,r){var n=this,e=this._readableState;switch(e.pipesCount){case 0:e.pipes=t;break;case 1:e.pipes=[e.pipes,t];break;default:e.pipes.push(t)}e.pipesCount+=1,tr("pipe count=%d opts=%j",e.pipesCount,r);var i=r&&!1===r.end?l:s;function o(t){tr("onunpipe"),t===n&&l()}function s(){tr("onend"),t.end()}e.endEmitted?xt(i):n.once("end",i),t.on("unpipe",o);var a=function(t){return function(){var r=t._readableState;tr("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&t.listeners("data").length&&(r.flowing=!0,cr(t))}}(n);t.on("drain",a);var u=!1;function l(){tr("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",a),t.removeListener("error",h),t.removeListener("unpipe",o),n.removeListener("end",s),n.removeListener("end",l),n.removeListener("data",f),u=!0,!e.awaitDrain||t._writableState&&!t._writableState.needDrain||a()}var c=!1;function f(r){tr("ondata"),c=!1,!1!==t.write(r)||c||((1===e.pipesCount&&e.pipes===t||e.pipesCount>1&&-1!==dr(e.pipes,t))&&!u&&(tr("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function h(r){tr("onerror",r),v(),t.removeListener("error",h),0===function(t){return t.listeners("error").length}(t)&&t.emit("error",r)}function p(){t.removeListener("finish",d),v()}function d(){tr("onfinish"),t.removeListener("close",p),v()}function v(){tr("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,r,n){if("function"==typeof t.prependListener)return t.prependListener(r,n);t._events&&t._events[r]?Array.isArray(t._events[r])?t._events[r].unshift(n):t._events[r]=[n,t._events[r]]:t.on(r,n)}(t,"error",h),t.once("close",p),t.once("finish",d),t.emit("pipe",n),e.flowing||(tr("pipe resume"),n.resume()),t},nr.prototype.unpipe=function(t){var r=this._readableState;if(0===r.pipesCount)return this;if(1===r.pipesCount)return t&&t!==r.pipes||(t||(t=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var n=r.pipes,e=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var i=0;i<e;i++)n[i].emit("unpipe",this);return this}var o=dr(r.pipes,t);return-1===o||(r.pipes.splice(o,1),r.pipesCount-=1,1===r.pipesCount&&(r.pipes=r.pipes[0]),t.emit("unpipe",this)),this},nr.prototype.addListener=nr.prototype.on=function(t,r){var n=e.prototype.on.call(this,t,r);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&or(this):xt(ur,this))}return n},nr.prototype.resume=function(){var t=this._readableState;return t.flowing||(tr("resume"),t.flowing=!0,function(t,r){r.resumeScheduled||(r.resumeScheduled=!0,xt(lr,t,r))}(this,t)),this},nr.prototype.pause=function(){return tr("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(tr("pause"),this._readableState.flowing=!1,this.emit("pause")),this},nr.prototype.wrap=function(t){var r=this._readableState,n=!1,e=this;for(var i in t.on("end",(function(){if(tr("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){tr("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(r){return function(){return t[r].apply(t,arguments)}}(i));return function(t,r){for(var n=0,e=t.length;n<e;n++)r(t[n])}(["error","close","destroy","pause","resume"],(function(r){t.on(r,e.emit.bind(e,r))})),e._read=function(r){tr("wrapped _read",r),n&&(n=!1,t.resume())},e},nr._fromList=fr,mr.WritableState=br,It(mr,e),br.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},mr.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},mr.prototype.write=function(t,r,n){var e=this._writableState,i=!1;return"function"==typeof r&&(n=r,r=null),L.isBuffer(t)?r="buffer":r||(r=e.defaultEncoding),"function"!=typeof n&&(n=vr),e.ended?function(t,r){var n=new Error("write after end");t.emit("error",n),xt(r,n)}(this,n):function(t,r,n,e){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):L.isBuffer(n)||"string"==typeof n||void 0===n||r.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),xt(e,o),i=!1),i}(this,e,t,n)&&(e.pendingcb++,i=function(t,r,n,e,i){n=function(t,r,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof r||(r=L.from(r,n)),r}(r,n,e),L.isBuffer(n)&&(e="buffer");var o=r.objectMode?1:n.length;r.length+=o;var s=r.length<r.highWaterMark;if(s||(r.needDrain=!0),r.writing||r.corked){var a=r.lastBufferedRequest;r.lastBufferedRequest=new Er(n,e,i),a?a.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else gr(t,r,!1,o,n,e,i);return s}(this,e,t,r,n)),i},mr.prototype.cork=function(){this._writableState.corked++},mr.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||xr(this,t))},mr.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},mr.prototype._write=function(t,r,n){n(new Error("not implemented"))},mr.prototype._writev=null,mr.prototype.end=function(t,r,n){var e=this._writableState;"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),null!=t&&this.write(t,r),e.corked&&(e.corked=1,this.uncork()),e.ending||e.finished||function(t,r,n){r.ending=!0,Nr(t,r),n&&(r.finished?xt(n):t.once("finish",n)),r.ended=!0,t.writable=!1}(this,e,n)},It(Rr,nr);for(var Sr=Object.keys(mr.prototype),Lr=0;Lr<Sr.length;Lr++){var Cr=Sr[Lr];Rr.prototype[Cr]||(Rr.prototype[Cr]=mr.prototype[Cr])}function Rr(t){if(!(this instanceof Rr))return new Rr(t);nr.call(this,t),mr.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",wr)}function wr(){this.allowHalfOpen||this._writableState.ended||xt(Or,this)}function Or(t){t.end()}function _r(t){this.afterTransform=function(r,n){return function(t,r,n){var e=t._transformState;e.transforming=!1;var i=e.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));e.writechunk=null,e.writecb=null,null!=n&&t.push(n),i(r);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,r,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function kr(t){if(!(this instanceof kr))return new kr(t);Rr.call(this,t),this._transformState=new _r(this);var r=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){Pr(r,t)})):Pr(r)}))}function Pr(t,r){if(r)return t.emit("error",r);var n=t._transformState;if(t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}function Dr(t){if(!(this instanceof Dr))return new Dr(t);kr.call(this,t)}function Mr(){e.call(this)}function jr(t){return(jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gr(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Fr(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function Ur(t,r,n){return r&&Fr(t.prototype,r),n&&Fr(t,n),t}function Br(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&qr(t,r)}function Vr(t){return(Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function qr(t,r){return(qr=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function Hr(t,r){return!r||"object"!=typeof r&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):r}It(kr,Rr),kr.prototype.push=function(t,r){return this._transformState.needTransform=!1,Rr.prototype.push.call(this,t,r)},kr.prototype._transform=function(){throw new Error("Not implemented")},kr.prototype._write=function(t,r,n){var e=this._transformState;if(e.writecb=n,e.writechunk=t,e.writeencoding=r,!e.transforming){var i=this._readableState;(e.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},kr.prototype._read=function(){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},It(Dr,kr),Dr.prototype._transform=function(t,r,n){n(null,t)},It(Mr,e),Mr.Readable=nr,Mr.Writable=mr,Mr.Duplex=Rr,Mr.Transform=kr,Mr.PassThrough=Dr,Mr.Stream=Mr,Mr.prototype.pipe=function(t,r){var n=this;function i(r){t.writable&&!1===t.write(r)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||r&&!1===r.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(c(),0===e.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",l),t.on("error",l),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t};var zr,$r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},Wr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Yr=/^\w*$/,Xr=/^\./,Zr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qr=/\\(\\)?/g,Kr=/^\[object .+?Constructor\]$/,Jr="object"==typeof self&&self&&self.Object===Object&&self,tn="object"==typeof $r&&$r&&$r.Object===Object&&$r||Jr||Function("return this")(),rn=Array.prototype,nn=Function.prototype,en=Object.prototype,on=tn["__core-js_shared__"],sn=(zr=/[^.]+$/.exec(on&&on.keys&&on.keys.IE_PROTO||""))?"Symbol(src)_1."+zr:"",an=nn.toString,un=en.hasOwnProperty,ln=en.toString,cn=RegExp("^"+an.call(un).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fn=tn.Symbol,hn=rn.splice,pn=Tn(tn,"Map"),dn=Tn(Object,"create"),vn=fn?fn.prototype:void 0,En=vn?vn.toString:void 0;function bn(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function mn(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function gn(t){var r=-1,n=t?t.length:0;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}function yn(t,r){for(var n,e,i=t.length;i--;)if((n=t[i][0])===(e=r)||n!=n&&e!=e)return i;return-1}function xn(t,r){var n=t.__data__;return function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t}(r)?n["string"==typeof r?"string":"hash"]:n.map}function Tn(t,r){var n=function(t,r){return null==t?void 0:t[r]}(t,r);return function(t){return!(!Ln(t)||(r=t,sn&&sn in r))&&(function(t){var r=Ln(t)?ln.call(t):"";return"[object Function]"==r||"[object GeneratorFunction]"==r}(t)||function(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}(t)?cn:Kr).test(function(t){if(null!=t){try{return an.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var r}(n)?n:void 0}bn.prototype.clear=function(){this.__data__=dn?dn(null):{}},bn.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},bn.prototype.get=function(t){var r=this.__data__;if(dn){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return un.call(r,t)?r[t]:void 0},bn.prototype.has=function(t){var r=this.__data__;return dn?void 0!==r[t]:un.call(r,t)},bn.prototype.set=function(t,r){return this.__data__[t]=dn&&void 0===r?"__lodash_hash_undefined__":r,this},mn.prototype.clear=function(){this.__data__=[]},mn.prototype.delete=function(t){var r=this.__data__,n=yn(r,t);return!(n<0||(n==r.length-1?r.pop():hn.call(r,n,1),0))},mn.prototype.get=function(t){var r=this.__data__,n=yn(r,t);return n<0?void 0:r[n][1]},mn.prototype.has=function(t){return yn(this.__data__,t)>-1},mn.prototype.set=function(t,r){var n=this.__data__,e=yn(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},gn.prototype.clear=function(){this.__data__={hash:new bn,map:new(pn||mn),string:new bn}},gn.prototype.delete=function(t){return xn(this,t).delete(t)},gn.prototype.get=function(t){return xn(this,t).get(t)},gn.prototype.has=function(t){return xn(this,t).has(t)},gn.prototype.set=function(t,r){return xn(this,t).set(t,r),this};var In=An((function(t){var r;t=null==(r=t)?"":function(t){if("string"==typeof t)return t;if(Cn(t))return En?En.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}(r);var n=[];return Xr.test(t)&&n.push(""),t.replace(Zr,(function(t,r,e,i){n.push(e?i.replace(Qr,"$1"):r||t)})),n}));function Nn(t){if("string"==typeof t||Cn(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function An(t,r){if("function"!=typeof t||r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=function(){var e=arguments,i=r?r.apply(this,e):e[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,e);return n.cache=o.set(i,s),s};return n.cache=new(An.Cache||gn),n}An.Cache=gn;var Sn=Array.isArray;function Ln(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function Cn(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==ln.call(t)}var Rn=function(t,r,n){var e=null==t?void 0:function(t,r){for(var n,e=0,i=(r=function(t,r){if(Sn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Cn(t))||Yr.test(t)||!Wr.test(t)||null!=r&&t in Object(r)}(r,t)?[r]:Sn(n=r)?n:In(n)).length;null!=t&&e<i;)t=t[Nn(r[e++])];return e&&e==i?t:void 0}(t,r);return void 0===e?n:e},wn=function(t,r){var n=!0;return t.reduce((function(t,e){return null==e&&(e=""),n?(n=!1,"".concat(e)):"".concat(t).concat(r).concat(e)}),"")},On=function(t,r){try{return t.push.apply(t,function(t){return function(t){if(Array.isArray(t)){for(var r=0,n=new Array(t.length);r<t.length;r++)n[r]=t[r];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(r)),t}catch(n){return t.concat(r)}},_n=function(t,r,n){return void 0===t[r]?n:t[r]},kn=wn,Pn=On,Dn=function(){function t(r){Gr(this,t),this.opts=this.preprocessOpts(r)}return Ur(t,[{key:"preprocessOpts",value:function(t){var r=Object.assign({},t);return r.transforms=Array.isArray(r.transforms)?r.transforms:r.transforms?[r.transforms]:[],r.delimiter=r.delimiter||",",r.eol=r.eol||"\n",r.quote="string"==typeof r.quote?r.quote:'"',r.escapedQuote="string"==typeof r.escapedQuote?r.escapedQuote:"".concat(r.quote).concat(r.quote),r.header=!1!==r.header,r.includeEmptyRows=r.includeEmptyRows||!1,r.withBOM=r.withBOM||!1,r}},{key:"preprocessFieldsInfo",value:function(t){var r=this;return t.map((function(t){if("string"==typeof t)return{label:t,value:t.includes(".")||t.includes("[")?function(n){return Rn(n,t,r.opts.defaultValue)}:function(n){return _n(n,t,r.opts.defaultValue)}};if("object"===jr(t)){var n="default"in t?t.default:r.opts.defaultValue;if("string"==typeof t.value)return{label:t.label||t.value,value:t.value.includes(".")||t.value.includes("[")?function(r){return Rn(r,t.value,n)}:function(r){return _n(r,t.value,n)}};if("function"==typeof t.value){var e=t.label||t.value.name||"",i={label:e,default:n};return{label:e,value:function(r){var e=t.value(r,i);return null==e?n:e}}}}throw new Error("Invalid field info option. "+JSON.stringify(t))}))}},{key:"getHeader",value:function(){var t=this;return kn(this.opts.fields.map((function(r){return t.processValue(r.label)})),this.opts.delimiter)}},{key:"preprocessRow",value:function(t){return this.opts.transforms.reduce((function(t,r){return t.map((function(t){return r(t)})).reduce(Pn,[])}),[t])}},{key:"processRow",value:function(t){var r=this;if(t){var n=this.opts.fields.map((function(n){return r.processCell(t,n)}));if(this.opts.includeEmptyRows||!n.every((function(t){return void 0===t})))return kn(n,this.opts.delimiter)}}},{key:"processCell",value:function(t,r){return this.processValue(r.value(t))}},{key:"processValue",value:function(t){if(null!=t){var r=jr(t);if("boolean"!==r&&"number"!==r&&"string"!==r){if(void 0===(t=JSON.stringify(t)))return;'"'===t[0]&&(t=t.replace(/^"(.+)"$/,"$1"))}return"string"==typeof t&&(t.includes(this.opts.quote)&&(t=t.replace(new RegExp(this.opts.quote,"g"),this.opts.escapedQuote)),t="".concat(this.opts.quote).concat(t).concat(this.opts.quote),this.opts.excelStrings&&(t='"="'.concat(t,'""'))),t}}}]),t}(),Mn=wn,jn=On,Gn=function(t){function r(t){var n;return Gr(this,r),(n=Hr(this,Vr(r).call(this,t))).opts.fields&&(n.opts.fields=n.preprocessFieldsInfo(n.opts.fields)),n}return Br(r,t),Ur(r,[{key:"parse",value:function(t){var r=this.preprocessData(t);this.opts.fields||(this.opts.fields=r.reduce((function(t,r){return Object.keys(r).forEach((function(r){t.includes(r)||t.push(r)})),t}),[]),this.opts.fields=this.preprocessFieldsInfo(this.opts.fields));var n=this.opts.header?this.getHeader():"",e=this.processData(r);return(this.opts.withBOM?"\ufeff":"")+n+(n&&e?this.opts.eol:"")+e}},{key:"preprocessData",value:function(t){var r=this,n=Array.isArray(t)?t:[t];if(!this.opts.fields&&(0===n.length||"object"!==jr(n[0])))throw new Error('Data should not be empty or the "fields" option should be included');return 0===this.opts.transforms.length?n:n.map((function(t){return r.preprocessRow(t)})).reduce(jn,[])}},{key:"processData",value:function(t){var r=this;return Mn(t.map((function(t){return r.processRow(t)})).filter((function(t){return t})),this.opts.eol)}}]),r}(Dn),Fn={},Un=Fn.LEFT_BRACE=1,Bn=Fn.RIGHT_BRACE=2,Vn=Fn.LEFT_BRACKET=3,qn=Fn.RIGHT_BRACKET=4,Hn=Fn.COLON=5,zn=Fn.COMMA=6,$n=Fn.TRUE=7,Wn=Fn.FALSE=8,Yn=Fn.NULL=9,Xn=Fn.STRING=10,Zn=Fn.NUMBER=11,Qn=Fn.START=17,Kn=Fn.STOP=18,Jn=Fn.TRUE1=33,te=Fn.TRUE2=34,re=Fn.TRUE3=35,ne=Fn.FALSE1=49,ee=Fn.FALSE2=50,ie=Fn.FALSE3=51,oe=Fn.FALSE4=52,se=Fn.NULL1=65,ae=Fn.NULL2=66,ue=Fn.NULL3=67,le=Fn.NUMBER1=81,ce=Fn.NUMBER3=83,fe=Fn.STRING1=97,he=Fn.STRING2=98,pe=Fn.STRING3=99,de=Fn.STRING4=100,ve=Fn.STRING5=101,Ee=Fn.STRING6=102,be=Fn.VALUE=113,me=Fn.KEY=114,ge=Fn.OBJECT=129,ye=Fn.ARRAY=130,xe="\\".charCodeAt(0),Te="/".charCodeAt(0),Ie="\b".charCodeAt(0),Ne="\f".charCodeAt(0),Ae="\n".charCodeAt(0),Se="\r".charCodeAt(0),Le="\t".charCodeAt(0);function Ce(){this.tState=Qn,this.value=void 0,this.string=void 0,this.stringBuffer=L.alloc?L.alloc(65536):new L(65536),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=be,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new L(2),3:new L(3),4:new L(4)},this.offset=-1}Ce.toknam=function(t){for(var r=Object.keys(Fn),n=0,e=r.length;n<e;n++){var i=r[n];if(Fn[i]===t)return i}return t&&"0x"+t.toString(16)};var Re=Ce.prototype;Re.onError=function(t){throw t},Re.charError=function(t,r){this.tState=Kn,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[r]))+" at position "+r+" in state "+Ce.toknam(this.tState)))},Re.appendStringChar=function(t){this.stringBufferOffset>=65536&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},Re.appendStringBuf=function(t,r,n){var e=t.length;"number"==typeof r&&(e="number"==typeof n?n<0?t.length-r+n:n-r:t.length-r),e<0&&(e=0),this.stringBufferOffset+e>65536&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,r,n),this.stringBufferOffset+=e},Re.write=function(t){var r;"string"==typeof t&&(t=new L(t));for(var n=0,e=t.length;n<e;n++)if(this.tState===Qn){if(r=t[n],this.offset++,123===r)this.onToken(Un,"{");else if(125===r)this.onToken(Bn,"}");else if(91===r)this.onToken(Vn,"[");else if(93===r)this.onToken(qn,"]");else if(58===r)this.onToken(Hn,":");else if(44===r)this.onToken(zn,",");else if(116===r)this.tState=Jn;else if(102===r)this.tState=ne;else if(110===r)this.tState=se;else if(34===r)this.string="",this.stringBufferOffset=0,this.tState=fe;else if(45===r)this.string="-",this.tState=le;else if(r>=48&&r<64)this.string=String.fromCharCode(r),this.tState=ce;else if(32!==r&&9!==r&&10!==r&&13!==r)return this.charError(t,n)}else if(this.tState===fe)if(r=t[n],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=t[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,n=n+i-1}else if(0===this.bytes_remaining&&r>=128){if(r<=193||r>244)return this.onError(new Error("Invalid UTF-8 character at position "+n+" in state "+Ce.toknam(this.tState)));if(r>=194&&r<=223&&(this.bytes_in_sequence=2),r>=224&&r<=239&&(this.bytes_in_sequence=3),r>=240&&r<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+n>t.length){for(var o=0;o<=t.length-1-n;o++)this.temp_buffs[this.bytes_in_sequence][o]=t[n+o];this.bytes_remaining=n+this.bytes_in_sequence-t.length,n=t.length-1}else this.appendStringBuf(t,n,n+this.bytes_in_sequence),n=n+this.bytes_in_sequence-1}else if(34===r)this.tState=Qn,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Xn,this.string),this.offset+=L.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===r)this.tState=he;else{if(!(r>=32))return this.charError(t,n);this.appendStringChar(r)}else if(this.tState===he)if(34===(r=t[n]))this.appendStringChar(r),this.tState=fe;else if(92===r)this.appendStringChar(xe),this.tState=fe;else if(47===r)this.appendStringChar(Te),this.tState=fe;else if(98===r)this.appendStringChar(Ie),this.tState=fe;else if(102===r)this.appendStringChar(Ne),this.tState=fe;else if(110===r)this.appendStringChar(Ae),this.tState=fe;else if(114===r)this.appendStringChar(Se),this.tState=fe;else if(116===r)this.appendStringChar(Le),this.tState=fe;else{if(117!==r)return this.charError(t,n);this.unicode="",this.tState=pe}else if(this.tState===pe||this.tState===de||this.tState===ve||this.tState===Ee){if(!((r=t[n])>=48&&r<64||r>64&&r<=70||r>96&&r<=102))return this.charError(t,n);if(this.unicode+=String.fromCharCode(r),this.tState++===Ee){var s=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&s>=56320&&s<57344?(this.appendStringBuf(new L(String.fromCharCode(this.highSurrogate,s))),this.highSurrogate=void 0):void 0===this.highSurrogate&&s>=55296&&s<56320?this.highSurrogate=s:(void 0!==this.highSurrogate&&(this.appendStringBuf(new L(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new L(String.fromCharCode(s)))),this.tState=fe}}else if(this.tState===le||this.tState===ce)switch(r=t[n]){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(r),this.tState=ce;break;default:this.tState=Qn;var a=Number(this.string);if(isNaN(a))return this.charError(t,n);this.string.match(/[0-9]+/)==this.string&&a.toString()!=this.string?this.onToken(Xn,this.string):this.onToken(Zn,a),this.offset+=this.string.length-1,this.string=void 0,n--}else if(this.tState===Jn){if(114!==t[n])return this.charError(t,n);this.tState=te}else if(this.tState===te){if(117!==t[n])return this.charError(t,n);this.tState=re}else if(this.tState===re){if(101!==t[n])return this.charError(t,n);this.tState=Qn,this.onToken($n,!0),this.offset+=3}else if(this.tState===ne){if(97!==t[n])return this.charError(t,n);this.tState=ee}else if(this.tState===ee){if(108!==t[n])return this.charError(t,n);this.tState=ie}else if(this.tState===ie){if(115!==t[n])return this.charError(t,n);this.tState=oe}else if(this.tState===oe){if(101!==t[n])return this.charError(t,n);this.tState=Qn,this.onToken(Wn,!1),this.offset+=4}else if(this.tState===se){if(117!==t[n])return this.charError(t,n);this.tState=ae}else if(this.tState===ae){if(108!==t[n])return this.charError(t,n);this.tState=ue}else if(this.tState===ue){if(108!==t[n])return this.charError(t,n);this.tState=Qn,this.onToken(Yn,null),this.offset+=3}},Re.onToken=function(){},Re.parseError=function(t,r){this.tState=Kn,this.onError(new Error("Unexpected "+Ce.toknam(t)+(r?"("+JSON.stringify(r)+")":"")+" in state "+Ce.toknam(this.state)))},Re.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},Re.pop=function(){var t=this.value,r=this.stack.pop();this.value=r.value,this.key=r.key,this.mode=r.mode,this.emit(t),this.mode||(this.state=be)},Re.emit=function(t){this.mode&&(this.state=zn),this.onValue(t)},Re.onValue=function(){},Re.onToken=function(t,r){if(this.state===be)if(t===Xn||t===Zn||t===$n||t===Wn||t===Yn)this.value&&(this.value[this.key]=r),this.emit(r);else if(t===Un)this.push(),this.value=this.value?this.value[this.key]={}:{},this.key=void 0,this.state=me,this.mode=ge;else if(t===Vn)this.push(),this.value=this.value?this.value[this.key]=[]:[],this.key=0,this.mode=ye,this.state=be;else if(t===Bn){if(this.mode!==ge)return this.parseError(t,r);this.pop()}else{if(t!==qn)return this.parseError(t,r);if(this.mode!==ye)return this.parseError(t,r);this.pop()}else if(this.state===me)if(t===Xn)this.key=r,this.state=Hn;else{if(t!==Bn)return this.parseError(t,r);this.pop()}else if(this.state===Hn){if(t!==Hn)return this.parseError(t,r);this.state=be}else{if(this.state!==zn)return this.parseError(t,r);if(t===zn)this.mode===ye?(this.key++,this.state=be):this.mode===ge&&(this.state=me);else{if(!(t===qn&&this.mode===ye||t===Bn&&this.mode===ge))return this.parseError(t,r);this.pop()}}},Ce.C=Fn;var we=Ce,Oe=function(t){function r(t,n){var e;return Gr(this,r),e=Hr(this,Vr(r).call(this,n)),Object.getOwnPropertyNames(Dn.prototype).forEach((function(t){return e[t]=Dn.prototype[t]})),e.opts=e.preprocessOpts(t),e._data="",e._hasWritten=!1,e._readableState.objectMode?e.initObjectModeParse():e.opts.ndjson?e.initNDJSONParse():e.initJSONParser(),e.opts.withBOM&&e.push("\ufeff"),e.opts.fields&&(e.opts.fields=e.preprocessFieldsInfo(e.opts.fields),e.pushHeader()),e}return Br(r,t),Ur(r,[{key:"initObjectModeParse",value:function(){var t=this;this.parser={write:function(r){t.pushLine(r)},getPendingData:function(){}}}},{key:"initNDJSONParse",value:function(){var t=this;this.parser={_data:"",write:function(r){this._data+=r.toString();var n=this._data.split("\n").map((function(t){return t.trim()})).filter((function(t){return""!==t})),e=!1;n.forEach((function(r,i){try{t.pushLine(JSON.parse(r))}catch(o){i===n.length-1?e=!0:(o.message="Invalid JSON (".concat(r,")"),t.emit("error",o))}})),this._data=e?this._data.slice(this._data.lastIndexOf("\n")):""},getPendingData:function(){return this._data}}}},{key:"initJSONParser",value:function(){var t=this;this.parser=new we,this.parser.onValue=function(r){this.stack.length===this.depthToEmit&&t.pushLine(r)},this.parser._onToken=this.parser.onToken,this.parser.onToken=function(r,n){t.parser._onToken(r,n),0!==this.stack.length||t.opts.fields||this.mode===we.C.ARRAY||this.mode===we.C.OBJECT||this.onError(new Error('Data should not be empty or the "fields" option should be included')),1===this.stack.length&&(void 0===this.depthToEmit&&(this.depthToEmit=this.mode===we.C.ARRAY?1:0),0!==this.depthToEmit&&1===this.stack.length&&(this.value=void 0))},this.parser.getPendingData=function(){return this.value},this.parser.onError=function(r){r.message.includes("Unexpected")&&(r.message="Invalid JSON (".concat(r.message,")")),t.emit("error",r)}}},{key:"_transform",value:function(t,r,n){this.parser.write(t),n()}},{key:"_flush",value:function(t){this.parser.getPendingData()&&t(new Error("Invalid data received from stdin",this.parser.getPendingData())),t()}},{key:"pushHeader",value:function(){if(this.opts.header){var t=this.getHeader();this.emit("header",t),this.push(t),this._hasWritten=!0}}},{key:"pushLine",value:function(t){var r=this,n=this.preprocessRow(t);this._hasWritten||(this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(Object.keys(n[0])),this.pushHeader()),n.forEach((function(t){var n=r.processRow(t,r.opts);void 0!==n&&(r.emit("line",n),r.push(r._hasWritten?r.opts.eol+n:n),r._hasWritten=!0)}))}}]),r}(Mr.Transform),_e=Mr.Transform,ke=wn,Pe=function(){function t(r,n){Gr(this,t),this.input=new _e(n),this.input._read=function(){},this.transform=new Oe(r,n),this.processor=this.input.pipe(this.transform)}return Ur(t,[{key:"fromInput",value:function(t){if(this._input)throw new Error("Async parser already has an input.");return this._input=t,this.input=this._input.pipe(this.processor),this}},{key:"throughTransform",value:function(t){if(this._output)throw new Error("Can't add transforms once an output has been added.");return this.processor=this.processor.pipe(t),this}},{key:"toOutput",value:function(t){if(this._output)throw new Error("Async parser already has an output.");return this._output=t,this.processor=this.processor.pipe(t),this}},{key:"promise",value:function(){var t=this,r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,e){if(r){var i=[];t.processor.on("data",(function(t){return i.push(t.toString())})).on("finish",(function(){return n(ke(i,""))})).on("error",(function(t){return e(t)}))}else t.processor.on("finish",(function(){return n()})).on("error",(function(t){return e(t)}))}))}}]),t}(),De=function t(r,n,e){var i=Array.isArray(n)?n:n.split("."),o=i[0],s=i.length>1?t(r[o]||{},i.slice(1),e):e;return Object.assign({},r,function(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}({},o,s))},Me=On;function je(t,r){return Object.keys(t).reduce((function(n,e){var i=r?"".concat(r,".").concat(e):e,o=t[e];return"object"===jr(o)&&null!==o&&!Array.isArray(o)&&"[object Function]"!==Object.prototype.toString.call(o.toJSON)&&Object.keys(o).length?n=n.concat(je(o,i)):Array.isArray(o)&&(n.push(i),n=n.concat(o.map((function(t){return je(t,i)})).reduce(Me,[]).filter((function(t,r,n){return n.indexOf(t)!==r})))),n}),[])}var Ge=Mr.Readable,Fe=Gn,Ue=Oe,Be=function(t,r){return new Gn(r).parse(t)},Ve=function(t,r,n){try{t instanceof Ge||(n=Object.assign({},n,{objectMode:!0}));var e=new Pe(r,n),i=e.promise();return Array.isArray(t)?(t.forEach((function(t){return e.input.push(t)})),e.input.push(null)):t instanceof Ge?e.fromInput(t):(e.input.push(t),e.input.push(null)),i}catch(t){return Promise.reject(t)}},qe={flatten:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.objects,n=void 0===r||r,e=t.arrays,i=void 0!==e&&e,o=t.separator,s=void 0===o?".":o;function a(t,r,e){return Object.keys(t).forEach((function(o){var u=e?"".concat(e).concat(s).concat(o):o,l=t[o];n&&"object"===jr(l)&&null!==l&&!Array.isArray(l)&&"[object Function]"!==Object.prototype.toString.call(l.toJSON)&&Object.keys(l).length||i&&Array.isArray(l)?a(l,r,u):r[u]=l})),r}return function(t){return a(t,{})}},unwind:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.paths,n=void 0===r?void 0:r,e=t.blankOut,i=void 0!==e&&e;function o(t,r){return t.map((function(t){var n=Rn(t,r);return Array.isArray(n)?n.length?n.map((function(n,e){return De(i&&e>0?{}:t,r,n)})):De(t,r,void 0):t})).reduce(Me,[])}return n=Array.isArray(n)?n:n?[n]:void 0,function(t){return(n||je(t)).reduce(o,[t])}}},He={Parser:Fe,AsyncParser:Pe,Transform:Ue,parse:Be,parseAsync:Ve,transforms:qe};r.AsyncParser=Pe,r.Parser=Fe,r.Transform=Ue,r.default=He,r.parse=Be,r.parseAsync=Ve,r.transforms=qe,Object.defineProperty(r,"__esModule",{value:!0})}(r)}).call(this,n(72))},function(t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=[],e="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";r.definition={prefix:"fas",iconName:"download",icon:[512,512,n,"f019",e]},r.faDownload=r.definition,r.prefix="fas",r.iconName="download",r.width=512,r.height=512,r.ligatures=n,r.unicode="f019",r.svgPathData=e},function(t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=[],e="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";r.definition={prefix:"fas",iconName:"question-circle",icon:[512,512,n,"f059",e]},r.faQuestionCircle=r.definition,r.prefix="fas",r.iconName="question-circle",r.width=512,r.height=512,r.ligatures=n,r.unicode="f059",r.svgPathData=e},function(t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=[],e="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";r.definition={prefix:"fas",iconName:"table",icon:[512,512,n,"f0ce",e]},r.faTable=r.definition,r.prefix="fas",r.iconName="table",r.width=512,r.height=512,r.ligatures=n,r.unicode="f0ce",r.svgPathData=e},function(t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=[],e="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";r.definition={prefix:"fas",iconName:"align-left",icon:[448,512,n,"f036",e]},r.faAlignLeft=r.definition,r.prefix="fas",r.iconName="align-left",r.width=448,r.height=512,r.ligatures=n,r.unicode="f036",r.svgPathData=e},function(t,r,n){(function(t){var e=n(133),i=n(134),o=n(135);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,r){if(s()<r)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=u.prototype:(null===t&&(t=new u(r)),t.length=r),t}function u(t,r,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,r,n);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,r,n)}function l(t,r,n,e){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,n,e){if(n<0||r.byteLength<n)throw new RangeError("'offset' is out of bounds");if(r.byteLength<n+(e||0))throw new RangeError("'length' is out of bounds");return r=void 0===n&&void 0===e?new Uint8Array(r):void 0===e?new Uint8Array(r,n):new Uint8Array(r,n,e),u.TYPED_ARRAY_SUPPORT?(t=r).__proto__=u.prototype:t=h(t,r),t}(t,r,n,e):"string"==typeof r?function(t,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var e=0|d(r,n),i=(t=a(t,e)).write(r,n);return i!==e&&(t=t.slice(0,i)),t}(t,r,n):function(t,r){if(u.isBuffer(r)){var n=0|p(r.length);return 0===(t=a(t,n)).length||r.copy(t,0,0,n),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(e=r.length)!=e?a(t,0):h(t,r);if("Buffer"===r.type&&o(r.data))return h(t,r.data)}var e;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,r){if(c(r),t=a(t,r<0?0:0|p(r)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)t[n]=0;return t}function h(t,r){var n=r.length<0?0:0|p(r.length);t=a(t,n);for(var e=0;e<n;e+=1)t[e]=255&r[e];return t}function p(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,r){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(e)return U(t).length;r=(""+r).toLowerCase(),e=!0}}function v(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,r,n);case"utf8":case"utf-8":return S(this,r,n);case"ascii":return L(this,r,n);case"latin1":case"binary":return C(this,r,n);case"base64":return A(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function E(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function b(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=u.from(r,e)),u.isBuffer(r))return 0===r.length?-1:m(t,r,n,e,i);if("number"==typeof r)return r&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):m(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function m(t,r,n,e,i){var o,s=1,a=t.length,u=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}if(i){var c=-1;for(o=n;o<a;o++)if(l(t,o)===l(r,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(t,o+h)!==l(r,h)){f=!1;break}if(f)return o}return-1}function g(t,r,n,e){n=Number(n)||0;var i=t.length-n;e?(e=Number(e))>i&&(e=i):e=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var s=0;s<e;++s){var a=parseInt(r.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function y(t,r,n,e){return V(U(r,t.length-n),t,n,e)}function x(t,r,n,e){return V(function(t){for(var r=[],n=0;n<t.length;++n)r.push(255&t.charCodeAt(n));return r}(r),t,n,e)}function T(t,r,n,e){return x(t,r,n,e)}function I(t,r,n,e){return V(B(r),t,n,e)}function N(t,r,n,e){return V(function(t,r){for(var n,e,i=[],o=0;o<t.length&&!((r-=2)<0);++o)e=(n=t.charCodeAt(o))>>8,i.push(n%256),i.push(e);return i}(r,t.length-n),t,n,e)}function A(t,r,n){return e.fromByteArray(0===r&&n===t.length?t:t.slice(r,n))}function S(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i<n;){var o,s,a,u,l=t[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:s=t[i+2],128==(192&(o=t[i+1]))&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:s=t[i+2],a=t[i+3],128==(192&(o=t[i+1]))&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(e.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),e.push(c),i+=f}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);for(var n="",e=0;e<r;)n+=String.fromCharCode.apply(String,t.slice(e,e+=4096));return n}(e)}function L(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(127&t[i]);return e}function C(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;i<n;++i)e+=String.fromCharCode(t[i]);return e}function R(t,r,n){var e=t.length;(!r||r<0)&&(r=0),(!n||n<0||n>e)&&(n=e);for(var i="",o=r;o<n;++o)i+=F(t[o]);return i}function w(t,r,n){for(var e=t.slice(r,n),i="",o=0;o<e.length;o+=2)i+=String.fromCharCode(e[o]+256*e[o+1]);return i}function O(t,r,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>n)throw new RangeError("Trying to access beyond buffer length")}function _(t,r,n,e,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(n+e>t.length)throw new RangeError("Index out of range")}function k(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(r&255<<8*(e?i:1-i))>>>8*(e?i:1-i)}function P(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=r>>>8*(e?i:3-i)&255}function D(t,r,n,e){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(t,r,n,e,o){return o||D(t,0,n,4),i.write(t,r,n,e,23,4),n+4}function j(t,r,n,e,o){return o||D(t,0,n,8),i.write(t,r,n,e,52,8),n+8}r.Buffer=u,r.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},r.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),r.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,r,n){return l(null,t,r,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,r,n){return function(t,r,n,e){return c(r),r<=0?a(t,r):void 0!==n?"string"==typeof e?a(t,r).fill(n,e):a(t,r).fill(n):a(t,r)}(null,t,r,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,r){if(!u.isBuffer(t)||!u.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var n=t.length,e=r.length,i=0,o=Math.min(n,e);i<o;++i)if(t[i]!==r[i]){n=t[i],e=r[i];break}return n<e?-1:e<n?1:0},u.isEncoding=function(t){switch(String(t).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}},u.concat=function(t,r){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===r)for(r=0,n=0;n<t.length;++n)r+=t[n].length;var e=u.allocUnsafe(r),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(e,i),i+=s.length}return e},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)E(this,r,r+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)E(this,r,r+3),E(this,r+1,r+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)E(this,r,r+7),E(this,r+1,r+6),E(this,r+2,r+5),E(this,r+3,r+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=r.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,r,n,e,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(e>>>=0),s=(n>>>=0)-(r>>>=0),a=Math.min(o,s),l=this.slice(e,i),c=t.slice(r,n),f=0;f<a;++f)if(l[f]!==c[f]){o=l[f],s=c[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,r,n){return-1!==this.indexOf(t,r,n)},u.prototype.indexOf=function(t,r,n){return b(this,t,r,n,!0)},u.prototype.lastIndexOf=function(t,r,n){return b(this,t,r,n,!1)},u.prototype.write=function(t,r,n,e){if(void 0===r)e="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)e=r,n=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(n)?(n|=0,void 0===e&&(e="utf8")):(e=n,n=void 0)}var i=this.length-r;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return g(this,t,r,n);case"utf8":case"utf-8":return y(this,t,r,n);case"ascii":return x(this,t,r,n);case"latin1":case"binary":return T(this,t,r,n);case"base64":return I(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,r){var n,e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(r=void 0===r?e:~~r)<0?(r+=e)<0&&(r=0):r>e&&(r=e),r<t&&(r=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,r)).__proto__=u.prototype;else{var i=r-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,r,n){t|=0,r|=0,n||O(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e},u.prototype.readUIntBE=function(t,r,n){t|=0,r|=0,n||O(t,r,this.length);for(var e=this[t+--r],i=1;r>0&&(i*=256);)e+=this[t+--r]*i;return e},u.prototype.readUInt8=function(t,r){return r||O(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,r){return r||O(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,r){return r||O(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,r){return r||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,r){return r||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,r,n){t|=0,r|=0,n||O(t,r,this.length);for(var e=this[t],i=1,o=0;++o<r&&(i*=256);)e+=this[t+o]*i;return e>=(i*=128)&&(e-=Math.pow(2,8*r)),e},u.prototype.readIntBE=function(t,r,n){t|=0,r|=0,n||O(t,r,this.length);for(var e=r,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},u.prototype.readInt8=function(t,r){return r||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,r){r||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,r){r||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,r){return r||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,r){return r||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,r){return r||O(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,r){return r||O(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,r){return r||O(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,r){return r||O(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,r,n,e){t=+t,r|=0,n|=0,e||_(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[r]=255&t;++o<n&&(i*=256);)this[r+o]=t/i&255;return r+n},u.prototype.writeUIntBE=function(t,r,n,e){t=+t,r|=0,n|=0,e||_(this,t,r,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+n},u.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},u.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):k(this,t,r,!0),r+2},u.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):k(this,t,r,!1),r+2},u.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):P(this,t,r,!0),r+4},u.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):P(this,t,r,!1),r+4},u.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);_(this,t,r,n,i-1,-i)}var o=0,s=1,a=0;for(this[r]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[r+o-1]&&(a=1),this[r+o]=(t/s>>0)-a&255;return r+n},u.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);_(this,t,r,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[r+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[r+o+1]&&(a=1),this[r+o]=(t/s>>0)-a&255;return r+n},u.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},u.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):k(this,t,r,!0),r+2},u.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):k(this,t,r,!1),r+2},u.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):P(this,t,r,!0),r+4},u.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||_(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):P(this,t,r,!1),r+4},u.prototype.writeFloatLE=function(t,r,n){return M(this,t,r,!0,n)},u.prototype.writeFloatBE=function(t,r,n){return M(this,t,r,!1,n)},u.prototype.writeDoubleLE=function(t,r,n){return j(this,t,r,!0,n)},u.prototype.writeDoubleBE=function(t,r,n){return j(this,t,r,!1,n)},u.prototype.copy=function(t,r,n,e){if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e<n&&(e=n),e===n)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r<e-n&&(e=t.length-r+n);var i,o=e-n;if(this===t&&n<r&&r<e)for(i=o-1;i>=0;--i)t[i+r]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),r);return o},u.prototype.fill=function(t,r,n,e){if("string"==typeof t){if("string"==typeof r?(e=r,r=0,n=this.length):"string"==typeof n&&(e=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;var o;if(r>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=r;o<n;++o)this[o]=t;else{var s=u.isBuffer(t)?t:U(new u(t,e).toString()),a=s.length;for(o=0;o<n-r;++o)this[o+r]=s[o%a]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function U(t,r){var n;r=r||1/0;for(var e=t.length,i=null,o=[],s=0;s<e;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(s+1===e){(r-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(t){return e.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,r,n,e){for(var i=0;i<e&&!(i+n>=r.length||i>=t.length);++i)r[i+n]=t[i];return i}}).call(this,n(72))},function(t,r){r.byteLength=function(t){var r=u(t),n=r[1];return 3*(r[0]+n)/4-n},r.toByteArray=function(t){var r,n,o=u(t),s=o[0],a=o[1],l=new i(function(t,r,n){return 3*(r+n)/4-n}(0,s,a)),c=0,f=a>0?s-4:s;for(n=0;n<f;n+=4)r=e[t.charCodeAt(n)]<<18|e[t.charCodeAt(n+1)]<<12|e[t.charCodeAt(n+2)]<<6|e[t.charCodeAt(n+3)],l[c++]=r>>16&255,l[c++]=r>>8&255,l[c++]=255&r;return 2===a&&(r=e[t.charCodeAt(n)]<<2|e[t.charCodeAt(n+1)]>>4,l[c++]=255&r),1===a&&(r=e[t.charCodeAt(n)]<<10|e[t.charCodeAt(n+1)]<<4|e[t.charCodeAt(n+2)]>>2,l[c++]=r>>8&255,l[c++]=255&r),l},r.fromByteArray=function(t){for(var r,e=t.length,i=e%3,o=[],s=0,a=e-i;s<a;s+=16383)o.push(l(t,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(r=t[e-1])>>2]+n[r<<4&63]+"=="):2===i&&o.push(n[(r=(t[e-2]<<8)+t[e-1])>>10]+n[r>>4&63]+n[r<<2&63]+"="),o.join("")};for(var n=[],e=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)n[s]=o[s],e[o.charCodeAt(s)]=s;function u(t){var r=t.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=r),[n,n===r?0:4-n%4]}function l(t,r,e){for(var i,o=[],s=r;s<e;s+=3)o.push(n[(i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]))>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}e["-".charCodeAt(0)]=62,e["_".charCodeAt(0)]=63},function(t,r){r.read=function(t,r,n,e,i){var o,s,a=8*i-e-1,u=(1<<a)-1,l=u>>1,c=-7,f=n?i-1:0,h=n?-1:1,p=t[r+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+t[r+f],f+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=e;c>0;s=256*s+t[r+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,e),o-=l}return(p?-1:1)*s*Math.pow(2,o-e)},r.write=function(t,r,n,e,i,o){var s,a,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=e?0:o-1,d=e?1:-1,v=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,s=c):(s=Math.floor(Math.log(r)/Math.LN2),r*(u=Math.pow(2,-s))<1&&(s--,u*=2),(r+=s+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(r*u-1)*Math.pow(2,i),s+=f):(a=r*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+p]=255&s,p+=d,s/=256,l-=8);t[n+p-d]|=128*v}},function(t){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t){t.exports=function(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],e=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(e=(s=a.next()).done)&&(n.push(s.value),!r||n.length!==r);e=!0);}catch(t){i=!0,o=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw o}}return n}}},function(){},function(t,r,n){var e=n(118);t.exports=function(t){if(Array.isArray(t))return e(t)}},function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(){},function(){},function(t,r,n){var e,i;e=[n(95)],void 0===(i=function(t){return function(t,r,n,e){var i,o,s,a,u=function(r){this.$=function(t,r){return this.api(!0).$(t,r)},this._=function(t,r){return this.api(!0).rows(t,r).data()},this.api=function(t){return new o(t?sr(this[i.iApiIndex]):this)},this.fnAddData=function(r,n){var i=this.api(!0),o=Array.isArray(r)&&(Array.isArray(r[0])||t.isPlainObject(r[0]))?i.rows.add(r):i.row.add(r);return(n===e||n)&&i.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var r=this.api(!0).columns.adjust(),n=r.settings()[0],i=n.oScroll;t===e||t?r.draw(!1):""===i.sX&&""===i.sY||Vt(n)},this.fnClearTable=function(t){var r=this.api(!0).clear();(t===e||t)&&r.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,r,n){var i=this.api(!0),o=i.rows(t),s=o.settings()[0],a=s.aoData[o[0][0]];return o.remove(),r&&r.call(this,s,a),(n===e||n)&&i.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,r,n,i,o,s){var a=this.api(!0);null===r||r===e?a.search(t,n,i,s):a.column(r).search(t,n,i,s),a.draw()},this.fnGetData=function(t,r){var n=this.api(!0);if(t!==e){var i=t.nodeName?t.nodeName.toLowerCase():"";return r!==e||"td"==i||"th"==i?n.cell(t,r).data():n.row(t).data()||null}return n.data().toArray()},this.fnGetNodes=function(t){var r=this.api(!0);return t!==e?r.row(t).node():r.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var r=this.api(!0),n=t.nodeName.toUpperCase();if("TR"==n)return r.row(t).index();if("TD"==n||"TH"==n){var e=r.cell(t).index();return[e.row,e.columnVisible,e.column]}return null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,r,n){return this.api(!0).row(t).child(r,n).show().child()[0]},this.fnPageChange=function(t,r){var n=this.api(!0).page(t);(r===e||r)&&n.draw(!1)},this.fnSetColumnVis=function(t,r,n){var i=this.api(!0).column(t).visible(r);(n===e||n)&&i.columns.adjust().draw()},this.fnSettings=function(){return sr(this[i.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,r,n){this.api(!0).order.listener(t,r,n)},this.fnUpdate=function(t,r,n,i,o){var s=this.api(!0);return n===e||null===n?s.row(r).data(t):s.cell(r,n).data(t),(o===e||o)&&s.columns.adjust(),(i===e||i)&&s.draw(),0},this.fnVersionCheck=i.fnVersionCheck;var n=this,s=r===e,a=this.length;for(var l in s&&(r={}),this.oApi=this.internal=i.internal,u.ext.internal)l&&(this[l]=Pr(l));return this.each((function(){var i,o=a>1?lr({},r,!0):r,l=0,c=this.getAttribute("id"),f=!1,h=u.defaults,p=t(this);if("table"==this.nodeName.toLowerCase()){O(h),_(h.column),C(h,h,!0),C(h.column,h.column,!0),C(h,t.extend(o,p.data()),!0);var d=u.settings;for(l=0,i=d.length;l<i;l++){var v=d[l];if(v.nTable==this||v.nTHead&&v.nTHead.parentNode==this||v.nTFoot&&v.nTFoot.parentNode==this){if(s||(o.bRetrieve!==e?o.bRetrieve:h.bRetrieve))return v.oInstance;if(o.bDestroy!==e?o.bDestroy:h.bDestroy){v.oInstance.fnDestroy();break}return void ar(v,0,"Cannot reinitialise DataTable",3)}if(v.sTableId==this.id){d.splice(l,1);break}}null!==c&&""!==c||(c="DataTables_Table_"+u.ext._unique++,this.id=c);var E=t.extend(!0,{},u.models.oSettings,{sDestroyWidth:p[0].style.width,sInstance:c,sTableId:c});E.nTable=this,E.oApi=n.internal,E.oInit=o,d.push(E),E.oInstance=1===n.length?n:p.dataTable(),O(o),R(o.oLanguage),o.aLengthMenu&&!o.iDisplayLength&&(o.iDisplayLength=Array.isArray(o.aLengthMenu[0])?o.aLengthMenu[0][0]:o.aLengthMenu[0]),o=lr(t.extend(!0,{},h),o),ur(E.oFeatures,o,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),ur(E,o,["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"]]),ur(E.oScroll,o,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),ur(E.oLanguage,o,"fnInfoCallback"),fr(E,"aoDrawCallback",o.fnDrawCallback,"user"),fr(E,"aoServerParams",o.fnServerParams,"user"),fr(E,"aoStateSaveParams",o.fnStateSaveParams,"user"),fr(E,"aoStateLoadParams",o.fnStateLoadParams,"user"),fr(E,"aoStateLoaded",o.fnStateLoaded,"user"),fr(E,"aoRowCallback",o.fnRowCallback,"user"),fr(E,"aoRowCreatedCallback",o.fnCreatedRow,"user"),fr(E,"aoHeaderCallback",o.fnHeaderCallback,"user"),fr(E,"aoFooterCallback",o.fnFooterCallback,"user"),fr(E,"aoInitComplete",o.fnInitComplete,"user"),fr(E,"aoPreDrawCallback",o.fnPreDrawCallback,"user"),E.rowIdFn=Q(o.rowId),k(E);var b=E.oClasses;if(t.extend(b,u.ext.classes,o.oClasses),p.addClass(b.sTable),E.iInitDisplayStart===e&&(E.iInitDisplayStart=o.iDisplayStart,E._iDisplayStart=o.iDisplayStart),null!==o.iDeferLoading){E.bDeferLoading=!0;var m=Array.isArray(o.iDeferLoading);E._iRecordsDisplay=m?o.iDeferLoading[0]:o.iDeferLoading,E._iRecordsTotal=m?o.iDeferLoading[1]:o.iDeferLoading}var g=E.oLanguage;t.extend(!0,g,o.oLanguage),g.sUrl?(t.ajax({dataType:"json",url:g.sUrl,success:function(r){R(r),C(h.oLanguage,r),t.extend(!0,g,r),hr(E,null,"i18n",[E]),kt(E)},error:function(){kt(E)}}),f=!0):hr(E,null,"i18n",[E]),null===o.asStripeClasses&&(E.asStripeClasses=[b.sStripeOdd,b.sStripeEven]);var y=E.asStripeClasses,x=p.children("tbody").find("tr").eq(0);-1!==t.inArray(!0,t.map(y,(function(t){return x.hasClass(t)})))&&(t("tbody tr",this).removeClass(y.join(" ")),E.asDestroyStripes=y.slice());var T,I=[],N=this.getElementsByTagName("thead");if(0!==N.length&&(ft(E.aoHeader,N[0]),I=ht(E)),null===o.aoColumns)for(T=[],l=0,i=I.length;l<i;l++)T.push(null);else T=o.aoColumns;for(l=0,i=T.length;l<i;l++)D(E,I?I[l]:null);if(q(E,o.aoColumnDefs,T,(function(t,r){M(E,t,r)})),x.length){var A=function(t,r){return null!==t.getAttribute("data-"+r)?r:null};t(x[0]).children("th, td").each((function(t,r){var n=E.aoColumns[t];if(n.mData===t){var i=A(r,"sort")||A(r,"order"),o=A(r,"filter")||A(r,"search");null===i&&null===o||(n.mData={_:t+".display",sort:null!==i?t+".@data-"+i:e,type:null!==i?t+".@data-"+i:e,filter:null!==o?t+".@data-"+o:e},M(E,t))}}))}var S=E.oFeatures,L=function(){if(o.aaSorting===e){var r=E.aaSorting;for(l=0,i=r.length;l<i;l++)r[l][1]=E.aoColumns[l].asSorting[0]}nr(E),S.bSort&&fr(E,"aoDrawCallback",(function(){if(E.bSorted){var r=Qt(E),n={};t.each(r,(function(t,r){n[r.src]=r.dir})),hr(E,null,"order",[E,r,n]),Jt(E)}})),fr(E,"aoDrawCallback",(function(){(E.bSorted||"ssp"===vr(E)||S.bDeferRender)&&nr(E)}),"sc");var n=p.children("caption").each((function(){this._captionSide=t(this).css("caption-side")})),s=p.children("thead");0===s.length&&(s=t("<thead/>").appendTo(p)),E.nTHead=s[0];var a=p.children("tbody");0===a.length&&(a=t("<tbody/>").appendTo(p)),E.nTBody=a[0];var u=p.children("tfoot");if(0===u.length&&n.length>0&&(""!==E.oScroll.sX||""!==E.oScroll.sY)&&(u=t("<tfoot/>").appendTo(p)),0===u.length||0===u.children().length?p.addClass(b.sNoFooter):u.length>0&&(E.nTFoot=u[0],ft(E.aoFooter,E.nTFoot)),o.aaData)for(l=0;l<o.aaData.length;l++)H(E,o.aaData[l]);else(E.bDeferLoading||"dom"==vr(E))&&z(E,t(E.nTBody).children("tr"));E.aiDisplay=E.aiDisplayMaster.slice(),E.bInitialised=!0,!1===f&&kt(E)};o.bStateSave?(S.bStateSave=!0,fr(E,"aoDrawCallback",ir,"state_save"),or(E,0,L)):L()}else ar(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),n=null,this},l={},c=/[\r\n\u2028]/g,f=/<.*?>/g,h=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,p=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),d=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,v=function(t){return!t||!0===t||"-"===t},E=function(t){var r=parseInt(t,10);return!isNaN(r)&&isFinite(t)?r:null},b=function(t,r){return l[r]||(l[r]=new RegExp(Nt(r),"g")),"string"==typeof t&&"."!==r?t.replace(/\./g,"").replace(l[r],"."):t},m=function(t,r,n){var e="string"==typeof t;return!!v(t)||(r&&e&&(t=b(t,r)),n&&e&&(t=t.replace(d,"")),!isNaN(parseFloat(t))&&isFinite(t))},g=function(t,r,n){return!!v(t)||function(t){return v(t)||"string"==typeof t}(t)&&!!m(N(t),r,n)||null},y=function(t,r,n){var i=[],o=0,s=t.length;if(n!==e)for(;o<s;o++)t[o]&&t[o][r]&&i.push(t[o][r][n]);else for(;o<s;o++)t[o]&&i.push(t[o][r]);return i},x=function(t,r,n,i){var o=[],s=0,a=r.length;if(i!==e)for(;s<a;s++)t[r[s]][n]&&o.push(t[r[s]][n][i]);else for(;s<a;s++)o.push(t[r[s]][n]);return o},T=function(t,r){var n,i=[];r===e?(r=0,n=t):(n=r,r=t);for(var o=r;o<n;o++)i.push(o);return i},I=function(t){for(var r=[],n=0,e=t.length;n<e;n++)t[n]&&r.push(t[n]);return r},N=function(t){return t.replace(f,"")},A=function(t){if(function(t){if(t.length<2)return!0;for(var r=t.slice().sort(),n=r[0],e=1,i=r.length;e<i;e++){if(r[e]===n)return!1;n=r[e]}return!0}(t))return t.slice();var r,n,e,i=[],o=t.length,s=0;t:for(n=0;n<o;n++){for(r=t[n],e=0;e<s;e++)if(i[e]===r)continue t;i.push(r),s++}return i},S=function(t,r){if(Array.isArray(r))for(var n=0;n<r.length;n++)S(t,r[n]);else t.push(r);return t};function L(r){var n,e,i={};t.each(r,(function(t){(n=t.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(e=t.replace(n[0],n[2].toLowerCase()),i[e]=t,"o"===n[1]&&L(r[t]))})),r._hungarianMap=i}function C(r,n,i){var o;r._hungarianMap||L(r),t.each(n,(function(s){(o=r._hungarianMap[s])===e||!i&&n[o]!==e||("o"===o.charAt(0)?(n[o]||(n[o]={}),t.extend(!0,n[o],n[s]),C(r[o],n[o],i)):n[o]=n[s])}))}function R(t){var r=u.defaults.oLanguage,n=r.sDecimal;if(n&&_r(n),t){var e=t.sZeroRecords;!t.sEmptyTable&&e&&"No data available in table"===r.sEmptyTable&&ur(t,t,"sZeroRecords","sEmptyTable"),!t.sLoadingRecords&&e&&"Loading..."===r.sLoadingRecords&&ur(t,t,"sZeroRecords","sLoadingRecords"),t.sInfoThousands&&(t.sThousands=t.sInfoThousands);var i=t.sDecimal;i&&n!==i&&_r(i)}}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),u.util={throttle:function(t,r){var n,i,o=r!==e?r:200;return function(){var r=this,s=+new Date,a=arguments;n&&s<n+o?(clearTimeout(i),i=setTimeout((function(){n=e,t.apply(r,a)}),o)):(n=s,t.apply(r,a))}},escapeRegex:function(t){return t.replace(p,"\\$1")}};var w=function(t,r,n){t[r]!==e&&(t[n]=t[r])};function O(t){w(t,"ordering","bSort"),w(t,"orderMulti","bSortMulti"),w(t,"orderClasses","bSortClasses"),w(t,"orderCellsTop","bSortCellsTop"),w(t,"order","aaSorting"),w(t,"orderFixed","aaSortingFixed"),w(t,"paging","bPaginate"),w(t,"pagingType","sPaginationType"),w(t,"pageLength","iDisplayLength"),w(t,"searching","bFilter"),"boolean"==typeof t.sScrollX&&(t.sScrollX=t.sScrollX?"100%":""),"boolean"==typeof t.scrollX&&(t.scrollX=t.scrollX?"100%":"");var r=t.aoSearchCols;if(r)for(var n=0,e=r.length;n<e;n++)r[n]&&C(u.models.oSearch,r[n])}function _(t){w(t,"orderable","bSortable"),w(t,"orderData","aDataSort"),w(t,"orderSequence","asSorting"),w(t,"orderDataType","sortDataType");var r=t.aDataSort;"number"!=typeof r||Array.isArray(r)||(t.aDataSort=[r])}function k(n){if(!u.__browser){var e={};u.__browser=e;var i=t("<div/>").css({position:"fixed",top:0,left:-1*t(r).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("<div/>").css({width:"100%",height:10}))).appendTo("body"),o=i.children(),s=o.children();e.barWidth=o[0].offsetWidth-o[0].clientWidth,e.bScrollOversize=100===s[0].offsetWidth&&100!==o[0].clientWidth,e.bScrollbarLeft=1!==Math.round(s.offset().left),e.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}t.extend(n.oBrowser,u.__browser),n.oScroll.iBarWidth=u.__browser.barWidth}function P(t,r,n,i,o,s){var a,u=i,l=!1;for(n!==e&&(a=n,l=!0);u!==o;)t.hasOwnProperty(u)&&(a=l?r(a,t[u],u,t):t[u],l=!0,u+=s);return a}function D(r,e){var i=u.defaults.column,o=r.aoColumns.length,s=t.extend({},u.models.oColumn,i,{nTh:e||n.createElement("th"),sTitle:i.sTitle?i.sTitle:e?e.innerHTML:"",aDataSort:i.aDataSort?i.aDataSort:[o],mData:i.mData?i.mData:o,idx:o});r.aoColumns.push(s);var a=r.aoPreSearchCols;a[o]=t.extend({},u.models.oSearch,a[o]),M(r,o,t(e).data())}function M(r,n,i){var o=r.aoColumns[n],s=r.oClasses,a=t(o.nTh);if(!o.sWidthOrig){o.sWidthOrig=a.attr("width")||null;var l=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(o.sWidthOrig=l[1])}i!==e&&null!==i&&(_(i),C(u.defaults.column,i,!0),i.mDataProp===e||i.mData||(i.mData=i.mDataProp),i.sType&&(o._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),i.sClass&&a.addClass(i.sClass),t.extend(o,i),ur(o,i,"sWidth","sWidthOrig"),i.iDataSort!==e&&(o.aDataSort=[i.iDataSort]),ur(o,i,"aDataSort"));var c=o.mData,f=Q(c),h=o.mRender?Q(o.mRender):null,p=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};o._bAttrSrc=t.isPlainObject(c)&&(p(c.sort)||p(c.type)||p(c.filter)),o._setter=null,o.fnGetData=function(t,r,n){var i=f(t,r,e,n);return h&&r?h(i,r,t,n):i},o.fnSetData=function(t,r,n){return K(c)(t,r,n)},"number"!=typeof c&&(r._rowReadObject=!0),r.oFeatures.bSort||(o.bSortable=!1,a.addClass(s.sSortableNone));var d=-1!==t.inArray("asc",o.asSorting),v=-1!==t.inArray("desc",o.asSorting);o.bSortable&&(d||v)?d&&!v?(o.sSortingClass=s.sSortableAsc,o.sSortingClassJUI=s.sSortJUIAscAllowed):!d&&v?(o.sSortingClass=s.sSortableDesc,o.sSortingClassJUI=s.sSortJUIDescAllowed):(o.sSortingClass=s.sSortable,o.sSortingClassJUI=s.sSortJUI):(o.sSortingClass=s.sSortableNone,o.sSortingClassJUI="")}function j(t){if(!1!==t.oFeatures.bAutoWidth){var r=t.aoColumns;zt(t);for(var n=0,e=r.length;n<e;n++)r[n].nTh.style.width=r[n].sWidth}var i=t.oScroll;""===i.sY&&""===i.sX||Vt(t),hr(t,null,"column-sizing",[t])}function G(t,r){var n=B(t,"bVisible");return"number"==typeof n[r]?n[r]:null}function F(r,n){var e=B(r,"bVisible"),i=t.inArray(n,e);return-1!==i?i:null}function U(r){var n=0;return t.each(r.aoColumns,(function(r,e){e.bVisible&&"none"!==t(e.nTh).css("display")&&n++})),n}function B(r,n){var e=[];return t.map(r.aoColumns,(function(t,r){t[n]&&e.push(r)})),e}function V(t){var r,n,i,o,s,a,l,c,f,h=t.aoColumns,p=t.aoData,d=u.ext.type.detect;for(r=0,n=h.length;r<n;r++)if(f=[],!(l=h[r]).sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(i=0,o=d.length;i<o;i++){for(s=0,a=p.length;s<a&&(f[s]===e&&(f[s]=$(t,s,r,"type")),(c=d[i](f[s],t))||i===d.length-1)&&"html"!==c;s++);if(c){l.sType=c;break}}l.sType||(l.sType="string")}}function q(r,n,i,o){var s,a,u,l,c,f,h,p=r.aoColumns;if(n)for(s=n.length-1;s>=0;s--){var d=(h=n[s]).targets!==e?h.targets:h.aTargets;for(Array.isArray(d)||(d=[d]),u=0,l=d.length;u<l;u++)if("number"==typeof d[u]&&d[u]>=0){for(;p.length<=d[u];)D(r);o(d[u],h)}else if("number"==typeof d[u]&&d[u]<0)o(p.length+d[u],h);else if("string"==typeof d[u])for(c=0,f=p.length;c<f;c++)("_all"==d[u]||t(p[c].nTh).hasClass(d[u]))&&o(c,h)}if(i)for(s=0,a=i.length;s<a;s++)o(s,i[s])}function H(r,n,i,o){var s=r.aoData.length,a=t.extend(!0,{},u.models.oRow,{src:i?"dom":"data",idx:s});a._aData=n,r.aoData.push(a);for(var l=r.aoColumns,c=0,f=l.length;c<f;c++)l[c].sType=null;r.aiDisplayMaster.push(s);var h=r.rowIdFn(n);return h!==e&&(r.aIds[h]=a),!i&&r.oFeatures.bDeferRender||it(r,s,i,o),s}function z(r,n){var e;return n instanceof t||(n=t(n)),n.map((function(t,n){return e=et(r,n),H(r,e.data,n,e.cells)}))}function $(t,r,n,i){var o=t.iDraw,s=t.aoColumns[n],a=t.aoData[r]._aData,u=s.sDefaultContent,l=s.fnGetData(a,i,{settings:t,row:r,col:n});if(l===e)return t.iDrawError!=o&&null===u&&(ar(t,0,"Requested unknown parameter "+("function"==typeof s.mData?"{function}":"'"+s.mData+"'")+" for row "+r+", column "+n,4),t.iDrawError=o),u;if(l!==a&&null!==l||null===u||i===e){if("function"==typeof l)return l.call(a)}else l=u;return null===l&&"display"==i?"":l}function W(t,r,n,e){t.aoColumns[n].fnSetData(t.aoData[r]._aData,e,{settings:t,row:r,col:n})}var Y=/\[.*?\]$/,X=/\(\)$/;function Z(r){return t.map(r.match(/(\\.|[^\.])+/g)||[""],(function(t){return t.replace(/\\\./g,".")}))}function Q(r){if(t.isPlainObject(r)){var n={};return t.each(r,(function(t,r){r&&(n[t]=Q(r))})),function(t,r,i,o){var s=n[r]||n._;return s!==e?s(t,r,i,o):t}}if(null===r)return function(t){return t};if("function"==typeof r)return function(t,n,e,i){return r(t,n,e,i)};if("string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("("))return function(t){return t[r]};var i=function(t,r,n){var o,s,a,u;if(""!==n)for(var l=Z(n),c=0,f=l.length;c<f;c++){if(o=l[c].match(Y),s=l[c].match(X),o){if(l[c]=l[c].replace(Y,""),""!==l[c]&&(t=t[l[c]]),a=[],l.splice(0,c+1),u=l.join("."),Array.isArray(t))for(var h=0,p=t.length;h<p;h++)a.push(i(t[h],r,u));var d=o[0].substring(1,o[0].length-1);t=""===d?a:a.join(d);break}if(s)l[c]=l[c].replace(X,""),t=t[l[c]]();else{if(null===t||t[l[c]]===e)return e;t=t[l[c]]}}return t};return function(t,n){return i(t,n,r)}}function K(r){if(t.isPlainObject(r))return K(r._);if(null===r)return function(){};if("function"==typeof r)return function(t,n,e){r(t,"set",n,e)};if("string"!=typeof r||-1===r.indexOf(".")&&-1===r.indexOf("[")&&-1===r.indexOf("("))return function(t,n){t[r]=n};var n=function(t,r,i){for(var o,s,a,u,l,c=Z(i),f=c[c.length-1],h=0,p=c.length-1;h<p;h++){if("__proto__"===c[h]||"constructor"===c[h])throw new Error("Cannot set prototype values");if(s=c[h].match(Y),a=c[h].match(X),s){if(c[h]=c[h].replace(Y,""),t[c[h]]=[],(o=c.slice()).splice(0,h+1),l=o.join("."),Array.isArray(r))for(var d=0,v=r.length;d<v;d++)n(u={},r[d],l),t[c[h]].push(u);else t[c[h]]=r;return}a&&(c[h]=c[h].replace(X,""),t=t[c[h]](r)),null!==t[c[h]]&&t[c[h]]!==e||(t[c[h]]={}),t=t[c[h]]}f.match(X)?t=t[f.replace(X,"")](r):t[f.replace(Y,"")]=r};return function(t,e){return n(t,e,r)}}function J(t){return y(t.aoData,"_aData")}function tt(t){t.aoData.length=0,t.aiDisplayMaster.length=0,t.aiDisplay.length=0,t.aIds={}}function rt(t,r,n){for(var i=-1,o=0,s=t.length;o<s;o++)t[o]==r?i=o:t[o]>r&&t[o]--;-1!=i&&n===e&&t.splice(i,1)}function nt(t,r,n,i){var o,s,a=t.aoData[r],u=function(n,e){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=$(t,r,e,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==a.src)){var l=a.anCells;if(l)if(i!==e)u(l[i],i);else for(o=0,s=l.length;o<s;o++)u(l[o],o)}else a._aData=et(t,a,i,i===e?e:a._aData).data;a._aSortData=null,a._aFilterData=null;var c=t.aoColumns;if(i!==e)c[i].sType=null;else{for(o=0,s=c.length;o<s;o++)c[o].sType=null;ot(t,a)}}function et(t,r,n,i){var o,s,a,u=[],l=r.firstChild,c=0,f=t.aoColumns,h=t._rowReadObject;i=i!==e?i:h?{}:[];var p=function(t,r){if("string"==typeof t){var n=t.indexOf("@");if(-1!==n){var e=t.substring(n+1);K(t)(i,r.getAttribute(e))}}},d=function(t){n!==e&&n!==c||(s=f[c],a=t.innerHTML.trim(),s&&s._bAttrSrc?(K(s.mData._)(i,a),p(s.mData.sort,t),p(s.mData.type,t),p(s.mData.filter,t)):h?(s._setter||(s._setter=K(s.mData)),s._setter(i,a)):i[c]=a),c++};if(l)for(;l;)"TD"!=(o=l.nodeName.toUpperCase())&&"TH"!=o||(d(l),u.push(l)),l=l.nextSibling;else for(var v=0,E=(u=r.anCells).length;v<E;v++)d(u[v]);var b=r.firstChild?r:r.nTr;if(b){var m=b.getAttribute("id");m&&K(t.rowId)(i,m)}return{data:i,cells:u}}function it(r,e,i,o){var s,a,u,l,c,f,h=r.aoData[e],p=h._aData,d=[];if(null===h.nTr){for(s=i||n.createElement("tr"),h.nTr=s,h.anCells=d,s._DT_RowIndex=e,ot(r,h),l=0,c=r.aoColumns.length;l<c;l++)u=r.aoColumns[l],(a=(f=!i)?n.createElement(u.sCellType):o[l])._DT_CellIndex={row:e,column:l},d.push(a),!f&&(!u.mRender&&u.mData===l||t.isPlainObject(u.mData)&&u.mData._===l+".display")||(a.innerHTML=$(r,e,l,"display")),u.sClass&&(a.className+=" "+u.sClass),u.bVisible&&!i?s.appendChild(a):!u.bVisible&&i&&a.parentNode.removeChild(a),u.fnCreatedCell&&u.fnCreatedCell.call(r.oInstance,a,$(r,e,l),p,e,l);hr(r,"aoRowCreatedCallback",null,[s,p,e,d])}}function ot(r,n){var e=n.nTr,i=n._aData;if(e){var o=r.rowIdFn(i);if(o&&(e.id=o),i.DT_RowClass){var s=i.DT_RowClass.split(" ");n.__rowc=n.__rowc?A(n.__rowc.concat(s)):s,t(e).removeClass(n.__rowc.join(" ")).addClass(i.DT_RowClass)}i.DT_RowAttr&&t(e).attr(i.DT_RowAttr),i.DT_RowData&&t(e).data(i.DT_RowData)}}function st(r){var n,e,i,o,s,a=r.nTHead,u=r.nTFoot,l=0===t("th, td",a).length,c=r.oClasses,f=r.aoColumns;for(l&&(o=t("<tr/>").appendTo(a)),n=0,e=f.length;n<e;n++)i=t((s=f[n]).nTh).addClass(s.sClass),l&&i.appendTo(o),r.oFeatures.bSort&&(i.addClass(s.sSortingClass),!1!==s.bSortable&&(i.attr("tabindex",r.iTabIndex).attr("aria-controls",r.sTableId),rr(r,s.nTh,n))),s.sTitle!=i[0].innerHTML&&i.html(s.sTitle),dr(r,"header")(r,i,s,c);if(l&&ft(r.aoHeader,a),t(a).children("tr").attr("role","row"),t(a).children("tr").children("th, td").addClass(c.sHeaderTH),t(u).children("tr").children("th, td").addClass(c.sFooterTH),null!==u){var h=r.aoFooter[0];for(n=0,e=h.length;n<e;n++)(s=f[n]).nTf=h[n].cell,s.sClass&&t(s.nTf).addClass(s.sClass)}}function at(r,n,i){var o,s,a,u,l,c,f,h,p,d=[],v=[],E=r.aoColumns.length;if(n){for(i===e&&(i=!1),o=0,s=n.length;o<s;o++){for(d[o]=n[o].slice(),d[o].nTr=n[o].nTr,a=E-1;a>=0;a--)r.aoColumns[a].bVisible||i||d[o].splice(a,1);v.push([])}for(o=0,s=d.length;o<s;o++){if(f=d[o].nTr)for(;c=f.firstChild;)f.removeChild(c);for(a=0,u=d[o].length;a<u;a++)if(h=1,p=1,v[o][a]===e){for(f.appendChild(d[o][a].cell),v[o][a]=1;d[o+h]!==e&&d[o][a].cell==d[o+h][a].cell;)v[o+h][a]=1,h++;for(;d[o][a+p]!==e&&d[o][a].cell==d[o][a+p].cell;){for(l=0;l<h;l++)v[o+l][a+p]=1;p++}t(d[o][a].cell).attr("rowspan",h).attr("colspan",p)}}}}function ut(r){var n=hr(r,"aoPreDrawCallback","preDraw",[r]);if(-1===t.inArray(!1,n)){var i=[],o=0,s=r.asStripeClasses,a=s.length,u=r.oLanguage,l=r.iInitDisplayStart,c="ssp"==vr(r),f=r.aiDisplay;r.bDrawing=!0,l!==e&&-1!==l&&(r._iDisplayStart=c?l:l>=r.fnRecordsDisplay()?0:l,r.iInitDisplayStart=-1);var h=r._iDisplayStart,p=r.fnDisplayEnd();if(r.bDeferLoading)r.bDeferLoading=!1,r.iDraw++,Ut(r,!1);else if(c){if(!r.bDestroying&&!dt(r))return}else r.iDraw++;if(0!==f.length)for(var d=c?r.aoData.length:p,v=c?0:h;v<d;v++){var E=f[v],b=r.aoData[E];null===b.nTr&&it(r,E);var m=b.nTr;if(0!==a){var g=s[o%a];b._sRowStripe!=g&&(t(m).removeClass(b._sRowStripe).addClass(g),b._sRowStripe=g)}hr(r,"aoRowCallback",null,[m,b._aData,o,v,E]),i.push(m),o++}else{var y=u.sZeroRecords;1==r.iDraw&&"ajax"==vr(r)?y=u.sLoadingRecords:u.sEmptyTable&&0===r.fnRecordsTotal()&&(y=u.sEmptyTable),i[0]=t("<tr/>",{class:a?s[0]:""}).append(t("<td />",{valign:"top",colSpan:U(r),class:r.oClasses.sRowEmpty}).html(y))[0]}hr(r,"aoHeaderCallback","header",[t(r.nTHead).children("tr")[0],J(r),h,p,f]),hr(r,"aoFooterCallback","footer",[t(r.nTFoot).children("tr")[0],J(r),h,p,f]);var x=t(r.nTBody);x.children().detach(),x.append(t(i)),hr(r,"aoDrawCallback","draw",[r]),r.bSorted=!1,r.bFiltered=!1,r.bDrawing=!1}else Ut(r,!1)}function lt(t,r){var n=t.oFeatures,e=n.bFilter;n.bSort&&Kt(t),e?gt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==r&&(t._iDisplayStart=0),t._drawHold=r,ut(t),t._drawHold=!1}function ct(r){var n=r.oClasses,e=t(r.nTable),i=t("<div/>").insertBefore(e),o=r.oFeatures,s=t("<div/>",{id:r.sTableId+"_wrapper",class:n.sWrapper+(r.nTFoot?"":" "+n.sNoFooter)});r.nHolding=i[0],r.nTableWrapper=s[0],r.nTableReinsertBefore=r.nTable.nextSibling;for(var a,l,c,f,h,p,d=r.sDom.split(""),v=0;v<d.length;v++){if(a=null,"<"==(l=d[v])){if(c=t("<div/>")[0],"'"==(f=d[v+1])||'"'==f){for(h="",p=2;d[v+p]!=f;)h+=d[v+p],p++;if("H"==h?h=n.sJUIHeader:"F"==h&&(h=n.sJUIFooter),-1!=h.indexOf(".")){var E=h.split(".");c.id=E[0].substr(1,E[0].length-1),c.className=E[1]}else"#"==h.charAt(0)?c.id=h.substr(1,h.length-1):c.className=h;v+=p}s.append(c),s=t(c)}else if(">"==l)s=s.parent();else if("l"==l&&o.bPaginate&&o.bLengthChange)a=Mt(r);else if("f"==l&&o.bFilter)a=mt(r);else if("r"==l&&o.bProcessing)a=Ft(r);else if("t"==l)a=Bt(r);else if("i"==l&&o.bInfo)a=wt(r);else if("p"==l&&o.bPaginate)a=jt(r);else if(0!==u.ext.feature.length)for(var b=u.ext.feature,m=0,g=b.length;m<g;m++)if(l==b[m].cFeature){a=b[m].fnInit(r);break}if(a){var y=r.aanFeatures;y[l]||(y[l]=[]),y[l].push(a),s.append(a)}}i.replaceWith(s),r.nHolding=null}function ft(r,n){var e,i,o,s,a,u,l,c,f,h,p=t(n).children("tr"),d=function(t,r,n){for(var e=t[r];e[n];)n++;return n};for(r.splice(0,r.length),o=0,u=p.length;o<u;o++)r.push([]);for(o=0,u=p.length;o<u;o++)for(i=(e=p[o]).firstChild;i;){if("TD"==i.nodeName.toUpperCase()||"TH"==i.nodeName.toUpperCase())for(c=(c=1*i.getAttribute("colspan"))&&0!==c&&1!==c?c:1,f=(f=1*i.getAttribute("rowspan"))&&0!==f&&1!==f?f:1,l=d(r,o,0),h=1===c,a=0;a<c;a++)for(s=0;s<f;s++)r[o+s][l+a]={cell:i,unique:h},r[o+s].nTr=e;i=i.nextSibling}}function ht(t,r,n){var e=[];n||(n=t.aoHeader,r&&ft(n=[],r));for(var i=0,o=n.length;i<o;i++)for(var s=0,a=n[i].length;s<a;s++)!n[i][s].unique||e[s]&&t.bSortCellsTop||(e[s]=n[i][s].cell);return e}function pt(r,n,e){if(hr(r,"aoServerParams","serverParams",[n]),n&&Array.isArray(n)){var i={},o=/(.*?)\[\]$/;t.each(n,(function(t,r){var n=r.name.match(o);if(n){var e=n[0];i[e]||(i[e]=[]),i[e].push(r.value)}else i[r.name]=r.value})),n=i}var s,a=r.ajax,u=r.oInstance,l=function(t){hr(r,null,"xhr",[r,t,r.jqXHR]),e(t)};if(t.isPlainObject(a)&&a.data){var c="function"==typeof(s=a.data)?s(n,r):s;n="function"==typeof s&&c?c:t.extend(!0,n,c),delete a.data}var f={data:n,success:function(t){var n=t.error||t.sError;n&&ar(r,0,n),r.json=t,l(t)},dataType:"json",cache:!1,type:r.sServerMethod,error:function(n,e){var i=hr(r,null,"xhr",[r,null,r.jqXHR]);-1===t.inArray(!0,i)&&("parsererror"==e?ar(r,0,"Invalid JSON response",1):4===n.readyState&&ar(r,0,"Ajax error",7)),Ut(r,!1)}};r.oAjaxData=n,hr(r,null,"preXhr",[r,n]),r.fnServerData?r.fnServerData.call(u,r.sAjaxSource,t.map(n,(function(t,r){return{name:r,value:t}})),l,r):r.sAjaxSource||"string"==typeof a?r.jqXHR=t.ajax(t.extend(f,{url:a||r.sAjaxSource})):"function"==typeof a?r.jqXHR=a.call(u,n,l,r):(r.jqXHR=t.ajax(t.extend(f,a)),a.data=s)}function dt(t){return!t.bAjaxDataGet||(t.iDraw++,Ut(t,!0),pt(t,vt(t),(function(r){Et(t,r)})),!1)}function vt(r){var n,e,i,o,s=r.aoColumns,a=s.length,l=r.oFeatures,c=r.oPreviousSearch,f=r.aoPreSearchCols,h=[],p=Qt(r),d=r._iDisplayStart,v=!1!==l.bPaginate?r._iDisplayLength:-1,E=function(t,r){h.push({name:t,value:r})};E("sEcho",r.iDraw),E("iColumns",a),E("sColumns",y(s,"sName").join(",")),E("iDisplayStart",d),E("iDisplayLength",v);var b={draw:r.iDraw,columns:[],order:[],start:d,length:v,search:{value:c.sSearch,regex:c.bRegex}};for(n=0;n<a;n++)b.columns.push({data:e="function"==typeof(i=s[n]).mData?"function":i.mData,name:i.sName,searchable:i.bSearchable,orderable:i.bSortable,search:{value:(o=f[n]).sSearch,regex:o.bRegex}}),E("mDataProp_"+n,e),l.bFilter&&(E("sSearch_"+n,o.sSearch),E("bRegex_"+n,o.bRegex),E("bSearchable_"+n,i.bSearchable)),l.bSort&&E("bSortable_"+n,i.bSortable);l.bFilter&&(E("sSearch",c.sSearch),E("bRegex",c.bRegex)),l.bSort&&(t.each(p,(function(t,r){b.order.push({column:r.col,dir:r.dir}),E("iSortCol_"+t,r.col),E("sSortDir_"+t,r.dir)})),E("iSortingCols",p.length));var m=u.ext.legacy.ajax;return null===m?r.sAjaxSource?h:b:m?h:b}function Et(t,r){var n=function(t,n){return r[t]!==e?r[t]:r[n]},i=bt(t,r),o=n("sEcho","draw"),s=n("iTotalRecords","recordsTotal"),a=n("iTotalDisplayRecords","recordsFiltered");if(o!==e){if(1*o<t.iDraw)return;t.iDraw=1*o}tt(t),t._iRecordsTotal=parseInt(s,10),t._iRecordsDisplay=parseInt(a,10);for(var u=0,l=i.length;u<l;u++)H(t,i[u]);t.aiDisplay=t.aiDisplayMaster.slice(),t.bAjaxDataGet=!1,ut(t),t._bInitComplete||Pt(t,r),t.bAjaxDataGet=!0,Ut(t,!1)}function bt(r,n){var i=t.isPlainObject(r.ajax)&&r.ajax.dataSrc!==e?r.ajax.dataSrc:r.sAjaxDataProp;return"data"===i?n.aaData||n[i]:""!==i?Q(i)(n):n}function mt(r){var e=r.oClasses,i=r.sTableId,o=r.oLanguage,s=r.oPreviousSearch,a=r.aanFeatures,u='<input type="search" class="'+e.sFilterInput+'"/>',l=o.sSearch;l=l.match(/_INPUT_/)?l.replace("_INPUT_",u):l+u;var c=t("<div/>",{id:a.f?null:i+"_filter",class:e.sFilter}).append(t("<label/>").append(l)),f=function(){var t=this.value?this.value:"";t!=s.sSearch&&(gt(r,{sSearch:t,bRegex:s.bRegex,bSmart:s.bSmart,bCaseInsensitive:s.bCaseInsensitive}),r._iDisplayStart=0,ut(r))},h=null!==r.searchDelay?r.searchDelay:"ssp"===vr(r)?400:0,p=t("input",c).val(s.sSearch).attr("placeholder",o.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",h?$t(f,h):f).on("mouseup",(function(){setTimeout((function(){f.call(p[0])}),10)})).on("keypress.DT",(function(t){if(13==t.keyCode)return!1})).attr("aria-controls",i);return t(r.nTable).on("search.dt.DT",(function(t,e){if(r===e)try{p[0]!==n.activeElement&&p.val(s.sSearch)}catch(t){}})),c[0]}function gt(t,r,n){var i=t.oPreviousSearch,o=t.aoPreSearchCols,s=function(t){i.sSearch=t.sSearch,i.bRegex=t.bRegex,i.bSmart=t.bSmart,i.bCaseInsensitive=t.bCaseInsensitive},a=function(t){return t.bEscapeRegex!==e?!t.bEscapeRegex:t.bRegex};if(V(t),"ssp"!=vr(t)){Tt(t,r.sSearch,n,a(r),r.bSmart,r.bCaseInsensitive),s(r);for(var u=0;u<o.length;u++)xt(t,o[u].sSearch,u,a(o[u]),o[u].bSmart,o[u].bCaseInsensitive);yt(t)}else s(r);t.bFiltered=!0,hr(t,null,"search",[t])}function yt(r){for(var n,e,i=u.ext.search,o=r.aiDisplay,s=0,a=i.length;s<a;s++){for(var l=[],c=0,f=o.length;c<f;c++)i[s](r,(n=r.aoData[e=o[c]])._aFilterData,e,n._aData,c)&&l.push(e);o.length=0,t.merge(o,l)}}function xt(t,r,n,e,i,o){if(""!==r){for(var s=[],a=t.aiDisplay,u=It(r,e,i,o),l=0;l<a.length;l++)u.test(t.aoData[a[l]]._aFilterData[n])&&s.push(a[l]);t.aiDisplay=s}}function Tt(t,r,n,e,i,o){var s,a,l,c=It(r,e,i,o),f=t.oPreviousSearch.sSearch,h=t.aiDisplayMaster,p=[];if(0!==u.ext.search.length&&(n=!0),a=Lt(t),r.length<=0)t.aiDisplay=h.slice();else{for((a||n||e||f.length>r.length||0!==r.indexOf(f)||t.bSorted)&&(t.aiDisplay=h.slice()),s=t.aiDisplay,l=0;l<s.length;l++)c.test(t.aoData[s[l]]._sFilterRow)&&p.push(s[l]);t.aiDisplay=p}}function It(r,n,e,i){if(r=n?r:Nt(r),e){var o=t.map(r.match(/"[^"]+"|[^ ]+/g)||[""],(function(t){if('"'===t.charAt(0)){var r=t.match(/^"(.*)"$/);t=r?r[1]:t}return t.replace('"',"")}));r="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(r,i?"i":"")}var Nt=u.util.escapeRegex,At=t("<div>")[0],St=At.textContent!==e;function Lt(t){var r,n,e,i,o,s,a,l,c=t.aoColumns,f=u.ext.type.search,h=!1;for(n=0,i=t.aoData.length;n<i;n++)if(!(l=t.aoData[n])._aFilterData){for(s=[],e=0,o=c.length;e<o;e++)(r=c[e]).bSearchable?(a=$(t,n,e,"filter"),f[r.sType]&&(a=f[r.sType](a)),null===a&&(a=""),"string"!=typeof a&&a.toString&&(a=a.toString())):a="",a.indexOf&&-1!==a.indexOf("&")&&(At.innerHTML=a,a=St?At.textContent:At.innerText),a.replace&&(a=a.replace(/[\r\n\u2028]/g,"")),s.push(a);l._aFilterData=s,l._sFilterRow=s.join(" "),h=!0}return h}function Ct(t){return{search:t.sSearch,smart:t.bSmart,regex:t.bRegex,caseInsensitive:t.bCaseInsensitive}}function Rt(t){return{sSearch:t.search,bSmart:t.smart,bRegex:t.regex,bCaseInsensitive:t.caseInsensitive}}function wt(r){var n=r.sTableId,e=r.aanFeatures.i,i=t("<div/>",{class:r.oClasses.sInfo,id:e?null:n+"_info"});return e||(r.aoDrawCallback.push({fn:Ot,sName:"information"}),i.attr("role","status").attr("aria-live","polite"),t(r.nTable).attr("aria-describedby",n+"_info")),i[0]}function Ot(r){var n=r.aanFeatures.i;if(0!==n.length){var e=r.oLanguage,i=r._iDisplayStart+1,o=r.fnDisplayEnd(),s=r.fnRecordsTotal(),a=r.fnRecordsDisplay(),u=a?e.sInfo:e.sInfoEmpty;a!==s&&(u+=" "+e.sInfoFiltered),u=_t(r,u+=e.sInfoPostFix);var l=e.fnInfoCallback;null!==l&&(u=l.call(r.oInstance,r,i,o,s,a,u)),t(n).html(u)}}function _t(t,r){var n=t.fnFormatNumber,e=t._iDisplayStart+1,i=t._iDisplayLength,o=t.fnRecordsDisplay(),s=-1===i;return r.replace(/_START_/g,n.call(t,e)).replace(/_END_/g,n.call(t,t.fnDisplayEnd())).replace(/_MAX_/g,n.call(t,t.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(t,o)).replace(/_PAGE_/g,n.call(t,s?1:Math.ceil(e/i))).replace(/_PAGES_/g,n.call(t,s?1:Math.ceil(o/i)))}function kt(t){var r,n,e,i=t.iInitDisplayStart,o=t.aoColumns,s=t.oFeatures,a=t.bDeferLoading;if(t.bInitialised){for(ct(t),st(t),at(t,t.aoHeader),at(t,t.aoFooter),Ut(t,!0),s.bAutoWidth&&zt(t),r=0,n=o.length;r<n;r++)(e=o[r]).sWidth&&(e.nTh.style.width=Zt(e.sWidth));hr(t,null,"preInit",[t]),lt(t);var u=vr(t);("ssp"!=u||a)&&("ajax"==u?pt(t,[],(function(n){var e=bt(t,n);for(r=0;r<e.length;r++)H(t,e[r]);t.iInitDisplayStart=i,lt(t),Ut(t,!1),Pt(t,n)})):(Ut(t,!1),Pt(t)))}else setTimeout((function(){kt(t)}),200)}function Pt(t,r){t._bInitComplete=!0,(r||t.oInit.aaData)&&j(t),hr(t,null,"plugin-init",[t,r]),hr(t,"aoInitComplete","init",[t,r])}function Dt(t,r){var n=parseInt(r,10);t._iDisplayLength=n,pr(t),hr(t,null,"length",[t,n])}function Mt(r){for(var n=r.oClasses,e=r.sTableId,i=r.aLengthMenu,o=Array.isArray(i[0]),s=o?i[0]:i,a=o?i[1]:i,u=t("<select/>",{name:e+"_length","aria-controls":e,class:n.sLengthSelect}),l=0,c=s.length;l<c;l++)u[0][l]=new Option("number"==typeof a[l]?r.fnFormatNumber(a[l]):a[l],s[l]);var f=t("<div><label/></div>").addClass(n.sLength);return r.aanFeatures.l||(f[0].id=e+"_length"),f.children().append(r.oLanguage.sLengthMenu.replace("_MENU_",u[0].outerHTML)),t("select",f).val(r._iDisplayLength).on("change.DT",(function(){Dt(r,t(this).val()),ut(r)})),t(r.nTable).on("length.dt.DT",(function(n,e,i){r===e&&t("select",f).val(i)})),f[0]}function jt(r){var n=r.sPaginationType,e=u.ext.pager[n],i="function"==typeof e,o=function(t){ut(t)},s=t("<div/>").addClass(r.oClasses.sPaging+n)[0],a=r.aanFeatures;return i||e.fnInit(r,s,o),a.p||(s.id=r.sTableId+"_paginate",r.aoDrawCallback.push({fn:function(t){if(i){var r,n,s=t._iDisplayStart,u=t._iDisplayLength,l=t.fnRecordsDisplay(),c=-1===u,f=c?0:Math.ceil(s/u),h=c?1:Math.ceil(l/u),p=e(f,h);for(r=0,n=a.p.length;r<n;r++)dr(t,"pageButton")(t,a.p[r],r,p,f,h)}else e.fnUpdate(t,o)},sName:"pagination"})),s}function Gt(t,r,n){var e=t._iDisplayStart,i=t._iDisplayLength,o=t.fnRecordsDisplay();0===o||-1===i?e=0:"number"==typeof r?(e=r*i)>o&&(e=0):"first"==r?e=0:"previous"==r?(e=i>=0?e-i:0)<0&&(e=0):"next"==r?e+i<o&&(e+=i):"last"==r?e=Math.floor((o-1)/i)*i:ar(t,0,"Unknown paging action: "+r,5);var s=t._iDisplayStart!==e;return t._iDisplayStart=e,s&&(hr(t,null,"page",[t]),n&&ut(t)),s}function Ft(r){return t("<div/>",{id:r.aanFeatures.r?null:r.sTableId+"_processing",class:r.oClasses.sProcessing}).html(r.oLanguage.sProcessing).insertBefore(r.nTable)[0]}function Ut(r,n){r.oFeatures.bProcessing&&t(r.aanFeatures.r).css("display",n?"block":"none"),hr(r,null,"processing",[r,n])}function Bt(r){var n=t(r.nTable);n.attr("role","grid");var e=r.oScroll;if(""===e.sX&&""===e.sY)return r.nTable;var i=e.sX,o=e.sY,s=r.oClasses,a=n.children("caption"),u=a.length?a[0]._captionSide:null,l=t(n[0].cloneNode(!1)),c=t(n[0].cloneNode(!1)),f=n.children("tfoot"),h="<div/>",p=function(t){return t?Zt(t):null};f.length||(f=null);var d=t(h,{class:s.sScrollWrapper}).append(t(h,{class:s.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:i?p(i):"100%"}).append(t(h,{class:s.sScrollHeadInner}).css({"box-sizing":"content-box",width:e.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===u?a:null).append(n.children("thead"))))).append(t(h,{class:s.sScrollBody}).css({position:"relative",overflow:"auto",width:p(i)}).append(n));f&&d.append(t(h,{class:s.sScrollFoot}).css({overflow:"hidden",border:0,width:i?p(i):"100%"}).append(t(h,{class:s.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===u?a:null).append(n.children("tfoot")))));var v=d.children(),E=v[0],b=v[1],m=f?v[2]:null;return i&&t(b).on("scroll.DT",(function(){var t=this.scrollLeft;E.scrollLeft=t,f&&(m.scrollLeft=t)})),t(b).css("max-height",o),e.bCollapse||t(b).css("height",o),r.nScrollHead=E,r.nScrollBody=b,r.nScrollFoot=m,r.aoDrawCallback.push({fn:Vt,sName:"scrolling"}),d[0]}function Vt(r){var n,i,o,s,a,u,l,c,f,h=r.oScroll,p=h.sX,d=h.sXInner,v=h.sY,E=h.iBarWidth,b=t(r.nScrollHead),m=b[0].style,g=b.children("div"),x=g[0].style,T=g.children("table"),I=r.nScrollBody,N=t(I),A=I.style,S=t(r.nScrollFoot).children("div"),L=S.children("table"),C=t(r.nTHead),R=t(r.nTable),w=R[0],O=w.style,_=r.nTFoot?t(r.nTFoot):null,k=r.oBrowser,P=k.bScrollOversize,D=y(r.aoColumns,"nTh"),M=[],F=[],U=[],B=[],V=function(t){var r=t.style;r.paddingTop="0",r.paddingBottom="0",r.borderTopWidth="0",r.borderBottomWidth="0",r.height=0},q=I.scrollHeight>I.clientHeight;if(r.scrollBarVis!==q&&r.scrollBarVis!==e)return r.scrollBarVis=q,void j(r);r.scrollBarVis=q,R.children("thead, tfoot").remove(),_&&(u=_.clone().prependTo(R),i=_.find("tr"),s=u.find("tr")),a=C.clone().prependTo(R),n=C.find("tr"),o=a.find("tr"),a.find("th, td").removeAttr("tabindex"),p||(A.width="100%",b[0].style.width="100%"),t.each(ht(r,a),(function(t,n){l=G(r,t),n.style.width=r.aoColumns[l].sWidth})),_&&qt((function(t){t.style.width=""}),s),f=R.outerWidth(),""===p?(O.width="100%",P&&(R.find("tbody").height()>I.offsetHeight||"scroll"==N.css("overflow-y"))&&(O.width=Zt(R.outerWidth()-E)),f=R.outerWidth()):""!==d&&(O.width=Zt(d),f=R.outerWidth()),qt(V,o),qt((function(r){U.push(r.innerHTML),M.push(Zt(t(r).css("width")))}),o),qt((function(r,n){-1!==t.inArray(r,D)&&(r.style.width=M[n])}),n),t(o).height(0),_&&(qt(V,s),qt((function(r){B.push(r.innerHTML),F.push(Zt(t(r).css("width")))}),s),qt((function(t,r){t.style.width=F[r]}),i),t(s).height(0)),qt((function(t,r){t.innerHTML='<div class="dataTables_sizing">'+U[r]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=M[r]}),o),_&&qt((function(t,r){t.innerHTML='<div class="dataTables_sizing">'+B[r]+"</div>",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=F[r]}),s),R.outerWidth()<f?(c=I.scrollHeight>I.offsetHeight||"scroll"==N.css("overflow-y")?f+E:f,P&&(I.scrollHeight>I.offsetHeight||"scroll"==N.css("overflow-y"))&&(O.width=Zt(c-E)),""!==p&&""===d||ar(r,1,"Possible column misalignment",6)):c="100%",A.width=Zt(c),m.width=Zt(c),_&&(r.nScrollFoot.style.width=Zt(c)),v||P&&(A.height=Zt(w.offsetHeight+E));var H=R.outerWidth();T[0].style.width=Zt(H),x.width=Zt(H);var z=R.height()>I.clientHeight||"scroll"==N.css("overflow-y"),$="padding"+(k.bScrollbarLeft?"Left":"Right");x[$]=z?E+"px":"0px",_&&(L[0].style.width=Zt(H),S[0].style.width=Zt(H),S[0].style[$]=z?E+"px":"0px"),R.children("colgroup").insertBefore(R.children("thead")),N.trigger("scroll"),!r.bSorted&&!r.bFiltered||r._drawHold||(I.scrollTop=0)}function qt(t,r,n){for(var e,i,o=0,s=0,a=r.length;s<a;){for(e=r[s].firstChild,i=n?n[s].firstChild:null;e;)1===e.nodeType&&(n?t(e,i,o):t(e,o),o++),e=e.nextSibling,i=n?i.nextSibling:null;s++}}var Ht=/<.*?>/g;function zt(n){var e,i,o,s=n.nTable,a=n.aoColumns,u=n.oScroll,l=u.sY,c=u.sX,f=u.sXInner,h=a.length,p=B(n,"bVisible"),d=t("th",n.nTHead),v=s.getAttribute("width"),E=s.parentNode,b=!1,m=n.oBrowser,g=m.bScrollOversize,y=s.style.width;for(y&&-1!==y.indexOf("%")&&(v=y),e=0;e<p.length;e++)null!==(i=a[p[e]]).sWidth&&(i.sWidth=Wt(i.sWidthOrig,E),b=!0);if(g||!b&&!c&&!l&&h==U(n)&&h==d.length)for(e=0;e<h;e++){var x=G(n,e);null!==x&&(a[x].sWidth=Zt(d.eq(e).width()))}else{var T=t(s).clone().css("visibility","hidden").removeAttr("id");T.find("tbody tr").remove();var I=t("<tr/>").appendTo(T.find("tbody"));for(T.find("thead, tfoot").remove(),T.append(t(n.nTHead).clone()).append(t(n.nTFoot).clone()),T.find("tfoot th, tfoot td").css("width",""),d=ht(n,T.find("thead")[0]),e=0;e<p.length;e++)d[e].style.width=null!==(i=a[p[e]]).sWidthOrig&&""!==i.sWidthOrig?Zt(i.sWidthOrig):"",i.sWidthOrig&&c&&t(d[e]).append(t("<div/>").css({width:i.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(e=0;e<p.length;e++)i=a[o=p[e]],t(Yt(n,o)).clone(!1).append(i.sContentPadding).appendTo(I);t("[name]",T).removeAttr("name");var N=t("<div/>").css(c||l?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(T).appendTo(E);c&&f?T.width(f):c?(T.css("width","auto"),T.removeAttr("width"),T.width()<E.clientWidth&&v&&T.width(E.clientWidth)):l?T.width(E.clientWidth):v&&T.width(v);var A=0;for(e=0;e<p.length;e++){var S=t(d[e]),L=S.outerWidth()-S.width(),C=m.bBounding?Math.ceil(d[e].getBoundingClientRect().width):S.outerWidth();A+=C,a[p[e]].sWidth=Zt(C-L)}s.style.width=Zt(A),N.remove()}if(v&&(s.style.width=Zt(v)),(v||c)&&!n._reszEvt){var R=function(){t(r).on("resize.DT-"+n.sInstance,$t((function(){j(n)})))};g?setTimeout(R,1e3):R(),n._reszEvt=!0}}var $t=u.util.throttle;function Wt(r,e){if(!r)return 0;var i=t("<div/>").css("width",Zt(r)).appendTo(e||n.body),o=i[0].offsetWidth;return i.remove(),o}function Yt(r,n){var e=Xt(r,n);if(e<0)return null;var i=r.aoData[e];return i.nTr?i.anCells[n]:t("<td/>").html($(r,e,n,"display"))[0]}function Xt(t,r){for(var n,e=-1,i=-1,o=0,s=t.aoData.length;o<s;o++)(n=(n=(n=$(t,o,r,"display")+"").replace(Ht,"")).replace(/ /g," ")).length>e&&(e=n.length,i=o);return i}function Zt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Qt(r){var n,i,o,s,a,l,c,f=[],h=r.aoColumns,p=r.aaSortingFixed,d=t.isPlainObject(p),v=[],E=function(r){r.length&&!Array.isArray(r[0])?v.push(r):t.merge(v,r)};for(Array.isArray(p)&&E(p),d&&p.pre&&E(p.pre),E(r.aaSorting),d&&p.post&&E(p.post),n=0;n<v.length;n++)for(i=0,o=(s=h[c=v[n][0]].aDataSort).length;i<o;i++)l=h[a=s[i]].sType||"string",v[n]._idx===e&&(v[n]._idx=t.inArray(v[n][1],h[a].asSorting)),f.push({src:c,col:a,dir:v[n][1],index:v[n]._idx,type:l,formatter:u.ext.type.order[l+"-pre"]});return f}function Kt(t){var r,n,e,i,o,s=[],a=u.ext.type.order,l=t.aoData,c=0,f=t.aiDisplayMaster;for(V(t),r=0,n=(o=Qt(t)).length;r<n;r++)(i=o[r]).formatter&&c++,er(t,i.col);if("ssp"!=vr(t)&&0!==o.length){for(r=0,e=f.length;r<e;r++)s[f[r]]=r;f.sort(c===o.length?function(t,r){var n,e,i,a,u,c=o.length,f=l[t]._aSortData,h=l[r]._aSortData;for(i=0;i<c;i++)if(0!=(a=(n=f[(u=o[i]).col])<(e=h[u.col])?-1:n>e?1:0))return"asc"===u.dir?a:-a;return(n=s[t])<(e=s[r])?-1:n>e?1:0}:function(t,r){var n,e,i,u,c,f=o.length,h=l[t]._aSortData,p=l[r]._aSortData;for(i=0;i<f;i++)if(n=h[(c=o[i]).col],0!==(u=(a[c.type+"-"+c.dir]||a["string-"+c.dir])(n,e=p[c.col])))return u;return(n=s[t])<(e=s[r])?-1:n>e?1:0})}t.bSorted=!0}function Jt(t){for(var r,n,e=t.aoColumns,i=Qt(t),o=t.oLanguage.oAria,s=0,a=e.length;s<a;s++){var u=e[s],l=u.asSorting,c=u.sTitle.replace(/<.*?>/g,""),f=u.nTh;f.removeAttribute("aria-sort"),u.bSortable?(i.length>0&&i[0].col==s?(f.setAttribute("aria-sort","asc"==i[0].dir?"ascending":"descending"),n=l[i[0].index+1]||l[0]):n=l[0],r=c+("asc"===n?o.sSortAscending:o.sSortDescending)):r=c,f.setAttribute("aria-label",r)}}function tr(r,n,i,o){var s,a=r.aaSorting,u=r.aoColumns[n].asSorting,l=function(r,n){var i=r._idx;return i===e&&(i=t.inArray(r[1],u)),i+1<u.length?i+1:n?null:0};if("number"==typeof a[0]&&(a=r.aaSorting=[a]),i&&r.oFeatures.bSortMulti){var c=t.inArray(n,y(a,"0"));-1!==c?(null===(s=l(a[c],!0))&&1===a.length&&(s=0),null===s?a.splice(c,1):(a[c][1]=u[s],a[c]._idx=s)):(a.push([n,u[0],0]),a[a.length-1]._idx=0)}else a.length&&a[0][0]==n?(s=l(a[0]),a.length=1,a[0][1]=u[s],a[0]._idx=s):(a.length=0,a.push([n,u[0]]),a[0]._idx=0);lt(r),"function"==typeof o&&o(r)}function rr(t,r,n,e){var i=t.aoColumns[n];cr(r,{},(function(r){!1!==i.bSortable&&(t.oFeatures.bProcessing?(Ut(t,!0),setTimeout((function(){tr(t,n,r.shiftKey,e),"ssp"!==vr(t)&&Ut(t,!1)}),0)):tr(t,n,r.shiftKey,e))}))}function nr(r){var n,e,i=r.aLastSort,o=r.oClasses.sSortColumn,s=Qt(r),a=r.oFeatures;if(a.bSort&&a.bSortClasses){for(n=0,e=i.length;n<e;n++)t(y(r.aoData,"anCells",i[n].src)).removeClass(o+(n<2?n+1:3));for(n=0,e=s.length;n<e;n++)t(y(r.aoData,"anCells",s[n].src)).addClass(o+(n<2?n+1:3))}r.aLastSort=s}function er(t,r){var n,e,i,o=t.aoColumns[r],s=u.ext.order[o.sSortDataType];s&&(n=s.call(t.oInstance,t,r,F(t,r)));for(var a=u.ext.type.order[o.sType+"-pre"],l=0,c=t.aoData.length;l<c;l++)(e=t.aoData[l])._aSortData||(e._aSortData=[]),e._aSortData[r]&&!s||(i=s?n[l]:$(t,l,r,"sort"),e._aSortData[r]=a?a(i):i)}function ir(r){if(r.oFeatures.bStateSave&&!r.bDestroying){var n={time:+new Date,start:r._iDisplayStart,length:r._iDisplayLength,order:t.extend(!0,[],r.aaSorting),search:Ct(r.oPreviousSearch),columns:t.map(r.aoColumns,(function(t,n){return{visible:t.bVisible,search:Ct(r.aoPreSearchCols[n])}}))};hr(r,"aoStateSaveParams","stateSaveParams",[r,n]),r.oSavedState=n,r.fnStateSaveCallback.call(r.oInstance,r,n)}}function or(r,n,i){var o,s,a=r.aoColumns,u=function(n){if(n&&n.time){var u=hr(r,"aoStateLoadParams","stateLoadParams",[r,n]);if(-1===t.inArray(!1,u)){var l=r.iStateDuration;if(l>0&&n.time<+new Date-1e3*l)i();else if(n.columns&&a.length!==n.columns.length)i();else{if(r.oLoadedState=t.extend(!0,{},n),n.start!==e&&(r._iDisplayStart=n.start,r.iInitDisplayStart=n.start),n.length!==e&&(r._iDisplayLength=n.length),n.order!==e&&(r.aaSorting=[],t.each(n.order,(function(t,n){r.aaSorting.push(n[0]>=a.length?[0,n[1]]:n)}))),n.search!==e&&t.extend(r.oPreviousSearch,Rt(n.search)),n.columns)for(o=0,s=n.columns.length;o<s;o++){var c=n.columns[o];c.visible!==e&&(a[o].bVisible=c.visible),c.search!==e&&t.extend(r.aoPreSearchCols[o],Rt(c.search))}hr(r,"aoStateLoaded","stateLoaded",[r,n]),i()}}else i()}else i()};if(r.oFeatures.bStateSave){var l=r.fnStateLoadCallback.call(r.oInstance,r,u);l!==e&&u(l)}else i()}function sr(r){var n=u.settings,e=t.inArray(r,y(n,"nTable"));return-1!==e?n[e]:null}function ar(t,n,e,i){if(e="DataTables warning: "+(t?"table id="+t.sTableId+" - ":"")+e,i&&(e+=". For more information about this error, please see http://datatables.net/tn/"+i),n)r.console&&console.log&&console.log(e);else{var o=u.ext,s=o.sErrMode||o.errMode;if(t&&hr(t,null,"error",[t,i,e]),"alert"==s)alert(e);else{if("throw"==s)throw new Error(e);"function"==typeof s&&s(t,i,e)}}}function ur(r,n,i,o){Array.isArray(i)?t.each(i,(function(t,e){Array.isArray(e)?ur(r,n,e[0],e[1]):ur(r,n,e)})):(o===e&&(o=i),n[i]!==e&&(r[o]=n[i]))}function lr(r,n,e){var i;for(var o in n)n.hasOwnProperty(o)&&(t.isPlainObject(i=n[o])?(t.isPlainObject(r[o])||(r[o]={}),t.extend(!0,r[o],i)):r[o]=e&&"data"!==o&&"aaData"!==o&&Array.isArray(i)?i.slice():i);return r}function cr(r,n,e){t(r).on("click.DT",n,(function(n){t(r).trigger("blur"),e(n)})).on("keypress.DT",n,(function(t){13===t.which&&(t.preventDefault(),e(t))})).on("selectstart.DT",(function(){return!1}))}function fr(t,r,n,e){n&&t[r].push({fn:n,sName:e})}function hr(r,n,e,i){var o=[];if(n&&(o=t.map(r[n].slice().reverse(),(function(t){return t.fn.apply(r.oInstance,i)}))),null!==e){var s=t.Event(e+".dt");t(r.nTable).trigger(s,i),o.push(s.result)}return o}function pr(t){var r=t._iDisplayStart,n=t.fnDisplayEnd(),e=t._iDisplayLength;r>=n&&(r=n-e),r-=r%e,(-1===e||r<0)&&(r=0),t._iDisplayStart=r}function dr(r,n){var e=r.renderer,i=u.ext.renderer[n];return t.isPlainObject(e)&&e[n]?i[e[n]]||i._:"string"==typeof e&&i[e]||i._}function vr(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}var Er=[],br=Array.prototype;u.Api=o=function(r,n){if(!(this instanceof o))return new o(r,n);var e=[],i=function(r){var n=function(r){var n,e,i=u.settings,o=t.map(i,(function(t){return t.nTable}));return r?r.nTable&&r.oApi?[r]:r.nodeName&&"table"===r.nodeName.toLowerCase()?-1!==(n=t.inArray(r,o))?[i[n]]:null:r&&"function"==typeof r.settings?r.settings().toArray():("string"==typeof r?e=t(r):r instanceof t&&(e=r),e?e.map((function(){return-1!==(n=t.inArray(this,o))?i[n]:null})).toArray():void 0):[]}(r);n&&e.push.apply(e,n)};if(Array.isArray(r))for(var s=0,a=r.length;s<a;s++)i(r[s]);else i(r);this.context=A(e),n&&t.merge(this,n),this.selector={rows:null,cols:null,opts:null},o.extend(this,this,Er)},t.extend(o.prototype,{any:function(){return 0!==this.count()},concat:br.concat,context:[],count:function(){return this.flatten().length},each:function(t){for(var r=0,n=this.length;r<n;r++)t.call(this,this[r],r,this);return this},eq:function(t){var r=this.context;return r.length>t?new o(r[t],this[t]):null},filter:function(t){var r=[];if(br.filter)r=br.filter.call(this,t,this);else for(var n=0,e=this.length;n<e;n++)t.call(this,this[n],n,this)&&r.push(this[n]);return new o(this.context,r)},flatten:function(){var t=[];return new o(this.context,t.concat.apply(t,this.toArray()))},join:br.join,indexOf:br.indexOf||function(t,r){for(var n=r||0,e=this.length;n<e;n++)if(this[n]===t)return n;return-1},iterator:function(t,r,n,i){var s,a,u,l,c,f,h,p,d=[],v=this.context,E=this.selector;for("string"==typeof t&&(i=n,n=r,r=t,t=!1),a=0,u=v.length;a<u;a++){var b=new o(v[a]);if("table"===r)(s=n.call(b,v[a],a))!==e&&d.push(s);else if("columns"===r||"rows"===r)(s=n.call(b,v[a],this[a],a))!==e&&d.push(s);else if("column"===r||"column-rows"===r||"row"===r||"cell"===r)for(h=this[a],"column-rows"===r&&(f=Ir(v[a],E.opts)),l=0,c=h.length;l<c;l++)p=h[l],(s="cell"===r?n.call(b,v[a],p.row,p.column,a,l):n.call(b,v[a],p,a,l,f))!==e&&d.push(s)}if(d.length||i){var m=new o(v,t?d.concat.apply([],d):d),g=m.selector;return g.rows=E.rows,g.cols=E.cols,g.opts=E.opts,m}return this},lastIndexOf:br.lastIndexOf||function(t,r){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(t){var r=[];if(br.map)r=br.map.call(this,t,this);else for(var n=0,e=this.length;n<e;n++)r.push(t.call(this,this[n],n));return new o(this.context,r)},pluck:function(t){return this.map((function(r){return r[t]}))},pop:br.pop,push:br.push,reduce:br.reduce||function(t,r){return P(this,t,r,0,this.length,1)},reduceRight:br.reduceRight||function(t,r){return P(this,t,r,this.length-1,-1,-1)},reverse:br.reverse,selector:null,shift:br.shift,slice:function(){return new o(this.context,this)},sort:br.sort,splice:br.splice,toArray:function(){return br.slice.call(this)},to$:function(){return t(this)},toJQuery:function(){return t(this)},unique:function(){return new o(this.context,A(this))},unshift:br.unshift}),o.extend=function(t,r,n){if(n.length&&r&&(r instanceof o||r.__dt_wrapper)){var e,i,s,a=function(t,r,n){return function(){var e=r.apply(t,arguments);return o.extend(e,e,n.methodExt),e}};for(e=0,i=n.length;e<i;e++)r[(s=n[e]).name]="function"===s.type?a(t,s.val,s):"object"===s.type?{}:s.val,r[s.name].__dt_wrapper=!0,o.extend(t,r[s.name],s.propExt)}},o.register=s=function(r,n){if(Array.isArray(r))for(var e=0,i=r.length;e<i;e++)o.register(r[e],n);else{var s,a,u,l,c=r.split("."),f=Er,h=function(t,r){for(var n=0,e=t.length;n<e;n++)if(t[n].name===r)return t[n];return null};for(s=0,a=c.length;s<a;s++){var p=h(f,u=(l=-1!==c[s].indexOf("()"))?c[s].replace("()",""):c[s]);p||f.push(p={name:u,val:{},methodExt:[],propExt:[],type:"object"}),s===a-1?(p.val=n,p.type="function"==typeof n?"function":t.isPlainObject(n)?"object":"other"):f=l?p.methodExt:p.propExt}}},o.registerPlural=a=function(t,r,n){o.register(t,n),o.register(r,(function(){var t=n.apply(this,arguments);return t===this?this:t instanceof o?t.length?Array.isArray(t[0])?new o(t.context,t[0]):t[0]:e:t}))};var mr=function(r,n){if(Array.isArray(r))return t.map(r,(function(t){return mr(t,n)}));if("number"==typeof r)return[n[r]];var e=t.map(n,(function(t){return t.nTable}));return t(e).filter(r).map((function(){var r=t.inArray(this,e);return n[r]})).toArray()};s("tables()",(function(t){return t!==e&&null!==t?new o(mr(t,this.context)):this})),s("table()",(function(t){var r=this.tables(t),n=r.context;return n.length?new o(n[0]):r})),a("tables().nodes()","table().node()",(function(){return this.iterator("table",(function(t){return t.nTable}),1)})),a("tables().body()","table().body()",(function(){return this.iterator("table",(function(t){return t.nTBody}),1)})),a("tables().header()","table().header()",(function(){return this.iterator("table",(function(t){return t.nTHead}),1)})),a("tables().footer()","table().footer()",(function(){return this.iterator("table",(function(t){return t.nTFoot}),1)})),a("tables().containers()","table().container()",(function(){return this.iterator("table",(function(t){return t.nTableWrapper}),1)})),s("draw()",(function(t){return this.iterator("table",(function(r){"page"===t?ut(r):("string"==typeof t&&(t="full-hold"!==t),lt(r,!1===t))}))})),s("page()",(function(t){return t===e?this.page.info().page:this.iterator("table",(function(r){Gt(r,t)}))})),s("page.info()",(function(){if(0===this.context.length)return e;var t=this.context[0],r=t._iDisplayStart,n=t.oFeatures.bPaginate?t._iDisplayLength:-1,i=t.fnRecordsDisplay(),o=-1===n;return{page:o?0:Math.floor(r/n),pages:o?1:Math.ceil(i/n),start:r,end:t.fnDisplayEnd(),length:n,recordsTotal:t.fnRecordsTotal(),recordsDisplay:i,serverSide:"ssp"===vr(t)}})),s("page.len()",(function(t){return t===e?0!==this.context.length?this.context[0]._iDisplayLength:e:this.iterator("table",(function(r){Dt(r,t)}))}));var gr=function(t,r,n){if(n){var e=new o(t);e.one("draw",(function(){n(e.ajax.json())}))}if("ssp"==vr(t))lt(t,r);else{Ut(t,!0);var i=t.jqXHR;i&&4!==i.readyState&&i.abort(),pt(t,[],(function(n){tt(t);for(var e=bt(t,n),i=0,o=e.length;i<o;i++)H(t,e[i]);lt(t,r),Ut(t,!1)}))}};s("ajax.json()",(function(){var t=this.context;if(t.length>0)return t[0].json})),s("ajax.params()",(function(){var t=this.context;if(t.length>0)return t[0].oAjaxData})),s("ajax.reload()",(function(t,r){return this.iterator("table",(function(n){gr(n,!1===r,t)}))})),s("ajax.url()",(function(r){var n=this.context;return r===e?0===n.length?e:(n=n[0]).ajax?t.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource:this.iterator("table",(function(n){t.isPlainObject(n.ajax)?n.ajax.url=r:n.ajax=r}))})),s("ajax.url().load()",(function(t,r){return this.iterator("table",(function(n){gr(n,!1===r,t)}))}));var yr=function(t,r,n,o,s){var a,u,l,c,f,h,p=[],d=typeof r;for(r&&"string"!==d&&"function"!==d&&r.length!==e||(r=[r]),l=0,c=r.length;l<c;l++)for(f=0,h=(u=r[l]&&r[l].split&&!r[l].match(/[\[\(:]/)?r[l].split(","):[r[l]]).length;f<h;f++)(a=n("string"==typeof u[f]?u[f].trim():u[f]))&&a.length&&(p=p.concat(a));var v=i.selector[t];if(v.length)for(l=0,c=v.length;l<c;l++)p=v[l](o,s,p);return A(p)},xr=function(r){return r||(r={}),r.filter&&r.search===e&&(r.search=r.filter),t.extend({search:"none",order:"current",page:"all"},r)},Tr=function(t){for(var r=0,n=t.length;r<n;r++)if(t[r].length>0)return t[0]=t[r],t[0].length=1,t.length=1,t.context=[t.context[r]],t;return t.length=0,t},Ir=function(r,n){var e,i=[],o=r.aiDisplay,s=r.aiDisplayMaster,a=n.search,u=n.order,l=n.page;if("ssp"==vr(r))return"removed"===a?[]:T(0,s.length);if("current"==l)for(f=r._iDisplayStart,h=r.fnDisplayEnd();f<h;f++)i.push(o[f]);else if("current"==u||"applied"==u){if("none"==a)i=s.slice();else if("applied"==a)i=o.slice();else if("removed"==a){for(var c={},f=0,h=o.length;f<h;f++)c[o[f]]=null;i=t.map(s,(function(t){return c.hasOwnProperty(t)?null:t}))}}else if("index"==u||"original"==u)for(f=0,h=r.aoData.length;f<h;f++)("none"==a||-1===(e=t.inArray(f,o))&&"removed"==a||e>=0&&"applied"==a)&&i.push(f);return i};s("rows()",(function(r,n){r===e?r="":t.isPlainObject(r)&&(n=r,r=""),n=xr(n);var i=this.iterator("table",(function(i){return function(r,n,i){var o;return yr("row",n,(function(n){var s=E(n),a=r.aoData;if(null!==s&&!i)return[s];if(o||(o=Ir(r,i)),null!==s&&-1!==t.inArray(s,o))return[s];if(null===n||n===e||""===n)return o;if("function"==typeof n)return t.map(o,(function(t){var r=a[t];return n(t,r._aData,r.nTr)?t:null}));if(n.nodeName){var u=n._DT_RowIndex,l=n._DT_CellIndex;if(u!==e)return a[u]&&a[u].nTr===n?[u]:[];if(l)return a[l.row]&&a[l.row].nTr===n.parentNode?[l.row]:[];var c=t(n).closest("*[data-dt-row]");return c.length?[c.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var f=r.aIds[n.replace(/^#/,"")];if(f!==e)return[f.idx]}var h=I(x(r.aoData,o,"nTr"));return t(h).filter(n).map((function(){return this._DT_RowIndex})).toArray()}),r,i)}(i,r,n)}),1);return i.selector.rows=r,i.selector.opts=n,i})),s("rows().nodes()",(function(){return this.iterator("row",(function(t,r){return t.aoData[r].nTr||e}),1)})),s("rows().data()",(function(){return this.iterator(!0,"rows",(function(t,r){return x(t.aoData,r,"_aData")}),1)})),a("rows().cache()","row().cache()",(function(t){return this.iterator("row",(function(r,n){var e=r.aoData[n];return"search"===t?e._aFilterData:e._aSortData}),1)})),a("rows().invalidate()","row().invalidate()",(function(t){return this.iterator("row",(function(r,n){nt(r,n,t)}))})),a("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(t,r){return r}),1)})),a("rows().ids()","row().id()",(function(t){for(var r=[],n=this.context,e=0,i=n.length;e<i;e++)for(var s=0,a=this[e].length;s<a;s++){var u=n[e].rowIdFn(n[e].aoData[this[e][s]]._aData);r.push((!0===t?"#":"")+u)}return new o(n,r)})),a("rows().remove()","row().remove()",(function(){var t=this;return this.iterator("row",(function(r,n,i){var o,s,a,u,l,c,f=r.aoData,h=f[n];for(f.splice(n,1),o=0,s=f.length;o<s;o++)if(c=(l=f[o]).anCells,null!==l.nTr&&(l.nTr._DT_RowIndex=o),null!==c)for(a=0,u=c.length;a<u;a++)c[a]._DT_CellIndex.row=o;rt(r.aiDisplayMaster,n),rt(r.aiDisplay,n),rt(t[i],n,!1),r._iRecordsDisplay>0&&r._iRecordsDisplay--,pr(r);var p=r.rowIdFn(h._aData);p!==e&&delete r.aIds[p]})),this.iterator("table",(function(t){for(var r=0,n=t.aoData.length;r<n;r++)t.aoData[r].idx=r})),this})),s("rows.add()",(function(r){var n=this.iterator("table",(function(t){var n,e,i,o=[];for(e=0,i=r.length;e<i;e++)(n=r[e]).nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(z(t,n)[0]):o.push(H(t,n));return o}),1),e=this.rows(-1);return e.pop(),t.merge(e,n),e})),s("row()",(function(t,r){return Tr(this.rows(t,r))})),s("row().data()",(function(t){var r=this.context;if(t===e)return r.length&&this.length?r[0].aoData[this[0]]._aData:e;var n=r[0].aoData[this[0]];return n._aData=t,Array.isArray(t)&&n.nTr&&n.nTr.id&&K(r[0].rowId)(t,n.nTr.id),nt(r[0],this[0],"data"),this})),s("row().node()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]].nTr||null})),s("row.add()",(function(r){r instanceof t&&r.length&&(r=r[0]);var n=this.iterator("table",(function(t){return r.nodeName&&"TR"===r.nodeName.toUpperCase()?z(t,r)[0]:H(t,r)}));return this.row(n[0])}));var Nr=function(t,r){var n=t.context;if(n.length){var i=n[0].aoData[r!==e?r:t[0]];i&&i._details&&(i._details.remove(),i._detailsShow=e,i._details=e)}},Ar=function(t,r){var n=t.context;if(n.length&&t.length){var e=n[0].aoData[t[0]];e._details&&(e._detailsShow=r,r?e._details.insertAfter(e.nTr):e._details.detach(),Sr(n[0]))}},Sr=function(t){var r=new o(t),n=t.aoData;r.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details"),y(n,"_details").length>0&&(r.on("draw.dt.DT_details",(function(e,i){t===i&&r.rows({page:"current"}).eq(0).each((function(t){var r=n[t];r._detailsShow&&r._details.insertAfter(r.nTr)}))})),r.on("column-visibility.dt.DT_details",(function(r,e){if(t===e)for(var i,o=U(e),s=0,a=n.length;s<a;s++)(i=n[s])._details&&i._details.children("td[colspan]").attr("colspan",o)})),r.on("destroy.dt.DT_details",(function(e,i){if(t===i)for(var o=0,s=n.length;o<s;o++)n[o]._details&&Nr(r,o)})))};s("row().child()",(function(r,n){var i=this.context;return r===e?i.length&&this.length?i[0].aoData[this[0]]._details:e:(!0===r?this.child.show():!1===r?Nr(this):i.length&&this.length&&function(r,n,e,i){var o=[],s=function(n,e){if(Array.isArray(n)||n instanceof t)for(var i=0,a=n.length;i<a;i++)s(n[i],e);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())o.push(n);else{var u=t("<tr><td></td></tr>").addClass(e);t("td",u).addClass(e).html(n)[0].colSpan=U(r),o.push(u[0])}};s(e,i),n._details&&n._details.detach(),n._details=t(o),n._detailsShow&&n._details.insertAfter(n.nTr)}(i[0],i[0].aoData[this[0]],r,n),this)})),s(["row().child.show()","row().child().show()"],(function(){return Ar(this,!0),this})),s(["row().child.hide()","row().child().hide()"],(function(){return Ar(this,!1),this})),s(["row().child.remove()","row().child().remove()"],(function(){return Nr(this),this})),s("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Lr=/^([^:]+):(name|visIdx|visible)$/,Cr=function(t,r,n,e,i){for(var o=[],s=0,a=i.length;s<a;s++)o.push($(t,i[s],r));return o};s("columns()",(function(r,n){r===e?r="":t.isPlainObject(r)&&(n=r,r=""),n=xr(n);var i=this.iterator("table",(function(e){return function(r,n,e){var i=r.aoColumns,o=y(i,"sName"),s=y(i,"nTh");return yr("column",n,(function(n){var a=E(n);if(""===n)return T(i.length);if(null!==a)return[a>=0?a:i.length+a];if("function"==typeof n){var u=Ir(r,e);return t.map(i,(function(t,e){return n(e,Cr(r,e,0,0,u),s[e])?e:null}))}var l="string"==typeof n?n.match(Lr):"";if(l)switch(l[2]){case"visIdx":case"visible":var c=parseInt(l[1],10);if(c<0){var f=t.map(i,(function(t,r){return t.bVisible?r:null}));return[f[f.length+c]]}return[G(r,c)];case"name":return t.map(o,(function(t,r){return t===l[1]?r:null}));default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var h=t(s).filter(n).map((function(){return t.inArray(this,s)})).toArray();if(h.length||!n.nodeName)return h;var p=t(n).closest("*[data-dt-column]");return p.length?[p.data("dt-column")]:[]}),r,e)}(e,r,n)}),1);return i.selector.cols=r,i.selector.opts=n,i})),a("columns().header()","column().header()",(function(){return this.iterator("column",(function(t,r){return t.aoColumns[r].nTh}),1)})),a("columns().footer()","column().footer()",(function(){return this.iterator("column",(function(t,r){return t.aoColumns[r].nTf}),1)})),a("columns().data()","column().data()",(function(){return this.iterator("column-rows",Cr,1)})),a("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,r){return t.aoColumns[r].mData}),1)})),a("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(r,n,e,i,o){return x(r.aoData,o,"search"===t?"_aFilterData":"_aSortData",n)}),1)})),a("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,r,n,e,i){return x(t.aoData,i,"anCells",r)}),1)})),a("columns().visible()","column().visible()",(function(r,n){var i=this,o=this.iterator("column",(function(n,i){if(r===e)return n.aoColumns[i].bVisible;!function(r,n,i){var o,s,a,u,l=r.aoColumns,c=l[n],f=r.aoData;if(i===e)return c.bVisible;if(c.bVisible!==i){if(i){var h=t.inArray(!0,y(l,"bVisible"),n+1);for(s=0,a=f.length;s<a;s++)o=f[s].anCells,(u=f[s].nTr)&&u.insertBefore(o[n],o[h]||null)}else t(y(r.aoData,"anCells",n)).detach();c.bVisible=i}}(n,i,r)}));return r!==e&&this.iterator("table",(function(o){at(o,o.aoHeader),at(o,o.aoFooter),o.aiDisplay.length||t(o.nTBody).find("td[colspan]").attr("colspan",U(o)),ir(o),i.iterator("column",(function(t,e){hr(t,null,"column-visibility",[t,e,r,n])})),(n===e||n)&&i.columns.adjust()})),o})),a("columns().indexes()","column().index()",(function(t){return this.iterator("column",(function(r,n){return"visible"===t?F(r,n):n}),1)})),s("columns.adjust()",(function(){return this.iterator("table",(function(t){j(t)}),1)})),s("column.index()",(function(t,r){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===t||"toData"===t)return G(n,r);if("fromData"===t||"toVisible"===t)return F(n,r)}})),s("column()",(function(t,r){return Tr(this.columns(t,r))})),s("cells()",(function(r,n,i){if(t.isPlainObject(r)&&(r.row===e?(i=r,r=null):(i=n,n=null)),t.isPlainObject(n)&&(i=n,n=null),null===n||n===e)return this.iterator("table",(function(n){return function(r,n,i){var o,s,a,u,l,c,f,h=r.aoData,p=Ir(r,i),d=I(x(h,p,"anCells")),v=t(S([],d)),E=r.aoColumns.length;return yr("cell",n,(function(n){var i="function"==typeof n;if(null===n||n===e||i){for(s=[],a=0,u=p.length;a<u;a++)for(o=p[a],l=0;l<E;l++)c={row:o,column:l},i?(f=h[o],n(c,$(r,o,l),f.anCells?f.anCells[l]:null)&&s.push(c)):s.push(c);return s}if(t.isPlainObject(n))return n.column!==e&&n.row!==e&&-1!==t.inArray(n.row,p)?[n]:[];var d=v.filter(n).map((function(t,r){return{row:r._DT_CellIndex.row,column:r._DT_CellIndex.column}})).toArray();return d.length||!n.nodeName?d:(f=t(n).closest("*[data-dt-row]")).length?[{row:f.data("dt-row"),column:f.data("dt-column")}]:[]}),r,i)}(n,r,xr(i))}));var o,s,a,u,l=i?{page:i.page,order:i.order,search:i.search}:{},c=this.columns(n,l),f=this.rows(r,l),h=this.iterator("table",(function(t,r){var n=[];for(o=0,s=f[r].length;o<s;o++)for(a=0,u=c[r].length;a<u;a++)n.push({row:f[r][o],column:c[r][a]});return n}),1),p=i&&i.selected?this.cells(h,i):h;return t.extend(p.selector,{cols:n,rows:r,opts:i}),p})),a("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(t,r,n){var i=t.aoData[r];return i&&i.anCells?i.anCells[n]:e}),1)})),s("cells().data()",(function(){return this.iterator("cell",(function(t,r,n){return $(t,r,n)}),1)})),a("cells().cache()","cell().cache()",(function(t){return t="search"===t?"_aFilterData":"_aSortData",this.iterator("cell",(function(r,n,e){return r.aoData[n][t][e]}),1)})),a("cells().render()","cell().render()",(function(t){return this.iterator("cell",(function(r,n,e){return $(r,n,e,t)}),1)})),a("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(t,r,n){return{row:r,column:n,columnVisible:F(t,n)}}),1)})),a("cells().invalidate()","cell().invalidate()",(function(t){return this.iterator("cell",(function(r,n,e){nt(r,n,t,e)}))})),s("cell()",(function(t,r,n){return Tr(this.cells(t,r,n))})),s("cell().data()",(function(t){var r=this.context,n=this[0];return t===e?r.length&&n.length?$(r[0],n[0].row,n[0].column):e:(W(r[0],n[0].row,n[0].column,t),nt(r[0],n[0].row,"data",n[0].column),this)})),s("order()",(function(t,r){var n=this.context;return t===e?0!==n.length?n[0].aaSorting:e:("number"==typeof t?t=[[t,r]]:t.length&&!Array.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",(function(r){r.aaSorting=t.slice()})))})),s("order.listener()",(function(t,r,n){return this.iterator("table",(function(e){rr(e,t,r,n)}))})),s("order.fixed()",(function(r){if(!r){var n=this.context,i=n.length?n[0].aaSortingFixed:e;return Array.isArray(i)?{pre:i}:i}return this.iterator("table",(function(n){n.aaSortingFixed=t.extend(!0,{},r)}))})),s(["columns().order()","column().order()"],(function(r){var n=this;return this.iterator("table",(function(e,i){var o=[];t.each(n[i],(function(t,n){o.push([n,r])})),e.aaSorting=o}))})),s("search()",(function(r,n,i,o){var s=this.context;return r===e?0!==s.length?s[0].oPreviousSearch.sSearch:e:this.iterator("table",(function(e){e.oFeatures.bFilter&>(e,t.extend({},e.oPreviousSearch,{sSearch:r+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===o||o}),1)}))})),a("columns().search()","column().search()",(function(r,n,i,o){return this.iterator("column",(function(s,a){var u=s.aoPreSearchCols;if(r===e)return u[a].sSearch;s.oFeatures.bFilter&&(t.extend(u[a],{sSearch:r+"",bRegex:null!==n&&n,bSmart:null===i||i,bCaseInsensitive:null===o||o}),gt(s,s.oPreviousSearch,1))}))})),s("state()",(function(){return this.context.length?this.context[0].oSavedState:null})),s("state.clear()",(function(){return this.iterator("table",(function(t){t.fnStateSaveCallback.call(t.oInstance,t,{})}))})),s("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),s("state.save()",(function(){return this.iterator("table",(function(t){ir(t)}))})),u.versionCheck=u.fnVersionCheck=function(t){for(var r,n,e=u.version.split("."),i=t.split("."),o=0,s=i.length;o<s;o++)if((r=parseInt(e[o],10)||0)!==(n=parseInt(i[o],10)||0))return r>n;return!0},u.isDataTable=u.fnIsDataTable=function(r){var n=t(r).get(0),e=!1;return r instanceof u.Api||(t.each(u.settings,(function(r,i){var o=i.nScrollHead?t("table",i.nScrollHead)[0]:null,s=i.nScrollFoot?t("table",i.nScrollFoot)[0]:null;i.nTable!==n&&o!==n&&s!==n||(e=!0)})),e)},u.tables=u.fnTables=function(r){var n=!1;t.isPlainObject(r)&&(n=r.api,r=r.visible);var e=t.map(u.settings,(function(n){if(!r||r&&t(n.nTable).is(":visible"))return n.nTable}));return n?new o(e):e},u.camelToHungarian=C,s("$()",(function(r,n){var e=this.rows(n).nodes(),i=t(e);return t([].concat(i.filter(r).toArray(),i.find(r).toArray()))})),t.each(["on","one","off"],(function(r,n){s(n+"()",(function(){var r=Array.prototype.slice.call(arguments);r[0]=t.map(r[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var e=t(this.tables().nodes());return e[n].apply(e,r),this}))})),s("clear()",(function(){return this.iterator("table",(function(t){tt(t)}))})),s("settings()",(function(){return new o(this.context,this.context)})),s("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),s("data()",(function(){return this.iterator("table",(function(t){return y(t.aoData,"_aData")})).flatten()})),s("destroy()",(function(n){return n=n||!1,this.iterator("table",(function(e){var i,s=e.nTableWrapper.parentNode,a=e.oClasses,l=e.nTable,c=e.nTBody,f=e.nTHead,h=e.nTFoot,p=t(l),d=t(c),v=t(e.nTableWrapper),E=t.map(e.aoData,(function(t){return t.nTr}));e.bDestroying=!0,hr(e,"aoDestroyCallback","destroy",[e]),n||new o(e).columns().visible(!0),v.off(".DT").find(":not(tbody *)").off(".DT"),t(r).off(".DT-"+e.sInstance),l!=f.parentNode&&(p.children("thead").detach(),p.append(f)),h&&l!=h.parentNode&&(p.children("tfoot").detach(),p.append(h)),e.aaSorting=[],e.aaSortingFixed=[],nr(e),t(E).removeClass(e.asStripeClasses.join(" ")),t("th, td",f).removeClass(a.sSortable+" "+a.sSortableAsc+" "+a.sSortableDesc+" "+a.sSortableNone),d.children().detach(),d.append(E);var b=n?"remove":"detach";p[b](),v[b](),!n&&s&&(s.insertBefore(l,e.nTableReinsertBefore),p.css("width",e.sDestroyWidth).removeClass(a.sTable),(i=e.asDestroyStripes.length)&&d.children().each((function(r){t(this).addClass(e.asDestroyStripes[r%i])})));var m=t.inArray(e,u.settings);-1!==m&&u.settings.splice(m,1)}))})),t.each(["column","row","cell"],(function(t,r){s(r+"s().every()",(function(t){var n=this.selector.opts,i=this;return this.iterator(r,(function(o,s,a,u,l){t.call(i[r](s,"cell"===r?a:n,"cell"===r?n:e),s,a,u,l)}))}))})),s("i18n()",(function(r,n,i){var o=this.context[0],s=Q(r)(o.oLanguage);return s===e&&(s=n),i!==e&&t.isPlainObject(s)&&(s=s[i]!==e?s[i]:s._),s.replace("%d",i)})),u.version="1.10.24",u.settings=[],u.models={},u.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},u.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},u.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},u.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(t){return t.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(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,r){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(r))}catch(t){}},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:t.extend({},u.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},L(u.defaults),u.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},L(u.defaults.column),u.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:e,oAjaxData:e,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"ssp"==vr(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==vr(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,r=this._iDisplayStart,n=r+t,e=this.aiDisplay.length,i=this.oFeatures,o=i.bPaginate;return i.bServerSide?!1===o||-1===t?r+e:Math.min(r+t,this._iRecordsDisplay):!o||n>e||-1===t?e:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},u.ext=i={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:u.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:u.version},t.extend(i,{afnFiltering:i.search,aTypes:i.type.detect,ofnSearch:i.type.search,oSort:i.type.order,afnSortData:i.order,aoFeatures:i.feature,oApi:i.internal,oStdClasses:i.classes,oPagination:i.pager}),t.extend(u.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 Rr=u.ext.pager;function wr(t,r){var n=[],e=Rr.numbers_length,i=Math.floor(e/2);return r<=e?n=T(0,r):t<=i?((n=T(0,e-2)).push("ellipsis"),n.push(r-1)):t>=r-1-i?((n=T(r-(e-2),r)).splice(0,0,"ellipsis"),n.splice(0,0,0)):((n=T(t-i+2,t+i-1)).push("ellipsis"),n.push(r-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}t.extend(Rr,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(t,r){return[wr(t,r)]},simple_numbers:function(t,r){return["previous",wr(t,r),"next"]},full_numbers:function(t,r){return["first","previous",wr(t,r),"next","last"]},first_last_numbers:function(t,r){return["first",wr(t,r),"last"]},_numbers:wr,numbers_length:7}),t.extend(!0,u.ext.renderer,{pageButton:{_:function(r,i,o,s,a,u){var l,c,f,h=r.oClasses,p=r.oLanguage.oPaginate,d=r.oLanguage.oAria.paginate||{},v=0,E=function(n,e){var i,s,f,b,m=h.sPageButtonDisabled,g=function(t){Gt(r,t.data.action,!0)};for(i=0,s=e.length;i<s;i++)if(f=e[i],Array.isArray(f)){var y=t("<"+(f.DT_el||"div")+"/>").appendTo(n);E(y,f)}else{switch(l=null,c=f,b=r.iTabIndex,f){case"ellipsis":n.append('<span class="ellipsis">…</span>');break;case"first":l=p.sFirst,0===a&&(b=-1,c+=" "+m);break;case"previous":l=p.sPrevious,0===a&&(b=-1,c+=" "+m);break;case"next":l=p.sNext,0!==u&&a!==u-1||(b=-1,c+=" "+m);break;case"last":l=p.sLast,0!==u&&a!==u-1||(b=-1,c+=" "+m);break;default:l=r.fnFormatNumber(f+1),c=a===f?h.sPageButtonActive:""}null!==l&&(cr(t("<a>",{class:h.sPageButton+" "+c,"aria-controls":r.sTableId,"aria-label":d[f],"data-dt-idx":v,tabindex:b,id:0===o&&"string"==typeof f?r.sTableId+"_"+f:null}).html(l).appendTo(n),{action:f},g),v++)}};try{f=t(i).find(n.activeElement).data("dt-idx")}catch(t){}E(t(i).empty(),s),f!==e&&t(i).find("[data-dt-idx="+f+"]").trigger("focus")}}}),t.extend(u.ext.type.detect,[function(t,r){var n=r.oLanguage.sDecimal;return m(t,n)?"num"+n:null},function(t){if(t&&!(t instanceof Date)&&!h.test(t))return null;var r=Date.parse(t);return null!==r&&!isNaN(r)||v(t)?"date":null},function(t,r){var n=r.oLanguage.sDecimal;return m(t,n,!0)?"num-fmt"+n:null},function(t,r){var n=r.oLanguage.sDecimal;return g(t,n)?"html-num"+n:null},function(t,r){var n=r.oLanguage.sDecimal;return g(t,n,!0)?"html-num-fmt"+n:null},function(t){return v(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(u.ext.type.search,{html:function(t){return v(t)?t:"string"==typeof t?t.replace(c," ").replace(f,""):""},string:function(t){return v(t)?t:"string"==typeof t?t.replace(c," "):t}});var Or=function(t,r,n,e){return 0===t||t&&"-"!==t?(r&&(t=b(t,r)),t.replace&&(n&&(t=t.replace(n,"")),e&&(t=t.replace(e,""))),1*t):-1/0};function _r(r){t.each({num:function(t){return Or(t,r)},"num-fmt":function(t){return Or(t,r,d)},"html-num":function(t){return Or(t,r,f)},"html-num-fmt":function(t){return Or(t,r,f,d)}},(function(t,n){i.type.order[t+r+"-pre"]=n,t.match(/^html\-/)&&(i.type.search[t+r]=i.type.search.html)}))}t.extend(i.type.order,{"date-pre":function(t){var r=Date.parse(t);return isNaN(r)?-1/0:r},"html-pre":function(t){return v(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return v(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,r){return t<r?-1:t>r?1:0},"string-desc":function(t,r){return t<r?1:t>r?-1:0}}),_r(""),t.extend(!0,u.ext.renderer,{header:{_:function(r,n,e,i){t(r.nTable).on("order.dt.DT",(function(t,o,s,a){if(r===o){var u=e.idx;n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==a[u]?i.sSortAsc:"desc"==a[u]?i.sSortDesc:e.sSortingClass)}}))},jqueryui:function(r,n,e,i){t("<div/>").addClass(i.sSortJUIWrapper).append(n.contents()).append(t("<span/>").addClass(i.sSortIcon+" "+e.sSortingClassJUI)).appendTo(n),t(r.nTable).on("order.dt.DT",(function(t,o,s,a){if(r===o){var u=e.idx;n.removeClass(i.sSortAsc+" "+i.sSortDesc).addClass("asc"==a[u]?i.sSortAsc:"desc"==a[u]?i.sSortDesc:e.sSortingClass),n.find("span."+i.sSortIcon).removeClass(i.sSortJUIAsc+" "+i.sSortJUIDesc+" "+i.sSortJUI+" "+i.sSortJUIAscAllowed+" "+i.sSortJUIDescAllowed).addClass("asc"==a[u]?i.sSortJUIAsc:"desc"==a[u]?i.sSortJUIDesc:e.sSortingClassJUI)}}))}}});var kr=function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):t};function Pr(t){return function(){var r=[sr(this[u.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return u.ext.internal[t].apply(this,r)}}return u.render={number:function(t,r,n,e,i){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var s=o<0?"-":"",a=parseFloat(o);if(isNaN(a))return kr(o);a=a.toFixed(n),o=Math.abs(a);var u=parseInt(o,10),l=n?r+(o-u).toFixed(n).substring(2):"";return s+(e||"")+u.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+l+(i||"")}}},text:function(){return{display:kr,filter:kr}}},t.extend(u.ext.internal,{_fnExternApiFunc:Pr,_fnBuildAjax:pt,_fnAjaxUpdate:dt,_fnAjaxParameters:vt,_fnAjaxUpdateDraw:Et,_fnAjaxDataSrc:bt,_fnAddColumn:D,_fnColumnOptions:M,_fnAdjustColumnSizing:j,_fnVisibleToColumnIndex:G,_fnColumnIndexToVisible:F,_fnVisbleColumns:U,_fnGetColumns:B,_fnColumnTypes:V,_fnApplyColumnDefs:q,_fnHungarianMap:L,_fnCamelToHungarian:C,_fnLanguageCompat:R,_fnBrowserDetect:k,_fnAddData:H,_fnAddTr:z,_fnNodeToDataIndex:function(t,r){return r._DT_RowIndex!==e?r._DT_RowIndex:null},_fnNodeToColumnIndex:function(r,n,e){return t.inArray(e,r.aoData[n].anCells)},_fnGetCellData:$,_fnSetCellData:W,_fnSplitObjNotation:Z,_fnGetObjectDataFn:Q,_fnSetObjectDataFn:K,_fnGetDataMaster:J,_fnClearTable:tt,_fnDeleteIndex:rt,_fnInvalidate:nt,_fnGetRowElements:et,_fnCreateTr:it,_fnBuildHead:st,_fnDrawHead:at,_fnDraw:ut,_fnReDraw:lt,_fnAddOptionsHtml:ct,_fnDetectHeader:ft,_fnGetUniqueThs:ht,_fnFeatureHtmlFilter:mt,_fnFilterComplete:gt,_fnFilterCustom:yt,_fnFilterColumn:xt,_fnFilter:Tt,_fnFilterCreateSearch:It,_fnEscapeRegex:Nt,_fnFilterData:Lt,_fnFeatureHtmlInfo:wt,_fnUpdateInfo:Ot,_fnInfoMacros:_t,_fnInitialise:kt,_fnInitComplete:Pt,_fnLengthChange:Dt,_fnFeatureHtmlLength:Mt,_fnFeatureHtmlPaginate:jt,_fnPageChange:Gt,_fnFeatureHtmlProcessing:Ft,_fnProcessingDisplay:Ut,_fnFeatureHtmlTable:Bt,_fnScrollDraw:Vt,_fnApplyToChildren:qt,_fnCalculateColumnWidths:zt,_fnThrottle:$t,_fnConvertToWidth:Wt,_fnGetWidestNode:Yt,_fnGetMaxLenString:Xt,_fnStringToCss:Zt,_fnSortFlatten:Qt,_fnSort:Kt,_fnSortAria:Jt,_fnSortListener:tr,_fnSortAttachListener:rr,_fnSortingClasses:nr,_fnSortData:er,_fnSaveState:ir,_fnLoadState:or,_fnSettingsFromNode:sr,_fnLog:ar,_fnMap:ur,_fnBindAction:cr,_fnCallbackReg:fr,_fnCallbackFire:hr,_fnLengthOverflow:pr,_fnRenderer:dr,_fnDataSource:vr,_fnRowAttributes:ot,_fnExtend:lr,_fnCalculateEnd:function(){}}),t.fn.dataTable=u,u.$=t,t.fn.dataTableSettings=u.settings,t.fn.dataTableExt=u.ext,t.fn.DataTable=function(r){return t(this).dataTable(r).api()},t.each(u,(function(r,n){t.fn.DataTable[r]=n})),t.fn.dataTable}(t,window,document)}.apply(r,e))||(t.exports=i)},function(t){var r;r=function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)n.d(e,i,function(r){return t[r]}.bind(null,i));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="/",n(n.s=1)}([function(t){t.exports=function(t){for(var r=5381,n=t.length;n;)r=33*r^t.charCodeAt(--n);return r>>>0}},function(t,r,n){n.r(r),n.d(r,"default",(function(){return l}));var e=n(0),i=n.n(e);function o(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function s(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var a,u=(a=0,function(){return a++}),l=function t(r){var n=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),s(this,"ID","id"),s(this,"PX","px"),s(this,"RESIZABLE","grip-resizable"),s(this,"FLEX","grip-flex"),s(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),s(this,"reset",(function(t){return n.init(t)})),s(this,"onResize",(function(){var t=n.tb;if(t.classList.remove(n.RESIZABLE),t.opt.fixed){t.tableWidth=Number(window.getComputedStyle(t).width.replace(/px/,"")).valueOf();for(var r=0,e=0;e<t.columnCnt;e++)r+=t.columns[e].w;for(var i=0;i<t.columnCnt;i++)t.columns[i].style.width=Math.round(1e3*t.columns[i].w/r)/10+"%",t.columns[i].locked=!0}else n.applyBounds(),"flex"===t.opt.resizeMode&&t.opt.serialize&&n.serializeStore();t.classList.add(n.RESIZABLE),n.syncGrips()})),s(this,"onGripMouseDown",(function(t){var r=t.target.parentNode.data,e=n.tb,i=e.grips[r.i],o=t.touches;if(i.ox=o?o[0].pageX:t.pageX,i.l=i.offsetLeft,i.x=i.l,n.createStyle(document.querySelector("head"),"*{cursor:"+e.opt.dragCursor+"!important}"),document.addEventListener("touchmove",n.onGripDrag),document.addEventListener("mousemove",n.onGripDrag),document.addEventListener("touchend",n.onGripDragOver),document.addEventListener("mouseup",n.onGripDragOver),i.classList.add(e.opt.draggingClass),n.grip=i,e.columns[r.i].locked)for(var s,a=0;a<e.columnCnt;a++)(s=e.columns[a]).locked=!1,s.w=Number(window.getComputedStyle(s).width.replace(/px/,"")).valueOf();t.preventDefault()})),s(this,"onGripDrag",(function(t){var r=n.grip;if(r){var e=r.t,i=t.touches,o=(i?i[0].pageX:t.pageX)-r.ox+r.l,s=e.opt.minWidth,a=r.i,u=1.5*e.cellSpace+s+e.borderSpace,l=a===e.columnCnt-1;if(o=Math.max(a?e.grips[a-1].offsetLeft+e.cellSpace+s:u,Math.min(e.opt.fixed?a===e.columnCnt-1?e.tableWidth-u:e.grips[a+1].offsetLeft-e.cellSpace-s:1/0,o)),r.x=o,r.style.left=o+n.PX,l&&(r.w=e.columns[a].w+o-r.l),e.opt.liveDrag){l?(e.columns[a].style.width=r.w+n.PX,!e.opt.fixed&&e.opt.overflow?e.style.minWidth=e.tableWidth+o-r.l+n.PX:e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf()):n.syncCols(e,a,!1,e.opt),n.syncGrips();var c=e.opt.onDrag;c&&c(t)}t.preventDefault()}})),s(this,"onGripDragOver",(function(t){var r=n.grip;document.removeEventListener("touchend",n.onGripDragOver),document.removeEventListener("mouseup",n.onGripDragOver),document.removeEventListener("touchmove",n.onGripDrag),document.removeEventListener("mousemove",n.onGripDrag);var e=document.querySelector("head").lastChild;if(e.parentNode.removeChild(e),r){if(r.classList.remove(r.t.opt.draggingClass),r.x-r.l!=0){var i=r.t,o=i.opt.onResize,s=r.i;if(s===i.columnCnt-1){var a=i.columns[s];a.style.width=r.w+n.PX,a.w=r.w}else n.syncCols(i,s,!0,i.opt);i.opt.fixed||n.applyBounds(),n.syncGrips(),o&&o(t),i.opt.serialize&&n.serializeStore()}n.grip=null}})),s(this,"init",(function(t){if(t.disable)return n.destroy();var r=n.tb,e=r.getAttribute(n.ID)||n.RESIZABLE+u();if(!r.matches("table")||r.extended&&!t.partialRefresh)return null;var i=document.querySelector("head");n.createStyle(i," .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;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),t.hoverCursor&&"col-resize"!==t.hoverCursor&&n.createStyle(i,".grip-handle .grip-resizable:hover{cursor:"+t.hoverCursor+"!important}"),r.setAttribute(n.ID,e);var o=r.opt;r.opt=n.extendOptions(t);var s=n.getTableHeaders(r);if(n.extendTable(s),t.remoteTable&&t.remoteTable.matches("table")){var a=n.getTableHeaders(r.opt.remoteTable);s.length===a.length?n.extendRemoteTable(r.opt.remoteTable,a,r):console.warn("column count for remote table did not match")}return o})),s(this,"applyBounds",(function(){var t=n.tb,r=t.columns.map((function(t){return window.getComputedStyle(t).width}));t.style.width=window.getComputedStyle(t).width,t.tableWidth=Number(t.style.width.replace(/px/,"")).valueOf(),t.classList.remove(n.FLEX),t.columns.forEach((function(t,n){t.style.width=r[n],t.w=Number(r[n].replace(/px/,"")).valueOf()})),t.classList.add(n.FLEX)})),s(this,"serializeStore",(function(){var t=n.store,r=n.tb;t[r.getAttribute(n.ID)]="";for(var e=0,i=0;i<r.columns.length;i++){var o=window.getComputedStyle(r.columns[i]).width.replace(/px/,"");t[r.getAttribute(n.ID)]+=o+";",e+=Number(o).valueOf()}t[r.getAttribute(n.ID)]+=e.toString(),r.opt.fixed||(t[r.getAttribute(n.ID)]+=";"+window.getComputedStyle(r).width.replace(/px/,""))})),s(this,"syncGrips",(function(){var t=n.tb;t.gripContainer.style.width=t.tableWidth+n.PX;for(var r=0;r<t.columnCnt;r++){var e=t.columns[r],i=e.getBoundingClientRect(),o=t.getBoundingClientRect();t.grips[r].style.left=i.left-o.left+e.offsetWidth+t.cellSpace/2+n.PX,t.grips[r].style.height=(t.opt.headerOnly?t.columns[0].offsetHeight:t.offsetHeight)+n.PX}})),s(this,"destroy",(function(){var t=n.tb,r=t.getAttribute(n.ID);return r?(n.store[r]="",t.classList.remove(n.RESIZABLE),t.classList.remove(n.FLEX),t.remote&&(t.remote.classList.remove(n.RESIZABLE),t.remote.classList.remove(n.FLEX)),t.gripContainer&&t.gripContainer.parentNode&&t.gripContainer.parentNode.removeChild(t.gripContainer),delete t.extended,t.opt):null})),s(this,"createStyle",(function(t,r){var n=i()(r).toString(),e=t.querySelectorAll("style");if(!Array.from(e).filter((function(t){return t.gripid===n})).length){var o=document.createElement("style");o.type="text/css",o.gripid=n,o.styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),t.appendChild(o)}})),s(this,"extendOptions",(function(r){var n=Object.assign({},t.DEFAULTS,r);switch(n.fixed=!0,n.overflow=!1,n.resizeMode){case"flex":n.fixed=!1;break;case"overflow":n.fixed=!1,n.overflow=!0}return n})),s(this,"getTableHeaders",(function(t){var r="#"+t.id,e=Array.from(t.querySelectorAll(r+">thead>tr:nth-of-type(1)>th"));return(e=e.concat(Array.from(t.querySelectorAll(r+">thead>tr:nth-of-type(1)>td")))).length||(e=(e=(e=(e=Array.from(t.querySelectorAll(r+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(t.querySelectorAll(r+">tr:nth-of-type(1)>th")))).concat(Array.from(t.querySelectorAll(r+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(t.querySelectorAll(r+">tr:nth-of-type(1)>td")))),n.filterInvisible(e,!1)})),s(this,"filterInvisible",(function(t,r){return t.filter((function(t){return!(0===(r?-1:t.offsetWidth)&&0===(r?-1:t.offsetHeight)||t.style&&t.style.display&&"none"===window.getComputedStyle(t).display)}))})),s(this,"extendTable",(function(t){var r=n.tb;r.opt.removePadding&&r.classList.add("grip-padding"),r.classList.add(n.RESIZABLE),r.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),r.grips=[],r.columns=[],r.tableWidth=Number(window.getComputedStyle(r).width.replace(/px/,"")).valueOf(),r.gripContainer=r.previousElementSibling,r.opt.marginLeft&&(r.gripContainer.style.marginLeft=r.opt.marginLeft),r.opt.marginRight&&(r.gripContainer.style.marginRight=r.opt.marginRight),r.cellSpace=parseInt(n.legacyIE?r.cellSpacing||r.currentStyle.borderSpacing:window.getComputedStyle(r).borderSpacing.split(" ")[0].replace(/px/,""))||2,r.borderSpace=parseInt(n.legacyIE?r.border||r.currentStyle.borderLeftWidth:window.getComputedStyle(r).borderLeftWidth.replace(/px/,""))||1,r.extended=!0,n.createGrips(t)})),s(this,"extendRemoteTable",(function(t,r,e){e.opt.removePadding&&t.classList.add("grip-padding"),t.classList.add(n.RESIZABLE),t.getAttribute(n.ID)||t.setAttribute(n.ID,e.getAttribute(n.ID)+"remote"),t.columns=[],r.forEach((function(i,o){var s=r[o];s.w=e.columns[o].w,s.style.width=s.w+n.PX,s.removeAttribute("width"),t.columns.push(s)})),t.tableWidth=e.tableWidth,t.cellSpace=e.cellSpace,t.borderSpace=e.borderSpace;var i=Array.from(t.querySelectorAll("col"));t.columnGrp=n.filterInvisible(i,!0),t.columnGrp.forEach((function(t,r){t.removeAttribute("width"),t.style.width=e.columnGrp[r].style.width})),e.remote=t})),s(this,"createGrips",(function(t){var r=n.tb;r.columnGrp=n.filterInvisible(Array.from(r.querySelectorAll("col")),!0),r.columnGrp.forEach((function(t){t.removeAttribute("width")})),r.columnCnt=t.length;var e=!1;n.store[r.getAttribute(n.ID)]&&(n.deserializeStore(t),e=!0),r.opt.widths||(r.opt.widths=[]),t.forEach((function(i,o){var s=t[o],a=-1!==r.opt.disabledColumns.indexOf(o);n.createDiv(r.gripContainer,"grip-handle");var u=r.gripContainer.lastChild;!a&&r.opt.gripInnerHtml&&(u.innerHTML=r.opt.gripInnerHtml),n.createDiv(u,n.RESIZABLE),o===r.columnCnt-1&&(u.classList.add("grip-lastgrip"),r.opt.fixed&&(u.innerHTML="")),u.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),u.addEventListener("mousedown",n.onGripMouseDown,!0),a?u.classList.add("grip-disabledgrip"):(u.classList.remove("grip-disabledgrip"),u.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),u.addEventListener("mousedown",n.onGripMouseDown,!0)),u.t=r,u.i=o,s.w=r.opt.widths[o]?r.opt.widths[o]:e?Number(s.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(s).width.replace(/px/,"")).valueOf(),s.style.width=s.w+n.PX,s.removeAttribute("width"),u.data={i:o,t:r.getAttribute(n.ID),last:o===r.columnCnt-1},r.grips.push(u),r.columns.push(s)}));var i=Array.from(r.querySelectorAll("td"));i.concat(Array.from(r.querySelectorAll("th"))),(i=(i=i.filter((function(r){for(var n=0;n<t.length;n++)if(t[n]===r)return!1;return!0}))).filter((function(t){return!(t.querySelectorAll("table th").length||t.querySelectorAll("table td").length)}))).forEach((function(t){t.removeAttribute("width")})),r.opt.fixed||(r.removeAttribute("width"),r.classList.add(n.FLEX)),n.syncGrips()})),s(this,"deserializeStore",(function(t){var r=n.tb;if(r.columnGrp.forEach((function(t){t.removeAttribute("width")})),r.opt.flush)n.store[r.getAttribute(n.ID)]="";else{var e=n.store[r.getAttribute(n.ID)].split(";"),i=e[r.columnCnt+1];!r.opt.fixed&&i&&(r.style.width=i+n.PX,r.opt.overflow&&(r.style.minWidth=i+n.PX,r.tableWidth=Number(i).valueOf()));for(var o=0;o<r.columnCnt;o++)t[o].style.width=e[o]+n.PX,r.columnGrp[o]&&(r.columnGrp[o].style.width=100*Number(e[o]).valueOf()/Number(e[r.columnCnt]).valueOf()+"%")}})),s(this,"createDiv",(function(t,r,n){var e=document.createElement("div");e.classList.add(r),n&&(e.innerHTML=n),t.appendChild(e)})),s(this,"syncCols",(function(t,r,e,i){var o=t.remote,s=n.grip.x-n.grip.l,a=t.columns[r],u=t.columns[r+1];if(a&&u){var l=a.w+s,c=u.w-s,f=l+n.PX;if(a.style.width=f,t.columnGrp[r]&&t.columnGrp[r].style.width&&(t.columnGrp[r].style.width=f),o&&(o.columns[r].style.width=f,o.columnGrp[r]&&o.columnGrp[r].style.width&&(o.columnGrp[r].style.width=f)),i.fixed){var h=c+n.PX;u.style.width=h,t.columnGrp[r+1]&&t.columnGrp[r+1].style.width&&(t.columnGrp[r+1].style.width=h),o&&(o.columns[r+1].style.width=h,o.columnGrp[r+1]&&o.columnGrp[r+1].style.width&&(o.columnGrp[r+1].style.width=h))}else i.overflow&&(t.style.minWidth=t.tableWidth+s+n.PX);e&&(a.w=l,u.w=i.fixed?c:u.w,o&&(o.columns[r].w=l,o.columns[r+1].w=i.fixed?c:u.w))}}));try{this.store=sessionStorage}catch(r){this.store={}}this.grip=null,this.tb=r,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(e)};l.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}}])},t.exports=r()},function(){},function(){},function(t,r,n){!function(t){var r={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},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(e,i){var o,s,a=e.indentUnit,u={},l=i.htmlMode?r:n;for(var c in l)u[c]=l[c];for(var c in i)u[c]=i[c];function f(t,r){function n(n){return r.tokenize=n,n(t,r)}var e=t.next();return"<"==e?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(p("atom","]]>")):null:t.match("--")?n(p("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(r){return function(n,e){for(var i;null!=(i=n.next());){if("<"==i)return e.tokenize=t(r+1),e.tokenize(n,e);if(">"==i){if(1==r){e.tokenize=f;break}return e.tokenize=t(r-1),e.tokenize(n,e)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),r.tokenize=p("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",r.tokenize=h,"tag bracket"):"&"==e?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,r){var n,e,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return r.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){r.tokenize=f,r.state=b,r.tagName=r.tagStart=null;var s=r.tokenize(t,r);return s?s+" tag error":"tag error"}return/[\'\"]/.test(i)?(r.tokenize=(n=i,(e=function(t,r){for(;!t.eol();)if(t.next()==n){r.tokenize=h;break}return"string"}).isInAttribute=!0,e),r.stringStartCol=t.column(),r.tokenize(t,r)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(t,r){return function(n,e){for(;!n.eol();){if(n.match(r)){e.tokenize=f;break}n.next()}return t}}function d(t,r,n){this.prev=t.context,this.tagName=r,this.indent=t.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(r)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function E(t,r){for(var n;;){if(!t.context)return;if(!u.contextGrabbers.hasOwnProperty(n=t.context.tagName)||!u.contextGrabbers[n].hasOwnProperty(r))return;v(t)}}function b(t,r,n){return"openTag"==t?(n.tagStart=r.column(),m):"closeTag"==t?g:b}function m(t,r,n){return"word"==t?(n.tagName=r.current(),s="tag",T):u.allowMissingTagName&&"endTag"==t?(s="tag bracket",T(t,0,n)):(s="error",m)}function g(t,r,n){if("word"==t){var e=r.current();return n.context&&n.context.tagName!=e&&u.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==e||!1===u.matchClosing?(s="tag",y):(s="tag error",x)}return u.allowMissingTagName&&"endTag"==t?(s="tag bracket",y(t,0,n)):(s="error",x)}function y(t,r,n){return"endTag"!=t?(s="error",y):(v(n),b)}function x(t,r,n){return s="error",y(t,0,n)}function T(t,r,n){if("word"==t)return s="attribute",I;if("endTag"==t||"selfcloseTag"==t){var e=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||u.autoSelfClosers.hasOwnProperty(e)?E(n,e):(E(n,e),n.context=new d(n,e,i==n.indented)),b}return s="error",T}function I(t,r,n){return"equals"==t?N:(u.allowMissing||(s="error"),T(t,0,n))}function N(t,r,n){return"string"==t?A:"word"==t&&u.allowUnquoted?(s="string",T):(s="error",T(t,0,n))}function A(t,r,n){return"string"==t?A:T(t,0,n)}return f.isInText=!0,{startState:function(t){var r={tokenize:f,state:b,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(r.baseIndent=t),r},token:function(t,r){if(!r.tagName&&t.sol()&&(r.indented=t.indentation()),t.eatSpace())return null;o=null;var n=r.tokenize(t,r);return(n||o)&&"comment"!=n&&(s=null,r.state=r.state(o||n,t,r),s&&(n="error"==s?n+" error":s)),n},indent:function(r,n,e){var i=r.context;if(r.tokenize.isInAttribute)return r.tagStart==r.indented?r.stringStartCol+1:r.indented+a;if(i&&i.noIndent)return t.Pass;if(r.tokenize!=h&&r.tokenize!=f)return e?e.match(/^(\s*)/)[0].length:0;if(r.tagName)return!1!==u.multilineTagIndentPastTag?r.tagStart+r.tagName.length+2:r.tagStart+a*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!u.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var s=u.contextGrabbers[i.tagName];if(!s||!s.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+a:r.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(t){t.state==N&&(t.state=T)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var r=[],n=t.context;n;n=n.prev)n.tagName&&r.push(n.tagName);return r.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(7))},function(t,r,n){!function(t){t.defineMode("javascript",(function(r,n){var e,i,o=r.indentUnit,s=n.statementIndent,a=n.jsonld,u=n.json||a,l=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function t(t){return{type:t,style:"keyword"}}var r=t("keyword a"),n=t("keyword b"),e=t("keyword c"),i=t("keyword d"),o=t("operator"),s={type:"atom",style:"atom"};return{if:t("if"),while:r,with:r,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:e,void:e,throw:e,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:t("this"),class:t("class"),super:t("atom"),yield:e,export:t("export"),import:t("import"),extends:e,await:e}}(),h=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function d(t,r,n){return e=t,i=n,r}function v(t,r){var n,e=t.next();if('"'==e||"'"==e)return r.tokenize=(n=e,function(t,r){var e,i=!1;if(a&&"@"==t.peek()&&t.match(p))return r.tokenize=v,d("jsonld-keyword","meta");for(;null!=(e=t.next())&&(e!=n||i);)i=!i&&"\\"==e;return i||(r.tokenize=v),d("string","string")}),r.tokenize(t,r);if("."==e&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return d("number","number");if("."==e&&t.match(".."))return d("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(e))return d(e);if("="==e&&t.eat(">"))return d("=>","operator");if("0"==e&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return d("number","number");if(/\d/.test(e))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),d("number","number");if("/"==e)return t.eat("*")?(r.tokenize=E,E(t,r)):t.eat("/")?(t.skipToEnd(),d("comment","comment")):Wt(t,r,1)?(function(t){for(var r,n=!1,e=!1;null!=(r=t.next());){if(!n){if("/"==r&&!e)return;"["==r?e=!0:e&&"]"==r&&(e=!1)}n=!n&&"\\"==r}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),d("regexp","string-2")):(t.eat("="),d("operator","operator",t.current()));if("`"==e)return r.tokenize=b,b(t,r);if("#"==e&&"!"==t.peek())return t.skipToEnd(),d("meta","meta");if("#"==e&&t.eatWhile(c))return d("variable","property");if("<"==e&&t.match("!--")||"-"==e&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),d("comment","comment");if(h.test(e))return">"==e&&r.lexical&&">"==r.lexical.type||(t.eat("=")?"!"!=e&&"="!=e||t.eat("="):/[<>*+\-]/.test(e)&&(t.eat(e),">"==e&&t.eat(e))),"?"==e&&t.eat(".")?d("."):d("operator","operator",t.current());if(c.test(e)){t.eatWhile(c);var i=t.current();if("."!=r.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return d(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return d("async","keyword",i)}return d("variable","variable",i)}}function E(t,r){for(var n,e=!1;n=t.next();){if("/"==n&&e){r.tokenize=v;break}e="*"==n}return d("comment","comment")}function b(t,r){for(var n,e=!1;null!=(n=t.next());){if(!e&&("`"==n||"$"==n&&t.eat("{"))){r.tokenize=v;break}e=!e&&"\\"==n}return d("quasi","string-2",t.current())}function m(t,r){r.fatArrowAt&&(r.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(l){var e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));e&&(n=e.index)}for(var i=0,o=!1,s=n-1;s>=0;--s){var a=t.string.charAt(s),u="([{}])".indexOf(a);if(u>=0&&u<3){if(!i){++s;break}if(0==--i){"("==a&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(c.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--s){if(0==s)return;if(t.string.charAt(s-1)==a&&"\\"!=t.string.charAt(s-2)){s--;break}}else if(o&&!i){++s;break}}o&&!i&&(r.fatArrowAt=s)}}var g={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function y(t,r,n,e,i,o){this.indented=t,this.column=r,this.type=n,this.prev=i,this.info=o,null!=e&&(this.align=e)}function x(t,r){for(var n=t.localVars;n;n=n.next)if(n.name==r)return!0;for(var e=t.context;e;e=e.prev)for(n=e.vars;n;n=n.next)if(n.name==r)return!0}var T={state:null,column:null,marked:null,cc:null};function I(){for(var t=arguments.length-1;t>=0;t--)T.cc.push(arguments[t])}function N(){return I.apply(null,arguments),!0}function A(t,r){for(var n=r;n;n=n.next)if(n.name==t)return!0;return!1}function S(t){var r=T.state;if(T.marked="def",r.context)if("var"==r.lexical.info&&r.context&&r.context.block){var e=function t(r,n){if(n){if(n.block){var e=t(r,n.prev);return e?e==n.prev?n:new C(e,n.vars,!0):null}return A(r,n.vars)?n:new C(n.prev,new R(r,n.vars),!1)}return null}(t,r.context);if(null!=e)return void(r.context=e)}else if(!A(t,r.localVars))return void(r.localVars=new R(t,r.localVars));n.globalVars&&!A(t,r.globalVars)&&(r.globalVars=new R(t,r.globalVars))}function L(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function C(t,r,n){this.prev=t,this.vars=r,this.block=n}function R(t,r){this.name=t,this.next=r}var w=new R("this",new R("arguments",null));function O(){T.state.context=new C(T.state.context,T.state.localVars,!1),T.state.localVars=w}function _(){T.state.context=new C(T.state.context,T.state.localVars,!0),T.state.localVars=null}function k(){T.state.localVars=T.state.context.vars,T.state.context=T.state.context.prev}function P(t,r){var n=function(){var n=T.state,e=n.indented;if("stat"==n.lexical.type)e=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)e=i.indented;n.lexical=new y(e,T.stream.column(),t,null,n.lexical,r)};return n.lex=!0,n}function D(){var t=T.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function M(t){return function r(n){return n==t?N():";"==t||"}"==n||")"==n||"]"==n?I():N(r)}}function j(t,r){return"var"==t?N(P("vardef",r),mt,M(";"),D):"keyword a"==t?N(P("form"),B,j,D):"keyword b"==t?N(P("form"),j,D):"keyword d"==t?T.stream.match(/^\s*$/,!1)?N():N(P("stat"),q,M(";"),D):"debugger"==t?N(M(";")):"{"==t?N(P("}"),_,ot,D,k):";"==t?N():"if"==t?("else"==T.state.lexical.info&&T.state.cc[T.state.cc.length-1]==D&&T.state.cc.pop()(),N(P("form"),B,j,D,Nt)):"function"==t?N(Ct):"for"==t?N(P("form"),At,j,D):"class"==t||l&&"interface"==r?(T.marked="keyword",N(P("form","class"==t?t:r),kt,D)):"variable"==t?l&&"declare"==r?(T.marked="keyword",N(j)):l&&("module"==r||"enum"==r||"type"==r)&&T.stream.match(/^\s*\w/,!1)?(T.marked="keyword","enum"==r?N(zt):"type"==r?N(wt,M("operator"),ct,M(";")):N(P("form"),gt,M("{"),P("}"),ot,D,D)):l&&"namespace"==r?(T.marked="keyword",N(P("form"),F,j,D)):l&&"abstract"==r?(T.marked="keyword",N(j)):N(P("stat"),K):"switch"==t?N(P("form"),B,M("{"),P("}","switch"),_,ot,D,D,k):"case"==t?N(F,M(":")):"default"==t?N(M(":")):"catch"==t?N(P("form"),O,G,j,D,k):"export"==t?N(P("stat"),jt,D):"import"==t?N(P("stat"),Ft,D):"async"==t?N(j):"@"==r?N(F,j):I(P("stat"),F,M(";"),D)}function G(t){if("("==t)return N(Ot,M(")"))}function F(t,r){return V(t,r,!1)}function U(t,r){return V(t,r,!0)}function B(t){return"("!=t?I():N(P(")"),q,M(")"),D)}function V(t,r,n){if(T.state.fatArrowAt==T.stream.start){var e=n?X:Y;if("("==t)return N(O,P(")"),et(Ot,")"),D,M("=>"),e,k);if("variable"==t)return I(O,gt,M("=>"),e,k)}var i=n?z:H;return g.hasOwnProperty(t)?N(i):"function"==t?N(Ct,i):"class"==t||l&&"interface"==r?(T.marked="keyword",N(P("form"),_t,D)):"keyword c"==t||"async"==t?N(n?U:F):"("==t?N(P(")"),q,M(")"),D,i):"operator"==t||"spread"==t?N(n?U:F):"["==t?N(P("]"),Ht,D,i):"{"==t?it(tt,"}",null,i):"quasi"==t?I($,i):"new"==t?N(function(t){return function(r){return"."==r?N(t?Q:Z):"variable"==r&&l?N(vt,t?z:H):I(t?U:F)}}(n)):"import"==t?N(F):N()}function q(t){return t.match(/[;\}\)\],]/)?I():I(F)}function H(t,r){return","==t?N(q):z(t,r,!1)}function z(t,r,n){var e=0==n?H:z,i=0==n?F:U;return"=>"==t?N(O,n?X:Y,k):"operator"==t?/\+\+|--/.test(r)||l&&"!"==r?N(e):l&&"<"==r&&T.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?N(P(">"),et(ct,">"),D,e):"?"==r?N(F,M(":"),i):N(i):"quasi"==t?I($,e):";"!=t?"("==t?it(U,")","call",e):"."==t?N(J,e):"["==t?N(P("]"),q,M("]"),D,e):l&&"as"==r?(T.marked="keyword",N(ct,e)):"regexp"==t?(T.state.lastType=T.marked="operator",T.stream.backUp(T.stream.pos-T.stream.start-1),N(i)):void 0:void 0}function $(t,r){return"quasi"!=t?I():"${"!=r.slice(r.length-2)?N($):N(F,W)}function W(t){if("}"==t)return T.marked="string-2",T.state.tokenize=b,N($)}function Y(t){return m(T.stream,T.state),I("{"==t?j:F)}function X(t){return m(T.stream,T.state),I("{"==t?j:U)}function Z(t,r){if("target"==r)return T.marked="keyword",N(H)}function Q(t,r){if("target"==r)return T.marked="keyword",N(z)}function K(t){return":"==t?N(D,j):I(H,M(";"),D)}function J(t){if("variable"==t)return T.marked="property",N()}function tt(t,r){return"async"==t?(T.marked="property",N(tt)):"variable"==t||"keyword"==T.style?(T.marked="property","get"==r||"set"==r?N(rt):(l&&T.state.fatArrowAt==T.stream.start&&(n=T.stream.match(/^\s*:\s*/,!1))&&(T.state.fatArrowAt=T.stream.pos+n[0].length),N(nt))):"number"==t||"string"==t?(T.marked=a?"property":T.style+" property",N(nt)):"jsonld-keyword"==t?N(nt):l&&L(r)?(T.marked="keyword",N(tt)):"["==t?N(F,st,M("]"),nt):"spread"==t?N(U,nt):"*"==r?(T.marked="keyword",N(tt)):":"==t?I(nt):void 0;var n}function rt(t){return"variable"!=t?I(nt):(T.marked="property",N(Ct))}function nt(t){return":"==t?N(U):"("==t?I(Ct):void 0}function et(t,r,n){function e(i,o){if(n?n.indexOf(i)>-1:","==i){var s=T.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),N((function(n,e){return n==r||e==r?I():I(t)}),e)}return i==r||o==r?N():n&&n.indexOf(";")>-1?I(t):N(M(r))}return function(n,i){return n==r||i==r?N():I(t,e)}}function it(t,r,n){for(var e=3;e<arguments.length;e++)T.cc.push(arguments[e]);return N(P(r,n),et(t,r),D)}function ot(t){return"}"==t?N():I(j,ot)}function st(t,r){if(l){if(":"==t)return N(ct);if("?"==r)return N(st)}}function at(t,r){if(l&&(":"==t||"in"==r))return N(ct)}function ut(t){if(l&&":"==t)return T.stream.match(/^\s*\w+\s+is\b/,!1)?N(F,lt,ct):N(ct)}function lt(t,r){if("is"==r)return T.marked="keyword",N()}function ct(t,r){return"keyof"==r||"typeof"==r||"infer"==r?(T.marked="keyword",N("typeof"==r?U:ct)):"variable"==t||"void"==r?(T.marked="type",N(dt)):"|"==r||"&"==r?N(ct):"string"==t||"number"==t||"atom"==t?N(dt):"["==t?N(P("]"),et(ct,"]",","),D,dt):"{"==t?N(P("}"),et(ht,"}",",;"),D,dt):"("==t?N(et(pt,")"),ft,dt):"<"==t?N(et(ct,">"),ct):void 0}function ft(t){if("=>"==t)return N(ct)}function ht(t,r){return"variable"==t||"keyword"==T.style?(T.marked="property",N(ht)):"?"==r||"number"==t||"string"==t?N(ht):":"==t?N(ct):"["==t?N(M("variable"),at,M("]"),ht):"("==t?I(Rt,ht):void 0}function pt(t,r){return"variable"==t&&T.stream.match(/^\s*[?:]/,!1)||"?"==r?N(pt):":"==t?N(ct):"spread"==t?N(pt):I(ct)}function dt(t,r){return"<"==r?N(P(">"),et(ct,">"),D,dt):"|"==r||"."==t||"&"==r?N(ct):"["==t?N(ct,M("]"),dt):"extends"==r||"implements"==r?(T.marked="keyword",N(ct)):"?"==r?N(ct,M(":"),ct):void 0}function vt(t,r){if("<"==r)return N(P(">"),et(ct,">"),D,dt)}function Et(){return I(ct,bt)}function bt(t,r){if("="==r)return N(ct)}function mt(t,r){return"enum"==r?(T.marked="keyword",N(zt)):I(gt,st,Tt,It)}function gt(t,r){return l&&L(r)?(T.marked="keyword",N(gt)):"variable"==t?(S(r),N()):"spread"==t?N(gt):"["==t?it(xt,"]"):"{"==t?it(yt,"}"):void 0}function yt(t,r){return"variable"!=t||T.stream.match(/^\s*:/,!1)?("variable"==t&&(T.marked="property"),"spread"==t?N(gt):"}"==t?I():"["==t?N(F,M("]"),M(":"),yt):N(M(":"),gt,Tt)):(S(r),N(Tt))}function xt(){return I(gt,Tt)}function Tt(t,r){if("="==r)return N(U)}function It(t){if(","==t)return N(mt)}function Nt(t,r){if("keyword b"==t&&"else"==r)return N(P("form","else"),j,D)}function At(t,r){return"await"==r?N(At):"("==t?N(P(")"),St,D):void 0}function St(t){return"var"==t?N(mt,Lt):"variable"==t?N(Lt):I(Lt)}function Lt(t,r){return")"==t?N():";"==t?N(Lt):"in"==r||"of"==r?(T.marked="keyword",N(F,Lt)):I(F,Lt)}function Ct(t,r){return"*"==r?(T.marked="keyword",N(Ct)):"variable"==t?(S(r),N(Ct)):"("==t?N(O,P(")"),et(Ot,")"),D,ut,j,k):l&&"<"==r?N(P(">"),et(Et,">"),D,Ct):void 0}function Rt(t,r){return"*"==r?(T.marked="keyword",N(Rt)):"variable"==t?(S(r),N(Rt)):"("==t?N(O,P(")"),et(Ot,")"),D,ut,k):l&&"<"==r?N(P(">"),et(Et,">"),D,Rt):void 0}function wt(t,r){return"keyword"==t||"variable"==t?(T.marked="type",N(wt)):"<"==r?N(P(">"),et(Et,">"),D):void 0}function Ot(t,r){return"@"==r&&N(F,Ot),"spread"==t?N(Ot):l&&L(r)?(T.marked="keyword",N(Ot)):l&&"this"==t?N(st,Tt):I(gt,st,Tt)}function _t(t,r){return"variable"==t?kt(t,r):Pt(t,r)}function kt(t,r){if("variable"==t)return S(r),N(Pt)}function Pt(t,r){return"<"==r?N(P(">"),et(Et,">"),D,Pt):"extends"==r||"implements"==r||l&&","==t?("implements"==r&&(T.marked="keyword"),N(l?ct:F,Pt)):"{"==t?N(P("}"),Dt,D):void 0}function Dt(t,r){return"async"==t||"variable"==t&&("static"==r||"get"==r||"set"==r||l&&L(r))&&T.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(T.marked="keyword",N(Dt)):"variable"==t||"keyword"==T.style?(T.marked="property",N(Mt,Dt)):"number"==t||"string"==t?N(Mt,Dt):"["==t?N(F,st,M("]"),Mt,Dt):"*"==r?(T.marked="keyword",N(Dt)):l&&"("==t?I(Rt,Dt):";"==t||","==t?N(Dt):"}"==t?N():"@"==r?N(F,Dt):void 0}function Mt(t,r){if("?"==r)return N(Mt);if(":"==t)return N(ct,Tt);if("="==r)return N(U);var n=T.state.lexical.prev;return I(n&&"interface"==n.info?Rt:Ct)}function jt(t,r){return"*"==r?(T.marked="keyword",N(qt,M(";"))):"default"==r?(T.marked="keyword",N(F,M(";"))):"{"==t?N(et(Gt,"}"),qt,M(";")):I(j)}function Gt(t,r){return"as"==r?(T.marked="keyword",N(M("variable"))):"variable"==t?I(U,Gt):void 0}function Ft(t){return"string"==t?N():"("==t?I(F):I(Ut,Bt,qt)}function Ut(t,r){return"{"==t?it(Ut,"}"):("variable"==t&&S(r),"*"==r&&(T.marked="keyword"),N(Vt))}function Bt(t){if(","==t)return N(Ut,Bt)}function Vt(t,r){if("as"==r)return T.marked="keyword",N(Ut)}function qt(t,r){if("from"==r)return T.marked="keyword",N(F)}function Ht(t){return"]"==t?N():I(et(U,"]"))}function zt(){return I(P("form"),gt,M("{"),P("}"),et($t,"}"),D,D)}function $t(){return I(gt,Tt)}function Wt(t,r,n){return r.tokenize==v&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(r.lastType)||"quasi"==r.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return k.lex=!0,D.lex=!0,{startState:function(t){var r={tokenize:v,lastType:"sof",cc:[],lexical:new y((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new C(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(r.globalVars=n.globalVars),r},token:function(t,r){if(t.sol()&&(r.lexical.hasOwnProperty("align")||(r.lexical.align=!1),r.indented=t.indentation(),m(t,r)),r.tokenize!=E&&t.eatSpace())return null;var n=r.tokenize(t,r);return"comment"==e?n:(r.lastType="operator"!=e||"++"!=i&&"--"!=i?e:"incdec",function(t,r,n,e,i){var o=t.cc;for(T.state=t,T.stream=i,T.marked=null,T.cc=o,T.style=r,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():u?F:j)(n,e)){for(;o.length&&o[o.length-1].lex;)o.pop()();return T.marked?T.marked:"variable"==n&&x(t,e)?"variable-2":r}}(r,n,e,i,t))},indent:function(r,e){if(r.tokenize==E)return t.Pass;if(r.tokenize!=v)return 0;var i,a=e&&e.charAt(0),u=r.lexical;if(!/^\s*else\b/.test(e))for(var l=r.cc.length-1;l>=0;--l){var c=r.cc[l];if(c==D)u=u.prev;else if(c!=Nt)break}for(;("stat"==u.type||"form"==u.type)&&("}"==a||(i=r.cc[r.cc.length-1])&&(i==H||i==z)&&!/^[,\.=+\-*:?[\(]/.test(e));)u=u.prev;s&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,p=a==f;return"vardef"==f?u.indented+("operator"==r.lastType||","==r.lastType?u.info.length+1:0):"form"==f&&"{"==a?u.indented:"form"==f?u.indented+o:"stat"==f?u.indented+(function(t,r){return"operator"==t.lastType||","==t.lastType||h.test(r.charAt(0))||/[,.]/.test(r.charAt(0))}(r,e)?s||o:0):"switch"!=u.info||p||0==n.doubleIndentSwitch?u.align?u.column+(p?0:1):u.indented+(p?0:o):u.indented+(/^(?:case|default)\b/.test(e)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:a,jsonMode:u,expressionAllowed:Wt,skipExpression:function(t){var r=t.cc[t.cc.length-1];r!=F&&r!=U||t.cc.pop()}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(7))},function(){},function(){},function(){},function(t){function r(t){if(t)return function(t){for(var n in r.prototype)t[n]=r.prototype[n];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this},r.prototype.once=function(t,r){function n(){this.off(t,n),r.apply(this,arguments)}return n.fn=r,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,e=this._callbacks["$"+t];if(!e)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<e.length;i++)if((n=e[i])===r||n.fn===r){e.splice(i,1);break}return 0===e.length&&delete this._callbacks["$"+t],this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),n=this._callbacks["$"+t],e=1;e<arguments.length;e++)r[e-1]=arguments[e];if(n){e=0;for(var i=(n=n.slice(0)).length;e<i;++e)n[e].apply(this,r)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t){t.exports=e,e.default=e,e.stable=o,e.stableStringify=o;var r=[],n=[];function e(t,e,i){var o;for(function t(e,i,o,s){var a;if("object"==typeof e&&null!==e){for(a=0;a<o.length;a++)if(o[a]===e){var u=Object.getOwnPropertyDescriptor(s,i);return void(void 0!==u.get?u.configurable?(Object.defineProperty(s,i,{value:"[Circular]"}),r.push([s,i,e,u])):n.push([e,i]):(s[i]="[Circular]",r.push([s,i,e])))}if(o.push(e),Array.isArray(e))for(a=0;a<e.length;a++)t(e[a],a,o,e);else{var l=Object.keys(e);for(a=0;a<l.length;a++){var c=l[a];t(e[c],c,o,e)}}o.pop()}}(t,"",[],void 0),o=0===n.length?JSON.stringify(t,e,i):JSON.stringify(t,s(e),i);0!==r.length;){var a=r.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return o}function i(t,r){return t<r?-1:t>r?1:0}function o(t,e,o){var a,u=function t(e,o,s,a){var u;if("object"==typeof e&&null!==e){for(u=0;u<s.length;u++)if(s[u]===e){var l=Object.getOwnPropertyDescriptor(a,o);return void(void 0!==l.get?l.configurable?(Object.defineProperty(a,o,{value:"[Circular]"}),r.push([a,o,e,l])):n.push([e,o]):(a[o]="[Circular]",r.push([a,o,e])))}if("function"==typeof e.toJSON)return;if(s.push(e),Array.isArray(e))for(u=0;u<e.length;u++)t(e[u],u,s,e);else{var c={},f=Object.keys(e).sort(i);for(u=0;u<f.length;u++){var h=f[u];t(e[h],h,s,e),c[h]=e[h]}if(void 0===a)return c;r.push([a,o,e]),a[o]=c}s.pop()}}(t,"",[],void 0)||t;for(a=0===n.length?JSON.stringify(u,e,o):JSON.stringify(u,s(e),o);0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}return a}function s(t){return t=void 0!==t?t:function(t,r){return r},function(r,e){if(n.length>0)for(var i=0;i<n.length;i++){var o=n[i];if(o[1]===r&&o[0]===e){e="[Circular]",n.splice(i,1);break}}return t.call(this,r,e)}}},function(t,r,n){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(121);function o(t){if(t)return function(t){for(var r in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,r)&&(t[r]=o.prototype[r]);return t}(t)}t.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(t){return this._parser=t,this},o.prototype.responseType=function(t){return this._responseType=t,this},o.prototype.serialize=function(t){return this._serializer=t,this},o.prototype.timeout=function(t){if(!t||"object"!==e(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))switch(r){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",r)}return this},o.prototype.retry=function(t,r){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=r,this};var s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(t,r){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(t,r);if(!0===n)return!0;if(!1===n)return!1}catch(t){console.error(t)}if(r&&r.status&&r.status>=500&&501!==r.status)return!0;if(t){if(t.code&&s.includes(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},o.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()},o.prototype.then=function(t,r){var n=this;if(!this._fullfilledPromise){var e=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(t,r){e.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)r(n.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=n.status,t.method=n.method,t.url=n.url,r(t)}})),e.end((function(n,e){n?r(n):t(e)}))}))}return this._fullfilledPromise.then(t,r)},o.prototype.catch=function(t){return this.then(void 0,t)},o.prototype.use=function(t){return t(this),this},o.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},o.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},o.prototype.getHeader=o.prototype.get=function(t){return this._header[t.toLowerCase()]},o.prototype.set=function(t,r){if(i(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.set(n,t[n]);return this}return this._header[t.toLowerCase()]=r,this.header[t]=r,this},o.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},o.prototype.field=function(t,r){if(null==t)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(i(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(n,t[n]);return this}if(Array.isArray(r)){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&this.field(t,r[e]);return this}if(null==r)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof r&&(r=String(r)),this._getFormData().append(t,r),this},o.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},o.prototype._auth=function(t,r,n,e){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(e("".concat(t,":").concat(r))));break;case"auto":this.username=t,this.password=r;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},o.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},o.prototype.redirects=function(t){return this._maxRedirects=t,this},o.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(t){var r=i(t),n=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(r&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(r&&i(this._data))for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this._data[e]=t[e]);else"string"==typeof t?(n||this.type("form"),this._data="application/x-www-form-urlencoded"===(n=this._header["content-type"])?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!r||this._isHost(t)||n||this.type("json"),this},o.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},o.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var r=this.url.indexOf("?");if(r>=0){var n=this.url.slice(r+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,r)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(t,r,n){if(!this._aborted){var e=new Error("".concat(t+r,"ms exceeded"));e.timeout=r,e.code="ECONNABORTED",e.errno=n,this.timedout=!0,this.timedoutError=e,this.abort(),this.callback(e)}},o.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,r,n){var e=n(155);function i(t){if(t)return function(t){for(var r in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,r)&&(t[r]=i.prototype[r]);return t}(t)}t.exports=i,i.prototype.get=function(t){return this.header[t.toLowerCase()]},i.prototype._setHeaderProperties=function(t){var r=t["content-type"]||"";this.type=e.type(r);var n=e.params(r);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{t.link&&(this.links=e.parseLinks(t.link))}catch(t){}},i.prototype._setStatusProperties=function(t){var r=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=r,this.info=1===r,this.ok=2===r,this.redirect=3===r,this.clientError=4===r,this.serverError=5===r,this.error=(4===r||5===r)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,r){r.type=function(t){return t.split(/ *; */).shift()},r.params=function(t){return t.split(/ *; */).reduce((function(t,r){var n=r.split(/ *= */),e=n.shift(),i=n.shift();return e&&i&&(t[e]=i),t}),{})},r.parseLinks=function(t){return t.split(/ *, */).reduce((function(t,r){var n=r.split(/ *; */),e=n[0].slice(1,-1);return t[n[1].split(/ *= */)[1].slice(1,-1)]=e,t}),{})},r.cleanHeader=function(t,r){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,r&&(delete t.authorization,delete t.cookie),t}},function(t){function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}function n(){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(t){n.prototype[t]=function(){for(var r=arguments.length,n=new Array(r),e=0;e<r;e++)n[e]=arguments[e];return this._defaults.push({fn:t,args:n}),this}})),n.prototype._setDefaults=function(t){this._defaults.forEach((function(n){t[n.fn].apply(t,function(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.args))}))},t.exports=n},function(t){t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}},function(t){var r=new RegExp("%[a-f0-9]{2}","gi"),n=new RegExp("(%[a-f0-9]{2})+","gi");function e(t,r){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;var n=t.slice(0,r=r||1),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))}function i(t){try{return decodeURIComponent(t)}catch(o){for(var n=t.match(r),i=1;i<n.length;i++)n=(t=e(n,i).join("")).match(r);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(r){return function(t){for(var r={"%FE%FF":"��","%FF%FE":"��"},e=n.exec(t);e;){try{r[e[0]]=decodeURIComponent(e[0])}catch(t){var o=i(e[0]);o!==e[0]&&(r[e[0]]=o)}e=n.exec(t)}r["%C2"]="�";for(var s=Object.keys(r),a=0;a<s.length;a++){var u=s[a];t=t.replace(new RegExp(u,"g"),r[u])}return t}(t)}}},function(t){t.exports=function(t,r){if("string"!=typeof t||"string"!=typeof r)throw new TypeError("Expected the arguments to be of type `string`");if(""===r)return[t];var n=t.indexOf(r);return-1===n?[t]:[t.slice(0,n),t.slice(n+r.length)]}},function(){},function(t){t.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(t,r,n){!function(t){function r(t,r){this.cm=t,this.options=r,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 n=this;t.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}t.showHint=function(t,r,n){if(!r)return t.showHint(n);n&&n.async&&(r.async=!0);var e={hint:r};if(n)for(var i in n)e[i]=n[i];return t.showHint(e)},t.defineExtension("showHint",(function(n){n=function(t,r,n){var e=t.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(e)for(var o in e)void 0!==e[o]&&(i[o]=e[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(t,r)),i}(this,this.getCursor("start"),n);var e=this.listSelections();if(!(e.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<e.length;i++)if(e[i].head.line!=e[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,n);o.options.hint&&(t.signal(this,"startCompletion",this),o.update(!0))}})),t.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(t){return setTimeout(t,1e3/60)},e=window.cancelAnimationFrame||clearTimeout;function i(t){return"string"==typeof t?t:t.text}function o(t,r){for(;r&&r!=t;){if("LI"===r.nodeName.toUpperCase()&&r.parentNode==t)return r;r=r.parentNode}}function s(r,n){this.completion=r,this.data=n,this.picked=!1;var e=this,s=r.cm,a=s.getInputField().ownerDocument,u=a.defaultView||a.parentWindow,l=this.hints=a.createElement("ul");l.className="CodeMirror-hints "+r.cm.options.theme,this.selectedHint=n.selectedHint||0;for(var c=n.list,f=0;f<c.length;++f){var h=l.appendChild(a.createElement("li")),p=c[f],d="CodeMirror-hint"+(f!=this.selectedHint?"":" CodeMirror-hint-active");null!=p.className&&(d=p.className+" "+d),h.className=d,p.render?p.render(h,n,p):h.appendChild(a.createTextNode(p.displayText||i(p))),h.hintId=f}var v=r.options.container||a.body,E=s.cursorCoords(r.options.alignWithWord?n.from:null),b=E.left,m=E.bottom,g=!0,y=0,x=0;if(v!==a.body){var T=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(v).position)?v:v.offsetParent,I=T.getBoundingClientRect(),N=a.body.getBoundingClientRect();y=I.left-N.left-T.scrollLeft,x=I.top-N.top-T.scrollTop}l.style.left=b-y+"px",l.style.top=m-x+"px";var A=u.innerWidth||Math.max(a.body.offsetWidth,a.documentElement.offsetWidth),S=u.innerHeight||Math.max(a.body.offsetHeight,a.documentElement.offsetHeight);v.appendChild(l);var L=l.getBoundingClientRect(),C=L.bottom-S,R=l.scrollHeight>l.clientHeight+1,w=s.getScrollInfo();if(C>0){var O=L.bottom-L.top;if(E.top-(E.bottom-L.top)-O>0)l.style.top=(m=E.top-O-x)+"px",g=!1;else if(O>S){l.style.height=S-5+"px",l.style.top=(m=E.bottom-L.top-x)+"px";var _=s.getCursor();n.from.ch!=_.ch&&(E=s.cursorCoords(_),l.style.left=(b=E.left-y)+"px",L=l.getBoundingClientRect())}}var k,P=L.right-A;if(P>0&&(L.right-L.left>A&&(l.style.width=A-5+"px",P-=L.right-L.left-A),l.style.left=(b=E.left-P-y)+"px"),R)for(var D=l.firstChild;D;D=D.nextSibling)D.style.paddingRight=s.display.nativeBarWidth+"px";return s.addKeyMap(this.keyMap=function(t,r){var n={Up:function(){r.moveFocus(-1)},Down:function(){r.moveFocus(1)},PageUp:function(){r.moveFocus(1-r.menuSize(),!0)},PageDown:function(){r.moveFocus(r.menuSize()-1,!0)},Home:function(){r.setFocus(0)},End:function(){r.setFocus(r.length-1)},Enter:r.pick,Tab:r.pick,Esc:r.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){r.moveFocus(-1)},n["Ctrl-N"]=function(){r.moveFocus(1)});var e=t.options.customKeys,i=e?{}:n;function o(t,e){var o;o="string"!=typeof e?function(t){return e(t,r)}:n.hasOwnProperty(e)?n[e]:e,i[t]=o}if(e)for(var s in e)e.hasOwnProperty(s)&&o(s,e[s]);var a=t.options.extraKeys;if(a)for(var s in a)a.hasOwnProperty(s)&&o(s,a[s]);return i}(r,{moveFocus:function(t,r){e.changeActive(e.selectedHint+t,r)},setFocus:function(t){e.changeActive(t)},menuSize:function(){return e.screenAmount()},length:c.length,close:function(){r.close()},pick:function(){e.pick()},data:n})),r.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){k=setTimeout((function(){r.close()}),100)}),s.on("focus",this.onFocus=function(){clearTimeout(k)})),s.on("scroll",this.onScroll=function(){var t=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),e=m+w.top-t.top,i=e-(u.pageYOffset||(a.documentElement||a.body).scrollTop);if(g||(i+=l.offsetHeight),i<=n.top||i>=n.bottom)return r.close();l.style.top=e+"px",l.style.left=b+w.left-t.left+"px"}),t.on(l,"dblclick",(function(t){var r=o(l,t.target||t.srcElement);r&&null!=r.hintId&&(e.changeActive(r.hintId),e.pick())})),t.on(l,"click",(function(t){var n=o(l,t.target||t.srcElement);n&&null!=n.hintId&&(e.changeActive(n.hintId),r.options.completeOnSingleClick&&e.pick())})),t.on(l,"mousedown",(function(){setTimeout((function(){s.focus()}),20)})),this.scrollToActive(),t.signal(n,"select",c[this.selectedHint],l.childNodes[this.selectedHint]),!0}function a(t,r,n,e){if(t.async)t(r,e,n);else{var i=t(r,n);i&&i.then?i.then(e):e(i)}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&t.signal(this.data,"close"),this.widget&&this.widget.close(),t.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(r,n){var e=r.list[n],o=this;this.cm.operation((function(){e.hint?e.hint(o.cm,r,e):o.cm.replaceRange(i(e),e.from||r.from,e.to||r.to,"complete"),t.signal(r,"pick",e),o.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(e(this.debounce),this.debounce=0);var t=this.startPos;this.data&&(t=this.data.from);var r=this.cm.getCursor(),i=this.cm.getLine(r.line);if(r.line!=this.startPos.line||i.length-r.ch!=this.startLen-this.startPos.ch||r.ch<t.ch||this.cm.somethingSelected()||!r.ch||this.options.closeCharacters.test(i.charAt(r.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(t){if(null!=this.tick){var r=this,n=++this.tick;a(this.options.hint,this.cm,this.options,(function(e){r.tick==n&&r.finishUpdate(e,t)}))}},finishUpdate:function(r,n){this.data&&t.signal(this.data,"update");var e=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=r,r&&r.list.length&&(e&&1==r.list.length?this.pick(r,0):(this.widget=new s(this,r),t.signal(r,"shown")))}},s.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 t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var t=this;this.keyMap={Enter:function(){t.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(r,n){if(r>=this.data.list.length?r=n?this.data.list.length-1:0:r<0&&(r=n?0:this.data.list.length-1),this.selectedHint!=r){var e=this.hints.childNodes[this.selectedHint];e&&(e.className=e.className.replace(" CodeMirror-hint-active","")),(e=this.hints.childNodes[this.selectedHint=r]).className+=" CodeMirror-hint-active",this.scrollToActive(),t.signal(this.data,"select",this.data.list[this.selectedHint],e)}},scrollToActive:function(){var t=this.hints.childNodes[this.selectedHint],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:t.offsetTop+t.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=t.offsetTop+t.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:function(r,n){var e,i=r.getHelpers(n,"hint");if(i.length){var o=function(t,r,n){var e=function(t,r){if(!t.somethingSelected())return r;for(var n=[],e=0;e<r.length;e++)r[e].supportsSelection&&n.push(r[e]);return n}(t,i);!function i(o){if(o==e.length)return r(null);a(e[o],t,n,(function(t){t&&t.list.length>0?r(t):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(e=r.getHelper(r.getCursor(),"hintWords"))?function(r){return t.hint.fromList(r,{words:e})}:t.hint.anyword?function(r,n){return t.hint.anyword(r,n)}:function(){}}}),t.registerHelper("hint","fromList",(function(r,n){var e,i=r.getCursor(),o=r.getTokenAt(i),s=t.Pos(i.line,o.start),a=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?e=o.string.substr(0,i.ch-o.start):(e="",s=i);for(var u=[],l=0;l<n.words.length;l++){var c=n.words[l];c.slice(0,e.length)==e&&u.push(c)}if(u.length)return{list:u,from:s,to:a}})),t.commands.autocomplete=t.showHint;var u={hint:t.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)}(n(7))},function(t,r,n){!function(t){var r={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function n(t){for(var n in this.options={},r)this.options[n]=(t&&t.hasOwnProperty(n)?t:r)[n];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}function e(t){var r=t.state.matchHighlighter;(r.active||t.hasFocus())&&o(t,r)}function i(t){var r=t.state.matchHighlighter;r.active||(r.active=!0,o(t,r))}function o(t,r){clearTimeout(r.timeout),r.timeout=setTimeout((function(){u(t)}),r.options.delay)}function s(t,r,n,e){var i=t.state.matchHighlighter;if(t.addOverlay(i.overlay=function(t,r,n){return{token:function(e){if(e.match(t)&&(!r||function(t,r){return!(t.start&&r.test(t.string.charAt(t.start-1))||t.pos!=t.string.length&&r.test(t.string.charAt(t.pos)))}(e,r)))return n;e.next(),e.skipTo(t.charAt(0))||e.skipToEnd()}}}(r,n,e)),i.options.annotateScrollbar&&t.showMatchesOnScrollbar){var o=n?new RegExp((/\w/.test(r.charAt(0))?"\\b":"")+r.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(r.charAt(r.length-1))?"\\b":"")):r;i.matchesonscroll=t.showMatchesOnScrollbar(o,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function a(t){var r=t.state.matchHighlighter;r.overlay&&(t.removeOverlay(r.overlay),r.overlay=null,r.matchesonscroll&&(r.matchesonscroll.clear(),r.matchesonscroll=null))}function u(t){t.operation((function(){var r=t.state.matchHighlighter;if(a(t),t.somethingSelected()||!r.options.showToken){var n=t.getCursor("from"),e=t.getCursor("to");if(n.line==e.line&&(!r.options.wordsOnly||function(t,r,n){if(null!==t.getRange(r,n).match(/^\w+$/)){if(r.ch>0){var e={line:r.line,ch:r.ch-1};if(null===t.getRange(e,r).match(/\W/))return!1}return!(n.ch<t.getLine(r.line).length&&(e={line:n.line,ch:n.ch+1},null===t.getRange(n,e).match(/\W/)))}return!1}(t,n,e))){var i=t.getRange(n,e);r.options.trim&&(i=i.replace(/^\s+|\s+$/g,"")),i.length>=r.options.minChars&&s(t,i,!1,r.options.style)}}else{for(var o=!0===r.options.showToken?/[\w$]/:r.options.showToken,u=t.getCursor(),l=t.getLine(u.line),c=u.ch,f=c;c&&o.test(l.charAt(c-1));)--c;for(;f<l.length&&o.test(l.charAt(f));)++f;c<f&&s(t,l.slice(c,f),o,r.options.style)}}))}t.defineOption("highlightSelectionMatches",!1,(function(r,o,s){if(s&&s!=t.Init&&(a(r),clearTimeout(r.state.matchHighlighter.timeout),r.state.matchHighlighter=null,r.off("cursorActivity",e),r.off("focus",i)),o){var l=r.state.matchHighlighter=new n(o);r.hasFocus()?(l.active=!0,u(r)):r.on("focus",i),r.on("cursorActivity",e)}}))}(n(7),n(164))},function(t,r,n){!function(t){function r(t,r,n,e){this.cm=t,this.options=e;var i={listenForChanges:!1};for(var o in e)i[o]=e[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=t.annotateScrollbar(i),this.query=r,this.caseFold=n,this.gap={from:t.firstLine(),to:t.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var s=this;t.on("change",this.changeHandler=function(t,r){s.onChange(r)})}function n(t,r,n){return t<=r?t:Math.max(r,t+n)}t.defineExtension("showMatchesOnScrollbar",(function(t,n,e){return"string"==typeof e&&(e={className:e}),e||(e={}),new r(this,t,n,e)})),r.prototype.findMatches=function(){if(this.gap){for(var r=0;r<this.matches.length&&!((i=this.matches[r]).from.line>=this.gap.to);r++)i.to.line>=this.gap.from&&this.matches.splice(r--,1);for(var n=this.cm.getSearchCursor(this.query,t.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),e=this.options&&this.options.maxMatches||1e3;n.findNext();){var i;if((i={from:n.from(),to:n.to()}).from.line>=this.gap.to)break;if(this.matches.splice(r++,0,i),this.matches.length>e)break}this.gap=null}},r.prototype.onChange=function(r){var e=r.from.line,i=t.changeEnd(r).line,o=i-r.to.line;if(this.gap?(this.gap.from=Math.min(n(this.gap.from,e,o),r.from.line),this.gap.to=Math.max(n(this.gap.to,e,o),r.from.line)):this.gap={from:r.from.line,to:i+1},o)for(var s=0;s<this.matches.length;s++){var a=this.matches[s],u=n(a.from.line,e,o);u!=a.from.line&&(a.from=t.Pos(u,a.from.ch));var l=n(a.to.line,e,o);l!=a.to.line&&(a.to=t.Pos(l,a.to.ch))}clearTimeout(this.update);var c=this;this.update=setTimeout((function(){c.updateAfterChange()}),250)},r.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},r.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(n(7),n(122),n(165))},function(t,r,n){!function(t){function r(t,r){function n(t){clearTimeout(e.doRedraw),e.doRedraw=setTimeout((function(){e.redraw()}),t)}this.cm=t,this.options=r,this.buttonHeight=r.scrollButtonHeight||t.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=t.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var e=this;t.on("refresh",this.resizeHandler=function(){clearTimeout(e.doUpdate),e.doUpdate=setTimeout((function(){e.computeScale()&&n(20)}),100)}),t.on("markerAdded",this.resizeHandler),t.on("markerCleared",this.resizeHandler),!1!==r.listenForChanges&&t.on("changes",this.changeHandler=function(){n(250)})}t.defineExtension("annotateScrollbar",(function(t){return"string"==typeof t&&(t={className:t}),new r(this,t)})),t.defineOption("scrollButtonHeight",0),r.prototype.computeScale=function(){var t=this.cm,r=(t.getWrapperElement().clientHeight-t.display.barHeight-2*this.buttonHeight)/t.getScrollerElement().scrollHeight;if(r!=this.hScale)return this.hScale=r,!0},r.prototype.update=function(t){this.annotations=t,this.redraw()},r.prototype.redraw=function(t){!1!==t&&this.computeScale();var r=this.cm,n=this.hScale,e=document.createDocumentFragment(),i=this.annotations,o=r.getOption("lineWrapping"),s=o&&1.5*r.defaultTextHeight(),a=null,u=null;function l(t,n){return a!=t.line&&(u=r.getLineHandle(a=t.line)),u.widgets&&u.widgets.length||o&&u.height>s?r.charCoords(t,"local")[n?"top":"bottom"]:r.heightAtLine(u,"local")+(n?0:u.height)}var c=r.lastLine();if(r.display.barWidth)for(var f,h=0;h<i.length;h++){var p=i[h];if(!(p.to.line>c)){for(var d=f||l(p.from,!0)*n,v=l(p.to,!1)*n;h<i.length-1&&!(i[h+1].to.line>c)&&!((f=l(i[h+1].from,!0)*n)>v+.9);)v=l((p=i[++h]).to,!1)*n;if(v!=d){var E=Math.max(v-d,3),b=e.appendChild(document.createElement("div"));b.style.cssText="position: absolute; right: 0px; width: "+Math.max(r.display.barWidth-1,2)+"px; top: "+(d+this.buttonHeight)+"px; height: "+E+"px",b.className=this.options.className,p.id&&b.setAttribute("annotation-id",p.id)}}}this.div.textContent="",this.div.appendChild(e)},r.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)}}(n(7))},function(t,r,n){!function(t){t.runMode=function(r,n,e,i){var o=t.getMode(t.defaults,n),s=i&&i.tabSize||t.defaults.tabSize;if(e.appendChild){var a=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9),u=e,l=0;u.innerHTML="",e=function(t,r){if("\n"==t)return u.appendChild(document.createTextNode(a?"\r":t)),void(l=0);for(var n="",e=0;;){var i=t.indexOf("\t",e);if(-1==i){n+=t.slice(e),l+=t.length-e;break}l+=i-e,n+=t.slice(e,i);var o=s-l%s;l+=o;for(var c=0;c<o;++c)n+=" ";e=i+1}if(r){var f=u.appendChild(document.createElement("span"));f.className="cm-"+r.replace(/ +/g," cm-"),f.appendChild(document.createTextNode(n))}else u.appendChild(document.createTextNode(n))}}for(var c=t.splitLines(r),f=i&&i.state||t.startState(o),h=0,p=c.length;h<p;++h){h&&e("\n");var d=new t.StringStream(c[h],null,{lookAhead:function(t){return c[h+t]},baseToken:function(){}});for(!d.string&&o.blankLine&&o.blankLine(f);!d.eol();){var v=o.token(d,f);e(d.current(),v,h,d.start,f),d.start=d.pos}}}}(n(7))},function(){},function(){},function(t){t.exports=function(t,r){var n=[];return 0===r.length?n.push({text:t,highlight:!1}):r[0][0]>0&&n.push({text:t.slice(0,r[0][0]),highlight:!1}),r.forEach((function(e,i){var o=e[1];n.push({text:t.slice(e[0],o),highlight:!0}),i===r.length-1?o<t.length&&n.push({text:t.slice(o,t.length),highlight:!1}):o<r[i+1][0]&&n.push({text:t.slice(o,r[i+1][0]),highlight:!1})})),n}},function(t,r,n){var e=n(87),i=n(85),o=Object(i.a)((function(t,r,n){Object(e.a)(t,r,n)}));r.a=o},function(t,r,n){var e=n(64),i=Object(e.a)({"&":"&","<":"<",">":">",'"':""","'":"'"}),o=n(27),s=/[&<>"']/g,a=RegExp(s.source);r.a=function(t){return(t=Object(o.a)(t))&&a.test(t)?t.replace(s,i):t}},function(t){var r;r=function(){function t(t){return t.innerHTML=""}function r(r,n,i,s,a,u){s({event:r,query:n instanceof HTMLInputElement?n.value:n.innerHTML,matches:a.matches,results:a.list.map((function(t){return t.value})),selection:a.list.find((function(t){return r.keyCode===o?t.index===Number(u.getAttribute(e)):"mousedown"===r.type?t.index===Number(r.currentTarget.getAttribute(e)):void 0}))}),t(i)}function n(t,r){r=r||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,r.bubbles,r.cancelable,r.detail),n}var e="data-id",i="autoComplete_selected",o=13,s=function(t){return"string"==typeof t?document.querySelector(t):t()},a=function(t){return"<span class=".concat("autoComplete_highlighted",">").concat(t,"</span>")},u=function(t,r,n){var i=document.createDocumentFragment();r.forEach((function(t,o){var s=document.createElement(n.element);s.setAttribute(e,r[o].index),s.setAttribute("class","autoComplete_result"),n.content?n.content(t,s):s.innerHTML=t.match||t,i.appendChild(s)})),t.appendChild(i)},l=t;n.prototype=window.Event.prototype;var c={CustomEventWrapper:"function"==typeof window.CustomEvent&&window.CustomEvent||n,initElementClosestPolyfill:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(t){var r=this;do{if(r.matches(t))return r;r=r.parentElement||r.parentNode}while(null!==r&&1===r.nodeType);return null})}};return function(){function t(r){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t);var n=r.selector,e=void 0===n?"#autoComplete":n,i=r.data,o=i.key,a=i.src,u=i.cache,l=void 0===u||u,c=r.query,f=r.trigger,h=(f=void 0===f?{}:f).event,p=void 0===h?["input"]:h,d=f.condition,v=void 0!==d&&d,E=r.searchEngine,b=void 0===E?"strict":E,m=r.threshold,g=void 0===m?0:m,y=r.debounce,x=void 0===y?0:y,T=r.resultsList,I=(T=void 0===T?{}:T).render,N=void 0!==I&&I,A=T.container,S=T.position,L=void 0===S?"afterend":S,C=T.element,R=void 0===C?"ul":C,w=T.navigation,O=void 0!==w&&w,_=r.sort,k=void 0!==_&&_,P=r.placeHolder,D=r.maxResults,M=void 0===D?5:D,j=r.resultItem,G=(j=void 0===j?{}:j).content,F=void 0!==G&&G,U=j.element,B=void 0===U?"li":U,V=r.noResults,q=r.highlight,H=void 0!==q&&q,z=r.onSelection,$=N?function(t){var r=document.createElement(t.element);return r.setAttribute("id","autoComplete_list"),t.container&&t.container(r),t.destination.insertAdjacentElement(t.position,r),r}({container:void 0!==A&&A,destination:T.destination||s(e),position:L,element:R}):null;this.selector=e,this.data={src:function(){return"function"==typeof a?a():a},key:o,cache:l},this.query=c,this.trigger={event:p,condition:v},this.searchEngine="loose"===b?"loose":"function"==typeof b?b:"strict",this.threshold=g,this.debounce=x,this.resultsList={render:N,view:$,navigation:O},this.sort=k,this.placeHolder=P,this.maxResults=M,this.resultItem={content:F,element:B},this.noResults=V,this.highlight=H,this.onSelection=z,this.init()}return function(t,r){r&&function(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}(t.prototype,r)}(t,[{key:"search",value:function(t,r){var n=r.toLowerCase();if("loose"===this.searchEngine){t=t.replace(/ /g,"");for(var e=[],i=0,o=0;o<n.length;o++){var s=r[o];i<t.length&&n[o]===t[i]&&(s=this.highlight?a(s):s,i++),e.push(s)}return i===t.length&&e.join("")}if(n.includes(t))return t=new RegExp("".concat(t),"i").exec(r),this.highlight?r.replace(t,a(t)):r}},{key:"listMatchedResults",value:function(t){var r=this;return new Promise((function(n){var e=[];t.filter((function(t,n){function i(i){var o=i?t[i]:t;if(o){var s="function"==typeof r.searchEngine?r.searchEngine(r.queryValue,o):r.search(r.queryValue,o);s&&i?e.push({key:i,index:n,match:s,value:t}):s&&!i&&e.push({index:n,match:s,value:t})}}if(r.data.key){var o=!0,s=!1,a=void 0;try{for(var u,l=r.data.key[Symbol.iterator]();!(o=(u=l.next()).done);o=!0)i(u.value)}catch(i){s=!0,a=i}finally{try{o||null==l.return||l.return()}finally{if(s)throw a}}}else i()}));var i=r.sort?e.sort(r.sort).slice(0,r.maxResults):e.slice(0,r.maxResults);return n({matches:e.length,list:i})}))}},{key:"ignite",value:function(){var t=this,n=s(this.selector);function e(e){Promise.resolve(t.data.cache?t.dataStream:t.data.src()).then((function(s){t.dataStream=s,function(e){function s(t,r){n.dispatchEvent(new c.CustomEventWrapper("autoComplete",{bubbles:!0,detail:{event:t,input:a,query:f,matches:r?r.matches:null,results:r?r.list:null},cancelable:!0}))}var a=n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?n.value.toLowerCase():n.innerHTML.toLowerCase(),f=t.queryValue=t.query&&t.query.manipulate?t.query.manipulate(a):a,h=t.resultsList.render,p=t.trigger.condition?t.trigger.condition(f):f.length>t.threshold&&f.replace(/ /g,"").length;if(h){var d=t.resultsList.view;l(d),p?t.listMatchedResults(t.dataStream,e).then((function(a){s(e,a),t.resultsList.render&&(0===a.list.length&&t.noResults?t.noResults():(u(d,a.list,t.resultItem),t.onSelection&&(t.resultsList.navigation?t.resultsList.navigation(e,n,d,t.onSelection,a):function(t,n,e,s){function a(t){h.classList.remove(i),l=1===t?h.nextSibling:h.previousSibling}function u(t){(h=t).classList.add(i)}var l,c=n.childNodes,f=c.length-1,h=void 0;t.onkeydown=function(i){if(0<c.length)switch(i.keyCode){case 38:h?(a(0),u(l||c[f])):u(c[f]);break;case 40:h?(a(1),u(l||c[0])):u(c[0]);break;case o:h&&r(i,t,n,e,s,h)}},c.forEach((function(i){i.onmousedown=function(i){return r(i,t,n,e,s)}}))}(n,d,t.onSelection,a))))})):s(e)}else!h&&p&&t.listMatchedResults(t.dataStream,e).then((function(t){s(e,t)}))}(e)}))}this.placeHolder&&n.setAttribute("placeholder",this.placeHolder),this.trigger.event.forEach((function(r){n.addEventListener(r,function(t,r){var n;return function(){var e=this,i=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(e,i)}),r)}}((function(t){return e(t)}),t.debounce))}))}},{key:"init",value:function(){var t=this;this.data.cache?Promise.resolve(this.data.src()).then((function(r){t.dataStream=r,t.ignite()})):this.ignite(),c.initElementClosestPolyfill()}}]),t}()},t.exports=r()},,function(t,r,n){t.exports=n(185)},function(t,r,n){var e=n(31),i=n(66),o=n(52);r.a=function(t,r){var n={};return r=Object(o.a)(r,3),Object(i.a)(t,(function(t,i,o){Object(e.a)(n,i,r(t,i,o))})),n}},function(){},function(t,r,n){var e;!function(){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function o(t){return t&&(t=t.toString().replace(i.pluses,"%20"),t=decodeURIComponent(t)),t}function s(t){var r,n,e,s,a,u,l,c=[];if(null==t||""===t)return c;for(0===t.indexOf("?")&&(t=t.substring(1)),r=0,l=(n=t.toString().split(i.query_separator)).length;r<l;r++)0!==(s=(e=n[r]).indexOf("="))&&(a=o(e.substring(0,s)),u=o(e.substring(s+1)),c.push(-1===s?[e,null]:[a,u]));return c}function a(t){this.uriParts=function(t){var r=i.uri_parser.exec(t||""),n={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(t,e){n[t]=r[e]||""})),n}(t),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(t,r){var n,e;if(null==this)throw new TypeError(" this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=r),e=0;e<o;)e in i&&t.call(n,i[e],e,i),e++}),["protocol","userInfo","host","port","path","anchor"].forEach((function(t){a.prototype[t]=function(r){return void 0!==r&&(this.uriParts[t]=r),this.uriParts[t]}})),a.prototype.hasAuthorityPrefix=function(t){return void 0!==t&&(this.hasAuthorityPrefixUserPref=t),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},a.prototype.isColonUri=function(t){if(void 0===t)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!t},a.prototype.query=function(t){var r,n,e,i="";for(void 0!==t&&(this.queryPairs=s(t)),r=0,e=this.queryPairs.length;r<e;r++)i.length>0&&(i+="&"),null===(n=this.queryPairs[r])[1]?i+=n[0]:(i+=n[0],i+="=",void 0!==n[1]&&(i+=encodeURIComponent(n[1])));return i.length>0?"?"+i:i},a.prototype.getQueryParamValue=function(t){var r,n,e;for(n=0,e=this.queryPairs.length;n<e;n++)if(t===(r=this.queryPairs[n])[0])return r[1]},a.prototype.getQueryParamValues=function(t){var r,n,e,i=[];for(r=0,e=this.queryPairs.length;r<e;r++)t===(n=this.queryPairs[r])[0]&&i.push(n[1]);return i},a.prototype.deleteQueryParam=function(t,r){var n,e,i,s,a,u=[];for(n=0,a=this.queryPairs.length;n<a;n++)i=o((e=this.queryPairs[n])[0])===o(t),s=e[1]===r,(1!==arguments.length||i)&&(2!==arguments.length||i&&s)||u.push(e);return this.queryPairs=u,this},a.prototype.addQueryParam=function(t,r,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[t,r])):arguments.length>0&&this.queryPairs.push([t,r]),this},a.prototype.hasQueryParam=function(t){var r,n=this.queryPairs.length;for(r=0;r<n;r++)if(this.queryPairs[r][0]==t)return!0;return!1},a.prototype.replaceQueryParam=function(t,r,n){var e,i,s=-1,a=this.queryPairs.length;if(3===arguments.length){for(e=0;e<a;e++)if(o((i=this.queryPairs[e])[0])===o(t)&&decodeURIComponent(i[1])===o(n)){s=e;break}s>=0&&this.deleteQueryParam(t,o(n)).addQueryParam(t,r,s)}else{for(e=0;e<a;e++)if(o((i=this.queryPairs[e])[0])===o(t)){s=e;break}this.deleteQueryParam(t),this.addQueryParam(t,r,s)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(t){var r="set"+t.charAt(0).toUpperCase()+t.slice(1);a.prototype[r]=function(r){return this[t](r),this}})),a.prototype.scheme=function(){var t="";return this.protocol()?(t+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(t+=":"),t+="//"):this.hasAuthorityPrefix()&&this.host()&&(t+="//"),t},a.prototype.origin=function(){var t=this.scheme();return this.userInfo()&&this.host()&&(t+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(t+="@")),this.host()&&(t+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(t+=":"+this.port())),t},a.prototype.addTrailingSlash=function(){var t=this.path()||"";return"/"!==t.substr(-1)&&this.path(t+"/"),this},a.prototype.toString=function(){var t,r=this.origin();return this.isColonUri()?this.path()&&(r+=":"+this.path()):this.path()?(t=this.path(),i.ends_with_slashes.test(r)||i.starts_with_slashes.test(t)?(r&&r.replace(i.ends_with_slashes,"/"),t=t.replace(i.starts_with_slashes,"/")):r+="/",r+=t):this.host()&&(this.query().toString()||this.anchor())&&(r+="/"),this.query().toString()&&(r+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(r+="#"),r+=this.anchor()),r},a.prototype.clone=function(){return new a(this.toString())},void 0===(e=function(){return a}.call(r,n,r,t))||(t.exports=e)}()},function(){},function(){},function(){},function(t,r,n){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function o(){return(o=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t}).apply(this,arguments)}function s(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},e=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),e.forEach((function(r){i(t,r,n[r])}))}return t}function a(t,r){if(null==t)return{};var n,e,i=function(t,r){if(null==t)return{};var n,e,i={},o=Object.keys(t);for(e=0;e<o.length;e++)r.indexOf(n=o[e])>=0||(i[n]=t[n]);return i}(t,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(e=0;e<o.length;e++)r.indexOf(n=o[e])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function u(t){return function(t){if(Array.isArray(t)){for(var r=0,n=new Array(t.length);r<t.length;r++)n[r]=t[r];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}n.r(r),n.d(r,"MultiDrag",(function(){return mr})),n.d(r,"Sortable",(function(){return Ft})),n.d(r,"Swap",(function(){return ar}));var c=l(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),f=l(/Edge/i),h=l(/firefox/i),p=l(/safari/i)&&!l(/chrome/i)&&!l(/android/i),d=l(/iP(ad|od|hone)/i),v=l(/chrome/i)&&l(/android/i),E={capture:!1,passive:!1};function b(t,r,n){t.addEventListener(r,n,!c&&E)}function m(t,r,n){t.removeEventListener(r,n,!c&&E)}function g(t,r){if(r){if(">"===r[0]&&(r=r.substring(1)),t)try{if(t.matches)return t.matches(r);if(t.msMatchesSelector)return t.msMatchesSelector(r);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(r)}catch(t){return!1}return!1}}function y(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function x(t,r,n,e){if(t){n=n||document;do{if(null!=r&&(">"===r[0]?t.parentNode===n&&g(t,r):g(t,r))||e&&t===n)return t;if(t===n)break}while(t=y(t))}return null}var T,I=/\s+/g;function N(t,r,n){if(t&&r)if(t.classList)t.classList[n?"add":"remove"](r);else{var e=(" "+t.className+" ").replace(I," ").replace(" "+r+" "," ");t.className=(e+(n?" "+r:"")).replace(I," ")}}function A(t,r,n){var e=t&&t.style;if(e){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===r?n:n[r];r in e||-1!==r.indexOf("webkit")||(r="-webkit-"+r),e[r]=n+("string"==typeof n?"":"px")}}function S(t,r){var n="";if("string"==typeof t)n=t;else do{var e=A(t,"transform");e&&"none"!==e&&(n=e+" "+n)}while(!r&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function L(t,r,n){if(t){var e=t.getElementsByTagName(r),i=0,o=e.length;if(n)for(;i<o;i++)n(e[i],i);return e}return[]}function C(){return document.scrollingElement||document.documentElement}function R(t,r,n,e,i){if(t.getBoundingClientRect||t===window){var o,s,a,u,l,f,h;if(t!==window&&t!==C()?(s=(o=t.getBoundingClientRect()).top,a=o.left,u=o.bottom,l=o.right,f=o.height,h=o.width):(s=0,a=0,u=window.innerHeight,l=window.innerWidth,f=window.innerHeight,h=window.innerWidth),(r||n)&&t!==window&&(i=i||t.parentNode,!c))do{if(i&&i.getBoundingClientRect&&("none"!==A(i,"transform")||n&&"static"!==A(i,"position"))){var p=i.getBoundingClientRect();s-=p.top+parseInt(A(i,"border-top-width")),a-=p.left+parseInt(A(i,"border-left-width")),u=s+o.height,l=a+o.width;break}}while(i=i.parentNode);if(e&&t!==window){var d=S(i||t),v=d&&d.a,E=d&&d.d;d&&(u=(s/=E)+(f/=E),l=(a/=v)+(h/=v))}return{top:s,left:a,bottom:u,right:l,width:h,height:f}}}function w(t,r,n){for(var e=D(t,!0),i=R(t)[r];e;){var o=R(e)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return e;if(e===C())break;e=D(e,!1)}return!1}function O(t,r,n){for(var e=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Ft.ghost&&o[i]!==Ft.dragged&&x(o[i],n.draggable,t,!1)){if(e===r)return o[i];e++}i++}return null}function _(t,r){for(var n=t.lastElementChild;n&&(n===Ft.ghost||"none"===A(n,"display")||r&&!g(n,r));)n=n.previousElementSibling;return n||null}function k(t,r){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ft.clone||r&&!g(t,r)||n++;return n}function P(t){var r=0,n=0,e=C();if(t)do{var i=S(t);r+=t.scrollLeft*i.a,n+=t.scrollTop*i.d}while(t!==e&&(t=t.parentNode));return[r,n]}function D(t,r){if(!t||!t.getBoundingClientRect)return C();var n=t,e=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=A(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return C();if(e||r)return n;e=!0}}}while(n=n.parentNode);return C()}function M(t,r){return Math.round(t.top)===Math.round(r.top)&&Math.round(t.left)===Math.round(r.left)&&Math.round(t.height)===Math.round(r.height)&&Math.round(t.width)===Math.round(r.width)}function j(t,r){return function(){if(!T){var n=arguments,e=this;1===n.length?t.call(e,n[0]):t.apply(e,n),T=setTimeout((function(){T=void 0}),r)}}}function G(t,r,n){t.scrollLeft+=r,t.scrollTop+=n}function F(t){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function U(t,r){A(t,"position","absolute"),A(t,"top",r.top),A(t,"left",r.left),A(t,"width",r.width),A(t,"height",r.height)}function B(t){A(t,"position",""),A(t,"top",""),A(t,"left",""),A(t,"width",""),A(t,"height","")}var V="Sortable"+(new Date).getTime(),q=[],H={initializeByDefault:!0},z={mount:function(t){for(var r in H)H.hasOwnProperty(r)&&!(r in t)&&(t[r]=H[r]);q.push(t)},pluginEvent:function(t,r,n){var e=this;this.eventCanceled=!1,n.cancel=function(){e.eventCanceled=!0};var i=t+"Global";q.forEach((function(e){r[e.pluginName]&&(r[e.pluginName][i]&&r[e.pluginName][i](s({sortable:r},n)),r.options[e.pluginName]&&r[e.pluginName][t]&&r[e.pluginName][t](s({sortable:r},n)))}))},initializePlugins:function(t,r,n){for(var e in q.forEach((function(e){var i=e.pluginName;if(t.options[i]||e.initializeByDefault){var s=new e(t,r,t.options);s.sortable=t,s.options=t.options,t[i]=s,o(n,s.defaults)}})),t.options)if(t.options.hasOwnProperty(e)){var i=this.modifyOption(t,e,t.options[e]);void 0!==i&&(t.options[e]=i)}},getEventProperties:function(t,r){var n={};return q.forEach((function(e){"function"==typeof e.eventProperties&&o(n,e.eventProperties.call(r[e.pluginName],t))})),n},modifyOption:function(t,r,n){var e;return q.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[r]&&(e=i.optionListeners[r].call(t[i.pluginName],n))})),e}};function $(t){var r=t.sortable,n=t.rootEl,e=t.name,i=t.targetEl,o=t.cloneEl,a=t.toEl,u=t.fromEl,l=t.oldIndex,h=t.newIndex,p=t.oldDraggableIndex,d=t.newDraggableIndex,v=t.originalEvent,E=t.putSortable,b=t.extraEventProperties;if(r=r||n&&n[V]){var m,g=r.options,y="on"+e.charAt(0).toUpperCase()+e.substr(1);!window.CustomEvent||c||f?(m=document.createEvent("Event")).initEvent(e,!0,!0):m=new CustomEvent(e,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=u||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=h,m.oldDraggableIndex=p,m.newDraggableIndex=d,m.originalEvent=v,m.pullMode=E?E.lastPutMode:void 0;var x=s({},b,z.getEventProperties(e,r));for(var T in x)m[T]=x[T];n&&n.dispatchEvent(m),g[y]&&g[y].call(r,m)}}var W=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=n.evt,i=a(n,["evt"]);z.pluginEvent.bind(Ft)(t,r,s({dragEl:X,parentEl:Z,ghostEl:Q,rootEl:K,nextEl:J,lastDownEl:tt,cloneEl:rt,cloneHidden:nt,dragStarted:vt,putSortable:ut,activeSortable:Ft.active,originalEvent:e,oldIndex:et,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:st,hideGhostForTarget:Dt,unhideGhostForTarget:Mt,cloneNowHidden:function(){nt=!0},cloneNowShown:function(){nt=!1},dispatchSortableEvent:function(t){Y({sortable:r,name:t,originalEvent:e})}},i))};function Y(t){$(s({putSortable:ut,cloneEl:rt,targetEl:X,rootEl:K,oldIndex:et,oldDraggableIndex:ot,newIndex:it,newDraggableIndex:st},t))}var X,Z,Q,K,J,tt,rt,nt,et,it,ot,st,at,ut,lt,ct,ft,ht,pt,dt,vt,Et,bt,mt,gt,yt=!1,xt=!1,Tt=[],It=!1,Nt=!1,At=[],St=!1,Lt=[],Ct="undefined"!=typeof document,Rt=d,wt=f||c?"cssFloat":"float",Ot=Ct&&!v&&!d&&"draggable"in document.createElement("div"),_t=function(){if(Ct){if(c)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),kt=function(t,r){var n=A(t),e=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=O(t,0,r),o=O(t,1,r),s=i&&A(i),a=o&&A(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+R(i).width,l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+R(o).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":i&&s.float&&"none"!==s.float?!o||"both"!==a.clear&&a.clear!==("left"===s.float?"left":"right")?"horizontal":"vertical":i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||u>=e&&"none"===n[wt]||o&&"none"===n[wt]&&u+l>e)?"vertical":"horizontal"},Pt=function(t){function r(t,n){return function(e,i,o,s){if(null==t&&(n||e.options.group.name&&i.options.group.name&&e.options.group.name===i.options.group.name))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return r(t(e,i,o,s),n)(e,i,o,s);var a=(n?e:i).options.group.name;return!0===t||"string"==typeof t&&t===a||t.join&&t.indexOf(a)>-1}}var n={},i=t.group;i&&"object"==e(i)||(i={name:i}),n.name=i.name,n.checkPull=r(i.pull,!0),n.checkPut=r(i.put),n.revertClone=i.revertClone,t.group=n},Dt=function(){!_t&&Q&&A(Q,"display","none")},Mt=function(){!_t&&Q&&A(Q,"display","")};Ct&&document.addEventListener("click",(function(t){if(xt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xt=!1,!1}),!0);var jt=function(t){if(X){var r=(i=(t=t.touches?t.touches[0]:t).clientX,o=t.clientY,Tt.some((function(t){if(!_(t)){var r=R(t),n=t[V].options.emptyInsertThreshold;return n&&i>=r.left-n&&i<=r.right+n&&o>=r.top-n&&o<=r.bottom+n?s=t:void 0}})),s);if(r){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[V]._onDragOver(n)}}var i,o,s},Gt=function(t){X&&X.parentNode[V]._isOutsideThisEl(t.target)};function Ft(t,r){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=r=o({},r),t[V]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return kt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,r){t.setData("Text",r.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:!1!==Ft.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var e in z.initializePlugins(this,t,n),n)!(e in r)&&(r[e]=n[e]);for(var i in Pt(r),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!r.forceFallback&&Ot,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),Tt.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),o(this,function(){var t,r=[];return{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==A(t,"display")&&t!==Ft.ghost){r.push({target:t,rect:R(t)});var n=s({},r[r.length-1].rect);if(t.thisAnimationDuration){var e=S(t,!0);e&&(n.top-=e.f,n.left-=e.e)}t.fromRect=n}}))},addAnimationState:function(t){r.push(t)},removeAnimationState:function(t){r.splice(function(t,r){for(var n in t)if(t.hasOwnProperty(n))for(var e in r)if(r.hasOwnProperty(e)&&r[e]===t[n][e])return Number(n);return-1}(r,{target:t}),1)},animateAll:function(n){var e=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,o=0;r.forEach((function(t){var r=0,n=t.target,s=n.fromRect,a=R(n),u=n.prevFromRect,l=n.prevToRect,c=t.rect,f=S(n,!0);f&&(a.top-=f.f,a.left-=f.e),n.toRect=a,n.thisAnimationDuration&&M(u,a)&&!M(s,a)&&(c.top-a.top)/(c.left-a.left)==(s.top-a.top)/(s.left-a.left)&&(r=function(t,r,n,e){return Math.sqrt(Math.pow(r.top-t.top,2)+Math.pow(r.left-t.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*e.animation}(c,u,l,e.options)),M(a,s)||(n.prevFromRect=s,n.prevToRect=a,r||(r=e.options.animation),e.animate(n,c,a,r)),r&&(i=!0,o=Math.max(o,r),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),r),n.thisAnimationDuration=r)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),r=[]},animate:function(t,r,n,e){if(e){A(t,"transition",""),A(t,"transform","");var i=S(this.el),o=(r.left-n.left)/(i&&i.a||1),s=(r.top-n.top)/(i&&i.d||1);t.animatingX=!!o,t.animatingY=!!s,A(t,"transform","translate3d("+o+"px,"+s+"px,0)"),A(t,"transition","transform "+e+"ms"+(this.options.easing?" "+this.options.easing:"")),A(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){A(t,"transition",""),A(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),e)}}}}())}function Ut(t,r,n,e,i,o,s,a){var u,l,h=t[V],p=h.options.onMove;return!window.CustomEvent||c||f?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=r,u.from=t,u.dragged=n,u.draggedRect=e,u.related=i||r,u.relatedRect=o||R(r),u.willInsertAfter=a,u.originalEvent=s,t.dispatchEvent(u),p&&(l=p.call(h,u,s)),l}function Bt(t){t.draggable=!1}function Vt(){St=!1}function qt(t){for(var r=t.tagName+t.className+t.src+t.href+t.textContent,n=r.length,e=0;n--;)e+=r.charCodeAt(n);return e.toString(36)}function Ht(t){return setTimeout(t,0)}function zt(t){return clearTimeout(t)}Ft.prototype={constructor:Ft,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,r){return"function"==typeof this.options.direction?this.options.direction.call(this,t,r,X):this.options.direction},_onTapStart:function(t){if(t.cancelable){var r=this,n=this.el,e=this.options,i=e.preventOnFilter,o=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,l=e.filter;if(function(t){Lt.length=0;for(var r=t.getElementsByTagName("input"),n=r.length;n--;){var e=r[n];e.checked&&Lt.push(e)}}(n),!X&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||e.disabled||u.isContentEditable||(a=x(a,e.draggable,n,!1))&&a.animated||tt===a)){if(et=k(a),ot=k(a,e.draggable),"function"==typeof l){if(l.call(this,t,a,this))return Y({sortable:r,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),W("filter",r,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(l&&(l=l.split(",").some((function(e){if(e=x(u,e.trim(),n,!1))return Y({sortable:r,rootEl:e,name:"filter",targetEl:a,fromEl:n,toEl:n}),W("filter",r,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());e.handle&&!x(u,e.handle,n,!1)||this._prepareDragStart(t,s,a)}}},_prepareDragStart:function(t,r,n){var e,i=this,o=i.el,s=i.options,a=o.ownerDocument;if(n&&!X&&n.parentNode===o){var u=R(n);if(K=o,Z=(X=n).parentNode,J=X.nextSibling,tt=n,at=s.group,Ft.dragged=X,pt=(lt={target:X,clientX:(r||t).clientX,clientY:(r||t).clientY}).clientX-u.left,dt=lt.clientY-u.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,X.style["will-change"]="all",e=function(){W("delayEnded",i,{evt:t}),Ft.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!h&&i.nativeDraggable&&(X.draggable=!0),i._triggerDragStart(t,r),Y({sortable:i,name:"choose",originalEvent:t}),N(X,s.chosenClass,!0))},s.ignore.split(",").forEach((function(t){L(X,t.trim(),Bt)})),b(a,"dragover",jt),b(a,"mousemove",jt),b(a,"touchmove",jt),b(a,"mouseup",i._onDrop),b(a,"touchend",i._onDrop),b(a,"touchcancel",i._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,X.draggable=!0),W("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!r||this.nativeDraggable&&(f||c))e();else{if(Ft.eventCanceled)return void this._onDrop();b(a,"mouseup",i._disableDelayedDrag),b(a,"touchend",i._disableDelayedDrag),b(a,"touchcancel",i._disableDelayedDrag),b(a,"mousemove",i._delayedDragTouchMoveHandler),b(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&b(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(e,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){X&&Bt(X),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._disableDelayedDrag),m(t,"touchend",this._disableDelayedDrag),m(t,"touchcancel",this._disableDelayedDrag),m(t,"mousemove",this._delayedDragTouchMoveHandler),m(t,"touchmove",this._delayedDragTouchMoveHandler),m(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||"touch"==t.pointerType&&t,!this.nativeDraggable||r?b(document,this.options.supportPointer?"pointermove":r?"touchmove":"mousemove",this._onTouchMove):(b(X,"dragend",this),b(K,"dragstart",this._onDragStart));try{document.selection?Ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,r){if(yt=!1,K&&X){W("dragStarted",this,{evt:r}),this.nativeDraggable&&b(document,"dragover",Gt);var n=this.options;!t&&N(X,n.dragClass,!1),N(X,n.ghostClass,!0),Ft.active=this,t&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(ct){this._lastX=ct.clientX,this._lastY=ct.clientY,Dt();for(var t=document.elementFromPoint(ct.clientX,ct.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ct.clientX,ct.clientY))!==r;)r=t;if(X.parentNode[V]._isOutsideThisEl(t),r)do{if(r[V]&&r[V]._onDragOver({clientX:ct.clientX,clientY:ct.clientY,target:t,rootEl:r})&&!this.options.dragoverBubble)break;t=r}while(r=r.parentNode);Mt()}},_onTouchMove:function(t){if(lt){var r=this.options,n=r.fallbackTolerance,e=r.fallbackOffset,i=t.touches?t.touches[0]:t,o=Q&&S(Q,!0),s=Q&&o&&o.a,a=Q&&o&&o.d,u=Rt&>&&P(gt),l=(i.clientX-lt.clientX+e.x)/(s||1)+(u?u[0]-At[0]:0)/(s||1),c=(i.clientY-lt.clientY+e.y)/(a||1)+(u?u[1]-At[1]:0)/(a||1);if(!Ft.active&&!yt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Q){o?(o.e+=l-(ft||0),o.f+=c-(ht||0)):o={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");A(Q,"webkitTransform",f),A(Q,"mozTransform",f),A(Q,"msTransform",f),A(Q,"transform",f),ft=l,ht=c,ct=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Q){var t=this.options.fallbackOnBody?document.body:K,r=R(X,!0,Rt,!0,t),n=this.options;if(Rt){for(gt=t;"static"===A(gt,"position")&&"none"===A(gt,"transform")&>!==document;)gt=gt.parentNode;gt!==document.body&>!==document.documentElement?(gt===document&&(gt=C()),r.top+=gt.scrollTop,r.left+=gt.scrollLeft):gt=C(),At=P(gt)}N(Q=X.cloneNode(!0),n.ghostClass,!1),N(Q,n.fallbackClass,!0),N(Q,n.dragClass,!0),A(Q,"transition",""),A(Q,"transform",""),A(Q,"box-sizing","border-box"),A(Q,"margin",0),A(Q,"top",r.top),A(Q,"left",r.left),A(Q,"width",r.width),A(Q,"height",r.height),A(Q,"opacity","0.8"),A(Q,"position",Rt?"absolute":"fixed"),A(Q,"zIndex","100000"),A(Q,"pointerEvents","none"),Ft.ghost=Q,t.appendChild(Q),A(Q,"transform-origin",pt/parseInt(Q.style.width)*100+"% "+dt/parseInt(Q.style.height)*100+"%")}},_onDragStart:function(t,r){var n=this,e=t.dataTransfer,i=n.options;W("dragStart",this,{evt:t}),Ft.eventCanceled?this._onDrop():(W("setupClone",this),Ft.eventCanceled||((rt=F(X)).draggable=!1,rt.style["will-change"]="",this._hideClone(),N(rt,this.options.chosenClass,!1),Ft.clone=rt),n.cloneId=Ht((function(){W("clone",n),Ft.eventCanceled||(n.options.removeCloneOnHide||K.insertBefore(rt,X),n._hideClone(),Y({sortable:n,name:"clone"}))})),!r&&N(X,i.dragClass,!0),r?(xt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(m(document,"mouseup",n._onDrop),m(document,"touchend",n._onDrop),m(document,"touchcancel",n._onDrop),e&&(e.effectAllowed="move",i.setData&&i.setData.call(n,e,X)),b(document,"drop",n),A(X,"transform","translateZ(0)")),yt=!0,n._dragStartId=Ht(n._dragStarted.bind(n,r,t)),b(document,"selectstart",n),vt=!0,p&&A(document.body,"user-select","none"))},_onDragOver:function(t){var r,n,e,i,o=this.el,a=t.target,u=this.options,l=u.group,c=Ft.active,f=at===l,h=u.sort,p=ut||c,d=this,v=!1;if(!St){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=x(a,u.draggable,o,!0),M("dragOver"),Ft.eventCanceled)return v;if(X.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||d._ignoreWhileAnimating===a)return F(!1);if(xt=!1,c&&!u.disabled&&(f?h||(e=!K.contains(X)):ut===this||(this.lastPutMode=at.checkPull(this,c,X,t))&&l.checkPut(this,c,X,t))){if(i="vertical"===this._getDirection(t,a),r=R(X),M("dragOverValid"),Ft.eventCanceled)return v;if(e)return Z=K,j(),this._hideClone(),M("revert"),Ft.eventCanceled||(J?K.insertBefore(X,J):K.appendChild(X)),F(!0);var E=_(o,u.draggable);if(!E||function(t,r,n){var e=R(_(n.el,n.options.draggable));return r?t.clientX>e.right+10||t.clientX<=e.right&&t.clientY>e.bottom&&t.clientX>=e.left:t.clientX>e.right&&t.clientY>e.top||t.clientX<=e.right&&t.clientY>e.bottom+10}(t,i,this)&&!E.animated){if(E===X)return F(!1);if(E&&o===t.target&&(a=E),a&&(n=R(a)),!1!==Ut(K,o,X,r,a,n,t,!!a))return j(),o.appendChild(X),Z=o,U(),F(!0)}else if(a.parentNode===o){n=R(a);var b,m,g,y=X.parentNode!==o,T=!function(t,r,n){var e=n?t.left:t.top,i=n?r.left:r.top;return e===i||(n?t.right:t.bottom)===(n?r.right:r.bottom)||e+(n?t.width:t.height)/2===i+(n?r.width:r.height)/2}(X.animated&&X.toRect||r,a.animated&&a.toRect||n,i),I=i?"top":"left",S=w(a,"top","top")||w(X,"top","top"),L=S?S.scrollTop:void 0;if(Et!==a&&(m=n[I],It=!1,Nt=!T&&u.invertSwap||y),0!==(b=function(t,r,n,e,i,o,s,a){var u=e?t.clientY:t.clientX,l=e?n.height:n.width,c=e?n.top:n.left,f=e?n.bottom:n.right,h=!1;if(!s)if(a&&mt<l*i){if(!It&&(1===bt?u>c+l*o/2:u<f-l*o/2)&&(It=!0),It)h=!0;else if(1===bt?u<c+mt:u>f-mt)return-bt}else if(u>c+l*(1-i)/2&&u<f-l*(1-i)/2)return function(t){return k(X)<k(t)?1:-1}(r);return(h=h||s)&&(u<c+l*o/2||u>f-l*o/2)?u>c+l/2?1:-1:0}(t,a,n,i,T?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,Nt,Et===a))){var C=k(X);do{g=Z.children[C-=b]}while(g&&("none"===A(g,"display")||g===Q))}if(0===b||g===a)return F(!1);Et=a,bt=b;var O=a.nextElementSibling,P=!1,D=Ut(K,o,X,r,a,n,t,P=1===b);if(!1!==D)return 1!==D&&-1!==D||(P=1===D),St=!0,setTimeout(Vt,30),j(),P&&!O?o.appendChild(X):a.parentNode.insertBefore(X,P?O:a),S&&G(S,0,L-S.scrollTop),Z=X.parentNode,void 0===m||Nt||(mt=Math.abs(m-R(a)[I])),U(),F(!0)}if(o.contains(X))return F(!1)}return!1}function M(u,l){W(u,d,s({evt:t,isOwner:f,axis:i?"vertical":"horizontal",revert:e,dragRect:r,targetRect:n,canSort:h,fromSortable:p,target:a,completed:F,onMove:function(n,e){return Ut(K,o,X,r,n,R(n),t,e)},changed:U},l))}function j(){M("dragOverAnimationCapture"),d.captureAnimationState(),d!==p&&p.captureAnimationState()}function F(r){return M("dragOverCompleted",{insertion:r}),r&&(f?c._hideClone():c._showClone(d),d!==p&&(N(X,ut?ut.options.ghostClass:c.options.ghostClass,!1),N(X,u.ghostClass,!0)),ut!==d&&d!==Ft.active?ut=d:d===Ft.active&&ut&&(ut=null),p===d&&(d._ignoreWhileAnimating=a),d.animateAll((function(){M("dragOverAnimationComplete"),d._ignoreWhileAnimating=null})),d!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===X&&!X.animated||a===o&&!a.animated)&&(Et=null),u.dragoverBubble||t.rootEl||a===document||(X.parentNode[V]._isOutsideThisEl(t.target),!r&&jt(t)),!u.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function U(){it=k(X),st=k(X,u.draggable),Y({sortable:d,name:"change",toEl:o,newIndex:it,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){m(document,"mousemove",this._onTouchMove),m(document,"touchmove",this._onTouchMove),m(document,"pointermove",this._onTouchMove),m(document,"dragover",jt),m(document,"mousemove",jt),m(document,"touchmove",jt)},_offUpEvents:function(){var t=this.el.ownerDocument;m(t,"mouseup",this._onDrop),m(t,"touchend",this._onDrop),m(t,"pointerup",this._onDrop),m(t,"touchcancel",this._onDrop),m(document,"selectstart",this)},_onDrop:function(t){var r=this.el,n=this.options;it=k(X),st=k(X,n.draggable),W("drop",this,{evt:t}),Z=X&&X.parentNode,it=k(X),st=k(X,n.draggable),Ft.eventCanceled||(yt=!1,Nt=!1,It=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),zt(this.cloneId),zt(this._dragStartId),this.nativeDraggable&&(m(document,"drop",this),m(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&A(document.body,"user-select",""),A(X,"transform",""),t&&(vt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),(K===Z||ut&&"clone"!==ut.lastPutMode)&&rt&&rt.parentNode&&rt.parentNode.removeChild(rt),X&&(this.nativeDraggable&&m(X,"dragend",this),Bt(X),X.style["will-change"]="",vt&&!yt&&N(X,ut?ut.options.ghostClass:this.options.ghostClass,!1),N(X,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:t}),K!==Z?(it>=0&&(Y({rootEl:Z,name:"add",toEl:Z,fromEl:K,originalEvent:t}),Y({sortable:this,name:"remove",toEl:Z,originalEvent:t}),Y({rootEl:Z,name:"sort",toEl:Z,fromEl:K,originalEvent:t}),Y({sortable:this,name:"sort",toEl:Z,originalEvent:t})),ut&&ut.save()):it!==et&&it>=0&&(Y({sortable:this,name:"update",toEl:Z,originalEvent:t}),Y({sortable:this,name:"sort",toEl:Z,originalEvent:t})),Ft.active&&(null!=it&&-1!==it||(it=et,st=ot),Y({sortable:this,name:"end",toEl:Z,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){W("nulling",this),K=X=Z=Q=J=rt=tt=nt=lt=ct=vt=it=st=et=ot=Et=bt=ut=at=Ft.dragged=Ft.ghost=Ft.clone=Ft.active=null,Lt.forEach((function(t){t.checked=!0})),Lt.length=ft=ht=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":X&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,r=[],n=this.el.children,e=0,i=n.length,o=this.options;e<i;e++)x(t=n[e],o.draggable,this.el,!1)&&r.push(t.getAttribute(o.dataIdAttr)||qt(t));return r},sort:function(t){var r={},n=this.el;this.toArray().forEach((function(t,e){var i=n.children[e];x(i,this.options.draggable,n,!1)&&(r[t]=i)}),this),t.forEach((function(t){r[t]&&(n.removeChild(r[t]),n.appendChild(r[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return x(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var n=this.options;if(void 0===r)return n[t];var e=z.modifyOption(this,t,r);n[t]=void 0!==e?e:r,"group"===t&&Pt(n)},destroy:function(){W("destroy",this);var t=this.el;t[V]=null,m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart),m(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Tt.splice(Tt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!nt){if(W("hideClone",this),Ft.eventCanceled)return;A(rt,"display","none"),this.options.removeCloneOnHide&&rt.parentNode&&rt.parentNode.removeChild(rt),nt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(nt){if(W("showClone",this),Ft.eventCanceled)return;K.contains(X)&&!this.options.group.revertClone?K.insertBefore(rt,X):J?K.insertBefore(rt,J):K.appendChild(rt),this.options.group.revertClone&&this.animate(X,rt),A(rt,"display",""),nt=!1}}else this._hideClone()}},Ct&&b(document,"touchmove",(function(t){(Ft.active||yt)&&t.cancelable&&t.preventDefault()})),Ft.utils={on:b,off:m,css:A,find:L,is:function(t,r){return!!x(t,r,t,!1)},extend:function(t,r){if(t&&r)for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n]);return t},throttle:j,closest:x,toggleClass:N,clone:F,index:k,nextTick:Ht,cancelNextTick:zt,detectDirection:kt,getChild:O},Ft.get=function(t){return t[V]},Ft.mount=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ft.utils=s({},Ft.utils,t.utils)),z.mount(t)}))},Ft.create=function(t,r){return new Ft(t,r)},Ft.version="1.10.2";var $t,Wt,Yt,Xt,Zt,Qt,Kt=[],Jt=!1;function tr(){Kt.forEach((function(t){clearInterval(t.pid)})),Kt=[]}function rr(){clearInterval(Qt)}var nr,er=j((function(t,r,n,e){if(r.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=r.scrollSensitivity,u=r.scrollSpeed,l=C(),c=!1;Wt!==n&&(Wt=n,tr(),i=r.scrollFn,!0===($t=r.scroll)&&($t=D(n,!0)));var f=0,h=$t;do{var p=h,d=R(p),v=d.top,E=d.bottom,b=d.left,m=d.right,g=d.width,y=d.height,x=void 0,T=void 0,I=p.scrollWidth,N=p.scrollHeight,S=A(p),L=p.scrollLeft,w=p.scrollTop;p===l?(x=g<I&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),T=y<N&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(x=g<I&&("auto"===S.overflowX||"scroll"===S.overflowX),T=y<N&&("auto"===S.overflowY||"scroll"===S.overflowY));var O=x&&(Math.abs(m-o)<=a&&L+g<I)-(Math.abs(b-o)<=a&&!!L),_=T&&(Math.abs(E-s)<=a&&w+y<N)-(Math.abs(v-s)<=a&&!!w);if(!Kt[f])for(var k=0;k<=f;k++)Kt[k]||(Kt[k]={});Kt[f].vx==O&&Kt[f].vy==_&&Kt[f].el===p||(Kt[f].el=p,Kt[f].vx=O,Kt[f].vy=_,clearInterval(Kt[f].pid),0==O&&0==_||(c=!0,Kt[f].pid=setInterval(function(){e&&0===this.layer&&Ft.active._onTouchMove(Zt);var r=Kt[this.layer].vy?Kt[this.layer].vy*u:0,n=Kt[this.layer].vx?Kt[this.layer].vx*u:0;"function"==typeof i&&"continue"!==i.call(Ft.dragged.parentNode[V],n,r,t,Zt,Kt[this.layer].el)||G(Kt[this.layer].el,n,r)}.bind({layer:f}),24))),f++}while(r.bubbleScroll&&h!==l&&(h=D(h,!1)));Jt=c}}),30),ir=function(t){var r=t.originalEvent,n=t.putSortable,e=t.dragEl,i=t.dispatchSortableEvent,o=t.unhideGhostForTarget;if(r){var s=n||t.activeSortable;(0,t.hideGhostForTarget)();var a=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,u=document.elementFromPoint(a.clientX,a.clientY);o(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:e,putSortable:n}))}};function or(){}function sr(){}function ar(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){nr=t.dragEl},dragOverValid:function(t){var r=t.completed,n=t.target,e=t.changed,i=t.cancel;if(t.activeSortable.options.swap){var o=this.options;if(n&&n!==this.sortable.el){var s=nr;!1!==(0,t.onMove)(n)?(N(n,o.swapClass,!0),nr=n):nr=null,s&&s!==nr&&N(s,o.swapClass,!1)}e(),r(!0),i()}},drop:function(t){var r=t.activeSortable,n=t.putSortable,e=t.dragEl,i=n||this.sortable,o=this.options;nr&&N(nr,o.swapClass,!1),nr&&(o.swap||n&&n.options.swap)&&e!==nr&&(i.captureAnimationState(),i!==r&&r.captureAnimationState(),function(t,r){var n,e,i=t.parentNode,o=r.parentNode;i&&o&&!i.isEqualNode(r)&&!o.isEqualNode(t)&&(n=k(t),e=k(r),i.isEqualNode(o)&&n<e&&e++,i.insertBefore(r,i.children[n]),o.insertBefore(t,o.children[e]))}(e,nr),i.animateAll(),i!==r&&r.animateAll())},nulling:function(){nr=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:nr}}})}or.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var r=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var e=O(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(r,e):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:ir},o(or,{pluginName:"revertOnSpill"}),sr.prototype={onSpill:function(t){var r=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),n.animateAll()},drop:ir},o(sr,{pluginName:"removeOnSpill"});var ur,lr,cr,fr,hr,pr=[],dr=[],vr=!1,Er=!1,br=!1;function mr(){function t(t){for(var r in this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));t.options.supportPointer?b(document,"pointerup",this._deselectMultiDrag):(b(document,"mouseup",this._deselectMultiDrag),b(document,"touchend",this._deselectMultiDrag)),b(document,"keydown",this._checkKeyDown),b(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,n){var e="";pr.length&&lr===t?pr.forEach((function(t,r){e+=(r?", ":"")+t.textContent})):e=n.textContent,r.setData("Text",e)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){cr=t.dragEl},delayEnded:function(){this.isMultiDrag=~pr.indexOf(cr)},setupClone:function(t){var r=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var e=0;e<pr.length;e++)dr.push(F(pr[e])),dr[e].sortableIndex=pr[e].sortableIndex,dr[e].draggable=!1,dr[e].style["will-change"]="",N(dr[e],this.options.selectedClass,!1),pr[e]===cr&&N(dr[e],this.options.chosenClass,!1);r._hideClone(),n()}},clone:function(t){var r=t.dispatchSortableEvent,n=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pr.length&&lr===t.sortable&&(gr(!0,t.rootEl),r("clone"),n()))},showClone:function(t){var r=t.cloneNowShown,n=t.cancel;this.isMultiDrag&&(gr(!1,t.rootEl),dr.forEach((function(t){A(t,"display","")})),r(),hr=!1,n())},hideClone:function(t){var r=this,n=t.cloneNowHidden,e=t.cancel;this.isMultiDrag&&(dr.forEach((function(t){A(t,"display","none"),r.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)})),n(),hr=!0,e())},dragStartGlobal:function(){!this.isMultiDrag&&lr&&lr.multiDrag._deselectMultiDrag(),pr.forEach((function(t){t.sortableIndex=k(t)})),pr=pr.sort((function(t,r){return t.sortableIndex-r.sortableIndex})),br=!0},dragStarted:function(t){var r=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){pr.forEach((function(t){t!==cr&&A(t,"position","absolute")}));var e=R(cr,!1,!0,!0);pr.forEach((function(t){t!==cr&&U(t,e)})),Er=!0,vr=!0}n.animateAll((function(){Er=!1,vr=!1,r.options.animation&&pr.forEach((function(t){B(t)})),r.options.sort&&yr()}))}},dragOver:function(t){var r=t.completed,n=t.cancel;Er&&~pr.indexOf(t.target)&&(r(!1),n())},revert:function(t){var r=t.fromSortable,n=t.rootEl,e=t.sortable,i=t.dragRect;pr.length>1&&(pr.forEach((function(t){e.addAnimationState({target:t,rect:Er?R(t):i}),B(t),t.fromRect=i,r.removeAnimationState(t)})),Er=!1,function(t,r){pr.forEach((function(n,e){var i=r.children[n.sortableIndex+(t?Number(e):0)];i?r.insertBefore(n,i):r.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var r=t.sortable,n=t.isOwner,e=t.activeSortable,i=t.parentEl,o=t.putSortable,s=this.options;if(t.insertion){if(n&&e._hideClone(),vr=!1,s.animation&&pr.length>1&&(Er||!n&&!e.options.sort&&!o)){var a=R(cr,!1,!0,!0);pr.forEach((function(t){t!==cr&&(U(t,a),i.appendChild(t))})),Er=!0}if(!n)if(Er||yr(),pr.length>1){var u=hr;e._showClone(r),e.options.animation&&!hr&&u&&dr.forEach((function(t){e.addAnimationState({target:t,rect:fr}),t.fromRect=fr,t.thisAnimationDuration=null}))}else e._showClone(r)}},dragOverAnimationCapture:function(t){var r=t.dragRect,n=t.isOwner,e=t.activeSortable;if(pr.forEach((function(t){t.thisAnimationDuration=null})),e.options.animation&&!n&&e.multiDrag.isMultiDrag){fr=o({},r);var i=S(cr,!0);fr.top-=i.f,fr.left-=i.e}},dragOverAnimationComplete:function(){Er&&(Er=!1,yr())},drop:function(t){var r=t.originalEvent,n=t.rootEl,e=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,s=t.oldIndex,a=t.putSortable,u=a||this.sortable;if(r){var l=this.options,c=e.children;if(!br)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),N(cr,l.selectedClass,!~pr.indexOf(cr)),~pr.indexOf(cr))pr.splice(pr.indexOf(cr),1),ur=null,$({sortable:i,rootEl:n,name:"deselect",targetEl:cr,originalEvt:r});else{if(pr.push(cr),$({sortable:i,rootEl:n,name:"select",targetEl:cr,originalEvt:r}),r.shiftKey&&ur&&i.el.contains(ur)){var f,h,p=k(ur),d=k(cr);if(~p&&~d&&p!==d)for(d>p?(h=p,f=d):(h=d,f=p+1);h<f;h++)~pr.indexOf(c[h])||(N(c[h],l.selectedClass,!0),pr.push(c[h]),$({sortable:i,rootEl:n,name:"select",targetEl:c[h],originalEvt:r}))}else ur=cr;lr=u}if(br&&this.isMultiDrag){if((e[V].options.sort||e!==n)&&pr.length>1){var v=R(cr),E=k(cr,":not(."+this.options.selectedClass+")");if(!vr&&l.animation&&(cr.thisAnimationDuration=null),u.captureAnimationState(),!vr&&(l.animation&&(cr.fromRect=v,pr.forEach((function(t){if(t.thisAnimationDuration=null,t!==cr){var r=Er?R(t):v;t.fromRect=r,u.addAnimationState({target:t,rect:r})}}))),yr(),pr.forEach((function(t){c[E]?e.insertBefore(t,c[E]):e.appendChild(t),E++})),s===k(cr))){var b=!1;pr.forEach((function(t){t.sortableIndex===k(t)||(b=!0)})),b&&o("update")}pr.forEach((function(t){B(t)})),u.animateAll()}lr=u}(n===e||a&&"clone"!==a.lastPutMode)&&dr.forEach((function(t){t.parentNode&&t.parentNode.removeChild(t)}))}},nullingGlobal:function(){this.isMultiDrag=br=!1,dr.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(t){if(!(void 0!==br&&br||lr!==this.sortable||t&&x(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;pr.length;){var r=pr[0];N(r,this.options.selectedClass,!1),pr.shift(),$({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var r=t.parentNode[V];r&&r.options.multiDrag&&!~pr.indexOf(t)&&(lr&&lr!==r&&(lr.multiDrag._deselectMultiDrag(),lr=r),N(t,r.options.selectedClass,!0),pr.push(t))},deselect:function(t){var r=t.parentNode[V],n=pr.indexOf(t);r&&r.options.multiDrag&&~n&&(N(t,r.options.selectedClass,!1),pr.splice(n,1))}},eventProperties:function(){var t=this,r=[],n=[];return pr.forEach((function(e){var i;r.push({multiDragElement:e,index:e.sortableIndex}),i=Er&&e!==cr?-1:Er?k(e,":not(."+t.options.selectedClass+")"):k(e),n.push({multiDragElement:e,index:i})})),{items:u(pr),clones:[].concat(dr),oldIndicies:r,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function gr(t,r){dr.forEach((function(n,e){var i=r.children[n.sortableIndex+(t?Number(e):0)];i?r.insertBefore(n,i):r.appendChild(n)}))}function yr(){pr.forEach((function(t){t!==cr&&t.parentNode&&t.parentNode.removeChild(t)}))}Ft.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):b(document,this.options.supportPointer?"pointermove":r.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;this.options.dragOverBubble||r.rootEl||this._handleAutoScroll(r)},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)),rr(),tr(),clearTimeout(T),T=void 0},nulling:function(){Zt=Wt=$t=Jt=Qt=Yt=Xt=null,Kt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var n=this,e=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(e,i);if(Zt=t,r||f||c||p){er(t,this.options,o,r);var s=D(o,!0);!Jt||Qt&&e===Yt&&i===Xt||(Qt&&rr(),Qt=setInterval((function(){var o=D(document.elementFromPoint(e,i),!0);o!==s&&(s=o,tr()),er(t,n.options,o,r)}),10),Yt=e,Xt=i)}else{if(!this.options.bubbleScroll||D(o,!0)===C())return void tr();er(t,this.options,D(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Ft.mount(sr,or),r.default=Ft},function(){},function(){},function(){},function(t,r,n){n.r(r),n.d(r,"Yasgui",(function(){return mr})),n.d(r,"getRandomId",(function(){return gr}));var e={};n.r(e),n.d(e,"appendArgsToUrl",(function(){return Gt})),n.d(e,"createShareLink",(function(){return Ft})),n.d(e,"createShareConfig",(function(){return Ut})),n.d(e,"getConfigFromUrl",(function(){return Bt})),n.d(e,"queryCatalogConfigToTabConfig",(function(){return Vt}));var i=n(4),o=n.n(i),s=n(5),a=n.n(s),u=n(16),l=n.n(u),c=n(41),f=n.n(c),h=n(42),p=n.n(h),d=n(21),v=n.n(d),E=n(54),b=n(170),m=n(52),g=n(10),y=n(13),x=n(96),T=Math.max,I=function(t,r,n){var e=Object(t);if(!Object(g.a)(t)){var i=Object(m.a)(r,3);t=Object(y.a)(t),r=function(t){return i(e[t],t,e)}}var o=function(t,r,n){var e=null==t?0:t.length;if(!e)return-1;var i=null==n?0:Object(x.a)(n);return i<0&&(i=T(e+i,0)),function(t,r,n,e){for(var i=t.length,o=n+(e?1:-1);e?o--:++o<i;)if(r(t[o],o,t))return o;return-1}(t,Object(m.a)(r,3),i)}(t,r,n);return o>-1?e[i?t[o]:o]:void 0},N=n(59),A=function(t,r){return Object(N.a)(t,r)},S=n(62),L=n(82),C=n(0),R=function(){function t(r){o()(this,t),this.yasgui=r,this.storageId=this.yasgui.getStorageId(this.yasgui.config.persistenceLabelConfig),this.storage=new C.a("triply"),this.fromStorage(),this.registerListeners()}return a()(t,[{key:"setActive",value:function(t){this.persistedJson.active=t,this.toStorage()}},{key:"getActiveId",value:function(){return this.persistedJson.active}},{key:"addToTabList",value:function(t,r){void 0!==r&&this.persistedJson.tabs.length>r?this.persistedJson.tabs.splice(r,0,t):this.persistedJson.tabs.push(t),this.toStorage()}},{key:"setTabOrder",value:function(t){this.persistedJson.tabs=t,this.toStorage()}},{key:"getEndpointHistory",value:function(){return this.persistedJson.endpointHistory}},{key:"retrieveLastClosedTab",value:function(){var t=this.persistedJson.lastClosedTab;return void 0===t||(this.persistedJson.lastClosedTab=void 0),t}},{key:"hasLastClosedTab",value:function(){return!!this.persistedJson.lastClosedTab}},{key:"deleteTab",value:function(t){var r=this.persistedJson.tabs.indexOf(t);r>-1&&this.persistedJson.tabs.splice(r,1),this.tabIsActive(t)&&(this.persistedJson.active=void 0),this.persistedJson.lastClosedTab={index:r,tab:this.persistedJson.tabConfig[t]},delete this.persistedJson.tabConfig[t],this.toStorage()}},{key:"registerListeners",value:function(){var t=this;this.yasgui.on("tabChange",(function(r,n){t.persistedJson.tabConfig[n.getId()]=n.getPersistedJson(),t.toStorage()})),this.yasgui.on("endpointHistoryChange",(function(r,n){t.persistedJson.endpointHistory=n,t.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(){console.warn("Localstorage quota exceeded. Clearing all YASGUI configurations"),t.clear()}},{key:"getTabs",value:function(){return this.persistedJson.tabs}},{key:"getTab",value:function(t){return this.persistedJson.tabConfig[t]}},{key:"setTab",value:function(t,r){this.persistedJson.tabs.push(t),this.persistedJson.tabConfig[t]=r,this.persistedJson.active=t}},{key:"tabIsActive",value:function(t){return t===this.persistedJson.active}},{key:"currentId",value:function(){return this.persistedJson.active}}],[{key:"clear",value:function(){new C.a("triply").removeNamespace()}}]),t}(),w=n(19),O=n.n(w),_=n(36),k=n.n(_),P=n(71),D=n.n(P),M=(n(176),n(60)),j=n(20),G=n(84),F=function(t){return function(r){var n=Object(j.a)(r);return"[object Map]"==n?Object(G.a)(r):"[object Set]"==n?function(t){var r=-1,n=Array(t.size);return t.forEach((function(t){n[++r]=[t,t]})),n}(r):function(t,r){return Object(M.a)(r,(function(r){return[r,t[r]]}))}(r,t(r))}}(y.a),U=function(t){for(var r=-1,n=null==t?0:t.length,e={};++r<n;){var i=t[r];e[i[0]]=i[1]}return e};function B(t,r){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return V(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function V(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var q=[{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"}],H=[{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"}],z=function(){function t(r,n,e){o()(this,t),this.tab=r,this.rootEl=n,this.isOpen=!1,this.init(e)}return a()(t,[{key:"init",value:function(t){var r=this;this.settingsButton=document.createElement("button"),this.toggleAriaSettings(),this.settingsButton.appendChild(Object(C.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#">\n <metadata>\n <rdf:RDF>\n <cc:Work rdf:about="">\n <dc:format>image/svg+xml</dc:format>\n <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>\n <dc:title>Settings</dc:title>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <title>Settings</title>\n <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"/>\n </svg>')),Object(C.b)(this.settingsButton,"tabContextButton"),t.appendChild(this.settingsButton),this.settingsButton.onclick=function(t){r.open(t)},this.menuElement=document.createElement("div"),Object(C.b)(this.menuElement,"tabMenu"),t.appendChild(this.menuElement),this.menuElement.onclick=function(t){return t.stopImmediatePropagation(),!1},this.drawBody()}},{key:"updateBody",value:function(){var t=this.tab.getRequestConfig();"function"!=typeof t.method&&this.setRequestMethod(t.method),this.setAcceptHeader_select(t.acceptHeaderSelect),this.setAcceptHeader_graph(t.acceptHeaderGraph),"function"!=typeof t.args&&this.setArguments(k()(t.args)||[]),"function"!=typeof t.headers&&this.setHeaders(F(t.headers).map((function(t){var r=D()(t,2);return{name:r[0],value:r[1]}}))),"function"!=typeof t.defaultGraphs&&this.setDefaultGraphs(k()(t.defaultGraphs)||[]),"function"!=typeof t.namedGraphs&&this.setNamedGraphs(k()(t.namedGraphs)||[])}},{key:"open",value:function(t){var r=this;this.isOpen||(this.updateBody(),this.isOpen=!0,Object(C.b)(this.menuElement,"open"),this.toggleAriaSettings(),document.addEventListener("click",(function t(n){for(var e=n.target;window.MSInputMethodContext&&document.documentMode&&e.parentElement;){if(-1!==e.className.indexOf("tabMenu"))return!1;e=e.parentElement}return r.close(n),document.removeEventListener("click",t,!0),!1}),{once:!0}),t.stopImmediatePropagation())}},{key:"close",value:function(){this.isOpen&&(this.isOpen=!1,Object(C.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 t=this,r=document.createElement("div");Object(C.b)(r,"requestConfigWrapper"),Y("Request method",r);var n=document.createElement("button");Object(C.b)(n,"selectorButton"),n.innerText="GET";var e=document.createElement("button");Object(C.b)(e,"selectorButton"),e.innerText="POST",Object(C.b)("GET"===this.tab.getRequestConfig().method?n:e,"selected"),this.setRequestMethod=function(t){"GET"===t?(Object(C.b)(n,"selected"),Object(C.g)(e,"selected")):"POST"===t&&(Object(C.b)(e,"selected"),Object(C.g)(n,"selected"))},n.onclick=function(){t.tab.setRequestConfig({method:"GET"}),t.setRequestMethod("GET")},e.onclick=function(){t.tab.setRequestConfig({method:"POST"}),t.setRequestMethod("POST")},r.appendChild(n),r.appendChild(e),this.menuElement.appendChild(r)}},{key:"drawAcceptSelector",value:function(){var t=this,r=document.createElement("div");Object(C.b)(r,"requestConfigWrapper","acceptWrapper"),Y("Accept Headers",r),this.setAcceptHeader_select=$(q,(function(r){t.tab.setRequestConfig({acceptHeaderSelect:r.target.value})}),"Ask / Select",r),this.setAcceptHeader_graph=$(H,(function(r){t.tab.setRequestConfig({acceptHeaderGraph:r.target.value})}),"Construct / Describe",r),this.menuElement.appendChild(r)}},{key:"drawArgumentsInput",value:function(){var t=this,r=function(){var r=[];n.querySelectorAll(".textRow").forEach((function(t){var n=D()(t.children,2),e=n[0],i=n[1];e instanceof HTMLInputElement&&i instanceof HTMLInputElement&&e.value.length&&r.push({name:e.value,value:i.value})})),t.tab.setRequestConfig({args:r})},n=document.createElement("div");Object(C.b)(n,"requestConfigWrapper","textSetting"),Y("Arguments",n),this.menuElement.appendChild(n),this.setArguments=function(e){n.querySelectorAll(".textRow").forEach((function(t){n.removeChild(t)}));for(var i=function(i){Z((function(){e.splice(i,1),t.tab.setRequestConfig({args:e}),t.setArguments(e)}),tt(n,i,e,r))},o=0;o<e.length;o++)i(o);J(n,e,r)}}},{key:"drawHeaderInput",value:function(){var t=this,r=function(){var r={};n.querySelectorAll(".textRow").forEach((function(t){var n=D()(t.children,2),e=n[0],i=n[1];e instanceof HTMLInputElement&&i instanceof HTMLInputElement&&e.value.length&&(r[e.value]=i.value)})),t.tab.setRequestConfig({headers:r})},n=document.createElement("div");Object(C.b)(n,"requestConfigWrapper","textSetting");var e=Y("Header Arguments");n.appendChild(e),this.menuElement.appendChild(n),this.setHeaders=function(e){n.querySelectorAll(".textRow").forEach((function(t){n.removeChild(t)}));for(var i=function(i){Z((function(){e.splice(i,1),t.tab.setRequestConfig({headers:U(e.map((function(t){return[t.name,t.value]})))}),t.setHeaders(e)}),tt(n,i,e,r))},o=0;o<e.length;o++)i(o);J(n,e,r)}}},{key:"drawDefaultGraphInput",value:function(){var t=this,r=document.createElement("div");Object(C.b)(r,"requestConfigWrapper","textSetting");var n=Y("Default Graphs");r.appendChild(n),this.menuElement.appendChild(r);var e=function(){var n=[];r.querySelectorAll(".graphInput").forEach((function(t){var r=D()(t.children,1)[0];r instanceof HTMLInputElement&&r.value.length&&n.push(r.value)})),t.tab.setRequestConfig({defaultGraphs:n})};this.setDefaultGraphs=function(t){r.querySelectorAll(".graphInput").forEach((function(t){r.removeChild(t)}));for(var n=function(n){Z((function(){return t[n]=void 0}),K(r,n,t,e))},i=0;i<t.length;i++)n(i);Q(r,t,e)}}},{key:"drawNamedGraphInput",value:function(){var t=this,r=document.createElement("div");Object(C.b)(r,"requestConfigWrapper","textSetting");var n=Y("Named Graphs");r.appendChild(n),this.menuElement.appendChild(r);var e=function(){var n=[];r.querySelectorAll(".graphInput").forEach((function(t){var r=D()(t.children,1)[0];r instanceof HTMLInputElement&&r.value.length&&n.push(r.value)})),t.tab.setRequestConfig({namedGraphs:n})};this.setNamedGraphs=function(t){r.querySelectorAll(".graphInput").forEach((function(t){r.removeChild(t)}));for(var n=function(n){Z((function(){return t[n]=void 0}),K(r,n,t,e))},i=0;i<t.length;i++)n(i);Q(r,t,e)}}},{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()}}]),t}();function $(t,r,n,e){var i=document.createElement("div");Object(C.b)(i,"selector");var o=Y(n,i);Object(C.b)(o,"selectorLabel");var s=document.createElement("select");s.onchange=r,i.appendChild(s);var a=t.map((function(t){return function(t,r){var n=document.createElement("option");return n.textContent=t.key,n.value=t.value,r.appendChild(n),n}(t,s)}));return e.appendChild(i),function(t){if("string"==typeof t){var r,n=B(a);try{for(n.s();!(r=n.n()).done;){var e=r.value;e.selected=e.value===t}}catch(t){n.e(t)}finally{n.f()}}}}function W(t){var r,n=[],e=B(t.getElementsByTagName("input"));try{for(e.s();!(r=e.n()).done;)n.push(r.value.value)}catch(t){e.e(t)}finally{e.f()}return n}function Y(t,r){var n=document.createElement("label");return Object(C.b)(n,"label"),n.innerText=t,r&&r.appendChild(n),n}function X(t,r){var n=document.createElement("input");return n.type="text",n.value=t||"",r&&r.appendChild(n),n}function Z(t,r){var n=document.createElement("button");return n.textContent="X",Object(C.b)(n,"removeButton"),r&&r.appendChild(n),n.onclick=function(r){var n;t(),null===(n=r.target.parentElement)||void 0===n||n.remove()},n}function Q(t,r,n){var e=t.querySelector(".graphInput:last-of-type");if(!e||""!==W(e)[0]||0!==e.getElementsByTagName("button").length){var i=r.length;K(t,i,r,n),e&&0===e.getElementsByTagName("button").length&&Z((function(){return r[i-1]=void 0}),e)}}function K(t,r,n,e){var i=document.createElement("div");return Object(C.b)(i,"graphInput"),X(n[r]||"",i).onkeyup=function(i){var o=i.target;n[r]?n[r]=o.value:n.push(o.value),Q(t,n,e)},i.onblur=e,t.appendChild(i),i}function J(t,r,n){var e=t.querySelector(".textRow:last-of-type");if(!e||0!==W(e).filter((function(t){return t})).length){var i=r.length;tt(t,i,r,n),e&&0===e.getElementsByTagName("button").length&&Z((function(){return r[i-1]=void 0}),e)}}function tt(t,r,n,e){var i=document.createElement("div");Object(C.b)(i,"textRow");var o=n[r],s=X(o?o.name:"",i),a=X(o?o.value:"",i);return s.onkeyup=function(i){var o=n[r];o?o.name=i.target.value:n.push({name:i.target.value,value:""}),J(t,n,e)},s.onblur=e,a.onkeyup=function(i){var o=n[r];o?o.value=i.target.value:n.push({value:i.target.value,name:""}),J(t,n,e)},a.onblur=e,t.appendChild(i),i}var rt=n(12),nt=n(87),et=n(85),it=Object(et.a)((function(t,r,n,e){Object(nt.a)(t,r,n,e)})),ot=n(86),st=n(66),at=n(25),ut=Object.prototype.toString,lt=function(t,r){return function(n,e){return function(t,r,n,e){return Object(st.a)(t,(function(t,i,o){r(e,n(t),i,o)})),e}(n,t,r(e),{})}}((function(t,r,n){null!=r&&"function"!=typeof r.toString&&(r=ut.call(r)),t[r]=n}),Object(ot.a)(at.a)),ct=n(175),ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pt=n(27),dt="\\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",vt="["+dt+"]",Et="\\d+",bt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+dt+Et+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",gt="(?:\\ud83c[\\udde6-\\uddff]){2}",yt="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Tt="(?:"+bt+"|"+mt+")",It="(?:"+xt+"|"+mt+")",Nt="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",At="[\\ufe0e\\ufe0f]?"+Nt+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",gt,yt].join("|")+")[\\ufe0e\\ufe0f]?"+Nt+")*",St="(?:"+["[\\u2700-\\u27bf]",gt,yt].join("|")+")"+At,Lt=RegExp([xt+"?"+bt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[vt,xt,"$"].join("|")+")",It+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[vt,xt+Tt,"$"].join("|")+")",xt+"?"+Tt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",xt+"+(?:['’](?: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_])",Et,St].join("|"),"g"),Ct=n(64),Rt=Object(Ct.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"}),wt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),_t=n(49),kt=n.n(_t);function Pt(t,r){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return Dt(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dt(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){n&&(t=n);var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Dt(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var Mt=n(177),jt=function(t){var r=!1;t||(t=window.location.href,r=!0);var n=new Mt(t);return n.anchor().length>0&&(n.query(n.anchor()),r&&(window.location.hash="")),n};function Gt(t,r){var n=new Mt(t);for(var e in r){var i=r[e];if(Array.isArray(i)){var o,s=Pt(i);try{for(s.s();!(o=s.n()).done;)n.addQueryParam(e,o.value)}catch(t){s.e(t)}finally{s.f()}}else n.addQueryParam(e,i)}return n.toString()}function Ft(t,r){var n,e=new Mt(t),i=new Mt,o=Ut(r);for(n in o)o.hasOwnProperty(n)&&("namedGraphs"===n?o.namedGraphs.forEach((function(t){return i.addQueryParam("namedGraph",t)})):"defaultGraphs"===n?o.defaultGraphs.forEach((function(t){return i.addQueryParam("defaultGraph",t)})):"args"===n?Object(C.e)(o.args,r.yasgui).forEach((function(t){return i.addQueryParam(t.name,t.value)})):"object"===kt()(o[n])?o[n]&&i.addQueryParam(n,JSON.stringify(o[n])):o[n]&&i.addQueryParam(n,o[n]));return jt(t).queryPairs.forEach((function(t){i.hasQueryParam(t[0])||i.addQueryParam(t[0],t[1])})),e.anchor(i.query().substr(1)),e.toString()}function Ut(t){var r=t.yasgui,n=t.getRequestConfig(),e=t.getPersistedJson().yasr.settings;return{query:t.getQuery(),endpoint:t.getEndpoint(),requestMethod:Object(C.e)(n.method,r),tabTitle:t.getName(),headers:Object(C.e)(n.headers,r),contentTypeConstruct:Object(C.e)(n.acceptHeaderGraph,r),contentTypeSelect:Object(C.e)(n.acceptHeaderSelect,r),args:Object(C.e)(n.args,r),namedGraphs:Object(C.e)(n.namedGraphs,r),defaultGraphs:Object(C.e)(n.defaultGraphs,r),outputFormat:e.selectedPlugin,outputSettings:e.pluginsConfig&&e.selectedPlugin?e.pluginsConfig[e.selectedPlugin]:void 0}}function Bt(t,r){var n,e=t,i=jt(r),o=!1;if(i.queryPairs.forEach((function(t){var r=D()(t,2),i=r[0],s=r[1];"query"===i?(o=!0,e.yasqe.value=s):"outputFormat"===i&&s.length?S.default.plugins[s]?e.yasr.settings.selectedPlugin=s:console.warn('Output format plugin "'.concat(s,'" not found')):"outputSettings"==i?n=JSON.parse(s):"contentTypeConstruct"==i?e.requestConfig.acceptHeaderGraph=s:"contentTypeSelect"==i?e.requestConfig.acceptHeaderSelect=s:"endpoint"==i?e.requestConfig.endpoint=s:"requestMethod"==i?e.requestConfig.method=s:"tabTitle"==i?e.name=s:"namedGraph"==i?(Array.isArray(e.requestConfig.namedGraphs)||(e.requestConfig.namedGraphs=[]),e.requestConfig.namedGraphs.push(s)):"defaultGraph"==i?(Array.isArray(e.requestConfig.defaultGraphs)||(e.requestConfig.defaultGraphs=[]),e.requestConfig.defaultGraphs.push(s)):"headers"==i?(e.requestConfig.headers||(e.requestConfig.headers={}),e.requestConfig.headers=JSON.parse(s)):(e.requestConfig.args||(e.requestConfig.args=[]),e.requestConfig.args.push({name:i,value:s}))})),n&&e.yasr.settings.selectedPlugin&&e.yasr.settings.pluginsConfig&&(e.yasr.settings.pluginsConfig[e.yasr.settings.selectedPlugin]=n),o)return e}function Vt(t,r){var n=r||cr.getDefaults();return t.service&&(n.requestConfig.endpoint=t.service),t.requestConfig&&(t.requestConfig.payload&&(t.requestConfig.payload.query&&(n.yasqe.value=t.requestConfig.payload.query),t.requestConfig.payload["default-graph-uri"]&&(n.requestConfig.defaultGraphs=Array.isArray(t.requestConfig.payload["default-graph-uri"])?t.requestConfig.payload["default-graph-uri"]:[t.requestConfig.payload["default-graph-uri"]]),t.requestConfig.payload["named-graph-uri"]&&(n.requestConfig.namedGraphs=Array.isArray(t.requestConfig.payload["named-graph-uri"])?t.requestConfig.payload["named-graph-uri"]:[t.requestConfig.payload["named-graph-uri"]])),t.requestConfig.headers&&(n.requestConfig.headers=t.requestConfig.headers)),t.renderConfig&&(t.renderConfig.output&&(S.default.plugins[t.renderConfig.output]?n.yasr.settings.selectedPlugin=t.renderConfig.output:console.warn('Output format plugin "'.concat(t.renderConfig.output,'" not found'))),t.renderConfig.settings&&(S.default.plugins[t.renderConfig.output]&&n.yasr.settings.pluginsConfig?n.yasr.settings.pluginsConfig[t.renderConfig.output]=t.renderConfig.settings:console.warn('Output format plugin "'.concat(t.renderConfig.output,'" not found, cannot apply settings')))),t.name&&(n.name=t.name),n}var qt=n(172),Ht=n.n(qt),zt=n(55),$t=n(67),Wt=n(53),Yt=n(37),Xt=n(2),Zt=n(24),Qt=function(t,r,n,e){if(!Object(Xt.a)(t))return t;for(var i=-1,o=(r=Object(Wt.a)(r,t)).length,s=o-1,a=t;null!=a&&++i<o;){var u=Object(Zt.a)(r[i]),l=n;if(i!=s){var c=a[u];void 0===(l=e?e(c,u,a):void 0)&&(l=Object(Xt.a)(c)?c:Object(Yt.a)(r[i+1])?[]:{})}Object($t.a)(a,u,l),a=a[u]}return t},Kt=n(88),Jt=n(97),tr=function(t){return null!=t&&t.length?Object(Jt.a)(t,1):[]},rr=n(91),nr=n(89),er=function(t){return Object(nr.a)(Object(rr.a)(t,void 0,tr),t+"")}((function(t,r){return null==t?{}:function(t,r){return function(t,r,n){for(var e=-1,i=r.length,o={};++e<i;){var s=r[e],a=Object(zt.a)(t,s);n(0,s)&&Qt(o,Object(Wt.a)(s,t),a)}return o}(t,r,(function(r,n){return Object(Kt.a)(t,n)}))}(t,r)})),ir=n(169),or=n.n(ir);function sr(t){return t.match(/\S+/g)||[]}function ar(t,r){return sr(r).reduce((function(r,n){if(!n.length)return r;var e=n.length,i=t.indexOf(n);return i>-1&&(r.push([i,i+e]),t=t.slice(0,i)+new Array(e+1).join(" ")+t.slice(i+e)),r}),[]).sort((function(t,r){return t[0]-r[0]}))}n(178);var ur=function(t){f()(n,t);var r=function(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=v()(t);if(r){var i=v()(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return p()(this,n)}}(n);function n(t,e,i,s){var a;return o()(this,n),(a=r.call(this)).clearListSuggestionList=function(){var t=a.container.querySelector(".autocompleteList");t&&(t.innerHTML="")},a.container=e,a.options=i,a.value=t,a.history=s.map((function(t){return{endpoint:t,type:"history"}})),a.options.keys.indexOf("endpoint")<=0&&a.options.keys.push("endpoint"),a.draw(),a}return a()(n,[{key:"draw",value:function(){var t=this,r=document.createElement("div");Object(C.b)(r,"autocompleteWrapper"),this.container.appendChild(r),this.inputField=document.createElement("input"),Object(C.b)(this.inputField,"autocomplete"),this.inputField.value=this.value,r.appendChild(this.inputField),new Ht.a({placeholder:"Search or add an endpoint",highlight:!1,maxResults:100,trigger:{event:["input","focusin"],condition:function(){return!0}},searchEngine:function(t,r){return!t||0===t.trim().length||sr(t).every((function(t){return r.indexOf(t)>=0}))},data:{src:function(){return function(t,r,n,e){return new(n||(n=Promise))((function(r,i){function o(t){try{a(e.next(t))}catch(t){i(t)}}function s(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}a((e=e.apply(t,[])).next())}))}(t,0,void 0,O.a.mark((function t(){var r=this;return O.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",[].concat(k()(this.history),k()(this.options.getData())).map((function(t){return Object.assign(Object.assign({},t),{all:Object.values(er(t,["endpoint"].concat(k()(r.options.keys)))).join(" ")})})));case 1:case"end":return t.stop()}}),t,this)})))},key:["all"],cache:!1},selector:function(){return t.inputField},resultsList:{render:!0,destination:this.inputField,container:function(t){t.id="",Object(C.b)(t,"autocompleteList")}},resultItem:{content:function(r,n){if(r.value.type&&"history"===r.value.type){var e=document.createElement("div");e.innerHTML=or()(r.value.endpoint,ar(r.value.endpoint,t.inputField.value)).reduce((function(t,r){return r.highlight?t+r.text.bold():t+r.text}),""),n.append(e);var i=document.createElement("button");i.textContent="✖",Object(C.b)(i,"removeItem"),i.addEventListener("mousedown",(function(e){t.history=t.history.filter((function(t){return t.endpoint!==r.value.endpoint})),t.emit("remove",t.value,t.history.map((function(t){return t.endpoint}))),n.remove(),e.stopPropagation()})),n.appendChild(i)}else{for(var o={matches:{}},s=0,a=k()(t.options.keys);s<a.length;s++){var u=a[s],l=r.value[u];l&&(o.matches[u]=or()(l,ar(l,t.inputField.value)))}t.options.renderItem(Object.assign(Object.assign({},r),o),n)}},element:"li"},onSelection:function(r){t.value=r.selection.value.endpoint,t.inputField.value=t.value,t.emit("select",t.value,t.history.map((function(t){return t.endpoint})))},noResults:function(){var r=t.container.querySelector(".autocompleteList");if(r){var n=document.createElement("div");Object(C.b)(n,"noResults"),n.innerText='Press "enter" to add this endpoint',r.appendChild(n)}}}),this.inputField.addEventListener("keyup",(function(r){var n=r.target;if(13===r.keyCode){if(t.value===n.value)return t.clearListSuggestionList(),void t.inputField.blur();if(!n.value||!n.value.trim())return t.clearListSuggestionList(),void t.inputField.blur();if(t.options.getData().find((function(r){return r.endpoint===t.inputField.value}))||t.history.find((function(r){return r.endpoint===t.inputField.value})))return t.value=n.value,t.clearListSuggestionList(),t.emit("select",t.value,t.history.map((function(t){return t.endpoint}))),void t.inputField.blur();t.value=n.value,t.history.push({endpoint:n.value,type:"history"}),t.emit("select",t.value,t.history.map((function(t){return t.endpoint}))),t.clearListSuggestionList(),t.inputField.blur()}if(27===r.keyCode&&(t.inputField.blur(),t.inputField.value=t.value,t.clearListSuggestionList()),38===r.keyCode||40===r.keyCode){r.stopPropagation();var e=t.container.querySelector(".autocompleteList .autoComplete_result.autoComplete_selected");e&&!function(t){var r=t.getBoundingClientRect(),n=r.top,e=r.bottom;if(e<0)return!1;if(n>document.documentElement.clientHeight)return!1;var i=t.parentNode.getBoundingClientRect();return e<=i.bottom!=0&&!(n<=i.top)}(e)&&e.scrollIntoView(!1)}})),this.inputField.addEventListener("blur",(function(r){r.target.className===t.inputField.className&&r.relatedTarget&&(t.clearListSuggestionList(),t.inputField.value=t.value)})),document.addEventListener("mousedown",(function(r){if(2!==r.button){var n=r.target;if("removeItem"===n.className||"autoComplete_result"===n.className||"autocomplete"===n.className)return;t.clearListSuggestionList(),t.inputField.value=t.value}}))}},{key:"setEndpoint",value:function(t,r){this.value=t,r&&(this.history=r.map((function(t){return{endpoint:t,type:"history"}}))),this.inputField===document.activeElement?this.inputField.focus():this.inputField.value=t}},{key:"destroy",value:function(){this.removeAllListeners(),this.inputField.remove()}}]),n}(E.EventEmitter),lr=n(39);n(179);var cr=function(t){f()(n,t);var r=function(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=v()(t);if(r){var i=v()(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return p()(this,n)}}(n);function n(t,e){var i;if(o()(this,n),(i=r.call(this)).handleYasqeBlur=function(t){i.persistentJson.yasqe.value=t.getValue(),i.emit("change",l()(i),i.persistentJson)},i.handleYasqeQuery=function(t){t.getValue()!==i.persistentJson.yasqe.value&&(i.persistentJson.yasqe.value=t.getValue(),i.emit("change",l()(i),i.persistentJson)),i.emit("query",l()(i))},i.handleYasqeQueryAbort=function(){i.emit("queryAbort",l()(i))},i.handleYasqeResize=function(t,r){i.persistentJson.yasqe.editorHeight=r,i.emit("change",l()(i),i.persistentJson)},i.handleAutocompletionShown=function(t,r){i.emit("autocompletionShown",l()(i),r)},i.handleAutocompletionClose=function(){i.emit("autocompletionClose",l()(i))},i.handleQueryResponse=function(t,r,n){if(i.emit("queryResponse",l()(i)),!i.yasr)throw new Error("Resultset visualizer not initialized. Cannot draw results");i.yasr.setResponse(r,n),i.yasr.results&&(i.persistentJson.yasr.response=i.yasr.results.hasError()?void 0:i.yasr.results.getAsStoreObject(i.yasgui.config.yasr.maxPersistentResponseSize),i.emit("change",l()(i),i.persistentJson))},!e||void 0===e.id)throw new Error("Expected a valid configuration to initialize tab with");return i.yasgui=t,i.persistentJson=e,i}return a()(n,[{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 t=document.createElement("div");this.controlBarEl=document.createElement("div"),this.controlBarEl.className="controlbar",t.appendChild(this.controlBarEl),this.yasqeWrapperEl=document.createElement("div"),t.appendChild(this.yasqeWrapperEl),this.yasrWrapperEl=document.createElement("div"),t.appendChild(this.yasrWrapperEl),this.initTabSettingsMenu(),this.rootEl.appendChild(t),this.initControlbar(),this.initYasqe(),this.initYasr(),this.yasgui._setPanel(this.persistentJson.id,this.rootEl)}}},{key:"hide",value:function(){Object(C.g)(this.rootEl,"active")}},{key:"show",value:function(){this.draw(),Object(C.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 t=this.yasgui.persistentConfig.getTabs(),r=t.indexOf(this.persistentJson.id);r>-1&&this.yasgui.selectTabId(t[r===t.length-1?r-1:r+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 t;if(!this.yasqe)throw new Error("Cannot get value from uninitialized editor");return null===(t=this.yasqe)||void 0===t?void 0:t.getValue()}},{key:"setQuery",value:function(t){if(!this.yasqe)throw new Error("Cannot set value for uninitialized editor");return this.yasqe.setValue(t),this.persistentJson.yasqe.value=t,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 z(this,this.rootEl,this.controlBarEl)}},{key:"initEndpointSelectField",value:function(){var t=this;if(!this.controlBarEl)throw new Error("Need to initialize wrapper elements before drawing endpoint field");this.endpointSelect=new ur(this.getEndpoint(),this.controlBarEl,this.yasgui.config.endpointCatalogueOptions,this.yasgui.persistentConfig.getEndpointHistory()),this.endpointSelect.on("select",(function(r,n){t.setEndpoint(r,n)})),this.endpointSelect.on("remove",(function(r,n){t.setEndpoint(r,n)}))}},{key:"checkEndpointForCors",value:function(t){this.yasgui.config.corsProxy&&!(t in yr.corsEnabled)&&lr.get(t).query({query:"ASK {?x ?y ?z}"}).then((function(){yr.corsEnabled[t]=!0}),(function(r){yr.corsEnabled[t]=r.status>0}))}},{key:"setEndpoint",value:function(t,r){return t&&(t=t.trim()),r&&!Object(rt.a)(r,this.yasgui.persistentConfig.getEndpointHistory())&&this.yasgui.emit("endpointHistoryChange",this.yasgui,r),this.checkEndpointForCors(t),this.persistentJson.requestConfig.endpoint!==t&&(this.persistentJson.requestConfig.endpoint=t,this.emit("change",this,this.persistentJson),this.emit("endpointChange",this,t)),this.endpointSelect instanceof ur&&this.endpointSelect.setEndpoint(t,r),this}},{key:"getEndpoint",value:function(){return Object(C.e)(this.persistentJson.requestConfig.endpoint,this.yasgui)}},{key:"updateContextMenu",value:function(){this.getTabListEl().redrawContextMenu()}},{key:"getShareableLink",value:function(t){return Ft(t||window.location.href,this)}},{key:"getShareObject",value:function(){return Ut(this)}},{key:"getTabListEl",value:function(){return this.yasgui.tabElements.get(this.persistentJson.id)}},{key:"setName",value:function(t){return this.getTabListEl().rename(t),this.persistentJson.name=t,this.emit("change",this,this.persistentJson),this}},{key:"hasResults",value:function(){var t;return!!(null===(t=this.yasr)||void 0===t?void 0:t.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(t){this.persistentJson.requestConfig=Object.assign(Object.assign({},this.persistentJson.requestConfig),t),this.emit("change",this,this.persistentJson)}},{key:"getStaticRequestConfig",value:function(){var t,r={};for(t in this.yasgui.config.requestConfig)if("adjustQueryBeforeRequest"!==t){var n=this.yasgui.config.requestConfig[t];"function"==typeof n&&(r[t]=n(this.yasgui))}return r}},{key:"initYasqe",value:function(){var t=this,r=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 t.getShareableLink()},requestConfig:function(){var r=Object.assign(Object.assign({acceptHeaderGraph:"text/turtle",acceptHeaderSelect:"application/sparql-results+json"},it({},t.persistentJson.requestConfig,t.getStaticRequestConfig(),(function(t,r){if(Array.isArray(t)||Array.isArray(r))return[].concat(k()(t||[]),k()(r||[]))}))),{adjustQueryBeforeRequest:t.yasgui.config.requestConfig.adjustQueryBeforeRequest});return t.yasgui.config.corsProxy&&!yr.corsEnabled[t.getEndpoint()]?Object.assign(Object.assign({},r),{args:[].concat(k()(Array.isArray(r.args)?r.args:[]),[{name:"endpoint",value:t.getEndpoint()},{name:"method",value:t.persistentJson.requestConfig.method}]),method:"POST",endpoint:t.yasgui.config.corsProxy}):r}});if(r.hintConfig||(r.hintConfig={}),r.hintConfig.container||(r.hintConfig.container=this.yasgui.rootEl),!this.yasqeWrapperEl)throw new Error("Expected a wrapper element before instantiating yasqe");this.yasqe=new L.default(this.yasqeWrapperEl,r),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 t,r,n,e,i,o,s,a;null===(t=this.yasqe)||void 0===t||t.off("blur",this.handleYasqeBlur),null===(r=this.yasqe)||void 0===r||r.off("query",this.handleYasqeQuery),null===(n=this.yasqe)||void 0===n||n.off("queryAbort",this.handleYasqeQueryAbort),null===(e=this.yasqe)||void 0===e||e.off("resize",this.handleYasqeResize),null===(i=this.yasqe)||void 0===i||i.off("autocompletionShown",this.handleAutocompletionShown),null===(o=this.yasqe)||void 0===o||o.off("autocompletionClose",this.handleAutocompletionClose),null===(s=this.yasqe)||void 0===s||s.off("queryResponse",this.handleQueryResponse),null===(a=this.yasqe)||void 0===a||a.destroy(),this.yasqe=void 0}},{key:"initYasr",value:function(){var t=this;if(!this.yasrWrapperEl)throw new Error("Wrapper for yasr does not exist");var r={persistenceId:null,prefixes:function(r){var n,e="function"==typeof t.yasgui.config.yasr.prefixes?t.yasgui.config.yasr.prefixes(r):t.yasgui.config.yasr.prefixes,i=null===(n=t.yasqe)||void 0===n?void 0:n.getPrefixesFromQuery();return lt(lt(Object.assign(Object.assign({},e),i)))},defaultPlugin:this.persistentJson.yasr.settings.selectedPlugin,getPlainQueryLinkToEndpoint:function(){if(t.yasqe)return Gt(t.getEndpoint(),L.default.Sparql.getUrlArguments(t.yasqe,t.persistentJson.requestConfig))},plugins:Object(ct.a)(this.persistentJson.yasr.settings.pluginsConfig,(function(t){return{dynamicConfig:t}})),errorRenderers:[fr(this)].concat(k()(S.default.defaults.errorRenderers||[]))};void 0===r.getDownloadFileName&&(r.getDownloadFileName=function(){return function(t,r,n){return t=Object(pt.a)(t),void 0===(r=n?void 0:r)?function(t){return ht.test(t)}(t)?function(t){return t.match(Lt)||[]}(t):function(t){return t.match(ft)||[]}(t):t.match(r)||[]}(function(t){return(t=Object(pt.a)(t))&&t.replace(wt,Rt).replace(Ot,"")}(t.getName())).join("-")}),this.yasr=new S.default(this.yasrWrapperEl,r,this.persistentJson.yasr.response),this.persistentJson.yasr.settings=this.yasr.getPersistentConfig(),this.yasr.on("change",(function(){t.yasr&&(t.persistentJson.yasr.settings=t.yasr.getPersistentConfig()),t.emit("change",t,t.persistentJson)}))}},{key:"destroy",value:function(){var t,r,n;this.removeAllListeners(),null===(t=this.tabPanel)||void 0===t||t.destroy(),null===(r=this.endpointSelect)||void 0===r||r.destroy(),this.endpointSelect=void 0,null===(n=this.yasr)||void 0===n||n.destroy(),this.yasr=void 0,this.destroyYasqe()}}],[{key:"getDefaults",value:function(t){return{yasqe:{value:t?t.config.yasqe.value:yr.defaults.yasqe.value},yasr:{response:void 0,settings:{selectedPlugin:t?t.config.yasr.defaultPlugin:"table",pluginsConfig:{}}},requestConfig:t?t.config.requestConfig:Object.assign({},yr.defaults.requestConfig),id:gr(),name:t?t.createTabName():yr.defaults.tabName}}}]),n}(E.EventEmitter);function fr(t){var r=this;return function(n){return function(t,r,n,e){return new(n||(n=Promise))((function(r,i){function o(t){try{a(e.next(t))}catch(t){i(t)}}function s(t){try{a(e.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}a((e=e.apply(t,[])).next())}))}(r,0,void 0,O.a.mark((function r(){var e,i,o;return O.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.status){r.next=9;break}if("http:"!==new URL(t.getEndpoint()).protocol||"https:"!==window.location.protocol){r.next=9;break}return e=document.createElement("div"),(i=document.createElement("p")).innerHTML='You are trying to query an HTTP endpoint (<a href="'.concat(t.getEndpoint(),'" target="_blank" rel="noopener noreferrer">').concat(t.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>.'),t.yasgui.config.nonSslDomain&&((o=document.createElement("p")).innerHTML='As a workaround, you can use the HTTP version of Yasgui instead: <a href="'.concat(t.getShareableLink(t.yasgui.config.nonSslDomain),'" target="_blank">').concat(t.yasgui.config.nonSslDomain,"</a>"),i.appendChild(o)),e.appendChild(i),r.abrupt("return",e);case 9:case"end":return r.stop()}}),r)})))}}var hr=n(186);n(180);var pr=function(){function t(r,n){var e=this;o()(this,t),this.handleContextClick=function(t){2!==t.button||t.target!==e.contextEl?e.closeConfigMenu():t.stopImmediatePropagation()},this.closeConfigMenu=function(){e.tabRef=void 0,e.contextEl&&e.contextEl.remove()},this.yasgui=r,this.rootEl=n,document.addEventListener("click",this.handleContextClick),document.addEventListener("keyup",this.closeConfigMenu)}return a()(t,[{key:"getMenuItemEl",value:function(t){var r=document.createElement("li");return Object(C.b)(r,"context-menu-item"),r.addEventListener("contextmenu",(function(t){t.stopPropagation()})),void 0!==t&&(r.innerText=t),r}},{key:"draw",value:function(t){var r=this;this.contextEl=document.createElement("div");var n=document.createElement("ul");Object(C.b)(n,"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"),n.appendChild(this.newTabEl),n.appendChild(this.renameTabEl),n.appendChild(this.copyTabEl),n.appendChild(document.createElement("hr")),n.appendChild(this.closeTabEl),n.appendChild(this.closeOtherTabsEl),n.appendChild(this.reOpenOldTab),this.contextEl.appendChild(n),Object(C.b)(this.contextEl,"yasgui","context-menu"),t.appendChild(this.contextEl)}},{key:"redraw",value:function(){var t;if(this.contextEl&&(null===(t=this.tabRef)||void 0===t?void 0:t.tabEl)){var r=this.tabRef.tabEl.getBoundingClientRect();this.contextEl.style.top="".concat(window.pageYOffset+r.bottom,"px")}}},{key:"openConfigMenu",value:function(t,r,n){var e=this;if(r.tabEl){this.draw(this.rootEl),this.tabRef=r;var i=this.yasgui.getTab(t),o=r.tabEl.getBoundingClientRect();this.contextEl.style.left="".concat(window.pageXOffset+o.left,"px"),this.contextEl.style.top="".concat(window.pageYOffset+o.bottom,"px"),n.stopPropagation(),this.renameTabEl.onclick=function(){return r.startRename()},this.copyTabEl.onclick=function(){if(i){var t=Object(hr.a)(i.getPersistedJson());t.id=gr(),e.yasgui.addTab(!0,t)}},this.closeTabEl.onclick=function(){return null==i?void 0:i.close()},1===Object.keys(this.yasgui._tabs).length?Object(C.b)(this.closeOtherTabsEl,"disabled"):this.closeOtherTabsEl.onclick=function(){for(var r=0,n=Object.keys(e.yasgui._tabs);r<n.length;r++){var i=n[r];i!==t&&e.yasgui.getTab(i).close()}},this.yasgui.persistentConfig&&this.yasgui.persistentConfig.hasLastClosedTab()?this.reOpenOldTab.onclick=function(){return e.yasgui.restoreLastTab()}:Object(C.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(r,n){return new t(r,n)}}]),t}(),dr=n(181);n(182);var vr=function(){function t(r,n,e){o()(this,t),this.tabList=n,this.yasgui=r,this.tabId=e}return a()(t,[{key:"delete",value:function(){var t;this.tabEl&&(null===(t=this.tabList._tabsListEl)||void 0===t||t.removeChild(this.tabEl),delete this.tabList._tabs[this.tabId])}},{key:"startRename",value:function(){if(this.renameEl){var t=this.yasgui.getTab(this.tabId);t&&(this.renameEl.value=t.name(),Object(C.b)(this.tabEl,"renaming"),this.renameEl.focus())}}},{key:"active",value:function(t){this.tabEl&&(t?(Object(C.b)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","true"),this.tabEl.children[0].setAttribute("tabindex","0")):(Object(C.g)(this.tabEl,"active"),this.tabEl.children[0].setAttribute("aria-selected","false"),this.tabEl.children[0].setAttribute("tabindex","-1")))}},{key:"rename",value:function(t){this.nameEl&&(this.nameEl.textContent=t)}},{key:"setAsQuerying",value:function(t){t?Object(C.b)(this.tabEl,"querying"):Object(C.g)(this.tabEl,"querying")}},{key:"draw",value:function(t){var r=this;this.tabEl=document.createElement("div"),this.tabEl.setAttribute("role","presentation"),this.tabEl.ondblclick=function(){r.startRename()},Object(C.b)(this.tabEl,"tab"),this.tabEl.addEventListener("keydown",(function(t){"Delete"===t.code&&n()}));var n=function(t){var n;null==t||t.preventDefault(),null===(n=r.yasgui.getTab(r.tabId))||void 0===n||n.close()},e=document.createElement("a");e.setAttribute("role","tab"),e.href="#"+this.tabId,e.id="tab-"+this.tabId,e.setAttribute("aria-controls",this.tabId),e.addEventListener("blur",(function(){r.tabEl&&(r.tabEl.classList.contains("active")?e.setAttribute("tabindex","0"):e.setAttribute("tabindex","-1"))})),e.addEventListener("focus",(function(){if(r.tabEl&&r.tabEl.classList.contains("active")){var t=Object.keys(r.tabList._tabs).indexOf(r.tabId);r.tabList.tabEntryIndex=t}})),e.addEventListener("click",(function(t){t.preventDefault(),r.yasgui.selectTabId(r.tabId)})),this.nameEl=document.createElement("span"),this.nameEl.textContent=t,e.appendChild(this.nameEl);var i=document.createElement("div");i.innerHTML="✖",i.title="Close tab",i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object(C.b)(i,"closeTab"),i.addEventListener("click",n),e.appendChild(i);var o=this.renameEl=document.createElement("input");o.type="text",o.value=t,o.onkeyup=function(t){var n;"Enter"===t.key&&(null===(n=r.yasgui.getTab(r.tabId))||void 0===n||n.setName(o.value),Object(C.g)(r.tabEl,"renaming"))},o.onblur=function(){var t;null===(t=r.yasgui.getTab(r.tabId))||void 0===t||t.setName(o.value),Object(C.g)(r.tabEl,"renaming")},e.appendChild(this.renameEl),e.oncontextmenu=function(t){var n;null===(n=r.tabList.tabContextMenu)||void 0===n||n.closeConfigMenu(),r.openTabConfigMenu(t),t.preventDefault(),t.stopPropagation()},this.tabEl.appendChild(e);var s=document.createElement("div");return Object(C.b)(s,"loader"),this.tabEl.appendChild(s),this.tabEl}},{key:"openTabConfigMenu",value:function(t){var r;null===(r=this.tabList.tabContextMenu)||void 0===r||r.openConfigMenu(this.tabId,this,t)}},{key:"redrawContextMenu",value:function(){var t;null===(t=this.tabList.tabContextMenu)||void 0===t||t.redraw()}}]),t}(),Er=function(){function t(r){var n=this;o()(this,t),this._tabs={},this.handleKeydownArrowKeys=function(t){if("ArrowLeft"===t.code||"ArrowRight"===t.code){if(!n._tabsListEl)return;var r=n._tabsListEl.childElementCount;if("number"!=typeof n.tabEntryIndex)return;var e=n._tabsListEl.children[n.tabEntryIndex];e.classList.contains("active")||e.children[0].setAttribute("tabindex","-1"),"ArrowLeft"===t.code&&(n.tabEntryIndex--,n.tabEntryIndex<0&&(n.tabEntryIndex=r-1)),"ArrowRight"===t.code&&(n.tabEntryIndex++,n.tabEntryIndex>=r&&(n.tabEntryIndex=0));var i=n._tabsListEl.children[n.tabEntryIndex];i.children[0].setAttribute("tabindex","0"),i.children[0].focus()}},this.handleAddNewTab=function(t){t.preventDefault(),n.yasgui.addTab(!0)},this.yasgui=r,this.registerListeners(),this.tabEntryIndex=this.getActiveIndex()}return a()(t,[{key:"get",value:function(t){return this._tabs[t]}},{key:"registerListeners",value:function(){var t=this;this.yasgui.on("query",(function(r,n){var e=n.getId();t._tabs[e]&&t._tabs[e].setAsQuerying(!0)})),this.yasgui.on("queryResponse",(function(r,n){var e=n.getId();t._tabs[e]&&t._tabs[e].setAsQuerying(!1)})),this.yasgui.on("queryAbort",(function(r,n){var e=n.getId();t._tabs[e]&&t._tabs[e].setAsQuerying(!1)}))}},{key:"getActiveIndex",value:function(){if(this._selectedTab)return Object.keys(this._tabs).indexOf(this._selectedTab)}},{key:"drawTabsList",value:function(){var t=this;this._tabsListEl=document.createElement("div"),Object(C.b)(this._tabsListEl,"tabsList"),this._tabsListEl.setAttribute("role","tablist"),this._tabsListEl.addEventListener("keydown",this.handleKeydownArrowKeys),dr.default.create(this._tabsListEl,{group:"tabList",animation:100,onUpdate:function(){var r=t.deriveTabOrderFromEls();t.yasgui.emit("tabOrderChanged",t.yasgui,r),t.yasgui.persistentConfig.setTabOrder(r)},filter:".addTab",onMove:function(t){return Object(C.f)(t.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(){t._tabsListEl&&(t.tabEntryIndex=t._tabsListEl.childElementCount-1)})),r.addEventListener("blur",(function(){r.setAttribute("tabindex","0")})),this.addTabEl.appendChild(r),this._tabsListEl.appendChild(this.addTabEl),this.tabContextMenu=pr.get(this.yasgui,this.yasgui.config.contextMenuContainer?this.yasgui.config.contextMenuContainer:this._tabsListEl),this._tabsListEl}},{key:"addTab",value:function(t,r){return this.drawTab(t,r)}},{key:"deriveTabOrderFromEls",value:function(){var t=[];if(this._tabsListEl)for(var r=0;r<this._tabsListEl.children.length;r++){var n=this._tabsListEl.children[r].children[0];if(n){var e=n.href;e&&e.indexOf("#")>=0&&t.push(e.substr(e.indexOf("#")+1))}}return t}},{key:"selectTab",value:function(t){for(var r in this._selectedTab=t,this._tabs)this._tabs[r].active(this._selectedTab===r)}},{key:"drawTab",value:function(t,r){var n,e;this._tabs[t]=new vr(this.yasgui,this,t);var i=this.yasgui.persistentConfig.getTab(t);void 0!==r&&r<this.yasgui.persistentConfig.getTabs().length-1?null===(n=this._tabsListEl)||void 0===n||n.insertBefore(this._tabs[t].draw(i.name),this._tabs[this.yasgui.persistentConfig.getTabs()[r+1]].tabEl||null):null===(e=this._tabsListEl)||void 0===e||e.insertBefore(this._tabs[t].draw(i.name),this.addTabEl||null)}},{key:"destroy",value:function(){var t,r;for(var n in this._tabs)this._tabs[n].delete();this._tabs={},null===(t=this.tabContextMenu)||void 0===t||t.destroy(),null===(r=this._tabsListEl)||void 0===r||r.remove(),this._tabsListEl=void 0}}]),t}();function br(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}n(183),n(184),window&&(L.default&&(window.Yasqe=L.default),S.default&&(window.Yasr=S.default));var mr=function(t){f()(n,t);var r=function(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,e=v()(t);if(r){var i=v()(this).constructor;n=Reflect.construct(e,arguments,i)}else n=e.apply(this,arguments);return p()(this,n)}}(n);function n(t,e){var i,s,a;if(o()(this,n),(i=r.call(this))._tabs={},i.rootEl=document.createElement("div"),Object(C.b)(i.rootEl,"yasgui"),t.appendChild(i.rootEl),i.config=Object(b.a)({},n.defaults,e),i.persistentConfig=new R(l()(i)),i.tabElements=new Er(l()(i)),i.tabPanelsEl=document.createElement("div"),i.rootEl.appendChild(i.tabElements.drawTabsList()),i.rootEl.appendChild(i.tabPanelsEl),i.config.populateFromUrl&&(a=Bt(cr.getDefaults(l()(i))))){var u=i.findTabIdForConfig(a);if(u){var c=i.persistentConfig.getTab(u).yasr;i.persistentConfig.getTab(u).yasr={settings:a.yasr.settings,response:c.response},i.persistentConfig.setActive(u),c.response||(s=u)}else i.persistentConfig.setTab(a.id,"function"==typeof i.config.populateFromUrl?i.config.populateFromUrl(a):a),s=a.id}var f=i.persistentConfig.getTabs();if(!f.length&&i.config.autoAddOnInit){var h=i.addTab(!0);i.persistentConfig.setActive(h.getId()),i.emit("tabChange",l()(i),h)}else{var p,d=function(t){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,r){if(t){if("string"==typeof t)return br(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(t,r):void 0}}(t))){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}(f);try{for(d.s();!(p=d.n()).done;){var v=p.value;i._tabs[v]=new cr(l()(i),i.persistentConfig.getTab(v)),i._registerTabListeners(i._tabs[v]),i.tabElements.drawTab(v)}}catch(t){d.e(t)}finally{d.f()}var E=i.persistentConfig.getActiveId();E&&(i.markTabSelected(E),s&&s===E&&i.getTab(E).query().catch((function(){})))}return i}return a()(n,[{key:"hasFullscreen",value:function(t){t?(this.emit("fullscreen-enter",this),Object(C.b)(this.rootEl,"hasFullscreen")):(this.emit("fullscreen-leave",this),Object(C.g)(this.rootEl,"hasFullscreen"))}},{key:"getStorageId",value:function(t,r){var n=r||this.config.persistenceId;if(n)return"string"==typeof n?n+"_"+t:n(this)+"_"+t}},{key:"createTabName",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t||(t=this.config.tabName);var n=t+(r>0?" "+r:"");return this.tabNameTaken(n)&&(n=this.createTabName(t,r+1)),n}},{key:"tabNameTaken",value:function(t){return I(this._tabs,(function(r){return r.getName()===t}))}},{key:"getTab",value:function(t){if(t)return this._tabs[t];var r=this.persistentConfig.currentId();return r?this._tabs[r]:void 0}},{key:"markTabSelected",value:function(t){if(!this.persistentConfig.getTab(t))return!1;for(var r in this.tabElements.selectTab(t),this._tabs[t]||(this._tabs[t]=new cr(this,cr.getDefaults(this))),this._tabs[t].show(),this._tabs)r!==t&&this._tabs[r].hide();return!0}},{key:"selectTabId",value:function(t){var r=this.getTab();return r&&r.getId()!==t&&this.markTabSelected(t)&&(this.emit("tabSelect",this,t),this.persistentConfig.setActive(t)),r}},{key:"tabConfigEquals",value:function(t,r){var n,e,i,o,s,a=!0;for(s in t.requestConfig)t.requestConfig[s]&&(A(r.requestConfig[s],t.requestConfig[s])||(a=!1));return a&&(a=["endpoint","value"].every((function(n){return t.yasqe[n]===r.yasqe[n]}))),a&&(a=t.yasr.settings.selectedPlugin===r.yasr.settings.selectedPlugin&&A(null===(n=t.yasr.settings.pluginsConfig)||void 0===n?void 0:n[(null===(e=t.yasr.settings)||void 0===e?void 0:e.selectedPlugin)||""],null===(i=r.yasr.settings.pluginsConfig)||void 0===i?void 0:i[(null===(o=r.yasr.settings)||void 0===o?void 0:o.selectedPlugin)||""])),a&&t.name===r.name}},{key:"findTabIdForConfig",value:function(t){var r=this;return this.persistentConfig.getTabs().find((function(n){var e=r.persistentConfig.getTab(n);return r.tabConfigEquals(e,t)}))}},{key:"_registerTabListeners",value:function(t){var r=this;t.on("change",(function(t){return r.emit("tabChange",r,t)})),t.on("query",(function(t){return r.emit("query",r,t)})),t.on("queryAbort",(function(t){return r.emit("queryAbort",r,t)})),t.on("queryResponse",(function(t){return r.emit("queryResponse",r,t)})),t.on("autocompletionShown",(function(t,n){return r.emit("autocompletionShown",r,t,n)})),t.on("autocompletionClose",(function(t){return r.emit("autocompletionClose",r,t)}))}},{key:"_setPanel",value:function(t,r){for(var n in this._tabs)n!==t&&this._tabs[n].hide();this.tabPanelsEl.appendChild(r)}},{key:"_removePanel",value:function(t){t&&this.tabPanelsEl.removeChild(t)}},{key:"addTab",value:function(t,r){var n,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Object(b.a)({},cr.getDefaults(this),r);if(i.id&&this.getTab(i.id))throw new Error("Duplicate tab ID");if(this.config.copyEndpointOnNewTab&&!(null===(n=null==r?void 0:r.requestConfig)||void 0===n?void 0:n.endpoint)){var o=this.getTab();o&&(i.requestConfig.endpoint=o.getEndpoint())}if(e.avoidDuplicateTabs){var s=this.findTabIdForConfig(i);if(s)return this.selectTabId(s)}var a=i.id,u=e.atIndex;return this.persistentConfig.addToTabList(a,u),this.emit("tabAdd",this,a),this._tabs[a]=new cr(this,i),this.emit("tabChange",this,this._tabs[a]),this.tabElements.addTab(a,u),this._registerTabListeners(this._tabs[a]),t&&(this.persistentConfig.setActive(a),this._tabs[a].show()),this._tabs[a]}},{key:"restoreLastTab",value:function(){var t=this.persistentConfig.retrieveLastClosedTab();t&&this.addTab(!0,t.tab,{atIndex:t.index})}},{key:"destroy",value:function(){for(var t in this.removeAllListeners(),this.tabElements.destroy(),this._tabs)this._tabs[t].destroy();for(this._tabs={};this.rootEl.firstChild;)this.rootEl.firstChild.remove()}}]),n}(E.EventEmitter);function gr(){return Math.random().toString(36).substring(7)}mr.Tab=cr,mr.linkUtils=e,mr.Yasr=S.default,mr.Yasqe=L.default,mr.defaults={autofocus:!0,endpointInfo:void 0,persistenceId:function(t){var r="",n=t.rootEl;for(n.id&&(r=n.id);n&&n!==document;n=n.parentNode)if(n){n.id&&(r=n.id);break}return"yagui_"+r},tabName:"Query",corsProxy:void 0,persistencyExpire:2592e3,persistenceLabelResponse:"response",persistenceLabelConfig:"config",yasqe:L.default.defaults,yasr:S.default.defaults,endpointCatalogueOptions:{getData:function(){return[{endpoint:"https://dbpedia.org/sparql"},{endpoint:"https://query.wikidata.org/bigdata/namespace/wdq/sparql"}]},keys:[],renderItem:function(t,r){var n,e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column";var i=document.createElement("span");i.innerHTML=(null===(n=t.matches.endpoint)||void 0===n?void 0:n.reduce((function(t,r){return r.highlight?t+r.text.bold():t+r.text}),""))||"",e.appendChild(i),r.appendChild(e)}},copyEndpointOnNewTab:!0,populateFromUrl:!0,autoAddOnInit:!0,requestConfig:L.default.defaults.requestConfig,contextMenuContainer:void 0},mr.corsEnabled={};var yr=r.default=mr},function(t,r,n){var e=n(18),i=n(67),o=n(32),s=n(13),a=function(t,r){return t&&Object(o.a)(r,Object(s.a)(r),t)},u=n(38),l=function(t,r){return t&&Object(o.a)(r,Object(u.a)(r),t)},c=n(77),f=n(76),h=n(57),p=function(t,r){return Object(o.a)(t,Object(h.a)(t),r)},d=n(56),v=n(51),E=n(74),b=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)Object(d.a)(r,Object(h.a)(t)),t=Object(v.a)(t);return r}:E.a,m=function(t,r){return Object(o.a)(t,b(t),r)},g=n(61),y=n(73),x=function(t){return Object(y.a)(t,u.a,b)},T=n(20),I=Object.prototype.hasOwnProperty,N=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&I.call(t,"index")&&(n.index=t.index,n.input=t.input),n},A=n(58),S=/\w*$/,L=n(8),C=L.a?L.a.prototype:void 0,R=C?C.valueOf:void 0,w=n(78),O=function(t,r,n){var e=t.constructor;switch(r){case"[object ArrayBuffer]":return Object(A.a)(t);case"[object Boolean]":case"[object Date]":return new e(+t);case"[object DataView]":return function(t,r){var n=r?Object(A.a)(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);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(w.a)(t,n);case"[object Map]":return new e;case"[object Number]":case"[object String]":return new e(t);case"[object RegExp]":return function(t){var r=new t.constructor(t.source,S.exec(t));return r.lastIndex=t.lastIndex,r}(t);case"[object Set]":return new e;case"[object Symbol]":return function(t){return R?Object(R.call(t)):{}}(t)}},_=n(81),k=n(1),P=n(14),D=n(6),M=n(45),j=n(35),G=j.a&&j.a.isMap,F=G?Object(M.a)(G):function(t){return Object(D.a)(t)&&"[object Map]"==Object(T.a)(t)},U=n(2),B=j.a&&j.a.isSet,V=B?Object(M.a)(B):function(t){return Object(D.a)(t)&&"[object Set]"==Object(T.a)(t)},q={};q["[object Arguments]"]=q["[object Array]"]=q["[object ArrayBuffer]"]=q["[object DataView]"]=q["[object Boolean]"]=q["[object Date]"]=q["[object Float32Array]"]=q["[object Float64Array]"]=q["[object Int8Array]"]=q["[object Int16Array]"]=q["[object Int32Array]"]=q["[object Map]"]=q["[object Number]"]=q["[object Object]"]=q["[object RegExp]"]=q["[object Set]"]=q["[object String]"]=q["[object Symbol]"]=q["[object Uint8Array]"]=q["[object Uint8ClampedArray]"]=q["[object Uint16Array]"]=q["[object Uint32Array]"]=!0,q["[object Error]"]=q["[object Function]"]=q["[object WeakMap]"]=!1;var H=function t(r,n,o,u,h,d){var v,E=1&n,b=2&n,y=4&n;if(o&&(v=h?o(r,u,h,d):o(r)),void 0!==v)return v;if(!Object(U.a)(r))return r;var I=Object(k.a)(r);if(I){if(v=N(r),!E)return Object(f.a)(r,v)}else{var A=Object(T.a)(r),S="[object Function]"==A||"[object GeneratorFunction]"==A;if(Object(P.a)(r))return Object(c.a)(r,E);if("[object Object]"==A||"[object Arguments]"==A||S&&!h){if(v=b||S?{}:Object(_.a)(r),!E)return b?m(r,l(v,r)):p(r,a(v,r))}else{if(!q[A])return h?r:{};v=O(r,A,E)}}d||(d=new e.a);var L=d.get(r);if(L)return L;d.set(r,v),V(r)?r.forEach((function(e){v.add(t(e,n,o,e,r,d))})):F(r)&&r.forEach((function(e,i){v.set(i,t(e,n,o,i,r,d))}));var C=y?b?x:g.a:b?keysIn:s.a,R=I?void 0:C(r);return function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n););}(R||r,(function(e,s){R&&(e=r[s=e]),Object(i.a)(v,s,t(e,n,o,s,r,d))})),v};r.a=function(t){return H(t,5)}}]).default},"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Yasgui",[],t):"object"==typeof exports?exports.Yasgui=t():e.Yasgui=t();const YASGUI_MIN_SCRIPT=()=>{console.info("YASGUI was imported")};var RenderingMode,Orientation;!function(t){t.YASGUI="mode-yasgui",t.YASQE="mode-yasqe",t.YASR="mode-yasr"}(RenderingMode||(RenderingMode={})),function(t){t.VERTICAL="orientation-vertical",t.HORIZONTAL="orientation-horizontal"}(Orientation||(Orientation={}));var isMergeableObject=function(t){return isNonNullObject(t)&&!isSpecial(t)};function isNonNullObject(t){return!!t&&"object"==typeof t}function isSpecial(t){var r=Object.prototype.toString.call(t);return"[object RegExp]"===r||"[object Date]"===r||isReactElement(t)}var canUseSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(t){return t.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(t){return Array.isArray(t)?[]:{}}function cloneUnlessOtherwiseSpecified(t,r){return!1!==r.clone&&r.isMergeableObject(t)?deepmerge(emptyTarget(t),t,r):t}function defaultArrayMerge(t,r,n){return t.concat(r).map((function(t){return cloneUnlessOtherwiseSpecified(t,n)}))}function getMergeFunction(t,r){if(!r.customMerge)return deepmerge;var n=r.customMerge(t);return"function"==typeof n?n:deepmerge}function getEnumerableOwnPropertySymbols(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(r){return t.propertyIsEnumerable(r)})):[]}function getKeys(t){return Object.keys(t).concat(getEnumerableOwnPropertySymbols(t))}function propertyIsOnObject(t,r){try{return r in t}catch(t){return!1}}function propertyIsUnsafe(t,r){return propertyIsOnObject(t,r)&&!(Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))}function mergeObject(t,r,n){var e={};return n.isMergeableObject(t)&&getKeys(t).forEach((function(r){e[r]=cloneUnlessOtherwiseSpecified(t[r],n)})),getKeys(r).forEach((function(i){propertyIsUnsafe(t,i)||(e[i]=propertyIsOnObject(t,i)&&n.isMergeableObject(r[i])?getMergeFunction(i,n)(t[i],r[i],n):cloneUnlessOtherwiseSpecified(r[i],n))})),e}function deepmerge(t,r,n){(n=n||{}).arrayMerge=n.arrayMerge||defaultArrayMerge,n.isMergeableObject=n.isMergeableObject||isMergeableObject,n.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var e=Array.isArray(r);return e===Array.isArray(t)?e?n.arrayMerge(t,r,n):mergeObject(t,r,n):cloneUnlessOtherwiseSpecified(r,n)}deepmerge.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return deepmerge(t,n,r)}),{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;class YasguiConfiguratorDefinition{constructor(){this.defaultYasguiConfig={render:RenderingMode.YASGUI,orientation:Orientation.VERTICAL,copyEndpointOnNewTab:!0,requestConfig:{endpoint:"",method:"POST",headers:()=>({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/sparql-results+json","X-GraphDB-Local-Consistency":"updating"})}}}config(t,r,n){return this.setOrientation(n,t),this.setRenderMode(n,t),cjs.all([r,this.defaultYasguiConfig,n.yasguiConfig||{}])}setRenderMode(t,r){const n=Object.values(RenderingMode);r.classList.remove(...n),r.classList.add(t.render?t.render:this.defaultYasguiConfig.render)}setOrientation(t,r){const n=Object.values(Orientation);r.classList.remove(...n),r.classList.add(t.orientation?t.orientation:this.defaultYasguiConfig.orientation)}}const YasguiConfigurator=new YasguiConfiguratorDefinition;class YasqeConfiguratorDefinition{config(t,r,n){return n.hasOwnProperty("showEditorTabs")&&!n.showEditorTabs?t.classList.add("hidden-editor-tabs"):t.classList.remove("hidden-editor-tabs"),n.query&&window.Yasgui&&(window.Yasgui.Yasqe.defaults.value=n.query),r}}const YasqeConfigurator=new YasqeConfiguratorDefinition;class YasrConfiguratorDefinition{config(t,r,n){return n.hasOwnProperty("showResultTabs")&&!n.showResultTabs?t.classList.add("hidden-result-tabs"):t.classList.remove("hidden-result-tabs"),r}}const YasrConfigurator=new YasrConfiguratorDefinition;class YasguiConfigurationBuilderDefinition{constructor(){this.initConfigurators()}build(t,r){return this.configurators.reduce(((n,e)=>e.config(t,n,r)),{})}initConfigurators(){this.configurators=[YasguiConfigurator,YasqeConfigurator,YasrConfigurator]}}const YasguiConfigurationBuilder=new YasguiConfigurationBuilderDefinition;class OntotextYasgui{constructor(t,r){this.yasgui=t,this.init(r)}setQuery(t){this.yasgui.getTab().getYasqe().setValue(t)}getQuery(){return this.yasgui.getTab().getYasqe().getValue()}init(t){t.initialQuery&&this.setQuery(t.initialQuery)}addYasqeListener(t,r){this.yasgui.getTab().yasqe.on(t,(()=>{r()}))}destroy(){this.yasgui&&(Object.keys(this.yasgui._tabs).forEach((t=>{const r=this.yasgui._tabs[t];r.getYasr()&&r.getYasr().destroy()})),this.yasgui.destroy(),this.yasgui=null,localStorage.removeItem("yasqe__query"))}}class YasguiBuilderDefinition{constructor(){this.yasguiConfigurationBuilder=YasguiConfigurationBuilder}build(t,r){const n=this.yasguiConfigurationBuilder.build(t,r),e=new Yasgui(t,n);return new OntotextYasgui(e,r)}}const YasguiBuilder=new YasguiBuilderDefinition,ontotextYasguiWebComponentCss='@charset "UTF-8";.yasr .yasr_btn{border:none;background:inherit}.yasr .svgImg{display:flex;flex-direction:row}.yasr .svgImg svg{max-width:100%;max-height:100%;width:15px;height:15px;align-self:center}.yasr .yasr_btn.yasr_external_ref_btn{font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yasr .yasr_btn.yasr_external_ref_btn:active,.yasr .yasr_btn.yasr_external_ref_btn:focus{color:inherit;-webkit-text-decoration-color:inherit;text-decoration-color:inherit}.yasr .yasr_btn.yasr_external_ref_btn .svgImg svg{width:18px;height:18px}.yasr a{color:#428bca;text-decoration:none}.yasr a:active,.yasr a:hover{outline:0;color:#2a6496;text-decoration:underline}.yasr .yasr_btnGroup{margin:0;padding:0;list-style:none;display:flex;overflow-x:auto;overflow-y:hidden}.yasr .yasr_btnGroup .plugin_icon{height:15px;width:15px;margin-right:5px;text-align:center}.yasr .yasr_btnGroup .yasr_btn{border-bottom:2px solid transparent;padding-left:6px;padding-right:6px;margin-left:6px;margin-right:6px}.yasr .yasr_btnGroup .yasr_btn.selected{border-bottom:2px solid #337ab7}@media (max-width: 768px){.yasr .yasr_btn span{display:none}.yasr .yasr_btn .plugin_icon{margin-right:0}}.yasr .yasr_header{display:flex;flex-wrap:wrap}.yasr .yasr_fallback_info:not(:empty){margin-top:5px;border:1px solid #d1d1d1;padding:0.5rem;background:#f7f7f7}.yasr .yasr_fallback_info:not(:empty) p{margin:0}.yasr .yasr_help_variable{background:#dff0ff;color:#428bca}.yasr .yasr_response_chip{color:#505050;background:#f5f5f5;border-radius:6px;display:flex;font-size:11pt;max-height:16pt;align-self:center;align-items:center;justify-content:center;white-space:nowrap;padding:6px;margin-left:5px;overflow:visible;box-sizing:border-box}.yasr .yasr_response_chip.empty{display:none}.yasr .yasr_plugin_control{display:flex;margin-left:auto;align-items:center}.yasr .yasr_plugin_control:empty{display:none}.yasr .yasr_btn{color:#505050;fill:#505050;display:flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap;padding:6px 12px;overflow:visible;box-sizing:border-box}.yasr .yasr_btn.btn_icon{padding:4px 8px}.yasr .yasr_btn.disabled,.yasr .yasr_btn[disabled]{cursor:default;opacity:0.5;box-shadow:none}.yasr .yasr_btn:not(.disabled):hover{fill:#000;color:#000}.yasr .yasr_btn.selected,.yasr .yasr_btn:focus{color:#337ab7;fill:#337ab7}.yasr .space_element{flex-grow:1;min-width:10px}.yasr .tableControls{display:flex;align-items:center;padding:0 5px 0 0;flex-wrap:wrap}.yasr .tableControls .tableFilter{margin-right:10px;height:100%}.yasr .tableControls .tableSizer{height:100%}.yasr .tableControls .switch{display:flex;align-items:center;margin-right:10px}.yasr .dataTable.ellipseTable{white-space:nowrap}.yasr .dataTable.ellipseTable div:not(.expanded){overflow:hidden;text-overflow:ellipsis}.yasr .dataTable:not(.ellipseTable) div:not(.expanded),.yasr .expanded{word-break:break-all}.yasr .expanded{white-space:normal}.yasr .expandable:not(.expanded){cursor:pointer}.yasr .expandable:not(.expanded) a{pointer-events:none}.yasr .dataTables_wrapper{font-size:0.9em;min-width:100%}.yasr .dataTables_wrapper .grip-container{max-width:100%}.yasr .dataTables_wrapper .grip-padding>tbody>tr>td,.yasr .dataTables_wrapper .grip-padding>tbody>tr>th{padding-left:7px !important;padding-right:5px !important}.yasr .dataTables_wrapper .dataTable{min-width:100%;box-sizing:border-box}.yasr .dataTables_wrapper .dataTable.no-footer{border-bottom:none}.yasr .dataTables_wrapper .dataTable thead .sorting{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC")}.yasr .dataTables_wrapper .dataTable thead .sorting_asc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==")}.yasr .dataTables_wrapper .dataTable thead .sorting_desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=")}.yasr .dataTables_wrapper .dataTable thead .sorting_asc_disabled{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAW0lEQVQoz2NgoCm4w3Vnwh02wspK7/y6k01Ikdadx3f+37l9RxmfIsY7c4GKQHDiHUbcyhzvvIMq+3THBpci3jv7oIpAcMcdduzKEu/8vPMdDn/eiWQYBYMKAAC3ykIEuYQJUgAAAABJRU5ErkJggg==")}.yasr .dataTables_wrapper .dataTable thead .sorting_desc_disabled{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAWUlEQVQoz2NgGAWDCtyJvPPzznc4/HknEbsy9js77vyHw313eHGZZ3PnE1TRuzuOuK1lvDMRqmzuHUZ87lO+cxuo6PEdLUIeyb7z604pYf+y3Zlwh4u2YQoAc7ZCBHH4jigAAAAASUVORK5CYII=")}.yasr .dataTables_wrapper .dataTable tbody tr:hover{background-color:#f9f9f9}.yasr .dataTables_wrapper .dataTable thead tr th{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:700;text-align:start;overflow:hidden;text-overflow:ellipsis;border:none;padding:5px 5px 5px 7px;min-width:28px}.yasr .dataTables_wrapper .dataTable thead tr th.sorting{min-width:10px;padding-right:18px}.yasr .dataTables_wrapper .dataTable thead tr th:hover{background-color:#f9f9f9}.yasr .dataTables_wrapper .dataTable td{padding:5px}.yasr .dataTables_wrapper .dataTable td>div{-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.yasr .dataTables_wrapper .dataTable td>div.rowNumber{word-break:keep-all;overflow:visible}.yasr .dataTables_wrapper .dataTable td .tableEllipse{cursor:pointer;font-weight:700;padding:0 2px;background-color:rgba(66, 139, 202, 0.2);border-radius:2px;margin:0 3px}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button{border:none;background:transparent}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button .disabled{color:#505050}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button.current{border:none;background:transparent;text-decoration:underline !important}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button:hover{border:none;background:transparent}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button:hover:not(.disabled){color:#000 !important}.yasr .dataTables_wrapper div.dataTables_paginate.paging_simple_numbers a.paginate_button:active{box-shadow:none}table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable tfoot th,table.dataTable thead th{font-weight:700}table.dataTable thead td,table.dataTable thead th{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead td:active,table.dataTable thead th:active{outline:none}table.dataTable tfoot td,table.dataTable tfoot th{padding:10px 18px 6px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:100%}table.dataTable tbody tr{background-color:#fff}table.dataTable tbody tr.selected{background-color:#b0bed9}table.dataTable tbody td,table.dataTable tbody th{padding:8px 10px}table.dataTable.display tbody td,table.dataTable.display tbody th,table.dataTable.row-border tbody td,table.dataTable.row-border tbody th{border-top:1px solid #ddd}table.dataTable.display tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.row-border tbody tr:first-child th{border-top:none}table.dataTable.cell-border tbody td,table.dataTable.cell-border tbody th{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr td:first-child,table.dataTable.cell-border tbody tr th:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child td,table.dataTable.cell-border tbody tr:first-child th{border-top:none}table.dataTable.display tbody tr.odd,table.dataTable.stripe tbody tr.odd{background-color:#f9f9f9}table.dataTable.display tbody tr.odd.selected,table.dataTable.stripe tbody tr.odd.selected{background-color:#acbad4}table.dataTable.display tbody tr:hover,table.dataTable.hover tbody tr:hover{background-color:#f6f6f6}table.dataTable.display tbody tr:hover.selected,table.dataTable.hover tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3,table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3,table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:#f5f5f5}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap td,table.dataTable.nowrap th{white-space:nowrap}table.dataTable.compact thead td,table.dataTable.compact thead th{padding:4px 17px}table.dataTable.compact tbody td,table.dataTable.compact tbody th,table.dataTable.compact tfoot td,table.dataTable.compact tfoot th{padding:4px}table.dataTable td.dt-left,table.dataTable th.dt-left{text-align:left}table.dataTable td.dataTables_empty,table.dataTable td.dt-center,table.dataTable th.dt-center{text-align:center}table.dataTable td.dt-right,table.dataTable th.dt-right{text-align:right}table.dataTable td.dt-justify,table.dataTable th.dt-justify{text-align:justify}table.dataTable td.dt-nowrap,table.dataTable th.dt-nowrap{white-space:nowrap}table.dataTable tfoot td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable thead th.dt-head-left{text-align:left}table.dataTable tfoot td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable thead th.dt-head-center{text-align:center}table.dataTable tfoot td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable thead th.dt-head-right{text-align:right}table.dataTable tfoot td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable thead th.dt-head-justify{text-align:justify}table.dataTable tfoot td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable thead th.dt-head-nowrap{white-space:nowrap}table.dataTable tbody td.dt-body-left,table.dataTable tbody th.dt-body-left{text-align:left}table.dataTable tbody td.dt-body-center,table.dataTable tbody th.dt-body-center{text-align:center}table.dataTable tbody td.dt-body-right,table.dataTable tbody th.dt-body-right{text-align:right}table.dataTable tbody td.dt-body-justify,table.dataTable tbody th.dt-body-justify{text-align:justify}table.dataTable tbody td.dt-body-nowrap,table.dataTable tbody th.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable td,table.dataTable th{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_length select{border:1px solid #aaa;border-radius:3px;background-color:transparent;padding:4px}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{border:1px solid #aaa;border-radius:3px;padding:5px;background-color:transparent;margin-left:3px}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:#fff;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff, #dcdcdc);background:-moz-linear-gradient(top, #fff 0, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0, #dcdcdc 100%);background:linear-gradient(180deg, #fff 0, #dcdcdc)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:#fff !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858, #111);background:-moz-linear-gradient(top, #585858 0, #111 100%);background:-ms-linear-gradient(top, #585858 0, #111 100%);background:-o-linear-gradient(top, #585858 0, #111 100%);background:linear-gradient(180deg, #585858 0, #111)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b, #0c0c0c);background:-moz-linear-gradient(top, #2b2b2b 0, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0, #0c0c0c 100%);background:linear-gradient(180deg, #2b2b2b 0, #0c0c0c);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:#fff;background:-webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, 0)), color-stop(25%, rgba(255, 255, 255, 0.9)), color-stop(75%, rgba(255, 255, 255, 0.9)), color-stop(100%, rgba(255, 255, 255, 0)));background:-webkit-linear-gradient(left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0));background:-moz-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);background:-ms-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);background:-o-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0) 100%);background:linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.9) 25%, rgba(255, 255, 255, 0.9) 75%, rgba(255, 255, 255, 0))}.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_paginate,.dataTables_wrapper .dataTables_processing{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollBody>table,.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_length{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}}.yasr .booleanResult{display:flex;align-items:center;justify-content:center}.yasr .booleanResult svg{margin-bottom:-10px;margin-right:7px}.yasr .yasr_results{position:relative}.yasr .yasr_results .CodeMirror{border:1px solid #d1d1d1;margin-top:5px;height:100%}.yasr .yasr_results .CodeMirror.overflow:before{background:linear-gradient(transparent, rgba(255, 255, 255, 0.666667) 75%, #fff);content:"";width:100%;height:100%;z-index:1200;position:absolute;pointer-events:none}.yasr .yasr_results .overlay{width:100%;position:absolute;bottom:0;z-index:1201;display:flex;pointer-events:none}.yasr .yasr_results .overlay:after,.yasr .yasr_results .overlay:before{content:"";flex-grow:1}.yasr .yasr_results .overlay_content{display:flex;align-content:center;justify-content:center;align-items:center;background:#fff;pointer-events:all;background:linear-gradient(90deg, transparent, #fff 5%, #fff 95%, transparent)}.yasr .yasr_results .yasr_btn.overlay_btn{border:1px solid #337ab7;background:#fff;color:#337ab7;padding:10px;margin:10px}.yasr .yasr_results .yasr_btn.overlay_btn svg{margin-left:0.5rem;fill:#337ab7;color:#337ab7}.yasr .yasr_results .yasr_btn.overlay_btn:hover{color:#255681;border-color:#337ab7;fill:#255681}.yasr .yasr_results .yasr_btn.overlay_btn:hover svg{color:#255681;fill:#255681}.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:0.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:0.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.yasr .errorResult{padding:10px}.yasr .errorResult .errorHeader{overflow:hidden}.yasr .errorResult .errorHeader .yasr_tryQuery{float:right;text-decoration:none;padding-top:3px;padding-bottom:3px}.yasr .errorResult .errorHeader span.status{display:inline-block;padding:0.35em 0.5rem;font-size:75%;font-weight:600;line-height:1.35;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:0.25em;color:#fff;background-color:#dc3545}.yasr .errorResult .errorMessageContainer{display:flex}.yasr .errorResult .errorMessageContainer .errorMessage{flex-grow:1;width:0;min-width:100px;overflow:auto;display:block;padding:10px;margin:10px 0;font-size:13px;line-height:1.42857;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}.yasr .errorResult .redOutline{color:#a94442;background-color:#f2dede;margin-top:10px;padding:5px 1em;border:1px solid #ebccd1;border-radius:4px}.yasqe .CodeMirror{min-height:60px}.yasqe .svgImg{display:inline-block}.yasqe span.shortlinkErr{font-size:small;color:red;font-weight:700;float:left}.yasqe .CodeMirror-hint{max-width:30em}.yasqe .notificationContainer{width:100%;display:flex;justify-content:center;position:absolute;bottom:0}.yasqe .notification{z-index:4;padding:0 5px;max-height:0;color:#999;background-color:#eee;font-size:90%;text-align:center;transition:max-height 0.2s ease-in;border-top-right-radius:2px;border-top-left-radius:2px}.yasqe .notification.active{max-height:3rem}.yasqe .parseErrorIcon{width:13px;height:13px;margin-top:2px;margin-left:2px}.yasqe .parseErrorIcon svg g{fill:red}.yasqe .yasqe_tooltip{background:#333;background:rgba(0, 0, 0, 0.8);border-radius:5px;color:#fff;padding:5px 15px;width:220px;white-space:pre-wrap;white-space:normal;margin-top:5px}.yasqe .notificationLoader{width:18px;height:18px;vertical-align:middle}.yasqe .resizeWrapper{width:100%;height:10px;display:flex;align-items:center;justify-content:center;cursor:row-resize}.yasqe .resizeChip{width:20%;height:4px;background-color:#d1d1d1;visibility:hidden;border-radius:2px}.yasqe:hover .resizeChip{visibility:visible}.yasqe .yasqe_btn{color:#333;background-color:#fff;border:1px solid #ccc;display:inline-block;text-align:center;vertical-align:middle;cursor:pointer;white-space:nowrap;padding:6px 12px;border-radius:2px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:visible;box-sizing:border-box}.yasqe .yasqe_btn.btn_icon{padding:4px 8px}.yasqe .yasqe_btn.disabled,.yasqe .yasqe_btn[disabled]{cursor:default;opacity:0.5;filter:alpha(opacity=50);box-shadow:none}.yasqe .yasqe_btn:hover{outline:0;background-color:#ebebeb;border-color:#adadad}.yasqe .yasqe_btn.selected,.yasqe .yasqe_btn:focus{color:#fff;outline:0;background-color:#337ab7;border-color:#337ab7}.yasqe .yasqe_btn.btn_icon:focus{color:#333;background-color:#fff;border:1px solid #ccc}.yasqe .yasqe_btn.yasqe_btn-sm{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.yasqe .yasqe_buttons{position:absolute;top:10px;right:20px;z-index:5}.yasqe .yasqe_buttons svg{fill:#505050}.yasqe .yasqe_buttons .yasqe_share{cursor:pointer;margin-top:3px;display:inline-block;border:none;background:none}.yasqe .yasqe_buttons .yasqe_share svg{height:25px;width:25px}.yasqe .yasqe_buttons button{vertical-align:top;margin-left:5px}.yasqe .yasqe_buttons .yasqe_sharePopup{position:absolute;padding:4px;margin-left:0;background-color:#fff;border:1px solid #e3e3e3;border-radius:2px;box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.05);width:600px;height:auto;display:flex}.yasqe .yasqe_buttons .yasqe_sharePopup .inputWrapper{flex-grow:100}.yasqe .yasqe_buttons .yasqe_sharePopup input{float:left;width:100%;border:0;-ms-box-sizing:border-box;-khtml-box-sizing:border-box;box-sizing:border-box}.yasqe .yasqe_buttons .yasqe_sharePopup button{float:right;margin-left:5px}.yasqe .yasqe_buttons .yasqe_sharePopup textarea{width:100%}.yasqe .yasqe_buttons .yasqe_queryButton{display:inline-block;position:relative;border:none;background:none;padding:0;cursor:pointer;width:40px;height:40px}.yasqe .yasqe_buttons .yasqe_queryButton .queryIcon{display:block}.yasqe .yasqe_buttons .yasqe_queryButton .queryIcon svg{width:40px;height:40px}.yasqe .yasqe_buttons .yasqe_queryButton .svgImg{position:absolute;height:inherit;top:0}.yasqe .yasqe_buttons .yasqe_queryButton.busy svg #loadingIcon{stroke-dasharray:100;-webkit-animation:dash 1.5s linear infinite;animation:dash 1.5s linear infinite;stroke-width:8px;stroke:#fff}@-webkit-keyframes dash{to{stroke-dashoffset:200}}@keyframes dash{to{stroke-dashoffset:200}}@-webkit-keyframes rotate{to{transform:rotate(1turn)}}@keyframes rotate{to{transform:rotate(1turn)}}.yasqe .yasqe_buttons .yasqe_queryButton .warningIcon{display:none}.yasqe .yasqe_buttons .yasqe_queryButton.query_error .warningIcon{display:block;top:5px;right:0}.yasqe .yasqe_buttons .yasqe_queryButton.query_error .warningIcon svg{width:15px;height:15px}.yasqe .yasqe_buttons .yasqe_queryButton.query_error .warningIcon svg g{fill:red}.yasqe .yasqe_buttons .yasqe_queryButton.query_disabled{cursor:not-allowed}.yasqe .yasqe_buttons .yasqe_queryButton.query_disabled .queryIcon{opacity:0.5;filter:alpha(opacity=50)}@-webkit-keyframes spin{to{transform:rotate(1turn)}}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px rgba(0, 0, 0, 0.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-foldmarker{color:#00f;text-shadow:#b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;font-family:arial;line-height:0.3;cursor:pointer}.CodeMirror-foldgutter{width:0.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"▾"}.CodeMirror-foldgutter-folded:after{content:"▸"}.yasqe .CodeMirror{line-height:1.5em;font-size:14px;border:1px solid #d1d1d1}.yasqe span.cm-error{border-bottom:2px dotted red}.yasqe .gutterErrorBar{width:4px}.yasqe .CodeMirror-foldmarker{color:#6e2500;text-shadow:#ff935e 1px 1px 2px, #ff935e -1px -1px 2px, #ff935e 1px -1px 2px, #ff935e -1px 1px 2px;font-size:19px}.yasqe .cm-matchhighlight{background-color:#dbdeed}.CodeMirror-hints.default{max-width:1000px}.CodeMirror-hints.default li{text-overflow:ellipsis;overflow:hidden}@media only screen and (max-width: 1000px){.CodeMirror-hints.default{max-width:800px}}.yasgui .tabMenu{background:#f5f5f5;z-index:7;transition:all 0.5s;transform:translate3d(-100%, 0, 0) rotateY(90deg);transform-origin:100% 50%;visibility:hidden;width:600px;border:1px solid #ccc;position:absolute;top:35px;left:0;perspective:1500px;perspective-origin:0 50%;transform-style:preserve-3d}.yasgui .tabMenu.open{visibility:visible;transform:translate3d(-100%, 0, 0) rotateY(0deg);transition:all 0.5s;left:600px}@media (-ms-high-contrast: active), (-ms-high-contrast: none){.yasgui .tabMenu.open{min-width:600px}}@media (-ms-high-contrast: active), (-ms-high-contrast: none){.yasgui .tabMenu{height:0}}.yasgui .tabMenu .requestConfigWrapper{padding:10px;overflow:hidden;display:flex;flex-wrap:nowrap;background:#f5f5f5}.yasgui .tabMenu .requestConfigWrapper .selectorButton{background-color:transparent;border:none;border-bottom:1px solid #d1d1d1;height:30px;color:#505050;cursor:pointer}.yasgui .tabMenu .requestConfigWrapper .selectorButton:hover{color:#000;border-color:#000}.yasgui .tabMenu .requestConfigWrapper .selectorButton.selected{color:#337ab7;border-bottom:2px solid #337ab7}.yasgui .tabMenu .requestConfigWrapper .selectorButton:focus{outline:none}.yasgui .tabMenu .requestConfigWrapper .selectorButton:focus-visible{color:#000;border-color:#000}.yasgui .tabMenu .acceptWrapper{flex-direction:row}.yasgui .tabMenu .acceptWrapper .acceptLabel{justify-self:center}.yasgui .tabMenu .acceptWrapper .selector{flex-direction:column;display:flex;padding:2.5px 5px;flex-grow:1;width:100%}.yasgui .tabMenu .acceptWrapper .selector .selectorLabel{align-self:center;font-weight:700;font-size:small}.yasgui .tabMenu .textSetting{display:flex;flex-direction:column}.yasgui .tabMenu .textSetting .label{align-self:flex-start}.yasgui .tabMenu .textSetting .graphInput{white-space:nowrap}.yasgui .tabMenu .textSetting .textRow{flex-direction:row;flex-wrap:nowrap;white-space:nowrap}.yasgui .tabMenu .textSetting .removeButton{border:none;background:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.yasgui .tabMenu .textSetting .removeButton:hover{background:transparent;border-color:#000;color:#000;cursor:pointer}.yasgui .tabMenu .label{-webkit-text-decoration:#000;text-decoration:#000;font-weight:700;white-space:nowrap;padding-right:5px;align-self:center}.yasgui .autocomplete{padding:3px 6px;margin:4px 0;border:2px solid #ccc;width:100%;box-sizing:border-box;transition:border-color 0.2s ease-in}.yasgui .autocomplete:hover{border-color:#bbb}.yasgui .autocomplete:focus{border-color:#337ab7;background:none;outline:none}.yasgui .autocompleteWrapper{width:100%;max-width:700px;margin-left:10px;position:relative}.yasgui .autocompleteList{position:absolute;max-height:300px;overflow-y:auto;z-index:6;margin:-4px 0 0;padding:0;list-style:none;background:#fff;border:1px solid #aaa;box-sizing:border-box;left:0;right:0}.yasgui .autocompleteList:hover .autoComplete_result.autoComplete_selected:not(:hover){background:unset}.yasgui .autocompleteList:hover .autoComplete_result.autoComplete_selected:not(:hover) .removeItem{visibility:hidden}.yasgui .autocompleteList .autoComplete_result{cursor:pointer;padding:5px 10px;margin:0;overflow:hidden;display:flex;transition:background visibility 0.2s ease-in}.yasgui .autocompleteList .autoComplete_result b{color:#1f49a3}.yasgui .autocompleteList .autoComplete_result .autoComplete_highlighted{font-weight:700}.yasgui .autocompleteList .autoComplete_result.autoComplete_selected{background:#ccc}.yasgui .autocompleteList .autoComplete_result.autoComplete_selected .removeItem{visibility:visible}.yasgui .autocompleteList .autoComplete_result:hover{background:#ccc}.yasgui .autocompleteList .autoComplete_result:hover .removeItem{visibility:visible}.yasgui .autocompleteList .noResults{padding:5px 10px;margin:0}.yasgui .autocompleteList .removeItem{color:#000;font-size:15px;text-shadow:0 1px 0 #fff;opacity:0.5;font-weight:700;text-align:end;margin-left:auto;visibility:hidden;background:none;border:none;cursor:pointer;margin-right:-10px;padding-right:20px}.yasgui .autocompleteList .removeItem:hover{opacity:0.8;color:#1f49a3}.yasgui .autocompleteList:empty{display:none}.yasgui .tabPanel{display:none;position:relative}.yasgui .tabPanel.active{display:block}.yasgui .yasr{margin-top:5px}.yasgui .tabContextButton{border:none;background:none;align-self:center;padding-left:10px;cursor:pointer;color:#505050;fill:#505050}.yasgui .tabContextButton .svgImg{width:15px;height:15px;font-family:initial}.yasgui .tabContextButton svg{max-width:15px;max-height:15px}.yasgui .tabContextButton:hover{color:#000;fill:#000}.yasgui .controlbar{display:flex;align-content:center;max-height:35px}.yasgui.context-menu{position:absolute;z-index:10;background:#fff;min-width:160px;font-size:14px;border:1px solid rgba(0, 0, 0, 0.15);border-bottom-right-radius:4px;border-bottom-left-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);background-clip:padding-box}.yasgui.context-menu hr{margin:8px auto;border:none;border-top:1px solid #aaa;border-bottom:1px solid #fff}.yasgui.context-menu .context-menu-list{padding:0}.yasgui.context-menu .context-menu-item{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857;color:#333;white-space:nowrap;cursor:pointer}.yasgui.context-menu .context-menu-item:hover{text-decoration:none;color:#000;background-color:#f5f5f5}.yasgui.context-menu .context-menu-item.disabled{text-decoration:none;color:grey;background-color:#e5e5e5;cursor:not-allowed}.yasgui .tabsList{display:flex;flex-wrap:wrap}.yasgui .tabsList .sortable-placeholder{min-width:100px;min-height:35px;border:2px dotted #888}.yasgui .tabsList a{cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:35px;border-bottom:2px solid transparent;box-sizing:border-box}.yasgui .tabsList .addTab{cursor:pointer;height:100%;font-size:120%;font-weight:800;margin-left:15px;padding:0 5px 2px;background:inherit;border:none;color:#337ab7}.yasgui .tabsList .addTab:focus-visible,.yasgui .tabsList .addTab:hover{transform:scale(1.1)}.yasgui .tabsList .addTab:focus{color:#faa857}.yasgui .tabsList .tab{position:relative}.yasgui .tabsList .tab .loader{display:none;background-color:#d5d5d5;height:2px;position:absolute;bottom:0;left:0;right:100%;-webkit-animation-name:slide;animation-name:slide;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}@-webkit-keyframes slide{0%{left:0;right:100%}70%{left:0;right:0}to{left:100%;right:0}}@keyframes slide{0%{left:0;right:100%}70%{left:0;right:0}to{left:100%;right:0}}.yasgui .tabsList .tab.active .loader{background-color:#9fc4e4}.yasgui .tabsList .tab:hover .loader{background-color:#337ab7}.yasgui .tabsList .tab.querying .loader{display:block}.yasgui .tabsList .tab.active a{border-bottom-color:#337ab7;color:#555}.yasgui .tabsList .tab input{display:none;outline:none;border:none}.yasgui .tabsList .tab.renaming .closeTab,.yasgui .tabsList .tab.renaming span{display:none}.yasgui .tabsList .tab.renaming input{display:block}.yasgui .tabsList .tab a{font-weight:600;color:#888;font-size:15px;line-height:1.5rem;font-weight:500;min-width:120px;padding:0 24px 0 30px;white-space:nowrap;overflow:hidden}.yasgui .tabsList .tab a:hover{border-bottom-color:#9fc4e4;color:#555}.yasgui .tabsList .tab a:focus{border-bottom-color:#faa857;color:#555}.yasgui .tabsList .tab a .closeTab{color:#000;margin-left:7px;font-size:15px;text-shadow:0 1px 0 #fff;opacity:0.2;font-weight:700;padding:2px}.yasgui .tabsList .tab a .closeTab:hover{opacity:0.5}.yasgui a{color:#337ab7;text-decoration:none}.yasgui .yasgui_textfield{display:block;padding-top:18.75px;position:relative}.yasgui .yasgui_textfield>label{position:absolute;top:0;display:block;width:100%;color:rgba(0, 0, 0, 0.54);font-size:12px;font-weight:400;line-height:15px;overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.yasgui .yasgui_textfield>input,.yasgui .yasgui_textfield>textarea{box-sizing:border-box;display:block;color:rgba(0, 0, 0, 0.87);border:none;border-bottom:1px solid rgba(0, 0, 0, 0.26);outline:none;width:100%;padding:0;box-shadow:none;border-radius:0;font-size:15px;font-family:inherit;line-height:inherit;background-image:none}.yasgui .yasgui_textfield>input:focus,.yasgui .yasgui_textfield>textarea:focus{border-color:#337ab7;border-width:2px}.yasgui .yasgui_textfield>input:focus~label,.yasgui .yasgui_textfield>textarea:focus~label{color:#337ab7}.modal-dialog.google-visualization-charteditor-dialog{z-index:11;width:auto;margin:inherit}.modal-dialog.google-visualization-charteditor-dialog .charts-flat-menu-button{box-sizing:content-box}:host{display:block}.mode-yasqe .yasgui .yasr{display:none}.mode-yasr .yasgui .tabsList{display:none}.mode-yasr .yasgui .yasqe{display:none}.orientation-horizontal .yasgui{display:grid}.orientation-horizontal .yasgui .tabPanel>div{display:grid;grid-template-columns:0 1fr 1fr}.yasgui .autocompleteWrapper{display:none !important}.yasgui .tabContextButton{display:none}.hidden-editor-tabs .tabsList{display:none}.hidden-result-tabs .yasr_header{display:none}',OntotextYasguiWebComponent=class{constructor(t){registerInstance(this,t),this.queryExecuted=createEvent(this,"queryExecuted",7),this.config=void 0,this.yasguiBuilder=YasguiBuilder}componentWillLoad(){window.Yasgui||YASGUI_MIN_SCRIPT()}componentDidLoad(){this.init(this.config)}onWindowResize(t){console.log(t)}configurationChanged(t){this.init(t)}setQuery(t){return this.yasgui.setQuery(t),Promise.resolve()}disconnectedCallback(){this.destroy()}render(){return h(Host,null)}init(t){this.destroy(),t&&window.Yasgui&&(this.yasgui=this.yasguiBuilder.build(this.el,t),this.addOnQueryListener())}addOnQueryListener(){this.yasgui.addYasqeListener("query",(()=>{this.queryExecuted.emit(this.yasgui.getQuery())}))}destroy(){this.yasgui&&this.yasgui.destroy()}get el(){return getElement(this)}static get watchers(){return{config:["configurationChanged"]}}};OntotextYasguiWebComponent.style=ontotextYasguiWebComponentCss;export{OntotextYasguiWebComponent as ontotext_yasgui}
|