-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmartdown_ldf.js
12 lines (12 loc) · 237 KB
/
smartdown_ldf.js
1
2
3
4
5
6
7
8
9
10
11
12
(window.webpackJsonpsmartdown=window.webpackJsonpsmartdown||[]).push([[5],{226:function(t,e,r){"use strict";(function(r,n){var i,s,o,a,u="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(r){"object"===u(e)&&void 0!==t?t.exports=r():(s=[],void 0===(o="function"==typeof(i=r)?i.apply(e,s):i)||(t.exports=o))}(function(){return function(){return function t(e,r,n){function i(o,u){if(!r[o]){if(!e[o]){if(!u&&"function"==typeof a&&a)return a(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[o]={exports:{}};e[o][0].call(l.exports,function(t){return i(e[o][1][t]||t)},l,l.exports,t,e,r,n)}return r[o].exports}for(var s="function"==typeof a&&a,o=0;o<n.length;o++)i(n[o]);return i}}()({1:[function(t,e,n){(function(r){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
* @license MIT
*/
function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var s=t("util/"),o=Object.prototype.hasOwnProperty,a=Array.prototype.slice,c="foo"===function(){}.name;function l(t){return Object.prototype.toString.call(t)}function f(t){return!i(t)&&("function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}var h=e.exports=v,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(s.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&&e[1]}}function _(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function g(t){if(c||!s.isFunction(t))return s.inspect(t);var e=d(t);return"[Function"+(e?": "+e:"")+"]"}function y(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function v(t,e){t||y(t,!0,e,"==",h.ok)}function b(t,e,r,o){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(s.isDate(t)&&s.isDate(e))return t.getTime()===e.getTime();if(s.isRegExp(t)&&s.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"===(void 0===t?"undefined":u(t))||null!==e&&"object"===(void 0===e?"undefined":u(e))){if(f(t)&&f(e)&&l(t)===l(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;var c=(o=o||{actual:[],expected:[]}).actual.indexOf(t);return-1!==c&&c===o.expected.indexOf(e)||(o.actual.push(t),o.expected.push(e),function(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(s.isPrimitive(t)||s.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=m(t),o=m(e);if(i&&!o||!i&&o)return!1;if(i)return t=a.call(t),e=a.call(e),b(t,e,r);var u,c,l=E(t),f=E(e);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),c=l.length-1;c>=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(u=l[c],!b(t[u],e[u],r,n))return!1;return!0}(t,e,r,o))}return r?t===e:t==e}function m(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function x(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function w(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&y(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&s.isError(i),u=!t&&i&&!r;if((a&&o&&x(i,r)||u)&&y(i,r,"Got unwanted exception"+n),t&&i&&r&&!x(i,r)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return _(g(t.actual),128)+" "+t.operator+" "+_(g(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),s=n.indexOf("\n"+i);if(s>=0){var o=n.indexOf("\n",s+1);n=n.substring(o+1)}this.stack=n}}},s.inherits(h.AssertionError,Error),h.fail=y,h.ok=v,h.equal=function(t,e,r){t!=e&&y(t,e,r,"==",h.equal)},h.notEqual=function(t,e,r){t==e&&y(t,e,r,"!=",h.notEqual)},h.deepEqual=function(t,e,r){b(t,e,!1)||y(t,e,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,r){b(t,e,!0)||y(t,e,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){b(t,e,!1)&&y(t,e,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){b(e,r,!0)&&y(e,r,n,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,r){t!==e&&y(t,e,r,"===",h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&&y(t,e,r,"!==",h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t};var E=Object.keys||function(t){var e=[];for(var r in t)o.call(t,r)&&e.push(r);return e}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":13}],2:[function(t,e,r){},{}],3:[function(t,e,r){var n=Object.create||function(t){var e=function(){};return e.prototype=t,new e},i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return r},s=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function o(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._maxListeners=void 0;var a,c=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),a=0===l.x}catch(t){a=!1}function f(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function h(t,e,r,i){var s,o,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((o=t._events)?(o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]):(o=t._events=n(null),t._eventsCount=0),a){if("function"==typeof a?a=o[e]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),!a.warned&&(s=f(t))&&s>0&&a.length>s){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,"object"===("undefined"==typeof console?"undefined":u(console))&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else a=o[e]=r,++t._eventsCount;return t}function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e<t.length;++e)t[e]=arguments[e];this.listener.apply(this.target,t)}}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=s.call(p,n);return i.listener=r,n.wrapFn=i,i}function _(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function g(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}a?Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||t!=t)throw new TypeError('"defaultMaxListeners" must be a positive number');c=t}}):o.defaultMaxListeners=c,o.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},o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(t){var e,r,n,i,s,o,a="error"===t;if(o=this._events)a=a&&null==o.error;else if(!a)return!1;if(a){if(arguments.length>1&&(e=arguments[1]),e instanceof Error)throw e;var u=new Error('Unhandled "error" event. ('+e+")");throw u.context=e,u}if(!(r=o[t]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=g(t,n),s=0;s<n;++s)i[s].call(r)}(r,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,s=g(t,i),o=0;o<i;++o)s[o].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var s=t.length,o=g(t,s),a=0;a<s;++a)o[a].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,s){if(e)t.call(r,n,i,s);else for(var o=t.length,a=g(t,o),u=0;u<o;++u)a[u].call(r,n,i,s)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),s=1;s<n;s++)i[s-1]=arguments[s];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,s=g(t,i),o=0;o<i;++o)s[o].apply(r,n)}(r,c,this,i)}return!0},o.prototype.addListener=function(t,e){return h(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return h(this,t,e,!0)},o.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,d(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,d(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,i,s,o,a;if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=n(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(s=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,s=o;break}if(s<0)return this;0===s?r.shift():function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(r,s),1===r.length&&(i[t]=r[0]),i.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.removeAllListeners=function(t){var e,r,s;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[t]&&(0==--this._eventsCount?this._events=n(null):delete r[t]),this;if(0===arguments.length){var o,a=i(r);for(s=0;s<a.length;++s)"removeListener"!==(o=a[s])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(e)for(s=e.length-1;s>=0;s--)this.removeListener(t,e[s]);return this},o.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):_.call(t,e)},o.prototype.listenerCount=_,o.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],4:[function(t,e,r){var n,i,s=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var c,l=[],f=!1,h=-1;function p(){f&&c&&(f=!1,c.length?l=c.concat(l):h=-1,l.length&&d())}function d(){if(!f){var t=u(p);f=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function _(t,e){this.fun=t,this.array=e}function g(){}s.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new _(t,e)),1!==l.length||f||u(d)},_.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=g,s.addListener=g,s.once=g,s.off=g,s.removeListener=g,s.removeAllListeners=g,s.emit=g,s.prependListener=g,s.prependOnceListener=g,s.listeners=function(t){return[]},s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],5:[function(t,e,n){(function(t){!function(r){var i="object"==(void 0===n?"undefined":u(n))&&n&&!n.nodeType&&n,s="object"==(void 0===e?"undefined":u(e))&&e&&!e.nodeType&&e,o="object"==(void 0===t?"undefined":u(t))&&t;o.global!==o&&o.window!==o&&o.self!==o||(r=o);var a,c,l=2147483647,f=36,h=1,p=26,d=38,_=700,g=72,y=128,v="-",b=/^xn--/,m=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=f-h,F=Math.floor,T=String.fromCharCode;function k(t){throw new RangeError(w[t])}function I(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function S(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+I((t=t.replace(x,".")).split("."),e).join(".")}function A(t){for(var e,r,n=[],i=0,s=t.length;i<s;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<s?56320==(64512&(r=t.charCodeAt(i++)))?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--):n.push(e);return n}function C(t){return I(t,function(t){var e="";return t>65535&&(e+=T((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=T(t)}).join("")}function j(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:f}function O(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function D(t,e,r){var n=0;for(t=r?F(t/_):t>>1,t+=F(t/e);t>E*p>>1;n+=f)t=F(t/E);return F(n+(E+1)*t/(t+d))}function P(t){var e,r,n,i,s,o,a,u,c,d,_=[],b=t.length,m=0,x=y,w=g;for((r=t.lastIndexOf(v))<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&k("not-basic"),_.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<b;){for(s=m,o=1,a=f;i>=b&&k("invalid-input"),((u=j(t.charCodeAt(i++)))>=f||u>F((l-m)/o))&&k("overflow"),m+=u*o,!(u<(c=a<=w?h:a>=w+p?p:a-w));a+=f)o>F(l/(d=f-c))&&k("overflow"),o*=d;w=D(m-s,e=_.length+1,0==s),F(m/e)>l-x&&k("overflow"),x+=F(m/e),m%=e,_.splice(m++,0,x)}return C(_)}function N(t){var e,r,n,i,s,o,a,u,c,d,_,b,m,x,w,E=[];for(b=(t=A(t)).length,e=y,r=0,s=g,o=0;o<b;++o)(_=t[o])<128&&E.push(T(_));for(n=i=E.length,i&&E.push(v);n<b;){for(a=l,o=0;o<b;++o)(_=t[o])>=e&&_<a&&(a=_);for(a-e>F((l-r)/(m=n+1))&&k("overflow"),r+=(a-e)*m,e=a,o=0;o<b;++o)if((_=t[o])<e&&++r>l&&k("overflow"),_==e){for(u=r,c=f;!(u<(d=c<=s?h:c>=s+p?p:c-s));c+=f)w=u-d,x=f-d,E.push(T(O(d+w%x,0))),u=F(w/x);E.push(T(O(u,0))),s=D(r,m,n==i),r=0,++n}++r,++e}return E.join("")}if(a={version:"1.4.1",ucs2:{decode:A,encode:C},decode:P,encode:N,toASCII:function(t){return S(t,function(t){return m.test(t)?"xn--"+N(t):t})},toUnicode:function(t){return S(t,function(t){return b.test(t)?P(t.slice(4).toLowerCase()):t})}},i&&s)if(e.exports==i)s.exports=a;else for(c in a)a.hasOwnProperty(c)&&(i[c]=a[c]);else r.punycode=a}(this)}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],6:[function(t,e,r){function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,r,s){e=e||"&",r=r||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var u=1e3;s&&"number"==typeof s.maxKeys&&(u=s.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,h,p,d,_=t[l].replace(a,"%20"),g=_.indexOf(r);g>=0?(f=_.substr(0,g),h=_.substr(g+1)):(f=_,h=""),p=decodeURIComponent(f),d=decodeURIComponent(h),n(o,p)?i(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],7:[function(t,e,r){var n=function(t){switch(void 0===t?"undefined":u(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===(void 0===t?"undefined":u(t))?s(o(t),function(o){var a=encodeURIComponent(n(o))+r;return i(t[o])?s(t[o],function(t){return a+encodeURIComponent(n(t))}).join(e):a+encodeURIComponent(n(t[o]))}).join(e):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var o=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],8:[function(t,e,r){r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":6,"./encode":7}],9:[function(t,e,r){var n=t("punycode"),i=t("./util");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=m,r.resolve=function(t,e){return m(t,!1,!0).resolve(e)},r.resolveObject=function(t,e){return t?m(t,!1,!0).resolveObject(e):e},r.format=function(t){i.isString(t)&&(t=m(t));return t instanceof s?t.format():s.prototype.format.call(t)},r.Url=s;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(l),h=["%","/","?",";","#"].concat(f),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=t("querystring");function m(t,e,r){if(t&&i.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,r),n}s.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+(void 0===t?"undefined":u(t)));var s=t.indexOf("?"),a=-1!==s&&s<t.indexOf("#")?"?":"#",l=t.split(a);l[0]=l[0].replace(/\\/g,"/");var m=t=l.join(a);if(m=m.trim(),!r&&1===t.split("#").length){var x=c.exec(m);if(x)return this.path=m,this.href=m,this.pathname=x[1],x[2]?(this.search=x[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var w=o.exec(m);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,m=m.substr(w.length)}if(r||w||m.match(/^\/\/[^@\/]+@[^@\/]+/)){var F="//"===m.substr(0,2);!F||w&&y[w]||(m=m.substr(2),this.slashes=!0)}if(!y[w]&&(F||w&&!v[w])){for(var T,k,I=-1,S=0;S<p.length;S++){-1!==(A=m.indexOf(p[S]))&&(-1===I||A<I)&&(I=A)}-1!==(k=-1===I?m.lastIndexOf("@"):m.lastIndexOf("@",I))&&(T=m.slice(0,k),m=m.slice(k+1),this.auth=decodeURIComponent(T)),I=-1;for(S=0;S<h.length;S++){var A;-1!==(A=m.indexOf(h[S]))&&(-1===I||A<I)&&(I=A)}-1===I&&(I=m.length),this.host=m.slice(0,I),m=m.slice(I),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var j=this.hostname.split(/\./),O=(S=0,j.length);S<O;S++){var D=j[S];if(D&&!D.match(d)){for(var P="",N=0,R=D.length;N<R;N++)D.charCodeAt(N)>127?P+="x":P+=D[N];if(!P.match(d)){var L=j.slice(0,S),U=j.slice(S+1),B=D.match(_);B&&(L.push(B[1]),U.unshift(B[2])),U.length&&(m="/"+U.join(".")+m),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=n.toASCII(this.hostname));var $=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+$,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!g[E])for(S=0,O=f.length;S<O;S++){var M=f[S];if(-1!==m.indexOf(M)){var G=encodeURIComponent(M);G===M&&(G=escape(M)),m=m.split(M).join(G)}}var z=m.indexOf("#");-1!==z&&(this.hash=m.substr(z),m=m.slice(0,z));var V=m.indexOf("?");if(-1!==V?(this.search=m.substr(V),this.query=m.substr(V+1),e&&(this.query=b.parse(this.query)),m=m.slice(0,V)):e&&(this.search="",this.query={}),m&&(this.pathname=m),v[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){$=this.pathname||"";var H=this.search||"";this.path=$+H}return this.href=this.format(),this},s.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",s=!1,o="";this.host?s=t+this.host:this.hostname&&(s=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(s+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(o=b.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==s?(s="//"+(s||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):s||(s=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),e+s+(r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+n},s.prototype.resolve=function(t){return this.resolveObject(m(t,!1,!0)).format()},s.prototype.resolveObject=function(t){if(i.isString(t)){var e=new s;e.parse(t,!1,!0),t=e}for(var r=new s,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=t[l])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!v[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var p=f[h];r[p]=t[p]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||y[t.protocol])r.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var _=r.pathname||"",g=r.search||"";r.path=_+g}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),m=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=m||b||r.host&&t.pathname,w=x,E=r.pathname&&r.pathname.split("/")||[],F=(d=t.pathname&&t.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(F&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),x=x&&(""===d[0]||""===E[0])),m)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(F)r.hostname=r.host=E.shift(),(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift());return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var T=E.slice(-1)[0],k=(r.host||t.host||E.length>1)&&("."===T||".."===T)||""===T,I=0,S=E.length;S>=0;S--)"."===(T=E[S])?E.splice(S,1):".."===T?(E.splice(S,1),I++):I&&(E.splice(S,1),I--);if(!x&&!w)for(;I--;I)E.unshift("..");!x||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),k&&"/"!==E.join("/").substr(-1)&&E.push("");var A,C=""===E[0]||E[0]&&"/"===E[0].charAt(0);F&&(r.hostname=r.host=C?"":E.length?E.shift():"",(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.host=r.hostname=A.shift()));return(x=x||r.host&&E.length)&&!C&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{"./util":10,punycode:5,querystring:8}],10:[function(t,e,r){e.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===(void 0===t?"undefined":u(t))&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},{}],11:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],12:[function(t,e,r){e.exports=function(t){return t&&"object"===(void 0===t?"undefined":u(t))&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],13:[function(t,e,n){(function(e,r){var i=/%[sdj%]/g;n.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(a(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,s=n.length,o=String(t).replace(i,function(t){if("%%"===t)return"%";if(r>=s)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),u=n[r];r<s;u=n[++r])g(u)||!x(u)?o+=" "+u:o+=" "+a(u);return o},n.deprecate=function(t,i){if(b(r.process))return function(){return n.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var s=!1;return function(){if(!s){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),s=!0}return t.apply(this,arguments)}};var s,o={};function a(t,e){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(e)?r.showHidden=e:e&&n._extend(r,e),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),f(r,t,r.depth)}function c(t,e){var r=a.styles[e];return r?"["+a.colors[r][0]+"m"+t+"["+a.colors[r][1]+"m":t}function l(t,e){return t}function f(t,e,r){if(t.customInspect&&e&&F(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return v(i)||(i=f(t,i,r)),i}var s=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(y(e))return t.stylize(""+e,"number");if(_(e))return t.stylize(""+e,"boolean");if(g(e))return t.stylize("null","null")}(t,e);if(s)return s;var o=Object.keys(e),a=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),E(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(e);if(0===o.length){if(F(e)){var u=e.name?": "+e.name:"";return t.stylize("[Function"+u+"]","special")}if(m(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toString.call(e),"date");if(E(e))return h(e)}var c,l="",x=!1,T=["{","}"];(d(e)&&(x=!0,T=["[","]"]),F(e))&&(l=" [Function"+(e.name?": "+e.name:"")+"]");return m(e)&&(l=" "+RegExp.prototype.toString.call(e)),w(e)&&(l=" "+Date.prototype.toUTCString.call(e)),E(e)&&(l=" "+h(e)),0!==o.length||x&&0!=e.length?r<0?m(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),c=x?function(t,e,r,n,i){for(var s=[],o=0,a=e.length;o<a;++o)S(e,String(o))?s.push(p(t,e,r,n,String(o),!0)):s.push("");return i.forEach(function(i){i.match(/^\d+$/)||s.push(p(t,e,r,n,i,!0))}),s}(t,e,r,a,o):o.map(function(n){return p(t,e,r,a,n,x)}),t.seen.pop(),function(t,e,r){if(t.reduce(function(t,e){return 0,e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,l,T)):T[0]+l+T[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,s){var o,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),S(n,i)||(o="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=g(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(a=s?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")),b(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function d(t){return Array.isArray(t)}function _(t){return"boolean"==typeof t}function g(t){return null===t}function y(t){return"number"==typeof t}function v(t){return"string"==typeof t}function b(t){return void 0===t}function m(t){return x(t)&&"[object RegExp]"===T(t)}function x(t){return"object"===(void 0===t?"undefined":u(t))&&null!==t}function w(t){return x(t)&&"[object Date]"===T(t)}function E(t){return x(t)&&("[object Error]"===T(t)||t instanceof Error)}function F(t){return"function"==typeof t}function T(t){return Object.prototype.toString.call(t)}function k(t){return t<10?"0"+t.toString(10):t.toString(10)}n.debuglog=function(t){if(b(s)&&(s=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(s)){var r=e.pid;o[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else o[t]=function(){};return o[t]},n.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=_,n.isNull=g,n.isNullOrUndefined=function(t){return null==t},n.isNumber=y,n.isString=v,n.isSymbol=function(t){return"symbol"===(void 0===t?"undefined":u(t))},n.isUndefined=b,n.isRegExp=m,n.isObject=x,n.isDate=w,n.isError=E,n.isFunction=F,n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===(void 0===t?"undefined":u(t))||void 0===t},n.isBuffer=t("./support/isBuffer");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(t,e){return Object.prototype.hasOwnProperty.call(t,e)}n.log=function(){console.log("%s - %s",function(){var t=new Date,e=[k(t.getHours()),k(t.getMinutes()),k(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}(),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!x(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t("_process"),void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":12,_process:4,inherits:11}],14:[function(t,e,r){/*! @license MIT ©2013-2016 Ruben Verborgh, Ghent University - imec */var n=t("events").EventEmitter,i=t("asynciterator"),s=t("parse-link-header"),o=t("lodash");t("setimmediate");var a=o.object(["accept-encoding","user-agent","referer"]),u=Object.create(null);function c(t){return t?t.replace(/\?.*$/,""):""}e.exports=function(t){u[c(t.url)]&&delete t.headers["accept-datetime"];var e=new XMLHttpRequest,r=t.headers;for(var o in e.open(t.method,t.url,!0),e.timeout=t.timeout,r)o in a||!r[o]||e.setRequestHeader(o,r[o]);var l=new n;return l.abort=function(){e.abort()},e.onload=function(){var n=i.single(e.responseText||"");n.statusCode=e.status;for(var o,a=n.headers={},f=e.getAllResponseHeaders()||"",h=/^([^:\n\r]+):[ \t]*([^\r\n]*)$/gm;o=h.exec(f);)a[o[1].toLowerCase()]=o[2];if(l.emit("response",n),r["accept-datetime"]&&a["memento-datetime"]){var p=c(a["content-location"]||t.url);if(!u[p]){var d=a.link&&s(a.link);p!==c(d&&d.timegate&&d.timegate.url)&&(u[p]=!0)}}},e.onerror=function(){l.emit("error",new Error("Error requesting "+t.url))},e.ontimeout=function(){l.emit("error",new Error("Timeout requesting "+t.url))},e.send(),l}},{asynciterator:37,events:3,lodash:44,"parse-link-header":54,setimmediate:57}],15:[function(t,e,r){/*! @license MIT ©2015-2016 Ruben Verborgh, Ghent University - imec */r.createHash=function(){var t;return{update:function(e){t?t+=e:t=e},digest:function(){return function(t){var e,r,u,c=(t+="").length,l=~~((c/4+2+15)/16),f=new Array(l);for(e=0,u=0;e<l;e++)for(f[e]=new Array(16),r=0;r<16;r++,u++)f[e][r]=(u<c?t.charCodeAt(u)<<24:0)|(++u<c?t.charCodeAt(u)<<16:0)|(++u<c?t.charCodeAt(u)<<8:0)|(++u<c?t.charCodeAt(u):0);f[l-1][14]=~~((t.length-1)/i),f[l-1][15]=8*(t.length-1)&4294967295;var h,p,d,_,g,y,v=1732584193,b=4023233417,m=2562383102,x=271733878,w=3285377520,E=new Array(80);for(e=0;e<l;e++){for(y=0;y<16;y++)E[y]=f[e][y];for(y=16;y<80;y++)E[y]=o(E[y-3]^E[y-8]^E[y-14]^E[y-16],1);for(h=v,p=b,d=m,_=x,g=w,y=0;y<80;y++){var F=~~(y/20),T=o(h,5)+s(F,p,d,_)+g+n[F]+E[y]&4294967295;g=_,_=d,d=o(p,30),p=h,h=T}v=v+h&4294967295,b=b+p&4294967295,m=m+d&4294967295,x=x+_&4294967295,w=w+g&4294967295}return a(v)+a(b)+a(m)+a(x)+a(w)}(t)}}};/*! @license MIT ©2002-2014 Chris Veness */
var n=[1518500249,1859775393,2400959708,3395469782],i=Math.pow(2,35);function s(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function o(t,e){return t<<e|t>>>32-e}function a(t){for(var e="",r=7;r>=0;r--)e+=(t>>>4*r&15).toString(16);return e}},{}],16:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("./MetadataExtractor"),i=t("lodash");function s(t){if(!(this instanceof s))return new s(t);n.call(this),this._extractors=i.isArray(t)?{"":t}:t,i.any(this._extractors,"length")||(this._extractors=null)}n.inherits(s),s.prototype._extract=function(t,e,r){i.each(this._extractors||r(null,{})&&null,function(n,s){var o,a=n.length;function u(t,e){t||(o=o?i.defaults(o,e):e),0==--a&&(s&&(e=o,(o={})[s]=e),r(null,o||{}))}i.each(n,function(r){r.extract(t,e,u)})})},e.exports=s},{"./MetadataExtractor":19,lodash:44}],17:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("./MetadataExtractor"),i=t("uritemplate"),s=t("../util/RdfUtil"),o=t("assert"),a=["first","next","previous","last"],u={getFragmentUrl:function(t){throw new Error("The fragment "+this.fragment+" does not contain Triple Pattern Fragment hypermedia controls.")}};function c(){if(!(this instanceof c))return new c;n.call(this)}a.forEach(function(t){Object.defineProperty(u,t,{get:function(){throw new Error("The fragment "+this.fragment+" does not contain controls for "+t+".")}})}),n.inherits(c),c.prototype._extract=function(t,e,r){var n=Object.create(null);e.on("data",function(t){if(0===t.predicate.indexOf(s.HYDRA)){var e=t.predicate.substr(s.HYDRA.length),r=n[e]||(n[e]={});(r[t.subject]||(r[t.subject]=[])).push(t.object)}}),e.on("end",function(){var e=Object.create(u);e.fragment=t.fragmentUrl,a.forEach(function(t){var r=n[t]||n[t+"Page"],i=r&&r[e.fragment];i&&i.length>0&&Object.defineProperty(e,t,{value:i[0],enumerable:!0})});var c=n.search;if(c){var l=c[Object.keys(c)[0]][0],f=(n.template||{})[l]||[];o(1===f.length,"Expected 1 hydra:template for "+l);var h=s.getLiteralValue(f[0]),p=i.parse(h),d=(n.mapping||{})[l]||[];o(d.length>=3,"Expected at least 3 hydra:mappings for "+l),d=d.reduce(function(t,e){var r=((n.variable||{})[e]||[])[0],i=((n.property||{})[e]||[])[0];return o(r,"Expected a hydra:variable for "+e),o(i,"Expected a hydra:property for "+e),t[i]=s.getLiteralValue(r),t},{}),e.getFragmentUrl=function(t){var e={};return e[d[s.RDF_SUBJECT]]=t.subject,e[d[s.RDF_PREDICATE]]=t.predicate,e[d[s.RDF_OBJECT]]=t.object,p.expand(e)}}r(null,e)})},e.exports=c},{"../util/RdfUtil":34,"./MetadataExtractor":19,assert:1,uritemplate:61}],18:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("./MetadataExtractor"),i=t("../util/RdfUtil"),s=a([i.VOID_TRIPLES,i.HYDRA_TOTALITEMS]);function o(t){if(!(this instanceof o))return new o(t);n.call(this),this._countPredicates=a(t&&t.countPredicates)||s}function a(t){return t&&t.reduce(function(t,e){return t[e]=!0,t},Object.create(null))}n.inherits(o),o.prototype._extract=function(t,e,r){var n=this._countPredicates;function s(e){if(e.predicate in n&&i.decodedURIEquals(e.subject,t.fragmentUrl)){var r=e.object.match(/\d+/);r&&o({totalTriples:parseInt(r[0],10)})}}function o(t){e.removeListener("end",o),e.removeListener("data",s),r(null,t||{})}e.on("end",o),e.on("data",s)},e.exports=o},{"../util/RdfUtil":34,"./MetadataExtractor":19}],19:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("util");function i(){if(!(this instanceof i))return new i}i.inherits=function(t){n.inherits(t,this),t.inherits=this.inherits},i.prototype.extract=function(t,e,r){if(r)return e?void this._extract(t||{},e,r):r(null,{})},i.prototype._extract=function(t,e,r){throw new Error("Not implemented")},e.exports=i},{util:13}],20:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("asynciterator").SimpleTransformIterator,i=t("crypto");function s(t,e){if(!(this instanceof s))return new s(t,e);n.call(this,t,e),this._uniques=Object.create(null)}n.subclass(s),s.prototype._filter=function(t){var e=this._uniques,r=this._hash(t);r in e||(e[r]=!0,this._push(t))},s.prototype._hash=function(t){var e=i.createHash("sha1");return e.update(JSON.stringify(t)),e.digest("base64")},e.exports=s},{asynciterator:37,crypto:15}],21:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("asynciterator").TransformIterator;function i(t,e,r){if(!(this instanceof i))return new i(t,e,r);"function"!=typeof e&&(r=e,e=null),n.call(this,t,r);var o=r&&r.window;this._windowLength=isFinite(o)&&o>0?~~o:1/0,this._sort=e||s,this._sorted=[]}function s(t,e){return t<e?-1:t>e?1:0}n.subclass(i),i.prototype._read=function(t,e){var r,n=this._sorted,i=this._source,s=n.length;if(i){for(;s!==this._windowLength&&null!==(r=i.read());){for(var o,a,u=0,c=s-1;u<=c;)(a=this._sort(r,n[o=u+c>>1]))<0?u=o+1:a>0?c=o-1:(u=o,c=-1);n.splice(u,0,r),s++}s===this._windowLength&&this._push(n.pop())}e()},i.prototype._flush=function(t){for(var e=this._sorted,r=e.length;r--;)this._push(e.pop());t()},e.exports=i},{asynciterator:37}],22:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("sparqljs").Parser,i=t("asynciterator"),s=i.TransformIterator,o=t("../triple-pattern-fragments/ReorderingGraphPatternIterator"),a=t("./UnionIterator"),u=t("./SortIterator"),c=t("./DistinctIterator"),l=t("../util/SparqlExpressionEvaluator"),f=t("lodash"),h=t("../util/RdfUtil"),p=t("../util/CustomError"),d={SELECT:g,CONSTRUCT:y,DESCRIBE:v,ASK:b};function _(t,e,r){"function"!=typeof t.read&&(r=e,e=t,t=null),r=r||{},t=t||i.single({});try{"string"==typeof e&&(e=new n(r.prefixes).parse(e));var s,o=d[e.queryType];if(!o)throw new Error("No iterator available for query type: "+e.queryType);for(var a=new m(t,(s=new o(null,e,r)).patterns||e.where,r),f=e.order&&e.order.length-1;f>=0;f--){var h=new l(e.order[f].expression),p=!e.order[f].descending;a=new u(a,function(t,e){var r="",n="";try{r=h(t)}catch(t){}try{n=h(e)}catch(t){}return r<n?p?-1:1:r>n?p?1:-1:0},r)}return s.source=a,e.distinct&&(s=new c(s,r)),("offset"in e||"limit"in e)&&(s=s.transform({offset:e.offset,limit:e.limit})),s.queryType=e.queryType,s}catch(t){throw t=/Parse error/.test(t.message)?new w(e,t):new E(e,t)}}function g(t,e,r){s.call(this,t,r),this.setProperty("variables",e.variables)}function y(t,e,r){s.call(this,t,r),this._template=e.template.filter(function(t){return h.hasVariables(t)||this._push(t)},this),this._blankNodeId=0}function v(t,e,r){for(var n=e.variables,i=e.template=[],s=0,o=n.length;s<o;s++)i.push(h.triple(n[s],"?__predicate"+s,"?__object"+s));e.where=e.where.concat({type:"bgp",triples:i}),y.call(this,t,e,r)}function b(t,e,r){s.call(this,t,r),this._result=!1}function m(t,e,r){return e.reduce(function(t,e){return new x(t,e,r)},t)}function x(t,e,r){var n=r.optional?f.create(r,{optional:!1}):r;switch(e.type){case"bgp":return new o(t,e.triples,r);case"group":return new m(t,e.patterns,n);case"optional":return n=f.create(r,{optional:!0}),new m(t,e.patterns,n);case"union":return new a(e.patterns.map(function(e){return new x(t.clone(),e,n)}),r);case"filter":var i=new l(e.expression);return t.filter(function(t){try{return!/^"false"|^"0"/.test(i(t))}catch(t){return!1}});default:throw new Error("Unsupported group type: "+e.type)}}s.subclass(_),_.subclass(g),g.prototype._transform=function(t,e){function r(e){var r=t[e];return"string"==typeof r?h.deskolemize(r):null}this._push(this.getProperty("variables").reduce(function(e,n){if("*"!==n)e[n]=r(n);else for(n in t)h.isVariable(n)&&(e[n]=r(n));return e},Object.create(null))),e()},_.subclass(y),y.prototype._transform=function(t,e){var r=Object.create(null);this._template.forEach(function(e){var n=e.subject,i=e.predicate,s=e.object,o=n[0],a=i[0],u=s[0];if("?"===o){if(void 0===(n=h.deskolemize(t[n])))return}else"_"===o&&(n=r[n]||(r[n]="_:b"+this._blankNodeId++));if("?"===a){if(void 0===(i=h.deskolemize(t[i])))return}else"_"===a&&(i=r[i]||(r[i]="_:b"+this._blankNodeId++));if("?"===u){if(void 0===(s=h.deskolemize(t[s])))return}else"_"===u&&(s=r[s]||(r[s]="_:b"+this._blankNodeId++));this._push({subject:n,predicate:i,object:s})},this),e()},y.subclass(v),_.subclass(b),b.prototype._transform=function(t,e){this._result=!0,this.close(),e()},b.prototype._flush=function(t){this._push(this._result),t()},i.subclass(m),i.subclass(x);var w=p("InvalidQueryError",function(t,e){this.message="Syntax error in query\n"+e.message}),E=p("UnsupportedQueryError",function(t,e){this.message="The query is not yet supported\n"+e.message});e.exports=_,_.InvalidQueryError=w,_.UnsupportedQueryError=E},{"../triple-pattern-fragments/ReorderingGraphPatternIterator":25,"../util/CustomError":30,"../util/RdfUtil":34,"../util/SparqlExpressionEvaluator":35,"./DistinctIterator":20,"./SortIterator":21,"./UnionIterator":23,asynciterator:37,lodash:44,sparqljs:60}],23:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("asynciterator").BufferedIterator;function i(t,e){if(!(this instanceof i))return new i(t,e);if(n.call(this,e),this._sources=[],this._sourceIndex=0,t&&t.length)for(var r=function(){o._fillBuffer()},s=function(t){o.emit("error",t)},o=this,a=0,u=t.length;a<u;a++){var c=t[a];c&&!c.ended&&(this._sources.push(c),c.on("readable",r),c.on("end",r),c.on("error",s))}}n.subclass(i),i.prototype._read=function(t,e){for(var r=this._sources,n=null,i=r.length;null===n&&i--;){var s=r[this._sourceIndex];n=s.read(),s.ended?r.splice(this._sourceIndex,1):this._sourceIndex++,this._sourceIndex>=r.length&&(this._sourceIndex=0)}null!==n&&this._push(n),r.length||this.close(),e()},e.exports=i},{asynciterator:37}],24:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var i=t("../util/HttpClient"),s=t("asynciterator").BufferedIterator,o=t("../util/RdfUtil"),a=t("lru-cache"),u=t("../extractors/CompositeExtractor"),c=t("../extractors/CountExtractor"),l=t("../extractors/ControlsExtractor"),f=t("lodash"),h="application/trig;q=1.0,application/n-quads;q=0.7,text/turtle;q=0.6,application/n-triples;q=0.3,text/n3;q=0.2",p=[t("./TrigFragmentIterator"),t("./TurtleFragmentIterator")];function d(t,e){if(!(this instanceof d))return new d(t,e);e=f.defaults(e||{},{contentType:h});var r=this._cache=new a({max:100});if(this._httpClient=e.httpClient||new i(e),this._metadataExtractor=e.metadataExtractor||new u({metadata:[new c],controls:[new l]}),t){if("string"==typeof t){var n=this._startFragmentUrl=t;(t=new _(this)).loadFromUrl(n)}this._startFragment=t,t.setMaxListeners(100),t.once("error",function(e){r.reset(),t.error=e}),t.getProperty("controls",function(){t.error=null,t.removeAllListeners("error")})}}function _(t,e){if(!(this instanceof _))return new _(t);s.call(this),this._fragmentsClient=t,this._pattern=e}d.prototype.getFragmentByPattern=function(t){var e=this._cache,r=JSON.stringify(t);if(e.has(r))return e.get(r).clone();var i=new _(this,t),s=this._startFragment;if(null!==s.error){if(s.error)return n(a),i;s.once("error",a)}function a(){i.emit("error",s.error),i.close()}return s.getProperty("controls",function(e){var r=o.isVariableOrBlank(t.subject)?null:t.subject,n=o.isVariableOrBlank(t.predicate)?null:t.predicate,s=o.isVariableOrBlank(t.object)?null:t.object;if(o.isLiteral(r)||o.isLiteral(n))return i.empty();t={subject:r,predicate:n,object:s},i.loadFromUrl(e.getFragmentUrl(t))}),e.set(r,i),i.clone()},d.prototype.abortAll=function(){this._httpClient.abortAll()},s.subclass(_),_.prototype._read=function(t,e){for(var r;t-- >0&&this._page&&(r=this._page.read());)this._push(r);e()},_.prototype.loadFromUrl=function(t){var e,r=this,i=this._fragmentsClient,s={"user-agent":"Triple Pattern Fragments Client"};i._startFragmentUrl&&(s.referer=i._startFragmentUrl),(e=i._httpClient.get(t,s)).on("error",function(t){r.emit("error",t)}),e.getProperty("statusCode",function(s){if(200!==s)return e.emit("error",new Error("Could not retrieve "+t+" ("+s+")")),r.close();e.getProperty("contentType",function(s){var o=f.find(p,function(t){return t.supportsContentType(s)});if(!o)return r.emit("error",new Error("No parser for "+s+" at "+t));var a=r._page=new o(e,t);a.on("readable",function(){r.readable=!0});var u={};function c(){var t;try{t=u&&u.next}catch(t){}t?r.loadFromUrl(t):r.close()}i._metadataExtractor.extract({fragmentUrl:t},a.metadataStream,function(t,e){for(var n in e)r.getProperty(n)||r.setProperty(n,e[n]);u=e.controls||u}),a.on("end",function(){n(c)}),a.on("error",function(t){r.emit("error",t)}),r.readable=!0})})},_.prototype.empty=function(){return this.getProperty("metadata")||this.setProperty("metadata",{totalTriples:0}),this.close(),this},_.prototype.toString=function(){return"["+this.constructor.name+" {"+o.toQuickString(this._pattern)+")}"},e.exports=d},{"../extractors/CompositeExtractor":16,"../extractors/ControlsExtractor":17,"../extractors/CountExtractor":18,"../util/HttpClient":32,"../util/RdfUtil":34,"./TrigFragmentIterator":26,"./TurtleFragmentIterator":28,asynciterator:37,lodash:44,"lru-cache":45}],25:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("asynciterator"),i=n.TransformIterator,s=n.MultiTransformIterator,o=t("../util/RdfUtil"),a=t("lodash"),u=t("../util/ExecutionLogger")("ReorderingGraphPatternIterator"),c=t("./TriplePatternIterator");function l(t,e,r){return e&&e.length?1===e.length?new c(t,e[0],r):this instanceof l?(s.call(this,t,r),this._pattern=e,this._options=r||(r={}),void(this._client=r.fragmentsClient)):new l(t,e,r):new i(t,r)}s.subclass(l),l.prototype._createTransformer=function(t){var e,r=o.applyBindings(t,this._pattern),s=this._options,f=a.sortBy(o.findConnectedPatterns(r),function(t){var e=a.union.apply(a,t.map(o.getVariables)).length;return-(r.length*e+t.length)}),h=f.pop(),p=h.length;if(1===p)return g(h.pop());e=new i;var d=0,_=1/0;return h.forEach(function(t,r){var n=this._client.getFragmentByPattern(t);n.getProperty("metadata",function(t){if(n.close(),!t.totalTriples)return e.close();t.totalTriples<_&&(d=r,_=t.totalTriples),0==--p&&(e.source=g(h.splice(d,1)[0]))}),n.on("error",function(t){u.warning(t.message),n.getProperty("metadata")||n.setProperty("metadata",{totalTriples:0})})},this),e;function g(e){var r=n.single(t),i=new c(r,e,s);for(h&&0!==h.length&&(i=new l(i,h,s));h=f.pop();)i=new l(i,h,s);return i}},l.prototype.toString=function(){return"["+this.constructor.name+" {"+this._pattern.map(o.toQuickString).join(" ")+"}]\n <= "+this.getSourceString()},e.exports=l},{"../util/ExecutionLogger":31,"../util/RdfUtil":34,"./TriplePatternIterator":27,asynciterator:37,lodash:44}],26:[function(t,e,r){/*! @license MIT ©2013-2016 Ruben Verborgh, Ghent University - imec */var n=t("./TurtleFragmentIterator");function i(t,e){if(!(this instanceof i))return new i(t,e);n.call(this,t,e)}n.subclass(i),i.prototype._processTriple=function(t){t.graph?this.metadataStream._push(t):this._push(t)},i.supportsContentType=function(t){return/^application\/(?:trig|n-quads)$/.test(t)},e.exports=i},{"./TurtleFragmentIterator":28}],27:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("asynciterator").MultiTransformIterator,i=t("../util/RdfUtil"),s=t("../util/ExecutionLogger")("TriplePatternIterator");function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);n.call(this,t,r),this._pattern=e,this._client=r&&r.fragmentsClient}n.subclass(o),o.prototype._createTransformer=function(t,e){var r=this._pattern,n=i.applyBindings(t,r),o=this._client.getFragmentByPattern(n);return s.logFragment(this,o,t),o.on("error",function(t){s.warning(t.message)}),o.map(function(e){try{return i.extendBindings(t,r,e)}catch(t){return null}})},o.prototype.toString=function(){return"["+this.constructor.name+" {"+i.toQuickString(this._pattern)+")}\n <= "+this.getSourceString()},e.exports=o},{"../util/ExecutionLogger":31,"../util/RdfUtil":34,asynciterator:37}],28:[function(t,e,r){/*! @license MIT ©2013-2016 Ruben Verborgh, Ghent University - imec */var n=t("asynciterator").TransformIterator,i=t("asynciterator").BufferedIterator,s=t("../util/RdfUtil"),o=t("n3");function a(t,e){if(!(this instanceof a))return new a(t,e);if(n.call(this,t),this._fragmentUrl=e,this.metadataStream=new i,t&&t.ended)return this.metadataStream._push(null);var r=this;this.metadataStream.on("newListener",function t(e){"data"!==e&&"end"!==e||(this.removeListener("newListener",t),r.maxBufferSize=1/0)}),this._parser=new o.Parser({documentURI:e}),this._parser.parse({on:function(t,e){"data"===t?r._parseData=e:"end"===t&&(r._parseEnd=e)}},function(t,e){t?r.emit("error",t):e&&r._processTriple(e)})}n.subclass(a),a.prototype._transform=function(t,e){this._parseData(t),e()},a.prototype._processTriple=function(t){t.subject!==this._fragmentUrl&&0!==t.predicate.indexOf(s.HYDRA)?this._push(t):this.metadataStream._push(t)},a.prototype._flush=function(t){this._parseEnd&&this._parseEnd(),this.metadataStream.close(),t()},a.supportsContentType=function(t){return/^(?:text\/turtle|text\/n3|application\/n-triples)$/.test(t)},e.exports=a},{"../util/RdfUtil":34,asynciterator:37,n3:46}],29:[function(t,e,r){/*! @license MIT ©2015-2016 Miel Vander Sande, Ghent University - imec */var n=t("../FragmentsClient"),i=t("asynciterator").BufferedIterator,s=t("../../util/RdfUtil"),o=t("lodash");function a(t,e){if(!(this instanceof a))return new a(t,e);if(!o.isArray(t))return new n(t,e);if(1===t.length)return new n(t[0],e);var r=this._clients=(t||[]).map(function(t){var r=new n(t,e);return r._emptyPatterns=[],r});this._options=o.extend({errorThreshold:r.length-1},e)}function u(t,e){if(!(this instanceof u))return new u(t,e);if(i.call(this,e),!t||!t.length)return this.empty(),this;var r=t.length,n=t.length,s=e.errorThreshold||0,a=this._metadata={totalTriples:0};t=this._fragments=o.indexBy(t,c);var l=this;function f(){l.readable=!0}o.each(t,function(e,i){e.on("readable",f);var u=o.once(function(t){t.totalTriples&&(a.totalTriples+=t.totalTriples),0==--n&&l.setProperty("metadata",a)});e.getProperty("metadata",u);var c=o.once(function(){delete t[i],0==--r&&l.close()});e.once("end",c),e.once("error",function(t){if(0==s--)return l.emit("error",t);u({}),c()})})}function c(t,e){return e}a.prototype.getFragmentByPattern=function(t){var e=[];return this._clients.forEach(function(r){if(!o.some(r._emptyPatterns,s.isBoundPatternOf.bind(null,t))){var n=r.getFragmentByPattern(t);n.getProperty("metadata",function(e){0===e.totalTriples&&r._emptyPatterns.push(t)}),e.push(n)}}),new u(e,this._options)},a.prototype.abortAll=function(){this._clients.forEach(function(t){t.abortAll()})},i.subclass(u),u.prototype._read=function(t,e){var r=this._fragments;for(var n in r){for(var i,s=r[n];t>0&&(i=s.read());)this._push(i),t--;if(!t)break}e()},u.prototype.empty=function(){this.getProperty("metadata")||this.setProperty("metadata",{totalTriples:0}),this.close()},u.prototype.toString=function(){return this.toString()+"{"+o.map(this._fragments,function(t){return t.toString()}).join(", ")+"}"},e.exports=a},{"../../util/RdfUtil":34,"../FragmentsClient":24,asynciterator:37,lodash:44}],30:[function(t,e,r){e.exports=/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */
function(t,e){function r(r){this.name=t,Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=r,e&&e.apply(this,arguments)}return r.prototype=new Error,r.prototype.name=t,r.prototype.constructor=r,r}},{}],31:[function(t,e,r){/*! @license MIT ©2013-2016 Miel Vander Sande, Ghent University - imec */var n=t("./Logger"),i=t("util"),s=0,o=0;function a(t){if(!(this instanceof a))return new a(t);n.call(this,t)}t("asynciterator").prototype._uniqueId=function(){return this.__uniqueid||(this.__uniqueid=++s),this.__uniqueid},i.inherits(a,n),a.prototype.logBinding=function(t,e,r,i){n.enabled("debug")&&this.debug(++o,t._uniqueId(),e,r,i)},a.prototype.logFragment=function(t,e,r){if(n.enabled("debug")){var i=this;e.getProperty("metadata",function(e){i.logBinding(t,r,t._pattern,e&&e.totalTriples)})}},e.exports=a},{"./Logger":33,asynciterator:37,util:13}],32:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var i=t("asynciterator").TransformIterator,s=t("../util/Logger.js"),o=t("lodash"),a=t("parse-link-header");function u(e){if(!(this instanceof u))return new u(e);e=e||{},this._request=e.request||t("./Request"),this._defaultHeaders=o.pick({accept:e.contentType||"*/*","accept-encoding":"gzip,deflate","accept-datetime":e.datetime&&e.datetime.toUTCString()},o.identity),this._logger=e.logger||s("HttpClient"),this._maxActiveRequestCount=e.concurrentRequests||10,this._requestId=0,this._queued=[],this._active={},this._activeCount=0}u.prototype.get=function(t,e,r){return this.request(t,"GET",e,r)},u.prototype.request=function(t,e,r,n){var s=o.assign({id:this._requestId++,startTime:new Date,url:t,method:e||"GET",headers:o.assign({},this._defaultHeaders,r),timeout:5e3,followRedirect:!0,response:new i({maxBufferSize:1/0})},n);return this._queued.push(s),this._startNextRequest(),s.response},u.prototype._startNextRequest=function(t){t&&delete this._active[t.id]&&this._activeCount--,this._activeCount<this._maxActiveRequestCount&&this._queued.length&&this._startRequest(this._queued.shift())},u.prototype._startRequest=function(t){var e,r=this;this._logger.info("Requesting",t.url);try{e=this._request(t)}catch(t){return n(i,t)}function i(e){r._startNextRequest(t),t.aborted||"ETIMEDOUT"===e.code||t.response.emit("error",e)}this._activeCount++,this._active[t.id]=t,e.on("response",function(e){if(r._startNextRequest(t),t.headers["accept-datetime"]&&!e.headers["memento-datetime"]){var n=e.headers.link&&a(e.headers.link);if(n&&n.timegate){var i=r.request(n.timegate.url,t.method,t.headers);return t.response.source=i,void t.response.copyProperties(i,["statusCode","contentType","responseTime"])}}t.response.source=e,t.response.setProperties({statusCode:e.statusCode,contentType:(e.headers["content-type"]||"").replace(/\s*(?:;.*)?$/,""),responseTime:new Date-t.startTime})}),e.on("error",i),t.abort=function(){if(!t.aborted){t.aborted=!0;try{e.abort()}catch(t){}r._startNextRequest(t)}}},u.prototype.abortAll=function(){for(var t in this._queued=[],this._active)this._active[t].abort()},e.exports=u},{"../util/Logger.js":33,"./Request":14,asynciterator:37,lodash:44,"parse-link-header":54}],33:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh and Miel Vander Sande, Ghent University - imec */var n=t("./RdfUtil"),i=t("lodash"),s=["EMERGENCY","ALERT","CRITICAL","ERROR","WARNING","NOTICE","INFO","DEBUG"];function o(t){if(!(this instanceof o))return new o(t);this._name=t||""}o.prototype.log=function(t,e){(e=i.map(e,this._format,this)).unshift("["+new Date+"]",t,this._name),this._print(e)},s.forEach(function(t){o.prototype[t.toLowerCase()]=function(){this.log(t,arguments)}}),o.prototype._format=function(t){return t?t instanceof Array?JSON.stringify(t.map(this._format,this)):t.subject&&t.predicate&&t.object?n.toQuickString(t):"string"==typeof t?t:JSON.stringify(t):""+t},o.prototype._print=function(t){console.error.apply(console,t)},o.prototype._printCSV=function(t){console.error(t.map(function(t){return/["\n\r,]/.test(t)?'"'+t.replace(/"/g,'""')+'"':t}).join(","))},o.setLevel=function(t){var e=i.indexOf(s,t.toUpperCase());if(e>=0)for(;++e<s.length;)o.prototype[s[e].toLowerCase()]=i.noop},o.enabled=function(t){return t in o.prototype&&o.prototype[t]!==i.noop},o.setMode=function(t){"CSV"===t.toUpperCase()&&(o.prototype._print=o.prototype._printCSV)},e.exports=o},{"./RdfUtil":34,lodash:44}],34:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n=t("n3"),i=t("lodash"),s=/^https?:\/\/[^\/]+\/\.well-known\/genid\/([^]+)$/,o=e.exports=new n.Util({});function a(t,e,r){return e!==r.lastIndexOf(t)}function u(t,e,r){var n=t.replace(/[^a-z]/g,"").toUpperCase();o[n]=e,r&&r.forEach(function(t){o[n+"_"+t.toUpperCase()]=e+t})}o.decodedURIEquals=function(t,e){if(t===e)return!0;try{return decodeURI(t)===decodeURI(e)}catch(t){return!1}},o.deskolemize=function(t){return t&&t.replace(s,function(t,e){return"_:"+e.replace(/\W/g,"_")})},o.triple=function(t,e,r){return{subject:t,predicate:e,object:r}},o.toQuickString=function(t){if(!t)return"";if("string"==typeof t){if(o.isVariableOrBlank(t))return t;if(o.isLiteral(t))return'"'+o.getLiteralValue(t)+'"';var e=t.match(/([a-zA-Z\(\)_\.,'0-9]+)[^a-zAZ]*?$/);return e?e[1]:t}return o.toQuickString(t.subject)+" "+o.toQuickString(t.predicate)+" "+o.toQuickString(t.object)+"."},o.isVariable=function(t){return"string"!=typeof t||"?"===t[0]},o.hasVariables=function(t){return!!t&&(o.isVariable(t.subject)||o.isVariable(t.predicate)||o.isVariable(t.object))},o.getVariables=function(t){var e=[];return o.isVariable(t.subject)&&e.push(t.subject),o.isVariable(t.predicate)&&e.push(t.predicate),o.isVariable(t.object)&&e.push(t.object),e},o.isVariableOrBlank=function(t){return"string"!=typeof t||"?"===t[0]||"_"===t[0]&&":"===t[1]},o.hasVariablesOrBlanks=function(t){return!!t&&(o.isVariableOrBlank(t.subject)||o.isVariableOrBlank(t.predicate)||o.isVariableOrBlank(t.object))},o.tripleFilter=function(t){var e=t||{},r=o.isVariableOrBlank(e.subject)?null:e.subject,n=o.isVariableOrBlank(e.predicate)?null:e.predicate,i=o.isVariableOrBlank(e.object)?null:e.object;return function(t){return!(null!==r&&r!==t.subject||null!==n&&n!==t.predicate||null!==i&&i!==t.object)}},o.applyBindings=function(t,e){return"function"==typeof e.map?e.map(function(e){return o.applyBindings(t,e)}):{subject:t[e.subject]||e.subject,predicate:t[e.predicate]||e.predicate,object:t[e.object]||e.object}},o.findBindings=function(t,e){return o.extendBindings(null,t,e)},o.extendBindings=function(t,e,r){var n=Object.create(null);for(var i in t)n[i]=t[i];return o.addBinding(n,e.subject,r.subject),o.addBinding(n,e.predicate,r.predicate),o.addBinding(n,e.object,r.object),n},o.addBinding=function(t,e,r){if(o.isVariableOrBlank(r))throw new Error("Right-hand side must not be variable.");if(o.isVariableOrBlank(e))if(e in t){if(r!==t[e])throw new Error(["Cannot bind",e,"to",r,"because it was already bound to",t[e]+"."].join(" "))}else t[e]=r;else if(e!==r)throw new Error(["Cannot bind",e,"to",r].join(" "));return t},o.isBoundPatternOf=function(t,e){return(o.isVariable(e.subject)||e.subject===t.subject)&&(o.isVariable(e.predicate)||e.predicate===t.predicate)&&(o.isVariable(e.object)||e.object===t.object)},o.findConnectedPatterns=function(t){if(t.length<=1)return[t];var e,r=t.map(function(t){return{triples:[t],variables:i.values(t).filter(o.isVariableOrBlank)}});do{var n=i.flatten(i.pluck(r,"variables"));if(e=i.find(n,a)){var s=i.groupBy(r,function(t){return i.contains(t.variables,e)});(r=s.false||[]).push({triples:i.union.apply(i,i.pluck(s.true,"triples")),variables:i.union.apply(i,i.pluck(s.true,"variables"))})}}while(e);return i.pluck(r,"triples")},u("rdf","http://www.w3.org/1999/02/22-rdf-syntax-ns#",["type","subject","predicate","object"]),u("void","http://rdfs.org/ns/void#",["triples"]),u("hydra","http://www.w3.org/ns/hydra/core#",["search","template","mapping","property","variable","totalItems"]),u("foaf","http://xmlns.com/foaf/0.1/"),u("dbpedia","http://dbpedia.org/resource/"),u("dbpedia-owl","http://dbpedia.org/ontology/"),Object.freeze(o)},{lodash:44,n3:46}],35:[function(t,e,r){/*! @license MIT ©2014-2016 Ruben Verborgh, Ghent University - imec */var n,i,s,o,a,c=t("n3").Util,l=t("./CustomError"),f="http://www.w3.org/2001/XMLSchema#",h=f+"integer",p=f+"double",d=f+"boolean",_='"true"^^'+d,g='"false"^^'+d,y=c.isLiteral,v=c.getLiteralValue;function b(t){if(!t)return m;var e=t&&t.type||(void 0===t?"undefined":u(t)),r=n[e];if(!r)throw new s(e);return r(t)}function m(){}b.evaluate=function(t,e){return new b(t)(e)},(n={null:function(){return m},string:function(t){return"?"!==t[0]?function(){return t}:function(e){return e&&e[t]}},operation:function(t){var e=t.operator||t.function,r=i[e];if(!r)throw new o(e);if(r.length!==t.args.length)throw new a(e,t.args.length,r.length);if(r.acceptsExpressions)return function(t,e){return function(r){return t.apply(r,e)}}(r,t.args);for(var n=new Array(t.args.length),s=0;s<t.args.length;s++)n[s]=new b(t.args[s]);return function(t,e){return function(r){for(var n=new Array(e.length),i=new Array(e.length),s=0;s<e.length;s++){var o=n[s]=i[s]=e[s](r);if(void 0===o)return;switch(t.type){case"numeric":n[s]=parseFloat(v(o));break;case"boolean":n[s]=o!==g&&(!y(o)||"0"!==v(o))}}var a=t.apply(null,n);switch(t.resultType){case"numeric":return'"'+a+'"^^'+(c.getLiteralType(i[0])||h);case"boolean":return a?_:g;default:return a}}}(r,n)}}).functionCall=n.operation,i={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"=":function(t,e){return t===e},"!=":function(t,e){return t!==e},"<":function(t,e){return t<e},"<=":function(t,e){return t<=e},">":function(t,e){return t>e},">=":function(t,e){return t>=e},"!":function(t){return!t},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},lang:function(t){return'"'+c.getLiteralLanguage(t).toLowerCase()+'"'},langmatches:function(t,e){return(t=t.toLowerCase())===(e=e.toLowerCase())||"*"===(e=v(e))||t.substr(1,e.length+1)===e+"-"},contains:function(t,e){return e=v(e),(t=v(t)).indexOf(e)>=0},regex:function(t,e){return y(t)&&(t=v(t)),new RegExp(v(e)).test(t)},str:function(t){return y(t)?t:'"'+t+'"'},"http://www.w3.org/2001/XMLSchema#integer":function(t){return'"'+Math.floor(t)+'"^^http://www.w3.org/2001/XMLSchema#integer'},"http://www.w3.org/2001/XMLSchema#double":function(t){return(t=t.toFixed()).indexOf(".")<0&&(t+=".0"),'"'+t+'"^^http://www.w3.org/2001/XMLSchema#double'},bound:function(t){if("?"!==t[0])throw new Error("BOUND expects a variable but got: "+t);return t in this?_:g}},["+","-","*","/","<","<=",">",">=",h,p].forEach(function(t){i[t].type="numeric"}),["!","&&","||"].forEach(function(t){i[t].type="boolean"}),["+","-","*","/"].forEach(function(t){i[t].resultType="numeric"}),["!","&&","||","=","!=","<","<=",">",">=","langmatches","contains","regex"].forEach(function(t){i[t].resultType="boolean"}),i.bound.acceptsExpressions=!0,s=l("UnsupportedExpressionError",function(t){this.message="Unsupported expression type: "+t+"."}),o=l("UnsupportedExpressionError",function(t){this.message="Unsupported operator: "+t+"."}),a=l("InvalidArgumentsNumberError",function(t,e,r){this.message="Invalid number of arguments for "+t+": "+e+" (expected: "+r+")."}),e.exports=b,e.exports.UnsupportedExpressionError=s,e.exports.UnsupportedOperatorError=o,e.exports.InvalidArgumentsNumberError=a},{"./CustomError":30,n3:46}],36:[function(t,e,r){/*! @license MIT ©2014-2016 Miel Vander Sande, Ghent University - imec */var n=t("asynciterator").TransformIterator;function i(t){n.call(this,t),this._empty=!0,this._variables=t.getProperty("variables")||[]}n.subclass(i),i.prototype._begin=function(t){this._writeHead(this._variables.map(function(t){return t.substring(1)})),t()},i.prototype._writeHead=function(t){},i.prototype._transform=function(t,e){"boolean"==typeof t?this._writeBoolean(t):this._writeBindings(t),this._empty=!1,e()},i.prototype._writeBindings=function(t){throw new Error("The _writeBindings method has not been implemented.")},i.prototype._writeBoolean=function(t){throw new Error("The _writeBoolean method has not been implemented.")},i.writers={},i.register=function(t,e){i.writers[t]=e},i.instantiate=function(e,r){var n=i.writers[e];if(!n)throw new Error("No writer available for media type "+e+".");return"string"==typeof n&&(n=i.writers[e]=t(n)),new n(r)},e.exports=i},{asynciterator:37}],37:[function(t,e,r){(function(r){var i=t("events").EventEmitter,s=function(){if(void 0===r||r.browser){var e=t("immediate"),i=0;return function(t,r,n,s,o){1e4==i++?setTimeout(t,i=0,r,n,s,o):e(t,r,n,s,o)}}return n}(),o=0,a=1,u=4;function c(){if(!(this instanceof c))return new c;i.call(this),this.on("newListener",p),this._state=a,this._readable=!1}function l(t,e){t.emit(e)}function f(t){t._end()}function h(t){s(f,t)}function p(t){"data"===t&&(this.removeListener("newListener",p),this._addSingleListener("readable",d),this.readable&&s(_,d,this))}function d(){for(var t;this._hasListeners("data")&&null!==(t=this.read());)this.emit("data",t);this._hasListeners("data")||(this.removeListener("readable",d),this._addSingleListener("newListener",p))}function _(t,e){t.call(e)}function g(t,e,r){t.getProperty(r,function(t){e.setProperty(r,t)})}function y(){if(!(this instanceof y))return new y;c.call(this),this._changeState(u,!0)}function v(t){if(!(this instanceof v))return new v(t);c.call(this),this._item=t,null===t?this.close():this.readable=!0}function b(t){return this instanceof b?(c.call(this),t&&t.length>0?(this._buffer=Array.prototype.slice.call(t),void(this.readable=!0)):this.close()):new b(t)}function m(t){if(!(this instanceof m))return new m(t);c.call(this);var e,r=(t=t||{}).step,n=t.end,i=t.start;this._step=r=isFinite(r)?~~r:1,e=r>=0?1/0:-1/0,this._last=n=isFinite(n)?~~n:n===-e?n:e,this._next=i="number"!=typeof i?0:isFinite(i)?~~i:i,!isFinite(i)||(r>=0?i>n:i<n)?this.close():this.readable=!0}function x(t){if(!(this instanceof x))return new x(t);c.call(this);var e=(t=t||{}).maxBufferSize,r=t.autoStart;this._state=o,this._buffer=[],this._pushedCount=0,this.maxBufferSize=e,this._reading=!0,s(w,this,!1!==r||r)}function w(t,e){t._init(e)}function E(t){t._reading||(t._reading=!0,s(F,t))}function F(t){t._reading=!1,t._fillBuffer()}function T(t,e){if(!(this instanceof T))return new T(t,e);t&&U(t.read)||(e||(e=t),t=e&&e.source),x.call(this,e),t&&(this.source=t),this._optional=!(!e||!e.optional)}function k(){return this._source}function I(t){this._destination.emit("error",t)}function S(){this._destination._closeWhenDone()}function A(){this._destination._fillBuffer()}function C(t,e,r){var n,i=t._source;i&&!i.ended&&null!==(n=i.read())?t._optional?j(t,n,e):t._transform(n,e):r()}function j(t,e,r){var n=t._pushedCount;t._transform(e,function(){n===t._pushedCount&&t._push(e),r()})}function O(t,e){if(!(this instanceof O))return new O(t,e);if(T.call(this,t,e),e=e||!U(t&&t.read)&&t){var r=e.limit,n=e.offset,i=e.filter,s=e.map,o=U(e)?e:e.transform,a=e.prepend,u=e.append;n===1/0||r===-1/0?this._limit=0:(isFinite(n)&&(this._offset=Math.max(~~n,0)),isFinite(r)&&(this._limit=Math.max(~~r,0)),U(i)&&(this._filter=i),U(s)&&(this._map=s),U(o)&&(this._transform=o)),a&&(this._prepender=a.on?a:new b(a)),u&&(this._appender=u.on?u:new b(u))}}function D(t,e,r,n){var i,s=t._source;if(s&&!s.ended){for(0===t._limit&&t.close();!t.closed&&t._pushedCount<e&&null!==(i=s.read());)if(t._filter(i)&&(0===t._offset||!t._offset--)){var o=null===t._map?i:t._map(i);if(null===o)t._optional&&t._push(i);else{if(null!==t._transform)return void(t._optional?j(t,o,r):t._transform(o,r));t._push(o)}0==--t._limit&&t.close()}n()}else n()}function P(t,e){if(!(this instanceof P))return new P(t,e);T.call(this,t,e),this._transformerQueue=[]}function N(t){if(!(this instanceof N))return new N(t);c.call(this),this._readPosition=0,t&&(this.source=t)}function R(t,e,r,n){e.getProperty(r,function(e){t._properties&&r in t._properties||n(e)})}function L(t){var e,r=[];if(this.readAt=function(e){var n=null;return e<r.length?n=r[e]:t.ended||null===(n=t.read())||(r[e]=n),n},this.endsAt=function(e){return e===r.length&&t.ended},this.register=function(t){e&&e.push(t)},this.unregister=function(t){var r;e&&(r=e.indexOf(t))>=0&&e.splice(r,1)},!t.ended){var n=function(){for(var t=0;t<e.length;t++)e[t].readable=!0},i=function(t){for(var r=0;r<e.length;r++)e[r].emit("error",t)};e=[],t.on("readable",n),t.on("end",function s(){for(var o=0;o<e.length;o++)e[o]._readPosition===r.length&&e[o].close();e=null,t.removeListener("end",s),t.removeListener("error",i),t.removeListener("readable",n)}),t.on("error",i)}}function U(t){return"function"==typeof t}(c.STATES=["INIT","OPEN","CLOSING","CLOSED","ENDED"]).forEach(function(t,e){c[t]=e}),function t(e){e.prototype=Object.create(this.prototype,{constructor:{value:e,configurable:!0,writable:!0}}),e.subclass=t}.call(i,c),c.prototype._changeState=function(t,e){var r=t>this._state;return r&&(this._state=t,t===u&&(e?s(l,this,"end"):this.emit("end"))),r},c.prototype.read=function(){return null},c.prototype.each=function(t,e){this.on("data",e?t.bind(e):t)},c.prototype._hasListeners=function(t){return this._events&&t in this._events},c.prototype._addSingleListener=function(t,e){var r=this._events&&this._events[t];r&&!(U(r)?r!==e:r.indexOf(e)<0)||this.on(t,e)},c.prototype.close=function(){this._changeState(3)&&h(this)},c.prototype._end=function(){this._changeState(u)&&(this._readable=!1,this.removeAllListeners("readable"),this.removeAllListeners("data"),this.removeAllListeners("end"))},Object.defineProperty(c.prototype,"readable",{get:function(){return this._readable},set:function(t){t=!!t&&!this.ended,this._readable!==t&&(this._readable=t,t&&s(l,this,"readable"))},enumerable:!0}),Object.defineProperty(c.prototype,"closed",{get:function(){return this._state>=2},enumerable:!0}),Object.defineProperty(c.prototype,"ended",{get:function(){return this._state===u},enumerable:!0}),c.prototype.getProperty=function(t,e){var r,n=this._properties;if(!e)return n&&n[t];n&&t in n?s(e,n[t]):((r=this._propertyCallbacks)||(this._propertyCallbacks=r=Object.create(null)),t in r?r[t].push(e):r[t]=[e])},c.prototype.setProperty=function(t,e){(this._properties||(this._properties=Object.create(null)))[t]=e;var r,n=this._propertyCallbacks;if(r=n&&n[t]){for(t in delete n[t],1===r.length?s(r[0],e):s(function(){for(var t=0;t<r.length;t++)r[t](e)}),n)return;delete this._propertyCallbacks}},c.prototype.getProperties=function(){var t=this._properties,e={};for(var r in t)e[r]=t[r];return e},c.prototype.setProperties=function(t){for(var e in t)this.setProperty(e,t[e])},c.prototype.copyProperties=function(t,e){for(var r=0;r<e.length;r++)g(t,this,e[r])},c.prototype.toString=function(){var t=this._toStringDetails();return"["+this.constructor.name+(t?" "+t+"]":"]")},c.prototype._toStringDetails=function(){},c.subclass(y),c.subclass(v),v.prototype.read=function(){var t=this._item;return this._item=null,this.close(),t},v.prototype._toStringDetails=function(){return null===this._item?"":"("+this._item+")"},c.subclass(b),b.prototype.read=function(){var t=this._buffer,e=null;return t&&(e=t.shift(),t.length||(delete this._buffer,this.close())),e},b.prototype._toStringDetails=function(){return"("+(this._buffer&&this._buffer.length||0)+")"},c.subclass(m),m.prototype.read=function(){if(this.closed)return null;var t=this._next,e=this._step,r=this._last,n=this._next+=e;return(e>=0?n>r:n<r)&&this.close(),t},m.prototype._toStringDetails=function(){return"("+this._next+"..."+this._last+")"},c.range=function(t,e,r){return new m({start:t,end:e,step:r})},c.subclass(x),Object.defineProperty(x.prototype,"maxBufferSize",{set:function(t){t!==1/0&&(t=isFinite(t)?Math.max(~~t,1):4),this._maxBufferSize!==t&&(this._maxBufferSize=t,this._state===a&&this._fillBuffer())},get:function(){return this._maxBufferSize},enumerable:!0}),x.prototype._init=function(t){var e=this;this._reading=!0,this._begin(function(){if(!e)throw new Error("done callback called multiple times");e._reading=!1,e._changeState(a),t?E(e):e.readable=!0,e=null})},x.prototype._begin=function(t){t()},x.prototype.read=function(){if(this.ended)return null;var t,e=this._buffer;return e.length?t=e.shift():(t=null,this.readable=!1),!this._reading&&e.length<this._maxBufferSize&&(this.closed?e.length||h(this):E(this)),t},x.prototype._read=function(t,e){e()},x.prototype._push=function(t){if(this.ended)throw new Error("Cannot push after the iterator was ended.");this._pushedCount++,this._buffer.push(t),this.readable=!0},x.prototype._fillBuffer=function(){var t,e=this;this._reading||(this.closed?this._completeClose():(t=Math.min(this._maxBufferSize-this._buffer.length,128))>0&&(this._pushedCount=0,this._reading=!0,this._read(t,function(){if(!t)throw new Error("done callback called multiple times");t=0,e._reading=!1,e.closed?e._completeClose():e._pushedCount&&(e.readable=!0,e._buffer.length<e._maxBufferSize/2&&E(e))})))},x.prototype.close=function(){this._reading?this._changeState(2):this._completeClose()},x.prototype._completeClose=function(){if(this._changeState(3)){var t=this;this._reading=!0,this._flush(function(){if(!t._reading)throw new Error("done callback called multiple times");t._reading=!1,t._buffer.length||h(t)})}},x.prototype._flush=function(t){t()},x.prototype._toStringDetails=function(){var t=this._buffer,e=t.length;return"{"+(e?"next: "+t[0]+", ":"")+"buffer: "+e+"}"},x.subclass(T),Object.defineProperty(T.prototype,"source",{set:function(t){this._validateSource(t),this._source=t,t._destination=this,t.ended?this.close():(t.on("end",S),t.on("readable",A),t.on("error",I))},get:k,enumerable:!0}),T.prototype._validateSource=function(t,e){if(this._source)throw new Error("The source cannot be changed after it has been set");if(!t||!U(t.read)||!U(t.on))throw new Error("Invalid source: "+t);if(!e&&t._destination)throw new Error("The source already has a destination")},T.prototype._read=function(t,e){var r=this;C(r,function n(){r._pushedCount<t&&!r.closed?s(C,r,n,e):e()},e)},T.prototype._transform=function(t,e){this._push(t),e()},T.prototype._closeWhenDone=function(){this.close()},T.prototype._end=function(){var t=this._source;t&&(t.removeListener("end",S),t.removeListener("error",I),t.removeListener("readable",A),delete t._destination),x.prototype._end.call(this)},c.wrap=T,T.subclass(O),O.prototype._offset=0,O.prototype._limit=1/0,O.prototype._filter=function(){return!0},O.prototype._map=null,O.prototype._transform=null,O.prototype._read=function(t,e){var r=this;D(r,t,function n(){s(D,r,t,n,e)},e)},O.prototype._begin=function(t){this._insert(this._prepender,t),delete this._prepender},O.prototype._flush=function(t){this._insert(this._appender,t),delete this._appender},O.prototype._insert=function(t,e){var r=this;function n(t){r._push(t)}!t||t.ended?e():(t.on("data",n),t.on("end",function r(){t.removeListener("data",n);t.removeListener("end",r);e()}))},c.prototype.transform=function(t){return new O(this,t)},c.prototype.map=function(t,e){return this.transform({map:e?t.bind(e):t})},c.prototype.filter=function(t,e){return this.transform({filter:e?t.bind(e):t})},c.prototype.prepend=function(t){return this.transform({prepend:t})},c.prototype.append=function(t){return this.transform({append:t})},c.prototype.surround=function(t,e){return this.transform({prepend:t,append:e})},c.prototype.skip=function(t){return this.transform({offset:t})},c.prototype.take=function(t){return this.transform({limit:t})},c.prototype.range=function(t,e){return this.transform({offset:t,limit:Math.max(e-t+1,0)})},T.subclass(P),P.prototype._read=function(t,e){for(var r,n,i,s=this._transformerQueue,o=this._source,a=this._optional;(n=s[0])&&n.transformer.ended;)a&&null!==n.item&&(this._push(n.item),t--),(i=(n=s.shift()).transformer).removeListener("end",A),i.removeListener("readable",A),i.removeListener("error",I);for(;o&&!o.ended&&s.length<this._maxBufferSize&&null!==(r=this._source.read());)(i=this._createTransformer(r)||new y)._destination=this,i.on("end",A),i.on("readable",A),i.on("error",I),s.push({transformer:i,item:r});if(n=s[0])for(i=n.transformer;t-- >0&&null!==(r=i.read());)this._push(r),a&&(n.item=null);else o&&o.ended&&this.close();e()},P.prototype._createTransformer=v,P.prototype._closeWhenDone=function(){this._transformerQueue.length||this.close()},T.subclass(N),Object.defineProperty(N.prototype,"source",{set:function(t){var e=t&&t._destination;this._validateSource(t,!e||e instanceof L),this._source=t,e||(e=t._destination=new L(t)),e.endsAt(0)?this.close():(e.register(this),null!==e.readAt(0)&&(this.readable=!0));var r=this._propertyCallbacks;for(var n in r)for(var i=r[n],s=0;s<i.length;s++)R(this,t,n,i[s])},get:k,enumerable:!0}),N.prototype.getProperty=function(t,e){var r=this._properties,n=this._source,i=r&&t in r;if(!e)return i?r[t]:n&&n.getProperty(t);c.prototype.getProperty.call(this,t,e),n&&!i&&R(this,n,t,e)},N.prototype.getProperties=function(){var t=this._source?this._source.getProperties():{},e=this._properties;for(var r in e)t[r]=e[r];return t},N.prototype._toStringDetails=function(){var t=this._source;return"{source: "+(t?t.toString():"none")+"}"},N.prototype.read=function(){var t=this._source,e=null;if(!this.ended&&t){var r=t._destination;null!==(e=r.readAt(this._readPosition))?this._readPosition++:this.readable=!1,r.endsAt(this._readPosition)&&this.close()}return e},N.prototype._end=function(){var t=this._source&&this._source._destination;t&&t.unregister(this),x.prototype._end.call(this)},N.prototype.close=c.prototype.close,c.prototype.clone=function(){return new N(this)},e.exports=c,c.AsyncIterator=c,c.EmptyIterator=c.empty=y,c.SingletonIterator=c.single=v,c.ArrayIterator=c.fromArray=b,c.IntegerIterator=m,c.BufferedIterator=x,c.TransformIterator=T,c.SimpleTransformIterator=O,c.MultiTransformIterator=P,c.ClonedIterator=N}).call(this,t("_process"))},{_process:4,events:3,immediate:38}],38:[function(t,e,r){var n,i,s,o=[t("./nextTick"),t("./mutation.js"),t("./messageChannel"),t("./stateChange"),t("./timeout")],a=-1,u=[],c=!1;function l(){n&&i&&(n=!1,i.length?u=i.concat(u):a=-1,u.length&&f())}function f(){if(!n){c=!1,n=!0;for(var t=u.length,e=setTimeout(l);t;){for(i=u,u=[];i&&++a<t;)i[a].run();a=-1,t=u.length}i=null,a=-1,n=!1,clearTimeout(e)}}for(var h=-1,p=o.length;++h<p;)if(o[h]&&o[h].test&&o[h].test()){s=o[h].install(f);break}function d(t,e){this.fun=t,this.array=e}d.prototype.run=function(){var t=this.fun,e=this.array;switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);default:return t.apply(null,e)}},e.exports=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),c||n||(c=!0,s())}},{"./messageChannel":39,"./mutation.js":40,"./nextTick":41,"./stateChange":42,"./timeout":43}],39:[function(t,e,n){(function(t){n.test=function(){return!t.setImmediate&&void 0!==t.MessageChannel},n.install=function(e){var r=new t.MessageChannel;return r.port1.onmessage=e,function(){r.port2.postMessage(0)}}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],40:[function(t,e,n){(function(t){var e=t.MutationObserver||t.WebKitMutationObserver;n.test=function(){return e},n.install=function(r){var n=0,i=new e(r),s=t.document.createTextNode("");return i.observe(s,{characterData:!0}),function(){s.data=n=++n%2}}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],41:[function(t,e,r){(function(t){r.test=function(){return void 0!==t&&!t.browser},r.install=function(e){return function(){t.nextTick(e)}}}).call(this,t("_process"))},{_process:4}],42:[function(t,e,n){(function(t){n.test=function(){return"document"in t&&"onreadystatechange"in t.document.createElement("script")},n.install=function(e){return function(){var r=t.document.createElement("script");return r.onreadystatechange=function(){e(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},t.document.documentElement.appendChild(r),e}}}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],43:[function(t,e,r){r.test=function(){return!0},r.install=function(t){return function(){setTimeout(t,0)}}},{}],44:[function(t,e,n){(function(t){(function(){var r,i=[],s=[],o=0,a=+new Date+"",c=75,l=40,f=" \t\v\f \ufeff\n\r\u2028\u2029 ",h=/\b__p \+= '';/g,p=/\b(__p \+=) '' \+/g,d=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,g=/\w*$/,y=/^\s*function[ \n\r\t]+\w/,v=/<%=([\s\S]+?)%>/g,b=RegExp("^["+f+"]*0+(?=.$)"),m=/($^)/,x=/\bthis\b/,w=/['\n\r\t\u2028\u2029\\]/g,E=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],F=0,T="[object Arguments]",k="[object Array]",I="[object Boolean]",S="[object Date]",A="[object Function]",C="[object Number]",j="[object Object]",O="[object RegExp]",D="[object String]",P={};P[A]=!1,P[T]=P[k]=P[I]=P[S]=P[C]=P[j]=P[O]=P[D]=!0;var N={leading:!1,maxWait:0,trailing:!1},R={configurable:!1,enumerable:!1,value:null,writable:!1},L={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},U={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},B=L["undefined"==typeof window?"undefined":u(window)]&&window||this,$=L[void 0===n?"undefined":u(n)]&&n&&!n.nodeType&&n,q=L[void 0===e?"undefined":u(e)]&&e&&!e.nodeType&&e,M=q&&q.exports===$&&$,G=L[void 0===t?"undefined":u(t)]&&t;function z(t,e,r){for(var n=(r||0)-1,i=t?t.length:0;++n<i;)if(t[n]===e)return n;return-1}function V(t,e){var r=void 0===e?"undefined":u(e);if(t=t.cache,"boolean"==r||null==e)return t[e]?0:-1;"number"!=r&&"string"!=r&&(r="object");var n="number"==r?e:a+e;return t=(t=t[r])&&t[n],"object"==r?t&&z(t,e)>-1?0:-1:t?0:-1}function H(t){var e=this.cache,r=void 0===t?"undefined":u(t);if("boolean"==r||null==t)e[t]=!0;else{"number"!=r&&"string"!=r&&(r="object");var n="number"==r?t:a+t,i=e[r]||(e[r]={});"object"==r?(i[n]||(i[n]=[])).push(t):i[n]=!0}}function Q(t){return t.charCodeAt(0)}function W(t,e){for(var r=t.criteria,n=e.criteria,i=-1,s=r.length;++i<s;){var o=r[i],a=n[i];if(o!==a){if(o>a||void 0===o)return 1;if(o<a||void 0===a)return-1}}return t.index-e.index}function Z(t){var e=-1,r=t.length,n=t[0],i=t[r/2|0],s=t[r-1];if(n&&"object"==(void 0===n?"undefined":u(n))&&i&&"object"==(void 0===i?"undefined":u(i))&&s&&"object"==(void 0===s?"undefined":u(s)))return!1;var o=J();o.false=o.null=o.true=o[void 0]=!1;var a=J();for(a.array=t,a.cache=o,a.push=H;++e<r;)a.push(t[e]);return a}function X(t){return"\\"+U[t]}function Y(){return i.pop()||[]}function J(){return s.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function K(t){t.length=0,i.length<l&&i.push(t)}function tt(t){var e=t.cache;e&&tt(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,s.length<l&&s.push(t)}function et(t,e,r){e||(e=0),void 0===r&&(r=t?t.length:0);for(var n=-1,i=r-e||0,s=Array(i<0?0:i);++n<i;)s[n]=t[e+n];return s}!G||G.global!==G&&G.window!==G||(B=G);var rt=function t(e){var n=(e=e?rt.defaults(B.Object(),e,rt.pick(B,E)):B).Array,i=e.Boolean,s=e.Date,l=e.Function,U=e.Math,$=e.Number,q=e.Object,M=e.RegExp,G=e.String,H=e.TypeError,nt=[],it=q.prototype,st=e._,ot=it.toString,at=M("^"+G(ot).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ut=U.ceil,ct=e.clearTimeout,lt=U.floor,ft=l.prototype.toString,ht=Qt(ht=q.getPrototypeOf)&&ht,pt=it.hasOwnProperty,dt=nt.push,_t=e.setTimeout,gt=nt.splice,yt=nt.unshift,vt=function(){try{var t={},e=Qt(e=q.defineProperty)&&e,r=e(t,t,t)&&e}catch(t){}return r}(),bt=Qt(bt=q.create)&&bt,mt=Qt(mt=n.isArray)&&mt,xt=e.isFinite,wt=e.isNaN,Et=Qt(Et=q.keys)&&Et,Ft=U.max,Tt=U.min,kt=e.parseInt,It=U.random,St={};function At(t){return t&&"object"==(void 0===t?"undefined":u(t))&&!Jt(t)&&pt.call(t,"__wrapped__")?t:new Ct(t)}function Ct(t,e){this.__chain__=!!e,this.__wrapped__=t}St[k]=n,St[I]=i,St[S]=s,St[A]=l,St[j]=q,St[C]=$,St[O]=M,St[D]=G,Ct.prototype=At.prototype;var jt=At.support={};function Ot(t){var e=t[0],r=t[2],n=t[4];function i(){if(r){var t=et(r);dt.apply(t,arguments)}if(this instanceof i){var s=Pt(e.prototype),o=e.apply(s,t||arguments);return he(o)?o:s}return e.apply(n,t||arguments)}return Wt(i,t),i}function Dt(t,e,r,n,i){if(r){var s=r(t);if(void 0!==s)return s}if(!he(t))return t;var o=ot.call(t);if(!P[o])return t;var a=St[o];switch(o){case I:case S:return new a(+t);case C:case D:return new a(t);case O:return(s=a(t.source,g.exec(t))).lastIndex=t.lastIndex,s}var u=Jt(t);if(e){var c=!n;n||(n=Y()),i||(i=Y());for(var l=n.length;l--;)if(n[l]==t)return i[l];s=u?a(t.length):{}}else s=u?et(t):ie({},t);return u&&(pt.call(t,"index")&&(s.index=t.index),pt.call(t,"input")&&(s.input=t.input)),e?(n.push(t),i.push(s),(u?we:ae)(t,function(t,o){s[o]=Dt(t,e,r,n,i)}),c&&(K(n),K(i)),s):s}function Pt(t,e){return he(t)?bt(t):{}}function Nt(t,e,r){if("function"!=typeof t)return Ge;if(void 0===e||!("prototype"in t))return t;var n=t.__bindData__;if(void 0===n&&(jt.funcNames&&(n=!t.name),!(n=n||!jt.funcDecomp))){var i=ft.call(t);jt.funcNames||(n=!y.test(i)),n||(n=x.test(i),Wt(t,n))}if(!1===n||!0!==n&&1&n[1])return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)};case 4:return function(r,n,i,s){return t.call(e,r,n,i,s)}}return qe(t,e)}function Rt(t){var e=t[0],r=t[1],n=t[2],i=t[3],s=t[4],o=t[5],a=1&r,u=2&r,c=4&r,l=8&r,f=e;function h(){var t=a?s:this;if(n){var p=et(n);dt.apply(p,arguments)}if((i||c)&&(p||(p=et(arguments)),i&&dt.apply(p,i),c&&p.length<o))return r|=16,Rt([e,l?r:-4&r,p,null,s,o]);if(p||(p=arguments),u&&(e=t[f]),this instanceof h){t=Pt(e.prototype);var d=e.apply(t,p);return he(d)?d:t}return e.apply(t,p)}return Wt(h,t),h}function Lt(t,e){var r=-1,n=Ht(),i=t?t.length:0,s=i>=c&&n===z,o=[];if(s){var a=Z(e);a?(n=V,e=a):s=!1}for(;++r<i;){var u=t[r];n(e,u)<0&&o.push(u)}return s&&tt(e),o}function Ut(t,e,r,n){for(var i=(n||0)-1,s=t?t.length:0,o=[];++i<s;){var a=t[i];if(a&&"object"==(void 0===a?"undefined":u(a))&&"number"==typeof a.length&&(Jt(a)||Yt(a))){e||(a=Ut(a,e,r));var c=-1,l=a.length,f=o.length;for(o.length+=l;++c<l;)o[f++]=a[c]}else r||o.push(a)}return o}function Bt(t,e,r,n,i,s){if(r){var o=r(t,e);if(void 0!==o)return!!o}if(t===e)return 0!==t||1/t==1/e;var a=void 0===t?"undefined":u(t),c=void 0===e?"undefined":u(e);if(!(t!=t||t&&L[a]||e&&L[c]))return!1;if(null==t||null==e)return t===e;var l=ot.call(t),f=ot.call(e);if(l==T&&(l=j),f==T&&(f=j),l!=f)return!1;switch(l){case I:case S:return+t==+e;case C:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case O:case D:return t==G(e)}var h=l==k;if(!h){var p=pt.call(t,"__wrapped__"),d=pt.call(e,"__wrapped__");if(p||d)return Bt(p?t.__wrapped__:t,d?e.__wrapped__:e,r,n,i,s);if(l!=j)return!1;var _=t.constructor,g=e.constructor;if(_!=g&&!(fe(_)&&_ instanceof _&&fe(g)&&g instanceof g)&&"constructor"in t&&"constructor"in e)return!1}var y=!i;i||(i=Y()),s||(s=Y());for(var v=i.length;v--;)if(i[v]==t)return s[v]==e;var b=0;if(o=!0,i.push(t),s.push(e),h){if(v=t.length,b=e.length,(o=b==v)||n)for(;b--;){var m=v,x=e[b];if(n)for(;m--&&!(o=Bt(t[m],x,r,n,i,s)););else if(!(o=Bt(t[b],x,r,n,i,s)))break}}else oe(e,function(e,a,u){if(pt.call(u,a))return b++,o=pt.call(t,a)&&Bt(t[a],e,r,n,i,s)}),o&&!n&&oe(t,function(t,e,r){if(pt.call(r,e))return o=--b>-1});return i.pop(),s.pop(),y&&(K(i),K(s)),o}function $t(t,e,r,n,i){(Jt(e)?we:ae)(e,function(e,s){var o,a,u=e,c=t[s];if(e&&((a=Jt(e))||de(e))){for(var l,f=n.length;f--;)if(o=n[f]==e){c=i[f];break}o||(r&&(l=void 0!==(u=r(c,e)))&&(c=u),l||(c=a?Jt(c)?c:[]:de(c)?c:{}),n.push(e),i.push(c),l||$t(c,e,r,n,i))}else r&&void 0===(u=r(c,e))&&(u=e),void 0!==u&&(c=u);t[s]=c})}function qt(t,e){return t+lt(It()*(e-t+1))}function Mt(t,e,r){var n=-1,i=Ht(),s=t?t.length:0,o=[],a=!e&&s>=c&&i===z,u=r||a?Y():o;for(a&&(i=V,u=Z(u));++n<s;){var l=t[n],f=r?r(l,n,t):l;(e?!n||u[u.length-1]!==f:i(u,f)<0)&&((r||a)&&u.push(f),o.push(l))}return a?(K(u.array),tt(u)):r&&K(u),o}function Gt(t){return function(e,r,n){var i={};r=At.createCallback(r,n,3);var s=-1,o=e?e.length:0;if("number"==typeof o)for(;++s<o;){var a=e[s];t(i,a,r(a,s,e),e)}else ae(e,function(e,n,s){t(i,e,r(e,n,s),s)});return i}}function zt(t,e,r,n,i,s){var o=1&e,a=4&e,u=16&e,c=32&e;if(!(2&e||fe(t)))throw new H;u&&!r.length&&(e&=-17,u=r=!1),c&&!n.length&&(e&=-33,c=n=!1);var l=t&&t.__bindData__;return l&&!0!==l?((l=et(l))[2]&&(l[2]=et(l[2])),l[3]&&(l[3]=et(l[3])),!o||1&l[1]||(l[4]=i),!o&&1&l[1]&&(e|=8),!a||4&l[1]||(l[5]=s),u&&dt.apply(l[2]||(l[2]=[]),r),c&&yt.apply(l[3]||(l[3]=[]),n),l[1]|=e,zt.apply(null,l)):(1==e||17===e?Ot:Rt)([t,e,r,n,i,s])}function Vt(t){return te[t]}function Ht(){var t=(t=At.indexOf)===Ne?z:t;return t}function Qt(t){return"function"==typeof t&&at.test(t)}jt.funcDecomp=!Qt(e.WinRTError)&&x.test(t),jt.funcNames="string"==typeof l.name,At.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:v,variable:"",imports:{_:At}},bt||(Pt=function(){function t(){}return function(r){if(he(r)){t.prototype=r;var n=new t;t.prototype=null}return n||e.Object()}}());var Wt=vt?function(t,e){R.value=e,vt(t,"__bindData__",R),R.value=null}:Ve;function Zt(t){var e,r;return!(!t||ot.call(t)!=j||fe(e=t.constructor)&&!(e instanceof e))&&(oe(t,function(t,e){r=e}),void 0===r||pt.call(t,r))}function Xt(t){return ee[t]}function Yt(t){return t&&"object"==(void 0===t?"undefined":u(t))&&"number"==typeof t.length&&ot.call(t)==T||!1}var Jt=mt||function(t){return t&&"object"==(void 0===t?"undefined":u(t))&&"number"==typeof t.length&&ot.call(t)==k||!1},Kt=Et?function(t){return he(t)?Et(t):[]}:function(t){var e,r=t,n=[];if(!r)return n;if(!L[void 0===t?"undefined":u(t)])return n;for(e in r)pt.call(r,e)&&n.push(e);return n},te={"&":"&","<":"<",">":">",'"':""","'":"'"},ee=le(te),re=M("("+Kt(ee).join("|")+")","g"),ne=M("["+Kt(te).join("")+"]","g"),ie=function(t,e,r){var n,i=t,s=i;if(!i)return s;var o=arguments,a=0,c="number"==typeof r?2:o.length;if(c>3&&"function"==typeof o[c-2])var l=Nt(o[--c-1],o[c--],2);else c>2&&"function"==typeof o[c-1]&&(l=o[--c]);for(;++a<c;)if((i=o[a])&&L[void 0===i?"undefined":u(i)])for(var f=-1,h=L[void 0===i?"undefined":u(i)]&&Kt(i),p=h?h.length:0;++f<p;)s[n=h[f]]=l?l(s[n],i[n]):i[n];return s};var se=function(t,e,r){var n,i=t,s=i;if(!i)return s;for(var o=arguments,a=0,c="number"==typeof r?2:o.length;++a<c;)if((i=o[a])&&L[void 0===i?"undefined":u(i)])for(var l=-1,f=L[void 0===i?"undefined":u(i)]&&Kt(i),h=f?f.length:0;++l<h;)void 0===s[n=f[l]]&&(s[n]=i[n]);return s};var oe=function(t,e,r){var n,i=t,s=i;if(!i)return s;if(!L[void 0===i?"undefined":u(i)])return s;for(n in e=e&&void 0===r?e:Nt(e,r,3),i)if(!1===e(i[n],n,t))return s;return s};var ae=function(t,e,r){var n,i=t,s=i;if(!i)return s;if(!L[void 0===i?"undefined":u(i)])return s;e=e&&void 0===r?e:Nt(e,r,3);for(var o=-1,a=L[void 0===i?"undefined":u(i)]&&Kt(i),c=a?a.length:0;++o<c;)if(!1===e(i[n=a[o]],n,t))return s;return s};function ue(t,e,r){var n=Kt(t),i=n.length;for(e=Nt(e,r,3);i--;){var s=n[i];if(!1===e(t[s],s,t))break}return t}function ce(t){var e=[];return oe(t,function(t,r){fe(t)&&e.push(r)}),e.sort()}function le(t){for(var e=-1,r=Kt(t),n=r.length,i={};++e<n;){var s=r[e];i[t[s]]=s}return i}function fe(t){return"function"==typeof t}function he(t){return!(!t||!L[void 0===t?"undefined":u(t)])}function pe(t){return"number"==typeof t||t&&"object"==(void 0===t?"undefined":u(t))&&ot.call(t)==C||!1}var de=ht?function(t){if(!t||ot.call(t)!=j)return!1;var e=t.valueOf,r=Qt(e)&&(r=ht(e))&&ht(r);return r?t==r||ht(t)==r:Zt(t)}:Zt;function _e(t){return"string"==typeof t||t&&"object"==(void 0===t?"undefined":u(t))&&ot.call(t)==D||!1}function ge(t){for(var e=-1,r=Kt(t),i=r.length,s=n(i);++e<i;)s[e]=t[r[e]];return s}function ye(t,e,r){var n=-1,i=Ht(),s=t?t.length:0,o=!1;return r=(r<0?Ft(0,s+r):r)||0,Jt(t)?o=i(t,e,r)>-1:"number"==typeof s?o=(_e(t)?t.indexOf(e,r):i(t,e,r))>-1:ae(t,function(t){if(++n>=r)return!(o=t===e)}),o}var ve=Gt(function(t,e,r){pt.call(t,r)?t[r]++:t[r]=1});function be(t,e,r){var n=!0;e=At.createCallback(e,r,3);var i=-1,s=t?t.length:0;if("number"==typeof s)for(;++i<s&&(n=!!e(t[i],i,t)););else ae(t,function(t,r,i){return n=!!e(t,r,i)});return n}function me(t,e,r){var n=[];e=At.createCallback(e,r,3);var i=-1,s=t?t.length:0;if("number"==typeof s)for(;++i<s;){var o=t[i];e(o,i,t)&&n.push(o)}else ae(t,function(t,r,i){e(t,r,i)&&n.push(t)});return n}function xe(t,e,r){e=At.createCallback(e,r,3);var n,i=-1,s=t?t.length:0;if("number"!=typeof s)return ae(t,function(t,r,i){if(e(t,r,i))return n=t,!1}),n;for(;++i<s;){var o=t[i];if(e(o,i,t))return o}}function we(t,e,r){var n=-1,i=t?t.length:0;if(e=e&&void 0===r?e:Nt(e,r,3),"number"==typeof i)for(;++n<i&&!1!==e(t[n],n,t););else ae(t,e);return t}function Ee(t,e,r){var n=t?t.length:0;if(e=e&&void 0===r?e:Nt(e,r,3),"number"==typeof n)for(;n--&&!1!==e(t[n],n,t););else{var i=Kt(t);n=i.length,ae(t,function(t,r,s){return r=i?i[--n]:--n,e(s[r],r,s)})}return t}var Fe=Gt(function(t,e,r){(pt.call(t,r)?t[r]:t[r]=[]).push(e)}),Te=Gt(function(t,e,r){t[r]=e});function ke(t,e,r){var i=-1,s=t?t.length:0;if(e=At.createCallback(e,r,3),"number"==typeof s)for(var o=n(s);++i<s;)o[i]=e(t[i],i,t);else o=[],ae(t,function(t,r,n){o[++i]=e(t,r,n)});return o}function Ie(t,e,r){var n=-1/0,i=n;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Jt(t))for(var s=-1,o=t.length;++s<o;){var a=t[s];a>i&&(i=a)}else e=null==e&&_e(t)?Q:At.createCallback(e,r,3),we(t,function(t,r,s){var o=e(t,r,s);o>n&&(n=o,i=t)});return i}var Se=ke;function Ae(t,e,r,n){if(!t)return r;var i=arguments.length<3;e=At.createCallback(e,n,4);var s=-1,o=t.length;if("number"==typeof o)for(i&&(r=t[++s]);++s<o;)r=e(r,t[s],s,t);else ae(t,function(t,n,s){r=i?(i=!1,t):e(r,t,n,s)});return r}function Ce(t,e,r,n){var i=arguments.length<3;return e=At.createCallback(e,n,4),Ee(t,function(t,n,s){r=i?(i=!1,t):e(r,t,n,s)}),r}function je(t){var e=-1,r=t?t.length:0,i=n("number"==typeof r?r:0);return we(t,function(t){var r=qt(0,++e);i[e]=i[r],i[r]=t}),i}function Oe(t,e,r){var n;e=At.createCallback(e,r,3);var i=-1,s=t?t.length:0;if("number"==typeof s)for(;++i<s&&!(n=e(t[i],i,t)););else ae(t,function(t,r,i){return!(n=e(t,r,i))});return!!n}var De=me;function Pe(t,e,n){var i=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var o=-1;for(e=At.createCallback(e,n,3);++o<s&&e(t[o],o,t);)i++}else if(null==(i=e)||n)return t?t[0]:r;return et(t,0,Tt(Ft(0,i),s))}function Ne(t,e,r){if("number"==typeof r){var n=t?t.length:0;r=r<0?Ft(0,n+r):r||0}else if(r){var i=Le(t,e);return t[i]===e?i:-1}return z(t,e,r)}function Re(t,e,r){if("number"!=typeof e&&null!=e){var n=0,i=-1,s=t?t.length:0;for(e=At.createCallback(e,r,3);++i<s&&e(t[i],i,t);)n++}else n=null==e||r?1:Ft(0,e);return et(t,n)}function Le(t,e,r,n){var i=0,s=t?t.length:i;for(e=(r=r?At.createCallback(r,n,1):Ge)(e);i<s;){var o=i+s>>>1;r(t[o])<e?i=o+1:s=o}return i}function Ue(t,e,r,n){return"boolean"!=typeof e&&null!=e&&(n=r,r="function"!=typeof e&&n&&n[e]===t?null:e,e=!1),null!=r&&(r=At.createCallback(r,n,3)),Mt(t,e,r)}function Be(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,r=t?Ie(Se(t,"length")):0,i=n(r<0?0:r);++e<r;)i[e]=Se(t,e);return i}function $e(t,e){var r=-1,n=t?t.length:0,i={};for(e||!n||Jt(t[0])||(e=[]);++r<n;){var s=t[r];e?i[s]=e[r]:s&&(i[s[0]]=s[1])}return i}function qe(t,e){return arguments.length>2?zt(t,17,et(arguments,2),null,e):zt(t,1,null,null,e)}function Me(t,e,n){var i,s,o,a,u,c,l,f=0,h=!1,p=!0;if(!fe(t))throw new H;if(e=Ft(0,e)||0,!0===n){var d=!0;p=!1}else he(n)&&(d=n.leading,h="maxWait"in n&&(Ft(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var _=function n(){var h=e-(He()-a);if(h<=0){s&&ct(s);var p=l;s=c=l=r,p&&(f=He(),o=t.apply(u,i),c||s||(i=u=null))}else c=_t(n,h)},g=function(){c&&ct(c),s=c=l=r,(p||h!==e)&&(f=He(),o=t.apply(u,i),c||s||(i=u=null))};return function(){if(i=arguments,a=He(),u=this,l=p&&(c||!d),!1===h)var r=d&&!c;else{s||d||(f=a);var n=h-(a-f),y=n<=0;y?(s&&(s=ct(s)),f=a,o=t.apply(u,i)):s||(s=_t(g,n))}return y&&c?c=ct(c):c||e===h||(c=_t(_,e)),r&&(y=!0,o=t.apply(u,i)),!y||c||s||(i=u=null),o}}function Ge(t){return t}function ze(t,e,r){var n=!0,i=e&&ce(e);e&&(r||i.length)||(null==r&&(r=e),s=Ct,e=t,t=At,i=ce(e)),!1===r?n=!1:he(r)&&"chain"in r&&(n=r.chain);var s=t,o=fe(s);we(i,function(r){var i=t[r]=e[r];o&&(s.prototype[r]=function(){var e=this.__chain__,r=this.__wrapped__,o=[r];dt.apply(o,arguments);var a=i.apply(t,o);if(n||e){if(r===a&&he(a))return this;(a=new s(a)).__chain__=e}return a})})}function Ve(){}var He=Qt(He=s.now)&&He||function(){return(new s).getTime()},Qe=8==kt(f+"08")?kt:function(t,e){return kt(_e(t)?t.replace(b,""):t,e||0)};function We(t){return function(e){return e[t]}}function Ze(){return this.__wrapped__}return At.after=function(t,e){if(!fe(e))throw new H;return function(){if(--t<1)return e.apply(this,arguments)}},At.assign=ie,At.at=function(t){for(var e=arguments,r=-1,i=Ut(e,!0,!1,1),s=e[2]&&e[2][e[1]]===t?1:i.length,o=n(s);++r<s;)o[r]=t[i[r]];return o},At.bind=qe,At.bindAll=function(t){for(var e=arguments.length>1?Ut(arguments,!0,!1,1):ce(t),r=-1,n=e.length;++r<n;){var i=e[r];t[i]=zt(t[i],1,null,null,t)}return t},At.bindKey=function(t,e){return arguments.length>2?zt(e,19,et(arguments,2),null,t):zt(e,3,null,null,t)},At.chain=function(t){return(t=new Ct(t)).__chain__=!0,t},At.compact=function(t){for(var e=-1,r=t?t.length:0,n=[];++e<r;){var i=t[e];i&&n.push(i)}return n},At.compose=function(){for(var t=arguments,e=t.length;e--;)if(!fe(t[e]))throw new H;return function(){for(var e=arguments,r=t.length;r--;)e=[t[r].apply(this,e)];return e[0]}},At.constant=function(t){return function(){return t}},At.countBy=ve,At.create=function(t,e){var r=Pt(t);return e?ie(r,e):r},At.createCallback=function(t,e,r){var n=void 0===t?"undefined":u(t);if(null==t||"function"==n)return Nt(t,e,r);if("object"!=n)return We(t);var i=Kt(t),s=i[0],o=t[s];return 1!=i.length||o!=o||he(o)?function(e){for(var r=i.length,n=!1;r--&&(n=Bt(e[i[r]],t[i[r]],null,!0)););return n}:function(t){var e=t[s];return o===e&&(0!==o||1/o==1/e)}},At.curry=function(t,e){return zt(t,4,null,null,null,e="number"==typeof e?e:+e||t.length)},At.debounce=Me,At.defaults=se,At.defer=function(t){if(!fe(t))throw new H;var e=et(arguments,1);return _t(function(){t.apply(r,e)},1)},At.delay=function(t,e){if(!fe(t))throw new H;var n=et(arguments,2);return _t(function(){t.apply(r,n)},e)},At.difference=function(t){return Lt(t,Ut(arguments,!0,!0,1))},At.filter=me,At.flatten=function(t,e,r,n){return"boolean"!=typeof e&&null!=e&&(n=r,r="function"!=typeof e&&n&&n[e]===t?null:e,e=!1),null!=r&&(t=ke(t,r,n)),Ut(t,e)},At.forEach=we,At.forEachRight=Ee,At.forIn=oe,At.forInRight=function(t,e,r){var n=[];oe(t,function(t,e){n.push(e,t)});var i=n.length;for(e=Nt(e,r,3);i--&&!1!==e(n[i--],n[i],t););return t},At.forOwn=ae,At.forOwnRight=ue,At.functions=ce,At.groupBy=Fe,At.indexBy=Te,At.initial=function(t,e,r){var n=0,i=t?t.length:0;if("number"!=typeof e&&null!=e){var s=i;for(e=At.createCallback(e,r,3);s--&&e(t[s],s,t);)n++}else n=null==e||r?1:e||n;return et(t,0,Tt(Ft(0,i-n),i))},At.intersection=function(){for(var t=[],e=-1,r=arguments.length,n=Y(),i=Ht(),s=i===z,o=Y();++e<r;){var a=arguments[e];(Jt(a)||Yt(a))&&(t.push(a),n.push(s&&a.length>=c&&Z(e?t[e]:o)))}var u=t[0],l=-1,f=u?u.length:0,h=[];t:for(;++l<f;){var p=n[0];if(a=u[l],(p?V(p,a):i(o,a))<0){for(e=r,(p||o).push(a);--e;)if(((p=n[e])?V(p,a):i(t[e],a))<0)continue t;h.push(a)}}for(;r--;)(p=n[r])&&tt(p);return K(n),K(o),h},At.invert=le,At.invoke=function(t,e){var r=et(arguments,2),i=-1,s="function"==typeof e,o=t?t.length:0,a=n("number"==typeof o?o:0);return we(t,function(t){a[++i]=(s?e:t[e]).apply(t,r)}),a},At.keys=Kt,At.map=ke,At.mapValues=function(t,e,r){var n={};return e=At.createCallback(e,r,3),ae(t,function(t,r,i){n[r]=e(t,r,i)}),n},At.max=Ie,At.memoize=function(t,e){if(!fe(t))throw new H;var r=function r(){var n=r.cache,i=e?e.apply(this,arguments):a+arguments[0];return pt.call(n,i)?n[i]:n[i]=t.apply(this,arguments)};return r.cache={},r},At.merge=function(t){var e=arguments,r=2;if(!he(t))return t;if("number"!=typeof e[2]&&(r=e.length),r>3&&"function"==typeof e[r-2])var n=Nt(e[--r-1],e[r--],2);else r>2&&"function"==typeof e[r-1]&&(n=e[--r]);for(var i=et(arguments,1,r),s=-1,o=Y(),a=Y();++s<r;)$t(t,i[s],n,o,a);return K(o),K(a),t},At.min=function(t,e,r){var n=1/0,i=n;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Jt(t))for(var s=-1,o=t.length;++s<o;){var a=t[s];a<i&&(i=a)}else e=null==e&&_e(t)?Q:At.createCallback(e,r,3),we(t,function(t,r,s){var o=e(t,r,s);o<n&&(n=o,i=t)});return i},At.omit=function(t,e,r){var n={};if("function"!=typeof e){var i=[];oe(t,function(t,e){i.push(e)});for(var s=-1,o=(i=Lt(i,Ut(arguments,!0,!1,1))).length;++s<o;){var a=i[s];n[a]=t[a]}}else e=At.createCallback(e,r,3),oe(t,function(t,r,i){e(t,r,i)||(n[r]=t)});return n},At.once=function(t){var e,r;if(!fe(t))throw new H;return function(){return e?r:(e=!0,r=t.apply(this,arguments),t=null,r)}},At.pairs=function(t){for(var e=-1,r=Kt(t),i=r.length,s=n(i);++e<i;){var o=r[e];s[e]=[o,t[o]]}return s},At.partial=function(t){return zt(t,16,et(arguments,1))},At.partialRight=function(t){return zt(t,32,null,et(arguments,1))},At.pick=function(t,e,r){var n={};if("function"!=typeof e)for(var i=-1,s=Ut(arguments,!0,!1,1),o=he(t)?s.length:0;++i<o;){var a=s[i];a in t&&(n[a]=t[a])}else e=At.createCallback(e,r,3),oe(t,function(t,r,i){e(t,r,i)&&(n[r]=t)});return n},At.pluck=Se,At.property=We,At.pull=function(t){for(var e=arguments,r=0,n=e.length,i=t?t.length:0;++r<n;)for(var s=-1,o=e[r];++s<i;)t[s]===o&&(gt.call(t,s--,1),i--);return t},At.range=function(t,e,r){t=+t||0,r="number"==typeof r?r:+r||1,null==e&&(e=t,t=0);for(var i=-1,s=Ft(0,ut((e-t)/(r||1))),o=n(s);++i<s;)o[i]=t,t+=r;return o},At.reject=function(t,e,r){return e=At.createCallback(e,r,3),me(t,function(t,r,n){return!e(t,r,n)})},At.remove=function(t,e,r){var n=-1,i=t?t.length:0,s=[];for(e=At.createCallback(e,r,3);++n<i;){var o=t[n];e(o,n,t)&&(s.push(o),gt.call(t,n--,1),i--)}return s},At.rest=Re,At.shuffle=je,At.sortBy=function(t,e,r){var i=-1,s=Jt(e),o=t?t.length:0,a=n("number"==typeof o?o:0);for(s||(e=At.createCallback(e,r,3)),we(t,function(t,r,n){var o=a[++i]=J();s?o.criteria=ke(e,function(e){return t[e]}):(o.criteria=Y())[0]=e(t,r,n),o.index=i,o.value=t}),o=a.length,a.sort(W);o--;){var u=a[o];a[o]=u.value,s||K(u.criteria),tt(u)}return a},At.tap=function(t,e){return e(t),t},At.throttle=function(t,e,r){var n=!0,i=!0;if(!fe(t))throw new H;return!1===r?n=!1:he(r)&&(n="leading"in r?r.leading:n,i="trailing"in r?r.trailing:i),N.leading=n,N.maxWait=e,N.trailing=i,Me(t,e,N)},At.times=function(t,e,r){t=(t=+t)>-1?t:0;var i=-1,s=n(t);for(e=Nt(e,r,1);++i<t;)s[i]=e(i);return s},At.toArray=function(t){return t&&"number"==typeof t.length?et(t):ge(t)},At.transform=function(t,e,r,n){var i=Jt(t);if(null==r)if(i)r=[];else{var s=t&&t.constructor,o=s&&s.prototype;r=Pt(o)}return e&&(e=At.createCallback(e,n,4),(i?we:ae)(t,function(t,n,i){return e(r,t,n,i)})),r},At.union=function(){return Mt(Ut(arguments,!0,!0))},At.uniq=Ue,At.values=ge,At.where=De,At.without=function(t){return Lt(t,et(arguments,1))},At.wrap=function(t,e){return zt(e,16,[t])},At.xor=function(){for(var t=-1,e=arguments.length;++t<e;){var r=arguments[t];if(Jt(r)||Yt(r))var n=n?Mt(Lt(n,r).concat(Lt(r,n))):r}return n||[]},At.zip=Be,At.zipObject=$e,At.collect=ke,At.drop=Re,At.each=we,At.eachRight=Ee,At.extend=ie,At.methods=ce,At.object=$e,At.select=me,At.tail=Re,At.unique=Ue,At.unzip=Be,ze(At),At.clone=function(t,e,r,n){return"boolean"!=typeof e&&null!=e&&(n=r,r=e,e=!1),Dt(t,e,"function"==typeof r&&Nt(r,n,1))},At.cloneDeep=function(t,e,r){return Dt(t,!0,"function"==typeof e&&Nt(e,r,1))},At.contains=ye,At.escape=function(t){return null==t?"":G(t).replace(ne,Vt)},At.every=be,At.find=xe,At.findIndex=function(t,e,r){var n=-1,i=t?t.length:0;for(e=At.createCallback(e,r,3);++n<i;)if(e(t[n],n,t))return n;return-1},At.findKey=function(t,e,r){var n;return e=At.createCallback(e,r,3),ae(t,function(t,r,i){if(e(t,r,i))return n=r,!1}),n},At.findLast=function(t,e,r){var n;return e=At.createCallback(e,r,3),Ee(t,function(t,r,i){if(e(t,r,i))return n=t,!1}),n},At.findLastIndex=function(t,e,r){var n=t?t.length:0;for(e=At.createCallback(e,r,3);n--;)if(e(t[n],n,t))return n;return-1},At.findLastKey=function(t,e,r){var n;return e=At.createCallback(e,r,3),ue(t,function(t,r,i){if(e(t,r,i))return n=r,!1}),n},At.has=function(t,e){return!!t&&pt.call(t,e)},At.identity=Ge,At.indexOf=Ne,At.isArguments=Yt,At.isArray=Jt,At.isBoolean=function(t){return!0===t||!1===t||t&&"object"==(void 0===t?"undefined":u(t))&&ot.call(t)==I||!1},At.isDate=function(t){return t&&"object"==(void 0===t?"undefined":u(t))&&ot.call(t)==S||!1},At.isElement=function(t){return t&&1===t.nodeType||!1},At.isEmpty=function(t){var e=!0;if(!t)return e;var r=ot.call(t),n=t.length;return r==k||r==D||r==T||r==j&&"number"==typeof n&&fe(t.splice)?!n:(ae(t,function(){return e=!1}),e)},At.isEqual=function(t,e,r,n){return Bt(t,e,"function"==typeof r&&Nt(r,n,2))},At.isFinite=function(t){return xt(t)&&!wt(parseFloat(t))},At.isFunction=fe,At.isNaN=function(t){return pe(t)&&t!=+t},At.isNull=function(t){return null===t},At.isNumber=pe,At.isObject=he,At.isPlainObject=de,At.isRegExp=function(t){return t&&"object"==(void 0===t?"undefined":u(t))&&ot.call(t)==O||!1},At.isString=_e,At.isUndefined=function(t){return void 0===t},At.lastIndexOf=function(t,e,r){var n=t?t.length:0;for("number"==typeof r&&(n=(r<0?Ft(0,n+r):Tt(r,n-1))+1);n--;)if(t[n]===e)return n;return-1},At.mixin=ze,At.noConflict=function(){return e._=st,this},At.noop=Ve,At.now=He,At.parseInt=Qe,At.random=function(t,e,r){var n=null==t,i=null==e;if(null==r&&("boolean"==typeof t&&i?(r=t,t=1):i||"boolean"!=typeof e||(r=e,i=!0)),n&&i&&(e=1),t=+t||0,i?(e=t,t=0):e=+e||0,r||t%1||e%1){var s=It();return Tt(t+s*(e-t+parseFloat("1e-"+((s+"").length-1))),e)}return qt(t,e)},At.reduce=Ae,At.reduceRight=Ce,At.result=function(t,e){if(t){var r=t[e];return fe(r)?t[e]():r}},At.runInContext=t,At.size=function(t){var e=t?t.length:0;return"number"==typeof e?e:Kt(t).length},At.some=Oe,At.sortedIndex=Le,At.template=function(t,e,n){var i=At.templateSettings;t=G(t||""),n=se({},n,i);var s,o=se({},n.imports,i.imports),a=Kt(o),u=ge(o),c=0,f=n.interpolate||m,g="__p += '",y=M((n.escape||m).source+"|"+f.source+"|"+(f===v?_:m).source+"|"+(n.evaluate||m).source+"|$","g");t.replace(y,function(e,r,n,i,o,a){return n||(n=i),g+=t.slice(c,a).replace(w,X),r&&(g+="' +\n__e("+r+") +\n'"),o&&(s=!0,g+="';\n"+o+";\n__p += '"),n&&(g+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=a+e.length,e}),g+="';\n";var b=n.variable,x=b;x||(g="with ("+(b="obj")+") {\n"+g+"\n}\n"),g=(s?g.replace(h,""):g).replace(p,"$1").replace(d,"$1;"),g="function("+b+") {\n"+(x?"":b+" || ("+b+" = {});\n")+"var __t, __p = '', __e = _.escape"+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+g+"return __p\n}";var E="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+F+++"]")+"\n*/";try{var T=l(a,"return "+g+E).apply(r,u)}catch(t){throw t.source=g,t}return e?T(e):(T.source=g,T)},At.unescape=function(t){return null==t?"":G(t).replace(re,Xt)},At.uniqueId=function(t){var e=++o;return G(null==t?"":t)+e},At.all=be,At.any=Oe,At.detect=xe,At.findWhere=xe,At.foldl=Ae,At.foldr=Ce,At.include=ye,At.inject=Ae,ze(function(){var t={};return ae(At,function(e,r){At.prototype[r]||(t[r]=e)}),t}(),!1),At.first=Pe,At.last=function(t,e,n){var i=0,s=t?t.length:0;if("number"!=typeof e&&null!=e){var o=s;for(e=At.createCallback(e,n,3);o--&&e(t[o],o,t);)i++}else if(null==(i=e)||n)return t?t[s-1]:r;return et(t,Ft(0,s-i))},At.sample=function(t,e,n){if(t&&"number"!=typeof t.length&&(t=ge(t)),null==e||n)return t?t[qt(0,t.length-1)]:r;var i=je(t);return i.length=Tt(Ft(0,e),i.length),i},At.take=Pe,At.head=Pe,ae(At,function(t,e){var r="sample"!==e;At.prototype[e]||(At.prototype[e]=function(e,n){var i=this.__chain__,s=t(this.__wrapped__,e,n);return i||null!=e&&(!n||r&&"function"==typeof e)?new Ct(s,i):s})}),At.VERSION="2.4.2",At.prototype.chain=function(){return this.__chain__=!0,this},At.prototype.toString=function(){return G(this.__wrapped__)},At.prototype.value=Ze,At.prototype.valueOf=Ze,we(["join","pop","shift"],function(t){var e=nt[t];At.prototype[t]=function(){var t=this.__chain__,r=e.apply(this.__wrapped__,arguments);return t?new Ct(r,t):r}}),we(["push","reverse","sort","unshift"],function(t){var e=nt[t];At.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),we(["concat","slice","splice"],function(t){var e=nt[t];At.prototype[t]=function(){return new Ct(e.apply(this.__wrapped__,arguments),this.__chain__)}}),At}();$&&q?M?(q.exports=rt)._=rt:$._=rt:B._=rt}).call(this)}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(t,e,r){e.exports=y;var n,i=t("pseudomap"),s=t("util"),o=t("yallist"),a=(n="function"==typeof Symbol?function(t){return Symbol.for(t)}:function(t){return"_"+t})("max"),u=n("length"),c=n("lengthCalculator"),l=n("allowStale"),f=n("maxAge"),h=n("dispose"),p=n("noDisposeOnSet"),d=n("lruList"),_=n("cache");function g(){return 1}function y(t){if(!(this instanceof y))return new y(t);"number"==typeof t&&(t={max:t}),t||(t={});var e=this[a]=t.max;(!e||"number"!=typeof e||e<=0)&&(this[a]=1/0);var r=t.length||g;"function"!=typeof r&&(r=g),this[c]=r,this[l]=t.stale||!1,this[f]=t.maxAge||0,this[h]=t.dispose,this[p]=t.noDisposeOnSet||!1,this.reset()}function v(t,e,r,n){var i=r.value;m(t,i)&&(w(t,r),t[l]||(i=void 0)),i&&e.call(n,i.value,i.key,t)}function b(t,e,r){var n=t[_].get(e);if(n){var i=n.value;m(t,i)?(w(t,n),t[l]||(i=void 0)):r&&t[d].unshiftNode(n),i&&(i=i.value)}return i}function m(t,e){if(!e||!e.maxAge&&!t[f])return!1;var r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[f]&&r>t[f]}function x(t){if(t[u]>t[a])for(var e=t[d].tail;t[u]>t[a]&&null!==e;){var r=e.prev;w(t,e),e=r}}function w(t,e){if(e){var r=e.value;t[h]&&t[h](r.key,r.value),t[u]-=r.length,t[_].delete(r.key),t[d].removeNode(e)}}Object.defineProperty(y.prototype,"max",{set:function(t){(!t||"number"!=typeof t||t<=0)&&(t=1/0),this[a]=t,x(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(t){this[l]=!!t},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(t){(!t||"number"!=typeof t||t<0)&&(t=0),this[f]=t,x(this)},get:function(){return this[f]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(t){"function"!=typeof t&&(t=g),t!==this[c]&&(this[c]=t,this[u]=0,this[d].forEach(function(t){t.length=this[c](t.value,t.key),this[u]+=t.length},this)),x(this)},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),y.prototype.rforEach=function(t,e){e=e||this;for(var r=this[d].tail;null!==r;){var n=r.prev;v(this,t,r,e),r=n}},y.prototype.forEach=function(t,e){e=e||this;for(var r=this[d].head;null!==r;){var n=r.next;v(this,t,r,e),r=n}},y.prototype.keys=function(){return this[d].toArray().map(function(t){return t.key},this)},y.prototype.values=function(){return this[d].toArray().map(function(t){return t.value},this)},y.prototype.reset=function(){this[h]&&this[d]&&this[d].length&&this[d].forEach(function(t){this[h](t.key,t.value)},this),this[_]=new i,this[d]=new o,this[u]=0},y.prototype.dump=function(){return this[d].map(function(t){if(!m(this,t))return{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}},this).toArray().filter(function(t){return t})},y.prototype.dumpLru=function(){return this[d]},y.prototype.inspect=function(t,e){var r="LRUCache {",n=!1;this[l]&&(r+="\n allowStale: true",n=!0);var i=this[a];i&&i!==1/0&&(n&&(r+=","),r+="\n max: "+s.inspect(i,e),n=!0);var o=this[f];o&&(n&&(r+=","),r+="\n maxAge: "+s.inspect(o,e),n=!0);var h=this[c];h&&h!==g&&(n&&(r+=","),r+="\n length: "+s.inspect(this[u],e),n=!0);var p=!1;return this[d].forEach(function(t){p?r+=",\n ":(n&&(r+=",\n"),p=!0,r+="\n ");var i=s.inspect(t.key).split("\n").join("\n "),a={value:t.value};t.maxAge!==o&&(a.maxAge=t.maxAge),h!==g&&(a.length=t.length),m(this,t)&&(a.stale=!0),a=s.inspect(a,e).split("\n").join("\n "),r+=i+" => "+a}),(p||n)&&(r+="\n"),r+="}"},y.prototype.set=function(t,e,r){var n=(r=r||this[f])?Date.now():0,i=this[c](e,t);if(this[_].has(t)){if(i>this[a])return w(this,this[_].get(t)),!1;var s=this[_].get(t).value;return this[h]&&(this[p]||this[h](t,s.value)),s.now=n,s.maxAge=r,s.value=e,this[u]+=i-s.length,s.length=i,this.get(t),x(this),!0}var o=new function(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}(t,e,i,n,r);return o.length>this[a]?(this[h]&&this[h](t,e),!1):(this[u]+=o.length,this[d].unshift(o),this[_].set(t,this[d].head),x(this),!0)},y.prototype.has=function(t){return!!this[_].has(t)&&!m(this,this[_].get(t).value)},y.prototype.get=function(t){return b(this,t,!0)},y.prototype.peek=function(t){return b(this,t,!1)},y.prototype.pop=function(){var t=this[d].tail;return t?(w(this,t),t.value):null},y.prototype.del=function(t){w(this,this[_].get(t))},y.prototype.load=function(t){this.reset();for(var e=Date.now(),r=t.length-1;r>=0;r--){var n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{var s=i-e;s>0&&this.set(n.k,n.v,s)}}},y.prototype.prune=function(){var t=this;this[_].forEach(function(e,r){b(t,r,!1)})}},{pseudomap:55,util:13,yallist:63}],46:[function(t,e,r){var n=t;t=function(){};r=e.exports={Lexer:t("./lib/N3Lexer"),Parser:t("./lib/N3Parser"),Writer:t("./lib/N3Writer"),Store:t("./lib/N3Store"),StreamParser:t("./lib/N3StreamParser"),StreamWriter:t("./lib/N3StreamWriter"),Util:t("./lib/N3Util")};Object.keys(r).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return delete r[t],r[t]=n("./lib/N3"+t)}})})},{"./lib/N3Lexer":47,"./lib/N3Parser":48,"./lib/N3Store":49,"./lib/N3StreamParser":50,"./lib/N3StreamWriter":51,"./lib/N3Util":52,"./lib/N3Writer":53}],47:[function(t,e,r){var i=String.fromCharCode,s="function"==typeof n?n:function(t){setTimeout(t,0)},o=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\[uU]|\\(.)/g,a={"\\":"\\","'":"'",'"':'"',n:"\n",r:"\r",t:"\t",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},u=/[\x00-\x20<>\\"\{\}\|\^\`]/;function c(t){if(!(this instanceof c))return new c(t);if((t=t||{}).lineMode){this._tripleQuotedString=this._number=this._boolean=/$0^/;var e=this;this._tokenize=this.tokenize,this.tokenize=function(t,r){this._tokenize(t,function(t,n){!t&&/^(?:IRI|prefixed|literal|langcode|type|\.|eof)$/.test(n.type)?r&&r(t,n):r&&r(t||e._syntaxError(n.type,r=null))})}}this._n3Mode=!1!==t.n3,this._comments=!!t.comments}c.prototype={_iri:/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,_unescapedIri:/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,_unescapedString:/^"[^"\\]+"(?=[^"\\])/,_singleQuotedString:/^"[^"\\]*(?:\\.[^"\\]*)*"(?=[^"\\])|^'[^'\\]*(?:\\.[^'\\]*)*'(?=[^'\\])/,_tripleQuotedString:/^""("[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*")""|^''('[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*')''/,_langcode:/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,_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<])/,_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#()\[\]\{\}"'<]))/,_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#()\[\]\{\}"'<])/,_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#()\[\]\{\}"'<]))/,_number:/^[\-+]?(?:\d+\.?\d*([eE](?:[\-\+])?\d+)|\d*\.?\d+)(?=[.,;:\s#()\[\]\{\}"'<])/,_boolean:/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<])/,_keyword:/^@[a-z]+(?=[\s#<])/i,_sparqlKeyword:/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,_shortPredicates:/^a(?=\s+|<)/,_newline:/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,_comment:/#([^\n\r]*)/,_whitespace:/^[ \t]+/,_endOfFile:/^(?:#[^\n\r]*)?$/,_tokenizeToEnd:function(t,e){for(var r=this._input,n=this._comments;;){for(var i,s;i=this._newline.exec(r);)n&&(s=this._comment.exec(i[0]))&&t(null,{line:this._line,type:"comment",value:s[1],prefix:""}),r=r.substr(i[0].length,r.length),this._line++;if((i=this._whitespace.exec(r))&&(r=r.substr(i[0].length,r.length)),this._endOfFile.test(r))return e&&(n&&(s=this._comment.exec(r))&&t(null,{line:this._line,type:"comment",value:s[1],prefix:""}),t(r=null,{line:this._line,type:"eof",value:"",prefix:""})),this._input=r;var o,a=this._line,c="",l="",f="",h=r[0],p=null,d=0,_=!1;switch(h){case"^":if(r.length<3)break;if("^"!==r[1]){this._n3Mode&&(d=1,c="^");break}if(this._prevTokenType="^^","<"!==(r=r.substr(2))[0]){_=!0;break}case"<":if(p=this._unescapedIri.exec(r))c="IRI",l=p[1];else if(p=this._iri.exec(r)){if(null===(o=this._unescape(p[1]))||u.test(o))return g(this);c="IRI",l=o}else this._n3Mode&&r.length>1&&"="===r[1]&&(c="inverse",d=2,l="http://www.w3.org/2000/10/swap/log#implies");break;case"_":((p=this._blank.exec(r))||e&&(p=this._blank.exec(r+" ")))&&(c="blank",f="_",l=p[1]);break;case'"':case"'":if(p=this._unescapedString.exec(r))c="literal",l=p[0];else if(p=this._singleQuotedString.exec(r)){if(null===(o=this._unescape(p[0])))return g(this);c="literal",l=o.replace(/^'|'$/g,'"')}else if(p=this._tripleQuotedString.exec(r)){if(o=p[1]||p[2],this._line+=o.split(/\r\n|\r|\n/).length-1,null===(o=this._unescape(o)))return g(this);c="literal",l=o.replace(/^'|'$/g,'"')}break;case"?":this._n3Mode&&(p=this._variable.exec(r))&&(c="var",l=p[0]);break;case"@":"literal"===this._prevTokenType&&(p=this._langcode.exec(r))?(c="langcode",l=p[1]):(p=this._keyword.exec(r))&&(c=p[0]);break;case".":if(1===r.length?e:r[1]<"0"||r[1]>"9"){c=".",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(r))&&(c="literal",l='"'+p[0]+'"^^http://www.w3.org/2001/XMLSchema#'+(p[1]?"double":/^[+\-]?\d+$/.test(p[0])?"integer":"decimal"));break;case"B":case"b":case"p":case"P":case"G":case"g":(p=this._sparqlKeyword.exec(r))?c=p[0].toUpperCase():_=!0;break;case"f":case"t":(p=this._boolean.exec(r))?(c="literal",l='"'+p[0]+'"^^http://www.w3.org/2001/XMLSchema#boolean'):_=!0;break;case"a":(p=this._shortPredicates.exec(r))?(c="abbreviation",l="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"):_=!0;break;case"=":this._n3Mode&&r.length>1&&(c="abbreviation",">"!==r[1]?(d=1,l="http://www.w3.org/2002/07/owl#sameAs"):(d=2,l="http://www.w3.org/2000/10/swap/log#implies"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"{":case"}":d=1,c=h;break;default:_=!0}if(_&&("@prefix"!==this._prevTokenType&&"PREFIX"!==this._prevTokenType||!(p=this._prefix.exec(r))?((p=this._prefixed.exec(r))||e&&(p=this._prefixed.exec(r+" ")))&&(c="prefixed",f=p[1]||"",l=this._unescape(p[2])):(c="prefix",l=p[1]||"")),"^^"===this._prevTokenType)switch(c){case"prefixed":c="type";break;case"IRI":c="typeIRI";break;default:c=""}if(!c)return e||!/^'''|^"""/.test(r)&&/\n|\r/.test(r)?g(this):this._input=r;t(null,{line:a,type:c,value:l,prefix:f}),this._prevTokenType=c,r=r.substr(d||p[0].length,r.length)}function g(e){t(e._syntaxError(/^\S*/.exec(r)[0]))}},_unescape:function(t){try{return t.replace(o,function(t,e,r,n){var s;if(e){if(s=parseInt(e,16),isNaN(s))throw new Error;return i(s)}if(r){if(s=parseInt(r,16),isNaN(s))throw new Error;return s<=65535?i(s):i(55296+(s-=65536)/1024,56320+(1023&s))}var o=a[n];if(!o)throw new Error;return o})}catch(t){return null}},_syntaxError:function(t){return this._input=null,new Error('Unexpected "'+t+'" on line '+this._line+".")},tokenize:function(t,e){var r=this;if(this._line=1,"string"==typeof t){if(this._input=t,"function"!=typeof e){var n,i=[];if(this._tokenizeToEnd(function(t,e){t?n=t:i.push(e)},!0),n)throw n;return i}s(function(){r._tokenizeToEnd(e,!0)})}else this._input="","function"==typeof t.setEncoding&&t.setEncoding("utf8"),t.on("data",function(t){null!==r._input&&(r._input+=t,r._tokenizeToEnd(e,!1))}),t.on("end",function(){null!==r._input&&r._tokenizeToEnd(e,!0)})}},e.exports=c},{}],48:[function(t,e,r){var n=t("./N3Lexer"),i="http://www.w3.org/1999/02/22-rdf-syntax-ns#",s=i+"nil",o=i+"first",a=i+"rest",u=/^[a-z][a-z0-9+.-]*:/i,c=/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i,l=/(?:^|\/)\.\.?(?:$|[\/#?])/,f=0,h=0;function p(t){if(!(this instanceof p))return new p(t);this._contextStack=[],this._graph=null,t=t||{},this._setBase(t.documentIRI);var e="string"==typeof t.format?t.format.match(/\w*$/)[0].toLowerCase():"",r="turtle"===e,i="trig"===e,s=/triple/.test(e),o=/quad/.test(e),a=this._n3Mode=/n3/.test(e),u=s||o;(this._supportsNamedGraphs=!(r||a))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(r||i||s||a),u&&(this._base="",this._resolveIRI=function(t){return this._error("Disallowed relative IRI",t),this._callback=d,this._subject=null}),this._blankNodePrefix="string"!=typeof t.blankNodePrefix?"":"_:"+t.blankNodePrefix.replace(/^_:/,""),this._lexer=t.lexer||new n({lineMode:u,n3:a}),this._explicitQuantifiers=!!t.explicitQuantifiers}function d(){}p._resetBlankNodeIds=function(){f=h=0},p.prototype={_setBase:function(t){if(t){var e=t.indexOf("#");e>=0&&(t=t.substr(0,e)),this._base=t,this._basePath=t.indexOf("/")<0?t:t.replace(/[^\/?]*(?:\?.*)?$/,""),t=t.match(c),this._baseRoot=t[0],this._baseScheme=t[1]}else this._base=null},_saveContext:function(t,e,r,n,i){var s=this._n3Mode;this._contextStack.push({subject:r,predicate:n,object:i,graph:e,type:t,inverse:!!s&&this._inversePredicate,blankPrefix:s?this._prefixes._:"",quantified:s?this._quantified:null}),s&&(this._inversePredicate=!1,this._prefixes._=this._graph+".",this._quantified=Object.create(this._quantified))},_restoreContext:function(){var t=this._contextStack.pop(),e=this._n3Mode;this._subject=t.subject,this._predicate=t.predicate,this._object=t.object,this._graph=t.graph,e&&(this._inversePredicate=t.inverse,this._prefixes._=t.blankPrefix,this._quantified=t.quantified)},_readInTopContext: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)}},_readEntity:function(t,e){var r;switch(t.type){case"IRI":case"typeIRI":r=null===this._base||u.test(t.value)?t.value:this._resolveIRI(t);break;case"type":case"blank":case"prefixed":var n=this._prefixes[t.prefix];if(void 0===n)return this._error('Undefined prefix "'+t.prefix+':"',t);r=n+t.value;break;case"var":return t.value;default:return this._error("Expected entity but got "+t.type,t)}return!e&&this._n3Mode&&r in this._quantified&&(r=this._quantified[r]),r},_readSubject:function(t){switch(this._predicate=null,t.type){case"[":return this._saveContext("blank",this._graph,this._subject="_:b"+h++,null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,s,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph="_:b"+h++,null,null),this._readSubject):this._error("Unexpected graph",t);case"}":return this._readPunctuation(t);case"@forSome":return this._subject=null,this._predicate="http://www.w3.org/2000/10/swap/reify#forSome",this._quantifiedPrefix="_:b",this._readQuantifierList;case"@forAll":return this._subject=null,this._predicate="http://www.w3.org/2000/10/swap/reify#forAll",this._quantifiedPrefix="?b-",this._readQuantifierList;default:if(void 0===(this._subject=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph},_readPredicate:function(t){var e=t.type;switch(e){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=t.value;break;case".":case"]":case"}":return null===this._predicate?this._error("Unexpected "+e,t):(this._subject=null,"]"===e?this._readBlankNodeTail(t):this._readPunctuation(t));case";":return this._readPredicate;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},_readObject:function(t){switch(t.type){case"literal":return this._object=t.value,this._readDataTypeOrLang;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject="_:b"+h++),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,s),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph="_:b"+h++),this._readSubject):this._error("Unexpected graph",t);default:if(void 0===(this._object=this._readEntity(t)))return;if(this._n3Mode)return this._getPathReader(this._getTripleEndReader())}return this._getTripleEndReader()},_readPredicateOrNamedGraph:function(t){return"{"===t.type?this._readGraph(t):this._readPredicate(t)},_readGraph:function(t){return"{"!==t.type?this._error("Expected graph but got "+t.type,t):(this._graph=this._subject,this._subject=null,this._readSubject)},_readBlankNodeHead:function(t){return"]"===t.type?(this._subject=null,this._readBlankNodeTail(t)):(this._predicate=null,this._readPredicate(t))},_readBlankNodeTail:function(t){if("]"!==t.type)return this._readBlankNodePunctuation(t);null!==this._subject&&this._triple(this._subject,this._predicate,this._object,this._graph);var e=null===this._predicate;return this._restoreContext(),null===this._object?e?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank:this._getTripleEndReader()},_readPredicateAfterBlank:function(t){return"."!==t.type||this._contextStack.length?this._readPredicate(t):(this._subject=null,this._readPunctuation(t))},_readDataTypeOrLang:function(t){var e;switch(t.type){case"type":case"typeIRI":e="^^"+this._readEntity(t);break;case"langcode":e="@"+t.value.toLowerCase();break;default:return this._readCallback=this._getTripleEndReader(),this._readCallback(t)}return this._object+=e,this._getTripleEndReader()},_readListItem:function(t){var e=null,r=null,n=this._subject,i=this._contextStack,u=i[i.length-1],c=this._readListItem;switch(t.type){case"[":this._saveContext("blank",this._graph,r="_:b"+h++,o,this._subject=e="_:b"+h++),c=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,r="_:b"+h++,o,s),this._subject=null;break;case")":if(this._restoreContext(),0!==i.length&&"list"===i[i.length-1].type&&this._triple(this._subject,this._predicate,this._object,this._graph),null===this._predicate){if(c=this._readPredicate,this._subject===s)return c}else if(c=this._getTripleEndReader(),this._object===s)return c;r=s;break;case"literal":e=t.value,c=this._readDataTypeOrLang;break;default:if(void 0===(e=this._readEntity(t)))return}if(null===r&&(this._subject=r="_:b"+h++),null===n?null===u.predicate?u.subject=r:u.object=r:this._triple(n,a,r,this._graph),null!==e){if(this._n3Mode&&("IRI"===t.type||"prefixed"===t.type))return this._saveContext("item",this._graph,r,o,e),this._subject=e,this._predicate=null,this._getPathReader(this._readListItem);this._triple(r,o,e,this._graph)}return c},_readFormulaTail:function(t){return"}"!==t.type?this._readPunctuation(t):(null!==this._subject&&this._triple(this._subject,this._predicate,this._object,this._graph),this._restoreContext(),null===this._object?this._readPredicate:this._getTripleEndReader())},_readPunctuation:function(t){var e,r=this._subject,n=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,e=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":e=this._readPredicate;break;case",":e=this._readObject;break;default:if(this._supportsQuads&&null===this._graph&&void 0!==(n=this._readEntity(t))){e=this._readQuadPunctuation;break}return this._error('Expected punctuation to follow "'+this._object+'"',t)}if(null!==r){var s=this._predicate,o=this._object;i?this._triple(o,s,r,n):this._triple(r,s,o,n)}return e},_readBlankNodePunctuation:function(t){var e;switch(t.type){case";":e=this._readPredicate;break;case",":e=this._readObject;break;default:return this._error('Expected punctuation to follow "'+this._object+'"',t)}return this._triple(this._subject,this._predicate,this._object,this._graph),e},_readQuadPunctuation:function(t){return"."!==t.type?this._error("Expected dot to follow quad",t):this._readInTopContext},_readPrefix:function(t){return"prefix"!==t.type?this._error("Expected prefix to follow @prefix",t):(this._prefix=t.value,this._readPrefixIRI)},_readPrefixIRI:function(t){if("IRI"!==t.type)return this._error('Expected IRI to follow prefix "'+this._prefix+':"',t);var e=this._readEntity(t);return this._prefixes[this._prefix]=e,this._prefixCallback(this._prefix,e),this._readDeclarationPunctuation},_readBaseIRI:function(t){return"IRI"!==t.type?this._error("Expected IRI to follow base declaration",t):(this._setBase(null===this._base||u.test(t.value)?t.value:this._resolveIRI(t)),this._readDeclarationPunctuation)},_readNamedGraphLabel: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)}},_readNamedGraphBlankLabel:function(t){return"]"!==t.type?this._error("Invalid graph label",t):(this._subject="_:b"+h++,this._readGraph)},_readDeclarationPunctuation: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},_readQuantifierList:function(t){var e;switch(t.type){case"IRI":case"prefixed":if(void 0!==(e=this._readEntity(t,!0)))break;default:return this._error("Unexpected "+t.type,t)}return this._explicitQuantifiers?(null===this._subject?this._triple(this._graph||"",this._predicate,this._subject="_:b"+h++,"urn:n3:quantifiers"):this._triple(this._subject,a,this._subject="_:b"+h++,"urn:n3:quantifiers"),this._triple(this._subject,o,e,"urn:n3:quantifiers")):this._quantified[e]=this._quantifiedPrefix+h++,this._readQuantifierPunctuation},_readQuantifierPunctuation:function(t){return","===t.type?this._readQuantifierList:(this._explicitQuantifiers&&(this._triple(this._subject,a,s,"urn:n3:quantifiers"),this._subject=null),this._readCallback=this._getTripleEndReader(),this._readCallback(t))},_getPathReader:function(t){return this._afterPath=t,this._readPath},_readPath:function(t){switch(t.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:var e=this._contextStack,r=e.length&&e[e.length-1];if(r&&"item"===r.type){var n=this._subject;this._restoreContext(),this._triple(this._subject,o,n,this._graph)}return this._afterPath(t)}},_readForwardPath:function(t){var e,r,n="_:b"+h++;if(void 0!==(r=this._readEntity(t)))return null===this._predicate?(e=this._subject,this._subject=n):(e=this._object,this._object=n),this._triple(e,r,n,this._graph),this._readPath},_readBackwardPath:function(t){var e,r,n="_:b"+h++;if(void 0!==(e=this._readEntity(t)))return null===this._predicate?(r=this._subject,this._subject=n):(r=this._object,this._object=n),this._triple(n,e,r,this._graph),this._readPath},_getTripleEndReader: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}},_triple:function(t,e,r,n){this._callback(null,{subject:t,predicate:e,object:r,graph:n||""})},_error:function(t,e){this._callback(new Error(t+" on line "+e.line+"."))},_resolveIRI:function(t){var e=t.value;switch(e[0]){case void 0:return this._base;case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return("/"===e[1]?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return this._removeDotSegments(this._basePath+e)}},_removeDotSegments:function(t){if(!l.test(t))return t;for(var e="",r=t.length,n=-1,i=-1,s=0,o="/";n<r;){switch(o){case":":if(i<0&&"/"===t[++n]&&"/"===t[++n])for(;(i=n+1)<r&&"/"!==t[i];)n=i;break;case"?":case"#":n=r;break;case"/":if("."===t[n+1])switch(o=t[++n+1]){case"/":e+=t.substring(s,n-1),s=n+1;break;case void 0:case"?":case"#":return e+t.substring(s,n)+t.substr(n+1);case".":if(void 0===(o=t[++n+1])||"/"===o||"?"===o||"#"===o){if((s=(e+=t.substring(s,n-2)).lastIndexOf("/"))>=i&&(e=e.substr(0,s)),"/"!==o)return e+"/"+t.substr(n+1);s=n+1}}}o=t[++n]}return e+t.substring(s)},parse:function(t,e,r){var n=this;if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix||"_:b"+f+++"_",this._prefixCallback=r||d,this._inversePredicate=!1,this._quantified=Object.create(null),!e){var i,s=[];if(this._callback=function(t,e){t?i=t:e&&s.push(e)},this._lexer.tokenize(t).every(function(t){return n._readCallback=n._readCallback(t)}),i)throw i;return s}this._callback=e,this._lexer.tokenize(t,function(t,e){null!==t?(n._callback(t),n._callback=d):n._readCallback&&(n._readCallback=n._readCallback(e))})}},e.exports=p},{"./N3Lexer":47}],49:[function(t,e,r){var n=t("./N3Util").expandPrefixedName,i="urn:n3:defaultGraph";function s(t,e){if(!(this instanceof s))return new s(t,e);this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._ids["><"]=0,this._entities=Object.create(null),this._blankNodeIndex=0,e||!t||t[0]||(e=t,t=null),e=e||{},this._prefixes=Object.create(null),e.prefixes&&this.addPrefixes(e.prefixes),t&&this.addTriples(t)}s.prototype={get size(){var t=this._size;if(null!==t)return t;var e,r,n=this._graphs;for(var i in n)for(var s in e=n[i].subjects)for(var o in r=e[s])t+=Object.keys(r[o]).length;return this._size=t},get defaultGraph(){return i},_addToIndex:function(t,e,r,n){var i=t[e]||(t[e]={}),s=i[r]||(i[r]={}),o=n in s;return o||(s[n]=null),!o},_removeFromIndex:function(t,e,r,n){var i,s=t[e],o=s[r];for(i in delete o[n],o)return;for(i in delete s[r],s)return;delete t[e]},_findInIndex:function(t,e,r,n,i,s,o,a){var u,c,l,f=[],h=!e+!r+!n>1?Object.keys(this._ids):this._entities;for(var p in e&&((u=t,t={})[e]=u[e]),t){var d=h[p];if(c=t[p])for(var _ in r&&((u=c,c={})[r]=u[r]),c){var g=h[_];if(l=c[_])for(var y=(n?n in l?[n]:[]:Object.keys(l)),v=y.length-1;v>=0;v--){var b={subject:"",predicate:"",object:"",graph:a};b[i]=d,b[s]=g,b[o]=h[y[v]],f.push(b)}}}return f},_countInIndex:function(t,e,r,n){var i,s,o,a=0;for(var u in e&&((i=t,t={})[e]=i[e]),t)if(s=t[u])for(var c in r&&((i=s,s={})[r]=i[r]),s)(o=s[c])&&(n?n in o&&a++:a+=Object.keys(o).length);return a},addTriple:function(t,e,r,n){e||(n=t.graph,r=t.object,e=t.predicate,t=t.subject),n=n||i;var s=this._graphs[n];s||(s=this._graphs[n]={subjects:{},predicates:{},objects:{}},Object.freeze(s));var o=this._ids,a=this._entities;t=o[t]||(o[a[++this._id]=t]=this._id),e=o[e]||(o[a[++this._id]=e]=this._id),r=o[r]||(o[a[++this._id]=r]=this._id);var u=this._addToIndex(s.subjects,t,e,r);return this._addToIndex(s.predicates,e,r,t),this._addToIndex(s.objects,r,t,e),this._size=null,u},addTriples:function(t){for(var e=t.length-1;e>=0;e--)this.addTriple(t[e])},addPrefix:function(t,e){this._prefixes[t]=e},addPrefixes:function(t){for(var e in t)this.addPrefix(e,t[e])},removeTriple:function(t,e,r,n){e||(n=t.graph,r=t.object,e=t.predicate,t=t.subject),n=n||i;var s,o,a,u=this._ids,c=this._graphs;if(!(t=u[t]))return!1;if(!(e=u[e]))return!1;if(!(r=u[r]))return!1;if(!(s=c[n]))return!1;if(!(o=s.subjects[t]))return!1;if(!(a=o[e]))return!1;if(!(r in a))return!1;for(t in this._removeFromIndex(s.subjects,t,e,r),this._removeFromIndex(s.predicates,e,r,t),this._removeFromIndex(s.objects,r,t,e),null!==this._size&&this._size--,s.subjects)return!0;return delete c[n],!0},removeTriples:function(t){for(var e=t.length-1;e>=0;e--)this.removeTriple(t[e])},find:function(t,e,r,i){var s=this._prefixes;return this.findByIRI(n(t,s),n(e,s),n(r,s),n(i,s))},findByIRI:function(t,e,r,n){var s,o,a,u,c=[],l={},f=this._ids;if(n?l[n]=this._graphs[n]:l=this._graphs,t&&!(o=f[t]))return c;if(e&&!(a=f[e]))return c;if(r&&!(u=f[r]))return c;for(var h in l)(s=l[h])&&(h===i&&(h=""),o?u?c.push(this._findInIndex(s.objects,u,o,a,"object","subject","predicate",h)):c.push(this._findInIndex(s.subjects,o,a,null,"subject","predicate","object",h)):a?c.push(this._findInIndex(s.predicates,a,u,null,"predicate","object","subject",h)):u?c.push(this._findInIndex(s.objects,u,null,null,"object","subject","predicate",h)):c.push(this._findInIndex(s.subjects,null,null,null,"subject","predicate","object",h)));return 1===c.length?c[0]:c.concat.apply([],c)},count:function(t,e,r,i){var s=this._prefixes;return this.countByIRI(n(t,s),n(e,s),n(r,s),n(i,s))},countByIRI:function(t,e,r,n){n=n||i;var s=this._graphs[n],o=this._ids;return s?t&&!(t=o[t])?0:e&&!(e=o[e])?0:r&&!(r=o[r])?0:t?r?this._countInIndex(s.objects,r,t,e):this._countInIndex(s.subjects,t,e,r):e?this._countInIndex(s.predicates,e,r,t):this._countInIndex(s.objects,r,t,e):0},createBlankNode:function(t){var e,r;if(t)for(e=t="_:"+t,r=1;this._ids[e];)e=t+r++;else do{e="_:b"+this._blankNodeIndex++}while(this._ids[e]);return this._ids[e]=++this._id,this._entities[this._id]=e,e}},e.exports=s},{"./N3Util":52}],50:[function(t,e,r){var n=t("stream").Transform,i=t("util"),s=t("./N3Parser.js");function o(t){if(!(this instanceof o))return new o(t);n.call(this,{decodeStrings:!0}),this._readableState.objectMode=!0;var e,r,i=this;new s(t).parse({on:function(t,n){"data"===t?e=n:r=n}},function(t,e){t&&i.emit("error",t)||e&&i.push(e)},function(t,e){i.emit("prefix",t,e)}),this._transform=function(t,r,n){e(t),n()},this._flush=function(t){r(),t()}}i.inherits(o,n),e.exports=o},{"./N3Parser.js":48,stream:void 0,util:13}],51:[function(t,e,r){var n=t("stream").Transform,i=t("util"),s=t("./N3Writer.js");function o(t){if(!(this instanceof o))return new o(t);n.call(this,{encoding:"utf8"}),this._writableState.objectMode=!0;var e=this,r=new s({write:function(t,r,n){e.push(t),n&&n()},end:function(t){e.push(null),t&&t()}},t);this._transform=function(t,e,n){r.addTriple(t,n)},this._flush=function(t){r.end(t)}}i.inherits(o,n),e.exports=o},{"./N3Writer.js":53,stream:void 0,util:13}],52:[function(t,e,r){var n={isIRI:function(t){if(!t)return t;var e=t[0];return'"'!==e&&"_"!==e},isLiteral:function(t){return t&&'"'===t[0]},isBlank:function(t){return t&&"_:"===t.substr(0,2)},getLiteralValue:function(t){var e=/^"([^]*)"/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]},getLiteralType:function(t){var e=/^"[^]*"(?:\^\^([^"]+)|(@)[^@"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]||(e[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")},getLiteralLanguage:function(t){var e=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]?e[1].toLowerCase():""},isPrefixedName:function(t){return t&&/^[^:\/"']*:[^:\/"']+$/.test(t)},expandPrefixedName:function(t,e){var r,n,i,s=/(?:^|"\^\^)([^:\/#"'\^_]*):[^\/]*$/.exec(t);return s&&(n=e[r=s[1]],i=s.index),void 0===n?t:0===i?n+t.substr(r.length+1):t.substr(0,i+3)+n+t.substr(i+r.length+4)},createIRI:function(t){return t&&'"'===t[0]?n.getLiteralValue(t):t},createLiteral:function(t,e){if(!e)switch(void 0===t?"undefined":u(t)){case"boolean":e="http://www.w3.org/2001/XMLSchema#boolean";break;case"number":if(isFinite(t)){e=t%1==0?"http://www.w3.org/2001/XMLSchema#integer":"http://www.w3.org/2001/XMLSchema#decimal";break}default:return'"'+t+'"'}return'"'+t+(/^[a-z]+(-[a-z0-9]+)*$/i.test(e)?'"@'+e.toLowerCase():'"^^'+e)},prefix:function(t){return n.prefixes({"":t})("")},prefixes:function(t){var e=Object.create(null);for(var r in t)n(r,t[r]);function n(t,r){if(r||!(t in e)){var n=Object.create(null);r=r||"",e[t]=function(t){return n[t]||(n[t]=r+t)}}return e[t]}return n}};function i(t,e){for(var r in n)e?t.prototype[r]=s(n[r]):t[r]=n[r];return t}function s(t){return function(e){return t(this,e)}}e.exports=i(i)},{}],53:[function(t,e,r){var n=/^"([^]*)"(?:\^\^(.+)|@([\-a-z]+))?$/i,i=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,s=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,o={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};function a(t,e){if(!(this instanceof a))return new a(t,e);if(t&&"function"!=typeof t.write&&(e=t,t=null),e=e||{},t)this._outputStream=t,this._endStream=void 0===e.end||!!e.end;else{var r="";this._outputStream={write:function(t,e,n){r+=t,n&&n()},end:function(t){t&&t(null,r)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(e.format)?this._writeTriple=this._writeTripleLine:(this._graph="",this._prefixIRIs=Object.create(null),e.prefixes&&this.addPrefixes(e.prefixes))}function u(t){var e=o[t];return void 0===e&&(1===t.length?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}a.prototype={_write:function(t,e){this._outputStream.write(t,"utf8",e)},_writeTriple:function(t,e,r,n,i){try{this._graph!==n&&(this._write((null===this._subject?"":this._graph?"\n}\n":".\n")+(n?this._encodeIriOrBlankNode(n)+" {\n":"")),this._subject=null,this._graph="["!==n[0]?n:"]"),this._subject===t?this._predicate===e?this._write(", "+this._encodeObject(r),i):this._write(";\n "+this._encodePredicate(this._predicate=e)+" "+this._encodeObject(r),i):this._write((null===this._subject?"":".\n")+this._encodeSubject(this._subject=t)+" "+this._encodePredicate(this._predicate=e)+" "+this._encodeObject(r),i)}catch(t){i&&i(t)}},_writeTripleLine:function(t,e,r,n,i){delete this._prefixMatch;try{this._write(this._encodeIriOrBlankNode(t)+" "+this._encodeIriOrBlankNode(e)+" "+this._encodeObject(r)+(n?" "+this._encodeIriOrBlankNode(n)+".\n":".\n"),i)}catch(t){i&&i(t)}},_encodeIriOrBlankNode:function(t){var e=t[0];if("["===e||"("===e||"_"===e&&":"===t[1])return t;i.test(t)&&(t=t.replace(s,u));var r=this._prefixRegex.exec(t);return r?r[1]?this._prefixIRIs[r[1]]+r[2]:t:"<"+t+">"},_encodeLiteral:function(t,e,r){return i.test(t)&&(t=t.replace(s,u)),r?'"'+t+'"@'+r:e?'"'+t+'"^^'+this._encodeIriOrBlankNode(e):'"'+t+'"'},_encodeSubject:function(t){if('"'===t[0])throw new Error("A literal as subject is not allowed: "+t);return"["===t[0]&&(this._subject="]"),this._encodeIriOrBlankNode(t)},_encodePredicate:function(t){if('"'===t[0])throw new Error("A literal as predicate is not allowed: "+t);return"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"===t?"a":this._encodeIriOrBlankNode(t)},_encodeObject:function(t){if('"'!==t[0])return this._encodeIriOrBlankNode(t);var e=n.exec(t);if(!e)throw new Error("Invalid literal: "+t);return this._encodeLiteral(e[1],e[2],e[3])},_blockedWrite:function(){throw new Error("Cannot write because the writer has been closed.")},addTriple:function(t,e,r,n,i){void 0===r?this._writeTriple(t.subject,t.predicate,t.object,t.graph||"",e):"string"!=typeof n?this._writeTriple(t,e,r,"",n):this._writeTriple(t,e,r,n,i)},addTriples:function(t){for(var e=0;e<t.length;e++)this.addTriple(t[e])},addPrefix:function(t,e,r){var n={};n[t]=e,this.addPrefixes(n,r)},addPrefixes:function(t,e){var r=this._prefixIRIs,n=!1;for(var i in t){var s=t[i];/[#\/]$/.test(s)&&r[s]!==(i+=":")&&(n=!0,r[s]=i,null!==this._subject&&(this._write(this._graph?"\n}\n":".\n"),this._subject=null,this._graph=""),this._write("@prefix "+i+" <"+s+">.\n"))}if(n){var o="",a="";for(var u in r)o+=o?"|"+u:u,a+=(a?"|":"")+r[u];o=o.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&"),this._prefixRegex=new RegExp("^(?:"+a+")[^/]*$|^("+o+")([a-zA-Z][\\-_a-zA-Z0-9]*)$")}this._write(n?"\n":"",e)},blank:function(t,e){var r,n,i=t;switch(void 0===t?i=[]:"string"==typeof t?i=[{predicate:t,object:e}]:"length"in t||(i=[t]),n=i.length){case 0:return"[]";case 1:if("["!==(r=i[0]).object[0])return"[ "+this._encodePredicate(r.predicate)+" "+this._encodeObject(r.object)+" ]";default:for(var s="[",o=0;o<n;o++)(r=i[o]).predicate===t?s+=", "+this._encodeObject(r.object):(s+=(o?";\n ":"\n ")+this._encodePredicate(r.predicate)+" "+this._encodeObject(r.object),t=r.predicate);return s+"\n]"}},list:function(t){for(var e=t&&t.length||0,r=new Array(e),n=0;n<e;n++)r[n]=this._encodeObject(t[n]);return"("+r.join(" ")+")"},_prefixRegex:/$0^/,end:function(t){null!==this._subject&&(this._write(this._graph?"\n}\n":".\n"),this._subject=null),this._write=this._blockedWrite;var e=t&&function(r,n){e=null,t(r,n)};if(this._endStream)try{return this._outputStream.end(e)}catch(t){}e&&e()}},e.exports=a},{}],54:[function(t,e,r){var n=t("querystring"),i=t("url"),s=t("xtend");function o(t){return t&&t.rel}function a(t,e){return e.rel.split(/\s+/).forEach(function(r){t[r]=s(e,{rel:r})}),t}function u(t,e){var r=e.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return r&&(t[r[1]]=r[2]),t}function c(t){try{var e=t.split(";"),r=e.shift().replace(/[<>]/g,""),o=i.parse(r),a=n.parse(o.query),c=e.reduce(u,{});return(c=s(a,c)).url=r,c}catch(t){return null}}e.exports=function(t){return t?t.split(/,\s*</).map(c).filter(o).reduce(a,{}):null}},{querystring:8,url:9,xtend:62}],55:[function(t,e,r){(function(r){"pseudomap"===r.env.npm_package_name&&"test"===r.env.npm_lifecycle_script&&(r.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||r.env.TEST_PSEUDOMAP?e.exports=t("./pseudomap"):e.exports=Map}).call(this,t("_process"))},{"./pseudomap":56,_process:4}],56:[function(t,e,r){var n=Object.prototype.hasOwnProperty;function i(t){if(!(this instanceof i))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),t)if(t instanceof i||"function"==typeof Map&&t instanceof Map)t.forEach(function(t,e){this.set(e,t)},this);else{if(!Array.isArray(t))throw new TypeError("invalid argument");t.forEach(function(t){this.set(t[0],t[1])},this)}}function s(t,e){return t===e||t!=t&&e!=e}function o(t,e){for(var r=0,i="_"+e,o=i;n.call(t,o);o=i+r++)if(s(t[o].key,e))return t[o]}e.exports=i,i.prototype.forEach=function(t,e){e=e||this,Object.keys(this._data).forEach(function(r){"size"!==r&&t.call(e,this._data[r].value,this._data[r].key)},this)},i.prototype.has=function(t){return!!o(this._data,t)},i.prototype.get=function(t){var e=o(this._data,t);return e&&e.value},i.prototype.set=function(t,e){!function(t,e,r){for(var i=0,o="_"+e,a=o;n.call(t,a);a=o+i++)if(s(t[a].key,e))return void(t[a].value=r);t.size++,t[a]=new function(t,e,r){this.key=t,this.value=e,this._index=r}(e,r,a)}(this._data,t,e)},i.prototype.delete=function(t){var e=o(this._data,t);e&&(delete this._data[e._index],this._data.size--)},i.prototype.clear=function(){var t=Object.create(null);t.size=0,Object.defineProperty(this,"_data",{value:t,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(i.prototype,"size",{get:function(){return this._data.size},set:function(t){},enumerable:!0,configurable:!0}),i.prototype.values=i.prototype.keys=i.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},{}],57:[function(t,e,n){(function(t,e){!function(e,r){if(!e.setImmediate){var n,i=1,s={},o=!1,a=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){l(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&l(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){l(t.data)},n=function(e){t.port2.postMessage(e)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var t=a.documentElement;n=function(e){var r=a.createElement("script");r.onreadystatechange=function(){l(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():n=function(t){setTimeout(l,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var o={callback:t,args:e};return s[i]=o,n(i),i++},u.clearImmediate=c}function c(t){delete s[t]}function l(t){if(o)setTimeout(l,0,t);else{var e=s[t];if(e){o=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{c(t),o=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,t("_process"),void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:4}],58:[function(t,e,r){function n(t,e){this._options=t||{},e=e||{},this._prefixByIri={};var r=[];for(var n in e){var i=e[n];"string"==typeof i&&(this._prefixByIri[i]=n,r.push(i))}var s=r.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+s+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={}}n.prototype.toQuery=function(t){var e="";return t.queryType&&(e+=t.queryType.toUpperCase()+" "),t.reduced&&(e+="REDUCED "),t.distinct&&(e+="DISTINCT "),t.variables?e+=u(t.variables,void 0,function(t){return a(t)?this.toEntity(t):"("+this.toExpression(t.expression)+" AS "+t.variable+")"},this)+" ":t.template&&(e+=this.group(t.template,!0)+"\n"),t.from&&(e+=u(t.from.default||[],"",function(t){return"FROM "+this.toEntity(t)+"\n"},this)+u(t.from.named||[],"",function(t){return"FROM NAMED "+this.toEntity(t)+"\n"},this)),t.where&&(e+="WHERE "+this.group(t.where,!0)+"\n"),t.updates&&(e+=u(t.updates,";\n",this.toUpdate,this)),t.group&&(e+="GROUP BY "+u(t.group,void 0,function(t){return a(t.expression)?t.expression:"("+this.toExpression(t.expression)+")"},this)+"\n"),t.having&&(e+="HAVING ("+u(t.having,void 0,this.toExpression,this)+")\n"),t.order&&(e+="ORDER BY "+u(t.order,void 0,function(t){var e=this.toExpression(t.expression);return t.descending?"DESC("+e+")":e},this)+"\n"),t.offset&&(e+="OFFSET "+t.offset+"\n"),t.limit&&(e+="LIMIT "+t.limit+"\n"),t.values&&(e+=this.values(t)),(e=this.baseAndPrefixes(t)+e).trim()},n.prototype.baseAndPrefixes=function(t){var e=t.base?"BASE <"+t.base+">\n":"",r="";for(var n in t.prefixes)(this._options.allPrefixes||this._usedPrefixes[n])&&(r+="PREFIX "+n+": <"+t.prefixes[n]+">\n");return e+r},n.prototype.toPattern=function(t){var e=t.type||t instanceof Array&&"array"||(t.subject&&t.predicate&&t.object?"triple":"");if(!(e in this))throw new Error("Unknown entry type: "+e);return this[e](t)},n.prototype.triple=function(t){return this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+"."},n.prototype.array=function(t){return u(t,"\n",this.toPattern,this)},n.prototype.bgp=function(t){return u(t.triples,"\n",this.triple,this)},n.prototype.graph=function(t){return"GRAPH "+this.toEntity(t.name)+" "+this.group(t)},n.prototype.group=function(t,e){return-1===(t=!0!==e?this.array(t.patterns||t.triples):this.toPattern("group"!==t.type?t:t.patterns)).indexOf("\n")?"{ "+t+" }":"{\n"+c(t)+"\n}"},n.prototype.query=function(t){return"{\n"+c(this.toQuery(t))+"\n}"},n.prototype.filter=function(t){return"FILTER("+this.toExpression(t.expression)+")"},n.prototype.bind=function(t){return"BIND("+this.toExpression(t.expression)+" AS "+t.variable+")"},n.prototype.optional=function(t){return"OPTIONAL "+this.group(t)},n.prototype.union=function(t){return u(t.patterns,"\nUNION\n",function(t){return this.group(t,!0)},this)},n.prototype.minus=function(t){return"MINUS "+this.group(t)},n.prototype.values=function(t){var e=Object.keys(t.values.reduce(function(t,e){for(var r in e)t[r]=!0;return t},{}));return"VALUES ("+e.join(" ")+") {\n"+u(t.values,"\n",function(t){return" ("+u(e,void 0,function(e){return void 0!==t[e]?this.toEntity(t[e]):"UNDEF"},this)+")"},this)+"\n}"},n.prototype.service=function(t){return"SERVICE "+(t.silent?"SILENT ":"")+this.toEntity(t.name)+" "+this.group(t)},n.prototype.toExpression=function(t){if(a(t))return this.toEntity(t);switch(t.type.toLowerCase()){case"aggregate":return t.aggregation.toUpperCase()+"("+(t.distinct?"DISTINCT ":"")+this.toExpression(t.expression)+(t.separator?"; SEPARATOR = "+this.toEntity('"'+t.separator+'"'):"")+")";case"functioncall":return this.toEntity(t.function)+"("+u(t.args,", ",this.toExpression,this)+")";case"operation":var e=t.operator.toUpperCase(),r=t.args||[];switch(t.operator.toLowerCase()){case"<":case">":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(a(r[0])?this.toEntity(r[0]):"("+this.toExpression(r[0])+")")+" "+e+" "+(a(r[1])?this.toEntity(r[1]):"("+this.toExpression(r[1])+")");case"!":return"!"+this.toExpression(r[0]);case"notin":e="NOT IN";case"in":return this.toExpression(r[0])+" "+e+"("+(a(r[1])?r[1]:u(r[1],", ",this.toExpression,this))+")";case"notexists":e="NOT EXISTS";case"exists":return e+" "+this.group(r[0],!0);default:return e+"("+u(r,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+t.type)}},n.prototype.toEntity=function(t){if(a(t))switch(t[0]){case"?":case"$":case"*":case"_":return t;case'"':var e=t.match(/^"([^]*)"(?:(@.+)|\^\^(.+))?$/)||{},r=e[1]||"",n=e[2]||"",o=e[3];if(t='"'+r.replace(i,s)+'"'+n,o){if("http://www.w3.org/2001/XMLSchema#integer"===o&&/^\d+$/.test(r))return r+" ";t+="^^"+this.encodeIRI(o)}return t;default:return this.encodeIRI(t)}else{var u=t.items.map(this.toEntity,this),c=t.pathType;switch(c){case"^":case"!":return c+u[0];case"*":case"+":case"?":return u[0]+c;default:return"("+u.join(c)+")"}}};var i=/["\\\t\n\r\b\f]/g,s=function(t){return o[t]},o={"\\":"\\\\",'"':'\\"',"\t":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};function a(t){return"string"==typeof t}function u(t,e,r,n){return t.map(r,n).join(a(e)?e:" ")}function c(t){return t.replace(/^/gm," ")}n.prototype.encodeIRI=function(t){var e=this._prefixRegex.exec(t);if(e){var r=this._prefixByIri[e[1]];return this._usedPrefixes[r]=!0,r+":"+e[2]}return"<"+t+">"},n.prototype.toUpdate=function(t){switch(t.type||t.updateType){case"load":return"LOAD"+(t.source?" "+this.toEntity(t.source):"")+(t.destination?" INTO GRAPH "+this.toEntity(t.destination):"");case"insert":return"INSERT DATA "+this.group(t.insert,!0);case"delete":return"DELETE DATA "+this.group(t.delete,!0);case"deletewhere":return"DELETE WHERE "+this.group(t.delete,!0);case"insertdelete":return(t.graph?"WITH "+this.toEntity(t.graph)+"\n":"")+(t.delete.length?"DELETE "+this.group(t.delete,!0)+"\n":"")+(t.insert.length?"INSERT "+this.group(t.insert,!0)+"\n":"")+"WHERE "+this.group(t.where,!0);case"add":case"copy":case"move":return t.type.toUpperCase()+(t.source.default?" DEFAULT ":" ")+"TO "+this.toEntity(t.destination.name);default:throw new Error("Unknown update query type: "+t.type)}},e.exports=function(t){return{stringify:function(e){return new n(t,e.prefixes).toQuery(e)}}}},{}],59:[function(t,e,r){(function(n){var i=function(){var t=function(t,e,r,n){for(r=r||{},n=t.length;n--;r[t[n]]=e);return r},e=[11,14,23,33,42,47,95,105,108,110,111,120,121,126,292,293,294,295,296],r=[95,105,108,110,111,120,121,126,292,293,294,295,296],n=[1,21],i=[1,25],s=[6,82],o=[37,38,50],a=[37,50],u=[1,55],c=[1,57],l=[1,53],f=[1,56],h=[27,28,287],p=[12,15,281],d=[107,129,290,297],_=[12,15,107,129,281],g=[1,76],y=[1,80],v=[1,82],b=[107,129,290,291,297],m=[12,15,107,129,281,291],x=[1,89],w=[2,231],E=[1,88],F=[12,15,27,28,79,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],T=[6,37,38,50,60,67,70,78,80,82],k=[6,12,15,27,37,38,50,60,67,70,78,80,82,281],I=[6,12,15,27,28,30,31,37,38,40,50,60,67,70,78,79,80,82,89,104,107,120,121,123,128,155,156,158,161,162,163,181,192,203,208,210,211,213,214,218,222,226,241,246,263,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,298,301,302,304,305,306,307,308,309,310,311],S=[1,104],A=[1,105],C=[6,12,15,27,28,38,40,79,82,107,155,156,158,161,162,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,298],j=[27,31],O=[2,286],D=[1,118],P=[1,116],N=[6,192],R=[2,303],L=[2,291],U=[37,123],B=[6,40,67,70,78,80,82],$=[2,233],q=[1,132],M=[1,134],G=[1,144],z=[1,150],V=[1,153],H=[1,149],Q=[1,151],W=[1,147],Z=[1,148],X=[1,154],Y=[1,155],J=[1,158],K=[1,159],tt=[1,160],et=[1,161],rt=[1,162],nt=[1,163],it=[1,164],st=[1,165],ot=[1,166],at=[1,167],ut=[1,168],ct=[1,169],lt=[6,60,67,70,78,80,82],ft=[27,28,37,38,50],ht=[12,15,27,28,79,243,244,245,247,249,250,252,253,256,258,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,311,312,313,314,315,316],pt=[2,400],dt=[1,182],_t=[1,183],gt=[1,184],yt=[12,15,40,79,89,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],vt=[6,104,192],bt=[40,107],mt=[6,40,70,78,80,82],xt=[2,315],wt=[2,307],Et=[12,15,27,181,281],Ft=[2,343],Tt=[2,339],kt=[12,15,27,28,31,38,40,79,82,107,155,156,158,161,162,163,181,192,203,208,210,211,213,214,246,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,298],It=[12,15,27,28,30,31,38,40,79,82,89,107,155,156,158,161,162,163,181,192,203,208,210,211,213,214,218,222,226,241,246,263,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,298,302,305,306,307,308,309,310,311],St=[12,15,27,28,30,31,38,40,79,82,89,107,155,156,158,161,162,163,181,192,203,208,210,211,213,214,218,222,226,241,246,263,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,298,302,305,306,307,308,309,310,311],At=[30,31,192,218,246],Ct=[30,31,192,218,222,246],jt=[30,31,192,218,222,226,241,246,263,275,276,277,278,279,280,305,306,307,308,309,310,311],Ot=[30,31,192,218,222,226,241,246,263,275,276,277,278,279,280,287,302,305,306,307,308,309,310,311],Dt=[1,248],Pt=[1,249],Nt=[1,251],Rt=[1,252],Lt=[1,253],Ut=[1,254],Bt=[1,256],$t=[1,257],qt=[2,407],Mt=[1,259],Gt=[1,260],zt=[1,261],Vt=[1,267],Ht=[1,262],Qt=[1,263],Wt=[1,264],Zt=[1,265],Xt=[1,266],Yt=[1,274],Jt=[1,285],Kt=[6,40,78,80,82],te=[1,302],ee=[1,301],re=[38,40,82,107,155,156,158,161,162],ne=[1,310],ie=[1,311],se=[40,107,298],oe=[12,15,27,28,31,79,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],ae=[12,15,27,28,31,38,40,79,82,107,155,156,158,161,162,163,192,210,211,213,214,246,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,298],ue=[12,15,27,28,79,203,241,243,244,245,247,249,250,252,253,256,258,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,305,311,312,313,314,315,316],ce=[1,337],le=[1,338],fe=[1,340],he=[1,339],pe=[6,12,15,27,28,30,31,38,40,67,70,73,75,78,79,80,82,107,155,156,158,161,162,163,192,210,213,214,218,222,226,241,243,244,245,246,247,249,250,252,253,256,258,263,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,298,302,305,306,307,308,309,310,311,312,313,314,315,316],de=[1,348],_e=[1,347],ge=[28,163],ye=[12,15,31,40,79,89,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],ve=[28,40],be=[2,306],me=[6,40,82],xe=[6,12,15,28,40,70,78,80,82,243,244,245,247,249,250,252,253,256,258,281,311,312,313,314,315,316],we=[6,12,15,27,28,38,40,70,73,75,78,79,80,82,107,155,156,158,161,162,163,210,213,214,243,244,245,247,249,250,252,253,256,258,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,298,311,312,313,314,315,316],Ee=[6,12,15,27,28,40,67,70,78,80,82,243,244,245,247,249,250,252,253,256,258,281,311,312,313,314,315,316],Fe=[6,12,15,27,28,30,31,38,40,60,67,70,73,75,78,79,80,82,107,155,156,158,161,162,163,192,210,213,214,218,222,226,241,243,244,245,246,247,249,250,252,253,256,258,263,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,298,299,302,305,306,307,308,309,310,311,312,313,314,315,316],Te=[12,15,28,181,203,208,281],ke=[2,357],Ie=[1,389],Se=[38,40,82,107,155,156,158,161,162,298],Ae=[2,345],Ce=[12,15,27,28,31,38,40,79,82,107,155,156,158,161,162,163,181,192,210,211,213,214,246,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,298],je=[12,15,27,28,79,203,241,243,244,245,247,249,250,252,253,256,258,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,305,311,312,313,314,315,316],Oe=[1,439],De=[1,436],Pe=[1,437],Ne=[12,15,27,28,38,40,79,82,107,155,156,158,161,162,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],Re=[12,15,27,281],Le=[12,15,27,28,38,40,79,82,107,155,156,158,161,162,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,298],Ue=[2,318],Be=[12,15,27,181,192,281],$e=[12,15,31,79,89,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],qe=[6,12,15,27,28,40,73,75,78,80,82,243,244,245,247,249,250,252,253,256,258,281,311,312,313,314,315,316],Me=[2,313],Ge=[12,15,28,181,203,281],ze=[38,40,82,107,155,156,158,161,162,192,211,298],Ve=[12,15,27,28,40,79,107,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281],He=[12,15,27,28,31,79,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,301,302],Qe=[12,15,27,28,31,79,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,301,302,304,305],We=[1,549],Ze=[1,550],Xe=[2,301],Ye=[12,15,31,181,208,281],Je={trace:function(){},yy:{},symbols_:{error:2,QueryOrUpdateUnit:3,QueryOrUpdateUnit_repetition0:4,QueryOrUpdateUnit_group0:5,EOF:6,Query:7,Query_group0:8,Query_option0:9,BaseDecl:10,BASE:11,IRIREF:12,PrefixDecl:13,PREFIX:14,PNAME_NS:15,SelectQuery:16,SelectClause:17,SelectQuery_repetition0:18,WhereClause:19,SolutionModifier:20,SubSelect:21,SubSelect_option0:22,SELECT:23,SelectClause_option0:24,SelectClause_group0:25,SelectClauseItem:26,VAR:27,"(":28,Expression:29,AS:30,")":31,ConstructQuery:32,CONSTRUCT:33,ConstructTemplate:34,ConstructQuery_repetition0:35,ConstructQuery_repetition1:36,WHERE:37,"{":38,ConstructQuery_option0:39,"}":40,DescribeQuery:41,DESCRIBE:42,DescribeQuery_group0:43,DescribeQuery_repetition0:44,DescribeQuery_option0:45,AskQuery:46,ASK:47,AskQuery_repetition0:48,DatasetClause:49,FROM:50,DatasetClause_option0:51,iri:52,WhereClause_option0:53,GroupGraphPattern:54,SolutionModifier_option0:55,SolutionModifier_option1:56,SolutionModifier_option2:57,SolutionModifier_option3:58,GroupClause:59,GROUP:60,BY:61,GroupClause_repetition_plus0:62,GroupCondition:63,BuiltInCall:64,FunctionCall:65,HavingClause:66,HAVING:67,HavingClause_repetition_plus0:68,OrderClause:69,ORDER:70,OrderClause_repetition_plus0:71,OrderCondition:72,ASC:73,BrackettedExpression:74,DESC:75,Constraint:76,LimitOffsetClauses:77,LIMIT:78,INTEGER:79,OFFSET:80,ValuesClause:81,VALUES:82,InlineData:83,InlineData_repetition0:84,InlineData_repetition1:85,InlineData_repetition2:86,DataBlockValue:87,Literal:88,UNDEF:89,DataBlockValueList:90,DataBlockValueList_repetition0:91,Update:92,Update_repetition0:93,Update1:94,LOAD:95,Update1_option0:96,Update1_option1:97,Update1_group0:98,Update1_option2:99,GraphRefAll:100,Update1_group1:101,Update1_option3:102,GraphOrDefault:103,TO:104,CREATE:105,Update1_option4:106,GRAPH:107,INSERTDATA:108,QuadPattern:109,DELETEDATA:110,DELETEWHERE:111,Update1_option5:112,InsertClause:113,Update1_option6:114,Update1_repetition0:115,Update1_option7:116,DeleteClause:117,Update1_option8:118,Update1_repetition1:119,DELETE:120,INSERT:121,UsingClause:122,USING:123,UsingClause_option0:124,WithClause:125,WITH:126,IntoGraphClause:127,INTO:128,DEFAULT:129,GraphOrDefault_option0:130,GraphRefAll_group0:131,QuadPattern_option0:132,QuadPattern_repetition0:133,QuadsNotTriples:134,QuadsNotTriples_group0:135,QuadsNotTriples_option0:136,QuadsNotTriples_option1:137,QuadsNotTriples_option2:138,TriplesTemplate:139,TriplesTemplate_repetition0:140,TriplesSameSubject:141,TriplesTemplate_option0:142,GroupGraphPatternSub:143,GroupGraphPatternSub_option0:144,GroupGraphPatternSub_repetition0:145,GroupGraphPatternSubTail:146,GraphPatternNotTriples:147,GroupGraphPatternSubTail_option0:148,GroupGraphPatternSubTail_option1:149,TriplesBlock:150,TriplesBlock_repetition0:151,TriplesSameSubjectPath:152,TriplesBlock_option0:153,GraphPatternNotTriples_repetition0:154,OPTIONAL:155,MINUS:156,GraphPatternNotTriples_group0:157,SERVICE:158,GraphPatternNotTriples_option0:159,GraphPatternNotTriples_group1:160,FILTER:161,BIND:162,NIL:163,FunctionCall_option0:164,FunctionCall_repetition0:165,ExpressionList:166,ExpressionList_repetition0:167,ConstructTemplate_option0:168,ConstructTriples:169,ConstructTriples_repetition0:170,ConstructTriples_option0:171,VarOrTerm:172,PropertyListNotEmpty:173,TriplesNode:174,PropertyList:175,PropertyList_option0:176,PropertyListNotEmpty_repetition0:177,VerbObjectList:178,Verb:179,ObjectList:180,a:181,ObjectList_repetition0:182,GraphNode:183,PropertyListPathNotEmpty:184,TriplesNodePath:185,TriplesSameSubjectPath_option0:186,PropertyListPathNotEmpty_group0:187,PropertyListPathNotEmpty_repetition0:188,GraphNodePath:189,PropertyListPathNotEmpty_repetition1:190,PropertyListPathNotEmptyTail:191,";":192,PropertyListPathNotEmptyTail_group0:193,Path:194,Path_repetition0:195,PathSequence:196,PathSequence_repetition0:197,PathEltOrInverse:198,PathElt:199,PathPrimary:200,PathElt_option0:201,PathEltOrInverse_option0:202,"!":203,PathNegatedPropertySet:204,PathOneInPropertySet:205,PathNegatedPropertySet_repetition0:206,PathNegatedPropertySet_option0:207,"^":208,TriplesNode_repetition_plus0:209,"[":210,"]":211,TriplesNodePath_repetition_plus0:212,BLANK_NODE_LABEL:213,ANON:214,ConditionalAndExpression:215,Expression_repetition0:216,ExpressionTail:217,"||":218,RelationalExpression:219,ConditionalAndExpression_repetition0:220,ConditionalAndExpressionTail:221,"&&":222,AdditiveExpression:223,RelationalExpression_group0:224,RelationalExpression_option0:225,IN:226,MultiplicativeExpression:227,AdditiveExpression_repetition0:228,AdditiveExpressionTail:229,AdditiveExpressionTail_group0:230,NumericLiteralPositive:231,AdditiveExpressionTail_repetition0:232,NumericLiteralNegative:233,AdditiveExpressionTail_repetition1:234,UnaryExpression:235,MultiplicativeExpression_repetition0:236,MultiplicativeExpressionTail:237,MultiplicativeExpressionTail_group0:238,UnaryExpression_option0:239,PrimaryExpression:240,"-":241,Aggregate:242,FUNC_ARITY0:243,FUNC_ARITY1:244,FUNC_ARITY2:245,",":246,IF:247,BuiltInCall_group0:248,BOUND:249,BNODE:250,BuiltInCall_option0:251,EXISTS:252,COUNT:253,Aggregate_option0:254,Aggregate_group0:255,FUNC_AGGREGATE:256,Aggregate_option1:257,GROUP_CONCAT:258,Aggregate_option2:259,Aggregate_option3:260,GroupConcatSeparator:261,SEPARATOR:262,"=":263,String:264,LANGTAG:265,"^^":266,DECIMAL:267,DOUBLE:268,true:269,false:270,STRING_LITERAL1:271,STRING_LITERAL2:272,STRING_LITERAL_LONG1:273,STRING_LITERAL_LONG2:274,INTEGER_POSITIVE:275,DECIMAL_POSITIVE:276,DOUBLE_POSITIVE:277,INTEGER_NEGATIVE:278,DECIMAL_NEGATIVE:279,DOUBLE_NEGATIVE:280,PNAME_LN:281,QueryOrUpdateUnit_repetition0_group0:282,SelectClause_option0_group0:283,DISTINCT:284,REDUCED:285,SelectClause_group0_repetition_plus0:286,"*":287,DescribeQuery_group0_repetition_plus0_group0:288,DescribeQuery_group0_repetition_plus0:289,NAMED:290,SILENT:291,CLEAR:292,DROP:293,ADD:294,MOVE:295,COPY:296,ALL:297,".":298,UNION:299,PropertyListNotEmpty_repetition0_repetition_plus0:300,"|":301,"/":302,PathElt_option0_group0:303,"?":304,"+":305,"!=":306,"<":307,">":308,"<=":309,">=":310,NOT:311,CONCAT:312,COALESCE:313,SUBSTR:314,REGEX:315,REPLACE:316,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",11:"BASE",12:"IRIREF",14:"PREFIX",15:"PNAME_NS",23:"SELECT",27:"VAR",28:"(",30:"AS",31:")",33:"CONSTRUCT",37:"WHERE",38:"{",40:"}",42:"DESCRIBE",47:"ASK",50:"FROM",60:"GROUP",61:"BY",67:"HAVING",70:"ORDER",73:"ASC",75:"DESC",78:"LIMIT",79:"INTEGER",80:"OFFSET",82:"VALUES",89:"UNDEF",95:"LOAD",104:"TO",105:"CREATE",107:"GRAPH",108:"INSERTDATA",110:"DELETEDATA",111:"DELETEWHERE",120:"DELETE",121:"INSERT",123:"USING",126:"WITH",128:"INTO",129:"DEFAULT",155:"OPTIONAL",156:"MINUS",158:"SERVICE",161:"FILTER",162:"BIND",163:"NIL",181:"a",192:";",203:"!",208:"^",210:"[",211:"]",213:"BLANK_NODE_LABEL",214:"ANON",218:"||",222:"&&",226:"IN",241:"-",243:"FUNC_ARITY0",244:"FUNC_ARITY1",245:"FUNC_ARITY2",246:",",247:"IF",249:"BOUND",250:"BNODE",252:"EXISTS",253:"COUNT",256:"FUNC_AGGREGATE",258:"GROUP_CONCAT",262:"SEPARATOR",263:"=",265:"LANGTAG",266:"^^",267:"DECIMAL",268:"DOUBLE",269:"true",270:"false",271:"STRING_LITERAL1",272:"STRING_LITERAL2",273:"STRING_LITERAL_LONG1",274:"STRING_LITERAL_LONG2",275:"INTEGER_POSITIVE",276:"DECIMAL_POSITIVE",277:"DOUBLE_POSITIVE",278:"INTEGER_NEGATIVE",279:"DECIMAL_NEGATIVE",280:"DOUBLE_NEGATIVE",281:"PNAME_LN",284:"DISTINCT",285:"REDUCED",287:"*",290:"NAMED",291:"SILENT",292:"CLEAR",293:"DROP",294:"ADD",295:"MOVE",296:"COPY",297:"ALL",298:".",299:"UNION",301:"|",302:"/",304:"?",305:"+",306:"!=",307:"<",308:">",309:"<=",310:">=",311:"NOT",312:"CONCAT",313:"COALESCE",314:"SUBSTR",315:"REGEX",316:"REPLACE"},productions_:[0,[3,3],[7,2],[10,2],[13,3],[16,4],[21,4],[17,3],[26,1],[26,5],[32,5],[32,7],[41,5],[46,4],[49,3],[19,2],[20,4],[59,3],[63,1],[63,1],[63,3],[63,5],[63,1],[66,2],[69,3],[72,2],[72,2],[72,1],[72,1],[77,2],[77,2],[77,4],[77,4],[81,2],[83,4],[83,6],[87,1],[87,1],[87,1],[90,3],[92,2],[94,4],[94,3],[94,5],[94,4],[94,2],[94,2],[94,2],[94,6],[94,6],[117,2],[113,2],[122,3],[125,2],[127,3],[103,1],[103,2],[100,2],[100,1],[109,4],[134,7],[139,3],[54,3],[54,3],[143,2],[146,3],[150,3],[147,2],[147,2],[147,2],[147,3],[147,4],[147,2],[147,6],[147,1],[76,1],[76,1],[76,1],[65,2],[65,6],[166,1],[166,4],[34,3],[169,3],[141,2],[141,2],[175,1],[173,2],[178,2],[179,1],[179,1],[179,1],[180,2],[152,2],[152,2],[184,4],[191,1],[191,3],[194,2],[196,2],[199,2],[198,2],[200,1],[200,1],[200,2],[200,3],[204,1],[204,1],[204,4],[205,1],[205,1],[205,2],[205,2],[174,3],[174,3],[185,3],[185,3],[183,1],[183,1],[189,1],[189,1],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[29,2],[217,2],[215,2],[221,2],[219,1],[219,3],[219,4],[223,2],[229,2],[229,2],[229,2],[227,2],[237,2],[235,2],[235,2],[235,2],[240,1],[240,1],[240,1],[240,1],[240,1],[240,1],[74,3],[64,1],[64,2],[64,4],[64,6],[64,8],[64,2],[64,4],[64,2],[64,4],[64,3],[242,5],[242,5],[242,6],[261,4],[88,1],[88,2],[88,3],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[264,1],[264,1],[264,1],[264,1],[231,1],[231,1],[231,1],[233,1],[233,1],[233,1],[52,1],[52,1],[52,1],[282,1],[282,1],[4,0],[4,2],[5,1],[5,1],[8,1],[8,1],[8,1],[8,1],[9,0],[9,1],[18,0],[18,2],[22,0],[22,1],[283,1],[283,1],[24,0],[24,1],[286,1],[286,2],[25,1],[25,1],[35,0],[35,2],[36,0],[36,2],[39,0],[39,1],[288,1],[288,1],[289,1],[289,2],[43,1],[43,1],[44,0],[44,2],[45,0],[45,1],[48,0],[48,2],[51,0],[51,1],[53,0],[53,1],[55,0],[55,1],[56,0],[56,1],[57,0],[57,1],[58,0],[58,1],[62,1],[62,2],[68,1],[68,2],[71,1],[71,2],[84,0],[84,2],[85,0],[85,2],[86,0],[86,2],[91,0],[91,2],[93,0],[93,3],[96,0],[96,1],[97,0],[97,1],[98,1],[98,1],[99,0],[99,1],[101,1],[101,1],[101,1],[102,0],[102,1],[106,0],[106,1],[112,0],[112,1],[114,0],[114,1],[115,0],[115,2],[116,0],[116,1],[118,0],[118,1],[119,0],[119,2],[124,0],[124,1],[130,0],[130,1],[131,1],[131,1],[131,1],[132,0],[132,1],[133,0],[133,2],[135,1],[135,1],[136,0],[136,1],[137,0],[137,1],[138,0],[138,1],[140,0],[140,3],[142,0],[142,1],[144,0],[144,1],[145,0],[145,2],[148,0],[148,1],[149,0],[149,1],[151,0],[151,3],[153,0],[153,1],[154,0],[154,3],[157,1],[157,1],[159,0],[159,1],[160,1],[160,1],[164,0],[164,1],[165,0],[165,3],[167,0],[167,3],[168,0],[168,1],[170,0],[170,3],[171,0],[171,1],[176,0],[176,1],[300,1],[300,2],[177,0],[177,3],[182,0],[182,3],[186,0],[186,1],[187,1],[187,1],[188,0],[188,3],[190,0],[190,2],[193,1],[193,1],[195,0],[195,3],[197,0],[197,3],[303,1],[303,1],[303,1],[201,0],[201,1],[202,0],[202,1],[206,0],[206,3],[207,0],[207,1],[209,1],[209,2],[212,1],[212,2],[216,0],[216,2],[220,0],[220,2],[224,1],[224,1],[224,1],[224,1],[224,1],[224,1],[225,0],[225,1],[228,0],[228,2],[230,1],[230,1],[232,0],[232,2],[234,0],[234,2],[236,0],[236,2],[238,1],[238,1],[239,0],[239,1],[248,1],[248,1],[248,1],[248,1],[248,1],[251,0],[251,1],[254,0],[254,1],[255,1],[255,1],[257,0],[257,1],[259,0],[259,1],[260,0],[260,1]],performAction:function(t,e,r,n,i,s,o){var a=s.length-1;switch(i){case 1:return Ur.base&&(s[a-1].base=Ur.base),Ur.base=fr=hr=pr="",s[a-1].prefixes=Ur.prefixes,Ur.prefixes=null,s[a-1];case 2:this.$=yr(s[a-1],s[a],{type:"query"});break;case 3:Ur.base=br(s[a]),fr=hr=pr="";break;case 4:Ur.prefixes||(Ur.prefixes={}),s[a-1]=s[a-1].substr(0,s[a-1].length-1),s[a]=br(s[a]),Ur.prefixes[s[a-1]]=s[a];break;case 5:this.$=yr(s[a-3],Tr(s[a-2]),s[a-1],s[a]);break;case 6:this.$=yr(s[a-3],s[a-2],s[a-1],s[a],{type:"query"});break;case 7:this.$=yr({queryType:"SELECT",variables:"*"===s[a]?["*"]:s[a]},s[a-1]&&(s[a-2]=dr(s[a-1]),s[a-1]={},s[a-1][s[a-2]]=!0,s[a-1]));break;case 8:case 89:case 121:case 148:this.$=mr(s[a]);break;case 9:case 21:this.$=wr(s[a-3],{variable:mr(s[a-1])});break;case 10:this.$=yr({queryType:"CONSTRUCT",template:s[a-3]},Tr(s[a-2]),s[a-1],s[a]);break;case 11:this.$=yr({queryType:"CONSTRUCT",template:s[a-2]=s[a-2]?s[a-2].triples:[]},Tr(s[a-5]),{where:[{type:"bgp",triples:gr([],s[a-2])}]},s[a]);break;case 12:this.$=yr({queryType:"DESCRIBE",variables:"*"===s[a-3]?["*"]:s[a-3].map(mr)},Tr(s[a-2]),s[a-1],s[a]);break;case 13:this.$=yr({queryType:"ASK"},Tr(s[a-2]),s[a-1],s[a]);break;case 14:case 52:this.$={iri:s[a],named:!!s[a-1]};break;case 15:this.$={where:s[a].patterns};break;case 16:this.$=yr(s[a-3],s[a-2],s[a-1],s[a]);break;case 17:this.$={group:s[a]};break;case 18:case 19:case 25:case 27:this.$=wr(s[a]);break;case 20:this.$=wr(s[a-1]);break;case 22:case 28:this.$=wr(mr(s[a]));break;case 23:this.$={having:s[a]};break;case 24:this.$={order:s[a]};break;case 26:this.$=wr(s[a],{descending:!0});break;case 29:this.$={limit:kr(s[a])};break;case 30:this.$={offset:kr(s[a])};break;case 31:this.$={limit:kr(s[a-2]),offset:kr(s[a])};break;case 32:this.$={limit:kr(s[a]),offset:kr(s[a-2])};break;case 33:this.$={type:"values",values:s[a]};break;case 34:s[a-3]=mr(s[a-3]),this.$=s[a-1].map(function(t){var e={};return e[s[a-3]]=t,e});break;case 35:var u=s[a-4].length;s[a-4]=s[a-4].map(mr),this.$=s[a-1].map(function(t){if(t.length!==u)throw Error("Inconsistent VALUES length");for(var e={},r=0;r<u;r++)e[s[a-4][r]]=t[r];return e});break;case 38:this.$=void 0;break;case 39:case 62:case 82:case 105:case 149:this.$=s[a-1];break;case 40:this.$={type:"update",updates:_r(s[a-1],s[a])};break;case 41:this.$=yr({type:"load",silent:!!s[a-2],source:s[a-1]},s[a]&&{destination:s[a]});break;case 42:this.$={type:dr(s[a-2]),silent:!!s[a-1],graph:s[a]};break;case 43:this.$={type:dr(s[a-4]),silent:!!s[a-3],source:s[a-2],destination:s[a]};break;case 44:this.$={type:"create",silent:!!s[a-2],graph:s[a-1]};break;case 45:this.$={updateType:"insert",insert:s[a]};break;case 46:this.$={updateType:"delete",delete:s[a]};break;case 47:this.$={updateType:"deletewhere",delete:s[a]};break;case 48:this.$=yr({updateType:"insertdelete"},s[a-5],{insert:s[a-4]||[]},{delete:s[a-3]||[]},Tr(s[a-2]),{where:s[a].patterns});break;case 49:this.$=yr({updateType:"insertdelete"},s[a-5],{delete:s[a-4]||[]},{insert:s[a-3]||[]},Tr(s[a-2]),{where:s[a].patterns});break;case 50:case 51:case 54:case 140:this.$=s[a];break;case 53:this.$={graph:s[a]};break;case 55:this.$={type:"graph",default:!0};break;case 56:case 57:this.$={type:"graph",name:s[a]};break;case 58:this.$={},this.$[dr(s[a])]=!0;break;case 59:this.$=s[a-2]?vr(s[a-1],[s[a-2]]):vr(s[a-1]);break;case 60:var c=yr(s[a-3]||{triples:[]},{type:"graph",name:mr(s[a-5])});this.$=s[a]?[c,s[a]]:[c];break;case 61:case 66:this.$={type:"bgp",triples:vr(s[a-2],[s[a-1]])};break;case 63:Ur.options.collapseGroups&&s[a-1].length>1&&(s[a-1]=function(t){for(var e,r,n=[],i=0;r=t[i];i++)switch(r.type){case"bgp":r.triples.length&&(e?gr(e.triples,r.triples):_r(n,e=r));break;default:(!r.patterns||r.patterns.length>0)&&(_r(n,r),e=null)}return n}(s[a-1])),this.$={type:"group",patterns:s[a-1]};break;case 64:this.$=s[a-1]?vr([s[a-1]],s[a]):vr(s[a]);break;case 65:this.$=s[a]?[s[a-2],s[a]]:s[a-2];break;case 67:s[a-1].length?this.$={type:"union",patterns:vr(s[a-1].map(Ir),[Ir(s[a])])}:this.$=Ur.options.collapseGroups?Ir(s[a]):s[a];break;case 68:this.$=yr(s[a],{type:"optional"});break;case 69:this.$=yr(s[a],{type:"minus"});break;case 70:this.$=yr(s[a],{type:"graph",name:mr(s[a-1])});break;case 71:this.$=yr(s[a],{type:"service",name:mr(s[a-1]),silent:!!s[a-2]});break;case 72:this.$={type:"filter",expression:s[a]};break;case 73:this.$={type:"bind",variable:mr(s[a-1]),expression:s[a-3]};break;case 78:this.$={type:"functionCall",function:s[a-1],args:[]};break;case 79:this.$={type:"functionCall",function:s[a-5],args:_r(s[a-2],s[a-1]),distinct:!!s[a-3]};break;case 80:case 96:case 107:case 189:case 199:case 211:case 213:case 223:case 227:case 247:case 249:case 251:case 253:case 255:case 276:case 282:case 293:case 303:case 309:case 315:case 319:case 329:case 331:case 335:case 343:case 345:case 351:case 353:case 357:case 359:case 368:case 376:case 378:case 388:case 392:case 394:case 396:this.$=[];break;case 81:this.$=_r(s[a-2],s[a-1]);break;case 83:this.$=vr(s[a-2],[s[a-1]]);break;case 84:case 93:this.$=s[a].map(function(t){return yr(Ar(s[a-1]),t)});break;case 85:this.$=gr(s[a].map(function(t){return yr(Ar(s[a-1].entity),t)}),s[a-1].triples);break;case 87:this.$=vr(s[a-1],[s[a]]);break;case 88:this.$=Rr(s[a-1],s[a]);break;case 91:case 103:case 110:this.$=tr;break;case 92:this.$=_r(s[a-1],s[a]);break;case 94:this.$=s[a]?gr(s[a].map(function(t){return yr(Ar(s[a-1].entity),t)}),s[a-1].triples):s[a-1].triples;break;case 95:this.$=Rr(mr(s[a-3]),_r(s[a-2],s[a-1]),s[a]);break;case 97:this.$=Rr(mr(s[a-1]),s[a]);break;case 98:this.$=s[a-1].length?Er("|",_r(s[a-1],s[a])):s[a];break;case 99:this.$=s[a-1].length?Er("/",_r(s[a-1],s[a])):s[a];break;case 100:this.$=s[a]?Er(s[a],[s[a-1]]):s[a-1];break;case 101:this.$=s[a-1]?Er(s[a-1],[s[a]]):s[a];break;case 104:case 111:this.$=Er(s[a-1],[s[a]]);break;case 108:this.$=Er("|",_r(s[a-2],s[a-1]));break;case 112:this.$=Er(s[a-1],[tr]);break;case 113:case 115:this.$=function(t){var e=Cr(),r=e,n=[],i=[];t.forEach(function(t){n.push(t.entity),gr(i,t.triples)});for(var s=0,o=0,a=n.length,u=Array(2*a);s<a;)u[o++]=Ar(r,er,n[s]),u[o++]=Ar(r,rr,r=++s<a?Cr():nr);return{entity:e,triples:gr(u,i)}}(s[a-1]);break;case 114:case 116:this.$=function(t){var e=Cr();return{entity:e,triples:t.map(function(t){return yr(Ar(e),t)})}}(s[a-1]);break;case 117:case 119:this.$={entity:s[a],triples:[]};break;case 125:this.$=Cr();break;case 126:this.$=nr;break;case 127:case 129:case 134:case 138:this.$=Fr(s[a-1],s[a]);break;case 128:this.$=["||",s[a]];break;case 130:this.$=["&&",s[a]];break;case 132:this.$=xr(s[a-1],[s[a-2],s[a]]);break;case 133:this.$=xr(s[a-2]?"notin":"in",[s[a-3],s[a]]);break;case 135:case 139:this.$=[s[a-1],s[a]];break;case 136:this.$=["+",Fr(s[a-1],s[a])];break;case 137:this.$=["-",Fr(s[a-1].replace("-",""),s[a])];break;case 141:this.$=xr(s[a-1],[s[a]]);break;case 142:this.$=xr("UMINUS",[s[a]]);break;case 151:this.$=xr(dr(s[a-1]));break;case 152:this.$=xr(dr(s[a-3]),[s[a-1]]);break;case 153:this.$=xr(dr(s[a-5]),[s[a-3],s[a-1]]);break;case 154:this.$=xr(dr(s[a-7]),[s[a-5],s[a-3],s[a-1]]);break;case 155:this.$=xr(dr(s[a-1]),s[a]);break;case 156:this.$=xr("bound",[mr(s[a-1])]);break;case 157:this.$=xr(s[a-1],[]);break;case 158:this.$=xr(s[a-3],[s[a-1]]);break;case 159:this.$=xr(s[a-2]?"notexists":"exists",[Ir(s[a])]);break;case 160:case 161:this.$=wr(s[a-1],{type:"aggregate",aggregation:dr(s[a-4]),distinct:!!s[a-2]});break;case 162:this.$=wr(s[a-2],{type:"aggregate",aggregation:dr(s[a-5]),distinct:!!s[a-3],separator:s[a-1]||" "});break;case 163:this.$=s[a].substr(1,s[a].length-2);break;case 165:this.$=s[a-1]+dr(s[a]);break;case 166:this.$=s[a-2]+"^^"+s[a];break;case 167:case 181:this.$=Sr(s[a],sr);break;case 168:case 182:this.$=Sr(s[a],or);break;case 169:case 183:this.$=Sr(dr(s[a]),ar);break;case 172:this.$=cr;break;case 173:this.$=lr;break;case 174:case 175:this.$=Nr(s[a],1);break;case 176:case 177:this.$=Nr(s[a],3);break;case 178:this.$=Sr(s[a].substr(1),sr);break;case 179:this.$=Sr(s[a].substr(1),or);break;case 180:this.$=Sr(s[a].substr(1).toLowerCase(),ar);break;case 184:this.$=br(s[a]);break;case 185:var l=s[a].indexOf(":"),f=s[a].substr(0,l),h=Ur.prefixes[f];if(!h)throw new Error("Unknown prefix: "+f);this.$=br(h+s[a].substr(l+1));break;case 186:if(s[a]=s[a].substr(0,s[a].length-1),!(s[a]in Ur.prefixes))throw new Error("Unknown prefix: "+s[a]);this.$=br(Ur.prefixes[s[a]]);break;case 190:case 200:case 208:case 212:case 214:case 220:case 224:case 228:case 242:case 244:case 246:case 248:case 250:case 252:case 254:case 277:case 283:case 294:case 310:case 342:case 354:case 373:case 375:case 377:case 379:case 389:case 393:case 395:case 397:s[a-1].push(s[a]);break;case 207:case 219:case 241:case 243:case 245:case 341:case 372:case 374:this.$=[s[a]];break;case 256:case 304:case 316:case 320:case 330:case 332:case 336:case 344:case 346:case 352:case 358:case 360:case 369:s[a-2].push(s[a-1])}},table:[t(e,[2,189],{3:1,4:2}),{1:[3]},t(r,[2,255],{5:3,282:4,7:5,92:6,10:7,13:8,8:9,93:10,16:13,32:14,41:15,46:16,17:17,11:[1,11],14:[1,12],23:n,33:[1,18],42:[1,19],47:[1,20]}),{6:[1,22]},t(e,[2,190]),{6:[2,191]},{6:[2,192]},t(e,[2,187]),t(e,[2,188]),{6:[2,197],9:23,81:24,82:i},{94:26,95:[1,27],98:28,101:29,105:[1,30],108:[1,31],110:[1,32],111:[1,33],112:34,116:35,120:[2,278],121:[2,272],125:41,126:[1,42],292:[1,36],293:[1,37],294:[1,38],295:[1,39],296:[1,40]},{12:[1,43]},{15:[1,44]},t(s,[2,193]),t(s,[2,194]),t(s,[2,195]),t(s,[2,196]),t(o,[2,199],{18:45}),t(a,[2,213],{34:46,36:47,38:[1,48]}),{12:u,15:c,27:l,43:49,52:54,281:f,287:[1,51],288:52,289:50},t(o,[2,227],{48:58}),t(h,[2,205],{24:59,283:60,284:[1,61],285:[1,62]}),{1:[2,1]},{6:[2,2]},{6:[2,198]},{27:[1,64],28:[1,65],83:63},{6:[2,40],192:[1,66]},t(p,[2,257],{96:67,291:[1,68]}),t(d,[2,263],{99:69,291:[1,70]}),t(_,[2,268],{102:71,291:[1,72]}),{106:73,107:[2,270],291:[1,74]},{38:g,109:75},{38:g,109:77},{38:g,109:78},{113:79,121:y},{117:81,120:v},t(b,[2,261]),t(b,[2,262]),t(m,[2,265]),t(m,[2,266]),t(m,[2,267]),{120:[2,279],121:[2,273]},{12:u,15:c,52:83,281:f},t(e,[2,3]),{12:[1,84]},{19:85,37:x,38:w,49:86,50:E,53:87},t(o,[2,211],{35:90}),{37:[1,91],49:92,50:E},t(F,[2,335],{168:93,169:94,170:95,40:[2,333]}),t(T,[2,223],{44:96}),t(T,[2,221],{52:54,288:97,12:u,15:c,27:l,281:f}),t(T,[2,222]),t(k,[2,219]),t(k,[2,217]),t(k,[2,218]),t(I,[2,184]),t(I,[2,185]),t(I,[2,186]),{19:98,37:x,38:w,49:99,50:E,53:87},{25:100,26:103,27:S,28:A,286:101,287:[1,102]},t(h,[2,206]),t(h,[2,203]),t(h,[2,204]),t(C,[2,33]),{38:[1,106]},t(j,[2,249],{85:107}),t(r,[2,256]),{12:u,15:c,52:108,281:f},t(p,[2,258]),{100:109,107:[1,110],129:[1,112],131:111,290:[1,113],297:[1,114]},t(d,[2,264]),t(p,O,{103:115,130:117,107:D,129:P}),t(_,[2,269]),{107:[1,119]},{107:[2,271]},t(N,[2,45]),t(F,R,{132:120,139:121,140:122,40:L,107:L}),t(N,[2,46]),t(N,[2,47]),t(U,[2,274],{114:123,117:124,120:v}),{38:g,109:125},t(U,[2,280],{118:126,113:127,121:y}),{38:g,109:128},t([120,121],[2,53]),t(e,[2,4]),t(B,$,{20:129,55:130,59:131,60:q}),t(o,[2,200]),{38:M,54:133},t(p,[2,229],{51:135,290:[1,136]}),{38:[2,232]},{19:137,37:x,38:w,49:138,50:E,53:87},{38:[1,139]},t(a,[2,214]),{40:[1,140]},{40:[2,334]},{12:u,15:c,27:G,28:z,52:145,79:V,88:146,141:141,163:H,172:142,174:143,210:Q,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(lt,[2,225],{53:87,45:170,49:171,19:172,37:x,38:w,50:E}),t(k,[2,220]),t(B,$,{55:130,59:131,20:173,60:q}),t(o,[2,228]),t(o,[2,7]),t(o,[2,209],{26:174,27:S,28:A}),t(o,[2,210]),t(ft,[2,207]),t(ft,[2,8]),t(ht,pt,{29:175,215:176,219:177,223:178,227:179,235:180,239:181,203:dt,241:_t,305:gt}),t(yt,[2,247],{84:185}),{27:[1,187],31:[1,186]},t(N,[2,259],{97:188,127:189,128:[1,190]}),t(N,[2,42]),{12:u,15:c,52:191,281:f},t(N,[2,58]),t(N,[2,288]),t(N,[2,289]),t(N,[2,290]),{104:[1,192]},t(vt,[2,55]),{12:u,15:c,52:193,281:f},t(p,[2,287]),{12:u,15:c,52:194,281:f},t(bt,[2,293],{133:195}),t(bt,[2,292]),{12:u,15:c,27:G,28:z,52:145,79:V,88:146,141:196,163:H,172:142,174:143,210:Q,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(U,[2,276],{115:197}),t(U,[2,275]),t([37,120,123],[2,51]),t(U,[2,282],{119:198}),t(U,[2,281]),t([37,121,123],[2,50]),t(s,[2,5]),t(mt,[2,235],{56:199,66:200,67:[1,201]}),t(B,[2,234]),{61:[1,202]},t([6,40,60,67,70,78,80,82],[2,15]),t(F,xt,{21:203,143:204,17:205,144:206,150:207,151:208,23:n,38:wt,40:wt,82:wt,107:wt,155:wt,156:wt,158:wt,161:wt,162:wt}),{12:u,15:c,52:209,281:f},t(p,[2,230]),t(B,$,{55:130,59:131,20:210,60:q}),t(o,[2,212]),t(F,R,{140:122,39:211,139:212,40:[2,215]}),t(o,[2,82]),{40:[2,337],171:213,298:[1,214]},t(Et,Ft,{173:215,177:216}),t(Et,Ft,{177:216,175:217,176:218,173:219,40:Tt,107:Tt,298:Tt}),t(kt,[2,121]),t(kt,[2,122]),t(kt,[2,123]),t(kt,[2,124]),t(kt,[2,125]),t(kt,[2,126]),{12:u,15:c,27:G,28:z,52:145,79:V,88:146,163:H,172:222,174:223,183:221,209:220,210:Q,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(Et,Ft,{177:216,173:224}),t(It,[2,164],{265:[1,225],266:[1,226]}),t(It,[2,167]),t(It,[2,168]),t(It,[2,169]),t(It,[2,170]),t(It,[2,171]),t(It,[2,172]),t(It,[2,173]),t(St,[2,174]),t(St,[2,175]),t(St,[2,176]),t(St,[2,177]),t(It,[2,178]),t(It,[2,179]),t(It,[2,180]),t(It,[2,181]),t(It,[2,182]),t(It,[2,183]),t(B,$,{55:130,59:131,20:227,60:q}),t(T,[2,224]),t(lt,[2,226]),t(s,[2,13]),t(ft,[2,208]),{30:[1,228]},t(At,[2,376],{216:229}),t(Ct,[2,378],{220:230}),t(Ct,[2,131],{224:231,225:232,226:[2,386],263:[1,233],306:[1,234],307:[1,235],308:[1,236],309:[1,237],310:[1,238],311:[1,239]}),t(jt,[2,388],{228:240}),t(Ot,[2,396],{236:241}),{12:u,15:c,27:Dt,28:Pt,52:245,64:244,65:246,74:243,79:V,88:247,231:156,233:157,240:242,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},{12:u,15:c,27:Dt,28:Pt,52:245,64:244,65:246,74:243,79:V,88:247,231:156,233:157,240:268,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},{12:u,15:c,27:Dt,28:Pt,52:245,64:244,65:246,74:243,79:V,88:247,231:156,233:157,240:269,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},t(ht,[2,401]),{12:u,15:c,40:[1,270],52:272,79:V,87:271,88:273,89:Yt,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},{38:[1,275]},t(j,[2,250]),t(N,[2,41]),t(N,[2,260]),{107:[1,276]},t(N,[2,57]),t(p,O,{130:117,103:277,107:D,129:P}),t(vt,[2,56]),t(N,[2,44]),{40:[1,278],107:[1,280],134:279},t(bt,[2,305],{142:281,298:[1,282]}),{37:[1,283],122:284,123:Jt},{37:[1,286],122:287,123:Jt},t(Kt,[2,237],{57:288,69:289,70:[1,290]}),t(mt,[2,236]),{12:u,15:c,28:Pt,52:296,64:294,65:295,68:291,74:293,76:292,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},{12:u,15:c,27:te,28:ee,52:296,62:297,63:298,64:299,65:300,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},{40:[1,303]},{40:[1,304]},{19:305,37:x,38:w,53:87},t(re,[2,309],{145:306}),t(re,[2,308]),{12:u,15:c,27:G,28:ne,52:145,79:V,88:146,152:307,163:H,172:308,185:309,210:ie,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(T,[2,14]),t(s,[2,10]),{40:[1,312]},{40:[2,216]},{40:[2,83]},t(F,[2,336],{40:[2,338]}),t(se,[2,84]),{12:u,15:c,27:[1,315],52:316,178:313,179:314,181:[1,317],281:f},t(se,[2,85]),t(se,[2,86]),t(se,[2,340]),{12:u,15:c,27:G,28:z,31:[1,318],52:145,79:V,88:146,163:H,172:222,174:223,183:319,210:Q,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(oe,[2,372]),t(ae,[2,117]),t(ae,[2,118]),{211:[1,320]},t(It,[2,165]),{12:u,15:c,52:321,281:f},t(s,[2,12]),{27:[1,322]},t([30,31,192,246],[2,127],{217:323,218:[1,324]}),t(At,[2,129],{221:325,222:[1,326]}),t(ht,pt,{227:179,235:180,239:181,223:327,203:dt,241:_t,305:gt}),{226:[1,328]},t(ue,[2,380]),t(ue,[2,381]),t(ue,[2,382]),t(ue,[2,383]),t(ue,[2,384]),t(ue,[2,385]),{226:[2,387]},t([30,31,192,218,222,226,246,263,306,307,308,309,310,311],[2,134],{229:329,230:330,231:331,233:332,241:[1,334],275:it,276:st,277:ot,278:at,279:ut,280:ct,305:[1,333]}),t(jt,[2,138],{237:335,238:336,287:ce,302:le}),t(Ot,[2,140]),t(Ot,[2,143]),t(Ot,[2,144]),t(Ot,[2,145],{28:fe,163:he}),t(Ot,[2,146]),t(Ot,[2,147]),t(Ot,[2,148]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:341,203:dt,241:_t,305:gt}),t(pe,[2,150]),{163:[1,342]},{28:[1,343]},{28:[1,344]},{28:[1,345]},{28:de,163:_e,166:346},{28:[1,349]},{28:[1,351],163:[1,350]},{252:[1,352]},{28:[1,353]},{28:[1,354]},{28:[1,355]},t(ge,[2,402]),t(ge,[2,403]),t(ge,[2,404]),t(ge,[2,405]),t(ge,[2,406]),{252:[2,408]},t(Ot,[2,141]),t(Ot,[2,142]),t(C,[2,34]),t(yt,[2,248]),t(ye,[2,36]),t(ye,[2,37]),t(ye,[2,38]),t(ve,[2,251],{86:356}),{12:u,15:c,52:357,281:f},t(N,[2,43]),t([6,37,120,121,123,192],[2,59]),t(bt,[2,294]),{12:u,15:c,27:[1,359],52:360,135:358,281:f},t(bt,[2,61]),t(F,[2,304],{40:be,107:be}),{38:M,54:361},t(U,[2,277]),t(p,[2,284],{124:362,290:[1,363]}),{38:M,54:364},t(U,[2,283]),t(me,[2,239],{58:365,77:366,78:[1,367],80:[1,368]}),t(Kt,[2,238]),{61:[1,369]},t(mt,[2,23],{242:250,248:255,251:258,74:293,64:294,65:295,52:296,76:370,12:u,15:c,28:Pt,243:Nt,244:Rt,245:Lt,247:Ut,249:Bt,250:$t,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt}),t(xe,[2,243]),t(we,[2,75]),t(we,[2,76]),t(we,[2,77]),{28:fe,163:he},t(B,[2,17],{242:250,248:255,251:258,52:296,64:299,65:300,63:371,12:u,15:c,27:te,28:ee,243:Nt,244:Rt,245:Lt,247:Ut,249:Bt,250:$t,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt}),t(Ee,[2,241]),t(Ee,[2,18]),t(Ee,[2,19]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:372,203:dt,241:_t,305:gt}),t(Ee,[2,22]),t(Fe,[2,62]),t(Fe,[2,63]),t(B,$,{55:130,59:131,20:373,60:q}),{38:[2,319],40:[2,64],81:383,82:i,107:[1,379],146:374,147:375,154:376,155:[1,377],156:[1,378],158:[1,380],161:[1,381],162:[1,382]},t(re,[2,317],{153:384,298:[1,385]}),t(Te,ke,{184:386,187:387,194:388,195:390,27:Ie}),t(Se,[2,347],{187:387,194:388,195:390,186:391,184:392,12:ke,15:ke,28:ke,181:ke,203:ke,208:ke,281:ke,27:Ie}),{12:u,15:c,27:G,28:ne,52:145,79:V,88:146,163:H,172:395,185:396,189:394,210:ie,212:393,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(Te,ke,{187:387,194:388,195:390,184:397,27:Ie}),t(B,$,{55:130,59:131,20:398,60:q}),t([40,107,211,298],[2,87],{300:399,192:[1,400]}),t(F,Ae,{180:401,182:402}),t(F,[2,89]),t(F,[2,90]),t(F,[2,91]),t(Ce,[2,113]),t(oe,[2,373]),t(Ce,[2,114]),t(It,[2,166]),{31:[1,403]},t(At,[2,377]),t(ht,pt,{219:177,223:178,227:179,235:180,239:181,215:404,203:dt,241:_t,305:gt}),t(Ct,[2,379]),t(ht,pt,{223:178,227:179,235:180,239:181,219:405,203:dt,241:_t,305:gt}),t(Ct,[2,132]),{28:de,163:_e,166:406},t(jt,[2,389]),t(ht,pt,{235:180,239:181,227:407,203:dt,241:_t,305:gt}),t(Ot,[2,392],{232:408}),t(Ot,[2,394],{234:409}),t(ue,[2,390]),t(ue,[2,391]),t(Ot,[2,397]),t(ht,pt,{239:181,235:410,203:dt,241:_t,305:gt}),t(ue,[2,398]),t(ue,[2,399]),t(pe,[2,78]),t(ue,[2,327],{164:411,284:[1,412]}),{31:[1,413]},t(pe,[2,151]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:414,203:dt,241:_t,305:gt}),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:415,203:dt,241:_t,305:gt}),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:416,203:dt,241:_t,305:gt}),t(pe,[2,155]),t(pe,[2,80]),t(ue,[2,331],{167:417}),{27:[1,418]},t(pe,[2,157]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:419,203:dt,241:_t,305:gt}),{38:M,54:420},t(je,[2,409],{254:421,284:[1,422]}),t(ue,[2,413],{257:423,284:[1,424]}),t(ue,[2,415],{259:425,284:[1,426]}),{28:[1,429],40:[1,427],90:428},t(N,[2,54]),{38:[1,430]},{38:[2,295]},{38:[2,296]},t(N,[2,48]),{12:u,15:c,52:431,281:f},t(p,[2,285]),t(N,[2,49]),t(me,[2,16]),t(me,[2,240]),{79:[1,432]},{79:[1,433]},{12:u,15:c,27:Oe,28:Pt,52:296,64:294,65:295,71:434,72:435,73:De,74:293,75:Pe,76:438,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},t(xe,[2,244]),t(Ee,[2,242]),{30:[1,441],31:[1,440]},{22:442,40:[2,201],81:443,82:i},t(re,[2,310]),t(Ne,[2,311],{148:444,298:[1,445]}),{38:M,54:446},{38:M,54:447},{38:M,54:448},{12:u,15:c,27:[1,450],52:451,157:449,281:f},t(Re,[2,323],{159:452,291:[1,453]}),{12:u,15:c,28:Pt,52:296,64:294,65:295,74:293,76:454,242:250,243:Nt,244:Rt,245:Lt,247:Ut,248:255,249:Bt,250:$t,251:258,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt},{28:[1,455]},t(Le,[2,74]),t(re,[2,66]),t(F,[2,316],{38:Ue,40:Ue,82:Ue,107:Ue,155:Ue,156:Ue,158:Ue,161:Ue,162:Ue}),t(Se,[2,93]),t(F,[2,351],{188:456}),t(F,[2,349]),t(F,[2,350]),t(Te,[2,359],{196:457,197:458}),t(Se,[2,94]),t(Se,[2,348]),{12:u,15:c,27:G,28:ne,31:[1,459],52:145,79:V,88:146,163:H,172:395,185:396,189:460,210:ie,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(oe,[2,374]),t(ae,[2,119]),t(ae,[2,120]),{211:[1,461]},t(s,[2,11]),t(Et,[2,344],{192:[1,462]}),t(Be,[2,341]),t([40,107,192,211,298],[2,88]),{12:u,15:c,27:G,28:z,52:145,79:V,88:146,163:H,172:222,174:223,183:463,210:Q,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(ft,[2,9]),t(At,[2,128]),t(Ct,[2,130]),t(Ct,[2,133]),t(jt,[2,135]),t(jt,[2,136],{238:336,237:464,287:ce,302:le}),t(jt,[2,137],{238:336,237:465,287:ce,302:le}),t(Ot,[2,139]),t(ue,[2,329],{165:466}),t(ue,[2,328]),t([6,12,15,27,28,30,31,38,40,70,73,75,78,79,80,82,107,155,156,158,161,162,163,192,210,213,214,218,222,226,241,243,244,245,246,247,249,250,252,253,256,258,263,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,287,298,302,305,306,307,308,309,310,311,312,313,314,315,316],[2,149]),{31:[1,467]},{246:[1,468]},{246:[1,469]},t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:470,203:dt,241:_t,305:gt}),{31:[1,471]},{31:[1,472]},t(pe,[2,159]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,255:473,29:475,203:dt,241:_t,287:[1,474],305:gt}),t(je,[2,410]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:476,203:dt,241:_t,305:gt}),t(ue,[2,414]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:477,203:dt,241:_t,305:gt}),t(ue,[2,416]),t(C,[2,35]),t(ve,[2,252]),t($e,[2,253],{91:478}),t(F,R,{140:122,136:479,139:480,40:[2,297]}),t(U,[2,52]),t(me,[2,29],{80:[1,481]}),t(me,[2,30],{78:[1,482]}),t(Kt,[2,24],{242:250,248:255,251:258,74:293,64:294,65:295,52:296,76:438,72:483,12:u,15:c,27:Oe,28:Pt,73:De,75:Pe,243:Nt,244:Rt,245:Lt,247:Ut,249:Bt,250:$t,252:qt,253:Mt,256:Gt,258:zt,281:f,311:Vt,312:Ht,313:Qt,314:Wt,315:Zt,316:Xt}),t(qe,[2,245]),{28:Pt,74:484},{28:Pt,74:485},t(qe,[2,27]),t(qe,[2,28]),t(Ee,[2,20]),{27:[1,486]},{40:[2,6]},{40:[2,202]},t(F,xt,{151:208,149:487,150:488,38:Me,40:Me,82:Me,107:Me,155:Me,156:Me,158:Me,161:Me,162:Me}),t(Ne,[2,312]),t(Le,[2,67],{299:[1,489]}),t(Le,[2,68]),t(Le,[2,69]),{38:M,54:490},{38:[2,321]},{38:[2,322]},{12:u,15:c,27:[1,492],52:493,160:491,281:f},t(Re,[2,324]),t(Le,[2,72]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:494,203:dt,241:_t,305:gt}),{12:u,15:c,27:G,28:ne,52:145,79:V,88:146,163:H,172:395,185:396,189:495,210:ie,213:W,214:Z,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},t(oe,[2,98],{301:[1,496]}),t(Ge,[2,366],{198:497,202:498,208:[1,499]}),t(kt,[2,115]),t(oe,[2,375]),t(kt,[2,116]),t(Be,[2,342]),t(ze,[2,92],{246:[1,500]}),t(Ot,[2,393]),t(Ot,[2,395]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:501,203:dt,241:_t,305:gt}),t(pe,[2,152]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:502,203:dt,241:_t,305:gt}),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:503,203:dt,241:_t,305:gt}),{31:[1,504],246:[1,505]},t(pe,[2,156]),t(pe,[2,158]),{31:[1,506]},{31:[2,411]},{31:[2,412]},{31:[1,507]},{31:[2,417],192:[1,510],260:508,261:509},{12:u,15:c,31:[1,511],52:272,79:V,87:512,88:273,89:Yt,231:156,233:157,264:152,267:X,268:Y,269:J,270:K,271:tt,272:et,273:rt,274:nt,275:it,276:st,277:ot,278:at,279:ut,280:ct,281:f},{40:[1,513]},{40:[2,298]},{79:[1,514]},{79:[1,515]},t(qe,[2,246]),t(qe,[2,25]),t(qe,[2,26]),{31:[1,516]},t(re,[2,65]),t(re,[2,314]),{38:[2,320]},t(Le,[2,70]),{38:M,54:517},{38:[2,325]},{38:[2,326]},{30:[1,518]},t(ze,[2,353],{190:519,246:[1,520]}),t(Te,[2,358]),t([12,15,27,28,31,79,163,210,213,214,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,301],[2,99],{302:[1,521]}),{12:u,15:c,28:[1,527],52:524,181:[1,525],199:522,200:523,203:[1,526],281:f},t(Ge,[2,367]),t(F,[2,346]),{31:[1,528],246:[1,529]},{31:[1,530]},{246:[1,531]},t(pe,[2,81]),t(ue,[2,332]),t(pe,[2,160]),t(pe,[2,161]),{31:[1,532]},{31:[2,418]},{262:[1,533]},t(ve,[2,39]),t($e,[2,254]),t(Ve,[2,299],{137:534,298:[1,535]}),t(me,[2,31]),t(me,[2,32]),t(Ee,[2,21]),t(Le,[2,71]),{27:[1,536]},t([38,40,82,107,155,156,158,161,162,211,298],[2,95],{191:537,192:[1,538]}),t(F,[2,352]),t(Te,[2,360]),t(He,[2,101]),t(He,[2,364],{201:539,303:540,287:[1,542],304:[1,541],305:[1,543]}),t(Qe,[2,102]),t(Qe,[2,103]),{12:u,15:c,28:[1,547],52:548,163:[1,546],181:We,204:544,205:545,208:Ze,281:f},t(Te,ke,{195:390,194:551}),t(pe,[2,79]),t(ue,[2,330]),t(pe,[2,153]),t(ht,pt,{215:176,219:177,223:178,227:179,235:180,239:181,29:552,203:dt,241:_t,305:gt}),t(pe,[2,162]),{263:[1,553]},t(F,R,{140:122,138:554,139:555,40:Xe,107:Xe}),t(Ve,[2,300]),{31:[1,556]},t(ze,[2,354]),t(ze,[2,96],{195:390,193:557,194:558,12:ke,15:ke,28:ke,181:ke,203:ke,208:ke,281:ke,27:[1,559]}),t(He,[2,100]),t(He,[2,365]),t(He,[2,361]),t(He,[2,362]),t(He,[2,363]),t(Qe,[2,104]),t(Qe,[2,106]),t(Qe,[2,107]),t(Ye,[2,368],{206:560}),t(Qe,[2,109]),t(Qe,[2,110]),{12:u,15:c,52:561,181:[1,562],281:f},{31:[1,563]},{31:[1,564]},{264:565,271:tt,272:et,273:rt,274:nt},t(bt,[2,60]),t(bt,[2,302]),t(Le,[2,73]),t(F,Ae,{182:402,180:566}),t(F,[2,355]),t(F,[2,356]),{12:u,15:c,31:[2,370],52:548,181:We,205:568,207:567,208:Ze,281:f},t(Qe,[2,111]),t(Qe,[2,112]),t(Qe,[2,105]),t(pe,[2,154]),{31:[2,163]},t(ze,[2,97]),{31:[1,569]},{31:[2,371],301:[1,570]},t(Qe,[2,108]),t(Ye,[2,369])],defaultActions:{5:[2,191],6:[2,192],22:[2,1],23:[2,2],24:[2,198],74:[2,271],89:[2,232],94:[2,334],212:[2,216],213:[2,83],239:[2,387],267:[2,408],359:[2,295],360:[2,296],442:[2,6],443:[2,202],450:[2,321],451:[2,322],474:[2,411],475:[2,412],480:[2,298],489:[2,320],492:[2,325],493:[2,326],509:[2,418],565:[2,163]},parseError:function(t,e){if(!e.recoverable){var r=new Error(t);throw r.hash=e,r}this.trace(t)},parse:function(t){var e=this,r=[0],n=[null],i=[],s=this.table,o="",a=0,u=0,c=0,l=i.slice.call(arguments,1),f=Object.create(this.lexer),h={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(h.yy[p]=this.yy[p]);f.setInput(t,h.yy),h.yy.lexer=f,h.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var d=f.yylloc;i.push(d);var _=f.options&&f.options.ranges;"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,y,v,b,m,x,w,E,F,T=function(){var t;return"number"!=typeof(t=f.lex()||1)&&(t=e.symbols_[t]||t),t},k={};;){if(v=r[r.length-1],this.defaultActions[v]?b=this.defaultActions[v]:(null!==g&&void 0!==g||(g=T()),b=s[v]&&s[v][g]),void 0===b||!b.length||!b[0]){var I="";for(x in F=[],s[v])this.terminals_[x]&&x>2&&F.push("'"+this.terminals_[x]+"'");I=f.showPosition?"Parse error on line "+(a+1)+":\n"+f.showPosition()+"\nExpecting "+F.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(I,{text:f.match,token:this.terminals_[g]||g,line:f.yylineno,loc:d,expected:F})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+g);switch(b[0]){case 1:r.push(g),n.push(f.yytext),i.push(f.yylloc),r.push(b[1]),g=null,y?(g=y,y=null):(u=f.yyleng,o=f.yytext,a=f.yylineno,d=f.yylloc,c>0&&c--);break;case 2:if(w=this.productions_[b[1]][1],k.$=n[n.length-w],k._$={first_line:i[i.length-(w||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(w||1)].first_column,last_column:i[i.length-1].last_column},_&&(k._$.range=[i[i.length-(w||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.apply(k,[o,u,a,h.yy,b[1],n,i].concat(l))))return m;w&&(r=r.slice(0,-1*w*2),n=n.slice(0,-1*w),i=i.slice(0,-1*w)),r.push(this.productions_[b[1]][0]),n.push(k.$),i.push(k._$),E=s[r[r.length-2]][r[r.length-1]],r.push(E);break;case 3:return!0}}return!0}},Ke="http://www.w3.org/1999/02/22-rdf-syntax-ns#",tr=Ke+"type",er=Ke+"first",rr=Ke+"rest",nr=Ke+"nil",ir="http://www.w3.org/2001/XMLSchema#",sr=ir+"integer",or=ir+"decimal",ar=ir+"double",ur=ir+"boolean",cr='"true"^^'+ur,lr='"false"^^'+ur,fr="",hr="",pr="";function dr(t){return t.toLowerCase()}function _r(t,e){return t.push(e),t}function gr(t,e){return t.push.apply(t,e),t}function yr(t){t||(t={});for(var e,r=1,n=arguments.length;r<n&&(e=arguments[r]||{});r++)for(var i in e)t[i]=e[i];return t}function vr(){for(var t=[],e=0,r=arguments.length;e<r;e++)t=t.concat.apply(t,arguments[e]);return t}function br(t){if("<"===t[0]&&(t=t.substring(1,t.length-1)),/^[a-z]+:/.test(t))return t;if(!Ur.base)throw new Error("Cannot resolve relative IRI "+t+" because no base IRI was set.");switch(fr||(fr=Ur.base,hr=fr.replace(/[^\/:]*$/,""),pr=fr.match(/^(?:[a-z]+:\/*)?[^\/]*/)[0]),t[0]){case void 0:return fr;case"#":return fr+t;case"?":return fr.replace(/(?:\?.*)?$/,t);case"/":return pr+t;default:return hr+t}}function mr(t){if(t){var e=t[0];if("?"===e)return t;if("$"===e)return"?"+t.substr(1)}return t}function xr(t,e){return{type:"operation",operator:t,args:e||[]}}function wr(t,e){var r={expression:t};if(e)for(var n in e)r[n]=e[n];return r}function Er(t,e){return{type:"path",pathType:t,items:e}}function Fr(t,e){for(var r,n=0,i=e.length;n<i&&(r=e[n]);n++)t=xr(r[0],[t,r[1]]);return t}function Tr(t){for(var e,r=[],n=[],i=t.length,s=0;s<i&&(e=t[s]);s++)(e.named?n:r).push(e.iri);return i?{from:{default:r,named:n}}:null}function kr(t){return parseInt(t,10)}function Ir(t){return"group"===t.type&&1===t.patterns.length?t.patterns[0]:t}function Sr(t,e){return'"'+t+'"^^'+e}function Ar(t,e,r){var n={};return null!=t&&(n.subject=t),null!=e&&(n.predicate=e),null!=r&&(n.object=r),n}function Cr(){return"_:b"+jr++}var jr=0;Ur._resetBlanks=function(){jr=0};var Or=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\(.)/g,Dr={"\\":"\\","'":"'",'"':'"',t:"\t",b:"\b",n:"\n",r:"\r",f:"\f"},Pr=String.fromCharCode;function Nr(t,e){t=t.substring(e,t.length-e);try{t=t.replace(Or,function(t,e,r,n){var i;if(e){if(i=parseInt(e,16),isNaN(i))throw new Error;return Pr(i)}if(r){if(i=parseInt(r,16),isNaN(i))throw new Error;return i<65535?Pr(i):Pr(55296+((i-=65536)>>10),56320+(1023&i))}var s=Dr[n];if(!s)throw new Error;return s})}catch(t){return""}return'"'+t+'"'}function Rr(t,e,r){var n=[],i=[];return e.forEach(function(e){n.push(Ar(null,t,e.entity)),gr(i,e.triples)}),vr(n,r||[],i)}var Lr={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===n.length?this.yylloc.first_column:0)+n[n.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var r,n,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var s in i)this[s]=i[s];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),s=0;s<i.length;s++)if((r=this._input.match(this.rules[i[s]]))&&(!e||r[0].length>e[0].length)){if(e=r,n=s,this.options.backtrack_lexer){if(!1!==(t=this.test_match(r,i[s])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(t,e,r,n){switch(r){case 0:break;case 1:return 11;case 2:return 14;case 3:return 23;case 4:return 284;case 5:return 285;case 6:return 28;case 7:return 30;case 8:return 31;case 9:return 287;case 10:return 33;case 11:return 37;case 12:return 38;case 13:return 40;case 14:return 42;case 15:return 47;case 16:return 50;case 17:return 290;case 18:return 60;case 19:return 61;case 20:return 67;case 21:return 70;case 22:return 73;case 23:return 75;case 24:return 78;case 25:return 80;case 26:return 82;case 27:return 192;case 28:return 95;case 29:return 291;case 30:return 128;case 31:return 292;case 32:return 293;case 33:return 105;case 34:return 294;case 35:return 104;case 36:return 295;case 37:return 296;case 38:return 108;case 39:return 110;case 40:return 111;case 41:return 126;case 42:return 120;case 43:return 121;case 44:return 123;case 45:return 129;case 46:return 107;case 47:return 297;case 48:return 298;case 49:return 155;case 50:return 158;case 51:return 162;case 52:return 89;case 53:return 156;case 54:return 299;case 55:return 161;case 56:return 246;case 57:return 181;case 58:return 301;case 59:return 302;case 60:return 208;case 61:return 304;case 62:return 305;case 63:return 203;case 64:return 210;case 65:return 211;case 66:return 218;case 67:return 222;case 68:return 263;case 69:return 306;case 70:return 307;case 71:return 308;case 72:return 309;case 73:return 310;case 74:return 226;case 75:return 311;case 76:return 241;case 77:return 249;case 78:return 250;case 79:return 243;case 80:return 244;case 81:return 245;case 82:return 312;case 83:return 313;case 84:return 247;case 85:return 315;case 86:return 314;case 87:return 316;case 88:return 252;case 89:return 253;case 90:return 256;case 91:return 258;case 92:return 262;case 93:return 266;case 94:return 269;case 95:return 270;case 96:return 12;case 97:return 15;case 98:return 281;case 99:return 213;case 100:return 27;case 101:return 265;case 102:return 79;case 103:return 267;case 104:return 268;case 105:return 275;case 106:return 276;case 107:return 277;case 108:return 278;case 109:return 279;case 110:return 280;case 111:return"EXPONENT";case 112:return 271;case 113:return 272;case 114:return 273;case 115:return 274;case 116:return 163;case 117:return 214;case 118:return 6;case 119:return"INVALID";case 120:console.log(e.yytext)}},rules:[/^(?:\s+|#[^\n\r]*)/i,/^(?:BASE)/i,/^(?:PREFIX)/i,/^(?:SELECT)/i,/^(?:DISTINCT)/i,/^(?:REDUCED)/i,/^(?:\()/i,/^(?:AS)/i,/^(?:\))/i,/^(?:\*)/i,/^(?:CONSTRUCT)/i,/^(?:WHERE)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:DESCRIBE)/i,/^(?:ASK)/i,/^(?:FROM)/i,/^(?:NAMED)/i,/^(?:GROUP)/i,/^(?:BY)/i,/^(?:HAVING)/i,/^(?:ORDER)/i,/^(?:ASC)/i,/^(?:DESC)/i,/^(?:LIMIT)/i,/^(?:OFFSET)/i,/^(?:VALUES)/i,/^(?:;)/i,/^(?:LOAD)/i,/^(?:SILENT)/i,/^(?:INTO)/i,/^(?:CLEAR)/i,/^(?:DROP)/i,/^(?:CREATE)/i,/^(?:ADD)/i,/^(?:TO)/i,/^(?:MOVE)/i,/^(?:COPY)/i,/^(?:INSERT\s+DATA)/i,/^(?:DELETE\s+DATA)/i,/^(?:DELETE\s+WHERE)/i,/^(?:WITH)/i,/^(?:DELETE)/i,/^(?:INSERT)/i,/^(?:USING)/i,/^(?:DEFAULT)/i,/^(?:GRAPH)/i,/^(?:ALL)/i,/^(?:\.)/i,/^(?:OPTIONAL)/i,/^(?:SERVICE)/i,/^(?:BIND)/i,/^(?:UNDEF)/i,/^(?:MINUS)/i,/^(?:UNION)/i,/^(?:FILTER)/i,/^(?:,)/i,/^(?:a)/i,/^(?:\|)/i,/^(?:\/)/i,/^(?:\^)/i,/^(?:\?)/i,/^(?:\+)/i,/^(?:!)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\|\|)/i,/^(?:&&)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<)/i,/^(?:>)/i,/^(?:<=)/i,/^(?:>=)/i,/^(?:IN)/i,/^(?:NOT)/i,/^(?:-)/i,/^(?:BOUND)/i,/^(?:BNODE)/i,/^(?:(RAND|NOW|UUID|STRUUID))/i,/^(?:(LANG|DATATYPE|IRI|URI|ABS|CEIL|FLOOR|ROUND|STRLEN|STR|UCASE|LCASE|ENCODE_FOR_URI|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|MD5|SHA1|SHA256|SHA384|SHA512|isIRI|isURI|isBLANK|isLITERAL|isNUMERIC))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true)/i,/^(?:false)/i,/^(?:(<([^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(((((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040])|\.)*(((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(((((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040])|\.)*(((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040]))?)?:)((((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(((((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040])|\.|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*((((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(((?:([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(((((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040])|\.)*(((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040]))?))/i,/^(?:([\?\$]((((?:([A-Z]|[a-z]|[\u00C0-\u00D6]|[\u00D8-\u00F6]|[\u00F8-\u02FF]|[\u0370-\u037D]|[\u037F-\u1FFF]|[\u200C-\u200D]|[\u2070-\u218F]|[\u2C00-\u2FEF]|[\u3001-\uD7FF]|[\uF900-\uFDCF]|[\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(((?:([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]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9]|\u00B7|[\u0300-\u036F]|[\u203F-\u2040])*)))/i,/^(?:(@[a-zA-Z]+(-[a-zA-Z0-9]+)*))/i,/^(?:([0-9]+))/i,/^(?:([0-9]*\.[0-9]+))/i,/^(?:([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+)))/i,/^(?:(\+([0-9]+)))/i,/^(?:(\+([0-9]*\.[0-9]+)))/i,/^(?:(\+([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:(-([0-9]+)))/i,/^(?:(-([0-9]*\.[0-9]+)))/i,/^(?:(-([0-9]+\.[0-9]*([eE][+-]?[0-9]+)|\.([0-9])+([eE][+-]?[0-9]+)|([0-9])+([eE][+-]?[0-9]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(([^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])|\\U([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])))*'))/i,/^(?:("(([^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])|\\U([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])))*"))/i,/^(?:('''(('|'')?([^'\\]|(\\[tbnrf\\\"']|\\u([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])|\\U([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))))*'''))/i,/^(?:("""(("|"")?([^\"\\]|(\\[tbnrf\\\"']|\\u([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])|\\U([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))))*"""))/i,/^(?:(\((\u0020|\u0009|\u000D|\u000A)*\)))/i,/^(?:(\[(\u0020|\u0009|\u000D|\u000A)*\]))/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120],inclusive:!0}}};function Ur(){this.yy={}}return Je.lexer=Lr,Ur.prototype=Je,Je.Parser=Ur,new Ur}();void 0!==t&&void 0!==r&&(r.parser=i,r.Parser=i.Parser,r.parse=function(){return i.parse.apply(i,arguments)},r.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),n.exit(1));var i=t("fs").readFileSync(t("path").normalize(e[1]),"utf8");return r.parser.parse(i)},void 0!==e&&t.main===e&&r.main(n.argv.slice(1)))}).call(this,t("_process"))},{_process:2,fs:2,path:2}],60:[function(t,e,r){var n=t("./lib/SparqlParser").Parser,i=t("./lib/SparqlGenerator");e.exports={Parser:function(t,e,r){var i={};for(var s in t||{})i[s]=t[s];var o=new n;return o.parse=function(){return n.base=e||"",n.prefixes=Object.create(i),n.options=Object.assign({collapseGroups:!0},r),n.prototype.parse.apply(o,arguments)},o._resetBlanks=n._resetBlanks,o},Generator:i}},{"./lib/SparqlGenerator":58,"./lib/SparqlParser":59}],61:[function(t,e,n){(function(t){!function(r){var n=function(){function t(t){this.options=t}return t.prototype.toString=function(){return JSON&&JSON.stringify?JSON.stringify(this.options):this.options},t}(),i=function(){function t(e){return"function"==typeof Object.freeze?function(e){if("object"!==(void 0===e?"undefined":u(e))||null===e)return e;var r,n;for(n in Object.freeze(e),e)e.hasOwnProperty(n)&&"object"===(void 0===(r=e[n])?"undefined":u(r))&&t(r);return e}(e):e}return{isArray:function(t){return"[object Array]"===Object.prototype.toString.apply(t)},isString:function(t){return"[object String]"===Object.prototype.toString.apply(t)},isNumber:function(t){return"[object Number]"===Object.prototype.toString.apply(t)},isBoolean:function(t){return"[object Boolean]"===Object.prototype.toString.apply(t)},join:function(t,e){var r,n="",i=!0;for(r=0;r<t.length;r+=1)i?i=!1:n+=e,n+=t[r];return n},map:function(t,e){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r},filter:function(t,e){for(var r=[],n=0;n<t.length;n+=1)e(t[n])&&r.push(t[n]);return r},deepFreeze:t}}(),s=function(){function t(t){return t>="0"&&t<="9"}return{isAlpha:function(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"},isDigit:t,isHexDigit:function(e){return t(e)||e>="a"&&e<="f"||e>="A"&&e<="F"}}}(),o=function(){var t={encode:function(t){return unescape(encodeURIComponent(t))},numBytes:function(t){return t<=127?1:194<=t&&t<=223?2:224<=t&&t<=239?3:240<=t&&t<=244?4:0},isValidFollowingCharCode:function(t){return 128<=t&&t<=191}};function e(t,e){return"%"===t.charAt(e)&&s.isHexDigit(t.charAt(e+1))&&s.isHexDigit(t.charAt(e+2))}function r(t,e){return parseInt(t.substr(e,2),16)}return{encodeCharacter:function(e){var r,n,i="",s=t.encode(e);for(n=0;n<s.length;n+=1)i+="%"+((r=s.charCodeAt(n))<16?"0":"")+r.toString(16).toUpperCase();return i},isPctEncoded:function(n){if(!e(n,0))return!1;var i=r(n,1),s=t.numBytes(i);if(0===s)return!1;for(var o=1;o<s;o+=1)if(!e(n,3*o)||!t.isValidFollowingCharCode(r(n,3*o+1)))return!1;return!0},pctCharAt:function(n,i){var s=n.charAt(i);if(!e(n,i))return s;var o=r(n,i+1),a=t.numBytes(o);if(0===a)return s;for(var u=1;u<a;u+=1)if(!e(n,i+3*u)||!t.isValidFollowingCharCode(r(n,i+3*u+1)))return s;return n.substr(i,3*a)}}}(),a=function(){return{isVarchar:function(t){return s.isAlpha(t)||s.isDigit(t)||"_"===t||o.isPctEncoded(t)},isUnreserved:function(t){return s.isAlpha(t)||s.isDigit(t)||"-"===t||"."===t||"_"===t||"~"===t},isReserved:function(t){return":"===t||"/"===t||"?"===t||"#"===t||"["===t||"]"===t||"@"===t||"!"===t||"$"===t||"&"===t||"("===t||")"===t||"*"===t||"+"===t||","===t||";"===t||"="===t||"'"===t}}}(),c=function(){function t(t,e){var r,n="",i="";for("number"!=typeof t&&"boolean"!=typeof t||(t=t.toString()),r=0;r<t.length;r+=i.length)i=t.charAt(r),n+=a.isUnreserved(i)||e&&a.isReserved(i)?i:o.encodeCharacter(i);return n}return{encode:t,encodePassReserved:function(e){return t(e,!0)},encodeLiteral:function(t){var e,r="",n="";for(e=0;e<t.length;e+=n.length)(n=o.pctCharAt(t,e)).length>1?r+=n:r+=a.isReserved(n)||a.isUnreserved(n)?n:o.encodeCharacter(n);return r},encodeLiteralCharacter:function(t,e){var r=o.pctCharAt(t,e);return r.length>1?r:a.isReserved(r)||a.isUnreserved(r)?r:o.encodeCharacter(r)}}}(),l=function(){var t={};function e(e){t[e]={symbol:e,separator:"?"===e?"&":""===e||"+"===e||"#"===e?",":e,named:";"===e||"&"===e||"?"===e,ifEmpty:"&"===e||"?"===e?"=":"",first:"+"===e?"":e,encode:"+"===e||"#"===e?c.encodePassReserved:c.encode,toString:function(){return this.symbol}}}return e(""),e("+"),e("#"),e("."),e("/"),e(";"),e("?"),e("&"),{valueOf:function(e){return t[e]?t[e]:"=,!@|".indexOf(e)>=0?null:t[""]}}}();function f(t){var e;if(null===t||void 0===t)return!1;if(i.isArray(t))return t.length>0;if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return!0;for(e in t)if(t.hasOwnProperty(e)&&f(t[e]))return!0;return!1}var h=function(){function t(t){this.literal=c.encodeLiteral(t)}return t.prototype.expand=function(){return this.literal},t.prototype.toString=t.prototype.expand,t}(),p=function(){function t(t){var e,r,i=[],u=null,c=null,f=null,h="";function p(){var e=t.substring(c,r);if(0===e.length)throw new n({expressionText:t,message:"a varname must be specified",position:r});u={varname:e,exploded:!1,maxLength:null},c=null}function _(){if(f===r)throw new n({expressionText:t,message:"after a ':' you have to specify the length",position:r});u.maxLength=parseInt(t.substring(f,r),10),f=null}for(e=function(e){var i=l.valueOf(e);if(null===i)throw new n({expressionText:t,message:"illegal use of reserved operator",position:r,operator:e});return i}(t.charAt(0)),r=e.symbol.length,c=r;r<t.length;r+=h.length){if(h=o.pctCharAt(t,r),null!==c){if("."===h){if(c===r)throw new n({expressionText:t,message:"a varname MUST NOT start with a dot",position:r});continue}if(a.isVarchar(h))continue;p()}if(null!==f){if(r===f&&"0"===h)throw new n({expressionText:t,message:"A :prefix must not start with digit 0",position:r});if(s.isDigit(h)){if(r-f>=4)throw new n({expressionText:t,message:"A :prefix must have max 4 digits",position:r});continue}_()}if(":"!==h)if("*"!==h){if(","!==h)throw new n({expressionText:t,message:"illegal character",character:h,position:r});i.push(u),u=null,c=r+1}else{if(null===u)throw new n({expressionText:t,message:"exploded without varspec",position:r});if(u.exploded)throw new n({expressionText:t,message:"exploded twice",position:r});if(u.maxLength)throw new n({expressionText:t,message:"an explode (*) MUST NOT follow to a prefix",position:r});u.exploded=!0}else{if(null!==u.maxLength)throw new n({expressionText:t,message:"only one :maxLength is allowed per varspec",position:r});if(u.exploded)throw new n({expressionText:t,message:"an exploeded varspec MUST NOT be varspeced",position:r});f=r+1}}return null!==c&&p(),null!==f&&_(),i.push(u),new d(t,e,i)}return function(e){var r,i,s=[],o=null,a=0;for(r=0;r<e.length;r+=1)if(i=e.charAt(r),null===a){if(null===o)throw new Error("reached unreachable code");if("{"===i)throw new n({templateText:e,message:"brace already opened",position:r});if("}"===i){if(o+1===r)throw new n({templateText:e,message:"empty braces",position:o});try{s.push(t(e.substring(o+1,r)))}catch(t){if(t.prototype===n.prototype)throw new n({templateText:e,message:t.options.message,position:o+t.options.position,details:t.options});throw t}o=null,a=r+1}}else{if("}"===i)throw new n({templateText:e,message:"unopened brace closed",position:r});"{"===i&&(a<r&&s.push(new h(e.substring(a,r))),a=null,o=r)}if(null!==o)throw new n({templateText:e,message:"unclosed brace",position:o});return a<e.length&&s.push(new h(e.substr(a))),new _(e,s)}}(),d=function(){function t(t){return JSON&&JSON.stringify?JSON.stringify(t):t}function e(t){if(!f(t))return!0;if(i.isString(t))return""===t;if(i.isNumber(t)||i.isBoolean(t))return!1;if(i.isArray(t))return 0===t.length;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t){var e,r=[];for(e in t)t.hasOwnProperty(e)&&r.push({name:e,value:t[e]});return r}function n(t,e,r){this.templateText=t,this.operator=e,this.varspecs=r}function s(t,e,r){var n="";if(r=r.toString(),e.named){if(n+=c.encodeLiteral(t.varname),""===r)return n+=e.ifEmpty;n+="="}return null!==t.maxLength&&(r=r.substr(0,t.maxLength)),n+=e.encode(r)}function o(t){return f(t.value)}function a(t,n,s){var a=[],u="";if(n.named){if(u+=c.encodeLiteral(t.varname),e(s))return u+=n.ifEmpty;u+="="}return i.isArray(s)?(a=s,a=i.filter(a,f),a=i.map(a,n.encode),u+=i.join(a,",")):(a=r(s),a=i.filter(a,o),a=i.map(a,function(t){return n.encode(t.name)+","+n.encode(t.value)}),u+=i.join(a,",")),u}function u(t,n,s){var a=[];return i.isArray(s)?(a=s,a=i.filter(a,f),a=i.map(a,function(r){var i=c.encodeLiteral(t.varname);return e(r)?i+=n.ifEmpty:i+="="+n.encode(r),i})):(a=r(s),a=i.filter(a,o),a=i.map(a,function(t){var r=c.encodeLiteral(t.name);return e(t.value)?r+=n.ifEmpty:r+="="+n.encode(t.value),r})),i.join(a,n.separator)}function l(t,e){var n=[],s="";return i.isArray(e)?(n=e,n=i.filter(n,f),n=i.map(n,t.encode),s+=i.join(n,t.separator)):(n=r(e),n=i.filter(n,function(t){return f(t.value)}),n=i.map(n,function(e){return t.encode(e.name)+"="+t.encode(e.value)}),s+=i.join(n,t.separator)),s}return n.prototype.toString=function(){return this.templateText},n.prototype.expand=function(r){var n,o,c,h=[],p=this.operator;for(n=0;n<this.varspecs.length;n+=1)if(null!==(c=r[(o=this.varspecs[n]).varname])&&void 0!==c)if(o.exploded&&!0,i.isArray(c),"string"==typeof c||"number"==typeof c||"boolean"==typeof c)h.push(s(o,p,c));else{if(o.maxLength&&f(c))throw new Error("Prefix modifiers are not applicable to variables that have composite values. You tried to expand "+this+" with "+t(c));o.exploded?f(c)&&(p.named?h.push(u(o,p,c)):h.push(l(p,c))):!p.named&&e(c)||h.push(a(o,p,c))}return 0===h.length?"":p.first+i.join(h,p.separator)},n}(),_=function(){function t(t,e){this.templateText=t,this.expressions=e,i.deepFreeze(this)}return t.prototype.toString=function(){return this.templateText},t.prototype.expand=function(t){var e,r="";for(e=0;e<this.expressions.length;e+=1)r+=this.expressions[e].expand(t);return r},t.parse=p,t.UriTemplateError=n,t}();!function(r){void 0!==e?e.exports=r:"undefined"!=typeof window?window.UriTemplate=r:t.UriTemplate=r}(_)}()}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],62:[function(t,e,r){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},{}],63:[function(t,e,r){function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach(function(t){e.push(t)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e){t.tail=new o(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function s(t,e){t.head=new o(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function o(t,e,r,n){if(!(this instanceof o))return new o(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=o,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)i(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)s(this,arguments[t]);return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;for(;null!==s&&i<e;i++,s=s.next)r.push(s.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;null!==s&&i>e;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)r.push(s.value);return r},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this}},{}],64:[function(t,e,r){/*! @license MIT ©2013-2016 Ruben Verborgh, Ghent University - imec */
var n=t;t=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(e){return function(){return t(e)}});r=e.exports={SparqlIterator:t("./lib/sparql/SparqlIterator.js"),FragmentsClient:t("./lib/triple-pattern-fragments/federated/FederatedFragmentsClient"),Logger:t("./lib/util/Logger"),HttpClient:t("./lib/util/HttpClient"),SparqlResultWriter:function(){var e=t("./lib/writers/SparqlResultWriter");return e.register("application/json","./JSONResultWriter"),e.register("application/sparql-results+json","./SparqlJSONResultWriter"),e.register("application/sparql-results+xml","./SparqlXMLResultWriter"),e.register("debug","./StatsResultWriter"),e.register("simple","./SimpleResultWriter"),e.register("table","./TableResultWriter"),e}};Object.keys(r).forEach(function(t){var e=r[t];Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return delete r[t],r[t]=e()}})}),t=n},{"./lib/sparql/SparqlIterator.js":22,"./lib/triple-pattern-fragments/federated/FederatedFragmentsClient":29,"./lib/util/HttpClient":32,"./lib/util/Logger":33,"./lib/writers/SparqlResultWriter":36}]},{},[64])(64)})}).call(this,r(14),r(233).setImmediate)},232:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i=1,s={},o=!1,a=t.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(t);u=u&&u.setTimeout?u:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick(function(){l(t)})}:function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?function(){var e="setImmediate$"+Math.random()+"$",r=function(r){r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&l(+r.data.slice(e.length))};t.addEventListener?t.addEventListener("message",r,!1):t.attachEvent("onmessage",r),n=function(r){t.postMessage(e+r,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){l(t.data)},n=function(e){t.port2.postMessage(e)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var t=a.documentElement;n=function(e){var r=a.createElement("script");r.onreadystatechange=function(){l(e),r.onreadystatechange=null,t.removeChild(r),r=null},t.appendChild(r)}}():n=function(t){setTimeout(l,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var o={callback:t,args:e};return s[i]=o,n(i),i++},u.clearImmediate=c}function c(t){delete s[t]}function l(t){if(o)setTimeout(l,0,t);else{var e=s[t];if(e){o=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(r,n)}}(e)}finally{c(t),o=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,r(14),r(59))},233:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function s(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new s(i.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new s(i.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r(232),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r(14))}}]);
//# sourceMappingURL=smartdown_ldf.js.map