From d3955cf9ea84a8916d490c90ed5049a881778cc0 Mon Sep 17 00:00:00 2001 From: smessie Date: Tue, 16 Jul 2024 15:37:09 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20pages=20from=20@=20MellonSchol?= =?UTF-8?q?arlyCommunication/scholarly-browser@14a56e2c7963baf0f649727aa98?= =?UTF-8?q?06bbc81510e6e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index-1d0ff7cd.js | 303 ------------------ ...{index-b307798a.css => index-9c895cd1.css} | 2 +- assets/index-ea2ef2d8.js | 216 +++++++++++++ index.html | 4 +- 4 files changed, 219 insertions(+), 306 deletions(-) delete mode 100644 assets/index-1d0ff7cd.js rename assets/{index-b307798a.css => index-9c895cd1.css} (99%) create mode 100644 assets/index-ea2ef2d8.js diff --git a/assets/index-1d0ff7cd.js b/assets/index-1d0ff7cd.js deleted file mode 100644 index cc087dd..0000000 --- a/assets/index-1d0ff7cd.js +++ /dev/null @@ -1,303 +0,0 @@ -var I$=Object.defineProperty;var P$=(t,e,r)=>e in t?I$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Lr=(t,e,r)=>(P$(t,typeof e!="symbol"?e+"":e,r),r),bS=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var ue=(t,e,r)=>(bS(t,e,"read from private field"),r?r.call(t):e.get(t)),xt=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},dt=(t,e,r,n)=>(bS(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Ly=(t,e,r,n)=>({set _(a){dt(t,e,a,r)},get _(){return ue(t,e,n)}}),st=(t,e,r)=>(bS(t,e,"access private method"),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(a){if(a.ep)return;a.ep=!0;const s=r(a);fetch(a.href,s)}})();function LO(t,e){const r=Object.create(null),n=t.split(",");for(let a=0;a!!r[a.toLowerCase()]:a=>!!r[a]}const Rr={},Pd=[],os=()=>{},D$=()=>!1,N$=/^on[^a-z]/,sm=t=>N$.test(t),BO=t=>t.startsWith("onUpdate:"),In=Object.assign,$O=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},j$=Object.prototype.hasOwnProperty,Gt=(t,e)=>j$.call(t,e),vt=Array.isArray,Dd=t=>om(t)==="[object Map]",v8=t=>om(t)==="[object Set]",Rt=t=>typeof t=="function",ln=t=>typeof t=="string",UO=t=>typeof t=="symbol",Ur=t=>t!==null&&typeof t=="object",w8=t=>Ur(t)&&Rt(t.then)&&Rt(t.catch),S8=Object.prototype.toString,om=t=>S8.call(t),C$=t=>om(t).slice(8,-1),T8=t=>om(t)==="[object Object]",qO=t=>ln(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,eb=LO(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),um=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},F$=/-(\w)/g,Ks=um(t=>t.replace(F$,(e,r)=>r?r.toUpperCase():"")),M$=/\B([A-Z])/g,yf=um(t=>t.replace(M$,"-$1").toLowerCase()),cm=um(t=>t.charAt(0).toUpperCase()+t.slice(1)),mS=um(t=>t?`on${cm(t)}`:""),gp=(t,e)=>!Object.is(t,e),gS=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},L$=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let sI;const yE=()=>sI||(sI=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Cu(t){if(vt(t)){const e={};for(let r=0;r{if(r){const n=r.split($$);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function cn(t){let e="";if(ln(t))e=t;else if(vt(t))for(let r=0;rln(t)?t:t==null?"":vt(t)||Ur(t)&&(t.toString===S8||!Rt(t.toString))?JSON.stringify(t,O8,2):String(t),O8=(t,e)=>e&&e.__v_isRef?O8(t,e.value):Dd(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,a])=>(r[`${n} =>`]=a,r),{})}:v8(e)?{[`Set(${e.size})`]:[...e.values()]}:Ur(e)&&!vt(e)&&!T8(e)?String(e):e;let za;class k${constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=za,!e&&za&&(this.index=(za.scopes||(za.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=za;try{return za=this,e()}finally{za=r}}}on(){za=this}off(){za=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},A8=t=>(t.w&Xu)>0,x8=t=>(t.n&Xu)>0,z$=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(d==="length"||d>=c)&&u.push(l)})}else switch(r!==void 0&&u.push(o.get(r)),e){case"add":vt(t)?qO(r)&&u.push(o.get("length")):(u.push(o.get(rl)),Dd(t)&&u.push(o.get(gE)));break;case"delete":vt(t)||(u.push(o.get(rl)),Dd(t)&&u.push(o.get(gE)));break;case"set":Dd(t)&&u.push(o.get(rl));break}if(u.length===1)u[0]&&_E(u[0]);else{const c=[];for(const l of u)l&&c.push(...l);_E(VO(c))}}function _E(t,e){const r=vt(t)?t:[...t];for(const n of r)n.computed&&uI(n);for(const n of r)n.computed||uI(n)}function uI(t,e){(t!==ns||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const X$=LO("__proto__,__v_isRef,__isVue"),P8=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(UO)),K$=kO(),J$=kO(!1,!0),Y$=kO(!0),cI=Z$();function Z$(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=tr(this);for(let s=0,o=this.length;s{t[e]=function(...r){bf();const n=tr(this)[e].apply(this,r);return mf(),n}}),t}function eU(t){const e=tr(this);return zi(e,"has",t),e.hasOwnProperty(t)}function kO(t=!1,e=!1){return function(n,a,s){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&s===(t?e?bU:F8:e?C8:j8).get(n))return n;const o=vt(n);if(!t){if(o&&Gt(cI,a))return Reflect.get(cI,a,s);if(a==="hasOwnProperty")return eU}const u=Reflect.get(n,a,s);return(UO(a)?P8.has(a):X$(a))||(t||zi(n,"get",a),e)?u:ai(u)?o&&qO(a)?u:u.value:Ur(u)?t?L8(u):dm(u):u}}const tU=D8(),rU=D8(!0);function D8(t=!1){return function(r,n,a,s){let o=r[n];if(Vd(o)&&ai(o)&&!ai(a))return!1;if(!t&&(!Eb(a)&&!Vd(a)&&(o=tr(o),a=tr(a)),!vt(r)&&ai(o)&&!ai(a)))return o.value=a,!0;const u=vt(r)&&qO(n)?Number(n)t,lm=t=>Reflect.getPrototypeOf(t);function By(t,e,r=!1,n=!1){t=t.__v_raw;const a=tr(t),s=tr(e);r||(e!==s&&zi(a,"get",e),zi(a,"get",s));const{has:o}=lm(a),u=n?QO:r?WO:_p;if(o.call(a,e))return u(t.get(e));if(o.call(a,s))return u(t.get(s));t!==a&&t.get(e)}function $y(t,e=!1){const r=this.__v_raw,n=tr(r),a=tr(t);return e||(t!==a&&zi(n,"has",t),zi(n,"has",a)),t===a?r.has(t):r.has(t)||r.has(a)}function Uy(t,e=!1){return t=t.__v_raw,!e&&zi(tr(t),"iterate",rl),Reflect.get(t,"size",t)}function lI(t){t=tr(t);const e=tr(this);return lm(e).has.call(e,t)||(e.add(t),zo(e,"add",t,t)),this}function dI(t,e){e=tr(e);const r=tr(this),{has:n,get:a}=lm(r);let s=n.call(r,t);s||(t=tr(t),s=n.call(r,t));const o=a.call(r,t);return r.set(t,e),s?gp(e,o)&&zo(r,"set",t,e):zo(r,"add",t,e),this}function fI(t){const e=tr(this),{has:r,get:n}=lm(e);let a=r.call(e,t);a||(t=tr(t),a=r.call(e,t)),n&&n.call(e,t);const s=e.delete(t);return a&&zo(e,"delete",t,void 0),s}function hI(){const t=tr(this),e=t.size!==0,r=t.clear();return e&&zo(t,"clear",void 0,void 0),r}function qy(t,e){return function(n,a){const s=this,o=s.__v_raw,u=tr(o),c=e?QO:t?WO:_p;return!t&&zi(u,"iterate",rl),o.forEach((l,d)=>n.call(a,c(l),c(d),s))}}function Vy(t,e,r){return function(...n){const a=this.__v_raw,s=tr(a),o=Dd(s),u=t==="entries"||t===Symbol.iterator&&o,c=t==="keys"&&o,l=a[t](...n),d=r?QO:e?WO:_p;return!e&&zi(s,"iterate",c?gE:rl),{next(){const{value:h,done:f}=l.next();return f?{value:h,done:f}:{value:u?[d(h[0]),d(h[1])]:d(h),done:f}},[Symbol.iterator](){return this}}}}function fu(t){return function(...e){return t==="delete"?!1:this}}function uU(){const t={get(s){return By(this,s)},get size(){return Uy(this)},has:$y,add:lI,set:dI,delete:fI,clear:hI,forEach:qy(!1,!1)},e={get(s){return By(this,s,!1,!0)},get size(){return Uy(this)},has:$y,add:lI,set:dI,delete:fI,clear:hI,forEach:qy(!1,!0)},r={get(s){return By(this,s,!0)},get size(){return Uy(this,!0)},has(s){return $y.call(this,s,!0)},add:fu("add"),set:fu("set"),delete:fu("delete"),clear:fu("clear"),forEach:qy(!0,!1)},n={get(s){return By(this,s,!0,!0)},get size(){return Uy(this,!0)},has(s){return $y.call(this,s,!0)},add:fu("add"),set:fu("set"),delete:fu("delete"),clear:fu("clear"),forEach:qy(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Vy(s,!1,!1),r[s]=Vy(s,!0,!1),e[s]=Vy(s,!1,!0),n[s]=Vy(s,!0,!0)}),[t,r,e,n]}const[cU,lU,dU,fU]=uU();function GO(t,e){const r=e?t?fU:dU:t?lU:cU;return(n,a,s)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?n:Reflect.get(Gt(r,a)&&a in n?r:n,a,s)}const hU={get:GO(!1,!1)},pU={get:GO(!1,!0)},yU={get:GO(!0,!1)},j8=new WeakMap,C8=new WeakMap,F8=new WeakMap,bU=new WeakMap;function mU(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gU(t){return t.__v_skip||!Object.isExtensible(t)?0:mU(C$(t))}function dm(t){return Vd(t)?t:zO(t,!1,N8,hU,j8)}function M8(t){return zO(t,!1,oU,pU,C8)}function L8(t){return zO(t,!0,sU,yU,F8)}function zO(t,e,r,n,a){if(!Ur(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=a.get(t);if(s)return s;const o=gU(t);if(o===0)return t;const u=new Proxy(t,o===2?n:r);return a.set(t,u),u}function Nd(t){return Vd(t)?Nd(t.__v_raw):!!(t&&t.__v_isReactive)}function Vd(t){return!!(t&&t.__v_isReadonly)}function Eb(t){return!!(t&&t.__v_isShallow)}function B8(t){return Nd(t)||Vd(t)}function tr(t){const e=t&&t.__v_raw;return e?tr(e):t}function $8(t){return Tb(t,"__v_skip",!0),t}const _p=t=>Ur(t)?dm(t):t,WO=t=>Ur(t)?L8(t):t;function U8(t){Uu&&ns&&(t=tr(t),I8(t.dep||(t.dep=VO())))}function q8(t,e){t=tr(t);const r=t.dep;r&&_E(r)}function ai(t){return!!(t&&t.__v_isRef===!0)}function Si(t){return V8(t,!1)}function _U(t){return V8(t,!0)}function V8(t,e){return ai(t)?t:new vU(t,e)}class vU{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:tr(e),this._value=r?e:_p(e)}get value(){return U8(this),this._value}set value(e){const r=this.__v_isShallow||Eb(e)||Vd(e);e=r?e:tr(e),gp(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:_p(e),q8(this))}}function St(t){return ai(t)?t.value:t}const wU={get:(t,e,r)=>St(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const a=t[e];return ai(a)&&!ai(r)?(a.value=r,!0):Reflect.set(t,e,r,n)}};function H8(t){return Nd(t)?t:new Proxy(t,wU)}class SU{constructor(e,r,n,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new HO(e,()=>{this._dirty||(this._dirty=!0,q8(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=tr(this);return U8(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function TU(t,e,r=!1){let n,a;const s=Rt(t);return s?(n=t,a=os):(n=t.get,a=t.set),new SU(n,a,s||!a,r)}function qu(t,e,r,n){let a;try{a=n?t(...n):t()}catch(s){fm(s,e,r)}return a}function us(t,e,r,n){if(Rt(t)){const s=qu(t,e,r,n);return s&&w8(s)&&s.catch(o=>{fm(o,e,r)}),s}const a=[];for(let s=0;s>>1;wp(ii[n])Ls&&ii.splice(e,1)}function xU(t){vt(t)?jd.push(...t):(!Po||!Po.includes(t,t.allowRecurse?Bc+1:Bc))&&jd.push(t),G8()}function pI(t,e=vp?Ls+1:0){for(;ewp(r)-wp(n)),Bc=0;Bct.id==null?1/0:t.id,RU=(t,e)=>{const r=wp(t)-wp(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function W8(t){vE=!1,vp=!0,ii.sort(RU);const e=os;try{for(Ls=0;Lsln(p)?p.trim():p)),h&&(a=r.map(L$))}let u,c=n[u=mS(e)]||n[u=mS(Ks(e))];!c&&s&&(c=n[u=mS(yf(e))]),c&&us(c,t,6,a);const l=n[u+"Once"];if(l){if(!t.emitted)t.emitted={};else if(t.emitted[u])return;t.emitted[u]=!0,us(l,t,6,a)}}function X8(t,e,r=!1){const n=e.emitsCache,a=n.get(t);if(a!==void 0)return a;const s=t.emits;let o={},u=!1;if(!Rt(t)){const c=l=>{const d=X8(l,e,!0);d&&(u=!0,In(o,d))};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!s&&!u?(Ur(t)&&n.set(t,null),null):(vt(s)?s.forEach(c=>o[c]=null):In(o,s),Ur(t)&&n.set(t,o),o)}function hm(t,e){return!t||!sm(e)?!1:(e=e.slice(2).replace(/Once$/,""),Gt(t,e[0].toLowerCase()+e.slice(1))||Gt(t,yf(e))||Gt(t,e))}let Un=null,pm=null;function Ob(t){const e=Un;return Un=t,pm=t&&t.type.__scopeId||null,e}function PU(t){pm=t}function DU(){pm=null}function ar(t,e=Un,r){if(!e||t._n)return t;const n=(...a)=>{n._d&&OI(-1);const s=Ob(e);let o;try{o=t(...a)}finally{Ob(s),n._d&&OI(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function _S(t){const{type:e,vnode:r,proxy:n,withProxy:a,props:s,propsOptions:[o],slots:u,attrs:c,emit:l,render:d,renderCache:h,data:f,setupState:p,ctx:b,inheritAttrs:y}=t;let S,w;const I=Ob(t);try{if(r.shapeFlag&4){const T=a||n;S=Fs(d.call(T,T,h,s,p,f,b)),w=c}else{const T=e;S=Fs(T.length>1?T(s,{attrs:c,slots:u,emit:l}):T(s,null)),w=e.props?c:NU(c)}}catch(T){sp.length=0,fm(T,t,1),S=Qt(Ku)}let O=S;if(w&&y!==!1){const T=Object.keys(w),{shapeFlag:x}=O;T.length&&x&7&&(o&&T.some(BO)&&(w=jU(w,o)),O=Hd(O,w))}return r.dirs&&(O=Hd(O),O.dirs=O.dirs?O.dirs.concat(r.dirs):r.dirs),r.transition&&(O.transition=r.transition),S=O,Ob(I),S}const NU=t=>{let e;for(const r in t)(r==="class"||r==="style"||sm(r))&&((e||(e={}))[r]=t[r]);return e},jU=(t,e)=>{const r={};for(const n in t)(!BO(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function CU(t,e,r){const{props:n,children:a,component:s}=t,{props:o,children:u,patchFlag:c}=e,l=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&c>=0){if(c&1024)return!0;if(c&16)return n?yI(n,o,l):!!o;if(c&8){const d=e.dynamicProps;for(let h=0;ht.__isSuspense;function LU(t,e){e&&e.pendingBranch?vt(t)?e.effects.push(...t):e.effects.push(t):xU(t)}function K8(t,e){return JO(t,null,e)}const Hy={};function Cd(t,e,r){return JO(t,e,r)}function JO(t,e,{immediate:r,deep:n,flush:a,onTrack:s,onTrigger:o}=Rr){var u;const c=G$()===((u=Rn)==null?void 0:u.scope)?Rn:null;let l,d=!1,h=!1;if(ai(t)?(l=()=>t.value,d=Eb(t)):Nd(t)?(l=()=>t,n=!0):vt(t)?(h=!0,d=t.some(T=>Nd(T)||Eb(T)),l=()=>t.map(T=>{if(ai(T))return T.value;if(Nd(T))return Xc(T);if(Rt(T))return qu(T,c,2)})):Rt(t)?e?l=()=>qu(t,c,2):l=()=>{if(!(c&&c.isUnmounted))return f&&f(),us(t,c,3,[p])}:l=os,e&&n){const T=l;l=()=>Xc(T())}let f,p=T=>{f=I.onStop=()=>{qu(T,c,4)}},b;if(Tp)if(p=os,e?r&&us(e,c,3,[l(),h?[]:void 0,p]):l(),a==="sync"){const T=xq();b=T.__watcherHandles||(T.__watcherHandles=[])}else return os;let y=h?new Array(t.length).fill(Hy):Hy;const S=()=>{if(I.active)if(e){const T=I.run();(n||d||(h?T.some((x,P)=>gp(x,y[P])):gp(T,y)))&&(f&&f(),us(e,c,3,[T,y===Hy?void 0:h&&y[0]===Hy?[]:y,p]),y=T)}else I.run()};S.allowRecurse=!!e;let w;a==="sync"?w=S:a==="post"?w=()=>qi(S,c&&c.suspense):(S.pre=!0,c&&(S.id=c.uid),w=()=>KO(S));const I=new HO(l,w);e?r?S():y=I.run():a==="post"?qi(I.run.bind(I),c&&c.suspense):I.run();const O=()=>{I.stop(),c&&c.scope&&$O(c.scope.effects,I)};return b&&b.push(O),O}function BU(t,e,r){const n=this.proxy,a=ln(t)?t.includes(".")?J8(n,t):()=>n[t]:t.bind(n,n);let s;Rt(e)?s=e:(s=e.handler,r=e);const o=Rn;kd(this);const u=JO(a,s.bind(n),r);return o?kd(o):nl(),u}function J8(t,e){const r=e.split(".");return()=>{let n=t;for(let a=0;a{Xc(r,e)});else if(T8(t))for(const r in t)Xc(t[r],e);return t}function Ab(t,e){const r=Un;if(r===null)return t;const n=gm(r)||r.proxy,a=t.dirs||(t.dirs=[]);for(let s=0;sIn({name:t.name},e,{setup:t}))():t}const ip=t=>!!t.type.__asyncLoader,Y8=t=>t.type.__isKeepAlive;function $U(t,e){Z8(t,"a",e)}function UU(t,e){Z8(t,"da",e)}function Z8(t,e,r=Rn){const n=t.__wdc||(t.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(ym(e,n,r),r){let a=r.parent;for(;a&&a.parent;)Y8(a.parent.vnode)&&qU(n,e,r,a),a=a.parent}}function qU(t,e,r,n){const a=ym(e,t,n,!0);YO(()=>{$O(n[e],a)},r)}function ym(t,e,r=Rn,n=!1){if(r){const a=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(r.isUnmounted)return;bf(),kd(r);const u=us(e,r,t,o);return nl(),mf(),u});return n?a.unshift(s):a.push(s),s}}const tu=t=>(e,r=Rn)=>(!Tp||t==="sp")&&ym(t,(...n)=>e(...n),r),VU=tu("bm"),e5=tu("m"),HU=tu("bu"),t5=tu("u"),kU=tu("bum"),YO=tu("um"),QU=tu("sp"),GU=tu("rtg"),zU=tu("rtc");function WU(t,e=Rn){ym("ec",t,e)}const ZO="components";function ia(t,e){return n5(ZO,t,!0,e)||t}const r5=Symbol.for("v-ndc");function ys(t){return ln(t)?n5(ZO,t,!1)||t:t||r5}function n5(t,e,r=!0,n=!1){const a=Un||Rn;if(a){const s=a.type;if(t===ZO){const u=Eq(s,!1);if(u&&(u===e||u===Ks(e)||u===cm(Ks(e))))return s}const o=bI(a[t]||s[t],e)||bI(a.appContext[t],e);return!o&&n?s:o}}function bI(t,e){return t&&(t[e]||t[Ks(e)]||t[cm(Ks(e))])}function wE(t,e,r,n){let a;const s=r&&r[n];if(vt(t)||ln(t)){a=new Array(t.length);for(let o=0,u=t.length;oe(o,u,void 0,s&&s[u]));else{const o=Object.keys(t);a=new Array(o.length);for(let u=0,c=o.length;uIb(e)?!(e.type===Ku||e.type===ri&&!i5(e.children)):!0)?t:null}const SE=t=>t?y5(t)?gm(t)||t.proxy:SE(t.parent):null,ap=In(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>SE(t.parent),$root:t=>SE(t.root),$emit:t=>t.emit,$options:t=>eA(t),$forceUpdate:t=>t.f||(t.f=()=>KO(t.update)),$nextTick:t=>t.n||(t.n=Q8.bind(t.proxy)),$watch:t=>BU.bind(t)}),vS=(t,e)=>t!==Rr&&!t.__isScriptSetup&&Gt(t,e),XU={get({_:t},e){const{ctx:r,setupState:n,data:a,props:s,accessCache:o,type:u,appContext:c}=t;let l;if(e[0]!=="$"){const p=o[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return a[e];case 4:return r[e];case 3:return s[e]}else{if(vS(n,e))return o[e]=1,n[e];if(a!==Rr&&Gt(a,e))return o[e]=2,a[e];if((l=t.propsOptions[0])&&Gt(l,e))return o[e]=3,s[e];if(r!==Rr&&Gt(r,e))return o[e]=4,r[e];TE&&(o[e]=0)}}const d=ap[e];let h,f;if(d)return e==="$attrs"&&zi(t,"get",e),d(t);if((h=u.__cssModules)&&(h=h[e]))return h;if(r!==Rr&&Gt(r,e))return o[e]=4,r[e];if(f=c.config.globalProperties,Gt(f,e))return f[e]},set({_:t},e,r){const{data:n,setupState:a,ctx:s}=t;return vS(a,e)?(a[e]=r,!0):n!==Rr&&Gt(n,e)?(n[e]=r,!0):Gt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:a,propsOptions:s}},o){let u;return!!r[o]||t!==Rr&&Gt(t,o)||vS(e,o)||(u=s[0])&&Gt(u,o)||Gt(n,o)||Gt(ap,o)||Gt(a.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Gt(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function KU(){return JU().attrs}function JU(){const t=vq();return t.setupContext||(t.setupContext=m5(t))}function mI(t){return vt(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let TE=!0;function YU(t){const e=eA(t),r=t.proxy,n=t.ctx;TE=!1,e.beforeCreate&&gI(e.beforeCreate,t,"bc");const{data:a,computed:s,methods:o,watch:u,provide:c,inject:l,created:d,beforeMount:h,mounted:f,beforeUpdate:p,updated:b,activated:y,deactivated:S,beforeDestroy:w,beforeUnmount:I,destroyed:O,unmounted:T,render:x,renderTracked:P,renderTriggered:B,errorCaptured:Q,serverPrefetch:N,expose:D,inheritAttrs:F,components:W,directives:z,filters:M}=e;if(l&&ZU(l,n,null),o)for(const ie in o){const ne=o[ie];Rt(ne)&&(n[ie]=ne.bind(r))}if(a){const ie=a.call(r,r);Ur(ie)&&(t.data=dm(ie))}if(TE=!0,s)for(const ie in s){const ne=s[ie],fe=Rt(ne)?ne.bind(r,r):Rt(ne.get)?ne.get.bind(r,r):os,_e=!Rt(ne)&&Rt(ne.set)?ne.set.bind(r):os,we=zt({get:fe,set:_e});Object.defineProperty(n,ie,{enumerable:!0,configurable:!0,get:()=>we.value,set:Ce=>we.value=Ce})}if(u)for(const ie in u)a5(u[ie],n,r,ie);if(c){const ie=Rt(c)?c.call(r):c;Reflect.ownKeys(ie).forEach(ne=>{tb(ne,ie[ne])})}d&&gI(d,t,"c");function V(ie,ne){vt(ne)?ne.forEach(fe=>ie(fe.bind(r))):ne&&ie(ne.bind(r))}if(V(VU,h),V(e5,f),V(HU,p),V(t5,b),V($U,y),V(UU,S),V(WU,Q),V(zU,P),V(GU,B),V(kU,I),V(YO,T),V(QU,N),vt(D))if(D.length){const ie=t.exposed||(t.exposed={});D.forEach(ne=>{Object.defineProperty(ie,ne,{get:()=>r[ne],set:fe=>r[ne]=fe})})}else t.exposed||(t.exposed={});x&&t.render===os&&(t.render=x),F!=null&&(t.inheritAttrs=F),W&&(t.components=W),z&&(t.directives=z)}function ZU(t,e,r=os){vt(t)&&(t=EE(t));for(const n in t){const a=t[n];let s;Ur(a)?"default"in a?s=cs(a.from||n,a.default,!0):s=cs(a.from||n):s=cs(a),ai(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[n]=s}}function gI(t,e,r){us(vt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function a5(t,e,r,n){const a=n.includes(".")?J8(r,n):()=>r[n];if(ln(t)){const s=e[t];Rt(s)&&Cd(a,s)}else if(Rt(t))Cd(a,t.bind(r));else if(Ur(t))if(vt(t))t.forEach(s=>a5(s,e,r,n));else{const s=Rt(t.handler)?t.handler.bind(r):e[t.handler];Rt(s)&&Cd(a,s,t)}}function eA(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:a,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,u=s.get(e);let c;return u?c=u:!a.length&&!r&&!n?c=e:(c={},a.length&&a.forEach(l=>xb(c,l,o,!0)),xb(c,e,o)),Ur(e)&&s.set(e,c),c}function xb(t,e,r,n=!1){const{mixins:a,extends:s}=e;s&&xb(t,s,r,!0),a&&a.forEach(o=>xb(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const u=eq[o]||r&&r[o];t[o]=u?u(t[o],e[o]):e[o]}return t}const eq={data:_I,props:vI,emits:vI,methods:Bh,computed:Bh,beforeCreate:_i,created:_i,beforeMount:_i,mounted:_i,beforeUpdate:_i,updated:_i,beforeDestroy:_i,beforeUnmount:_i,destroyed:_i,unmounted:_i,activated:_i,deactivated:_i,errorCaptured:_i,serverPrefetch:_i,components:Bh,directives:Bh,watch:rq,provide:_I,inject:tq};function _I(t,e){return e?t?function(){return In(Rt(t)?t.call(this,this):t,Rt(e)?e.call(this,this):e)}:e:t}function tq(t,e){return Bh(EE(t),EE(e))}function EE(t){if(vt(t)){const e={};for(let r=0;r1)return r&&Rt(e)?e.call(n&&n.proxy):e}}function aq(t,e,r,n=!1){const a={},s={};Tb(s,mm,1),t.propsDefaults=Object.create(null),o5(t,e,a,s);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);r?t.props=n?a:M8(a):t.type.props?t.props=a:t.props=s,t.attrs=s}function sq(t,e,r,n){const{props:a,attrs:s,vnode:{patchFlag:o}}=t,u=tr(a),[c]=t.propsOptions;let l=!1;if((n||o>0)&&!(o&16)){if(o&8){const d=t.vnode.dynamicProps;for(let h=0;h{c=!0;const[f,p]=u5(h,e,!0);In(o,f),p&&u.push(...p)};!r&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!s&&!c)return Ur(t)&&n.set(t,Pd),Pd;if(vt(s))for(let d=0;d-1,p[1]=y<0||b-1||Gt(p,"default"))&&u.push(h)}}}const l=[o,u];return Ur(t)&&n.set(t,l),l}function wI(t){return t[0]!=="$"}function SI(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function TI(t,e){return SI(t)===SI(e)}function EI(t,e){return vt(e)?e.findIndex(r=>TI(r,t)):Rt(e)&&TI(e,t)?0:-1}const c5=t=>t[0]==="_"||t==="$stable",tA=t=>vt(t)?t.map(Fs):[Fs(t)],oq=(t,e,r)=>{if(e._n)return e;const n=ar((...a)=>tA(e(...a)),r);return n._c=!1,n},l5=(t,e,r)=>{const n=t._ctx;for(const a in t){if(c5(a))continue;const s=t[a];if(Rt(s))e[a]=oq(a,s,n);else if(s!=null){const o=tA(s);e[a]=()=>o}}},d5=(t,e)=>{const r=tA(e);t.slots.default=()=>r},uq=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=tr(e),Tb(e,"_",r)):l5(e,t.slots={})}else t.slots={},e&&d5(t,e);Tb(t.slots,mm,1)},cq=(t,e,r)=>{const{vnode:n,slots:a}=t;let s=!0,o=Rr;if(n.shapeFlag&32){const u=e._;u?r&&u===1?s=!1:(In(a,e),!r&&u===1&&delete a._):(s=!e.$stable,l5(e,a)),o=e}else e&&(d5(t,e),o={default:1});if(s)for(const u in a)!c5(u)&&!(u in o)&&delete a[u]};function AE(t,e,r,n,a=!1){if(vt(t)){t.forEach((f,p)=>AE(f,e&&(vt(e)?e[p]:e),r,n,a));return}if(ip(n)&&!a)return;const s=n.shapeFlag&4?gm(n.component)||n.component.proxy:n.el,o=a?null:s,{i:u,r:c}=t,l=e&&e.r,d=u.refs===Rr?u.refs={}:u.refs,h=u.setupState;if(l!=null&&l!==c&&(ln(l)?(d[l]=null,Gt(h,l)&&(h[l]=null)):ai(l)&&(l.value=null)),Rt(c))qu(c,u,12,[o,d]);else{const f=ln(c),p=ai(c);if(f||p){const b=()=>{if(t.f){const y=f?Gt(h,c)?h[c]:d[c]:c.value;a?vt(y)&&$O(y,s):vt(y)?y.includes(s)||y.push(s):f?(d[c]=[s],Gt(h,c)&&(h[c]=d[c])):(c.value=[s],t.k&&(d[t.k]=c.value))}else f?(d[c]=o,Gt(h,c)&&(h[c]=o)):p&&(c.value=o,t.k&&(d[t.k]=o))};o?(b.id=-1,qi(b,r)):b()}}}const qi=LU;function lq(t){return dq(t)}function dq(t,e){const r=yE();r.__VUE__=!0;const{insert:n,remove:a,patchProp:s,createElement:o,createText:u,createComment:c,setText:l,setElementText:d,parentNode:h,nextSibling:f,setScopeId:p=os,insertStaticContent:b}=t,y=(A,m,v,j=null,q=null,$=null,G=!1,Y=null,J=!!m.dynamicChildren)=>{if(A===m)return;A&&!Yf(A,m)&&(j=he(A),Ce(A,q,$,!0),A=null),m.patchFlag===-2&&(J=!1,m.dynamicChildren=null);const{type:re,ref:de,shapeFlag:be}=m;switch(re){case bm:S(A,m,v,j);break;case Ku:w(A,m,v,j);break;case wS:A==null&&I(m,v,j,G);break;case ri:W(A,m,v,j,q,$,G,Y,J);break;default:be&1?x(A,m,v,j,q,$,G,Y,J):be&6?z(A,m,v,j,q,$,G,Y,J):(be&64||be&128)&&re.process(A,m,v,j,q,$,G,Y,J,me)}de!=null&&q&&AE(de,A&&A.ref,$,m||A,!m)},S=(A,m,v,j)=>{if(A==null)n(m.el=u(m.children),v,j);else{const q=m.el=A.el;m.children!==A.children&&l(q,m.children)}},w=(A,m,v,j)=>{A==null?n(m.el=c(m.children||""),v,j):m.el=A.el},I=(A,m,v,j)=>{[A.el,A.anchor]=b(A.children,m,v,j,A.el,A.anchor)},O=({el:A,anchor:m},v,j)=>{let q;for(;A&&A!==m;)q=f(A),n(A,v,j),A=q;n(m,v,j)},T=({el:A,anchor:m})=>{let v;for(;A&&A!==m;)v=f(A),a(A),A=v;a(m)},x=(A,m,v,j,q,$,G,Y,J)=>{G=G||m.type==="svg",A==null?P(m,v,j,q,$,G,Y,J):N(A,m,q,$,G,Y,J)},P=(A,m,v,j,q,$,G,Y)=>{let J,re;const{type:de,props:be,shapeFlag:Ee,transition:xe,dirs:Pe}=A;if(J=A.el=o(A.type,$,be&&be.is,be),Ee&8?d(J,A.children):Ee&16&&Q(A.children,J,null,j,q,$&&de!=="foreignObject",G,Y),Pe&&wc(A,null,j,"created"),B(J,A,A.scopeId,G,j),be){for(const E in be)E!=="value"&&!eb(E)&&s(J,E,null,be[E],$,A.children,j,q,Ie);"value"in be&&s(J,"value",null,be.value),(re=be.onVnodeBeforeMount)&&As(re,j,A)}Pe&&wc(A,null,j,"beforeMount");const U=(!q||q&&!q.pendingBranch)&&xe&&!xe.persisted;U&&xe.beforeEnter(J),n(J,m,v),((re=be&&be.onVnodeMounted)||U||Pe)&&qi(()=>{re&&As(re,j,A),U&&xe.enter(J),Pe&&wc(A,null,j,"mounted")},q)},B=(A,m,v,j,q)=>{if(v&&p(A,v),j)for(let $=0;${for(let re=J;re{const Y=m.el=A.el;let{patchFlag:J,dynamicChildren:re,dirs:de}=m;J|=A.patchFlag&16;const be=A.props||Rr,Ee=m.props||Rr;let xe;v&&Sc(v,!1),(xe=Ee.onVnodeBeforeUpdate)&&As(xe,v,m,A),de&&wc(m,A,v,"beforeUpdate"),v&&Sc(v,!0);const Pe=q&&m.type!=="foreignObject";if(re?D(A.dynamicChildren,re,Y,v,j,Pe,$):G||ne(A,m,Y,null,v,j,Pe,$,!1),J>0){if(J&16)F(Y,m,be,Ee,v,j,q);else if(J&2&&be.class!==Ee.class&&s(Y,"class",null,Ee.class,q),J&4&&s(Y,"style",be.style,Ee.style,q),J&8){const U=m.dynamicProps;for(let E=0;E{xe&&As(xe,v,m,A),de&&wc(m,A,v,"updated")},j)},D=(A,m,v,j,q,$,G)=>{for(let Y=0;Y{if(v!==j){if(v!==Rr)for(const Y in v)!eb(Y)&&!(Y in j)&&s(A,Y,v[Y],null,G,m.children,q,$,Ie);for(const Y in j){if(eb(Y))continue;const J=j[Y],re=v[Y];J!==re&&Y!=="value"&&s(A,Y,re,J,G,m.children,q,$,Ie)}"value"in j&&s(A,"value",v.value,j.value)}},W=(A,m,v,j,q,$,G,Y,J)=>{const re=m.el=A?A.el:u(""),de=m.anchor=A?A.anchor:u("");let{patchFlag:be,dynamicChildren:Ee,slotScopeIds:xe}=m;xe&&(Y=Y?Y.concat(xe):xe),A==null?(n(re,v,j),n(de,v,j),Q(m.children,v,de,q,$,G,Y,J)):be>0&&be&64&&Ee&&A.dynamicChildren?(D(A.dynamicChildren,Ee,v,q,$,G,Y),(m.key!=null||q&&m===q.subTree)&&f5(A,m,!0)):ne(A,m,v,de,q,$,G,Y,J)},z=(A,m,v,j,q,$,G,Y,J)=>{m.slotScopeIds=Y,A==null?m.shapeFlag&512?q.ctx.activate(m,v,j,G,J):M(m,v,j,q,$,G,J):C(A,m,J)},M=(A,m,v,j,q,$,G)=>{const Y=A.component=_q(A,j,q);if(Y8(A)&&(Y.ctx.renderer=me),wq(Y),Y.asyncDep){if(q&&q.registerDep(Y,V),!A.el){const J=Y.subTree=Qt(Ku);w(null,J,m,v)}return}V(Y,A,m,v,q,$,G)},C=(A,m,v)=>{const j=m.component=A.component;if(CU(A,m,v))if(j.asyncDep&&!j.asyncResolved){ie(j,m,v);return}else j.next=m,AU(j.update),j.update();else m.el=A.el,j.vnode=m},V=(A,m,v,j,q,$,G)=>{const Y=()=>{if(A.isMounted){let{next:de,bu:be,u:Ee,parent:xe,vnode:Pe}=A,U=de,E;Sc(A,!1),de?(de.el=Pe.el,ie(A,de,G)):de=Pe,be&&gS(be),(E=de.props&&de.props.onVnodeBeforeUpdate)&&As(E,xe,de,Pe),Sc(A,!0);const R=_S(A),K=A.subTree;A.subTree=R,y(K,R,h(K.el),he(K),A,q,$),de.el=R.el,U===null&&FU(A,R.el),Ee&&qi(Ee,q),(E=de.props&&de.props.onVnodeUpdated)&&qi(()=>As(E,xe,de,Pe),q)}else{let de;const{el:be,props:Ee}=m,{bm:xe,m:Pe,parent:U}=A,E=ip(m);if(Sc(A,!1),xe&&gS(xe),!E&&(de=Ee&&Ee.onVnodeBeforeMount)&&As(de,U,m),Sc(A,!0),be&&H){const R=()=>{A.subTree=_S(A),H(be,A.subTree,A,q,null)};E?m.type.__asyncLoader().then(()=>!A.isUnmounted&&R()):R()}else{const R=A.subTree=_S(A);y(null,R,v,j,A,q,$),m.el=R.el}if(Pe&&qi(Pe,q),!E&&(de=Ee&&Ee.onVnodeMounted)){const R=m;qi(()=>As(de,U,R),q)}(m.shapeFlag&256||U&&ip(U.vnode)&&U.vnode.shapeFlag&256)&&A.a&&qi(A.a,q),A.isMounted=!0,m=v=j=null}},J=A.effect=new HO(Y,()=>KO(re),A.scope),re=A.update=()=>J.run();re.id=A.uid,Sc(A,!0),re()},ie=(A,m,v)=>{m.component=A;const j=A.vnode.props;A.vnode=m,A.next=null,sq(A,m.props,j,v),cq(A,m.children,v),bf(),pI(),mf()},ne=(A,m,v,j,q,$,G,Y,J=!1)=>{const re=A&&A.children,de=A?A.shapeFlag:0,be=m.children,{patchFlag:Ee,shapeFlag:xe}=m;if(Ee>0){if(Ee&128){_e(re,be,v,j,q,$,G,Y,J);return}else if(Ee&256){fe(re,be,v,j,q,$,G,Y,J);return}}xe&8?(de&16&&Ie(re,q,$),be!==re&&d(v,be)):de&16?xe&16?_e(re,be,v,j,q,$,G,Y,J):Ie(re,q,$,!0):(de&8&&d(v,""),xe&16&&Q(be,v,j,q,$,G,Y,J))},fe=(A,m,v,j,q,$,G,Y,J)=>{A=A||Pd,m=m||Pd;const re=A.length,de=m.length,be=Math.min(re,de);let Ee;for(Ee=0;Eede?Ie(A,q,$,!0,!1,be):Q(m,v,j,q,$,G,Y,J,be)},_e=(A,m,v,j,q,$,G,Y,J)=>{let re=0;const de=m.length;let be=A.length-1,Ee=de-1;for(;re<=be&&re<=Ee;){const xe=A[re],Pe=m[re]=J?Ou(m[re]):Fs(m[re]);if(Yf(xe,Pe))y(xe,Pe,v,null,q,$,G,Y,J);else break;re++}for(;re<=be&&re<=Ee;){const xe=A[be],Pe=m[Ee]=J?Ou(m[Ee]):Fs(m[Ee]);if(Yf(xe,Pe))y(xe,Pe,v,null,q,$,G,Y,J);else break;be--,Ee--}if(re>be){if(re<=Ee){const xe=Ee+1,Pe=xeEe)for(;re<=be;)Ce(A[re],q,$,!0),re++;else{const xe=re,Pe=re,U=new Map;for(re=Pe;re<=Ee;re++){const ke=m[re]=J?Ou(m[re]):Fs(m[re]);ke.key!=null&&U.set(ke.key,re)}let E,R=0;const K=Ee-Pe+1;let ce=!1,ye=0;const ge=new Array(K);for(re=0;re=K){Ce(ke,q,$,!0);continue}let Xe;if(ke.key!=null)Xe=U.get(ke.key);else for(E=Pe;E<=Ee;E++)if(ge[E-Pe]===0&&Yf(ke,m[E])){Xe=E;break}Xe===void 0?Ce(ke,q,$,!0):(ge[Xe-Pe]=re+1,Xe>=ye?ye=Xe:ce=!0,y(ke,m[Xe],v,null,q,$,G,Y,J),R++)}const $e=ce?fq(ge):Pd;for(E=$e.length-1,re=K-1;re>=0;re--){const ke=Pe+re,Xe=m[ke],Ke=ke+1{const{el:$,type:G,transition:Y,children:J,shapeFlag:re}=A;if(re&6){we(A.component.subTree,m,v,j);return}if(re&128){A.suspense.move(m,v,j);return}if(re&64){G.move(A,m,v,me);return}if(G===ri){n($,m,v);for(let be=0;beY.enter($),q);else{const{leave:be,delayLeave:Ee,afterLeave:xe}=Y,Pe=()=>n($,m,v),U=()=>{be($,()=>{Pe(),xe&&xe()})};Ee?Ee($,Pe,U):U()}else n($,m,v)},Ce=(A,m,v,j=!1,q=!1)=>{const{type:$,props:G,ref:Y,children:J,dynamicChildren:re,shapeFlag:de,patchFlag:be,dirs:Ee}=A;if(Y!=null&&AE(Y,null,v,A,!0),de&256){m.ctx.deactivate(A);return}const xe=de&1&&Ee,Pe=!ip(A);let U;if(Pe&&(U=G&&G.onVnodeBeforeUnmount)&&As(U,m,A),de&6)Ae(A.component,v,j);else{if(de&128){A.suspense.unmount(v,j);return}xe&&wc(A,null,m,"beforeUnmount"),de&64?A.type.remove(A,m,v,q,me,j):re&&($!==ri||be>0&&be&64)?Ie(re,m,v,!1,!0):($===ri&&be&384||!q&&de&16)&&Ie(J,m,v),j&&oe(A)}(Pe&&(U=G&&G.onVnodeUnmounted)||xe)&&qi(()=>{U&&As(U,m,A),xe&&wc(A,null,m,"unmounted")},v)},oe=A=>{const{type:m,el:v,anchor:j,transition:q}=A;if(m===ri){ae(v,j);return}if(m===wS){T(A);return}const $=()=>{a(v),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(A.shapeFlag&1&&q&&!q.persisted){const{leave:G,delayLeave:Y}=q,J=()=>G(v,$);Y?Y(A.el,$,J):J()}else $()},ae=(A,m)=>{let v;for(;A!==m;)v=f(A),a(A),A=v;a(m)},Ae=(A,m,v)=>{const{bum:j,scope:q,update:$,subTree:G,um:Y}=A;j&&gS(j),q.stop(),$&&($.active=!1,Ce(G,A,m,v)),Y&&qi(Y,m),qi(()=>{A.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&A.asyncDep&&!A.asyncResolved&&A.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},Ie=(A,m,v,j=!1,q=!1,$=0)=>{for(let G=$;GA.shapeFlag&6?he(A.component.subTree):A.shapeFlag&128?A.suspense.next():f(A.anchor||A.el),ve=(A,m,v)=>{A==null?m._vnode&&Ce(m._vnode,null,null,!0):y(m._vnode||null,A,m,null,null,null,v),pI(),z8(),m._vnode=A},me={p:y,um:Ce,m:we,r:oe,mt:M,mc:Q,pc:ne,pbc:D,n:he,o:t};let L,H;return e&&([L,H]=e(me)),{render:ve,hydrate:L,createApp:iq(ve,L)}}function Sc({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function f5(t,e,r=!1){const n=t.children,a=e.children;if(vt(n)&&vt(a))for(let s=0;s>1,t[r[u]]0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,o=r[s-1];s-- >0;)r[s]=o,o=e[o];return r}const hq=t=>t.__isTeleport,ri=Symbol.for("v-fgt"),bm=Symbol.for("v-txt"),Ku=Symbol.for("v-cmt"),wS=Symbol.for("v-stc"),sp=[];let ss=null;function mt(t=!1){sp.push(ss=t?null:[])}function pq(){sp.pop(),ss=sp[sp.length-1]||null}let Sp=1;function OI(t){Sp+=t}function h5(t){return t.dynamicChildren=Sp>0?ss||Pd:null,pq(),Sp>0&&ss&&ss.push(t),t}function er(t,e,r,n,a,s){return h5(Lt(t,e,r,n,a,s,!0))}function si(t,e,r,n,a){return h5(Qt(t,e,r,n,a,!0))}function Ib(t){return t?t.__v_isVNode===!0:!1}function Yf(t,e){return t.type===e.type&&t.key===e.key}const mm="__vInternal",p5=({key:t})=>t??null,rb=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?ln(t)||ai(t)||Rt(t)?{i:Un,r:t,k:e,f:!!r}:t:null);function Lt(t,e=null,r=null,n=0,a=null,s=t===ri?0:1,o=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&p5(e),ref:e&&rb(e),scopeId:pm,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Un};return u?(rA(c,r),s&128&&t.normalize(c)):r&&(c.shapeFlag|=ln(r)?8:16),Sp>0&&!o&&ss&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&ss.push(c),c}const Qt=yq;function yq(t,e=null,r=null,n=0,a=null,s=!1){if((!t||t===r5)&&(t=Ku),Ib(t)){const u=Hd(t,e,!0);return r&&rA(u,r),Sp>0&&!s&&ss&&(u.shapeFlag&6?ss[ss.indexOf(t)]=u:ss.push(u)),u.patchFlag|=-2,u}if(Oq(t)&&(t=t.__vccOpts),e){e=bq(e);let{class:u,style:c}=e;u&&!ln(u)&&(e.class=cn(u)),Ur(c)&&(B8(c)&&!vt(c)&&(c=In({},c)),e.style=Cu(c))}const o=ln(t)?1:MU(t)?128:hq(t)?64:Ur(t)?4:Rt(t)?2:0;return Lt(t,e,r,n,a,o,s,!0)}function bq(t){return t?B8(t)||mm in t?In({},t):t:null}function Hd(t,e,r=!1){const{props:n,ref:a,patchFlag:s,children:o}=t,u=e?xE(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&p5(u),ref:e&&e.ref?r&&a?vt(a)?a.concat(rb(e)):[a,rb(e)]:rb(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ri?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Hd(t.ssContent),ssFallback:t.ssFallback&&Hd(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function $c(t=" ",e=0){return Qt(bm,null,t,e)}function en(t="",e=!1){return e?(mt(),si(Ku,null,t)):Qt(Ku,null,t)}function Fs(t){return t==null||typeof t=="boolean"?Qt(Ku):vt(t)?Qt(ri,null,t.slice()):typeof t=="object"?Ou(t):Qt(bm,null,String(t))}function Ou(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Hd(t)}function rA(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(vt(e))r=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),rA(t,a()),a._c&&(a._d=!0));return}else{r=32;const a=e._;!a&&!(mm in e)?e._ctx=Un:a===3&&Un&&(Un.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Rt(e)?(e={default:e,_ctx:Un},r=32):(e=String(e),n&64?(r=16,e=[$c(e)]):r=8);t.children=e,t.shapeFlag|=r}function xE(...t){const e={};for(let r=0;rRn||Un;let nA,zl,AI="__VUE_INSTANCE_SETTERS__";(zl=yE()[AI])||(zl=yE()[AI]=[]),zl.push(t=>Rn=t),nA=t=>{zl.length>1?zl.forEach(e=>e(t)):zl[0](t)};const kd=t=>{nA(t),t.scope.on()},nl=()=>{Rn&&Rn.scope.off(),nA(null)};function y5(t){return t.vnode.shapeFlag&4}let Tp=!1;function wq(t,e=!1){Tp=e;const{props:r,children:n}=t.vnode,a=y5(t);aq(t,r,a,e),uq(t,n);const s=a?Sq(t,e):void 0;return Tp=!1,s}function Sq(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=$8(new Proxy(t.ctx,XU));const{setup:n}=r;if(n){const a=t.setupContext=n.length>1?m5(t):null;kd(t),bf();const s=qu(n,t,0,[t.props,a]);if(mf(),nl(),w8(s)){if(s.then(nl,nl),e)return s.then(o=>{xI(t,o,e)}).catch(o=>{fm(o,t,0)});t.asyncDep=s}else xI(t,s,e)}else b5(t,e)}function xI(t,e,r){Rt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ur(e)&&(t.setupState=H8(e)),b5(t,r)}let RI;function b5(t,e,r){const n=t.type;if(!t.render){if(!e&&RI&&!n.render){const a=n.template||eA(t).template;if(a){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:u,compilerOptions:c}=n,l=In(In({isCustomElement:s,delimiters:u},o),c);n.render=RI(a,l)}}t.render=n.render||os}kd(t),bf(),YU(t),mf(),nl()}function Tq(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return zi(t,"get","$attrs"),e[r]}}))}function m5(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return Tq(t)},slots:t.slots,emit:t.emit,expose:e}}function gm(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(H8($8(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in ap)return ap[r](t)},has(e,r){return r in e||r in ap}}))}function Eq(t,e=!0){return Rt(t)?t.displayName||t.name:t.name||e&&t.__name}function Oq(t){return Rt(t)&&"__vccOpts"in t}const zt=(t,e)=>TU(t,e,Tp);function g5(t,e,r){const n=arguments.length;return n===2?Ur(e)&&!vt(e)?Ib(e)?Qt(t,null,[e]):Qt(t,e):Qt(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ib(r)&&(r=[r]),Qt(t,e,r))}const Aq=Symbol.for("v-scx"),xq=()=>cs(Aq),Rq="3.3.4",Iq="http://www.w3.org/2000/svg",Uc=typeof document<"u"?document:null,II=Uc&&Uc.createElement("template"),Pq={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const a=e?Uc.createElementNS(Iq,t):Uc.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:t=>Uc.createTextNode(t),createComment:t=>Uc.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Uc.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,a,s){const o=r?r.previousSibling:e.lastChild;if(a&&(a===s||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),r),!(a===s||!(a=a.nextSibling)););else{II.innerHTML=n?`${t}`:t;const u=II.content;if(n){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}e.insertBefore(u,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function Dq(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function Nq(t,e,r){const n=t.style,a=ln(r);if(r&&!a){if(e&&!ln(e))for(const s in e)r[s]==null&&RE(n,s,"");for(const s in r)RE(n,s,r[s])}else{const s=n.display;a?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=s)}}const PI=/\s*!important$/;function RE(t,e,r){if(vt(r))r.forEach(n=>RE(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=jq(t,e);PI.test(r)?t.setProperty(yf(n),r.replace(PI,""),"important"):t[n]=r}}const DI=["Webkit","Moz","ms"],SS={};function jq(t,e){const r=SS[e];if(r)return r;let n=Ks(e);if(n!=="filter"&&n in t)return SS[e]=n;n=cm(n);for(let a=0;aTS||(Uq.then(()=>TS=0),TS=Date.now());function Vq(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;us(Hq(n,r.value),e,5,[n])};return r.value=t,r.attached=qq(),r}function Hq(t,e){if(vt(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const CI=/^on[a-z]/,kq=(t,e,r,n,a=!1,s,o,u,c)=>{e==="class"?Dq(t,n,a):e==="style"?Nq(t,r,n):sm(e)?BO(e)||Bq(t,e,r,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Qq(t,e,n,a))?Fq(t,e,n,s,o,u,c):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Cq(t,e,n,a))};function Qq(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&CI.test(e)&&Rt(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||CI.test(e)&&ln(r)?!1:e in t}const Gq=In({patchProp:kq},Pq);let FI;function zq(){return FI||(FI=lq(Gq))}const Wq=(...t)=>{const e=zq().createApp(...t),{mount:r}=e;return e.mount=n=>{const a=Xq(n);if(!a)return;const s=e._component;!Rt(s)&&!s.render&&!s.template&&(s.template=a.innerHTML),a.innerHTML="";const o=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e};function Xq(t){return ln(t)?document.querySelector(t):t}const Kq=["primary","secondary","success","danger","warning","info","light","dark"],Jq="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%",Yq=[0,0,0],MI=.5,Zq=t=>t&&Kq.includes(t.toLowerCase()),eV=(t,e)=>{const r=s=>(s.length<7&&(s=`#${s[1]}${s[1]}${s[2]}${s[2]}${s[3]}${s[3]}`),[parseInt(s.substr(1,2),16),parseInt(s.substr(3,2),16),parseInt(s.substr(5,2),16)]),n=s=>{const o=document.body.appendChild(document.createElement("fictum")),u="rgb(1, 2, 3)";return o.style.color=u,o.style.color!==u||(o.style.color=s,o.style.color===u||o.style.color==="")?e:(s=getComputedStyle(o).color,document.body.removeChild(o),s)},a=s=>{const o=s.match(/[.\d]+/g);if(o===null)return;const u=o.map(c=>+Number(c));return u.length=3,u};return typeof t=="string"&&t.toLowerCase()==="transparent"?e:typeof t=="string"&&t[0]==="#"?r(t):(typeof t=="string"&&t.indexOf("rgb")===-1&&(t=n(t)),typeof t=="string"&&t.indexOf("rgb")===0?a(t):e)},tV=({offsetX:t,offsetY:e,height:r,width:n})=>{const a=e<=r/2,s=t<=n/2,o=(h,f)=>Math.sqrt(h**2+f**2),u=e===r/2&&t===n/2,c={first:a===!0&&s===!1,second:a===!0&&s===!0,third:a===!1&&s===!0,fourth:a===!1&&s===!1},l={topLeft:o(t,e),topRight:o(n-t,e),bottomLeft:o(t,r-e),bottomRight:o(n-t,r-e)};let d=0;return u||c.fourth?d=l.topLeft:c.third?d=l.topRight:c.second?d=l.bottomRight:c.first&&(d=l.bottomLeft),d*2},rV=(t,e)=>{for(const r in e)t.style[r]=e[r]},nV=t=>{const e=eV(t,Yq);if(t!==""&&e){const r=e.join(",");return`radial-gradient(circle, ${Jq.split("{{color}}").join(`${r}`)})`}},iV=(t,e,r)=>{const n=document.createElement("div");n.classList.add("ripple-wave");const a={offsetX:r.centered?e.height/2:e.left,offsetY:r.centered?e.width/2:e.top,height:e.height,width:e.width},s=tV(a),o=r.radius||s/2,u={delay:r.duration&&r.duration*MI,duration:r.duration&&r.duration-r.duration*MI},c={left:r.centered?`${Math.round(e.width/2-o)}px`:`${Math.round(e.left-o)}px`,top:r.centered?`${Math.round(e.height/2-o)}px`:`${Math.round(e.top-o)}px`,height:`${Math.round(r.radius&&r.radius*2||s)}px`,width:`${Math.round(r.radius&&r.radius*2||s)}px`,transitionDelay:`0s, ${u.delay}ms`,transitionDuration:`${r.duration}ms, ${u.duration}ms`};r.unbound&&t.classList.add("ripple-surface-unbound"),Zq(r.color)?t.classList.add(`ripple-surface-${r.color}`):c.backgroundImage=nV(r.color),rV(n,c),t.appendChild(n),setTimeout(()=>{n.classList.add("active")},50),setTimeout(()=>{t.removeChild(n)},r.duration?r.duration+1e3:1e3)},_5={mounted(t,e){if(e.value===!1)return;const r={centered:e.value&&e.value.centered||!1,color:e.value&&e.value.color||"",duration:e.value&&e.value.duration||500,radius:e.value&&e.value.radius||0,unbound:e.value&&e.value.unbound||!1};t.classList.add("ripple-surface"),t.waves=n=>{const a={top:n.layerY,left:n.layerX,height:t.offsetHeight,width:t.offsetWidth};iV(t,a,r)},t.addEventListener("click",n=>t.waves(n))},updated(t){t.classList.contains("ripple-surface")||t.classList.add("ripple-surface")},unmounted(t){t.removeEventListener("click",e=>t.waves(e))}},aV={name:"MDBBtn"},sV=ji({...aV,props:{color:String,size:String,outline:String,rounded:Boolean,floating:Boolean,toggler:Boolean,toggle:Boolean,role:{type:String,default:"button"},type:{type:String,default:"button"},tag:{type:String,default:"button"},block:{type:Boolean,default:!1},ripple:{type:[Object,Boolean],default:t=>t.outline||t.color==="light"||t.color==="link"?{color:"dark"}:!0},picker:Boolean},emits:["update:toggle"],setup(t,{emit:e}){const r=t,n=Si(r.toggle),a=zt(()=>[!r.picker&&"btn",r.color&&`btn-${r.color}`,r.size&&`btn-${r.size}`,r.outline&&`btn-outline-${r.outline}`,r.rounded&&"btn-rounded",r.floating&&"btn-floating",r.block&&"btn-block",n.value&&"active"]),s=()=>{r.toggler&&(n.value=!n.value,e("update:toggle",n.value))};return(o,u)=>Ab((mt(),si(ys(t.tag),{type:t.type,role:t.role,class:cn(St(a)),onClick:s},{default:ar(()=>[Qi(o.$slots,"default")]),_:3},8,["type","role","class"])),[[St(_5),t.ripple]])}}),oV={name:"MDBCard"},v5=ji({...oV,props:{tag:{type:String,default:"div"},border:String,bg:String,text:[String,Array],shadow:String},setup(t){const e=t,r=zt(()=>{const a=e.text;return["card",e.border&&`border border-${e.border}`,e.bg&&`bg-${e.bg}`,e.shadow&&`shadow-${e.shadow}`,e.text&&n(a)]}),n=a=>typeof a=="string"?`text-${a}`:a.map(s=>`text-${s}`.trim()).join(" ");return(a,s)=>(mt(),si(ys(t.tag),{class:cn(St(r))},{default:ar(()=>[Qi(a.$slots,"default")]),_:3},8,["class"]))}}),uV={name:"MDBCardBody"},w5=ji({...uV,props:{tag:{type:String,default:"div"},text:{type:[String,Array]}},setup(t){const e=t,r=zt(()=>{const a=e.text;return["card-body",e.text&&n(a)]}),n=a=>typeof a=="string"?`text-${a}`:a.map(s=>`text-${s}`.trim()).join(" ");return(a,s)=>(mt(),si(ys(t.tag),{class:cn(St(r))},{default:ar(()=>[Qi(a.$slots,"default")]),_:3},8,["class"]))}}),cV={name:"MDBCardTitle"},lV=ji({...cV,props:{tag:{type:String,default:"h5"},subtitle:{type:Boolean,default:!1}},setup(t){const e=t,r=zt(()=>e.subtitle?e.tag!=="h5"?e.tag:"h6":e.tag),n=zt(()=>[e.subtitle?"card-subtitle":"card-title"]);return(a,s)=>(mt(),si(ys(St(r)),{class:cn(St(n))},{default:ar(()=>[Qi(a.$slots,"default")]),_:3},8,["class"]))}}),dV={name:"MDBCardText"},S5=ji({...dV,props:{tag:{type:String,default:"p"}},setup(t){const e=zt(()=>["card-text"]);return(r,n)=>(mt(),si(ys(t.tag),{class:cn(St(e))},{default:ar(()=>[Qi(r.$slots,"default")]),_:3},8,["class"]))}}),fV={name:"MDBCardFooter"},hV=ji({...fV,props:{tag:{type:String,default:"div"},bg:String,border:String},setup(t){const e=t,r=zt(()=>["card-footer",e.border&&`border-${e.border}`,e.bg&&`bg-${e.bg}`]);return(n,a)=>(mt(),si(ys(t.tag),{class:cn(St(r))},{default:ar(()=>[Qi(n.$slots,"default")]),_:3},8,["class"]))}}),pV=1e6,yV=t=>{do t+=Math.floor(Math.random()*pV);while(document.getElementById(t));return t},bV=/\..*/,mV={mouseenter:"mouseover",mouseleave:"mouseout"},gV=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function T5(t,e,r){const n=typeof e=="string",a=n?r:e;let s=t.replace(bV,"");const o=mV[s];return o&&(s=o),gV.indexOf(s)>-1||(s=t),[n,a,s]}function _V(t,e,r,n){if(typeof e!="string"||!t)return;r||(r=n,n=null);const[a,s,o]=T5(e,r,n);t.addEventListener(o,s,a)}function vV(t,e,r,n){t.removeEventListener(e,r,!!n)}const wV=function(t,e,r,n=void 0){_V(t,e,r,n)},SV=function(t,e,r,n=void 0){if(typeof e!="string"||!t)return;const[a,s,o]=T5(e,r,n);vV(t,o,s,a?r:null)};var IE={stopProp(t){t.stopPropagation()},mounted(t,e){const r=a=>{const s=a.target;!t.contains(s)&&t!==s&&e.value(a)};t.clickOutside=r;const n=e.modifiers.mousedown?"mousedown":"click";document.addEventListener(n,a=>{var s;return(s=t.clickOutside)==null?void 0:s.call(t,a)}),document.addEventListener("touchstart",a=>{var s;return(s=t.clickOutside)==null?void 0:s.call(t,a)})},unmounted(t,e){if(!t.clickOutside)return;const r=e.modifiers.mousedown?"mousedown":"click";document.removeEventListener(r,n=>{var a;return(a=t.clickOutside)==null?void 0:a.call(t,n)}),document.removeEventListener("touchstart",n=>{var a;return(a=t.clickOutside)==null?void 0:a.call(t,n)}),delete t.clickOutside}};const TV={key:1,class:"visually-hidden"},EV={name:"MDBDropdownToggle"};({...EV,props:{...sV.props}});const OV={name:"MDBPagination"},AV=ji({...OV,props:{tag:{type:String,default:"ul"},circle:{type:Boolean,default:!1},lg:{type:Boolean,default:!1},sm:{type:Boolean,default:!1}},setup(t){const e=t,r=zt(()=>["pagination",e.sm&&"pagination-sm",e.lg&&"pagination-lg",e.circle&&"pagination-circle"]);return(n,a)=>(mt(),si(ys(t.tag),{class:cn(St(r))},{default:ar(()=>[Qi(n.$slots,"default")]),_:3},8,["class"]))}}),xV=["href","aria-label","aria-disabled","tabindex"],RV={key:0,"aria-hidden":"true"},IV={key:1,class:"sr-only"},PV={name:"MDBPageItem"},DV=ji({...PV,props:{tag:{type:String,default:"li"},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:String,icon:{type:Boolean,defaul:!1},label:{type:String}},setup(t){const e=t,r=zt(()=>["page-item",e.active&&"active",e.disabled&&"disabled"]),n=zt(()=>e.icon&&e.label?e.label:e.href),a=zt(()=>e.disabled?"-1":" false");return(s,o)=>(mt(),si(ys(t.tag),{class:cn(St(r))},{default:ar(()=>[Lt("a",{class:"page-link",href:t.href,"aria-label":St(n),"aria-disabled":t.disabled,tabindex:St(a)},[t.icon?(mt(),er("span",RV,[Qi(s.$slots,"default")])):en("",!0),t.icon?(mt(),er("span",IV,Sr(St(n)),1)):Qi(s.$slots,"default",{key:2})],8,xV)]),_:3},8,["class"]))}}),NV={name:"MDBContainer"},jV=ji({...NV,props:{tag:{type:String,default:"div"},sm:{type:Boolean,default:!1},md:{type:Boolean,default:!1},lg:{type:Boolean,default:!1},xl:{type:Boolean,default:!1},xxl:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1}},setup(t){const e=t,r=zt(()=>[e.fluid?"container-fluid":"",e.sm?"container-sm":"",e.md?"container-md":"",e.lg?"container-lg":"",e.xl?"container-xl":"",e.xxl?"container-xxl":"",!e.fluid&&!e.sm&&!e.md&&!e.lg&&!e.xl&&!e.xxl?"container":""]);return(n,a)=>(mt(),si(ys(t.tag),{class:cn(St(r))},{default:ar(()=>[Qi(n.$slots,"default")]),_:3},8,["class"]))}}),CV=["id","value"],FV=["for"],MV={key:2,class:"form-helper"},LV={key:3,class:"form-helper"},BV={class:"form-counter"},$V=Lt("div",{class:"form-notch-trailing"},null,-1),UV=["id","value"],qV=["for"],VV={key:1,class:"form-helper"},HV={key:2,class:"form-helper"},kV={class:"form-counter"},QV=Lt("div",{class:"form-notch-trailing"},null,-1),GV={key:9,class:"form-text"},zV={name:"MDBInput",inheritAttrs:!1},WV=ji({...zV,props:{id:String,label:String,labelClass:String,modelValue:[String,Number,Date],size:String,formOutline:{type:Boolean,default:!0},wrapperClass:String,inputGroup:{type:[Boolean,String],default:!1},wrap:{type:Boolean,default:!0},formText:String,white:Boolean,validationEvent:String,isValidated:Boolean,isValid:Boolean,validFeedback:String,invalidFeedback:String,tooltipFeedback:{type:Boolean,default:!1},tag:{type:String,default:"div"},helper:String,counter:Boolean,maxlength:{type:Number,default:0}},emits:["update:modelValue","click-outside","on-validate"],setup(t,{expose:e,emit:r}){const n=t,a=KU(),s=Si(null),o=Si(n.modelValue),u=Si(null),c=Si(!1),l=Si(9),d=Si(0),h=n.id||yV("MDBInput-"),f=zt(()=>[n.formOutline&&"form-outline",y.value,n.white&&"form-white",n.wrapperClass]),p=zt(()=>["form-control",n.size?`form-control-${n.size}`:n.inputGroup&&n.inputGroup!==!0&&`form-control-${n.inputGroup}`,(o.value||o.value===0)&&"active",c.value&&"placeholder-active",O.value&&T.value&&"is-valid",O.value&&!T.value&&"is-invalid"]),b=zt(()=>["form-label",n.labelClass]),y=zt(()=>{if(n.inputGroup)return n.inputGroup!==!0?`input-group input-group-${n.inputGroup}`:"input-group"}),S=zt(()=>n.inputGroup&&O.value?{marginBottom:"1rem"}:""),w=zt(()=>n.tooltipFeedback?"valid-tooltip":"valid-feedback"),I=zt(()=>n.tooltipFeedback?"invalid-tooltip":"invalid-feedback"),O=Si(n.isValidated),T=Si(n.isValid),x=Si(""),P=zt(()=>O.value&&!T.value&&n.validationEvent?x.value:n.invalidFeedback),B=_e=>{const we=_e.target;T.value=we.checkValidity(),T.value||(x.value=we.validationMessage),O.value=!0,r("on-validate",T.value)},Q=()=>{n.validationEvent!=="submit"&&typeof s.value!="string"&&wV(s.value,n.validationEvent,B)};function N(){u.value&&(d.value=u.value.clientWidth*.8+8)}function D(){a.placeholder&&!u.value?c.value=!0:c.value=!1}const F=Si(null);F.value=typeof o.value=="string"&&o.value?o.value.length:0;function W(_e){const we=_e.target;if(n.counter){if(we.value.length>n.maxlength){typeof o.value=="string"&&(we.value=o.value);return}F.value=we.value.length}o.value=we.value,r("update:modelValue",o.value)}function z(){r("click-outside")}const M=Si(null),C=Si(),V=_e=>{C.value.forEach(we=>we.style.opacity=_e?"0":"1"),_e&&(M.value.style.opacity="1")},ie=a.type&&a.type==="date",ne=(_e=!1)=>{var we;n.label&&n.formOutline&&((we=C.value)==null?void 0:we.length)>1&&V(_e),ie&&typeof s.value!="string"&&(s.value.type=_e?"date":"text")},fe=_e=>![..._e.parentNode.children].findIndex(we=>we===_e);return e5(()=>{if(N(),D(),ne(),n.label&&n.formOutline&&(C.value=s.value.parentNode.querySelectorAll(".form-notch")),n.label&&n.formOutline&&!fe(s.value)){const _e=parseFloat(getComputedStyle(u.value).left);u.value.style.left=`${_e+s.value.offsetLeft}px`,l.value+=s.value.offsetLeft}n.validationEvent&&Q()}),t5(()=>{N(),D()}),YO(()=>{typeof s.value!="string"&&SV(s.value,n.validationEvent,B)}),K8(()=>{var _e,we;if(n.counter&&typeof n.modelValue=="string"){if(((_e=n.modelValue)==null?void 0:_e.length)>n.maxlength){o.value=n.modelValue.slice(0,n.maxlength),F.value=n.maxlength;return}F.value=((we=n.modelValue)==null?void 0:we.length)||0}o.value=n.modelValue}),Cd(()=>n.isValidated,_e=>O.value=_e),Cd(()=>n.isValid,_e=>T.value=_e),e({inputRef:s}),(_e,we)=>(mt(),er(ri,null,[t.wrap?en("",!0):Ab((mt(),er("input",xE({key:0,class:St(p),id:St(h),value:o.value},_e.$attrs,{onInput:W,ref_key:"inputRef",ref:s,onFocus:we[0]||(we[0]=Ce=>ne(!0)),onBlur:we[1]||(we[1]=Ce=>ne())}),null,16,CV)),[[St(IE),z]]),t.label&&!t.wrap?(mt(),er("label",{key:1,ref_key:"labelRef",ref:u,class:cn(St(b)),for:St(h)},Sr(t.label),11,FV)):en("",!0),!t.wrap&&t.helper?(mt(),er("div",MV,Sr(t.helper),1)):en("",!0),!t.wrap&&t.counter?(mt(),er("div",LV,[Lt("div",BV,Sr(F.value)+" / "+Sr(t.maxlength),1)])):en("",!0),t.wrap?en("",!0):Qi(_e.$slots,"default",{key:4}),!t.wrap&&t.validFeedback?(mt(),er("div",{key:5,class:cn(St(w))},Sr(t.validFeedback),3)):en("",!0),!t.wrap&&St(P)?(mt(),er("div",{key:6,class:cn(St(I))},Sr(St(P)),3)):en("",!0),!t.wrap&&t.formOutline?(mt(),er("div",{key:7,class:"form-notch",ref_key:"notchRef",ref:M},[Lt("div",{class:"form-notch-leading",style:Cu({width:`${l.value}px`})},null,4),Lt("div",{class:"form-notch-middle",style:Cu({width:`${d.value}px`})},null,4),$V],512)):en("",!0),t.wrap?Ab((mt(),si(ys(t.tag),{key:8,class:cn(St(f)),style:Cu(St(S))},{default:ar(()=>[Qi(_e.$slots,"prepend"),Lt("input",xE({class:St(p)},_e.$attrs,{id:St(h),value:o.value,onInput:W,ref_key:"inputRef",ref:s,onFocus:we[2]||(we[2]=Ce=>ne(!0)),onBlur:we[3]||(we[3]=Ce=>ne())}),null,16,UV),t.label?(mt(),er("label",{key:0,ref_key:"labelRef",ref:u,class:cn(St(b)),for:St(h)},Sr(t.label),11,qV)):en("",!0),t.helper?(mt(),er("div",VV,Sr(t.helper),1)):en("",!0),t.counter?(mt(),er("div",HV,[Lt("div",kV,Sr(F.value)+" / "+Sr(t.maxlength),1)])):en("",!0),Qi(_e.$slots,"default"),t.validFeedback?(mt(),er("div",{key:3,class:cn(St(w))},Sr(t.validFeedback),3)):en("",!0),St(P)?(mt(),er("div",{key:4,class:cn(St(I))},Sr(St(P)),3)):en("",!0),t.formOutline?(mt(),er("div",{key:5,class:"form-notch",ref_key:"notchRef",ref:M},[Lt("div",{class:"form-notch-leading",style:Cu({width:`${l.value}px`})},null,4),Lt("div",{class:"form-notch-middle",style:Cu({width:`${d.value}px`})},null,4),QV],512)):en("",!0)]),_:3},8,["class","style"])),[[St(IE),z]]):en("",!0),t.formText?(mt(),er("div",GV,Sr(t.formText),1)):en("",!0)],64))}});var g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function XV(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function iA(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}),r}var E5={},_m={},vm={},Kp={},O5={},wm={},et={},aA={},A5={};Object.defineProperty(A5,"__esModule",{value:!0});var x5={};Object.defineProperty(x5,"__esModule",{value:!0});var R5={};Object.defineProperty(R5,"__esModule",{value:!0});var I5={};Object.defineProperty(I5,"__esModule",{value:!0});var P5={};Object.defineProperty(P5,"__esModule",{value:!0});var D5={};Object.defineProperty(D5,"__esModule",{value:!0});var N5={};Object.defineProperty(N5,"__esModule",{value:!0});var j5={};Object.defineProperty(j5,"__esModule",{value:!0});var C5={};Object.defineProperty(C5,"__esModule",{value:!0});var F5={};Object.defineProperty(F5,"__esModule",{value:!0});var M5={};Object.defineProperty(M5,"__esModule",{value:!0});var L5={};Object.defineProperty(L5,"__esModule",{value:!0});var B5={};Object.defineProperty(B5,"__esModule",{value:!0});var Sm={};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.Logger=void 0;class Tm{static getLevelOrdinal(e){return Tm.LEVELS[e]}}Sm.Logger=Tm;Tm.LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5};(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(A5,t),r(x5,t),r(R5,t),r(I5,t),r(P5,t),r(D5,t),r(N5,t),r(j5,t),r(C5,t),r(F5,t),r(M5,t),r(L5,t),r(B5,t),r(Sm,t)})(aA);var sl={},Jp="delete",Ir=5,Ea=1<>>0;if(""+r!==e||r===4294967295)return NaN;e=r}return e<0?Qd(t)+e:e}function $5(){return!0}function Yp(t,e,r){return(t===0&&!q5(t)||r!==void 0&&t<=-r)&&(e===void 0||r!==void 0&&e>=r)}function gf(t,e){return U5(t,e,0)}function Zp(t,e){return U5(t,e,e)}function U5(t,e,r){return t===void 0?r:q5(t)?e===1/0?e:Math.max(0,e+t)|0:e===void 0||e===t?t:Math.min(e,t)|0}function q5(t){return t<0||t===0&&1/t===-1/0}var V5="@@__IMMUTABLE_ITERABLE__@@";function oi(t){return!!(t&&t[V5])}var H5="@@__IMMUTABLE_KEYED__@@";function _r(t){return!!(t&&t[H5])}var k5="@@__IMMUTABLE_INDEXED__@@";function qn(t){return!!(t&&t[k5])}function _f(t){return _r(t)||qn(t)}var Dr=function(e){return oi(e)?e:ui(e)},Pa=function(t){function e(r){return _r(r)?r:ac(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Dr),ml=function(t){function e(r){return qn(r)?r:Da(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Dr),vf=function(t){function e(r){return oi(r)&&!_f(r)?r:Tf(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Dr);Dr.Keyed=Pa;Dr.Indexed=ml;Dr.Set=vf;var Q5="@@__IMMUTABLE_SEQ__@@";function e0(t){return!!(t&&t[Q5])}var G5="@@__IMMUTABLE_RECORD__@@";function ic(t){return!!(t&&t[G5])}function ya(t){return oi(t)||ic(t)}var wf="@@__IMMUTABLE_ORDERED__@@";function da(t){return!!(t&&t[wf])}var t0=0,ds=1,Ra=2,DE=typeof Symbol=="function"&&Symbol.iterator,z5="@@iterator",Em=DE||z5,Xt=function(e){this.next=e};Xt.prototype.toString=function(){return"[Iterator]"};Xt.KEYS=t0;Xt.VALUES=ds;Xt.ENTRIES=Ra;Xt.prototype.inspect=Xt.prototype.toSource=function(){return this.toString()};Xt.prototype[Em]=function(){return this};function Nr(t,e,r,n){var a=t===0?e:t===1?r:[e,r];return n?n.value=a:n={value:a,done:!1},n}function Pi(){return{value:void 0,done:!0}}function oA(t){return Array.isArray(t)?!0:!!Om(t)}function LI(t){return t&&typeof t.next=="function"}function NE(t){var e=Om(t);return e&&e.call(t)}function Om(t){var e=t&&(DE&&t[DE]||t[z5]);if(typeof e=="function")return e}function KV(t){var e=Om(t);return e&&e===t.entries}function JV(t){var e=Om(t);return e&&e===t.keys}var Sf=Object.prototype.hasOwnProperty;function uA(t){return Array.isArray(t)||typeof t=="string"?!0:t&&typeof t=="object"&&Number.isInteger(t.length)&&t.length>=0&&(t.length===0?Object.keys(t).length===1:t.hasOwnProperty(t.length-1))}var ui=function(t){function e(r){return r==null?lA():ya(r)?r.toSeq():ZV(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(n,a){var s=this._cache;if(s){for(var o=s.length,u=0;u!==o;){var c=s[a?o-++u:u++];if(n(c[1],c[0],this)===!1)break}return u}return this.__iterateUncached(n,a)},e.prototype.__iterator=function(n,a){var s=this._cache;if(s){var o=s.length,u=0;return new Xt(function(){if(u===o)return Pi();var c=s[a?o-++u:u++];return Nr(n,c[0],c[1])})}return this.__iteratorUncached(n,a)},e}(Dr),ac=function(t){function e(r){return r==null?lA().toKeyedSeq():oi(r)?_r(r)?r.toSeq():r.fromEntrySeq():ic(r)?r.toSeq():dA(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(ui),Da=function(t){function e(r){return r==null?lA():oi(r)?_r(r)?r.entrySeq():r.toIndexedSeq():ic(r)?r.toSeq().entrySeq():W5(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(ui),Tf=function(t){function e(r){return(oi(r)&&!_f(r)?r:Da(r)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(ui);ui.isSeq=e0;ui.Keyed=ac;ui.Set=Tf;ui.Indexed=Da;ui.prototype[Q5]=!0;var ol=function(t){function e(r){this._array=r,this.size=r.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return this.has(n)?this._array[Ju(this,n)]:a},e.prototype.__iterate=function(n,a){for(var s=this._array,o=s.length,u=0;u!==o;){var c=a?o-++u:u++;if(n(s[c],c,this)===!1)break}return u},e.prototype.__iterator=function(n,a){var s=this._array,o=s.length,u=0;return new Xt(function(){if(u===o)return Pi();var c=a?o-++u:u++;return Nr(n,c,s[c])})},e}(Da),cA=function(t){function e(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return a!==void 0&&!this.has(n)?a:this._object[n]},e.prototype.has=function(n){return Sf.call(this._object,n)},e.prototype.__iterate=function(n,a){for(var s=this._object,o=this._keys,u=o.length,c=0;c!==u;){var l=o[a?u-++c:c++];if(n(s[l],l,this)===!1)break}return c},e.prototype.__iterator=function(n,a){var s=this._object,o=this._keys,u=o.length,c=0;return new Xt(function(){if(c===u)return Pi();var l=o[a?u-++c:c++];return Nr(n,l,s[l])})},e}(ac);cA.prototype[wf]=!0;var YV=function(t){function e(r){this._collection=r,this.size=r.length||r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(n,a){if(a)return this.cacheResult().__iterate(n,a);var s=this._collection,o=NE(s),u=0;if(LI(o))for(var c;!(c=o.next()).done&&n(c.value,u++,this)!==!1;);return u},e.prototype.__iteratorUncached=function(n,a){if(a)return this.cacheResult().__iterator(n,a);var s=this._collection,o=NE(s);if(!LI(o))return new Xt(Pi);var u=0;return new Xt(function(){var c=o.next();return c.done?c:Nr(n,u++,c.value)})},e}(Da),BI;function lA(){return BI||(BI=new ol([]))}function dA(t){var e=fA(t);if(e)return e.fromEntrySeq();if(typeof t=="object")return new cA(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function W5(t){var e=fA(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function ZV(t){var e=fA(t);if(e)return KV(t)?e.fromEntrySeq():JV(t)?e.toSetSeq():e;if(typeof t=="object")return new cA(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function fA(t){return uA(t)?new ol(t):oA(t)?new YV(t):void 0}var X5="@@__IMMUTABLE_MAP__@@";function r0(t){return!!(t&&t[X5])}function Am(t){return r0(t)&&da(t)}function Pb(t){return!!(t&&typeof t.equals=="function"&&typeof t.hashCode=="function")}function _n(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if(typeof t.valueOf=="function"&&typeof e.valueOf=="function"){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(Pb(t)&&Pb(e)&&t.equals(e))}var Zf=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(e,r){e|=0,r|=0;var n=e&65535,a=r&65535;return n*a+((e>>>16)*a+n*(r>>>16)<<16>>>0)|0};function xm(t){return t>>>1&1073741824|t&3221225471}var eH=Object.prototype.valueOf;function Ai(t){if(t==null)return $I(t);if(typeof t.hashCode=="function")return xm(t.hashCode(t));var e=sH(t);if(e==null)return $I(e);switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return tH(e);case"string":return e.length>oH?rH(e):jE(e);case"object":case"function":return iH(e);case"symbol":return nH(e);default:if(typeof e.toString=="function")return jE(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function $I(t){return t===null?1108378658:1108378659}function tH(t){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return xm(e)}function rH(t){var e=AS[t];return e===void 0&&(e=jE(t),OS===uH&&(OS=0,AS={}),OS++,AS[t]=e),e}function jE(t){for(var e=0,r=0;r0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function sH(t){return t.valueOf!==eH&&typeof t.valueOf=="function"?t.valueOf(t):t}function K5(){var t=++ES;return ES&1073741824&&(ES=0),t}var CE=typeof WeakMap=="function",FE;CE&&(FE=new WeakMap);var VI=Object.create(null),ES=0,qc="__immutablehash__";typeof Symbol=="function"&&(qc=Symbol(qc));var oH=16,uH=255,OS=0,AS={},Rm=function(t){function e(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(n,a){return this._iter.get(n,a)},e.prototype.has=function(n){return this._iter.has(n)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var n=this,a=hA(this,!0);return this._useKeys||(a.valueSeq=function(){return n._iter.toSeq().reverse()}),a},e.prototype.map=function(n,a){var s=this,o=tj(this,n,a);return this._useKeys||(o.valueSeq=function(){return s._iter.toSeq().map(n,a)}),o},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o,u){return n(o,u,s)},a)},e.prototype.__iterator=function(n,a){return this._iter.__iterator(n,a)},e}(ac);Rm.prototype[wf]=!0;var J5=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,a){var s=this,o=0;return a&&Qd(this),this._iter.__iterate(function(u){return n(u,a?s.size-++o:o++,s)},a)},e.prototype.__iterator=function(n,a){var s=this,o=this._iter.__iterator(ds,a),u=0;return a&&Qd(this),new Xt(function(){var c=o.next();return c.done?c:Nr(n,a?s.size-++u:u++,c.value,c)})},e}(Da),Y5=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(n){return this._iter.includes(n)},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o){return n(o,o,s)},a)},e.prototype.__iterator=function(n,a){var s=this._iter.__iterator(ds,a);return new Xt(function(){var o=s.next();return o.done?o:Nr(n,o.value,o.value,o)})},e}(Tf),Z5=function(t){function e(r){this._iter=r,this.size=r.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(n,a){var s=this;return this._iter.__iterate(function(o){if(o){kI(o);var u=oi(o);return n(u?o.get(1):o[1],u?o.get(0):o[0],s)}},a)},e.prototype.__iterator=function(n,a){var s=this._iter.__iterator(ds,a);return new Xt(function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value;if(u){kI(u);var c=oi(u);return Nr(n,c?u.get(0):u[0],c?u.get(1):u[1],o)}}})},e}(ac);J5.prototype.cacheResult=Rm.prototype.cacheResult=Y5.prototype.cacheResult=Z5.prototype.cacheResult=bA;function ej(t){var e=no(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var r=t.reverse.apply(this);return r.flip=function(){return t.reverse()},r},e.has=function(r){return t.includes(r)},e.includes=function(r){return t.has(r)},e.cacheResult=bA,e.__iterateUncached=function(r,n){var a=this;return t.__iterate(function(s,o){return r(o,s,a)!==!1},n)},e.__iteratorUncached=function(r,n){if(r===Ra){var a=t.__iterator(r,n);return new Xt(function(){var s=a.next();if(!s.done){var o=s.value[0];s.value[0]=s.value[1],s.value[1]=o}return s})}return t.__iterator(r===ds?t0:ds,n)},e}function tj(t,e,r){var n=no(t);return n.size=t.size,n.has=function(a){return t.has(a)},n.get=function(a,s){var o=t.get(a,Vt);return o===Vt?s:e.call(r,o,a,t)},n.__iterateUncached=function(a,s){var o=this;return t.__iterate(function(u,c,l){return a(e.call(r,u,c,l),c,o)!==!1},s)},n.__iteratorUncached=function(a,s){var o=t.__iterator(Ra,s);return new Xt(function(){var u=o.next();if(u.done)return u;var c=u.value,l=c[0];return Nr(a,l,e.call(r,c[1],l,t),u)})},n}function hA(t,e){var r=this,n=no(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var a=ej(t);return a.reverse=function(){return t.flip()},a}),n.get=function(a,s){return t.get(e?a:-1-a,s)},n.has=function(a){return t.has(e?a:-1-a)},n.includes=function(a){return t.includes(a)},n.cacheResult=bA,n.__iterate=function(a,s){var o=this,u=0;return s&&Qd(t),t.__iterate(function(c,l){return a(c,e?l:s?o.size-++u:u++,o)},!s)},n.__iterator=function(a,s){var o=0;s&&Qd(t);var u=t.__iterator(Ra,!s);return new Xt(function(){var c=u.next();if(c.done)return c;var l=c.value;return Nr(a,e?l[0]:s?r.size-++o:o++,l[1],c)})},n}function rj(t,e,r,n){var a=no(t);return n&&(a.has=function(s){var o=t.get(s,Vt);return o!==Vt&&!!e.call(r,o,s,t)},a.get=function(s,o){var u=t.get(s,Vt);return u!==Vt&&e.call(r,u,s,t)?u:o}),a.__iterateUncached=function(s,o){var u=this,c=0;return t.__iterate(function(l,d,h){if(e.call(r,l,d,h))return c++,s(l,n?d:c-1,u)},o),c},a.__iteratorUncached=function(s,o){var u=t.__iterator(Ra,o),c=0;return new Xt(function(){for(;;){var l=u.next();if(l.done)return l;var d=l.value,h=d[0],f=d[1];if(e.call(r,f,h,t))return Nr(s,n?h:c++,f,l)}})},a}function cH(t,e,r){var n=oc().asMutable();return t.__iterate(function(a,s){n.update(e.call(r,a,s,t),0,function(o){return o+1})}),n.asImmutable()}function lH(t,e,r){var n=_r(t),a=(da(t)?fs():oc()).asMutable();t.__iterate(function(o,u){a.update(e.call(r,o,u,t),function(c){return c=c||[],c.push(n?[u,o]:o),c})});var s=yA(t);return a.map(function(o){return gr(t,s(o))}).asImmutable()}function dH(t,e,r){var n=_r(t),a=[[],[]];t.__iterate(function(o,u){a[e.call(r,o,u,t)?1:0].push(n?[u,o]:o)});var s=yA(t);return a.map(function(o){return gr(t,s(o))})}function pA(t,e,r,n){var a=t.size;if(Yp(e,r,a))return t;var s=gf(e,a),o=Zp(r,a);if(s!==s||o!==o)return pA(t.toSeq().cacheResult(),e,r,n);var u=o-s,c;u===u&&(c=u<0?0:u);var l=no(t);return l.size=c===0?c:t.size&&c||void 0,!n&&e0(t)&&c>=0&&(l.get=function(d,h){return d=Ju(this,d),d>=0&&dc)return Pi();var y=f.next();return n||d===ds||y.done?y:d===t0?Nr(d,b-1,void 0,y):Nr(d,b-1,y.value[1],y)})},l}function fH(t,e,r){var n=no(t);return n.__iterateUncached=function(a,s){var o=this;if(s)return this.cacheResult().__iterate(a,s);var u=0;return t.__iterate(function(c,l,d){return e.call(r,c,l,d)&&++u&&a(c,l,o)}),u},n.__iteratorUncached=function(a,s){var o=this;if(s)return this.cacheResult().__iterator(a,s);var u=t.__iterator(Ra,s),c=!0;return new Xt(function(){if(!c)return Pi();var l=u.next();if(l.done)return l;var d=l.value,h=d[0],f=d[1];return e.call(r,f,h,o)?a===Ra?l:Nr(a,h,f,l):(c=!1,Pi())})},n}function nj(t,e,r,n){var a=no(t);return a.__iterateUncached=function(s,o){var u=this;if(o)return this.cacheResult().__iterate(s,o);var c=!0,l=0;return t.__iterate(function(d,h,f){if(!(c&&(c=e.call(r,d,h,f))))return l++,s(d,n?h:l-1,u)}),l},a.__iteratorUncached=function(s,o){var u=this;if(o)return this.cacheResult().__iterator(s,o);var c=t.__iterator(Ra,o),l=!0,d=0;return new Xt(function(){var h,f,p;do{if(h=c.next(),h.done)return n||s===ds?h:s===t0?Nr(s,d++,void 0,h):Nr(s,d++,h.value[1],h);var b=h.value;f=b[0],p=b[1],l&&(l=e.call(r,p,f,u))}while(l);return s===Ra?h:Nr(s,f,p,h)})},a}function hH(t,e){var r=_r(t),n=[t].concat(e).map(function(o){return oi(o)?r&&(o=Pa(o)):o=r?dA(o):W5(Array.isArray(o)?o:[o]),o}).filter(function(o){return o.size!==0});if(n.length===0)return t;if(n.length===1){var a=n[0];if(a===t||r&&_r(a)||qn(t)&&qn(a))return a}var s=new ol(n);return r?s=s.toKeyedSeq():qn(t)||(s=s.toSetSeq()),s=s.flatten(!0),s.size=n.reduce(function(o,u){if(o!==void 0){var c=u.size;if(c!==void 0)return o+c}},0),s}function ij(t,e,r){var n=no(t);return n.__iterateUncached=function(a,s){if(s)return this.cacheResult().__iterate(a,s);var o=0,u=!1;function c(l,d){l.__iterate(function(h,f){return(!e||d0}function Qy(t,e,r,n){var a=no(t),s=new ol(r).map(function(o){return o.size});return a.size=n?s.max():s.min(),a.__iterate=function(o,u){for(var c=this.__iterator(ds,u),l,d=0;!(l=c.next()).done&&o(l.value,d++,this)!==!1;);return d},a.__iteratorUncached=function(o,u){var c=r.map(function(h){return h=Dr(h),NE(u?h.reverse():h)}),l=0,d=!1;return new Xt(function(){var h;return d||(h=c.map(function(f){return f.next()}),d=n?h.every(function(f){return f.done}):h.some(function(f){return f.done})),d?Pi():Nr(o,l++,e.apply(null,h.map(function(f){return f.value})))})},a}function gr(t,e){return t===e?t:e0(t)?e:t.constructor(e)}function kI(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function yA(t){return _r(t)?Pa:qn(t)?ml:vf}function no(t){return Object.create((_r(t)?ac:qn(t)?Da:Tf).prototype)}function bA(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ui.prototype.cacheResult.call(this)}function aj(t,e){return t===void 0&&e===void 0?0:t===void 0?1:e===void 0?-1:t>e?1:t0;)e[r]=arguments[r+1];if(typeof t!="function")throw new TypeError("Invalid merger function: "+t);return lj(this,e,t)}function lj(t,e,r){for(var n=[],a=0;a0;)e[r]=arguments[r+1];return i0(t,e)}function fj(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return i0(e,r,t)}function hj(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return n0(t,e)}function pj(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return n0(e,r,t)}function n0(t,e,r){return i0(t,e,mH(r))}function i0(t,e,r){if(!Yu(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(ya(t))return typeof r=="function"&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),a=t,s=n?ml:Pa,o=n?function(c){a===t&&(a=Db(a)),a.push(c)}:function(c,l){var d=Sf.call(a,l),h=d&&r?r(a[l],c,l):c;(!d||h!==a[l])&&(a===t&&(a=Db(a)),a[l]=h)},u=0;u0;)e[r]=arguments[r+1];return n0(this,e,t)}function xA(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return sc(this,t,is(),function(n){return i0(n,e)})}function RA(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return sc(this,t,is(),function(n){return n0(n,e)})}function a0(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function s0(){return this.__ownerID?this:this.__ensureOwner(new sA)}function o0(){return this.__ensureOwner()}function IA(){return this.__altered}var oc=function(t){function e(r){return r==null?is():r0(r)&&!da(r)?r:is().withMutations(function(n){var a=t(r);sa(a.size),a.forEach(function(s,o){return n.set(o,s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return is().withMutations(function(s){for(var o=0;o=n.length)throw new Error("Missing value for key: "+n[o]);s.set(n[o],n[o+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(n,a){return this._root?this._root.get(0,void 0,n,a):a},e.prototype.set=function(n,a){return zI(this,n,a)},e.prototype.remove=function(n){return zI(this,n,Vt)},e.prototype.deleteAll=function(n){var a=Dr(n);return a.size===0?this:this.withMutations(function(s){a.forEach(function(o){return s.remove(o)})})},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):is()},e.prototype.sort=function(n){return fs(Gd(this,n))},e.prototype.sortBy=function(n,a){return fs(Gd(this,a,n))},e.prototype.map=function(n,a){var s=this;return this.withMutations(function(o){o.forEach(function(u,c){o.set(c,n.call(a,u,c,s))})})},e.prototype.__iterator=function(n,a){return new _H(this,n,a)},e.prototype.__iterate=function(n,a){var s=this,o=0;return this._root&&this._root.iterate(function(u){return o++,n(u[1],u[0],s)},a),o},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?PA(this.size,this._root,n,this.__hash):this.size===0?is():(this.__ownerID=n,this.__altered=!1,this)},e}(Pa);oc.isMap=r0;var jr=oc.prototype;jr[X5]=!0;jr[Jp]=jr.remove;jr.removeAll=jr.deleteAll;jr.setIn=SA;jr.removeIn=jr.deleteIn=EA;jr.update=OA;jr.updateIn=AA;jr.merge=jr.concat=uj;jr.mergeWith=cj;jr.mergeDeep=yj;jr.mergeDeepWith=bj;jr.mergeIn=xA;jr.mergeDeepIn=RA;jr.withMutations=a0;jr.wasAltered=IA;jr.asImmutable=o0;jr["@@transducer/init"]=jr.asMutable=s0;jr["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])};jr["@@transducer/result"]=function(t){return t.asImmutable()};var Op=function(e,r){this.ownerID=e,this.entries=r};Op.prototype.get=function(e,r,n,a){for(var s=this.entries,o=0,u=s.length;o=OH)return vH(e,l,a,s);var p=e&&e===this.ownerID,b=p?l:Bs(l);return f?c?d===h-1?b.pop():b[d]=b.pop():b[d]=[a,s]:b.push([a,s]),p?(this.entries=b,this):new Op(e,b)}};var zd=function(e,r,n){this.ownerID=e,this.bitmap=r,this.nodes=n};zd.prototype.get=function(e,r,n,a){r===void 0&&(r=Ai(n));var s=1<<((e===0?r:r>>>e)&Ri),o=this.bitmap;return o&s?this.nodes[mj(o&s-1)].get(e+Ir,r,n,a):a};zd.prototype.update=function(e,r,n,a,s,o,u){n===void 0&&(n=Ai(a));var c=(r===0?n:n>>>r)&Ri,l=1<=AH)return SH(e,p,d,c,y);if(h&&!y&&p.length===2&&WI(p[f^1]))return p[f^1];if(h&&y&&p.length===1&&WI(y))return y;var S=e&&e===this.ownerID,w=h?y?d:d^l:d|l,I=h?y?gj(p,f,y,S):EH(p,f,S):TH(p,f,y,S);return S?(this.bitmap=w,this.nodes=I,this):new zd(e,w,I)};var Ap=function(e,r,n){this.ownerID=e,this.count=r,this.nodes=n};Ap.prototype.get=function(e,r,n,a){r===void 0&&(r=Ai(n));var s=(e===0?r:r>>>e)&Ri,o=this.nodes[s];return o?o.get(e+Ir,r,n,a):a};Ap.prototype.update=function(e,r,n,a,s,o,u){n===void 0&&(n=Ai(a));var c=(r===0?n:n>>>r)&Ri,l=s===Vt,d=this.nodes,h=d[c];if(l&&!h)return this;var f=DA(h,e,r+Ir,n,a,s,o,u);if(f===h)return this;var p=this.count;if(!h)p++;else if(!f&&(p--,p>>r)&Ri,o=(r===0?n:n>>>r)&Ri,u,c=s===o?[NA(t,e,r+Ir,n,a)]:(u=new Wo(e,n,a),s>>=1)o[u]=r&1?e[s++]:void 0;return o[n]=a,new Ap(t,s+1,o)}function mj(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function gj(t,e,r,n){var a=n?t:Bs(t);return a[e]=r,a}function TH(t,e,r,n){var a=t.length+1;if(n&&e+1===a)return t[e]=r,t;for(var s=new Array(a),o=0,u=0;u0&&s=0&&n>>r&Ri;if(a>=this.array.length)return new Vu([],e);var s=a===0,o;if(r>0){var u=this.array[a];if(o=u&&u.removeBefore(e,r-Ir,n),o===u&&s)return this}if(s&&!o)return this;var c=Xd(this,e);if(!s)for(var l=0;l>>r&Ri;if(a>=this.array.length)return this;var s;if(r>0){var o=this.array[a];if(s=o&&o.removeAfter(e,r-Ir,n),s===o&&a===this.array.length-1)return this}var u=Xd(this,e);return u.array.splice(a+1),s&&(u.array[a]=s),u};var op={};function XI(t,e){var r=t._origin,n=t._capacity,a=Rp(n),s=t._tail;return o(t._root,t._level,0);function o(l,d,h){return d===0?u(l,h):c(l,d,h)}function u(l,d){var h=d===a?s&&s.array:l&&l.array,f=d>r?0:r-d,p=n-d;return p>Ea&&(p=Ea),function(){if(f===p)return op;var b=e?--p:f++;return h&&h[b]}}function c(l,d,h){var f,p=l&&l.array,b=h>r?0:r-h>>d,y=(n-h>>d)+1;return y>Ea&&(y=Ea),function(){for(;;){if(f){var S=f();if(S!==op)return S;f=null}if(b===y)return op;var w=e?--y:b++;f=o(p&&p[w],d-Ir,h+(w<=t.size||e<0)return t.withMutations(function(o){e<0?Au(o,e).set(0,r):Au(o,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,a=t._root,s=PE();return e>=Rp(t._capacity)?n=ME(n,t.__ownerID,0,e,r,s):a=ME(a,t.__ownerID,t._level,e,r,s),s.value?t.__ownerID?(t._root=a,t._tail=n,t.__hash=void 0,t.__altered=!0,t):xp(t._origin,t._capacity,t._level,a,n):t}function ME(t,e,r,n,a,s){var o=n>>>r&Ri,u=t&&o0){var l=t&&t.array[o],d=ME(l,e,r-Ir,n,a,s);return d===l?t:(c=Xd(t,e),c.array[o]=d,c)}return u&&t.array[o]===a?t:(s&&Oa(s),c=Xd(t,e),a===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=a,c)}function Xd(t,e){return e&&t&&e===t.ownerID?t:new Vu(t?t.array.slice():[],e)}function vj(t,e){if(e>=Rp(t._capacity))return t._tail;if(e<1<0;)r=r.array[e>>>n&Ri],n-=Ir;return r}}function Au(t,e,r){e!==void 0&&(e|=0),r!==void 0&&(r|=0);var n=t.__ownerID||new sA,a=t._origin,s=t._capacity,o=a+e,u=r===void 0?s:r<0?s+r:a+r;if(o===a&&u===s)return t;if(o>=u)return t.clear();for(var c=t._level,l=t._root,d=0;o+d<0;)l=new Vu(l&&l.array.length?[void 0,l]:[],n),c+=Ir,d+=1<=1<h?new Vu([],n):p;if(p&&f>h&&oIr;S-=Ir){var w=h>>>S&Ri;y=y.array[w]=Xd(y.array[w],n)}y.array[h>>>Ir&Ri]=p}if(u=f)o-=f,u-=f,c=Ir,l=null,b=b&&b.removeBefore(n,0,o);else if(o>a||f>>c&Ri;if(I!==f>>>c&Ri)break;I&&(d+=(1<a&&(l=l.removeBefore(n,c,o-d)),l&&f>>Ir<=Ea&&a.size>=n.size*2?(c=a.filter(function(l,d){return l!==void 0&&s!==d}),u=c.toKeyedSeq().map(function(l){return l[0]}).flip().toMap(),t.__ownerID&&(u.__ownerID=c.__ownerID=t.__ownerID)):(u=n.remove(e),c=s===a.size-1?a.pop():a.set(s,void 0))}else if(o){if(r===a.get(s)[1])return t;u=n,c=a.set(s,[e,r])}else u=n.set(e,a.size),c=a.set(a.size,[e,r]);return t.__ownerID?(t.size=u.size,t._map=u,t._list=c,t.__hash=void 0,t.__altered=!0,t):jA(u,c)}var wj="@@__IMMUTABLE_STACK__@@";function Ip(t){return!!(t&&t[wj])}var u0=function(t){function e(r){return r==null?Gy():Ip(r)?r:Gy().pushAll(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(n,a){var s=this._head;for(n=Ju(this,n);s&&n--;)s=s.next;return s?s.value:a},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var a=this.size+arguments.length,s=this._head,o=arguments.length-1;o>=0;o--)s={value:n[o],next:s};return this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):Uh(a,s)},e.prototype.pushAll=function(n){if(n=t(n),n.size===0)return this;if(this.size===0&&Ip(n))return n;sa(n.size);var a=this.size,s=this._head;return n.__iterate(function(o){a++,s={value:o,next:s}},!0),this.__ownerID?(this.size=a,this._head=s,this.__hash=void 0,this.__altered=!0,this):Uh(a,s)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Gy()},e.prototype.slice=function(n,a){if(Yp(n,a,this.size))return this;var s=gf(n,this.size),o=Zp(a,this.size);if(o!==this.size)return t.prototype.slice.call(this,n,a);for(var u=this.size-s,c=this._head;s--;)c=c.next;return this.__ownerID?(this.size=u,this._head=c,this.__hash=void 0,this.__altered=!0,this):Uh(u,c)},e.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Uh(this.size,this._head,n,this.__hash):this.size===0?Gy():(this.__ownerID=n,this.__altered=!1,this)},e.prototype.__iterate=function(n,a){var s=this;if(a)return new ol(this.toArray()).__iterate(function(c,l){return n(c,l,s)},a);for(var o=0,u=this._head;u&&n(u.value,o++,this)!==!1;)u=u.next;return o},e.prototype.__iterator=function(n,a){if(a)return new ol(this.toArray()).__iterator(n,a);var s=0,o=this._head;return new Xt(function(){if(o){var u=o.value;return o=o.next,Nr(n,s++,u)}return Pi()})},e}(ml);u0.isStack=Ip;var Di=u0.prototype;Di[wj]=!0;Di.shift=Di.pop;Di.unshift=Di.push;Di.unshiftAll=Di.pushAll;Di.withMutations=a0;Di.wasAltered=IA;Di.asImmutable=o0;Di["@@transducer/init"]=Di.asMutable=s0;Di["@@transducer/step"]=function(t,e){return t.unshift(e)};Di["@@transducer/result"]=function(t){return t.asImmutable()};function Uh(t,e,r,n){var a=Object.create(Di);return a.size=t,a._head=e,a.__ownerID=r,a.__hash=n,a.__altered=!1,a}var ZI;function Gy(){return ZI||(ZI=Uh(0))}var Sj="@@__IMMUTABLE_SET__@@";function c0(t){return!!(t&&t[Sj])}function jm(t){return c0(t)&&da(t)}function CA(t,e){if(t===e)return!0;if(!oi(e)||t.size!==void 0&&e.size!==void 0&&t.size!==e.size||t.__hash!==void 0&&e.__hash!==void 0&&t.__hash!==e.__hash||_r(t)!==_r(e)||qn(t)!==qn(e)||da(t)!==da(e))return!1;if(t.size===0&&e.size===0)return!0;var r=!_f(t);if(da(t)){var n=t.entries();return e.every(function(c,l){var d=n.next().value;return d&&_n(d[1],c)&&(r||_n(d[0],l))})&&n.next().done}var a=!1;if(t.size===void 0)if(e.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{a=!0;var s=t;t=e,e=s}var o=!0,u=e.__iterate(function(c,l){if(r?!t.has(c):a?!_n(c,t.get(l,Vt)):!_n(t.get(l,Vt),c))return o=!1,!1});return o&&t.size===u}function gl(t,e){var r=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Nb(t){if(!t||typeof t!="object")return t;if(!oi(t)){if(!Yu(t))return t;t=ui(t)}if(_r(t)){var e={};return t.__iterate(function(n,a){e[a]=Nb(n)}),e}var r=[];return t.__iterate(function(n){r.push(Nb(n))}),r}var Of=function(t){function e(r){return r==null?qh():c0(r)&&!da(r)?r:qh().withMutations(function(n){var a=t(r);sa(a.size),a.forEach(function(s){return n.add(s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(Pa(n).keySeq())},e.intersect=function(n){return n=Dr(n).toArray(),n.length?Vn.intersect.apply(e(n.pop()),n):qh()},e.union=function(n){return n=Dr(n).toArray(),n.length?Vn.union.apply(e(n.pop()),n):qh()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(n){return this._map.has(n)},e.prototype.add=function(n){return zy(this,this._map.set(n,n))},e.prototype.remove=function(n){return zy(this,this._map.remove(n))},e.prototype.clear=function(){return zy(this,this._map.clear())},e.prototype.map=function(n,a){var s=this,o=!1,u=zy(this,this._map.mapEntries(function(c){var l=c[1],d=n.call(a,l,l,s);return d!==l&&(o=!0),[d,d]},a));return o?u:this},e.prototype.union=function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var o=0;o=0&&a=0&&sthis.size?r:this.find(function(n,a){return a===e},void 0,r)},has:function(e){return e=Ju(this,e),e>=0&&(this.size!==void 0?this.size===1/0||ee?-1:0}function NH(t){if(t.size===1/0)return 0;var e=da(t),r=_r(t),n=e?1:0,a=t.__iterate(r?e?function(s,o){n=31*n+aP(Ai(s),Ai(o))|0}:function(s,o){n=n+aP(Ai(s),Ai(o))|0}:e?function(s){n=31*n+Ai(s)|0}:function(s){n=n+Ai(s)|0});return jH(a,n)}function jH(t,e){return e=Zf(e,3432918353),e=Zf(e<<15|e>>>-15,461845907),e=Zf(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Zf(e^e>>>16,2246822507),e=Zf(e^e>>>13,3266489909),e=xm(e^e>>>16),e}function aP(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var ul=function(t){function e(r){return r==null?LE():jm(r)?r:LE().withMutations(function(n){var a=vf(r);sa(a.size),a.forEach(function(s){return n.add(s)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(n){return this(Pa(n).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Of);ul.isOrderedSet=jm;var _l=ul.prototype;_l[wf]=!0;_l.zip=Af.zip;_l.zipWith=Af.zipWith;_l.zipAll=Af.zipAll;_l.__empty=LE;_l.__make=Aj;function Aj(t,e){var r=Object.create(_l);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}var sP;function LE(){return sP||(sP=Aj($h()))}var xj={LeftThenRight:-1,RightThenLeft:1};function CH(t){if(ic(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(ya(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(t===null||typeof t!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var fn=function(e,r){var n;CH(e);var a=function(u){var c=this;if(u instanceof a)return u;if(!(this instanceof a))return new a(u);if(!n){n=!0;var l=Object.keys(e),d=s._indices={};s._name=r,s._keys=l,s._defaultValues=e;for(var h=0;h2?[]:void 0,{"":t})}function Pj(t,e,r,n,a,s){if(typeof r!="string"&&!ya(r)&&(uA(r)||oA(r)||Im(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),a&&n!==""&&a.push(n);var o=e.call(s,n,ui(r).map(function(u,c){return Pj(t,e,u,c,a,r)}),a&&a.slice());return t.pop(),a&&a.pop(),o}return r}function MH(t,e){return qn(e)?e.toList():_r(e)?e.toMap():e.toSet()}var Dj="4.3.5",LH={version:Dj,Collection:Dr,Iterable:Dr,Seq:ui,Map:oc,OrderedMap:fs,List:Ef,Stack:u0,Set:Of,OrderedSet:ul,PairSorting:xj,Record:fn,Range:FA,Repeat:Rj,is:_n,fromJS:Ij,hash:Ai,isImmutable:ya,isCollection:oi,isKeyed:_r,isIndexed:qn,isAssociative:_f,isOrdered:da,isValueObject:Pb,isPlainObject:Im,isSeq:e0,isList:Nm,isMap:r0,isOrderedMap:Am,isStack:Ip,isSet:c0,isOrderedSet:jm,isRecord:ic,get:Pm,getIn:Cm,has:gA,hasIn:MA,merge:dj,mergeDeep:hj,mergeWith:fj,mergeDeepWith:pj,remove:_A,removeIn:TA,set:vA,setIn:wA,update:Dm,updateIn:sc},BH=Dr;const $H=Object.freeze(Object.defineProperty({__proto__:null,Collection:Dr,Iterable:BH,List:Ef,Map:oc,OrderedMap:fs,OrderedSet:ul,PairSorting:xj,Range:FA,Record:fn,Repeat:Rj,Seq:ui,Set:Of,Stack:u0,default:LH,fromJS:Ij,get:Pm,getIn:Cm,has:gA,hasIn:MA,hash:Ai,is:_n,isAssociative:_f,isCollection:oi,isImmutable:ya,isIndexed:qn,isKeyed:_r,isList:Nm,isMap:r0,isOrdered:da,isOrderedMap:Am,isOrderedSet:jm,isPlainObject:Im,isRecord:ic,isSeq:e0,isSet:c0,isStack:Ip,isValueObject:Pb,merge:dj,mergeDeep:hj,mergeDeepWith:pj,mergeWith:fj,remove:_A,removeIn:TA,set:vA,setIn:wA,update:Dm,updateIn:sc,version:Dj},Symbol.toStringTag,{value:"Module"})),$A=iA($H);Object.defineProperty(sl,"__esModule",{value:!0});sl.ActionContextKey=sl.ActionContext=void 0;const oP=$A;class gd{constructor(e={}){this.map=(0,oP.Map)(e)}setDefault(e,r){return this.has(e)?this:this.set(e,r)}set(e,r){return this.setRaw(e.name,r)}setRaw(e,r){return new gd(this.map.set(e,r))}delete(e){return new gd(this.map.delete(e.name))}get(e){return this.getRaw(e.name)}getRaw(e){return this.map.get(e)}getSafe(e){if(!this.has(e))throw new Error(`Context entry ${e.name} is required but not available`);return this.get(e)}has(e){return this.hasRaw(e.name)}hasRaw(e){return this.map.has(e)}merge(...e){let r=this;for(const n of e)for(const a of n.keys())r=r.set(a,n.get(a));return r}keys(){return[...this.map.keys()].map(e=>new Nj(e))}toJS(){return this.map.toJS()}toString(){return`ActionContext(${JSON.stringify(this.map.toJS())})`}[Symbol.for("nodejs.util.inspect.custom")](){return`ActionContext(${JSON.stringify(this.map.toJS(),null," ")})`}static ensureActionContext(e){return e instanceof gd?e:new gd((0,oP.Map)(e||{}))}}sl.ActionContext=gd;class Nj{constructor(e){this.name=e}}sl.ActionContextKey=Nj;var d0={};Object.defineProperty(d0,"__esModule",{value:!0});d0.Bus=void 0;class UH{constructor(e){this.actors=[],this.observers=[],this.dependencyLinks=new Map,Object.assign(this,e)}subscribe(e){this.actors.push(e),this.reorderForDependencies()}subscribeObserver(e){this.observers.push(e)}unsubscribe(e){const r=this.actors.indexOf(e);return r>=0?(this.actors.splice(r,1),!0):!1}unsubscribeObserver(e){const r=this.observers.indexOf(e);return r>=0?(this.observers.splice(r,1),!0):!1}publish(e){return this.actors.map(r=>({actor:r,reply:r.test(e)}))}onRun(e,r,n){for(const a of this.observers)a.onRun(e,r,n)}addDependencies(e,r){for(const n of r){let a=this.dependencyLinks.get(n);a||(a=[],this.dependencyLinks.set(n,a)),a.push(e)}this.reorderForDependencies()}reorderForDependencies(){if(this.dependencyLinks.size>0){const e=[];for(const r of this.dependencyLinks.keys()){const n=this.actors.indexOf(r);n>=0&&(this.actors.splice(n,1),e.push(r))}for(;e.length>0;){let r=-1;for(let a=0;a=0&&n.splice(a,1),n.length===0&&delete this.actorsIndex[r]}return super.unsubscribe(e)}publish(e){const r=this.getActionIdentifier(e);return r?[...this.actorsIndex[r]||[],...this.actorsIndex._undefined_||[]].map(a=>({actor:a,reply:a.test(e)})):super.publish(e)}getActorIdentifier(e){return this.actorIdentifierFields.reduce((r,n)=>r[n],e)}getActionIdentifier(e){return this.actionIdentifierFields.reduce((r,n)=>r[n],e)}}Fm.BusIndexed=VH;var f0={};Object.defineProperty(f0,"__esModule",{value:!0});f0.CONTEXT_KEY_LOGGER=void 0;const HH=sl;f0.CONTEXT_KEY_LOGGER=new HH.ActionContextKey("@comunica/core:log");var Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});Mm.ActionObserver=void 0;class kH{constructor(e){Object.assign(this,e)}}Mm.ActionObserver=kH;var Lm={};Object.defineProperty(Lm,"__esModule",{value:!0});Lm.Actor=void 0;const QH=f0;class xu{constructor(e){this.beforeActors=[],Object.assign(this,e),this.bus.subscribe(this),this.beforeActors.length>0&&this.bus.addDependencies(this,this.beforeActors)}static getContextLogger(e){return e.get(QH.CONTEXT_KEY_LOGGER)}runObservable(e){const r=this.run(e);return this.bus.onRun(this,e,r),r}async initialize(){return!0}async deinitialize(){return!0}getDefaultLogData(e,r){const n=r?r():{};return n.actor=this.name,n}logTrace(e,r,n){const a=xu.getContextLogger(e);a&&a.trace(r,this.getDefaultLogData(e,n))}logDebug(e,r,n){const a=xu.getContextLogger(e);a&&a.debug(r,this.getDefaultLogData(e,n))}logInfo(e,r,n){const a=xu.getContextLogger(e);a&&a.info(r,this.getDefaultLogData(e,n))}logWarn(e,r,n){const a=xu.getContextLogger(e);a&&a.warn(r,this.getDefaultLogData(e,n))}logError(e,r,n){const a=xu.getContextLogger(e);a&&a.error(r,this.getDefaultLogData(e,n))}logFatal(e,r,n){const a=xu.getContextLogger(e);a&&a.fatal(r,this.getDefaultLogData(e,n))}}Lm.Actor=xu;var Bm={};Object.defineProperty(Bm,"__esModule",{value:!0});Bm.Mediator=void 0;class GH{constructor(e){Object.assign(this,e)}publish(e){const r=this.bus.publish(e);if(r.length===0)throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);return r}async mediateActor(e){return await this.mediateWith(e,this.publish(e))}async mediate(e){return(await this.mediateActor(e)).runObservable(e)}}Bm.Mediator=GH;(function(t){var e=g&&g.__createBinding||(Object.create?function(s,o,u,c){c===void 0&&(c=u);var l=Object.getOwnPropertyDescriptor(o,u);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[u]}}),Object.defineProperty(s,c,l)}:function(s,o,u,c){c===void 0&&(c=u),s[c]=o[u]}),r=g&&g.__exportStar||function(s,o){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(o,u)&&e(o,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const a=aA.Logger;t.Logger=a,r(sl,t),r(d0,t),r(Fm,t),r(f0,t),r(Mm,t),r(Lm,t),r(Bm,t)})(et);Object.defineProperty(wm,"__esModule",{value:!0});wm.ActorInit=void 0;const zH=et;class WH extends zH.Actor{constructor(e){super(e)}}wm.ActorInit=WH;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wm,t)})(O5);Object.defineProperty(Kp,"__esModule",{value:!0});Kp.ActorInitQueryBase=void 0;const XH=O5;class KH extends XH.ActorInit{constructor(e){var r;(r=e.contextKeyShortcutsExtensions)==null||r.forEach(n=>{if(Object.keys(e.contextKeyShortcuts).some(a=>Object.keys(n).includes(a)))throw new Error("Duplicate keys found while adding `contextKeyShortcutsExtensions`.");e.contextKeyShortcuts={...e.contextKeyShortcuts,...n}}),super(e)}async test(e){return!0}async run(e){throw new Error("ActorInitSparql#run is not supported in the browser.")}}Kp.ActorInitQueryBase=KH;var $m={},DS={exports:{}},uP;function ru(){if(uP)return DS.exports;uP=1;var t=DS.exports={},e,r;function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=n}catch{e=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=a}catch{r=a}})();function s(y){if(e===setTimeout)return setTimeout(y,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(y,0);try{return e(y,0)}catch{try{return e.call(null,y,0)}catch{return e.call(this,y,0)}}}function o(y){if(r===clearTimeout)return clearTimeout(y);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(y);try{return r(y)}catch{try{return r.call(null,y)}catch{return r.call(this,y)}}}var u=[],c=!1,l,d=-1;function h(){!c||!l||(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var y=s(h);c=!0;for(var S=u.length;S;){for(l=u,u=[];++d1)for(var w=1;w"u"&&(globalThis.process=ru());class YH extends JH.ActorInitQueryBase{}$m.ActorInitQuery=YH;var Um={},ft={},h0={},Ht={},$r={};Object.defineProperty($r,"__esModule",{value:!0});$r.KeysRdfUpdateQuads=$r.KeysRdfResolveQuadPattern=$r.KeysRdfParseHtmlScript=$r.KeysRdfParseJsonLd=$r.KeysQueryOperation=$r.KeysInitQuery=$r.KeysHttpProxy=$r.KeysHttpMemento=$r.KeysHttpWayback=$r.KeysHttp=$r.KeysCore=void 0;const gt=et;$r.KeysCore={log:gt.CONTEXT_KEY_LOGGER};$r.KeysHttp={includeCredentials:new gt.ActionContextKey("@comunica/bus-http:include-credentials"),auth:new gt.ActionContextKey("@comunica/bus-http:auth"),fetch:new gt.ActionContextKey("@comunica/bus-http:fetch"),httpTimeout:new gt.ActionContextKey("@comunica/bus-http:http-timeout"),httpBodyTimeout:new gt.ActionContextKey("@comunica/bus-http:http-body-timeout"),httpRetryCount:new gt.ActionContextKey("@comunica/bus-http:http-retry-count"),httpRetryDelay:new gt.ActionContextKey("@comunica/bus-http:http-retry-delay"),httpRetryOnServerError:new gt.ActionContextKey("@comunica/bus-http:http-retry-on-server-error")};$r.KeysHttpWayback={recoverBrokenLinks:new gt.ActionContextKey("@comunica/bus-http:recover-broken-links")};$r.KeysHttpMemento={datetime:new gt.ActionContextKey("@comunica/actor-http-memento:datetime")};$r.KeysHttpProxy={httpProxyHandler:new gt.ActionContextKey("@comunica/actor-http-proxy:httpProxyHandler")};$r.KeysInitQuery={initialBindings:new gt.ActionContextKey("@comunica/actor-init-query:initialBindings"),queryFormat:new gt.ActionContextKey("@comunica/actor-init-query:queryFormat"),graphqlSingularizeVariables:new gt.ActionContextKey("@comunica/actor-init-query:singularizeVariables"),lenient:new gt.ActionContextKey("@comunica/actor-init-query:lenient"),queryString:new gt.ActionContextKey("@comunica/actor-init-query:queryString"),query:new gt.ActionContextKey("@comunica/actor-init-query:query"),baseIRI:new gt.ActionContextKey("@comunica/actor-init-query:baseIRI"),functionArgumentsCache:new gt.ActionContextKey("@comunica/actor-init-query:functionArgumentsCache"),queryTimestamp:new gt.ActionContextKey("@comunica/actor-init-query:queryTimestamp"),extensionFunctionCreator:new gt.ActionContextKey("@comunica/actor-init-query:extensionFunctionCreator"),extensionFunctions:new gt.ActionContextKey("@comunica/actor-init-query:extensionFunctions"),cliArgsHandlers:new gt.ActionContextKey("@comunica/actor-init-query:cliArgsHandlers"),explain:new gt.ActionContextKey("@comunica/actor-init-query:explain"),physicalQueryPlanLogger:new gt.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanLogger"),physicalQueryPlanNode:new gt.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanNode"),jsonLdContext:new gt.ActionContextKey("@context")};$r.KeysQueryOperation={operation:new gt.ActionContextKey("@comunica/bus-query-operation:operation"),joinLeftMetadata:new gt.ActionContextKey("@comunica/bus-query-operation:joinLeftMetadata"),joinRightMetadatas:new gt.ActionContextKey("@comunica/bus-query-operation:joinRightMetadatas"),joinBindings:new gt.ActionContextKey("@comunica/bus-query-operation:joinBindings"),readOnly:new gt.ActionContextKey("@comunica/bus-query-operation:readOnly"),isPathArbitraryLengthDistinctKey:new gt.ActionContextKey("@comunica/bus-query-operation:isPathArbitraryLengthDistinct"),limitIndicator:new gt.ActionContextKey("@comunica/bus-query-operation:limitIndicator"),unionDefaultGraph:new gt.ActionContextKey("@comunica/bus-query-operation:unionDefaultGraph")};$r.KeysRdfParseJsonLd={documentLoader:new gt.ActionContextKey("@comunica/actor-rdf-parse-jsonld:documentLoader"),strictValues:new gt.ActionContextKey("@comunica/actor-rdf-parse-jsonld:strictValues"),parserOptions:new gt.ActionContextKey("@comunica/actor-rdf-parse-jsonld:parserOptions")};$r.KeysRdfParseHtmlScript={processingHtmlScript:new gt.ActionContextKey("@comunica/actor-rdf-parse-html-script:processingHtmlScript"),extractAllScripts:new gt.ActionContextKey("extractAllScripts")};$r.KeysRdfResolveQuadPattern={sources:new gt.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:sources"),source:new gt.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:source"),sourceIds:new gt.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:sourceIds"),hypermediaSourcesAggregatedStores:new gt.ActionContextKey("@comunica/bus-rdf-resolve-quad-pattern:hypermediaSourcesAggregatedStores")};$r.KeysRdfUpdateQuads={destination:new gt.ActionContextKey("@comunica/bus-rdf-update-quads:destination")};(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($r,t)})(Ht);var qm={},Vm={};Object.defineProperty(Vm,"__esModule",{value:!0});Vm.BlankNodeScoped=void 0;class ZH{constructor(e,r){this.termType="BlankNode",this.value=e,this.skolemized=r}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}}Vm.BlankNodeScoped=ZH;var Hm={};Object.defineProperty(Hm,"__esModule",{value:!0});Hm.BlankNodeBindingsScoped=void 0;class ek{constructor(e){this.termType="BlankNode",this.singleBindingsScope=!0,this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}}Hm.BlankNodeBindingsScoped=ek;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Vm,t),r(Hm,t)})(qm);var cl={},Hn={},p0={},y0={},sr={},Zn={},yt={},b0={};Object.defineProperty(b0,"__esModule",{value:!0});b0.BlankNode=void 0;let tk=class{constructor(e){this.termType="BlankNode",this.value=e}equals(e){return!!e&&e.termType==="BlankNode"&&e.value===this.value}};b0.BlankNode=tk;var km={},m0={};Object.defineProperty(m0,"__esModule",{value:!0});m0.DefaultGraph=void 0;let BE=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(e){return!!e&&e.termType==="DefaultGraph"}};m0.DefaultGraph=BE;BE.INSTANCE=new BE;var g0={},xf={};Object.defineProperty(xf,"__esModule",{value:!0});xf.NamedNode=void 0;let rk=class{constructor(e){this.termType="NamedNode",this.value=e}equals(e){return!!e&&e.termType==="NamedNode"&&e.value===this.value}};xf.NamedNode=rk;Object.defineProperty(g0,"__esModule",{value:!0});g0.Literal=void 0;const jj=xf;let UA=class $E{constructor(e,r){this.termType="Literal",this.value=e,typeof r=="string"?(this.language=r,this.datatype=$E.RDF_LANGUAGE_STRING):r?(this.language="",this.datatype=r):(this.language="",this.datatype=$E.XSD_STRING)}equals(e){return!!e&&e.termType==="Literal"&&e.value===this.value&&e.language===this.language&&this.datatype.equals(e.datatype)}};g0.Literal=UA;UA.RDF_LANGUAGE_STRING=new jj.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString");UA.XSD_STRING=new jj.NamedNode("http://www.w3.org/2001/XMLSchema#string");var _0={};Object.defineProperty(_0,"__esModule",{value:!0});_0.Quad=void 0;let nk=class{constructor(e,r,n,a){this.termType="Quad",this.value="",this.subject=e,this.predicate=r,this.object=n,this.graph=a}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&this.subject.equals(e.subject)&&this.predicate.equals(e.predicate)&&this.object.equals(e.object)&&this.graph.equals(e.graph)}};_0.Quad=nk;var v0={};Object.defineProperty(v0,"__esModule",{value:!0});v0.Variable=void 0;let ik=class{constructor(e){this.termType="Variable",this.value=e}equals(e){return!!e&&e.termType==="Variable"&&e.value===this.value}};v0.Variable=ik;Object.defineProperty(km,"__esModule",{value:!0});km.DataFactory=void 0;const ak=b0,sk=m0,cP=g0,ok=xf,uk=_0,ck=v0;let lk=0,dk=class{constructor(e){this.blankNodeCounter=0,e=e||{},this.blankNodePrefix=e.blankNodePrefix||`df_${lk++}_`}namedNode(e){return new ok.NamedNode(e)}blankNode(e){return new ak.BlankNode(e||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(e,r){return new cP.Literal(e,r)}variable(e){return new ck.Variable(e)}defaultGraph(){return sk.DefaultGraph.INSTANCE}quad(e,r,n,a){return new uk.Quad(e,r,n,a||this.defaultGraph())}fromTerm(e){switch(e.termType){case"NamedNode":return this.namedNode(e.value);case"BlankNode":return this.blankNode(e.value);case"Literal":return e.language?this.literal(e.value,e.language):e.datatype.equals(cP.Literal.XSD_STRING)?this.literal(e.value):this.literal(e.value,this.fromTerm(e.datatype));case"Variable":return this.variable(e.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(e.subject),this.fromTerm(e.predicate),this.fromTerm(e.object),this.fromTerm(e.graph))}}fromQuad(e){return this.fromTerm(e)}resetBlankNodeCounter(){this.blankNodeCounter=0}};km.DataFactory=dk;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(b0,t),r(km,t),r(m0,t),r(g0,t),r(xf,t),r(_0,t),r(v0,t)})(yt);Object.defineProperty(Zn,"__esModule",{value:!0});Zn.stringQuadToQuad=Zn.quadToStringQuad=Zn.stringToTerm=Zn.getLiteralLanguage=Zn.getLiteralType=Zn.getLiteralValue=Zn.termToString=void 0;const fk=yt,Cj=new fk.DataFactory;function Bo(t){if(t)switch(t.termType){case"NamedNode":return t.value;case"BlankNode":return"_:"+t.value;case"Literal":const e=t;return'"'+e.value+'"'+(e.datatype&&e.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&e.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?"^^"+e.datatype.value:"")+(e.language?"@"+e.language:"");case"Quad":return`<<${Bo(t.subject)} ${Bo(t.predicate)} ${Bo(t.object)}${t.graph.termType==="DefaultGraph"?"":" "+Bo(t.graph)}>>`;case"Variable":return"?"+t.value;case"DefaultGraph":return t.value}}Zn.termToString=Bo;function Fj(t){const e=/^"([^]*)"/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]}Zn.getLiteralValue=Fj;function Mj(t){const 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")}Zn.getLiteralType=Mj;function Lj(t){const e=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(t);if(!e)throw new Error(t+" is not a literal");return e[1]?e[1].toLowerCase():""}Zn.getLiteralLanguage=Lj;function $o(t,e){if(e=e||Cj,!t||!t.length)return e.defaultGraph();switch(t[0]){case"_":return e.blankNode(t.substr(2));case"?":if(!e.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return e.variable(t.substr(1));case'"':const r=Lj(t),n=e.namedNode(Mj(t));return e.literal(Fj(t),r||n);case"<":default:if(t[0]==="<"&&t.length>4&&t[1]==="<"&&t[t.length-1]===">"&&t[t.length-2]===">"){const a=t.slice(2,-2).trim();let s=[],o=0,u=0,c=!1;for(let l=0;l"){if(o===0)throw new Error("Found closing tag without opening tag in "+t);o--}if(d==='"'){let h=!1,f=l;for(;f-- >0&&a[f]==="\\";)h=!h;h||(c=!c)}if(d===" "&&!c&&o===0){for(s.push(a.slice(u,l));a[l+1]===" ";)l+=1;u=l+1}}if(o!==0)throw new Error("Found opening tag without closing tag in "+t);if(s.push(a.slice(u,a.length)),s.length!==3&&s.length!==4)throw new Error("Nested quad syntax error "+t);return s=s.map(l=>l.startsWith("<")&&!l.includes(" ")?l.slice(1,-1):l),e.quad($o(s[0]),$o(s[1]),$o(s[2]),s[3]?$o(s[3]):void 0)}return e.namedNode(t)}}Zn.stringToTerm=$o;function hk(t){return{subject:Bo(t.subject),predicate:Bo(t.predicate),object:Bo(t.object),graph:Bo(t.graph)}}Zn.quadToStringQuad=hk;function pk(t,e){return e=e||Cj,e.quad($o(t.subject,e),$o(t.predicate,e),$o(t.object,e),$o(t.graph,e))}Zn.stringQuadToQuad=pk;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=Zn;Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})})(sr);Object.defineProperty(y0,"__esModule",{value:!0});y0.bindingsToString=void 0;const yk=sr;function bk(t){const e={};for(const r of t.keys())e[r.value]=(0,yk.termToString)(t.get(r));return JSON.stringify(e,null," ")}y0.bindingsToString=bk;Object.defineProperty(p0,"__esModule",{value:!0});p0.Bindings=void 0;const Wy=$A,mk=y0;class Ru{constructor(e,r){this.type="bindings",this.dataFactory=e,this.entries=r}has(e){return this.entries.has(typeof e=="string"?e:e.value)}get(e){return this.entries.get(typeof e=="string"?e:e.value)}set(e,r){return new Ru(this.dataFactory,this.entries.set(typeof e=="string"?e:e.value,r))}delete(e){return new Ru(this.dataFactory,this.entries.delete(typeof e=="string"?e:e.value))}keys(){return this.mapIterable(this.iteratorToIterable(this.entries.keys()),e=>this.dataFactory.variable(e))}values(){return this.iteratorToIterable(this.entries.values())}forEach(e){this.entries.forEach((r,n)=>e(r,this.dataFactory.variable(n)))}get size(){return this.entries.size}[Symbol.iterator](){return this.mapIterable(this.iteratorToIterable(this.entries.entries()),([e,r])=>[this.dataFactory.variable(e),r])[Symbol.iterator]()}equals(e){var r;if(!e)return!1;if(this===e)return!0;if(this.size!==e.size)return!1;for(const n of this.keys())if(!((r=this.get(n))!=null&&r.equals(e.get(n))))return!1;return!0}filter(e){return new Ru(this.dataFactory,(0,Wy.Map)(this.entries.filter((r,n)=>e(r,this.dataFactory.variable(n)))))}map(e){return new Ru(this.dataFactory,(0,Wy.Map)(this.entries.map((r,n)=>e(r,this.dataFactory.variable(n)))))}merge(e){const r=new Set([...this.iteratorToIterable(this.entries.keys()),...[...e.keys()].map(a=>a.value)]),n=[];for(const a of r){const s=this.entries.get(a),o=e.get(this.dataFactory.variable(a));if(s&&o&&!s.equals(o))return;const u=s||o;n.push([a,u])}return new Ru(this.dataFactory,(0,Wy.Map)(n))}mergeWith(e,r){const n=new Set([...this.iteratorToIterable(this.entries.keys()),...[...r.keys()].map(s=>s.value)]),a=[];for(const s of n){const o=this.dataFactory.variable(s),u=this.entries.get(s),c=r.get(o);let l;u&&c&&!u.equals(c)?l=e(u,c,o):l=u||c,a.push([s,l])}return new Ru(this.dataFactory,(0,Wy.Map)(a))}toString(){return(0,mk.bindingsToString)(this)}*mapIterable(e,r){for(const n of e)yield r(n)}iteratorToIterable(e){return{[Symbol.iterator]:()=>e}}}p0.Bindings=Ru;var Qm={};Object.defineProperty(Qm,"__esModule",{value:!0});Qm.BindingsFactory=void 0;const gk=$A,_k=yt,vk=p0;class wk{constructor(e=new _k.DataFactory){this.dataFactory=e}bindings(e=[]){return new vk.Bindings(this.dataFactory,(0,gk.Map)(e.map(([r,n])=>[r.value,n])))}fromBindings(e){return this.bindings([...e])}fromRecord(e){return this.bindings(Object.entries(e).map(([r,n])=>[this.dataFactory.variable(r),n]))}}Qm.BindingsFactory=wk;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(p0,t),r(Qm,t),r(y0,t)})(Hn);var hn={},ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.matchPatternMappings=ut.matchPatternComplete=ut.matchPattern=ut.matchTerm=ut.getValueNestedPath=ut.someTermsNested=ut.someTerms=ut.everyTermsNested=ut.everyTerms=ut.reduceTermsNested=ut.reduceTerms=ut.mapTermsNested=ut.mapTerms=ut.filterQuadTermNamesNested=ut.filterQuadTermNames=ut.filterTermsNested=ut.filterTerms=ut.forEachTermsNested=ut.forEachTerms=ut.collectNamedTerms=ut.getNamedTerms=ut.getTermsNested=ut.getTerms=ut.TRIPLE_TERM_NAMES=ut.QUAD_TERM_NAMES=void 0;const Sk=yt,qA=new Sk.DataFactory;ut.QUAD_TERM_NAMES=["subject","predicate","object","graph"];ut.TRIPLE_TERM_NAMES=["subject","predicate","object"];function Bj(t,e){return e&&t.graph.termType==="DefaultGraph"?[t.subject,t.predicate,t.object]:[t.subject,t.predicate,t.object,t.graph]}ut.getTerms=Bj;function $j(t,e){const r=[];for(const n of Bj(t,e))n.termType==="Quad"?$j(n,e).forEach(a=>r.push(a)):r.push(n);return r}ut.getTermsNested=$j;function Tk(t){return[{key:"subject",value:t.subject},{key:"predicate",value:t.predicate},{key:"object",value:t.object},{key:"graph",value:t.graph}]}ut.getNamedTerms=Tk;function Ek(t,e,r){const n={};return t.forEach(a=>n[a.key]=a.value),e&&(n.subject=n.subject||e("subject"),n.predicate=n.predicate||e("predicate"),n.object=n.object||e("object"),n.graph=n.graph||e("graph")),(r||qA).quad(n.subject,n.predicate,n.object,n.graph)}ut.collectNamedTerms=Ek;function Ok(t,e){e(t.subject,"subject"),e(t.predicate,"predicate"),e(t.object,"object"),e(t.graph,"graph")}ut.forEachTerms=Ok;function Vh(t,e,r=[]){t.subject.termType==="Quad"?Vh(t.subject,e,[...r,"subject"]):e(t.subject,[...r,"subject"]),t.predicate.termType==="Quad"?Vh(t.predicate,e,[...r,"predicate"]):e(t.predicate,[...r,"predicate"]),t.object.termType==="Quad"?Vh(t.object,e,[...r,"object"]):e(t.object,[...r,"object"]),t.graph.termType==="Quad"?Vh(t.graph,e,[...r,"graph"]):e(t.graph,[...r,"graph"])}ut.forEachTermsNested=Vh;function Ak(t,e){const r=[];return e(t.subject,"subject")&&r.push(t.subject),e(t.predicate,"predicate")&&r.push(t.predicate),e(t.object,"object")&&r.push(t.object),e(t.graph,"graph")&&r.push(t.graph),r}ut.filterTerms=Ak;function Hh(t,e,r=[]){let n=[];return t.subject.termType==="Quad"?n=[...n,...Hh(t.subject,e,[...r,"subject"])]:e(t.subject,[...r,"subject"])&&n.push(t.subject),t.predicate.termType==="Quad"?n=[...n,...Hh(t.predicate,e,[...r,"predicate"])]:e(t.predicate,[...r,"predicate"])&&n.push(t.predicate),t.object.termType==="Quad"?n=[...n,...Hh(t.object,e,[...r,"object"])]:e(t.object,[...r,"object"])&&n.push(t.object),t.graph.termType==="Quad"?n=[...n,...Hh(t.graph,e,[...r,"graph"])]:e(t.graph,[...r,"graph"])&&n.push(t.graph),n}ut.filterTermsNested=Hh;function xk(t,e){const r=[];return e(t.subject,"subject")&&r.push("subject"),e(t.predicate,"predicate")&&r.push("predicate"),e(t.object,"object")&&r.push("object"),e(t.graph,"graph")&&r.push("graph"),r}ut.filterQuadTermNames=xk;function kh(t,e,r=[]){let n=[];const a=[...r,"subject"];t.subject.termType==="Quad"?n=[...n,...kh(t.subject,e,a)]:e(t.subject,a)&&n.push(a);const s=[...r,"predicate"];t.predicate.termType==="Quad"?n=[...n,...kh(t.predicate,e,s)]:e(t.predicate,s)&&n.push(s);const o=[...r,"object"];t.object.termType==="Quad"?n=[...n,...kh(t.object,e,o)]:e(t.object,o)&&n.push(o);const u=[...r,"graph"];return t.graph.termType==="Quad"?n=[...n,...kh(t.graph,e,u)]:e(t.graph,u)&&n.push(u),n}ut.filterQuadTermNamesNested=kh;function Rk(t,e,r){return(r||qA).quad(e(t.subject,"subject"),e(t.predicate,"predicate"),e(t.object,"object"),e(t.graph,"graph"))}ut.mapTerms=Rk;function Qh(t,e,r,n=[]){return(r||qA).quad(t.subject.termType==="Quad"?Qh(t.subject,e,r,[...n,"subject"]):e(t.subject,[...n,"subject"]),t.predicate.termType==="Quad"?Qh(t.predicate,e,r,[...n,"predicate"]):e(t.predicate,[...n,"predicate"]),t.object.termType==="Quad"?Qh(t.object,e,r,[...n,"object"]):e(t.object,[...n,"object"]),t.graph.termType==="Quad"?Qh(t.graph,e,r,[...n,"graph"]):e(t.graph,[...n,"graph"]))}ut.mapTermsNested=Qh;function Ik(t,e,r){let n=r;return n=e(n,t.subject,"subject"),n=e(n,t.predicate,"predicate"),n=e(n,t.object,"object"),e(n,t.graph,"graph")}ut.reduceTerms=Ik;function Gh(t,e,r,n=[]){let a=r;return t.subject.termType==="Quad"?a=Gh(t.subject,e,a,[...n,"subject"]):a=e(a,t.subject,[...n,"subject"]),t.predicate.termType==="Quad"?a=Gh(t.predicate,e,a,[...n,"predicate"]):a=e(a,t.predicate,[...n,"predicate"]),t.object.termType==="Quad"?a=Gh(t.object,e,a,[...n,"object"]):a=e(a,t.object,[...n,"object"]),t.graph.termType==="Quad"?a=Gh(t.graph,e,a,[...n,"graph"]):a=e(a,t.graph,[...n,"graph"]),a}ut.reduceTermsNested=Gh;function Uj(t,e){return e(t.subject,"subject")&&e(t.predicate,"predicate")&&e(t.object,"object")&&e(t.graph,"graph")}ut.everyTerms=Uj;function zh(t,e,r=[]){return(t.subject.termType==="Quad"?zh(t.subject,e,[...r,"subject"]):e(t.subject,[...r,"subject"]))&&(t.predicate.termType==="Quad"?zh(t.predicate,e,[...r,"predicate"]):e(t.predicate,[...r,"predicate"]))&&(t.object.termType==="Quad"?zh(t.object,e,[...r,"object"]):e(t.object,[...r,"object"]))&&(t.graph.termType==="Quad"?zh(t.graph,e,[...r,"graph"]):e(t.graph,[...r,"graph"]))}ut.everyTermsNested=zh;function Pk(t,e){return e(t.subject,"subject")||e(t.predicate,"predicate")||e(t.object,"object")||e(t.graph,"graph")}ut.someTerms=Pk;function Wh(t,e,r=[]){return(t.subject.termType==="Quad"?Wh(t.subject,e,[...r,"subject"]):e(t.subject,[...r,"subject"]))||(t.predicate.termType==="Quad"?Wh(t.predicate,e,[...r,"predicate"]):e(t.predicate,[...r,"predicate"]))||(t.object.termType==="Quad"?Wh(t.object,e,[...r,"object"]):e(t.object,[...r,"object"]))||(t.graph.termType==="Quad"?Wh(t.graph,e,[...r,"graph"]):e(t.graph,[...r,"graph"]))}ut.someTermsNested=Wh;function qj(t,e){if(e.length===0)return t;if(t.termType==="Quad")return qj(t[e[0]],e.slice(1));throw new Error(`Tried to get ${e[0]} from term of type ${t.termType}`)}ut.getValueNestedPath=qj;function Xh(t,e){return!e||e.termType==="Variable"||e.termType==="Quad"&&t.termType==="Quad"&&Hj(t,e)||e.equals(t)}ut.matchTerm=Xh;function Vj(t,e,r,n,a){return Xh(t.subject,e)&&Xh(t.predicate,r)&&Xh(t.object,n)&&Xh(t.graph,a)}ut.matchPattern=Vj;function Hj(t,e){return Vj(t,e.subject,e.predicate,e.object,e.graph)}ut.matchPatternComplete=Hj;function Dk(t,e,r={}){const n={};function a(s,o){return Uj(s,(u,c)=>{var l,d;const h=o[c];switch(u.termType){case"Variable":return r.skipVarMapping&&h.termType==="Variable"||((d=(l=n[u.value])===null||l===void 0?void 0:l.equals(h))!==null&&d!==void 0?d:(n[u.value]=h,!0));case"Quad":return h.termType==="Quad"&&a(u,h);default:return u.equals(h)}})}return a(e,t)&&(r.returnMappings?n:!0)}ut.matchPatternMappings=Dk;var un={};Object.defineProperty(un,"__esModule",{value:!0});un.getQuads=un.getDefaultGraphs=un.getVariables=un.getLiterals=un.getBlankNodes=un.getNamedNodes=un.getTermsOfType=un.uniqTerms=un.TERM_TYPES=void 0;const Nk=sr;un.TERM_TYPES=["NamedNode","BlankNode","Literal","Variable","DefaultGraph","Quad"];function jk(t){const e={};return t.filter(r=>{const n=(0,Nk.termToString)(r);return!(n in e)&&(e[n]=!0)})}un.uniqTerms=jk;function vl(t,e){return t.filter(r=>r.termType===e)}un.getTermsOfType=vl;function Ck(t){return vl(t,"NamedNode")}un.getNamedNodes=Ck;function Fk(t){return vl(t,"BlankNode")}un.getBlankNodes=Fk;function Mk(t){return vl(t,"Literal")}un.getLiterals=Mk;function Lk(t){return vl(t,"Variable")}un.getVariables=Lk;function Bk(t){return vl(t,"DefaultGraph")}un.getDefaultGraphs=Bk;function $k(t){return vl(t,"Quad")}un.getQuads=$k;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ut,t),r(un,t)})(hn);var Tt={},VA={},Uk=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,a,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!t(e[a],r[a]))return!1;return!0}if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;for(a of e.entries())if(!t(a[1],r.get(a[0])))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(a of e.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(a=n;a--!==0;)if(e[a]!==r[a])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=n;a--!==0;){var o=s[a];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r},Rf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.expressionTypes=t.types=void 0,function(e){e.ALT="alt",e.ASK="ask",e.BGP="bgp",e.CONSTRUCT="construct",e.DESCRIBE="describe",e.DISTINCT="distinct",e.EXPRESSION="expression",e.EXTEND="extend",e.FILTER="filter",e.FROM="from",e.GRAPH="graph",e.GROUP="group",e.INV="inv",e.JOIN="join",e.LEFT_JOIN="leftjoin",e.LINK="link",e.MINUS="minus",e.NOP="nop",e.NPS="nps",e.ONE_OR_MORE_PATH="OneOrMorePath",e.ORDER_BY="orderby",e.PATH="path",e.PATTERN="pattern",e.PROJECT="project",e.REDUCED="reduced",e.SEQ="seq",e.SERVICE="service",e.SLICE="slice",e.UNION="union",e.VALUES="values",e.ZERO_OR_MORE_PATH="ZeroOrMorePath",e.ZERO_OR_ONE_PATH="ZeroOrOnePath",e.COMPOSITE_UPDATE="compositeupdate",e.DELETE_INSERT="deleteinsert",e.LOAD="load",e.CLEAR="clear",e.CREATE="create",e.DROP="drop",e.ADD="add",e.MOVE="move",e.COPY="copy"}(t.types||(t.types={})),function(e){e.AGGREGATE="aggregate",e.EXISTENCE="existence",e.NAMED="named",e.OPERATOR="operator",e.TERM="term",e.WILDCARD="wildcard"}(t.expressionTypes||(t.expressionTypes={}))})(Rf);var If={},HA={};let Gm=class{constructor(){return qk||this}equals(e){return e&&this.termType===e.termType}};Object.defineProperty(Gm.prototype,"value",{enumerable:!0,value:"*"});Object.defineProperty(Gm.prototype,"termType",{enumerable:!0,value:"Wildcard"});var qk=new Gm;HA.Wildcard=Gm;var Vk=function(){var t=function(Re,Oe,Ne,Ue){for(Ne=Ne||{},Ue=Re.length;Ue--;Ne[Re[Ue]]=Oe);return Ne},e=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],r=[2,247],n=[100,110,113,115,116,123,126,131,329,330,331,332,333],a=[2,409],s=[1,18],o=[1,27],u=[13,16,45,197,224,229,308],c=[28,29,53],l=[28,53],d=[1,42],h=[1,45],f=[1,41],p=[1,44],b=[123,126],y=[1,67],S=[39,45,87],w=[13,16,45,197,224,308],I=[1,87],O=[2,281],T=[1,86],x=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],P=[6,28,29,53,63,70,73,81,83,85],B=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],Q=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],N=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],D=[13,16,308],F=[112,132,327,334],W=[13,16,112,132,308],z=[1,111],M=[1,117],C=[112,132,327,328,334],V=[13,16,112,132,308,328],ie=[28,29,45,53,87],ne=[1,138],fe=[1,151],_e=[1,128],we=[1,127],Ce=[1,129],oe=[1,140],ae=[1,141],Ae=[1,142],Ie=[1,143],he=[1,144],ve=[1,145],me=[1,147],L=[1,148],H=[2,457],A=[1,158],m=[1,159],v=[1,160],j=[1,152],q=[1,153],$=[1,156],G=[1,171],Y=[1,172],J=[1,173],re=[1,174],de=[1,175],be=[1,176],Ee=[1,167],xe=[1,168],Pe=[1,169],U=[1,170],E=[1,157],R=[1,166],K=[1,161],ce=[1,162],ye=[1,163],ge=[1,164],$e=[1,165],ke=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],Xe=[1,195],Ke=[6,31,73,81,83,85],ht=[2,285],rn=[1,199],Vr=[1,201],nn=[6,31,70,73,81,83,85],br=[2,283],Pn=[1,207],vr=[1,218],wr=[1,223],an=[1,219],te=[1,225],_=[1,226],k=[1,224],le=[6,63,70,73,81,83,85],Te=[1,236],Se=[2,334],He=[1,243],je=[1,241],Fe=[6,193],Je=[2,349],It=[2,339],it=[28,128],qe=[47,48,193,272],Li=[47,48,193,242,272],Qe=[47,48,193,242,246,272],Gr=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],Jt=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],kt=[1,271],Fr=[1,270],At=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],wa=[1,281],Ji=[1,280],lr=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],ho=[45,89],uu=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],Jr=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Bi=[31,89],pn=[48,87],Yi=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],yn=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],Ma=[1,313],sn=[6,85],Ss=[6,31,81,83,85],La=[2,361],hi=[2,353],Qn=[1,343],cu=[31,112,335],Ba=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],Ll=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],ee=[6,109,193],se=[31,112],pe=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Ve=[1,390],ze=[1,391],Ye=[13,16,87,197,308,314],Et=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],qt=[1,417],or=[1,418],Mr=[13,16,48,197,229,308],rr=[6,31,85],Er=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],pi=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],Gn=[29,31,85,112,159,160,161,163,164],Dn=[1,443],yi=[1,444],$a=[1,449],wn=[31,112,193,232,318,335],po=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],pc=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],yc=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],Yt=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Sn=[31,45],yo=[1,507],lu=[1,508],Ey=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],Oy=[29,31,85,112,159,160,161,163,164,335],bc=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],UR=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],qR=[2,352],tS=[13,16,197,308,314],VR=[1,565],Bl=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],HR=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],bo=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],kR=[13,16,87,308],mo=[2,364],$l=[29,31,85,112,159,160,161,163,164,193,232,318,335],Ay=[31,112,193,232,272,318,335],go=[2,359],QR=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],xy=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],GR=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],zR=[2,347],rS={trace:function(){},yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:function(Oe,Ne,Ue,ot,ct,X,Zi){var Z=X.length-1;switch(ct){case 1:if(X[Z-1]=X[Z-1]||{},Nt.base&&(X[Z-1].base=Nt.base),Nt.base="",X[Z-1].prefixes=Nt.prefixes,Nt.prefixes=null,Nt.pathOnly){if(X[Z-1].type==="path"||"termType"in X[Z-1])return X[Z-1];throw new Error("Received full SPARQL query in path only mode")}else if(X[Z-1].type==="path"||"termType"in X[Z-1])throw new Error("Received only path in full SPARQL mode");if(X[Z-1].type==="update"){const Pt={};for(const nr of X[Z-1].updates)if(nr.updateType==="insert"){const Ot={};for(const jn of nr.insert)if(jn.type==="bgp"||jn.type==="graph")for(const Cn of jn.triples)Cn.subject.termType==="BlankNode"&&(Ot[Cn.subject.value]=!0),Cn.predicate.termType==="BlankNode"&&(Ot[Cn.predicate.value]=!0),Cn.object.termType==="BlankNode"&&(Ot[Cn.object.value]=!0);for(const jn of Object.keys(Ot)){if(Pt[jn])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Pt[jn]=!0}}}return X[Z-1];case 2:this.$={...X[Z-1],...X[Z],type:"query"};break;case 4:Nt.base=Xf(X[Z]);break;case 5:Nt.prefixes||(Nt.prefixes={}),X[Z-1]=X[Z-1].substr(0,X[Z-1].length-1),X[Z]=Xf(X[Z]),Nt.prefixes[X[Z-1]]=X[Z];break;case 6:this.$={...X[Z-3],..._c(X[Z-2]),...X[Z-1],...X[Z]};break;case 7:if(!Nt.skipValidation&&(lS(X[Z-3].variables.map(nr=>cS(nr.expression))).some(nr=>nr.aggregation==="count"&&!(nr.expression instanceof Ry))||X[Z].group)){for(const nr of X[Z-3].variables)if(nr.termType==="Variable"){if(!X[Z].group||!X[Z].group.map(Ot=>kl(Ot)).includes(kl(nr)))throw Error("Projection of ungrouped variable (?"+kl(nr)+")")}else if(cS(nr.expression).length===0){const Ot=A$(nr.expression);for(const jn of Ot)if(!X[Z].group||!X[Z].group.map||!X[Z].group.map(Cn=>kl(Cn)).includes(kl(jn)))throw Error("Use of ungrouped variable in projection of operation (?"+kl(jn)+")")}}const Ql=X[Z-1].where.filter(Pt=>Pt.type==="query");if(Ql.length>0){const Pt=X[Z-3].variables.filter(Ot=>Ot.variable&&Ot.variable.value).map(Ot=>Ot.variable.value),nr=lS(Ql.map(Ot=>Ot.variables)).map(Ot=>Ot.value||Ot.variable.value);for(const Ot of Pt)if(nr.indexOf(Ot)>=0)throw Error("Target id of 'AS' (?"+Ot+") already used in subquery")}this.$=Yr(X[Z-3],_c(X[Z-2]),X[Z-1],X[Z]);break;case 8:this.$=Yr({queryType:"CONSTRUCT",template:X[Z-3]},_c(X[Z-2]),X[Z-1],X[Z]);break;case 9:this.$=Yr({queryType:"CONSTRUCT",template:X[Z-2]=X[Z-2]?X[Z-2].triples:[]},_c(X[Z-5]),{where:[{type:"bgp",triples:Ul([],X[Z-2])}]},X[Z]);break;case 10:this.$=Yr({queryType:"DESCRIBE",variables:X[Z-3]==="*"?[new Ry]:X[Z-3]},_c(X[Z-2]),X[Z-1],X[Z]);break;case 11:this.$=Yr({queryType:"ASK"},_c(X[Z-2]),X[Z-1],X[Z]);break;case 12:this.$=Yr(X[Z-1],{variables:[new Ry]});break;case 13:const pS=X[Z].map(Pt=>Pt.value||Pt.variable.value),Cy=x$(pS);if(Cy.length>0)throw Error("Two or more of the resulting columns have the same name (?"+Cy[0]+")");this.$=Yr(X[Z-1],{variables:X[Z]});break;case 14:this.$=Yr({queryType:"SELECT"},X[Z]&&(X[Z-1]=bi(X[Z]),X[Z]={},X[Z][X[Z-1]]=!0,X[Z]));break;case 16:case 27:this.$=ql(X[Z-3],{variable:X[Z-1]});break;case 17:case 18:this.$=Yr(X[Z-3],X[Z-2],X[Z-1],X[Z],{type:"query"});break;case 19:case 58:this.$={iri:X[Z],named:!!X[Z-1]};break;case 20:this.$={where:X[Z].patterns};break;case 21:this.$=Yr(X[Z-1],X[Z]);break;case 22:this.$=Yr(X[Z-2],X[Z-1],X[Z]);break;case 23:this.$={group:X[Z]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=ql(X[Z]);break;case 26:this.$=ql(X[Z-1]);break;case 29:this.$={having:X[Z]};break;case 30:this.$={order:X[Z]};break;case 32:this.$=ql(X[Z],{descending:!0});break;case 35:this.$={limit:Hl(X[Z])};break;case 36:this.$={offset:Hl(X[Z])};break;case 37:this.$={limit:Hl(X[Z-2]),offset:Hl(X[Z])};break;case 38:this.$={limit:Hl(X[Z]),offset:Hl(X[Z-2])};break;case 39:case 43:this.$={type:"values",values:X[Z]};break;case 40:case 84:this.$=X[Z-1].map(Pt=>({[X[Z-3]]:Pt}));break;case 41:case 85:this.$=X[Z-1].map(()=>({}));break;case 42:case 86:var du=X[Z-4].length;X[Z-4]=X[Z-4].map(nS),this.$=X[Z-1].map(function(Pt){if(Pt.length!==du)throw Error("Inconsistent VALUES length");for(var nr={},Ot=0;Otnr.type==="bind")){const nr=X[Z-1].indexOf(Pt),Ot=new Set;for(const jn of X[Z-1].slice(0,nr))(jn.type==="group"||jn.type==="bgp")&&rI(jn).forEach(Cn=>Ot.add(Cn));if(Ot.has(Pt.variable.value))throw Error("Variable used to bind is already bound (?"+Pt.variable.value+")")}this.$={type:"group",patterns:X[Z-1]};break;case 71:this.$=X[Z-1]?Ts([X[Z-1]],X[Z]):Ts(X[Z]);break;case 72:this.$=X[Z]?[X[Z-2],X[Z]]:X[Z-2];break;case 75:this.$=Yr(X[Z],{type:"optional"});break;case 76:this.$=Yr(X[Z],{type:"minus"});break;case 77:this.$=Yr(X[Z],{type:"graph",name:X[Z-1]});break;case 78:this.$=Yr(X[Z],{type:"service",name:X[Z-1],silent:!!X[Z-2]});break;case 79:this.$={type:"filter",expression:X[Z]};break;case 80:this.$={type:"bind",variable:X[Z-1],expression:X[Z-3]};break;case 89:this.$=Jf(X[Z]);break;case 90:this.$=void 0;break;case 91:this.$=X[Z-1].length?{type:"union",patterns:Ts(X[Z-1].map(aS),[aS(X[Z])])}:X[Z];break;case 95:this.$={...X[Z],function:X[Z-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:gc(X[Z-2],X[Z-1]),distinct:!!X[Z-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=gc(X[Z-2],X[Z-1]);break;case 101:this.$=Ts(X[Z-2],[X[Z-1]]);break;case 102:case 112:this.$=fS(X[Z].map(Pt=>Yr(_o(X[Z-1]),Pt)));break;case 103:this.$=fS(Ul(X[Z].map(Pt=>Yr(_o(X[Z-1].entity),Pt)),X[Z-1].triples));break;case 105:this.$=Ts([X[Z-1]],X[Z]);break;case 106:this.$=Ts(X[Z]);break;case 107:this.$=uS(X[Z-1],X[Z]);break;case 109:case 237:this.$=Nt.factory.namedNode(b$);break;case 110:case 118:this.$=gc(X[Z-1],X[Z]);break;case 111:this.$=X[Z]?{annotation:X[Z],object:X[Z-1]}:X[Z-1];break;case 113:this.$=X[Z]?fS(Ul(X[Z].map(Pt=>Yr(_o(X[Z-1].entity),Pt)),X[Z-1].triples)):X[Z-1].triples;break;case 114:this.$=uS(...X[Z-1],X[Z]);break;case 116:this.$=uS(...X[Z]);break;case 117:case 159:case 163:this.$=[X[Z-1],X[Z]];break;case 119:this.$=X[Z]?{object:X[Z-1],annotation:X[Z]}:X[Z-1];break;case 120:this.$=X[Z-1].length?Vl("|",gc(X[Z-1],X[Z])):X[Z];break;case 121:this.$=X[Z-1].length?Vl("/",gc(X[Z-1],X[Z])):X[Z];break;case 122:this.$=X[Z]?Vl(X[Z],[X[Z-1]]):X[Z-1];break;case 123:this.$=X[Z-1]?Vl(X[Z-1],[X[Z]]):X[Z];break;case 125:case 131:this.$=Vl(X[Z-1],[X[Z]]);break;case 129:this.$=Vl("|",gc(X[Z-2],X[Z-1]));break;case 132:case 134:this.$=E$(X[Z-1]);break;case 133:case 135:this.$=O$(X[Z-1]);break;case 140:this.$={entity:X[Z],triples:[]};break;case 145:this.$=nS(X[Z]);break;case 149:this.$=Nt.factory.namedNode(WR);break;case 151:case 153:case 158:case 162:this.$=iS(X[Z-1],X[Z]);break;case 152:this.$=["||",X[Z]];break;case 154:this.$=["&&",X[Z]];break;case 156:this.$=Nn(X[Z-1],[X[Z-2],X[Z]]);break;case 157:this.$=Nn(X[Z-2]?"notin":"in",[X[Z-3],X[Z]]);break;case 160:this.$=["+",iS(X[Z-1],X[Z])];break;case 161:var Ny=Es(X[Z-1].value.replace("-",""),X[Z-1].datatype);this.$=["-",iS(Ny,X[Z])];break;case 164:this.$=Nn("UPLUS",[X[Z]]);break;case 165:this.$=Nn(X[Z-1],[X[Z]]);break;case 166:this.$=Nn("UMINUS",[X[Z]]);break;case 177:this.$=Nn(bi(X[Z-1]));break;case 178:this.$=Nn(bi(X[Z-3]),[X[Z-1]]);break;case 179:this.$=Jf(Nn(bi(X[Z-3]),[X[Z-1]]));break;case 180:this.$=Nn(bi(X[Z-5]),[X[Z-3],X[Z-1]]);break;case 181:this.$=Nn(bi(X[Z-7]),[X[Z-5],X[Z-3],X[Z-1]]);break;case 182:this.$=Jf(Nn(bi(X[Z-7]),[X[Z-5],X[Z-3],X[Z-1]]));break;case 183:this.$=Nn(bi(X[Z-1]),X[Z]);break;case 184:this.$=Nn("bound",[nS(X[Z-1])]);break;case 185:this.$=Nn(X[Z-1],[]);break;case 186:this.$=Nn(X[Z-3],[X[Z-1]]);break;case 187:this.$=Nn(X[Z-2]?"notexists":"exists",[aS(X[Z])]);break;case 188:case 189:this.$=ql(X[Z-1],{type:"aggregate",aggregation:bi(X[Z-4]),distinct:!!X[Z-2]});break;case 190:this.$=ql(X[Z-2],{type:"aggregate",aggregation:bi(X[Z-5]),distinct:!!X[Z-3],separator:typeof X[Z-1]=="string"?X[Z-1]:" "});break;case 192:this.$=Es(X[Z]);break;case 193:this.$=v$(X[Z-1],bi(X[Z].substr(1)));break;case 194:this.$=Es(X[Z-2],X[Z]);break;case 195:case 204:this.$=Es(X[Z],XR);break;case 196:case 205:this.$=Es(X[Z],KR);break;case 197:case 206:this.$=Es(bi(X[Z]),JR);break;case 200:this.$=Es(X[Z].toLowerCase(),_$);break;case 201:this.$=Es(X[Z].substr(1),XR);break;case 202:this.$=Es(X[Z].substr(1),KR);break;case 203:this.$=Es(X[Z].substr(1).toLowerCase(),JR);break;case 207:case 208:this.$=tI(X[Z],1);break;case 209:case 210:this.$=tI(X[Z],3);break;case 211:this.$=Nt.factory.namedNode(Xf(X[Z]));break;case 213:var jy=X[Z].indexOf(":"),Zr=X[Z].substr(0,jy),Os=Nt.prefixes[Zr];if(!Os)throw new Error("Unknown prefix: "+Zr);var vc=Xf(Os+X[Z].substr(jy+1));this.$=Nt.factory.namedNode(vc);break;case 214:if(X[Z]=X[Z].substr(0,X[Z].length-1),!(X[Z]in Nt.prefixes))throw new Error("Unknown prefix: "+X[Z]);var vc=Xf(Nt.prefixes[X[Z]]);this.$=Nt.factory.namedNode(vc);break;case 215:this.$=Kf(X[Z].replace(/^(_:)/,""));break;case 216:this.$=Kf();break;case 217:case 218:case 232:this.$=Jf(sS(X[Z-3],X[Z-2],X[Z-1]));break;case 230:case 231:this.$=Jf(X[Z-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:X[Z-1].push(X[Z]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[X[Z]];break;case 308:X[Z-3].push(X[Z-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:X[Z-2].push(X[Z-1]);break}},table:[t(e,r,{3:1,4:2,10:3}),{1:[3]},t(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:a,16:a,45:a,197:a,224:a,229:a,308:a,24:[1,13],32:[1,14],36:[1,15],41:s}),t([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:o},{6:[2,239]},t(u,[2,411],{216:28,217:29}),t(c,[2,249],{18:30}),t(c,[2,251],{22:31}),t(l,[2,255],{25:32,27:33,29:[1,34]}),{13:d,16:h,33:35,39:[1,37],44:39,55:40,87:f,139:38,307:43,308:p,323:36},t(c,[2,267],{37:46}),t(b,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:y,87:f},t(S,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),t(e,[2,248]),t(e,[2,245]),t(e,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},t([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),t(w,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:I,29:O,52:84,53:T,56:85},{19:88,28:I,29:O,52:89,53:T,56:85},t(c,[2,253],{26:90}),{28:[1,91],52:92,53:T},t(x,[2,385],{181:93,182:94,183:95,31:[2,383]}),t(P,[2,263],{34:96}),t(P,[2,261],{44:39,55:40,307:43,139:97,13:d,16:h,87:f,308:p}),t(P,[2,262]),t(B,[2,259]),t(Q,[2,143]),t(Q,[2,144]),t([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),t(N,[2,211]),t(N,[2,212]),t(N,[2,213]),t(N,[2,214]),{19:98,28:I,29:O,52:99,53:T,56:85},{6:[2,309],99:100,193:[1,101]},t(D,[2,311],{101:102,328:[1,103]}),t(F,[2,317],{104:104,328:[1,105]}),t(W,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:z,114:110},{29:z,114:112},{29:z,114:113},{118:114,123:[1,115],125:116,126:M},t(C,[2,315]),t(C,[2,316]),t(V,[2,319]),t(V,[2,320]),t(V,[2,321]),t(b,[2,327]),{13:d,16:h,55:118,307:43,308:p},t(c,[2,12]),t(c,[2,13],{44:66,43:119,45:y,87:f}),t(ie,[2,269]),t(ie,[2,15]),{13:d,16:h,44:136,45:ne,46:120,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(S,[2,14]),t(S,[2,274]),t(S,[2,271]),t(S,[2,272]),t(e,[2,4]),{13:[1,177]},t(ke,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},t(u,[2,410]),t([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:d,16:h,45:[1,193],55:194,197:Xe,219:189,220:190,223:191,224:[1,192],307:43,308:p},t(w,[2,419]),t(Ke,ht,{20:196,59:197,69:198,70:rn}),t(c,[2,250]),{29:Vr,57:200},t(D,[2,279],{54:202,327:[1,203]}),{29:[2,282]},t(nn,br,{23:204,58:205,62:206,63:Pn}),t(c,[2,252]),{19:208,28:I,29:O,52:209,53:T,56:85},{29:[1,210]},t(l,[2,256]),{31:[1,211]},{31:[2,384]},{13:d,16:h,44:215,45:vr,55:220,82:fe,87:f,89:wr,145:212,172:221,185:213,187:214,231:an,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(le,[2,265],{56:85,35:227,52:228,19:229,28:I,29:O,53:T}),t(B,[2,260]),t(nn,br,{58:205,62:206,23:230,63:Pn}),t(c,[2,268]),{6:[2,45]},t(e,r,{10:3,4:231}),{13:d,16:h,55:232,307:43,308:p},t(D,[2,312]),{105:233,112:Te,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},t(F,[2,318]),t(D,Se,{108:240,133:242,112:He,132:je}),t(W,[2,323]),{112:[1,244]},{112:[2,325]},t(Fe,[2,50]),t(x,Je,{135:245,136:246,143:247,144:248,31:It,112:It}),t(Fe,[2,51]),t(Fe,[2,52]),t(it,[2,328],{119:249}),{29:z,114:250},t(it,[2,56]),{29:z,114:251},t(b,[2,59]),t(ie,[2,270]),{47:[1,252]},t(qe,[2,150]),t(Li,[2,428],{240:253}),t(Qe,[2,430],{244:254}),t(Qe,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),t(Gr,[2,440],{252:264}),t(Jt,[2,448],{260:265}),{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,255:154,257:155,264:266,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,255:154,257:155,264:267,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,255:154,257:155,264:268,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(Jt,[2,167]),t(Jt,[2,168]),t(Jt,[2,169]),t(Jt,[2,170],{176:269,45:kt,89:Fr}),t(Jt,[2,171]),t(Jt,[2,172]),t(Jt,[2,173]),t(Jt,[2,174]),{13:d,16:h,44:136,45:ne,46:272,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(At,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:wa,89:Ji,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},t(lr,[2,192],{292:[1,286],293:[1,287]}),t(lr,[2,195]),t(lr,[2,196]),t(lr,[2,197]),t(lr,[2,198]),t(lr,[2,199]),t(lr,[2,200]),{13:d,16:h,44:39,55:40,82:fe,87:f,139:289,172:291,255:154,257:155,266:290,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},t(ho,[2,452]),t(ho,[2,453]),t(ho,[2,454]),t(ho,[2,455]),t(ho,[2,456]),{279:[2,458]},t(uu,[2,207]),t(uu,[2,208]),t(uu,[2,209]),t(uu,[2,210]),t(lr,[2,201]),t(lr,[2,202]),t(lr,[2,203]),t(lr,[2,204]),t(lr,[2,205]),t(lr,[2,206]),t(e,[2,5]),t(Jr,[2,297],{88:295}),t(Bi,[2,299],{90:296}),{48:[1,297],87:[1,298]},t(pn,[2,301]),t(ke,[2,43]),t(ke,[2,82]),t(ke,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},t(u,[2,412]),t(Yi,[2,123]),t(Yi,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),t(yn,[2,124]),{13:d,16:h,45:[1,311],55:194,89:[1,310],197:Xe,223:312,225:308,226:309,229:Ma,307:43,308:p},t(u,a,{215:10,214:314}),t(yn,[2,236]),t(yn,[2,237]),t(sn,[2,6]),t(Ss,[2,287],{60:315,72:316,73:[1,317]}),t(Ke,[2,286]),{13:d,16:h,45:ne,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,307:43,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t([6,31,63,70,73,81,83,85],[2,20]),t(x,La,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:hi,31:hi,85:hi,112:hi,159:hi,160:hi,161:hi,163:hi,164:hi,41:s}),{13:d,16:h,55:331,307:43,308:p},t(D,[2,280]),t(sn,[2,7]),t(Ke,ht,{59:197,69:198,20:332,70:rn}),t(nn,[2,284]),{64:[1,333]},t(nn,br,{58:205,62:206,23:334,63:Pn}),t(c,[2,254]),t(x,Je,{144:248,30:335,143:336,31:[2,257]}),t(c,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:d,16:h,44:39,55:40,87:f,139:342,186:339,190:340,195:341,197:Qn,307:43,308:p},t(cu,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:d,16:h,87:f,197:Qn,308:p}),t(Ba,[2,227]),t(Ba,[2,228]),t(Ba,[2,229]),{13:d,16:h,44:215,45:vr,55:220,82:fe,87:f,89:wr,172:221,185:351,187:350,200:348,230:347,231:an,234:349,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},{13:d,16:h,44:39,55:40,87:f,139:342,186:352,190:340,195:341,197:Qn,307:43,308:p},t(Ba,[2,146]),t(Ba,[2,147]),t(Ba,[2,148]),t(Ba,[2,149]),{13:d,16:h,44:354,55:355,82:fe,87:f,172:357,237:356,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:358,312:k,313:353},t(Ll,[2,215]),t(Ll,[2,216]),t(nn,br,{58:205,62:206,23:359,63:Pn}),t(P,[2,264]),t(le,[2,266]),t(sn,[2,11]),t(n,[2,308],{6:[2,310]}),t(Fe,[2,313],{102:360,120:361,121:[1,362]}),t(Fe,[2,47]),t(Fe,[2,63]),t(Fe,[2,64]),{13:d,16:h,55:363,307:43,308:p},t(Fe,[2,336]),t(Fe,[2,337]),t(Fe,[2,338]),{109:[1,364]},t(ee,[2,60]),{13:d,16:h,55:365,307:43,308:p},t(D,[2,335]),{13:d,16:h,55:366,307:43,308:p},{31:[1,367]},t(se,[2,341],{137:368}),t(se,[2,340]),{13:d,16:h,44:215,45:vr,55:220,82:fe,87:f,89:wr,145:369,172:221,185:213,187:214,231:an,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},{28:[1,370],127:371,128:[1,372]},t(it,[2,330],{124:373,125:374,126:M}),t(it,[2,57]),{44:375,87:f},t(qe,[2,151],{241:376,242:[1,377]}),t(Li,[2,153],{245:378,246:[1,379]}),{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,247:380,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{250:[1,381]},t(pe,[2,432]),t(pe,[2,433]),t(pe,[2,434]),t(pe,[2,435]),t(pe,[2,436]),t(pe,[2,437]),{250:[2,439]},t([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:G,298:Y,299:J,300:re,301:de,302:be}),t(Gr,[2,162],{261:388,262:389,39:Ve,338:ze}),t(Jt,[2,164]),t(Jt,[2,165]),t(Jt,[2,166]),t(At,[2,95]),t(At,[2,96]),t(pe,[2,377],{177:392,325:[1,393]}),{48:[1,394]},t(At,[2,177]),{13:d,16:h,44:136,45:ne,46:395,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:396,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:397,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:398,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:399,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(At,[2,183]),t(At,[2,98]),t(pe,[2,381],{180:400}),{87:[1,401]},t(At,[2,185]),{13:d,16:h,44:136,45:ne,46:402,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{29:Vr,57:403},t(lr,[2,193]),{13:d,16:h,55:404,307:43,308:p},{13:d,16:h,44:39,55:40,87:f,139:342,195:405,197:Qn,307:43,308:p},t(Ye,[2,233]),t(Ye,[2,234]),t(Ye,[2,235]),t(Et,[2,459],{281:406,325:[1,407]}),t(pe,[2,463],{284:408,325:[1,409]}),t(pe,[2,465],{286:410,325:[1,411]}),{13:d,16:h,31:[1,412],55:414,82:fe,171:413,172:415,173:416,174:qt,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:or},{31:[1,419],89:[1,420]},{29:[1,421]},t(pn,[2,302]),t(Jr,[2,367],{167:422}),t(Bi,[2,369],{168:423}),{48:[1,424],87:[1,425]},t(pn,[2,371]),t(Yi,[2,122]),t(Yi,[2,417]),t(Yi,[2,413]),t(Yi,[2,414]),t(Yi,[2,415]),t(yn,[2,125]),t(yn,[2,127]),t(yn,[2,128]),t(Mr,[2,420],{227:426}),t(yn,[2,130]),{13:d,16:h,55:194,197:Xe,223:427,307:43,308:p},{48:[1,428]},t(rr,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),t(Ss,[2,288]),{64:[1,433]},t(Ke,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:d,16:h,45:ne,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,276:me,277:L,279:H,280:A,283:m,285:v,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e}),t(Er,[2,293]),t(pi,[2,92]),t(pi,[2,93]),t(pi,[2,94]),{45:kt,89:Fr,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:I,29:O,56:85},{19:438,28:I,29:O,56:85},t(Gn,[2,355],{149:439}),t(Gn,[2,354]),{13:d,16:h,44:215,45:Dn,55:220,82:fe,87:f,89:wr,156:440,172:221,185:441,203:442,231:yi,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(P,[2,19]),t(rr,[2,21]),{13:d,16:h,44:450,45:$a,55:323,65:445,66:446,67:447,68:448,87:f,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,307:43,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(sn,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},t(x,[2,386],{31:[2,388]}),t(cu,[2,102]),t(wn,[2,391],{191:452}),t(x,[2,395],{196:453,198:454}),t(x,[2,108]),t(x,[2,109]),t(cu,[2,103]),t(cu,[2,104]),t(cu,[2,390]),{13:d,16:h,44:215,45:vr,48:[1,455],55:220,82:fe,87:f,89:wr,172:221,185:351,187:350,200:456,231:an,234:349,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(po,[2,424]),t(pc,[2,136]),t(pc,[2,137]),t(yc,[2,140]),{232:[1,457]},{13:d,16:h,44:39,55:40,87:f,139:342,195:458,197:Qn,307:43,308:p},t(Ye,[2,219]),t(Ye,[2,220]),t(Ye,[2,221]),t(Ye,[2,222]),t(Ye,[2,223]),t(sn,[2,10]),t(Fe,[2,46]),t(Fe,[2,314]),{112:Te,122:459},t(Fe,[2,62]),t(D,Se,{133:242,108:460,112:He,132:je}),t(ee,[2,61]),t(Fe,[2,49]),t([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},t(se,[2,351],{146:463,335:[1,464]}),{29:Vr,57:465},t(it,[2,329]),t(D,[2,332],{129:466,327:[1,467]}),t(it,[2,55]),t(it,[2,331]),{48:[1,468]},t(Li,[2,429]),{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(Qe,[2,431]),{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,243:470,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(Qe,[2,156]),{45:wa,89:Ji,179:471},t(Gr,[2,441]),{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,251:472,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(Jt,[2,444],{256:473}),t(Jt,[2,446],{258:474}),t(pe,[2,442]),t(pe,[2,443]),t(Jt,[2,449]),{13:d,16:h,44:136,45:ne,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,255:154,257:155,259:475,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(pe,[2,450]),t(pe,[2,451]),t(pe,[2,379],{178:476}),t(pe,[2,378]),t([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:d,16:h,44:136,45:ne,46:482,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{48:[1,483]},{48:[1,484]},t(At,[2,187]),t(lr,[2,194]),{13:d,16:h,44:39,55:40,82:fe,87:f,139:289,172:291,255:154,257:155,266:290,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,320:485},{13:d,16:h,39:[1,487],44:136,45:ne,46:488,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,282:486,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(Et,[2,460]),{13:d,16:h,44:136,45:ne,46:489,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(pe,[2,464]),{13:d,16:h,44:136,45:ne,46:490,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(pe,[2,466]),t(ke,[2,40]),t(Jr,[2,298]),t(Yt,[2,87]),t(Yt,[2,88]),t(Yt,[2,89]),t(Yt,[2,90]),{13:d,16:h,55:492,82:fe,172:493,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,311:494,312:k,315:491},t(ke,[2,41]),t(Bi,[2,300]),t(Sn,[2,303],{92:495}),{13:d,16:h,31:[1,496],55:414,82:fe,171:497,172:415,173:416,174:qt,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:or},{31:[1,498],89:[1,499]},{29:[1,500]},t(pn,[2,372]),{13:d,16:h,48:[2,422],55:194,197:Xe,223:312,226:502,228:501,229:Ma,307:43,308:p},t(yn,[2,131]),t(yn,[2,126]),t(rr,[2,22]),t(rr,[2,290]),{82:[1,503]},{82:[1,504]},{13:d,16:h,44:510,45:ne,55:323,67:321,68:322,74:505,75:506,76:yo,77:320,78:lu,79:509,87:f,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,307:43,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(Er,[2,294]),t(Ey,[2,69]),t(Ey,[2,70]),t(Ke,ht,{59:197,69:198,20:511,70:rn}),t(nn,br,{58:205,62:206,23:512,63:Pn}),{29:[2,375],31:[2,71],84:522,85:o,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},t(Gn,[2,363],{157:524,335:[1,525]}),t(u,a,{215:10,202:526,205:527,208:528,214:529,44:530,87:f}),t(Oy,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:a,16:a,45:a,197:a,224:a,229:a,308:a,87:f}),{13:d,16:h,44:215,45:Dn,55:220,82:fe,87:f,89:wr,172:221,185:351,203:536,212:534,231:yi,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(u,a,{215:10,205:527,208:528,214:529,44:530,202:537,87:f}),t(nn,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:d,16:h,45:$a,87:f,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,276:me,277:L,279:H,280:A,283:m,285:v,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e}),t(bc,[2,291]),t(bc,[2,24]),t(bc,[2,25]),{13:d,16:h,44:136,45:ne,46:539,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(bc,[2,28]),t(nn,br,{58:205,62:206,23:540,63:Pn}),t([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),t(wn,[2,107]),{13:d,16:h,44:215,45:vr,55:220,82:fe,87:f,89:wr,172:221,185:351,187:350,199:543,200:544,231:an,234:349,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(UR,[2,132]),t(po,[2,425]),t(UR,[2,133]),{13:d,16:h,44:354,55:355,82:fe,87:f,172:357,237:356,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:358,312:k,313:545},t(Fe,[2,54]),t(Fe,[2,48]),t(se,[2,342]),{13:d,16:h,44:39,55:40,87:f,139:546,307:43,308:p},t(se,[2,68]),t(x,[2,350],{31:qR,112:qR}),t(Fe,[2,53]),{13:d,16:h,55:547,307:43,308:p},t(D,[2,333]),t(ie,[2,16]),t(Li,[2,152]),t(Qe,[2,154]),t(Qe,[2,157]),t(Gr,[2,159]),t(Gr,[2,160],{262:389,261:548,39:Ve,338:ze}),t(Gr,[2,161],{262:389,261:549,39:Ve,338:ze}),t(Jt,[2,163]),{13:d,16:h,44:136,45:ne,46:550,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(At,[2,178]),t(At,[2,179]),{13:d,16:h,44:136,45:ne,46:551,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:552,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:553,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{48:[1,554],272:[1,555]},t(At,[2,184]),t(At,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:d,16:h,55:194,197:Xe,223:562,307:43,308:p},t(tS,[2,224]),t(tS,[2,225]),t(tS,[2,226]),{31:[1,563],45:VR,94:564},t(ke,[2,84]),t(Jr,[2,368]),t(ke,[2,85]),t(Bi,[2,370]),t(Sn,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},t(rr,[2,35],{83:[1,569]}),t(rr,[2,36],{81:[1,570]}),t(Ss,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:d,16:h,45:ne,76:yo,78:lu,87:f,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,276:me,277:L,279:H,280:A,283:m,285:v,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e}),t(Bl,[2,295]),{45:ne,77:572},{45:ne,77:573},t(Bl,[2,33]),t(Bl,[2,34]),{31:[2,275],50:574,84:575,85:o},{31:[2,277],51:576,84:577,85:o},t(Gn,[2,356]),t(HR,[2,357],{152:578,335:[1,579]}),t(bo,[2,74]),{29:Vr,57:580},{29:Vr,57:581},{13:d,16:h,44:39,55:40,87:f,139:582,307:43,308:p},t(kR,[2,365],{162:583,328:[1,584]}),{13:d,16:h,45:ne,55:323,67:321,68:322,77:320,79:585,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,307:43,308:p,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{45:[1,586]},t(bo,[2,81]),{29:Vr,57:587},t(Gn,[2,73]),t(x,[2,362],{29:mo,31:mo,85:mo,112:mo,159:mo,160:mo,161:mo,163:mo,164:mo}),t(Oy,[2,112]),t($l,[2,401],{206:588}),t(x,[2,405],{209:589,210:590}),t(x,[2,403]),t(x,[2,404]),t(Oy,[2,113]),t(Oy,[2,400]),{13:d,16:h,44:215,45:Dn,48:[1,591],55:220,82:fe,87:f,89:wr,172:221,185:351,203:536,212:592,231:yi,234:535,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(po,[2,426]),t(yc,[2,138]),t(yc,[2,139]),{232:[1,593]},t(bc,[2,292]),{47:[1,595],48:[1,594]},t(sn,[2,9]),t(wn,[2,392]),t(wn,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:d,16:h,87:f,197:Qn,308:p}),t(wn,[2,110],{272:[1,598]}),t(Ay,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},t(it,[2,58]),t(Jt,[2,445]),t(Jt,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},t(At,[2,99]),t(pe,[2,382]),t([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),t(At,[2,188]),t(At,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:d,16:h,55:492,82:fe,172:493,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,311:494,312:k,315:611},t(ke,[2,42]),t(Sn,[2,304]),{13:d,16:h,55:414,82:fe,95:612,171:613,172:415,173:416,174:qt,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:or},{31:[1,614],45:VR,94:615},t(yn,[2,129]),t(Mr,[2,421]),{82:[1,616]},{82:[1,617]},t(Bl,[2,296]),t(Bl,[2,31]),t(Bl,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},t(x,La,{155:330,153:618,154:619,29:go,31:go,85:go,112:go,159:go,160:go,161:go,163:go,164:go}),t(HR,[2,358]),t(bo,[2,75]),t(bo,[2,76]),{29:Vr,57:620},{13:d,16:h,44:39,55:40,87:f,139:621,307:43,308:p},t(kR,[2,366]),t(bo,[2,79]),{13:d,16:h,44:136,45:ne,46:622,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(bo,[2,91],{336:[1,623]}),t([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),t($l,[2,117]),{13:d,16:h,44:215,45:Dn,55:220,82:fe,87:f,89:wr,172:221,185:351,203:536,211:626,212:627,231:yi,234:535,236:216,237:222,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,309:te,310:_,311:217,312:k},t(Ba,[2,134]),t(po,[2,427]),t(Ba,[2,135]),t(bc,[2,26]),{44:628,87:f},t(wn,[2,106]),t(wn,[2,394]),t(x,[2,396]),t(Ay,[2,111]),t(Ay,[2,398]),{13:d,16:h,44:39,55:40,87:f,139:342,186:629,190:340,195:341,197:Qn,307:43,308:p},t(Ll,[2,217]),t(x,Je,{144:248,140:630,143:631,31:[2,343]}),t(At,[2,97]),t(pe,[2,380]),t(At,[2,180]),{13:d,16:h,44:136,45:ne,46:632,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},{13:d,16:h,44:136,45:ne,46:633,55:133,67:132,68:134,77:131,82:fe,87:f,172:135,224:_e,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:we,264:130,265:Ce,266:137,267:139,268:oe,269:ae,270:Ae,271:Ie,273:he,274:ve,275:146,276:me,277:L,278:149,279:H,280:A,283:m,285:v,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:E,346:R,347:K,348:ce,349:ye,350:ge,351:$e},t(At,[2,190]),{290:[1,634]},{314:[1,635]},{13:d,16:h,48:[1,636],55:414,82:fe,171:637,172:415,173:416,174:qt,255:154,257:155,291:150,294:j,295:q,296:$,297:G,298:Y,299:J,300:re,301:de,302:be,303:Ee,304:xe,305:Pe,306:U,307:43,308:p,312:or},t(QR,[2,305]),t(ke,[2,86]),t(Sn,[2,374]),t(rr,[2,37]),t(rr,[2,38]),t(Gn,[2,72]),t(Gn,[2,360]),t(bo,[2,77]),{29:Vr,57:638},{47:[1,639]},{29:[2,376]},t($l,[2,402]),t($l,[2,115],{215:10,208:528,214:529,44:530,205:640,13:a,16:a,45:a,197:a,224:a,229:a,308:a,87:f}),t($l,[2,118],{272:[1,641]}),t(xy,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:Ee,304:xe,305:Pe,306:U},t(Yt,[2,218]),t(Sn,[2,44]),t(QR,[2,306]),t(bo,[2,78]),{44:651,87:f},t($l,[2,116]),t(x,[2,406]),t(xy,[2,119]),t(xy,[2,408]),t(u,a,{215:10,205:527,208:528,214:529,44:530,202:652,87:f}),t(bc,[2,27]),t(Ay,[2,230]),t(GR,[2,345],{141:653,335:[1,654]}),t(At,[2,181]),t(At,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},t(x,Je,{144:248,142:657,143:658,31:zR,112:zR}),t(GR,[2,346]),t(bo,[2,80]),t(xy,[2,231]),t(se,[2,67]),t(se,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:function(Oe,Ne){if(Ne.recoverable)this.trace(Oe);else{var Ue=new Error(Oe);throw Ue.hash=Ne,Ue}},parse:function(Oe){var Ne=this,Ue=[0],ot=[null],ct=[],X=this.table,Zi="",Z=0,du=0,Dy=2,Ny=1,jy=ct.slice.call(arguments,1),Zr=Object.create(this.lexer),Os={yy:{}};for(var vc in this.yy)Object.prototype.hasOwnProperty.call(this.yy,vc)&&(Os.yy[vc]=this.yy[vc]);Zr.setInput(Oe,Os.yy),Os.yy.lexer=Zr,Os.yy.parser=this,typeof Zr.yylloc>"u"&&(Zr.yylloc={});var Ql=Zr.yylloc;ct.push(Ql);var pS=Zr.options&&Zr.options.ranges;typeof Os.yy.parseError=="function"?this.parseError=Os.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var Cy=function(){var Gl;return Gl=Zr.lex()||Ny,typeof Gl!="number"&&(Gl=Ne.symbols_[Gl]||Gl),Gl},Pt,nr,Ot,jn,Cn={},Fy,vo,aI,My;;){if(nr=Ue[Ue.length-1],this.defaultActions[nr]?Ot=this.defaultActions[nr]:((Pt===null||typeof Pt>"u")&&(Pt=Cy()),Ot=X[nr]&&X[nr][Pt]),typeof Ot>"u"||!Ot.length||!Ot[0]){var yS="";My=[];for(Fy in X[nr])this.terminals_[Fy]&&Fy>Dy&&My.push("'"+this.terminals_[Fy]+"'");Zr.showPosition?yS="Parse error on line "+(Z+1)+`: -`+Zr.showPosition()+` -Expecting `+My.join(", ")+", got '"+(this.terminals_[Pt]||Pt)+"'":yS="Parse error on line "+(Z+1)+": Unexpected "+(Pt==Ny?"end of input":"'"+(this.terminals_[Pt]||Pt)+"'"),this.parseError(yS,{text:Zr.match,token:this.terminals_[Pt]||Pt,line:Zr.yylineno,loc:Ql,expected:My})}if(Ot[0]instanceof Array&&Ot.length>1)throw new Error("Parse Error: multiple actions possible at state: "+nr+", token: "+Pt);switch(Ot[0]){case 1:Ue.push(Pt),ot.push(Zr.yytext),ct.push(Zr.yylloc),Ue.push(Ot[1]),Pt=null,du=Zr.yyleng,Zi=Zr.yytext,Z=Zr.yylineno,Ql=Zr.yylloc;break;case 2:if(vo=this.productions_[Ot[1]][1],Cn.$=ot[ot.length-vo],Cn._$={first_line:ct[ct.length-(vo||1)].first_line,last_line:ct[ct.length-1].last_line,first_column:ct[ct.length-(vo||1)].first_column,last_column:ct[ct.length-1].last_column},pS&&(Cn._$.range=[ct[ct.length-(vo||1)].range[0],ct[ct.length-1].range[1]]),jn=this.performAction.apply(Cn,[Zi,du,Z,Os.yy,Ot[1],ot,ct].concat(jy)),typeof jn<"u")return jn;vo&&(Ue=Ue.slice(0,-1*vo*2),ot=ot.slice(0,-1*vo),ct=ct.slice(0,-1*vo)),Ue.push(this.productions_[Ot[1]][0]),ot.push(Cn.$),ct.push(Cn._$),aI=X[Ue[Ue.length-2]][Ue[Ue.length-1]],Ue.push(aI);break;case 3:return!0}}return!0}},Ry=HA.Wildcard,Iy="http://www.w3.org/1999/02/22-rdf-syntax-ns#",b$=Iy+"type",m$=Iy+"first",g$=Iy+"rest",WR=Iy+"nil",Py="http://www.w3.org/2001/XMLSchema#",XR=Py+"integer",KR=Py+"decimal",JR=Py+"double",_$=Py+"boolean",mc="",YR="",ZR="";function bi(Re){return Re.toLowerCase()}function gc(Re,Oe){return Re.push(Oe),Re}function Ul(Re,Oe){return Re.push.apply(Re,Oe),Re}function Yr(Re){Re||(Re={});for(var Oe=1,Ne=arguments.length,Ue;Oe>10),56320+(X&1023))}else{var Zi=S$[ct];if(!Zi)throw new Error;return Zi}})}catch{return""}if(T$.exec(Re))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+Re);return Re}function E$(Re){var Oe=Kf(),Ne=Oe,Ue=[],ot,ct=[];Re.forEach(function(du){Ue.push(du.entity),Ul(ct,du.triples)});for(var X=0,Zi=0,Z=Ue.length,ot=Array(Z*2);X0&&Ue instanceof Array?lS(Ue,Oe-1,Ne):Ne.push(Ue);return Ne}function dS(Re){return Re.termType==="Variable"}function rI(Re){if(Re.triples){const Oe=[];for(const Ne of Re.triples)dS(Ne.subject)&&Oe.push(Ne.subject.value),dS(Ne.predicate)&&Oe.push(Ne.predicate.value),dS(Ne.object)&&Oe.push(Ne.object.value);return Oe}else if(Re.patterns){const Oe=[];for(const Ne of Re.patterns)Oe.push(...rI(Ne));return Oe}return[]}function x$(Re){const Oe=Re.slice().sort(),Ne=[];for(let Ue=0;Ue{const Ue=_o(Ne.subject,Ne.predicate,Ne.object);Oe.push(Ue),Ne.annotations&&nI(sS(Ne.subject,Ne.predicate,Ne.object),Ne.annotations,Oe)}),Oe}return Re}function iI(Re){for(const Oe of Re){if(Oe.type==="graph"&&Oe.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(Oe.type==="bgp"||Oe.type==="graph"){for(const Ne of Oe.triples)if(Ne.subject.termType==="Variable"||Ne.predicate.termType==="Variable"||Ne.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return Re}function hS(Re){for(const Oe of Re)if(Oe.type==="bgp"){for(const Ne of Oe.triples)if(Ne.subject.termType==="BlankNode"||Ne.predicate.termType==="BlankNode"||Ne.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return Re}var R$=function(){var Re={EOF:1,parseError:function(Ne,Ue){if(this.yy.parser)this.yy.parser.parseError(Ne,Ue);else throw new Error(Ne)},setInput:function(Oe,Ne){return this.yy=Ne||this.yy||{},this._input=Oe,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 Oe=this._input[0];this.yytext+=Oe,this.yyleng++,this.offset++,this.match+=Oe,this.matched+=Oe;var Ne=Oe.match(/(?:\r\n?|\n).*/g);return Ne?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Oe},unput:function(Oe){var Ne=Oe.length,Ue=Oe.split(/(?:\r\n?|\n)/g);this._input=Oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ne),this.offset-=Ne;var ot=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),Ue.length-1&&(this.yylineno-=Ue.length-1);var ct=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:Ue?(Ue.length===ot.length?this.yylloc.first_column:0)+ot[ot.length-Ue.length].length-Ue[0].length:this.yylloc.first_column-Ne},this.options.ranges&&(this.yylloc.range=[ct[0],ct[0]+this.yyleng-Ne]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Oe){this.unput(this.match.slice(Oe))},pastInput:function(){var Oe=this.matched.substr(0,this.matched.length-this.match.length);return(Oe.length>20?"...":"")+Oe.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Oe=this.match;return Oe.length<20&&(Oe+=this._input.substr(0,20-Oe.length)),(Oe.substr(0,20)+(Oe.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Oe=this.pastInput(),Ne=new Array(Oe.length+1).join("-");return Oe+this.upcomingInput()+` -`+Ne+"^"},test_match:function(Oe,Ne){var Ue,ot,ct;if(this.options.backtrack_lexer&&(ct={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&&(ct.yylloc.range=this.yylloc.range.slice(0))),ot=Oe[0].match(/(?:\r\n?|\n).*/g),ot&&(this.yylineno+=ot.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ot?ot[ot.length-1].length-ot[ot.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Oe[0].length},this.yytext+=Oe[0],this.match+=Oe[0],this.matches=Oe,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(Oe[0].length),this.matched+=Oe[0],Ue=this.performAction.call(this,this.yy,this,Ne,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ue)return Ue;if(this._backtrack){for(var X in ct)this[X]=ct[X];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Oe,Ne,Ue,ot;this._more||(this.yytext="",this.match="");for(var ct=this._currentRules(),X=0;XNe[0].length)){if(Ne=Ue,ot=X,this.options.backtrack_lexer){if(Oe=this.test_match(Ue,ct[X]),Oe!==!1)return Oe;if(this._backtrack){Ne=!1;continue}else return!1}else if(!this.options.flex)break}return Ne?(Oe=this.test_match(Ne,ct[ot]),Oe!==!1?Oe:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ne=this.next();return Ne||this.lex()},begin:function(Ne){this.conditionStack.push(Ne)},popState:function(){var Ne=this.conditionStack.length-1;return Ne>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(Ne){return Ne=this.conditionStack.length-1-Math.abs(Ne||0),Ne>=0?this.conditionStack[Ne]:"INITIAL"},pushState:function(Ne){this.begin(Ne)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(Ne,Ue,ot,ct){switch(ot){case 0:break;case 1:return 12;case 2:return 15;case 3:return 41;case 4:return 325;case 5:return 326;case 6:return 45;case 7:return 47;case 8:return 48;case 9:return 39;case 10:return 24;case 11:return 28;case 12:return 29;case 13:return 31;case 14:return 32;case 15:return 36;case 16:return 53;case 17:return 327;case 18:return 63;case 19:return 64;case 20:return 70;case 21:return 73;case 22:return 76;case 23:return 78;case 24:return 81;case 25:return 83;case 26:return 85;case 27:return 193;case 28:return 100;case 29:return 328;case 30:return 121;case 31:return 329;case 32:return 330;case 33:return 110;case 34:return 331;case 35:return 109;case 36:return 332;case 37:return 333;case 38:return 113;case 39:return 115;case 40:return 116;case 41:return 131;case 42:return 123;case 43:return 126;case 44:return 128;case 45:return 132;case 46:return 112;case 47:return 334;case 48:return 335;case 49:return 159;case 50:return 161;case 51:return 164;case 52:return 174;case 53:return 160;case 54:return 336;case 55:return 163;case 56:return 312;case 57:return 314;case 58:return 317;case 59:return 318;case 60:return 272;case 61:return 197;case 62:return 337;case 63:return 338;case 64:return 229;case 65:return 340;case 66:return 263;case 67:return 224;case 68:return 231;case 69:return 232;case 70:return 242;case 71:return 246;case 72:return 290;case 73:return 341;case 74:return 342;case 75:return 343;case 76:return 344;case 77:return 345;case 78:return 250;case 79:return 346;case 80:return 265;case 81:return 276;case 82:return 277;case 83:return 268;case 84:return 269;case 85:return 270;case 86:return 271;case 87:return 347;case 88:return 348;case 89:return 273;case 90:return 274;case 91:return 350;case 92:return 349;case 93:return 351;case 94:return 279;case 95:return 280;case 96:return 283;case 97:return 285;case 98:return 289;case 99:return 293;case 100:return 296;case 101:return 13;case 102:return 16;case 103:return 308;case 104:return 309;case 105:return 87;case 106:return 292;case 107:return 82;case 108:return 294;case 109:return 295;case 110:return 297;case 111:return 298;case 112:return 299;case 113:return 300;case 114:return 301;case 115:return 302;case 116:return"EXPONENT";case 117:return 303;case 118:return 304;case 119:return 305;case 120:return 306;case 121:return 89;case 122:return 310;case 123:return 6;case 124:return"INVALID";case 125:console.log(Ue.yytext);break}},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+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)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,/^(?:>>)/i,/^(?:\{\|)/i,/^(?:\|\})/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,/^(?:(SUBJECT|PREDICATE|OBJECT|isTRIPLE))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:TRIPLE)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true|false)/i,/^(?:(<(?:[^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:)((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?))/i,/^(?:([\?\$]((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\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-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-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,121,122,123,124,125],inclusive:!0}}};return Re}();rS.lexer=R$;function Nt(){this.yy={}}return Nt.prototype=rS,rS.Parser=Nt,new Nt}(),Hk=Vk,kk="http://www.w3.org/2001/XMLSchema#integer",Qk="http://www.w3.org/2001/XMLSchema#string";function Cr(t){this._options=t=t||{};var e=t.prefixes||{};this._prefixByIri={};var r=[];for(var n in e){var a=e[n];up(a)&&(this._prefixByIri[a]=n,r.push(a))}var s=r.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+s+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={},this._sparqlStar=t.sparqlStar,this._indent=up(t.indent)?t.indent:" ",this._newline=up(t.newline)?t.newline:` -`,this._explicitDatatype=!!t.explicitDatatype}Cr.prototype.toQuery=function(t){var e="";return t.queryType&&(e+=t.queryType.toUpperCase()+" "),t.reduced&&(e+="REDUCED "),t.distinct&&(e+="DISTINCT "),t.variables?e+=oa(t.variables,void 0,function(r){return Hu(r)?this.toEntity(r):"("+this.toExpression(r.expression)+" AS "+jb(r.variable)+")"},this)+" ":t.template&&(e+=this.group(t.template,!0)+this._newline),t.from&&(e+=this.graphs("FROM ",t.from.default)+this.graphs("FROM NAMED ",t.from.named)),t.where&&(e+="WHERE "+this.group(t.where,!0)+this._newline),t.updates&&(e+=oa(t.updates,";"+this._newline,this.toUpdate,this)),t.group&&(e+="GROUP BY "+oa(t.group,void 0,function(r){var n=Hu(r.expression)?this.toEntity(r.expression):"("+this.toExpression(r.expression)+")";return r.variable?"("+n+" AS "+jb(r.variable)+")":n},this)+this._newline),t.having&&(e+="HAVING ("+oa(t.having,void 0,this.toExpression,this)+")"+this._newline),t.order&&(e+="ORDER BY "+oa(t.order,void 0,function(r){var n="("+this.toExpression(r.expression)+")";return r.descending?"DESC "+n:n},this)+this._newline),t.offset&&(e+="OFFSET "+t.offset+this._newline),t.limit&&(e+="LIMIT "+t.limit+this._newline),t.values&&(e+=this.values(t)),e=this.baseAndPrefixes(t)+e,e.trim()};Cr.prototype.baseAndPrefixes=function(t){var e=t.base?"BASE <"+t.base+">"+this._newline:"",r="";for(var n in t.prefixes)(this._options.allPrefixes||this._usedPrefixes[n])&&(r+="PREFIX "+n+": <"+t.prefixes[n]+">"+this._newline);return e+r};Cr.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)};Cr.prototype.triple=function(t){return this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+"."};Cr.prototype.array=function(t){return oa(t,this._newline,this.toPattern,this)};Cr.prototype.bgp=function(t){return this.encodeTriples(t.triples)};Cr.prototype.encodeTriples=function(t){if(!t.length)return"";for(var e=[],r=void 0,n=void 0,a=0;a":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(Hu(r[0])?this.toEntity(r[0]):"("+this.toExpression(r[0])+")")+" "+e+" "+(Hu(r[1])?this.toEntity(r[1]):"("+this.toExpression(r[1])+")");case"!":return"!("+this.toExpression(r[0])+")";case"uplus":return"+("+this.toExpression(r[0])+")";case"uminus":return"-("+this.toExpression(r[0])+")";case"notin":e="NOT IN";case"in":return this.toExpression(r[0])+" "+e+"("+(up(r[1])?r[1]:oa(r[1],", ",this.toExpression,this))+")";case"notexists":e="NOT EXISTS";case"exists":return e+" "+this.group(r[0],!0);default:return e+"("+oa(r,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+t.type)}};Cr.prototype.toEntity=function(t){if(Hu(t))switch(t.termType){case"Wildcard":return"*";case"Variable":return jb(t);case"BlankNode":return"_:"+t.value;case"Literal":var e=t.value||"",r=t.language||"",n=t.datatype;if(t='"'+e.replace(kj,Qj)+'"',r)t+="@"+r;else if(n){if(!this._explicitDatatype)switch(n.value){case Qk:return t;case kk:if(/^\d+$/.test(e))return e+" "}t+="^^"+this.encodeIRI(n.value)}return t;case"Quad":if(!this._sparqlStar)throw new Error("SPARQL* support is not enabled");return t.graph&&t.graph.termType!=="DefaultGraph"?"<< GRAPH "+this.toEntity(t.graph)+" { "+this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+" } >>":"<< "+this.toEntity(t.subject)+" "+this.toEntity(t.predicate)+" "+this.toEntity(t.object)+" >>";default:return this.encodeIRI(t.value)}else{var a=t.items.map(this.toEntity,this),s=t.pathType;switch(s){case"^":case"!":return s+a[0];case"*":case"+":case"?":return"("+a[0]+s+")";default:return"("+a.join(s)+")"}}};var kj=/["\\\t\n\r\b\f]/g,Qj=function(t){return Gk[t]},Gk={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};Cr.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+">"};Cr.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)+this._newline:"")+(t.delete.length?"DELETE "+this.group(t.delete,!0)+this._newline:"")+(t.insert.length?"INSERT "+this.group(t.insert,!0)+this._newline:"")+(t.using?this.graphs("USING ",t.using.default):"")+(t.using?this.graphs("USING NAMED ",t.using.named):"")+"WHERE "+this.group(t.where,!0);case"add":case"copy":case"move":return t.type.toUpperCase()+" "+(t.silent?"SILENT ":"")+(t.source.default?"DEFAULT":this.toEntity(t.source.name))+" TO "+this.toEntity(t.destination.name);case"create":case"clear":case"drop":return t.type.toUpperCase()+(t.silent?" SILENT ":" ")+(t.graph.default?"DEFAULT":t.graph.named?"NAMED":t.graph.all?"ALL":"GRAPH "+this.toEntity(t.graph.name));default:throw new Error("Unknown update query type: "+t.type)}};Cr.prototype.indent=function(t){return t.replace(/^/gm,this._indent)};function jb(t){return"?"+t.value}function up(t){return typeof t=="string"}function Hu(t){return typeof t.termType=="string"}function Vc(t,e){if(!t||!Hu(t)||!e||!Hu(e)||t.termType!==e.termType)return!1;switch(t.termType){case"Literal":return t.value===e.value&&t.language===e.language&&Vc(t.datatype,e.datatype);case"Quad":return Vc(t.subject,e.subject)&&Vc(t.predicate,e.predicate)&&Vc(t.object,e.object)&&Vc(t.graph,e.graph);default:return t.value===e.value}}function oa(t,e,r,n){return t.map(r,n).join(up(e)?e:" ")}var zk=function(e={}){return{stringify:function(r){var n=Object.create(e);return n.prefixes=r.prefixes,new Cr(n).toQuery(r)},createGenerator:function(){return new Cr(e)}}},wo=Hk.Parser,Wk=zk,Xk=HA.Wildcard,{DataFactory:Kk}=yt,w0={Parser:function({prefixes:t,baseIRI:e,factory:r,sparqlStar:n,skipValidation:a,skipUngroupedVariableCheck:s,pathOnly:o}={}){var u={};for(var c in t||{})u[c]=t[c];var l=new wo;return l.parse=function(){return wo.base=e||"",wo.prefixes=Object.create(u),wo.factory=r||new Kk,wo.sparqlStar=!!n,wo.pathOnly=!!o,wo.skipValidation=!!a||!!s,wo.prototype.parse.apply(l,arguments)},l._resetBlanks=wo._resetBlanks,l},Generator:Wk,Wildcard:Xk},Jk=g&&g.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Yk=g&&g.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Zk=g&&g.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Jk(e,t,r);return Yk(e,t),e};Object.defineProperty(If,"__esModule",{value:!0});const at=Zk(Rf),eQ=yt,tQ=sr,rQ=w0;class nQ{constructor(e){this.dataFactory=e||new eQ.DataFactory,this.stringType=this.createTerm("http://www.w3.org/2001/XMLSchema#string")}createAlt(e,r=!0){return this.flattenMulti({type:at.types.ALT,input:e},r)}createAsk(e){return{type:at.types.ASK,input:e}}createBoundAggregate(e,r,n,a,s){const o=this.createAggregateExpression(r,n,a,s);return o.variable=e,o}createBgp(e){return{type:at.types.BGP,patterns:e}}createConstruct(e,r){return{type:at.types.CONSTRUCT,input:e,template:r}}createDescribe(e,r){return{type:at.types.DESCRIBE,input:e,terms:r}}createDistinct(e){return{type:at.types.DISTINCT,input:e}}createExtend(e,r,n){return{type:at.types.EXTEND,input:e,variable:r,expression:n}}createFrom(e,r,n){return{type:at.types.FROM,input:e,default:r,named:n}}createFilter(e,r){return{type:at.types.FILTER,input:e,expression:r}}createGraph(e,r){return{type:at.types.GRAPH,input:e,name:r}}createGroup(e,r,n){return{type:at.types.GROUP,input:e,variables:r,aggregates:n}}createInv(e){return{type:at.types.INV,path:e}}createJoin(e,r=!0){return this.flattenMulti({type:at.types.JOIN,input:e},r)}createLeftJoin(e,r,n){return n?{type:at.types.LEFT_JOIN,input:[e,r],expression:n}:{type:at.types.LEFT_JOIN,input:[e,r]}}createLink(e){return{type:at.types.LINK,iri:e}}createMinus(e,r){return{type:at.types.MINUS,input:[e,r]}}createNop(){return{type:at.types.NOP}}createNps(e){return{type:at.types.NPS,iris:e}}createOneOrMorePath(e){return{type:at.types.ONE_OR_MORE_PATH,path:e}}createOrderBy(e,r){return{type:at.types.ORDER_BY,input:e,expressions:r}}createPath(e,r,n,a){return a?{type:at.types.PATH,subject:e,predicate:r,object:n,graph:a}:{type:at.types.PATH,subject:e,predicate:r,object:n,graph:this.dataFactory.defaultGraph()}}createPattern(e,r,n,a){const s=this.dataFactory.quad(e,r,n,a);return s.type=at.types.PATTERN,s}createProject(e,r){return{type:at.types.PROJECT,input:e,variables:r}}createReduced(e){return{type:at.types.REDUCED,input:e}}createSeq(e,r=!0){return this.flattenMulti({type:at.types.SEQ,input:e},r)}createService(e,r,n){return{type:at.types.SERVICE,input:e,name:r,silent:!!n}}createSlice(e,r,n){return r=r||0,n!==void 0?{type:at.types.SLICE,input:e,start:r,length:n}:{type:at.types.SLICE,input:e,start:r}}createUnion(e,r=!0){return this.flattenMulti({type:at.types.UNION,input:e},r)}createValues(e,r){return{type:at.types.VALUES,variables:e,bindings:r}}createZeroOrMorePath(e){return{type:at.types.ZERO_OR_MORE_PATH,path:e}}createZeroOrOnePath(e){return{type:at.types.ZERO_OR_ONE_PATH,path:e}}createAggregateExpression(e,r,n,a){return a?{type:at.types.EXPRESSION,expressionType:at.expressionTypes.AGGREGATE,aggregator:e,expression:r,separator:a,distinct:n}:{type:at.types.EXPRESSION,expressionType:at.expressionTypes.AGGREGATE,aggregator:e,expression:r,distinct:n}}createExistenceExpression(e,r){return{type:at.types.EXPRESSION,expressionType:at.expressionTypes.EXISTENCE,not:e,input:r}}createNamedExpression(e,r){return{type:at.types.EXPRESSION,expressionType:at.expressionTypes.NAMED,name:e,args:r}}createOperatorExpression(e,r){return{type:at.types.EXPRESSION,expressionType:at.expressionTypes.OPERATOR,operator:e,args:r}}createTermExpression(e){return{type:at.types.EXPRESSION,expressionType:at.expressionTypes.TERM,term:e}}createWildcardExpression(){return{type:at.types.EXPRESSION,expressionType:at.expressionTypes.WILDCARD,wildcard:new rQ.Wildcard}}createTerm(e){return(0,tQ.stringToTerm)(e,this.dataFactory)}createCompositeUpdate(e){return{type:at.types.COMPOSITE_UPDATE,updates:e}}createDeleteInsert(e,r,n){const a={type:at.types.DELETE_INSERT};return e&&(a.delete=e),r&&(a.insert=r),n&&(a.where=n),a}createLoad(e,r,n){const a={type:at.types.LOAD,source:e};return r&&(a.destination=r),this.addSilent(a,!!n)}createClear(e,r){return this.addSilent({type:at.types.CLEAR,source:e},!!r)}createCreate(e,r){return this.addSilent({type:at.types.CREATE,source:e},!!r)}createDrop(e,r){return this.addSilent({type:at.types.DROP,source:e},!!r)}createAdd(e,r,n){return this.addSilent({type:at.types.ADD,source:e,destination:r},!!n)}createMove(e,r,n){return this.addSilent({type:at.types.MOVE,source:e,destination:r},!!n)}createCopy(e,r,n){return this.addSilent({type:at.types.COPY,source:e,destination:r},!!n)}addSilent(e,r){return r&&(e.silent=r),e}flattenMulti(e,r){if(!r)return e;const n=e.type,a=e.input;let s=[];for(const o of a)o.type===n?s.push(...o.input):s.push(o);return e.input=s,e}}If.default=nQ;var S0={},iQ=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S0,"__esModule",{value:!0});const Me=Rf,lP=iQ(If),aQ=hn;let sQ=class vi{static flatten(e){return Array.prototype.concat(...e).filter(r=>r)}static objectify(e){if(e.termType){if(e.termType==="Quad")return{type:"pattern",termType:"Quad",subject:vi.objectify(e.subject),predicate:vi.objectify(e.predicate),object:vi.objectify(e.object),graph:vi.objectify(e.graph)};{let r={termType:e.termType,value:e.value};return e.language&&(r.language=e.language),e.datatype&&(r.datatype=vi.objectify(e.datatype)),r}}if(Array.isArray(e))return e.map(r=>vi.objectify(r));if(e===Object(e)){let r={};for(let n of Object.keys(e))r[n]=vi.objectify(e[n]);return r}return e}static inScopeVariables(e){const r=[];function n(s){r.find(o=>s.value===o.value)||r.push(s)}function a(s){s.subject.termType==="Variable"&&n(s.subject),s.predicate.termType==="Variable"&&n(s.predicate),s.object.termType==="Variable"&&n(s.object),s.graph.termType==="Variable"&&n(s.graph),s.subject.termType==="Quad"&&a(s.subject),s.predicate.termType==="Quad"&&a(s.predicate),s.object.termType==="Quad"&&a(s.object),s.graph.termType==="Quad"&&a(s.graph)}return vi.recurseOperation(e,{[Me.types.EXPRESSION]:s=>(s.expressionType===Me.expressionTypes.AGGREGATE&&s.variable&&n(s.variable),!0),[Me.types.EXTEND]:s=>(n(s.variable),!0),[Me.types.GRAPH]:s=>(s.name.termType==="Variable"&&n(s.name),!0),[Me.types.GROUP]:s=>(s.variables.forEach(n),!0),[Me.types.PATH]:s=>(s.subject.termType==="Variable"&&n(s.subject),s.object.termType==="Variable"&&n(s.object),s.graph.termType==="Variable"&&n(s.graph),s.subject.termType==="Quad"&&a(s.subject),s.object.termType==="Quad"&&a(s.object),s.graph.termType==="Quad"&&a(s.graph),!0),[Me.types.PATTERN]:s=>(a(s),!0),[Me.types.PROJECT]:s=>(s.variables.forEach(n),!1),[Me.types.SERVICE]:s=>(s.name.termType==="Variable"&&n(s.name),!0),[Me.types.VALUES]:s=>(s.variables.forEach(n),!0)}),r}static recurseOperation(e,r){let n=e,a=!0;const s=r[e.type];if(s&&(a=s(e)),!a)return;let o=u=>vi.recurseOperation(u,r);switch(n.type){case Me.types.ALT:n.input.map(o);break;case Me.types.ASK:o(n.input);break;case Me.types.BGP:n.patterns.forEach(o);break;case Me.types.CONSTRUCT:o(n.input),n.template.map(o);break;case Me.types.DESCRIBE:o(n.input);break;case Me.types.DISTINCT:o(n.input);break;case Me.types.EXPRESSION:n.expressionType===Me.expressionTypes.EXISTENCE&&o(n.input);break;case Me.types.EXTEND:o(n.input),o(n.expression);break;case Me.types.FILTER:o(n.input),o(n.expression);break;case Me.types.FROM:o(n.input);break;case Me.types.GRAPH:o(n.input);break;case Me.types.GROUP:o(n.input),n.aggregates.forEach(o);break;case Me.types.INV:o(n.path);break;case Me.types.JOIN:n.input.map(o);break;case Me.types.LEFT_JOIN:n.input.map(o),n.expression&&o(n.expression);break;case Me.types.LINK:break;case Me.types.MINUS:n.input.map(o);break;case Me.types.NOP:break;case Me.types.NPS:break;case Me.types.ONE_OR_MORE_PATH:o(n.path);break;case Me.types.ORDER_BY:o(n.input),n.expressions.forEach(o);break;case Me.types.PATH:o(n.predicate);break;case Me.types.PATTERN:break;case Me.types.PROJECT:o(n.input);break;case Me.types.REDUCED:o(n.input);break;case Me.types.SEQ:n.input.map(o);break;case Me.types.SERVICE:o(n.input);break;case Me.types.SLICE:o(n.input);break;case Me.types.UNION:n.input.map(o);break;case Me.types.VALUES:break;case Me.types.ZERO_OR_MORE_PATH:o(n.path);break;case Me.types.ZERO_OR_ONE_PATH:o(n.path);break;case Me.types.COMPOSITE_UPDATE:n.updates.forEach(u=>o(u));break;case Me.types.DELETE_INSERT:n.delete&&n.delete.forEach(u=>o(u)),n.insert&&n.insert.forEach(u=>o(u)),n.where&&o(n.where);break;case Me.types.LOAD:break;case Me.types.CLEAR:break;case Me.types.CREATE:break;case Me.types.DROP:break;case Me.types.ADD:break;case Me.types.MOVE:break;case Me.types.COPY:break;default:throw new Error(`Unknown Operation type ${n.type}`)}}static mapOperation(e,r,n){let a=e,s=!0,o=!0;n=n||new lP.default;const u=r[e.type];if(u){const d=u(e,n);a=d.result,s=d.recurse,o=d.copyMetadata!==!1}let c;if(o&&(a.metadata||e.metadata)&&(c={...a.metadata,...e.metadata}),!s)return c&&(a.metadata=c),a;let l=d=>vi.mapOperation(d,r,n);switch(a.type){case Me.types.ALT:a=n.createAlt(a.input.map(l));break;case Me.types.ASK:a=n.createAsk(l(a.input));break;case Me.types.BGP:a=n.createBgp(a.patterns.map(l));break;case Me.types.CONSTRUCT:a=n.createConstruct(l(a.input),a.template.map(l));break;case Me.types.DESCRIBE:a=n.createDescribe(l(a.input),a.terms);break;case Me.types.DISTINCT:a=n.createDistinct(l(a.input));break;case Me.types.EXPRESSION:a=vi.mapExpression(a,r,n);break;case Me.types.EXTEND:a=n.createExtend(l(a.input),a.variable,l(a.expression));break;case Me.types.FILTER:a=n.createFilter(l(a.input),l(a.expression));break;case Me.types.FROM:a=n.createFrom(l(a.input),[...a.default],[...a.named]);break;case Me.types.GRAPH:a=n.createGraph(l(a.input),a.name);break;case Me.types.GROUP:a=n.createGroup(l(a.input),[].concat(a.variables),a.aggregates.map(l));break;case Me.types.INV:a=n.createInv(l(a.path));break;case Me.types.JOIN:a=n.createJoin(a.input.map(l));break;case Me.types.LEFT_JOIN:a=n.createLeftJoin(l(a.input[0]),l(a.input[1]),a.expression?l(a.expression):void 0);break;case Me.types.LINK:a=n.createLink(a.iri);break;case Me.types.MINUS:a=n.createMinus(l(a.input[0]),l(a.input[1]));break;case Me.types.NOP:a=n.createNop();break;case Me.types.NPS:a=n.createNps([].concat(a.iris));break;case Me.types.ONE_OR_MORE_PATH:a=n.createOneOrMorePath(l(a.path));break;case Me.types.ORDER_BY:a=n.createOrderBy(l(a.input),a.expressions.map(l));break;case Me.types.PATH:a=n.createPath(a.subject,l(a.predicate),a.object,a.graph);break;case Me.types.PATTERN:a=n.createPattern(a.subject,a.predicate,a.object,a.graph);break;case Me.types.PROJECT:a=n.createProject(l(a.input),[...a.variables]);break;case Me.types.REDUCED:a=n.createReduced(l(a.input));break;case Me.types.SEQ:a=n.createSeq(a.input.map(l));break;case Me.types.SERVICE:a=n.createService(l(a.input),a.name,a.silent);break;case Me.types.SLICE:a=n.createSlice(l(a.input),a.start,a.length);break;case Me.types.UNION:a=n.createUnion(a.input.map(l));break;case Me.types.VALUES:a=n.createValues([].concat(a.variables),a.bindings.map(d=>Object.assign({},d)));break;case Me.types.ZERO_OR_MORE_PATH:a=n.createZeroOrMorePath(l(a.path));break;case Me.types.ZERO_OR_ONE_PATH:a=n.createZeroOrOnePath(l(a.path));break;case Me.types.COMPOSITE_UPDATE:a=n.createCompositeUpdate(a.updates.map(l));break;case Me.types.DELETE_INSERT:a=n.createDeleteInsert(a.delete?a.delete.map(l):void 0,a.insert?a.insert.map(l):void 0,a.where?l(a.where):void 0);break;case Me.types.LOAD:a=n.createLoad(a.source,a.destination,a.silent);break;case Me.types.CLEAR:a=n.createClear(a.source,a.silent);break;case Me.types.CREATE:a=n.createCreate(a.source,a.silent);break;case Me.types.DROP:a=n.createDrop(a.source,a.silent);break;case Me.types.ADD:a=n.createAdd(a.source,a.destination);break;case Me.types.MOVE:a=n.createMove(a.source,a.destination);break;case Me.types.COPY:a=n.createCopy(a.source,a.destination);break;default:throw new Error(`Unknown Operation type ${a.type}`)}return c&&(a.metadata=c),a}static mapExpression(e,r,n){let a=e,s=!0;n=n||new lP.default;const o=r[e.expressionType];if(o&&({result:a,recurse:s}=o(e,n)),!s)return a;let u=c=>vi.mapOperation(c,r,n);switch(e.expressionType){case Me.expressionTypes.AGGREGATE:return e.variable?n.createBoundAggregate(e.variable,e.aggregator,u(e.expression),e.distinct,e.separator):n.createAggregateExpression(e.aggregator,u(e.expression),e.distinct,e.separator);case Me.expressionTypes.EXISTENCE:return n.createExistenceExpression(e.not,u(e.input));case Me.expressionTypes.NAMED:return n.createNamedExpression(e.name,e.args.map(u));case Me.expressionTypes.OPERATOR:return n.createOperatorExpression(e.operator,e.args.map(u));case Me.expressionTypes.TERM:return n.createTermExpression(e.term);case Me.expressionTypes.WILDCARD:return n.createWildcardExpression();default:throw new Error(`Unknown Expression type ${e.expressionType}`)}}static cloneOperation(e){return vi.mapOperation(e,{})}static cloneExpression(e){return vi.mapExpression(e,{})}static createUniqueVariable(e,r,n){let a=0,s=e;for(;r[s];)s=`${e}${a++}`;return n.variable(s)}static isSimpleTerm(e){return e.termType!==void 0&&e.termType!=="Quad"&&e.termType!=="Wildcard"}static isQuad(e){return e.termType==="Quad"}static hasQuadVariables(e){return(0,aQ.someTermsNested)(e,r=>r.termType==="Variable")}static isWildcard(e){return e.termType==="Wildcard"}};S0.default=sQ;var oQ=g&&g.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uQ=g&&g.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),cQ=g&&g.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&oQ(e,t,r);return uQ(e,t),e},Gj=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(VA,"__esModule",{value:!0});const lQ=Uk,dQ=sr,Kh=cQ(Rf),fQ=Gj(If),Ii=Gj(S0),hQ=w0.Parser,ni=Kh.types;let Yd=new Set,zj=0,Cb=!1,We;function pQ(t,e){e=e||{},We=new fQ.default(e.dataFactory);let r;if(yQ(t)){let n=new hQ(e);n._resetBlanks(),r=n.parse(t)}else r=t;return Wj(r,e.quads,e.blankToVariable)}VA.default=pQ;function Wj(t,e,r){if(Yd=new Set,zj=0,Cb=!!e,!t.type)return We.createNop();if(t.type!=="query"&&t.type!=="update")throw new Error("Translate only works on complete query or update objects.");let n;if(UE(t),t.type==="query"){const a={type:"group",patterns:t.where||[]};n=Uo(a),n=wQ(t,n)}else t.type==="update"&&(n=TQ(t));return r&&(n=Jj(n)),n}function yQ(t){return typeof t=="string"}function Xj(t){return!!(t!=null&&t.termType)}function bQ(t){return t.subject&&t.predicate&&t.object}function Pp(t){return(t==null?void 0:t.termType)==="Variable"}function UE(t){if(Xj(t))Pp(t)&&Yd.add(`?${t.value}`);else if(Array.isArray(t))for(const e of t)UE(e);else if(t&&typeof t=="object")for(let e of Object.keys(t))e.startsWith("?")&&Yd.add(e),UE(t[e])}function Ln(t){let e={};if(bQ(t)){const r=[Ln(t.subject),Ln(t.predicate),Ln(t.object),t.graph?Ln(t.graph):{}];Object.assign(e,...r)}else if(Xj(t))Pp(t)&&(e[t.value]=t);else if(t.type==="bgp"){const r=t.triples;Object.assign(e,...r.map(Ln))}else if(t.type==="path")Object.assign(e,...t.items.map(Ln));else if(t.type==="group"||t.type==="union"||t.type==="optional")Object.assign(e,...t.patterns.map(Ln));else if(t.type==="service"||t.type==="graph")Object.assign(e,Ln(t.name)),Object.assign(e,...t.patterns.map(Ln));else if(t.type==="bind")Object.assign(e,Ln(t.variable));else if(t.type==="values"){if(t.values.length>0){const r=Object.keys(t.values[0]).map(n=>We.createTerm(n));Object.assign(e,...r.map(Ln))}}else if(t.type==="query"&&(t.queryType==="SELECT"||t.queryType==="DESCRIBE")){t.where&&t.variables.some(Ii.default.isWildcard)&&Object.assign(e,...t.where.map(Ln));for(const r of t.variables)Pp(r)?Object.assign(e,Ln(r)):r.variable&&Object.assign(e,Ln(r.variable));if(t.queryType==="SELECT"){if(t.group)for(const r of t.group)r.variable&&Object.assign(e,Ln(r.variable));if(t.values){const r={type:"values",values:t.values};Object.assign(e,Ln(r))}}}return e}function Uo(t){if(t.type==="bgp")return mQ(t);if(t.type==="union")return We.createUnion(t.patterns.map(e=>(e.type!=="group"&&(e={type:"group",patterns:[e]}),Uo(e))));if(t.type==="graph"){const e={type:"group",patterns:t.patterns};let r=Uo(e);return Cb?r=Hc(r,t.name):r=We.createGraph(r,t.name),r}if(t.type==="values")return Kj(t);if(t.type==="query")return Wj(t,Cb,!1);if(t.type==="group"){let e=[],r=[];for(let s of t.patterns)(s.type==="filter"?e:r).push(s);let n=r.reduce(vQ,We.createBgp([])),a=e.map(s=>aa(s.expression));return a.length>0&&(n=We.createFilter(n,a.reduce((s,o)=>We.createOperatorExpression("&&",[s,o])))),n}throw new Error(`Unexpected type: ${t.type}`)}function aa(t){if(Ii.default.isSimpleTerm(t))return We.createTermExpression(t);if(Ii.default.isQuad(t))return Ii.default.hasQuadVariables(t)?We.createOperatorExpression("triple",[aa(t.subject),aa(t.predicate),aa(t.object)]):We.createTermExpression(t);if(Ii.default.isWildcard(t))return We.createWildcardExpression();if("aggregation"in t)return We.createAggregateExpression(t.aggregation,aa(t.expression),!!t.distinct,t.separator);if("function"in t)return We.createNamedExpression(t.function,t.args.map(aa));if("operator"in t)return t.operator==="exists"||t.operator==="notexists"?We.createExistenceExpression(t.operator==="notexists",Uo(t.args[0])):((t.operator==="in"||t.operator==="notin")&&(t.args=[t.args[0]].concat(t.args[1])),We.createOperatorExpression(t.operator,t.args.map(aa)));throw new Error(`Unknown expression: ${JSON.stringify(t)}`)}function mQ(t){let e=[],r=[];for(let n of t.triples)if("pathType"in n.predicate){let a=gQ(n);for(let s of a)s.type===ni.PATH?(e.length>0&&r.push(We.createBgp(e)),e=[],r.push(s)):e.push(s)}else e.push(kA(n));return e.length>0&&r.push(We.createBgp(e)),r.length===1?r[0]:We.createJoin(r)}function gQ(t){let e=t.subject,r=jc(t.predicate),n=t.object;return qE(e,r,n)}function jc(t){if(Ii.default.isSimpleTerm(t)){if(t.termType==="NamedNode")return We.createLink(t);throw new Error(`Path predicate should be a NamedNode, got ${JSON.stringify(t)}`)}if(t.pathType==="^")return We.createInv(jc(t.items[0]));if(t.pathType==="!"){let e=[],r=[],n;"pathType"in t.items[0]&&t.items[0].pathType==="|"?n=t.items[0].items:n=t.items;for(let o of n)if(Ii.default.isSimpleTerm(o))e.push(o);else if(o.pathType==="^")r.push(o.items[0]);else throw new Error(`Unexpected item: ${JSON.stringify(o)}`);let a=We.createNps(e),s=We.createInv(We.createNps(r));return r.length===0?a:e.length===0?s:We.createAlt([a,s])}if(t.pathType==="/")return We.createSeq(t.items.map(jc));if(t.pathType==="|")return We.createAlt(t.items.map(jc));if(t.pathType==="*")return We.createZeroOrMorePath(jc(t.items[0]));if(t.pathType==="+")return We.createOneOrMorePath(jc(t.items[0]));if(t.pathType==="?")return We.createZeroOrOnePath(jc(t.items[0]));throw new Error(`Unable to translate path expression ${JSON.stringify(t)}`)}function qE(t,e,r){if(e.type===ni.LINK)return[We.createPattern(t,e.iri,r)];if(e.type===ni.INV)return qE(r,e.path,t);if(e.type===ni.SEQ){let n=t;return Ii.default.flatten(e.input.map((a,s)=>{const o=s===e.input.length-1?r:Zd(),u=qE(n,a,o);return o.termType==="Variable"&&(n=o),u}))}return[We.createPath(t,e,r)]}function Zd(){let t=`?var${zj++}`;return Yd.has(t)?Zd():(Yd.add(t),We.createTerm(t))}function kA(t){if("pathType"in t.predicate)throw new Error("Trying to translate property path to quad.");return We.createPattern(t.subject,t.predicate,t.object,t.graph)}let _Q=Object.values(ni);function Hc(t,e,r){if(t.type===ni.GRAPH){if(r)throw new Error("Recursing through nested GRAPH statements with a replacement is impossible.");t=Hc(t.input,t.name)}else if(t.type!==ni.SERVICE)if(t.type===ni.BGP)t.patterns=t.patterns.map(n=>(r&&(n.subject.equals(e)&&(n.subject=r),n.predicate.equals(e)&&(n.predicate=r),n.object.equals(e)&&(n.object=r)),n.graph.termType==="DefaultGraph"&&(n.graph=e),n));else if(t.type===ni.PATH)r&&(t.subject.equals(e)&&(t.subject=r),t.object.equals(e)&&(t.object=r)),t.graph.termType==="DefaultGraph"&&(t.graph=e);else if(t.type===ni.PROJECT&&!r)t.variables.some(n=>n.equals(e))||(r=Zd()),t.input=Hc(t.input,e,r);else if(t.type===ni.EXTEND&&!r)t.variable.equals(e)&&(r=Zd()),t.input=Hc(t.input,e,r);else for(let n of Object.keys(t))Array.isArray(t[n])?t[n]=t[n].map(a=>Hc(a,e,r)):_Q.indexOf(t[n].type)>=0?t[n]=Hc(t[n],e,r):r&&Pp(t[n])&&t[n].equals(e)&&(t[n]=r);return t}function vQ(t,e){if(e.type==="optional"){const r=Uo({type:"group",patterns:e.patterns});r.type===ni.FILTER?t=We.createLeftJoin(t,r.input,r.expression):t=We.createLeftJoin(t,r)}else if(e.type==="minus"){const r=Uo({type:"group",patterns:e.patterns});t=We.createMinus(t,r)}else if(e.type==="bind")t=We.createExtend(t,e.variable,aa(e.expression));else if(e.type==="service"){const r={type:"group",patterns:e.patterns},n=We.createService(Uo(r),e.name,e.silent);t=dP(t,n)}else{const r=Uo(e);t=dP(t,r)}return t}function dP(t,e){return t.type===ni.BGP&&e.type===ni.BGP?t=We.createBgp([...t.patterns,...e.patterns]):t.type===ni.BGP&&t.patterns.length===0?t=e:e.type===ni.BGP&&e.patterns.length===0||(t=We.createJoin([t,e])),t}function Kj(t){let e=(t.values.length===0?[]:Object.keys(t.values[0])).map(We.createTerm.bind(We)),r=t.values.map(n=>{let a=Object.keys(n);a=a.filter(o=>n[o]!==void 0);let s={};for(let o of a)s[o]=n[o];return s});return We.createValues(e,r)}function wQ(t,e){const r=t,n=[],a={};if(r.variables=r.variables&&r.variables.map(o=>cp(o,a)),r.having=r.having&&r.having.map(o=>cp(o,a)),r.order=r.order&&r.order.map(o=>cp(o,a)),r.group||Object.keys(a).length>0){const o=Object.keys(a).map(c=>SQ(a[c],We.createTerm(c))),u=[];if(r.group)for(const c of r.group)if(Ii.default.isSimpleTerm(c.expression))u.push(c.expression);else{const l="variable"in c?c.variable:Zd();e=We.createExtend(e,l,aa(c.expression)),u.push(l)}e=We.createGroup(e,u,o)}if(r.having)for(let o of r.having)e=We.createFilter(e,aa(o));t.values&&(e=We.createJoin([e,Kj(t)]));let s=[];if(t.queryType==="SELECT"||t.queryType==="DESCRIBE")if(t.variables.some(o=>o&&Ii.default.isWildcard(o)))s=Object.values(Ln(t)).sort((o,u)=>o.value.localeCompare(u.value));else for(let o of t.variables)Pp(o)||!("variable"in o)?s.push(o):o.variable&&(s.push(o.variable),n.push(o));for(let o of n)e=We.createExtend(e,o.variable,aa(o.expression));return r.order&&(e=We.createOrderBy(e,r.order.map(o=>{let u=aa(o.expression);return o.descending&&(u=We.createOperatorExpression("desc",[u])),u}))),t.queryType==="SELECT"&&(e=We.createProject(e,s)),r.distinct&&(e=We.createDistinct(e)),r.reduced&&(e=We.createReduced(e)),t.queryType==="CONSTRUCT"?e=We.createConstruct(e,(t.template||[]).map(kA)):t.queryType==="ASK"?e=We.createAsk(e):t.queryType==="DESCRIBE"&&(e=We.createDescribe(e,s)),(r.offset||r.limit)&&(e=We.createSlice(e,r.offset||0,r.limit)),r.from&&(e=We.createFrom(e,r.from.default,r.from.named)),e}function cp(t,e){if("type"in t&&t.type==="aggregate"){let r=!1,n;for(let a of Object.keys(e))if(lQ(e[a],t)){n=We.createTerm(a),r=!0;break}return r||(n=Zd(),e[(0,dQ.termToString)(n)]=t),n}return"expression"in t&&t.expression?{...t,expression:cp(t.expression,e)}:"args"in t&&t.args?{...t,args:t.args.map(r=>cp(r,e))}:t}function SQ(t,e){if(t.type!=="aggregate"||!t.aggregation)throw new Error(`Unexpected input: ${JSON.stringify(t)}`);const r=aa(t);return r.variable=e,r}function TQ(t){return t.updates.length===1?fP(t.updates[0]):We.createCompositeUpdate(t.updates.map(fP))}function fP(t){if("type"in t){if(t.type==="load")return AQ(t);if(t.type==="clear"||t.type==="create"||t.type==="drop")return OQ(t);if(t.type==="add"||t.type==="copy"||t.type==="move")return xQ(t)}else if(t.updateType==="insertdelete"||t.updateType==="deletewhere"||t.updateType==="delete"||t.updateType==="insert")return EQ(t);throw new Error(`Unknown update type ${JSON.stringify(t)}`)}function EQ(t){if(!Cb)throw new Error("INSERT/DELETE operations are only supported with quads option enabled");let e=[],r=[],n;if(t.delete&&(e=Ii.default.flatten(t.delete.map(a=>hP(a,t.graph)))),t.insert&&(r=Ii.default.flatten(t.insert.map(a=>hP(a,t.graph)))),t.where&&t.where.length>0){n=Uo({type:"group",patterns:t.where});const a=t.using;a?n=We.createFrom(n,a.default,a.named):t.graph&&(n=Hc(n,t.graph))}else t.updateType==="deletewhere"&&e.length>0&&(n=We.createBgp(e));return We.createDeleteInsert(e.length>0?e:void 0,r.length>0?r:void 0,n)}function hP(t,e){let r=e;t.type==="graph"&&(r=t.name);let n=t.triples;return r&&(n=n.map(a=>Object.assign(a,{graph:r}))),n.map(kA)}function OQ(t){let e;switch(Ii.default.isSimpleTerm(t.graph)?e=t.graph:t.graph.all?e="ALL":t.graph.default?e="DEFAULT":t.graph.named?e="NAMED":e=t.graph.name,t.type){case"clear":return We.createClear(e,t.silent);case"create":return We.createCreate(e,t.silent);case"drop":return We.createDrop(e,t.silent)}}function AQ(t){return We.createLoad(t.source,t.destination,t.silent)}function xQ(t){const e=t.source.default?"DEFAULT":t.source.name,r=t.destination.default?"DEFAULT":t.destination.name;switch(t.type){case"copy":return We.createCopy(e,r,t.silent);case"move":return We.createMove(e,r,t.silent);case"add":return We.createAdd(e,r,t.silent)}}function Jj(t){const e={},r=Array.from(Yd).reduce((a,s)=>(a[s]=!0,a),{});return Ii.default.mapOperation(t,{[Kh.types.DELETE_INSERT]:a=>({result:a,recurse:!1}),[Kh.types.PATH]:(a,s)=>({result:s.createPath(n(a.subject),a.predicate,n(a.object),n(a.graph)),recurse:!1}),[Kh.types.PATTERN]:(a,s)=>({result:s.createPattern(n(a.subject),n(a.predicate),n(a.object),n(a.graph)),recurse:!1}),[Kh.types.CONSTRUCT]:a=>({result:We.createConstruct(Jj(a.input),a.template),recurse:!1})});function n(a){if(a.termType==="BlankNode"){let s=e[a.value];return s||(s=Ii.default.createUniqueVariable(a.value,r,We.dataFactory),r[s.value]=!0,e[a.value]=s),s}return a}}var ef={},Yj={},Bt={},zm={},Ut={},T0=Zj;function Zj(t,e){if(!t)throw new Error(e||"Assertion failed")}Zj.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var VE={exports:{}};typeof Object.create=="function"?VE.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:VE.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var RQ=VE.exports,IQ=T0,PQ=RQ;Ut.inherits=PQ;function DQ(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function NQ(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),a=0;a>6|192,r[n++]=s&63|128):DQ(t,a)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++a)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(a=0;a>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}Ut.htonl=eC;function CQ(t,e){for(var r="",n=0;n>>0}return s}Ut.join32=FQ;function MQ(t,e){for(var r=new Array(t.length*4),n=0,a=0;n>>24,r[a+1]=s>>>16&255,r[a+2]=s>>>8&255,r[a+3]=s&255):(r[a+3]=s>>>24,r[a+2]=s>>>16&255,r[a+1]=s>>>8&255,r[a]=s&255)}return r}Ut.split32=MQ;function LQ(t,e){return t>>>e|t<<32-e}Ut.rotr32=LQ;function BQ(t,e){return t<>>32-e}Ut.rotl32=BQ;function $Q(t,e){return t+e>>>0}Ut.sum32=$Q;function UQ(t,e,r){return t+e+r>>>0}Ut.sum32_3=UQ;function qQ(t,e,r,n){return t+e+r+n>>>0}Ut.sum32_4=qQ;function VQ(t,e,r,n,a){return t+e+r+n+a>>>0}Ut.sum32_5=VQ;function HQ(t,e,r,n){var a=t[e],s=t[e+1],o=n+s>>>0,u=(o>>0,t[e+1]=o}Ut.sum64=HQ;function kQ(t,e,r,n){var a=e+n>>>0,s=(a>>0}Ut.sum64_hi=kQ;function QQ(t,e,r,n){var a=e+n;return a>>>0}Ut.sum64_lo=QQ;function GQ(t,e,r,n,a,s,o,u){var c=0,l=e;l=l+n>>>0,c+=l>>0,c+=l>>0,c+=l>>0}Ut.sum64_4_hi=GQ;function zQ(t,e,r,n,a,s,o,u){var c=e+n+s+u;return c>>>0}Ut.sum64_4_lo=zQ;function WQ(t,e,r,n,a,s,o,u,c,l){var d=0,h=e;h=h+n>>>0,d+=h>>0,d+=h>>0,d+=h>>0,d+=h>>0}Ut.sum64_5_hi=WQ;function XQ(t,e,r,n,a,s,o,u,c,l){var d=e+n+s+u+l;return d>>>0}Ut.sum64_5_lo=XQ;function KQ(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}Ut.rotr64_hi=KQ;function JQ(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Ut.rotr64_lo=JQ;function YQ(t,e,r){return t>>>r}Ut.shr64_hi=YQ;function ZQ(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}Ut.shr64_lo=ZQ;var Pf={},pP=Ut,eG=T0;function Wm(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Pf.BlockHash=Wm;Wm.prototype.update=function(e,r){if(e=pP.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=pP.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[s++]=e>>>16&255,a[s++]=e>>>8&255,a[s++]=e&255}else for(a[s++]=e&255,a[s++]=e>>>8&255,a[s++]=e>>>16&255,a[s++]=e>>>24&255,a[s++]=0,a[s++]=0,a[s++]=0,a[s++]=0,o=8;o>>3}io.g0_256=aG;function sG(t){return qs(t,17)^qs(t,19)^t>>>10}io.g1_256=sG;var tf=Ut,oG=Pf,uG=io,NS=tf.rotl32,eh=tf.sum32,cG=tf.sum32_5,lG=uG.ft_1,sC=oG.BlockHash,dG=[1518500249,1859775393,2400959708,3395469782];function Js(){if(!(this instanceof Js))return new Js;sC.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}tf.inherits(Js,sC);var fG=Js;Js.blockSize=512;Js.outSize=160;Js.hmacStrength=80;Js.padLength=64;Js.prototype._update=function(e,r){for(var n=this.W,a=0;a<16;a++)n[a]=e[r+a];for(;athis.blockSize&&(e=new this.Hash().update(e).digest()),ZG(e.length<=this.blockSize);for(var r=e.length;rks.someTerms(e,r=>r.termType==="BlankNode"||r.termType==="Quad"&&ks.getTermsNested(r).some(n=>n.termType==="BlankNode")))}Bt.getQuadsWithBlankNodes=QE;function GE(t){return t.filter(e=>ks.everyTerms(e,r=>r.termType!=="BlankNode"&&!(r.termType==="Quad"&&ks.getTermsNested(r).some(n=>n.termType==="BlankNode"))))}Bt.getQuadsWithoutBlankNodes=GE;function Fb(t){const e={};for(const r of t)e[JSON.stringify(as.quadToStringQuad(r))]=!0;return e}Bt.indexGraph=Fb;function vC(t){return Object.keys(t).map(e=>as.stringQuadToQuad(JSON.parse(e)))}Bt.deindexGraph=vC;function zE(t){return vC(Fb(t))}Bt.uniqGraph=zE;function WE(t){return ks.uniqTerms(t.map(e=>ks.getBlankNodes(ks.getTermsNested(e))).reduce((e,r)=>e.concat(r),[]))}Bt.getGraphBlankNodes=WE;function XE(t,e,r){const n=Object.assign({},r),a={};let s=!0;for(;s;){const o=Object.keys(n).length;for(const c of e){const l=as.termToString(c);if(!n[l]){const[d,h]=wC(c,t,n);d&&(n[l]=h),a[l]=h}}const u={};for(const c in a){const l=a[c];u[l]===void 0?u[l]=c:u[l]=!1}for(const c in u){const l=u[c];l&&(n[l]=c)}s=o!==Object.keys(n).length}return[n,a]}Bt.hashTerms=XE;function wC(t,e,r){const n=[];let a=!0;for(const o of e){const u=ks.getTermsNested(o);if(u.some(c=>c.equals(t))){n.push(zA(o,r,t));for(const c of u)!WA(c,r)&&!c.equals(t)&&(a=!1)}}const s=GA(n.sort().join(""));return[a,s]}Bt.hashTerm=wC;function GA(t){return tz.sha1().update(t).digest("hex")}Bt.sha1hex=GA;function zA(t,e,r){return ks.getTerms(t).map(n=>SC(n,e,r)).join("|")}Bt.quadToSignature=zA;function SC(t,e,r){return t.equals(r)?"@self":t.termType==="BlankNode"?e[as.termToString(t)]||"@blank":t.termType==="Quad"?`<${zA(t,e,r)}>`:as.termToString(t)}Bt.termToSignature=SC;function WA(t,e){return t.termType!=="BlankNode"&&!(t.termType==="Quad"&&ks.getTermsNested(t).some(r=>!WA(r,e)))||!!e[as.termToString(t)]}Bt.isTermGrounded=WA;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Bt,t)})(Yj);var nz=g&&g.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(e,r);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,a)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),iz=g&&g.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),az=g&&g.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&nz(e,t,r);return iz(e,t),e},TC=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ef,"__esModule",{value:!0});ef.toSparqlJs=ef.toSparql=void 0;const sz=Yj,oz=sr,EC=w0,OC=az(Rf),uz=TC(If),Xi=TC(S0),nt=OC.types,Wl=OC.expressionTypes;let kr;const Kc=new uz.default;function cz(t,e={}){return new EC.Generator(e).stringify(AC(t))}ef.toSparql=cz;function AC(t){xC(),t=Zz(t);let e=qr(t);return e.type==="group"?e.patterns[0]:e}ef.toSparqlJs=AC;function xC(){kr={project:!1,extend:[],group:[],aggregates:[],order:[]}}function qr(t){switch(t.type!==nt.EXTEND&&t.type!==nt.ORDER_BY&&t.type!==nt.GRAPH&&(kr.project=!1),t.type){case nt.EXPRESSION:return eo(t);case nt.ASK:return FS(t,nt.ASK);case nt.BGP:return gz(t);case nt.CONSTRUCT:return _z(t);case nt.DESCRIBE:return FS(t,nt.DESCRIBE);case nt.DISTINCT:return vz(t);case nt.EXTEND:return wz(t);case nt.FROM:return Sz(t);case nt.FILTER:return Tz(t);case nt.GRAPH:return Ez(t);case nt.GROUP:return Oz(t);case nt.JOIN:return Az(t);case nt.LEFT_JOIN:return xz(t);case nt.MINUS:return Rz(t);case nt.NOP:return{};case nt.ORDER_BY:return Iz(t);case nt.PATH:return Pz(t);case nt.PATTERN:return Dp(t);case nt.PROJECT:return FS(t,nt.PROJECT);case nt.REDUCED:return Dz(t);case nt.SERVICE:return Nz(t);case nt.SLICE:return jz(t);case nt.UNION:return Cz(t);case nt.VALUES:return Fz(t);case nt.COMPOSITE_UPDATE:return kz(t);case nt.DELETE_INSERT:return Qz(t);case nt.LOAD:return Gz(t);case nt.CLEAR:return zz(t);case nt.CREATE:return Wz(t);case nt.DROP:return Xz(t);case nt.ADD:return Kz(t);case nt.MOVE:return Jz(t);case nt.COPY:return Yz(t)}throw new Error(`Unknown Operation type ${t.type}`)}function eo(t){switch(t.expressionType){case Wl.AGGREGATE:return lz(t);case Wl.EXISTENCE:return dz(t);case Wl.NAMED:return fz(t);case Wl.OPERATOR:return hz(t);case Wl.TERM:return pz(t);case Wl.WILDCARD:return yz(t)}throw new Error(`Unknown Expression Operation type ${t.expressionType}`)}function wl(t){switch(t.type){case nt.ALT:return Mz(t);case nt.INV:return Lz(t);case nt.LINK:return Bz(t);case nt.NPS:return $z(t);case nt.ONE_OR_MORE_PATH:return Uz(t);case nt.SEQ:return qz(t);case nt.ZERO_OR_MORE_PATH:return Vz(t);case nt.ZERO_OR_ONE_PATH:return Hz(t)}throw new Error(`Unknown Path type ${t.type}`)}function _d(t){return(0,oz.termToString)(t)}function lz(t){const e={expression:eo(t.expression),type:"aggregate",aggregation:t.aggregator,distinct:t.distinct};return t.separator&&(e.separator=t.separator),e}function dz(t){return{type:"operation",operator:t.not?"notexists":"exists",args:Xi.default.flatten([qr(t.input)])}}function fz(t){return{type:"functionCall",function:t.name,args:t.args.map(eo)}}function hz(t){if(t.operator==="desc"){const r={expression:eo(t.args[0])};return r.descending=!0,r}const e={type:"operation",operator:t.operator,args:t.args.map(eo)};return(e.operator==="in"||e.operator==="notin")&&(e.args=[e.args[0]].concat([e.args.slice(1)])),e}function pz(t){return t.term}function yz(t){return t.wildcard}function bz(t){return Array.isArray(t)?t.length===1?t[0]:{type:"group",patterns:t}:t}function mz(t){return t}function gz(t){let e=t.patterns.map(Dp);return e.length===0?null:{type:"bgp",triples:e}}function _z(t){return{type:"query",prefixes:{},queryType:"CONSTRUCT",template:t.template.map(Dp),where:Xi.default.flatten([qr(t.input)])}}function vz(t){let e=qr(t.input);return e.patterns[0].distinct=!0,e}function wz(t){return kr.project?(kr.extend.push(t),qr(t.input)):Xi.default.flatten([qr(t.input),{type:"bind",variable:t.variable,expression:eo(t.expression)}])}function Sz(t){const e=qr(t.input);let r=e;return e.type==="group"&&(r=e.patterns[0]),r.from={default:t.default,named:t.named},e}function Tz(t){return{type:"group",patterns:Xi.default.flatten([qr(t.input),{type:"filter",expression:eo(t.expression)}])}}function Ez(t){return{type:"graph",patterns:Xi.default.flatten([qr(t.input)]),name:t.name}}function Oz(t){const e=qr(t.input),r=t.aggregates.map(mz);return kr.aggregates.push(...r),kr.group.push(...t.variables),e}function Az(t){return Xi.default.flatten(t.input.map(qr)).reduce((r,n)=>(n.type!=="bgp"||r.length==0||r[r.length-1].type!=="bgp"?r.push(n):r[r.length-1].triples.push(...n.triples),r),[])}function xz(t){const e={type:"optional",patterns:[qr(t.input[1])]};return t.expression&&e.patterns.push({type:"filter",expression:eo(t.expression)}),e.patterns=Xi.default.flatten(e.patterns),Xi.default.flatten([qr(t.input[0]),e])}function Rz(t){let e=qr(t.input[1]);return e.type==="group"&&(e=e.patterns),Array.isArray(e)||(e=[e]),Xi.default.flatten([qr(t.input[0]),{type:"minus",patterns:e}])}function Iz(t){return kr.order.push(...t.expressions),qr(t.input)}function Pz(t){return{type:"bgp",triples:[{subject:t.subject,predicate:wl(t.predicate),object:t.object}]}}function Dp(t){return{subject:t.subject,predicate:t.predicate,object:t.object}}function Mb(t,e){let r=Xi.default.isSimpleTerm(t)?_d(t):t;if(typeof r=="string"){if(e[r])return e[r]}else if(Array.isArray(t))t=t.map(n=>Mb(n,e));else for(let n of Object.keys(t))t[n]=Mb(t[n],e);return t}function FS(t,e){const r={type:"query",prefixes:{}},n=r;let a;e===nt.PROJECT?(r.queryType="SELECT",a=t.variables):e===nt.ASK?r.queryType="ASK":e===nt.DESCRIBE&&(r.queryType="DESCRIBE",a=t.terms);const s=kr.extend,o=kr.group,u=kr.aggregates,c=kr.order;xC(),kr.project=!0;let l=Xi.default.flatten([qr(t.input)]);l.length===1&&l[0].type==="group"&&(l=l[0].patterns),r.where=l;let d={};for(let f of kr.aggregates)d[_d(f.variable)]=eo(f);let h={};for(let f=kr.extend.length-1;f>=0;--f){let p=kr.extend[f];h[_d(p.variable)]=Mb(eo(p.expression),d)}if(kr.group.length>0&&(n.group=kr.group.map(f=>{let p=_d(f);if(h[p]){let b=h[p];return delete h[p],{variable:f,expression:b}}return{expression:f}})),kr.order.length>0&&(n.order=kr.order.map(qr).map(f=>f.descending?f:{expression:f})),a&&(n.variables=a.map(f=>{let p=_d(f);return h[p]?{variable:f,expression:h[p]}:f}),n.variables.length===0&&(n.variables=[new EC.Wildcard])),r.where.length>0&&r.where[r.where.length-1].type==="filter"){const f=r.where[r.where.length-1];KE(f,Object.keys(d))&&(n.having=Xi.default.flatten([Mb(f.expression,d)]),r.where.splice(-1))}return kr.extend=s,kr.group=o,kr.aggregates=u,kr.order=c,{type:"group",patterns:[n]}}function KE(t,e){return Xi.default.isSimpleTerm(t)?e.indexOf(_d(t))>=0:Array.isArray(t)?t.some(r=>KE(r,e)):t===Object(t)?Object.keys(t).some(r=>KE(t[r],e)):e.indexOf(t)>=0}function Dz(t){let e=qr(t.input);return e.patterns[0].reduced=!0,e}function Nz(t){let e=qr(t.input);return e.type==="group"&&(e=e.patterns),Array.isArray(e)||(e=[e]),{type:"service",name:t.name,silent:t.silent,patterns:e}}function jz(t){let e=qr(t.input),r=e;return e.type&&e.type==="group"&&(r=e.patterns[0]),t.start!==0&&(r.offset=t.start),t.length!==void 0&&(r.limit=t.length),e}function Cz(t){return{type:"union",patterns:t.input.map(qr).map(bz)}}function Fz(t){return{type:"values",values:t.bindings.map(e=>{let r={};for(let n of t.variables){let a=`?${n.value}`;e[a]?r[a]=e[a]:r[a]=void 0}return r})}}function Mz(t){const e=t.input.map(wl);return e.every(r=>"pathType"in r&&r.pathType==="!")?{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:Xi.default.flatten(e.map(r=>r.items))}]}:{type:"path",pathType:"|",items:e}}function Lz(t){if(t.path.type===nt.NPS){const e=t.path.iris.map(r=>({type:"path",pathType:"^",items:[r]}));return e.length<=1?{type:"path",pathType:"!",items:e}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:e}]}}return{type:"path",pathType:"^",items:[wl(t.path)]}}function Bz(t){return t.iri}function $z(t){return t.iris.length<=1?{type:"path",pathType:"!",items:t.iris}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:t.iris}]}}function Uz(t){return{type:"path",pathType:"+",items:[wl(t.path)]}}function qz(t){return{type:"path",pathType:"/",items:t.input.map(wl)}}function Vz(t){return{type:"path",pathType:"*",items:[wl(t.path)]}}function Hz(t){return{type:"path",pathType:"?",items:[wl(t.path)]}}function kz(t){const e=t.updates.map(r=>qr(r).updates[0]);return{prefixes:{},type:"update",updates:e}}function Qz(t){var e;let r=t.where,n;if(r&&r.type===nt.FROM){let s=r;r=s.input,n={default:s.default,named:s.named}}const a=[{updateType:"insertdelete",delete:_P(t.delete||[]),insert:_P(t.insert||[])}];if(n&&(a[0].using=n),!r||r.type===nt.BGP&&r.patterns.length===0)a[0].where=[];else{const s=[];let o=qr(Lb(r,s));if(o.type==="group"?a[0].where=o.patterns:a[0].where=[o],s.length>0){if(s.length!==1)throw new Error("This is unexpected and might indicate an error in graph handling for updates.");((e=s[0])===null||e===void 0?void 0:e.value)!==""&&(a[0].where=[{type:"graph",patterns:a[0].where,name:s[0]}])}}return!t.delete&&!t.where?(a[0].updateType="insert",delete a[0].delete,delete a[0].where):!t.insert&&!t.where?(delete a[0].insert,delete a[0].where,t.delete.some(s=>s.subject.termType==="Variable"||s.predicate.termType==="Variable"||s.object.termType==="Variable")?a[0].updateType="deletewhere":a[0].updateType="delete"):!t.insert&&t.where&&t.where.type==="bgp"&&(0,sz.isomorphic)(t.delete,t.where.patterns)&&(delete a[0].where,a[0].updateType="deletewhere"),{prefixes:{},type:"update",updates:a}}function Gz(t){const e=[{type:"load",silent:!!t.silent,source:t.source}];return t.destination&&(e[0].destination=t.destination),{prefixes:{},type:"update",updates:e}}function zz(t){return XA(t,"clear")}function Wz(t){return XA(t,"create")}function Xz(t){return XA(t,"drop")}function XA(t,e){const r=[{type:e,silent:!!t.silent}];return t.source==="DEFAULT"?r[0].graph={default:!0}:t.source==="NAMED"?r[0].graph={named:!0}:t.source==="ALL"?r[0].graph={all:!0}:r[0].graph={type:"graph",name:t.source},{prefixes:{},type:"update",updates:r}}function Kz(t){return KA(t,"add")}function Jz(t){return KA(t,"move")}function Yz(t){return KA(t,"copy")}function KA(t,e){const r=[{type:e,silent:!!t.silent}];return r[0].source=t.source==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:t.source},r[0].destination=t.destination==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:t.destination},{prefixes:{},type:"update",updates:r}}function _P(t){if(!t)return[];const e={};return t.forEach(r=>{const n=r.graph.value;e[n]||(e[n]=[]),e[n].push(r)}),Object.keys(e).map(r=>r===""?{type:"bgp",triples:e[r].map(Dp)}:{type:"graph",triples:e[r].map(Dp),name:e[r][0].graph})}function Zz(t){return Lb(t,[])}function Lb(t,e){if(Array.isArray(t))return t.map(o=>Lb(o,e));if(!t.type||t.type===nt.DELETE_INSERT)return t;if((t.type===nt.PATTERN||t.type===nt.PATH)&&t.graph)return e.push(t.graph),t.graph.name!==""?t.type===nt.PATTERN?Kc.createPattern(t.subject,t.predicate,t.object):Kc.createPath(t.subject,t.predicate,t.object):t;const r={},n={},a={};for(let o of Object.keys(t)){const u=[];if(r[o]=Lb(t[o],u),u.length>0){n[o]=u;for(const c of u)a[c.value]=c}}const s=Object.keys(a);if(s.length>0)if(s.length===1&&![nt.PROJECT,nt.SERVICE].includes(t.type))e.push(a[s[0]]);else{if(t.type===nt.BGP)return eW(t,n.patterns);for(let o of Object.keys(n)){const u=r[o];Array.isArray(u)?r[o]=u.map((c,l)=>n[o][0].value===""?c:Kc.createGraph(c,n[o][l])):n[o][0].value!==""&&(r[o]=Kc.createGraph(u,n[o][0]))}}return r}function eW(t,e){var r;const n={};for(let o=0;or.termType==="Variable")?(0,vP.mapTermsNested)(t,r=>Is(r,e)):t}cl.materializeTerm=Is;function JE(t,e,r={}){return r={strictTargetVariables:"strictTargetVariables"in r?r.strictTargetVariables:!1,bindFilter:"bindFilter"in r?r.bindFilter:!0},rW.Util.mapOperation(t,{path(n,a){return{recurse:!1,result:a.createPath(Is(n.subject,e),n.predicate,Is(n.object,e),Is(n.graph,e))}},pattern(n,a){return{recurse:!1,result:a.createPattern(Is(n.subject,e),Is(n.predicate,e),Is(n.object,e),Is(n.graph,e))}},extend(n){if(e.has(n.variable)){if(r.strictTargetVariables)throw new Error(`Tried to bind variable ${(0,Xl.termToString)(n.variable)} in a BIND operator.`);return{recurse:!0,result:JE(n.input,e,r)}}return{recurse:!0,result:n}},group(n,a){if(r.strictTargetVariables){for(const o of n.variables)if(e.has(o))throw new Error(`Tried to bind variable ${(0,Xl.termToString)(o)} in a GROUP BY operator.`);return{recurse:!0,result:n}}const s=n.variables.filter(o=>!e.has(o));return{recurse:!0,result:a.createGroup(n.input,s,n.aggregates)}},project(n,a){if(r.strictTargetVariables){for(const u of n.variables)if(e.has(u))throw new Error(`Tried to bind variable ${(0,Xl.termToString)(u)} in a SELECT operator.`);return{recurse:!0,result:n}}const s=n.variables.filter(u=>!e.has(u)),o=nW.bindings(n.variables.map(u=>{const c=e.get(u);if(c)return[u,c]}).filter(u=>!!u));return{recurse:!1,result:a.createProject(JE(n.input,o,r),s)}},values(n,a){if(r.strictTargetVariables){for(const s of n.variables)if(e.has(s))throw new Error(`Tried to bind variable ${(0,Xl.termToString)(s)} in a VALUES operator.`)}else{const s=n.variables.filter(u=>!e.has(u)),o=n.bindings.map(u=>{const c={...u};let l=!0;return e.forEach((d,h)=>{const f=(0,Xl.termToString)(h);f in c&&(d.equals(c[f])||(l=!1),delete c[f])}),l?c:void 0}).filter(Boolean);return{recurse:!0,result:a.createValues(s,o)}}return{recurse:!1,result:n}},expression(n,a){if(!r.bindFilter)return{recurse:!1,result:n};if(n.expressionType==="term")return{recurse:!1,result:a.createTermExpression(Is(n.term,e))};if(n.expressionType==="aggregate"&&"variable"in n&&e.has(n.variable)){if(r.strictTargetVariables)throw new Error(`Tried to bind ${(0,Xl.termToString)(n.variable)} in a ${n.aggregator} aggregate.`);return{recurse:!0,result:n}}return{recurse:!0,result:n}}})}cl.materializeOperation=JE;Object.defineProperty(h0,"__esModule",{value:!0});h0.ActorQueryOperation=void 0;const pu=Ht,iW=et,wP=qm,aW=cl;let SP=0;class Iu extends iW.Actor{constructor(e){super(e)}static getSafeBindings(e){return Iu.validateQueryOutput(e,"bindings"),e}static getSafeQuads(e){return Iu.validateQueryOutput(e,"quads"),e}static getSafeBoolean(e){return Iu.validateQueryOutput(e,"boolean"),e}static getSafeVoid(e){return Iu.validateQueryOutput(e,"void"),e}static cachifyMetadata(e){let r;return()=>(r||(r=e(),r.then(n=>n.state.addInvalidateListener(()=>{r=void 0})).catch(()=>{})),r)}static validateQueryOutput(e,r){if(e.type!==r)throw new Error(`Invalid query output type: Expected '${r}' but got '${e.type}'`)}static getBaseExpressionContext(e){const r=e.get(pu.KeysInitQuery.queryTimestamp),n=e.get(pu.KeysInitQuery.baseIRI),a=e.get(pu.KeysInitQuery.functionArgumentsCache)||{};if(e.has(pu.KeysInitQuery.extensionFunctionCreator)&&e.has(pu.KeysInitQuery.extensionFunctions))throw new Error("Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context");let s=e.get(pu.KeysInitQuery.extensionFunctionCreator);const o=e.get(pu.KeysInitQuery.extensionFunctions);return o&&(s=u=>o[u.value]),{now:r,baseIRI:n,extensionFunctionCreator:s,functionArgumentsCache:a}}static getExpressionContext(e,r){return{...this.getBaseExpressionContext(e),bnode:n=>new wP.BlankNodeBindingsScoped(n||`BNODE_${SP++}`)}}static getAsyncExpressionContext(e,r){return{...this.getBaseExpressionContext(e),bnode:n=>Promise.resolve(new wP.BlankNodeBindingsScoped(n||`BNODE_${SP++}`)),exists:Iu.createExistenceResolver(e,r)}}static createExistenceResolver(e,r){return async(n,a)=>{const s=(0,aW.materializeOperation)(n.input,a),o=await r.mediate({operation:s,context:e}),u=Iu.getSafeBindings(o);return new Promise((c,l)=>{u.bindingsStream.on("end",()=>{c(!1)}),u.bindingsStream.on("error",l),u.bindingsStream.on("data",()=>{u.bindingsStream.close(),c(!0)})}).then(c=>n.not?!c:c)}}static throwOnReadOnly(e){if(e.get(pu.KeysQueryOperation.readOnly))throw new Error("Attempted a write operation in read-only mode")}}h0.ActorQueryOperation=Iu;var E0={};Object.defineProperty(E0,"__esModule",{value:!0});E0.ActorQueryOperationTyped=void 0;const Ky=Ht,TP=h0;class sW extends TP.ActorQueryOperation{constructor(e,r){if(super({...e,operationName:r}),!this.operationName)throw new Error('A valid "operationName" argument must be provided.')}async test(e){if(!e.operation)throw new Error("Missing field 'operation' in a query operation action.");if(e.operation.type!==this.operationName)throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${e.operation.type}`);const r=e.operation;return this.testOperation(r,e.context)}async run(e){const r=e.context.get(Ky.KeysInitQuery.physicalQueryPlanLogger);r&&(r.logOperation(e.operation.type,void 0,e.operation,e.context.get(Ky.KeysInitQuery.physicalQueryPlanNode),this.name,{}),e.context=e.context.set(Ky.KeysInitQuery.physicalQueryPlanNode,e.operation));const n=e.operation,a=e.context.set(Ky.KeysQueryOperation.operation,n),s=await this.runOperation(n,a);return"metadata"in s&&(s.metadata=TP.ActorQueryOperation.cachifyMetadata(s.metadata)),s}}E0.ActorQueryOperationTyped=sW;var Xm={};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.ActorQueryOperationTypedMediated=void 0;const oW=E0;class uW extends oW.ActorQueryOperationTyped{constructor(e,r){super(e,r)}}Xm.ActorQueryOperationTypedMediated=uW;var Km={};Object.defineProperty(Km,"__esModule",{value:!0});Km.BusQueryOperation=void 0;const cW=et;class lW extends cW.BusIndexed{constructor(e){super({...e,actorIdentifierFields:["operationName"],actionIdentifierFields:["operation","type"]})}}Km.BusQueryOperation=lW;var Jm={},Wt={},JA={exports:{}},Fd=typeof Reflect=="object"?Reflect:null,EP=Fd&&typeof Fd.apply=="function"?Fd.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},ib;Fd&&typeof Fd.ownKeys=="function"?ib=Fd.ownKeys:Object.getOwnPropertySymbols?ib=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:ib=function(e){return Object.getOwnPropertyNames(e)};function dW(t){console&&console.warn&&console.warn(t)}var RC=Number.isNaN||function(e){return e!==e};function yr(){yr.init.call(this)}JA.exports=yr;JA.exports.once=yW;yr.EventEmitter=yr;yr.prototype._events=void 0;yr.prototype._eventsCount=0;yr.prototype._maxListeners=void 0;var OP=10;function Ym(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(yr,"defaultMaxListeners",{enumerable:!0,get:function(){return OP},set:function(t){if(typeof t!="number"||t<0||RC(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");OP=t}});yr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};yr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||RC(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function IC(t){return t._maxListeners===void 0?yr.defaultMaxListeners:t._maxListeners}yr.prototype.getMaxListeners=function(){return IC(this)};yr.prototype.emit=function(e){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var u=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw u.context=o,u}var c=s[e];if(c===void 0)return!1;if(typeof c=="function")EP(c,this,r);else for(var l=c.length,d=CC(c,l),n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=o.length,dW(u)}return t}yr.prototype.addListener=function(e,r){return PC(this,e,r,!1)};yr.prototype.on=yr.prototype.addListener;yr.prototype.prependListener=function(e,r){return PC(this,e,r,!0)};function fW(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function DC(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},a=fW.bind(n);return a.listener=r,n.wrapFn=a,a}yr.prototype.once=function(e,r){return Ym(r),this.on(e,DC(this,e,r)),this};yr.prototype.prependOnceListener=function(e,r){return Ym(r),this.prependListener(e,DC(this,e,r)),this};yr.prototype.removeListener=function(e,r){var n,a,s,o,u;if(Ym(r),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){u=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():hW(n,s),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,u||r)}return this};yr.prototype.off=yr.prototype.removeListener;yr.prototype.removeAllListeners=function(e){var r,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(a=0;a=0;a--)this.removeListener(e,r[a]);return this};function NC(t,e,r){var n=t._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?pW(a):CC(a,a.length)}yr.prototype.listeners=function(e){return NC(this,e,!0)};yr.prototype.rawListeners=function(e){return NC(this,e,!1)};yr.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):jC.call(t,e)};yr.prototype.listenerCount=jC;function jC(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}yr.prototype.eventNames=function(){return this._eventsCount>0?ib(this._events):[]};function CC(t,e){for(var r=new Array(e),n=0;ngW.then(a),e=typeof setImmediate=="function"?setImmediate:a=>setTimeout(a,0);let r=0,n=null;return a=>{n!==null?n.push(a):++r<100?t(a):(n=[a],e(()=>{for(const s of n)t(s);n=null,r=0}))}}eg.createTaskScheduler=_W;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIterator=t.isIterable=t.isSourceExpression=t.isPromise=t.isEventEmitter=t.isFunction=t.range=t.union=t.fromIterable=t.fromIterator=t.fromArray=t.single=t.empty=t.wrap=t.WrappingIterator=t.ClonedIterator=t.UnionIterator=t.MultiTransformIterator=t.SimpleTransformIterator=t.TransformIterator=t.BufferedIterator=t.MappingIterator=t.DESTINATION=t.identity=t.IntegerIterator=t.ArrayIterator=t.SingletonIterator=t.EmptyIterator=t.AsyncIterator=t.DESTROYED=t.ENDED=t.CLOSED=t.CLOSING=t.OPEN=t.INIT=t.setTaskScheduler=t.getTaskScheduler=t.scheduleTask=t.LinkedList=void 0;const e=O0,r=Zm;Object.defineProperty(t,"LinkedList",{enumerable:!0,get:function(){return r.LinkedList}});let a=eg.createTaskScheduler();function s(A){a(A)}t.scheduleTask=s;function o(){return a}t.getTaskScheduler=o;function u(A){a=A}t.setTaskScheduler=u,t.INIT=1,t.OPEN=2,t.CLOSING=4,t.CLOSED=8,t.ENDED=16,t.DESTROYED=32;class c extends e.EventEmitter{constructor(m=t.OPEN){super(),this._readable=!1,this._state=m,this.on("newListener",l)}_changeState(m,v=!1){const j=m>this._state&&this._statethis.emit("end")):this.emit("end"))),j}read(){return null}forEach(m,v){this.on("data",Ae(m,v))}close(){this._changeState(t.CLOSED)&&this._endAsync()}destroy(m){this.done||this._destroy(m,v=>{m=m||v,m&&this.emit("error",m),this._end(!0)})}_destroy(m,v){v()}_end(m=!1){this._changeState(m?t.DESTROYED:t.ENDED)&&(this._readable=!1,this.removeAllListeners("readable"),this.removeAllListeners("data"),this.removeAllListeners("end"))}_endAsync(){a(()=>this._end())}get readable(){return this._readable}set readable(m){m=!!m&&!this.done,this._readable!==m&&(this._readable=m,m&&a(()=>this.emit("readable")))}get closed(){return this._state>=t.CLOSING}get ended(){return this._state===t.ENDED}get destroyed(){return this._state===t.DESTROYED}get done(){return this._state>=t.ENDED}toString(){const m=this._toStringDetails();return`[${this.constructor.name}${m?` ${m}`:""}]`}_toStringDetails(){return""}toArray(m){const v=[],j=typeof(m==null?void 0:m.limit)=="number"?m.limit:1/0;return this.ended||j<=0?Promise.resolve(v):new Promise((q,$)=>{const G=()=>q(v),Y=J=>{v.push(J),v.length>=j&&(this.removeListener("error",$),this.removeListener("data",Y),this.removeListener("end",G),q(v))};this.on("error",$),this.on("data",Y),this.on("end",G)})}getProperty(m,v){const j=this._properties;if(!v)return j&&j[m];if(j&&m in j)a(()=>v(j[m]));else{let q;(q=this._propertyCallbacks)||(this._propertyCallbacks=q=Object.create(null)),m in q?q[m].push(v):q[m]=[v]}}setProperty(m,v){const j=this._properties||(this._properties=Object.create(null));j[m]=v;const q=this._propertyCallbacks||{},$=q[m];if($){delete q[m],a(()=>{for(const G of $)G(v)});for(m in q)return;delete this._propertyCallbacks}}getProperties(){const m=this._properties,v={};for(const j in m)v[j]=m[j];return v}setProperties(m){for(const v in m)this.setProperty(v,m[v])}copyProperties(m,v){for(const j of v)m.getProperty(j,q=>this.setProperty(j,q))}transform(m){return new D(this,m)}map(m,v){return new w(this,Ae(m,v))}filter(m,v){return this.map(function(j){return m.call(v||this,j)?j:null})}uniq(m=S){const v=new Set;return this.filter(function(j){const q=m.call(this,j);return v.has(q)?!1:(v.add(q),!0)})}prepend(m){return this.transform({prepend:m})}append(m){return this.transform({append:m})}surround(m,v){return this.transform({prepend:m,append:v})}skip(m){return this.map(v=>m-- >0?null:v)}take(m){return this.transform({limit:m})}range(m,v){return this.transform({offset:m,limit:Math.max(v-m+1,0)})}clone(){return new M(this)}}t.AsyncIterator=c;function l(A){A==="data"&&(this.removeListener("newListener",l),h(this,"readable",d),this.readable&&a(()=>d.call(this)))}function d(){let A;for(;this.listenerCount("data")!==0&&(A=this.read())!==null;)this.emit("data",A);this.listenerCount("data")===0&&!this.done&&(this.removeListener("readable",d),h(this,"newListener",l))}function h(A,m,v){A.listeners(m).includes(v)||A.on(m,v)}class f extends c{constructor(){super(),this._changeState(t.ENDED,!0)}}t.EmptyIterator=f;class p extends c{constructor(m){super(),this._item=m,m===null?this.close():this.readable=!0}read(){const m=this._item;return this._item=null,this.close(),m}_toStringDetails(){return this._item===null?"":`(${this._item})`}}t.SingletonIterator=p;class b extends c{constructor(m=[],{autoStart:v=!0,preserve:j=!0}={}){super();const q=j||!Array.isArray(m)?[...m]:m;this._index=0,this._sourceStarted=v!==!1,this._truncateThreshold=j?-1:64,this._sourceStarted&&q.length===0?this.close():this._buffer=q,this.readable=!0}read(){this._sourceStarted||(this._sourceStarted=!0);let m=null;return this._buffer&&(this._index=v&&this.close(),Promise.resolve($)}}t.ArrayIterator=b;class y extends c{constructor({start:m=0,step:v=1,end:j}={}){super(),Number.isFinite(m)&&(m=Math.trunc(m)),this._next=m,Number.isFinite(v)&&(v=Math.trunc(v)),this._step=v;const q=v>=0,$=q?1/0:-1/0;Number.isFinite(j)?j=Math.trunc(j):j!==-$&&(j=$),this._last=j,!Number.isFinite(m)||(q?m>j:m=0?q>j:qthis._init(v)),this._sourceStarted=v!==!1}get maxBufferSize(){return this._maxBufferSize}set maxBufferSize(m){m!==1/0&&(m=Number.isFinite(m)?Math.max(Math.trunc(m),1):4),this._maxBufferSize!==m&&(this._maxBufferSize=m,this._state===t.OPEN&&this._fillBuffer())}_init(m){let v=!1;this._reading=!0,this._begin(()=>{if(v)throw new Error("done callback called multiple times");v=!0,this._reading=!1,this._changeState(t.OPEN),m?this._fillBufferAsync():this.readable=!0})}_begin(m){m()}read(){if(this.done)return null;this._sourceStarted||(this._sourceStarted=!0);const m=this._buffer;let v;return m.empty?(v=null,this.readable=!1):v=m.shift(),!this._reading&&m.length0&&(this._pushedCount=0,this._reading=!0,this._read(m,()=>{if(!m)throw new Error("done callback called multiple times");m=0,this._reading=!1,this.closed?this._completeClose():this._pushedCount&&(this.readable=!0,this._buffer.length{this._reading=!1,this._fillBuffer()}))}close(){this._reading?this._changeState(t.CLOSING):this._completeClose()}_completeClose(){this._changeState(t.CLOSED)&&(this._reading=!0,this._flush(()=>{if(!this._reading)throw new Error("done callback called multiple times");this._reading=!1,this._buffer.empty&&this._endAsync()}))}_destroy(m,v){this._buffer.clear(),v()}_flush(m){m()}_toStringDetails(){const m=this._buffer;return`{${m.empty?"":`next: ${m.first}, `}buffer: ${m.length}}`}}t.BufferedIterator=O;class T extends O{constructor(m,v=m||{}){super(v),this._boundPush=j=>this._push(j),me(m)||(m=v.source),he(m)?this.source=m:m&&(this._createSource=ve(m)?()=>m:m,this._sourceStarted&&this._loadSourceAsync()),this._optional=!!v.optional,this._destroySource=v.destroySource!==!1}get source(){return Ie(this._createSource)&&this._loadSourceAsync(),this._source}set source(m){const v=this._source=this._validateSource(m);v[t.DESTINATION]=this,this.done?this._destroySource&&v.destroy():v.done?this.close():(v.on("end",Q),v.on("readable",N),v.on("error",P))}_loadSourceAsync(){Ie(this._createSource)&&(Promise.resolve(this._createSource()).then(m=>{delete this._createSource,this.source=m,this._fillBuffer()},m=>this.emit("error",m)),this._createSource=null)}_validateSource(m,v=!1){if(this._source||typeof this._createSource<"u")throw new Error("The source cannot be changed after it has been set");return I(m,v)}_read(m,v){const j=()=>{this._pushedCountthis._readAndTransform(j,v)):v()};this._readAndTransform(j,v)}_readAndTransform(m,v){let j;const q=this.source;!q||q.done||(j=q.read())===null?v():this._optional?this._optionalTransform(j,m):this._transform(j,m,this._boundPush)}_optionalTransform(m,v){const j=this._pushedCount;this._transform(m,()=>{j===this._pushedCount&&this._push(m),v()},this._boundPush)}_transform(m,v,j){j(m),v()}_closeWhenDone(){this.close()}_end(m){const v=this._source;v&&(v.removeListener("end",Q),v.removeListener("error",P),v.removeListener("readable",N),delete v[t.DESTINATION],this._destroySource&&v.destroy()),super._end(m)}}t.TransformIterator=T;function x(){this[t.DESTINATION].readable=!0}function P(A){this[t.DESTINATION].emit("error",A)}function B(){this[t.DESTINATION].close()}function Q(){this[t.DESTINATION]._closeWhenDone()}function N(){this[t.DESTINATION]._sourceStarted!==!1&&this[t.DESTINATION]._fillBuffer()}class D extends T{constructor(m,v){if(super(m,v),this._offset=0,this._limit=1/0,this._filter=j=>!0,v=v||(me(m)?null:m),v){const j=Ie(v)?v:v.transform,{limit:q,offset:$,filter:G,map:Y,prepend:J,append:re}=v;$===1/0||q===-1/0?this._limit=0:(Number.isFinite($)&&(this._offset=Math.max(Math.trunc($),0)),Number.isFinite(q)&&(this._limit=Math.max(Math.trunc(q),0)),Ie(G)&&(this._filter=G),Ie(Y)&&(this._map=Y),this._transform=Ie(j)?j:null),J&&(this._prepender=he(J)?J:_e(J)),re&&(this._appender=he(re)?re:_e(re))}}_read(m,v){const j=()=>this._readAndTransformSimple(m,q,v);this._readAndTransformSimple(m,q,v);function q(){a(j)}}_readAndTransformSimple(m,v,j){let q;const{source:$}=this;if(!$||$.done){j();return}for(this._limit===0&&this.close();!this.closed&&this._pushedCount"u"?q:this._map(q);if(G===null)this._optional&&this._push(q);else if(!Ie(this._transform))this._push(G);else{this._optional?this._optionalTransform(G,v):this._transform(G,v,this._boundPush);return}--this._limit===0&&this.close()}j()}_begin(m){this._insert(this._prepender,m),delete this._prepender}_flush(m){this._insert(this._appender,m),delete this._appender}_insert(m,v){const j=$=>this._push($);!m||m.done?v():(m.on("data",j),m.on("end",q));function q(){m.removeListener("data",j),m.removeListener("end",q),v()}}}t.SimpleTransformIterator=D;class F extends T{constructor(m,v){if(super(m,v),this._transformerQueue=[],v){const j=Ie(v)?v:v.multiTransform;j&&(this._createTransformer=j)}}_read(m,v){const j=this._transformerQueue,q=this._optional;let $,G;for(;($=j[0])&&$.transformer.done;){q&&$.item!==null&&(m--,this._push($.item)),j.shift();const{transformer:J}=$;J.removeListener("end",N),J.removeListener("readable",N),J.removeListener("error",P)}const{source:Y}=this;for(;Y&&!Y.done&&j.length0&&(G=J.read())!==null;)this._push(G),q&&($.item=null)}else Y&&Y.done&&this.close();v()}_createTransformer(m){return new p(m)}_closeWhenDone(){this._transformerQueue.length||this.close()}_end(m){if(super._end(m),this._destroySource)for(const v of this._transformerQueue)v.transformer.destroy()}}t.MultiTransformIterator=F;class W extends O{constructor(m,v={}){super(v),this._sources=[],this._currentSource=-1;const j=v.autoStart!==!1;if(he(m))m.on("error",q=>this.emit("error",q)),this._pending={loading:!1,sources:m},j&&this._loadSources();else if(Array.isArray(m)&&m.length>0)for(const q of m)this._addSource(q);else j&&this.close();this._destroySources=v.destroySources!==!1}_loadSources(){const m=this._pending.sources;this._pending.loading=!0,m.done?(delete this._pending,this.close()):(m.on("data",v=>{this._addSource(v),this._fillBufferAsync()}),m.on("end",()=>{delete this._pending,this._fillBuffer()}))}_addSource(m){ve(m)&&(m=ie(m)),m.done||(this._sources.push(m),m[t.DESTINATION]=this,m.on("error",P),m.on("readable",N),m.on("end",z))}_removeEmptySources(){this._sources=this._sources.filter((m,v)=>(m.done&&v<=this._currentSource&&this._currentSource--,!m.done)),this._fillBuffer()}_read(m,v){var j;((j=this._pending)===null||j===void 0?void 0:j.loading)===!1&&this._loadSources();let q=0,$;for(;q!==(q=m);)for(let G=0;G0;G++)this._currentSource=(this._currentSource+1)%this._sources.length,($=this._sources[this._currentSource].read())!==null&&(m--,this._push($));!this._pending&&this._sources.length===0&&this.close(),v()}_end(m=!1){if(super._end(m),this._destroySources){for(const v of this._sources)v.destroy();this._pending&&(this._pending.sources.destroy(),delete this._pending)}}}t.UnionIterator=W;function z(){this[t.DESTINATION]._removeEmptySources()}class M extends T{constructor(m){super(m,{autoStart:!1}),this._readPosition=0,this._reading=!1,m&&(this.readable=!0)}_init(){}close(){c.prototype.close.call(this)}get source(){return super.source}set source(m){const v=this._source=this._validateSource(m),j=v&&v[t.DESTINATION]||(v[t.DESTINATION]=new C(v));this.done?this._destroySource&&v.destroy():j.endsAt(0)?this.close():(j.register(this),(v._sourceStarted===!1||j.readAt(0)!==null)&&(this.readable=!0));const q=this._propertyCallbacks;for(const $ in q){const G=q[$];for(const Y of G)this._getSourceProperty($,Y)}}_validateSource(m,v=!1){const j=m&&m[t.DESTINATION];return super._validateSource(m,!j||j instanceof C)}getProperty(m,v){const{source:j}=this,q=this._properties,$=q&&m in q;if(!v)return $?q&&q[m]:j&&j.getProperty(m);super.getProperty(m,v),j&&!$&&this._getSourceProperty(m,v)}_getSourceProperty(m,v){this.source.getProperty(m,j=>{(!this._properties||!(m in this._properties))&&v(j)})}getProperties(){const m=this.source?this.source.getProperties():{},v=this._properties;for(const j in v)m[j]=v[j];return m}_toStringDetails(){return`{source: ${this.source?this.source.toString():"none"}}`}read(){this._sourceStarted||(this._sourceStarted=!0);const m=this.source;let v=null;if(!this.done&&m){const j=m[t.DESTINATION];(v=j.readAt(this._readPosition))!==null?this._readPosition++:this.readable=!1,j.endsAt(this._readPosition)&&this.close()}return v}_end(m){const v=this.source,j=v==null?void 0:v[t.DESTINATION];j&&j.unregister(this),O.prototype._end.call(this,m)}}t.ClonedIterator=M;class C{constructor(m){if(this._history=[],this._trackers=new Set,this._source=m,!m.done){const v=()=>{for(const $ of this._trackers)$.readable=!0},j=$=>{for(const G of this._trackers)G.emit("error",$)},q=()=>{for(const $ of this._trackers)$._sourceStarted!==!1&&$._readPosition===this._history.length&&$.close();this._trackers.clear(),m.removeListener("end",q),m.removeListener("error",j),m.removeListener("readable",v)};m.on("end",q),m.on("error",j),m.on("readable",v)}}register(m){this._source.done||this._trackers.add(m)}unregister(m){this._trackers.delete(m)}readAt(m){let v=null;return m{this._source=null,this.source=j}).catch(j=>this.emit("error",j))):m&&(this.source=m)}set source(m){let v=m;if(this._source!==null)throw new Error("The source cannot be changed after it has been set");if(L(v)&&(v=v[Symbol.iterator]()),H(v)){let j=v;v=new e.EventEmitter,v.read=()=>{if(j!==null){let q;for(;!(q=j.next()).done;)if(q.value!==null)return q.value;j=null,this.close()}return null}}else v=I(v);if(this.done){this._destroySource&&Ie(v.destroy)&&v.destroy();return}v[t.DESTINATION]=this,v.on("end",B),v.on("error",P),v.on("readable",x),this._source=v,this.readable=v.readable!==!1}read(){if(this._source!==null&&this._source.readable!==!1){const m=this._source.read();if(m!==null)return m;this.readable=!1}return null}_end(m=!1){this._source!==null&&(this._source.removeListener("end",B),this._source.removeListener("error",P),this._source.removeListener("readable",x),delete this._source[t.DESTINATION],this._destroySource&&Ie(this._source.destroy)&&this._source.destroy(),this._source=null),super._end(m)}}t.WrappingIterator=V;function ie(A,m){if(m&&("autoStart"in m||"optional"in m||"source"in m||"maxBufferSize"in m))return A&&!he(A)&&(A=new V(A)),new T(A,m);if(!A)return ne();if(ve(A))return new V(A,m);if(A instanceof c)return A;if(Array.isArray(A))return _e(A);if(L(A)||H(A)||he(A))return new V(A,m);throw new TypeError(`Invalid source: ${A}`)}t.wrap=ie;function ne(){return new f}t.empty=ne;function fe(A){return new p(A)}t.single=fe;function _e(A){return new b(A)}t.fromArray=_e;function we(A){return new V(A)}t.fromIterator=we;function Ce(A){return new V(A)}t.fromIterable=Ce;function oe(A){return new W(A)}t.union=oe;function ae(A,m,v){return new y({start:A,end:m,step:v})}t.range=ae;function Ae(A,m){return m?A.bind(m):A}function Ie(A){return typeof A=="function"}t.isFunction=Ie;function he(A){return Ie(A==null?void 0:A.on)}t.isEventEmitter=he;function ve(A){return Ie(A==null?void 0:A.then)}t.isPromise=ve;function me(A){return A&&(he(A)||ve(A)||Ie(A))}t.isSourceExpression=me;function L(A){return A&&Symbol.iterator in A}t.isIterable=L;function H(A){return Ie(A==null?void 0:A.next)}t.isIterator=H})(Wt);Object.defineProperty(Jm,"__esModule",{value:!0});Jm.ClosableTransformIterator=void 0;const vW=Wt;class wW extends vW.TransformIterator{constructor(e,r){super(e,r),this.onClose=r.onClose}_end(e){this.onClose(),super._end(e)}}Jm.ClosableTransformIterator=wW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(h0,t),r(E0,t),r(Xm,t),r(cl,t),r(Km,t),r(Jm,t)})(ft);var tg={};Object.defineProperty(tg,"__esModule",{value:!0});tg.MemoryPhysicalQueryPlanLogger=void 0;const Jy=sr;class SW{constructor(){this.children=new Map}logOperation(e,r,n,a,s,o){const u={actor:s,logicalOperator:e,physicalOperator:r,rawNode:n,children:[],metadata:o};if(this.children.set(n,u.children),this.rootNode){if(!a)throw new Error("Detected more than one parent-less node");const c=this.children.get(a);if(!c)throw new Error("Could not find parent node");c.push(u)}else{if(a)throw new Error("No root node has been set yet, while a parent is being referenced");this.rootNode=u}}toJson(){return this.rootNode?this.planNodeToJson(this.rootNode):{}}planNodeToJson(e){return{logical:e.logicalOperator,physical:e.physicalOperator,...this.getLogicalMetadata(e.rawNode),...e.metadata,...e.children.length>0?{children:e.children.map(r=>this.planNodeToJson(r))}:{}}}getLogicalMetadata(e){if("type"in e){const r=e;switch(r.type){case"pattern":return{pattern:this.quadToString(r)};case"project":return{variables:r.variables.map(n=>n.value)}}}return{}}quadToString(e){return`${(0,Jy.termToString)(e.subject)} ${(0,Jy.termToString)(e.predicate)} ${(0,Jy.termToString)(e.object)}${e.graph.termType==="DefaultGraph"?"":` ${(0,Jy.termToString)(e.graph)}`}`}}tg.MemoryPhysicalQueryPlanLogger=SW;Object.defineProperty(Um,"__esModule",{value:!0});Um.QueryEngineBase=void 0;const TW=ft,Tn=Ht,rh=et,EW=tg;class Bb{constructor(e){this.actorInitQuery=e,this.defaultFunctionArgumentsCache={}}async queryBindings(e,r){return this.queryOfType(e,r,"bindings")}async queryQuads(e,r){return this.queryOfType(e,r,"quads")}async queryBoolean(e,r){return this.queryOfType(e,r,"boolean")}async queryVoid(e,r){return this.queryOfType(e,r,"void")}async queryOfType(e,r,n){const a=await this.query(e,r);if(a.resultType===n)return await a.execute();throw new Error(`Query result type '${n}' was expected, while '${a.resultType}' was found.`)}async query(e,r){const n=await this.queryOrExplain(e,r);if("explain"in n)throw new Error("Tried to explain a query when in query-only mode");return n}async explain(e,r,n){return r.explain=n,await this.queryOrExplain(e,r)}async queryOrExplain(e,r){r=r||{};for(const f in r)this.actorInitQuery.contextKeyShortcuts[f]&&(r[this.actorInitQuery.contextKeyShortcuts[f]]=r[f],delete r[f]);let n=new rh.ActionContext(r),a={language:"sparql",version:"1.1"};n.has(Tn.KeysInitQuery.queryFormat)&&(a=n.get(Tn.KeysInitQuery.queryFormat),n=n.delete(Tn.KeysInitQuery.queryFormat),a.language==="graphql"&&(n=n.setDefault(Tn.KeysInitQuery.graphqlSingularizeVariables,{})));const s=n.get(Tn.KeysInitQuery.baseIRI);n=n.setDefault(Tn.KeysInitQuery.queryTimestamp,new Date).setDefault(Tn.KeysRdfResolveQuadPattern.sourceIds,new Map).setDefault(Tn.KeysCore.log,this.actorInitQuery.logger).setDefault(Tn.KeysInitQuery.functionArgumentsCache,this.defaultFunctionArgumentsCache).setDefault(Tn.KeysRdfResolveQuadPattern.hypermediaSourcesAggregatedStores,new Map),n=(await this.actorInitQuery.mediatorContextPreprocess.mediate({context:n})).context;const o=n.get(Tn.KeysInitQuery.explain);let u;if(typeof e=="string"){n=n.set(Tn.KeysInitQuery.queryString,e);const f=await this.actorInitQuery.mediatorQueryParse.mediate({context:n,query:e,queryFormat:a,baseIRI:s});u=f.operation,f.baseIRI&&(n=n.set(Tn.KeysInitQuery.baseIRI,f.baseIRI))}else u=e;if(o==="parsed")return{explain:!0,type:o,data:u};n.has(Tn.KeysInitQuery.initialBindings)&&(u=(0,TW.materializeOperation)(u,n.get(Tn.KeysInitQuery.initialBindings)),n=n.delete(Tn.KeysInitQuery.queryString));const c=await this.actorInitQuery.mediatorOptimizeQueryOperation.mediate({context:n,operation:u});if(u=c.operation,n=c.context||n,o==="logical")return{explain:!0,type:o,data:u};n=n.set(Tn.KeysInitQuery.query,u);let l;o==="physical"&&(l=new EW.MemoryPhysicalQueryPlanLogger,n=n.set(Tn.KeysInitQuery.physicalQueryPlanLogger,l));const d=await this.actorInitQuery.mediatorQueryOperation.mediate({context:n,operation:u});d.context=n;const h=Bb.internalToFinalResult(d);if(l){switch(h.resultType){case"bindings":await(await h.execute()).toArray();break;case"quads":await(await h.execute()).toArray();break;case"boolean":await h.execute();break;case"void":await h.execute();break}return{explain:!0,type:o,data:l.toJson()}}return h}async getResultMediaTypes(e){return e=rh.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeCombiner.mediate({context:e,mediaTypes:!0})).mediaTypes}async getResultMediaTypeFormats(e){return e=rh.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeFormatCombiner.mediate({context:e,mediaTypeFormats:!0})).mediaTypeFormats}async resultToString(e,r,n){if(n=rh.ActionContext.ensureActionContext(n),!r)switch(e.resultType){case"bindings":r="application/json";break;case"quads":r="application/trig";break;default:r="simple";break}const a={...await Bb.finalToInternalResult(e),context:n};return(await this.actorInitQuery.mediatorQueryResultSerialize.mediate({context:n,handle:a,handleMediaType:r})).handle}invalidateHttpCache(e,r){return r=rh.ActionContext.ensureActionContext(r),this.actorInitQuery.mediatorHttpInvalidate.mediate({url:e,context:r})}static internalToFinalResult(e){switch(e.type){case"bindings":return{resultType:"bindings",execute:async()=>e.bindingsStream,metadata:async()=>await e.metadata(),context:e.context};case"quads":return{resultType:"quads",execute:async()=>e.quadStream,metadata:async()=>await e.metadata(),context:e.context};case"boolean":return{resultType:"boolean",execute:async()=>e.execute(),context:e.context};case"void":return{resultType:"void",execute:async()=>e.execute(),context:e.context}}}static async finalToInternalResult(e){switch(e.resultType){case"bindings":return{type:"bindings",bindingsStream:await e.execute(),metadata:async()=>await e.metadata()};case"quads":return{type:"quads",quadStream:await e.execute(),metadata:async()=>await e.metadata()};case"boolean":return{type:"boolean",execute:()=>e.execute()};case"void":return{type:"void",execute:()=>e.execute()}}}}Um.QueryEngineBase=Bb;(function(t){var e=g&&g.__createBinding||(Object.create?function(a,s,o,u){u===void 0&&(u=o);var c=Object.getOwnPropertyDescriptor(s,o);(!c||("get"in c?!s.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(a,u,c)}:function(a,s,o,u){u===void 0&&(u=o),a[u]=s[o]}),r=g&&g.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryEngineBase=void 0,r(Kp,t),r($m,t);var n=Um;Object.defineProperty(t,"QueryEngineBase",{enumerable:!0,get:function(){return n.QueryEngineBase}})})(vm);var MC={},rg={};Object.defineProperty(rg,"__esModule",{value:!0});rg.LoggerVoid=void 0;const OW=aA;class AW extends OW.Logger{debug(){}error(){}fatal(){}info(){}trace(){}warn(){}}rg.LoggerVoid=AW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rg,t)})(MC);var ng={},ig={},ag={},sg={};Object.defineProperty(sg,"__esModule",{value:!0});sg.ActorExtractLinks=void 0;const xW=et;class RW extends xW.Actor{constructor(e){super(e)}static collectStream(e,r){return new Promise((n,a)=>{const s=[];e.on("error",a),e.on("data",o=>r(o,s)),e.on("end",()=>{n(s)})})}}sg.ActorExtractLinks=RW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sg,t)})(ag);Object.defineProperty(ig,"__esModule",{value:!0});ig.ActorExtractLinksPredicates=void 0;const AP=ag;class IW extends AP.ActorExtractLinks{constructor(e){super(e),this.predicates=e.predicateRegexes.map(r=>new RegExp(r,"u"))}async test(e){return!0}async run(e){return{links:await AP.ActorExtractLinks.collectStream(e.metadata,(r,n)=>{if(!this.checkSubject||this.subjectMatches(r.subject.value,e.url)){for(const a of this.predicates)if(a.test(r.predicate.value)){n.push({url:r.object.value});break}}})}}subjectMatches(e,r){const n=e.indexOf("#");return n>=0&&(e=e.slice(0,n)),e===r}}ig.ActorExtractLinksPredicates=IW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ig,t)})(ng);var LC={},og={};Object.defineProperty(og,"__esModule",{value:!0});og.ActorExtractLinksQuadPatternQuery=void 0;const xP=ag,PW=Ht,DW=yt,Kl=hn,RP=Tt,YE=new DW.DataFactory,Yy=YE.variable("__comunica:pp_var");class lp extends xP.ActorExtractLinks{constructor(e){super(e)}static getCurrentQuery(e){const r=e.get(PW.KeysInitQuery.query);if(r)return r}static matchQuadPatternInOperation(e,r){const n=[];return RP.Util.recurseOperation(r,{pattern(a){return(0,Kl.matchPatternComplete)(e,a)&&n.push(a),!1},path(a){return RP.Util.recurseOperation(a,{link(s){const o=YE.quad(Yy,s.iri,Yy,a.graph);return(0,Kl.matchPatternComplete)(e,o)&&n.push(o),!1},nps(s){for(const o of s.iris){const u=YE.quad(Yy,o,Yy,a.graph);(0,Kl.matchPatternComplete)(e,u)&&n.push(u)}return!1}}),!1}}),n}async test(e){if(!lp.getCurrentQuery(e.context))throw new Error(`Actor ${this.name} can only work in the context of a query.`);return!0}async run(e){const r=lp.getCurrentQuery(e.context);return{links:await xP.ActorExtractLinks.collectStream(e.metadata,(n,a)=>{const s=lp.matchQuadPatternInOperation(n,r);if(s.length>0)if(this.onlyVariables){const o={};for(const u of s)for(const c of(0,Kl.filterQuadTermNames)(u,l=>l.termType==="Variable"))o[c]=!0;for(const u of Object.keys(o))n[u].termType==="NamedNode"&&a.push({url:n[u].value})}else for(const o of(0,Kl.getNamedNodes)((0,Kl.getTerms)(n)))a.push({url:o.value})})}}}og.ActorExtractLinksQuadPatternQuery=lp;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(og,t)})(LC);var BC={},ug={};Object.defineProperty(ug,"__esModule",{value:!0});ug.MediatorCombineArray=void 0;const NW=et;class jW extends NW.Mediator{constructor(e){super(e),this.combiner=this.createCombiner()}async mediate(e){let r;try{r=this.publish(e)}catch{r=[]}await Promise.all(r.map(({reply:a})=>a));const n=await Promise.all(r.map(a=>a.actor.runObservable(e)));return this.combiner(n)}mediateWith(){throw new Error("Method not supported.")}createCombiner(){return e=>{const r={};for(const n of this.fields)r[n]=[],[[]].concat(e.map(a=>a[n])).forEach((a,s,o)=>{a&&r[n].push(...a)});return r}}}ug.MediatorCombineArray=jW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ug,t)})(BC);var YA={},cg={};Object.defineProperty(cg,"__esModule",{value:!0});cg.MediatorCombinePipeline=void 0;const CW=et;class FW extends CW.Mediator{constructor(e){super(e)}async mediate(e){let r;try{r=this.publish(e)}catch{return e}if(this.filterErrors){const a=[];for(const s of r)try{await s.reply,a.push(s)}catch{}r=a}if(r=await Promise.all(r.map(async({actor:a,reply:s})=>({actor:a,reply:await s}))),this.order){const a=s=>{const o=this.field?s[this.field]:s;if(typeof o!="number")throw new Error("Cannot order elements that are not numbers.");return o};r=r.sort((s,o)=>(this.order==="increasing"?1:-1)*(a(s.reply)-a(o.reply)))}let n=e;for(const{actor:a}of r)n={...n,...await a.runObservable(n)};return n}mediateWith(){throw new Error("Method not supported.")}}cg.MediatorCombinePipeline=FW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cg,t)})(YA);var $C={},lg={},A0={},dg={};Object.defineProperty(dg,"__esModule",{value:!0});dg.ActorOptimizeQueryOperation=void 0;const MW=et;class LW extends MW.Actor{constructor(e){super(e)}}dg.ActorOptimizeQueryOperation=LW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dg,t)})(A0);Object.defineProperty(lg,"__esModule",{value:!0});lg.ActorOptimizeQueryOperationSetSeedSourcesQuadpatternIris=void 0;const BW=A0,IP=Ht,MS=Tt;class $W extends BW.ActorOptimizeQueryOperation{constructor(e){super(e)}async test(e){return!0}async run(e){const r=e.context.get(IP.KeysRdfResolveQuadPattern.sources);if(!r||r.length===0){const n=[...new Set(this.extractIrisFromOperation(e.operation))];e.context=e.context.set(IP.KeysRdfResolveQuadPattern.sources,n)}return{...e,context:e.context}}extractIrisFromOperation(e){const r=[];return MS.Util.recurseOperation(e,{[MS.Algebra.types.PATH]:n=>(this.extractSubjects&&n.subject.termType==="NamedNode"&&r.push(n.subject.value),this.extractObjects&&n.object.termType==="NamedNode"&&r.push(n.object.value),this.extractGraphs&&n.graph.termType==="NamedNode"&&r.push(n.graph.value),!1),[MS.Algebra.types.PATTERN]:n=>(this.extractSubjects&&n.subject.termType==="NamedNode"&&r.push(n.subject.value),this.extractPredicates&&n.predicate.termType==="NamedNode"&&r.push(n.predicate.value),this.extractObjects&&n.object.termType==="NamedNode"&&(this.extractVocabIris||n.predicate.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#type")&&r.push(n.object.value),this.extractGraphs&&n.graph.termType==="NamedNode"&&r.push(n.graph.value),!1)}),r}}lg.ActorOptimizeQueryOperationSetSeedSourcesQuadpatternIris=$W;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lg,t)})($C);var UC={},fg={};Object.defineProperty(fg,"__esModule",{value:!0});fg.ActorOptimizeQueryOperationJoinBgp=void 0;const UW=A0,qW=Tt;class VW extends UW.ActorOptimizeQueryOperation{async test(e){return!0}async run(e){return{operation:qW.Util.mapOperation(e.operation,{join(n,a){return n.input.every(s=>s.type==="bgp")?{recurse:!1,result:a.createBgp(n.input.flatMap(s=>s.patterns))}:{recurse:!1,result:n}}}),context:e.context}}}fg.ActorOptimizeQueryOperationJoinBgp=VW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fg,t)})(UC);var qC={},hg={};Object.defineProperty(hg,"__esModule",{value:!0});hg.ActorOptimizeQueryOperationBgpToJoin=void 0;const HW=A0,kW=Tt;class QW extends HW.ActorOptimizeQueryOperation{async test(e){return!0}async run(e){return{operation:kW.Util.mapOperation(e.operation,{bgp(n,a){return{recurse:!1,result:a.createJoin(n.patterns)}}}),context:e.context}}}hg.ActorOptimizeQueryOperationBgpToJoin=QW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hg,t)})(qC);var VC={},pg={};Object.defineProperty(pg,"__esModule",{value:!0});pg.ActorOptimizeQueryOperationJoinConnected=void 0;const GW=A0,PP=Tt;class dp extends GW.ActorOptimizeQueryOperation{async test(e){return!0}async run(e){return{operation:PP.Util.mapOperation(e.operation,{join(n,a){return{recurse:!1,result:dp.cluster(n,a)}}}),context:e.context}}static cluster(e,r){const n=e.input.map(u=>({inScopeVariables:Object.fromEntries(PP.Util.inScopeVariables(u).map(c=>[c.value,!0])),entries:[u]}));let a,s=n;do a=s,s=dp.clusterIteration(a);while(a.length!==s.length);const o=s.map(u=>r.createJoin(u.entries));return o.length===1?o[0]:r.createJoin(o,!1)}static clusterIteration(e){const r=[];for(const n of e){let a=!1;for(const s of r)if(dp.haveOverlappingVariables(n.inScopeVariables,s.inScopeVariables)){s.entries=[...s.entries,...n.entries],s.inScopeVariables={...s.inScopeVariables,...n.inScopeVariables},a=!0;break}a||r.push({inScopeVariables:n.inScopeVariables,entries:n.entries})}return r}static haveOverlappingVariables(e,r){for(const n of Object.keys(e))if(r[n])return!0;return!1}}pg.ActorOptimizeQueryOperationJoinConnected=dp;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pg,t)})(VC);var jf={},yg={};Object.defineProperty(yg,"__esModule",{value:!0});yg.MediatorNumber=void 0;const zW=et;class WW extends zW.Mediator{constructor(e){super(e),this.indexPicker=this.createIndexPicker()}createIndexPicker(){switch(this.type){case"min":return e=>e.reduce((r,n,a)=>{const s=this.getOrDefault(n[this.field],Number.POSITIVE_INFINITY);return s!==null&&(Number.isNaN(r[0])||r[0]>s)?[s,a]:r},[Number.NaN,-1])[1];case"max":return e=>e.reduce((r,n,a)=>{const s=this.getOrDefault(n[this.field],Number.NEGATIVE_INFINITY);return s!==null&&(Number.isNaN(r[0])||r[0]u);const a=[];if(this.ignoreErrors){const u={};u[this.field]=null,n=n.map(c=>c.catch(l=>(a.push(l),u)))}const s=await Promise.all(n),o=this.indexPicker(s);if(o<0)throw new Error(`All actors rejected their test in ${this.name} -${a.map(u=>u.message).join(` -`)}`);return r[o].actor}}yg.MediatorNumber=WW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yg,t)})(jf);var HC={},bg={},ba={},mg={};Object.defineProperty(mg,"__esModule",{value:!0});mg.MetadataValidationState=void 0;class XW{constructor(){this.invalidateListeners=[],this.valid=!0}addInvalidateListener(e){this.invalidateListeners.push(e)}invalidate(){if(this.valid){this.valid=!1;for(const e of this.invalidateListeners)e()}}}mg.MetadataValidationState=XW;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mg,t)})(ba);Object.defineProperty(bg,"__esModule",{value:!0});bg.ActorQueryOperationValues=void 0;const KW=Hn,JW=ft,YW=ba,ZW=Wt,eX=yt,tX=new KW.BindingsFactory,rX=new eX.DataFactory;class nX extends JW.ActorQueryOperationTyped{constructor(e){super(e,"values")}async testOperation(e,r){return!0}async runOperation(e,r){const n=new ZW.ArrayIterator(e.bindings.map(o=>tX.bindings(Object.entries(o).map(([u,c])=>[rX.variable(u.slice(1)),c])))),a=e.variables;return{type:"bindings",bindingsStream:n,metadata:()=>Promise.resolve({state:new YW.MetadataValidationState,cardinality:{type:"exact",value:e.bindings.length},canContainUndefs:e.bindings.some(o=>a.some(u=>!(`?${u.value}`in o))),variables:a})}}}bg.ActorQueryOperationValues=nX;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bg,t)})(HC);var Ci={},gg={};Object.defineProperty(gg,"__esModule",{value:!0});gg.MediatorRace=void 0;const iX=et;class aX extends iX.Mediator{constructor(e){super(e)}mediateWith(e,r){return new Promise((n,a)=>{const s=[];for(const o of r)o.reply.then(()=>{n(o.actor)}).catch(u=>{s.push(u),s.length===r.length&&a(new Error(`${this.name} mediated over all rejecting actors: -${s.map(c=>c.message).join(` -`)}`))})})}}gg.MediatorRace=aX;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gg,t)})(Ci);var kC={},_g={},ZA={},vg={};Object.defineProperty(vg,"__esModule",{value:!0});vg.ActorQueryParse=void 0;const sX=et;class oX extends sX.Actor{constructor(e){super(e)}}vg.ActorQueryParse=oX;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vg,t)})(ZA);Object.defineProperty(_g,"__esModule",{value:!0});_g.ActorQueryParseSparql=void 0;const uX=ZA,cX=Tt,lX=w0;class dX extends uX.ActorQueryParse{constructor(e){super(e),this.prefixes=Object.freeze(this.prefixes)}async test(e){if(e.queryFormat&&e.queryFormat.language!=="sparql")throw new Error("This actor can only parse SPARQL queries");return!0}async run(e){const n=new lX.Parser({prefixes:this.prefixes,baseIRI:e.baseIRI,sparqlStar:!0}).parse(e.query);return{baseIRI:n.type==="query"?n.base:void 0,operation:(0,cX.translate)(n,{quads:!0,prefixes:this.prefixes,blankToVariable:!0,baseIRI:e.baseIRI})}}}_g.ActorQueryParseSparql=dX;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_g,t)})(kC);var QC={},wg={},GC={},ex={},tx={},nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.DirectiveNodeHandlerAdapter=void 0;class fX{constructor(e,r,n){this.targetKind=e,this.util=r,this.settings=n}getDirectiveConditionalValue(e,r){const n=this.util.getArgument(e.arguments,"if");if(!n)throw new Error(`The directive ${e.name.value} is missing an if-argument.`);const a=this.util.handleNodeValue(n.value,n.name.value,r);if(a.terms.length!==1)throw new Error(`Can not apply the directive ${e.name.value} with a list.`);return a.terms[0]}isDirectiveScopeAll(e){const r=this.util.getArgument(e.arguments,"scope");return r&&r.value.kind==="EnumValue"&&r.value.value==="all"}}nu.DirectiveNodeHandlerAdapter=fX;var Sg={};Object.defineProperty(Sg,"__esModule",{value:!0});Sg.DirectiveNodeHandlerInclude=void 0;const hX=nu;class pX extends hX.DirectiveNodeHandlerAdapter{constructor(e,r){super("include",e,r)}handle(e,r){const n=this.getDirectiveConditionalValue(e.directive,r);return n.termType==="Literal"&&n.value==="false"?{ignore:!0}:{}}}Sg.DirectiveNodeHandlerInclude=pX;var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0});Tg.DirectiveNodeHandlerOptional=void 0;const yX=nu;class bX extends yX.DirectiveNodeHandlerAdapter{constructor(e,r){super("optional",e,r)}handle(e,r){return{operationOverrider:n=>this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),n)}}}Tg.DirectiveNodeHandlerOptional=bX;var Eg={},Cf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SingularizeState=void 0,function(e){e[e.SINGLE=0]="SINGLE",e[e.PLURAL=1]="PLURAL"}(t.SingularizeState||(t.SingularizeState={}))})(Cf);Object.defineProperty(Eg,"__esModule",{value:!0});Eg.DirectiveNodeHandlerPlural=void 0;const mX=Cf,gX=nu;class _X extends gX.DirectiveNodeHandlerAdapter{constructor(e,r){super("plural",e,r)}handle(e,r){return this.isDirectiveScopeAll(e.directive)&&(r.singularizeState=mX.SingularizeState.PLURAL),delete r.singularizeVariables[this.util.nameToVariable(e.fieldLabel,r).value],{}}}Eg.DirectiveNodeHandlerPlural=_X;var Og={};Object.defineProperty(Og,"__esModule",{value:!0});Og.DirectiveNodeHandlerSingle=void 0;const vX=Cf,wX=nu;class SX extends wX.DirectiveNodeHandlerAdapter{constructor(e,r){super("single",e,r)}handle(e,r){return this.isDirectiveScopeAll(e.directive)&&(r.singularizeState=vX.SingularizeState.SINGLE),r.singularizeVariables[this.util.nameToVariable(e.fieldLabel,r).value]=!0,{}}}Og.DirectiveNodeHandlerSingle=SX;var Ag={};Object.defineProperty(Ag,"__esModule",{value:!0});Ag.DirectiveNodeHandlerSkip=void 0;const TX=nu;class EX extends TX.DirectiveNodeHandlerAdapter{constructor(e,r){super("skip",e,r)}handle(e,r){const n=this.getDirectiveConditionalValue(e.directive,r);return n.termType==="Literal"&&n.value==="true"?{ignore:!0}:{}}}Ag.DirectiveNodeHandlerSkip=EX;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nu,t),r(Sg,t),r(Tg,t),r(Eg,t),r(Og,t),r(Ag,t)})(tx);var zC={},ma={};Object.defineProperty(ma,"__esModule",{value:!0});ma.NodeValueHandlerAdapter=void 0;class OX{constructor(e,r,n){this.targetKind=e,this.util=r,this.settings=n}}ma.NodeValueHandlerAdapter=OX;var xg={};Object.defineProperty(xg,"__esModule",{value:!0});xg.NodeValueHandlerBoolean=void 0;const AX=ma;class xX extends AX.NodeValueHandlerAdapter{constructor(e,r){super("BooleanValue",e,r),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")}handle(e,r,n){return{terms:[this.util.dataFactory.literal(e.value?"true":"false",this.datatype)]}}}xg.NodeValueHandlerBoolean=xX;var Rg={};Object.defineProperty(Rg,"__esModule",{value:!0});Rg.NodeValueHandlerEnum=void 0;const RX=ma;class IX extends RX.NodeValueHandlerAdapter{constructor(e,r){super("EnumValue",e,r)}handle(e,r,n){return{terms:[this.util.valueToNamedNode(e.value,n.context)]}}}Rg.NodeValueHandlerEnum=IX;var Ig={};Object.defineProperty(Ig,"__esModule",{value:!0});Ig.NodeValueHandlerFloat=void 0;const PX=ma;class DX extends PX.NodeValueHandlerAdapter{constructor(e,r){super("FloatValue",e,r),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float")}handle(e,r,n){return{terms:[this.util.dataFactory.literal(e.value,this.datatype)]}}}Ig.NodeValueHandlerFloat=DX;var Pg={};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.NodeValueHandlerInt=void 0;const NX=ma;class jX extends NX.NodeValueHandlerAdapter{constructor(e,r){super("IntValue",e,r),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer")}handle(e,r,n){return{terms:[this.util.dataFactory.literal(e.value,this.datatype)]}}}Pg.NodeValueHandlerInt=jX;var Dg={};Object.defineProperty(Dg,"__esModule",{value:!0});Dg.NodeValueHandlerList=void 0;const CX=ma;class FX extends CX.NodeValueHandlerAdapter{constructor(e,r){super("ListValue",e,r),this.nodeFirst=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),this.nodeRest=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),this.nodeNil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(e,r,n){const a=[];let s=[];for(const o of e.values){const u=this.util.handleNodeValue(o,r,n);for(const c of u.terms)a.push(c);u.auxiliaryPatterns&&(s=s.concat(u.auxiliaryPatterns))}if(this.settings.arraysToRdfLists){const o=this.util.dataFactory.blankNode();let u=o,c=a.length;for(const l of a){s.push(this.util.operationFactory.createPattern(u,this.nodeFirst,l,n.graph));const d=--c===0?this.nodeNil:this.util.dataFactory.blankNode();s.push(this.util.operationFactory.createPattern(u,this.nodeRest,d,n.graph)),u=d}return{terms:[o],auxiliaryPatterns:s}}else return{terms:a,auxiliaryPatterns:s}}}Dg.NodeValueHandlerList=FX;var Ng={};Object.defineProperty(Ng,"__esModule",{value:!0});Ng.NodeValueHandlerNull=void 0;const MX=ma;class LX extends MX.NodeValueHandlerAdapter{constructor(e,r){super("NullValue",e,r),this.nil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(e,r,n){return{terms:[this.nil]}}}Ng.NodeValueHandlerNull=LX;var jg={};Object.defineProperty(jg,"__esModule",{value:!0});jg.NodeValueHandlerObject=void 0;const BX=ma;class $X extends BX.NodeValueHandlerAdapter{constructor(e,r){super("ObjectValue",e,r)}handle(e,r,n){const a=this.util.dataFactory.blankNode();let s=[];for(const o of e.fields){const u=this.util.handleNodeValue(o.value,r,n);for(const c of u.terms)s.push(this.util.createQuadPattern(a,o.name,c,n.graph,n.context));u.auxiliaryPatterns&&(s=s.concat(u.auxiliaryPatterns))}return{terms:[a],auxiliaryPatterns:s}}}jg.NodeValueHandlerObject=$X;var Cg={};Object.defineProperty(Cg,"__esModule",{value:!0});Cg.NodeValueHandlerString=void 0;const UX=ma;class qX extends UX.NodeValueHandlerAdapter{constructor(e,r){super("StringValue",e,r)}handle(e,r,n){const a=n.context.getContextRaw()[r];let s,o;return a&&typeof a!="string"&&(a["@language"]?s=a["@language"]:a["@type"]&&(o=this.util.dataFactory.namedNode(a["@type"]))),{terms:[this.util.dataFactory.literal(e.value,s||o)]}}}Cg.NodeValueHandlerString=qX;var Fg={};Object.defineProperty(Fg,"__esModule",{value:!0});Fg.NodeValueHandlerVariable=void 0;const VX=ma;class HX extends VX.NodeValueHandlerAdapter{constructor(e,r){super("Variable",e,r)}handle(e,r,n){const a=e.name.value,s=n.variablesDict[a],o=n.variablesMetaDict[a];if(!s){if(!n.ignoreUnknownVariables&&(!o||o.mandatory))throw new Error(`Undefined variable: ${a}`);{const u=this.util.dataFactory.variable(a);return n.terminalVariables.map(c=>c.value).indexOf(a)<0&&n.terminalVariables.push(u),{terms:[u]}}}if(s.kind==="Variable")throw new Error(`Variable refers to another variable: ${a}`);if(o)if(o.list){if(s.kind!=="ListValue")throw new Error(`Expected a list, but got ${s.kind} for ${a}`);if(o.type){const u=s;for(const c of u.values)if(c.kind!==o.type)throw new Error(`Expected ${o.type}, but got ${c.kind} for ${a}`)}}else o.type;return this.util.handleNodeValue(s,r,n)}}Fg.NodeValueHandlerVariable=HX;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ma,t),r(xg,t),r(Rg,t),r(Ig,t),r(Pg,t),r(Dg,t),r(Ng,t),r(jg,t),r(Cg,t),r(Fg,t)})(zC);var Sl={};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.NodeHandlerAdapter=void 0;class kX{constructor(e,r,n){this.targetKind=e,this.util=r,this.settings=n}getNodeQuadContextSelectionSet(e,r,n){const a={};if(e){for(const s of e.selections)if(s.kind==="Field"){const o=s;this.handleNodeQuadContextField(o,n,a,"id","subject"),this.handleNodeQuadContextField(o,n,a,"graph","graph")}}return a}handleNodeQuadContextField(e,r,n,a,s){if(!n[s]&&e.name.value===a){if(!n[s]){const o=this.util.getArgument(e.arguments,"_");if(o){const u=this.util.handleNodeValue(o.value,e.name.value,r);if(u.terms.length!==1)throw new Error(`Only single values can be set as ${a}, but got ${u.terms.length} at ${e.name.value}`);n[s]=u.terms[0],u.auxiliaryPatterns&&(n.auxiliaryPatterns||(n.auxiliaryPatterns=[]),n.auxiliaryPatterns.concat(u.auxiliaryPatterns))}}if(!n[s]){const o=this.util.nameToVariable(this.util.getFieldLabel(e),r);r.terminalVariables.push(o),n[s]=o}}}getDirectiveOutputs(e,r,n){const a=[];if(e)for(const s of e){const o=this.util.handleDirectiveNode({directive:s,fieldLabel:r},n);if(o){if(o.ignore)return null;a.push(o)}}return a}handleDirectiveOutputs(e,r){for(const n of e){if(n.ignore)return this.util.operationFactory.createBgp([]);n.operationOverrider&&(r=n.operationOverrider(r))}return r}}Sl.NodeHandlerAdapter=kX;var Ff={};Object.defineProperty(Ff,"__esModule",{value:!0});Ff.NodeHandlerDefinitionAdapter=void 0;const QX=Sl;class GX extends QX.NodeHandlerAdapter{constructor(e,r,n){super(e,r,n)}}Ff.NodeHandlerDefinitionAdapter=GX;var Mg={};Object.defineProperty(Mg,"__esModule",{value:!0});Mg.NodeHandlerDefinitionFragment=void 0;const zX=Ff;class WX extends zX.NodeHandlerDefinitionAdapter{constructor(e,r){super("FragmentDefinition",e,r)}handle(e,r){throw new Error("Illegal state: fragment definitions must be indexed and removed before processing")}}Mg.NodeHandlerDefinitionFragment=WX;var Lg={};Object.defineProperty(Lg,"__esModule",{value:!0});Lg.NodeHandlerDefinitionOperation=void 0;const XX=Ff;class KX extends XX.NodeHandlerDefinitionAdapter{constructor(e,r){super("OperationDefinition",e,r)}handle(e,r){if(e.operation!=="query")throw new Error("Unsupported definition operation: "+e.operation);if(e.variableDefinitions)for(const s of e.variableDefinitions){const o=s.variable.name.value;s.defaultValue&&(r.variablesDict[o]||(r.variablesDict[o]=s.defaultValue));let u=s.type;const c=u.kind==="NonNullType";c&&(u=u.type);const l=u.kind==="ListType";l&&(u=u.type);const d=u.name.value;r.variablesMetaDict[o]={mandatory:c,list:l,type:d}}const n=this.getDirectiveOutputs(e.directives,e.name?e.name.value:"",r);if(!n)return this.util.operationFactory.createBgp([]);const a=this.util.joinOperations(e.selectionSet.selections.map(s=>this.util.handleNode(s,r)));return this.handleDirectiveOutputs(n,a)}}Lg.NodeHandlerDefinitionOperation=KX;var Bg={};Object.defineProperty(Bg,"__esModule",{value:!0});Bg.NodeHandlerDocument=void 0;const DP=Tt,JX=Sl;class YX extends JX.NodeHandlerAdapter{constructor(e,r){super("Document",e,r)}handle(e,r){const n=e.definitions.map(s=>{const o=this.getNodeQuadContextDefinitionNode(s,Object.assign(Object.assign({},r),{ignoreUnknownVariables:!0})),u=Object.assign(Object.assign({},r),{graph:o.graph||r.graph,subject:o.subject||this.util.dataFactory.blankNode()});let c=this.util.handleNode(s,u);return o&&o.auxiliaryPatterns&&(c=this.util.joinOperations([c,this.util.operationFactory.createBgp(o.auxiliaryPatterns)])),c}),a=this.util.operationFactory.createProject(n.length===1?n[0]:this.util.operationFactory.createUnion(n),r.terminalVariables);return this.translateBlankNodesToVariables(a)}getNodeQuadContextDefinitionNode(e,r){if(e.kind==="OperationDefinition")return this.getNodeQuadContextSelectionSet(e.selectionSet,e.name?e.name.value:"",r);throw new Error(`Unsupported definition: ${e.kind}`)}translateBlankNodesToVariables(e){const r=this,n={},a=Array.from(e.variables).reduce((o,u)=>(o[u.value]=!0,o),{});return DP.Util.mapOperation(e,{path:(o,u)=>({recurse:!1,result:u.createPath(s(o.subject),o.predicate,s(o.object),s(o.graph))}),pattern:(o,u)=>({recurse:!1,result:u.createPattern(s(o.subject),s(o.predicate),s(o.object),s(o.graph))})});function s(o){if(o.termType==="BlankNode"){let u=n[o.value];return u||(u=DP.Util.createUniqueVariable(o.value,a,r.util.dataFactory),a[u.value]=!0,n[o.value]=u),u}return o}}}Bg.NodeHandlerDocument=YX;var Tl={};Object.defineProperty(Tl,"__esModule",{value:!0});Tl.NodeHandlerSelectionAdapter=void 0;const ZX=Tt,eK=Cf,tK=Sl;class rK extends tK.NodeHandlerAdapter{constructor(e,r,n){super(e,r,n)}getNodeQuadContextFieldNode(e,r,n){return this.getNodeQuadContextSelectionSet(e.selectionSet,r,Object.assign(Object.assign({},n),{path:this.util.appendFieldToPath(n.path,r)}))}fieldToOperation(e,r,n,a){const s=n;let o=0,u;if((r.name.value==="id"||r.name.value==="graph")&&(n=!1,r.arguments))for(const w of r.arguments)w.name.value==="_"&&this.util.handleNodeValue(w.value,r.name.value,e);const c=this.util.getFieldLabel(r);if(e.singularizeState===eK.SingularizeState.SINGLE&&(e.singularizeVariables[this.util.nameToVariable(c,e).value]=!0),n){const w=this.handleMetaField(e,c,a);if(w)return w}const l=a?[this.util.operationFactory.createBgp(a)]:[],d=this.getNodeQuadContextFieldNode(r,c,e);let h=d.subject||this.util.nameToVariable(c,e),f=d.graph||e.graph;d.auxiliaryPatterns&&l.push(this.util.operationFactory.createBgp(d.auxiliaryPatterns));let p=!0,b=null;if(n&&r.arguments&&r.arguments.length){for(const w of r.arguments)if(w.name.value==="_"){const I=this.util.handleNodeValue(w.value,r.name.value,e);b=I.terms,l.push(this.util.operationFactory.createBgp(I.terms.map(O=>this.util.createQuadPattern(e.subject,r.name,O,e.graph,e.context)))),I.auxiliaryPatterns&&l.push(this.util.operationFactory.createBgp(I.auxiliaryPatterns)),n=!1;break}else if(w.name.value==="graph"){const I=this.util.handleNodeValue(w.value,r.name.value,e);if(I.terms.length!==1)throw new Error(`Only single values can be set as graph, but got ${I.terms.length} at ${r.name.value}`);f=I.terms[0],e=Object.assign(Object.assign({},e),{graph:f}),I.auxiliaryPatterns&&l.push(this.util.operationFactory.createBgp(I.auxiliaryPatterns));break}else if(w.name.value==="alt"){let I=w.value;I.kind!=="ListValue"&&(I={kind:"ListValue",values:[I]}),l.push(this.util.createQuadPath(e.subject,r.name,I,h,e.graph,e.context)),p=!1;break}}if(n&&p&&l.push(this.util.operationFactory.createBgp([this.util.createQuadPattern(e.subject,r.name,h,e.graph,e.context)])),r.arguments&&r.arguments.length){for(const w of r.arguments)if(!(w.name.value==="_"||w.name.value==="graph"||w.name.value==="alt"))if(w.name.value==="first"){if(w.value.kind!=="IntValue")throw new Error("Invalid value type for 'first' argument: "+w.value.kind);u=parseInt(w.value.value,10)}else if(w.name.value==="offset"){if(w.value.kind!=="IntValue")throw new Error("Invalid value type for 'offset' argument: "+w.value.kind);o=parseInt(w.value.value,10)}else{const I=this.util.handleNodeValue(w.value,w.name.value,e);l.push(this.util.operationFactory.createBgp(I.terms.map(O=>this.util.createQuadPattern(h,w.name,O,e.graph,e.context)))),I.auxiliaryPatterns&&l.push(this.util.operationFactory.createBgp(I.auxiliaryPatterns))}}const y=this.getDirectiveOutputs(r.directives,c,e);if(!y)return this.util.operationFactory.createBgp([]);let S=this.util.joinOperations(l);if(r.selectionSet&&r.selectionSet.selections.length){if(b){if(b.length!==1)throw new Error(`Only single values can be set as id, but got ${b.length} at ${r.name.value}`);h=b[0]}const w=Object.assign(Object.assign(Object.assign({},e),s?{path:this.util.appendFieldToPath(e.path,c)}:{}),{graph:f,subject:s?h:e.subject});let I=!1;const O=r.selectionSet.selections.filter(x=>x.kind==="Field"&&x.name.value==="totalCount"?(I=!0,!1):!0);let T=this.util.joinOperations(l.concat(O.map(x=>this.util.handleNode(x,w))));if(I){const x=this.util.dataFactory.variable("var"+this.settings.expressionVariableCounter++),P=this.util.dataFactory.variable(h.value+this.settings.variableDelimiter+"totalCount"),B=this.util.operationFactory.createBoundAggregate(x,"count",this.util.operationFactory.createTermExpression(h),!1),Q=this.util.operationFactory.createProject(this.util.operationFactory.createExtend(this.util.operationFactory.createGroup(S,[],[B]),P,this.util.operationFactory.createTermExpression(x)),[P]);e.terminalVariables.push(P),O.length?T=this.util.operationFactory.createJoin([this.util.operationFactory.createProject(T,[]),Q]):T=Q}S=T}else n&&h.termType==="Variable"&&e.terminalVariables.push(h);return(o||u)&&(S=this.util.operationFactory.createSlice(this.util.operationFactory.createProject(S,ZX.Util.inScopeVariables(S)),o,u)),this.handleDirectiveOutputs(y,S)}handleMetaField(e,r,n){if(r==="__typename"){const a=this.util.nameToVariable(r,e);return e.terminalVariables.push(a),this.util.operationFactory.createBgp([this.util.operationFactory.createPattern(e.subject,this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.util.nameToVariable(r,e),e.graph)].concat(n||[]))}}}Tl.NodeHandlerSelectionAdapter=rK;var $g={};Object.defineProperty($g,"__esModule",{value:!0});$g.NodeHandlerSelectionField=void 0;const nK=Tl;class iK extends nK.NodeHandlerSelectionAdapter{constructor(e,r){super("Field",e,r)}handle(e,r){return this.fieldToOperation(r,e,!0)}}$g.NodeHandlerSelectionField=iK;var Ug={};Object.defineProperty(Ug,"__esModule",{value:!0});Ug.NodeHandlerSelectionFragmentSpread=void 0;const aK=Tl;class sK extends aK.NodeHandlerSelectionAdapter{constructor(e,r){super("FragmentSpread",e,r)}handle(e,r){const n=r.fragmentDefinitions[e.name.value];if(!n)throw new Error("Undefined fragment definition: "+e.name.value);const a={alias:void 0,arguments:void 0,directives:n.directives,kind:"Field",name:e.name,selectionSet:n.selectionSet},s=[this.util.newTypePattern(r.subject,n.typeCondition,r)];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(r,a,!1,s))}}Ug.NodeHandlerSelectionFragmentSpread=sK;var qg={};Object.defineProperty(qg,"__esModule",{value:!0});qg.NodeHandlerSelectionInlineFragment=void 0;const oK=Tl;class uK extends oK.NodeHandlerSelectionAdapter{constructor(e,r){super("InlineFragment",e,r)}handle(e,r){const n={alias:void 0,arguments:void 0,directives:e.directives,kind:"Field",name:{kind:"Name",value:r.subject.value},selectionSet:e.selectionSet},a=e.typeCondition?[this.util.newTypePattern(r.subject,e.typeCondition,r)]:[];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(r,n,!1,a))}}qg.NodeHandlerSelectionInlineFragment=uK;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tx,t),r(zC,t),r(Sl,t),r(Ff,t),r(Mg,t),r(Lg,t),r(Bg,t),r(Tl,t),r($g,t),r(Ug,t),r(qg,t)})(ex);var Vg={},WC=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag",cK=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const ZE=cK;function ab(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ab=function(r){return typeof r}:ab=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ab(t)}var lK=10,XC=2;function KC(t){return Hg(t,[])}function Hg(t,e){switch(ab(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return t===null?"null":dK(t,e);default:return String(t)}}function dK(t,e){if(e.indexOf(t)!==-1)return"[Circular]";var r=[].concat(e,[t]),n=pK(t);if(n!==void 0){var a=n.call(t);if(a!==t)return typeof a=="string"?a:Hg(a,r)}else if(Array.isArray(t))return hK(t,r);return fK(t,r)}function fK(t,e){var r=Object.keys(t);if(r.length===0)return"{}";if(e.length>XC)return"["+yK(t)+"]";var n=r.map(function(a){var s=Hg(t[a],e);return a+": "+s});return"{ "+n.join(", ")+" }"}function hK(t,e){if(t.length===0)return"[]";if(e.length>XC)return"[Array]";for(var r=Math.min(lK,t.length),n=t.length-r,a=[],s=0;s1&&a.push("... ".concat(n," more items")),"["+a.join(", ")+"]"}function pK(t){var e=t[String(ZE)];if(typeof e=="function")return e;if(typeof t.inspect=="function")return t.inspect}function yK(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){var r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}function LS(t,e){var r=!!t;if(!r)throw new Error(e)}const bK=function(e,r){return e instanceof r};function NP(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||LS(0,"Body must be a string. Received: ".concat(KC(e),".")),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||LS(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||LS(0,"column in locationOffset is 1-indexed and must be positive.")}return mK(t,[{key:WC,get:function(){return"Source"}}]),t}();function gK(t){return bK(t,rx)}function $b(t,e){for(var r=/\r\n|[\n\r]/g,n=1,a=e+1,s;(s=r.exec(t.body))&&s.index120){for(var f=Math.floor(c/80),p=c%80,b=[],y=0;y",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function ob(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ob=function(r){return typeof r}:ob=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ob(t)}function vK(t){return ob(t)=="object"&&t!==null}function ub(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ub=function(r){return typeof r}:ub=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ub(t)}function CP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function wK(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function xK(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Np(t,e){return Np=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Np(t,e)}function jp(t){return jp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jp(t)}var RK=function(t){OK(r,t);var e=AK(r);function r(n,a,s,o,u,c,l){var d,h,f,p;TK(this,r),p=e.call(this,n),p.name="GraphQLError",p.originalError=c??void 0,p.nodes=MP(Array.isArray(a)?a:a?[a]:void 0);for(var b=[],y=0,S=(w=p.nodes)!==null&&w!==void 0?w:[];y0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?(Object.defineProperty(Jh(p),"stack",{value:c.stack,writable:!0,configurable:!0}),YC(p)):(Error.captureStackTrace?Error.captureStackTrace(Jh(p),r):Object.defineProperty(Jh(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return EK(r,[{key:"toString",value:function(){return IK(this)}},{key:WC,get:function(){return"Object"}}]),r}(eO(Error));function MP(t){return t===void 0||t.length===0?void 0:t}function IK(t){var e=t.message;if(t.nodes)for(var r=0,n=t.nodes;ra&&BP(e[s-1]);)--s;return e.slice(a,s).join(` -`)}function BP(t){for(var e=0;e1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=t.indexOf(` -`)===-1,a=t[0]===" "||t[0]===" ",s=t[t.length-1]==='"',o=t[t.length-1]==="\\",u=!n||s||o||r,c="";return u&&!(n&&a)&&(c+=` -`+e),c+=e?t.replace(/\n/g,` -`+e):t,u&&(c+=` -`),'"""'+c.replace(/"""/g,'\\"""')+'"""'}var t9=function(){function t(r){var n=new Qr(De.SOF,0,0,0,0,null);this.source=r,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){this.lastToken=this.token;var n=this.token=this.lookahead();return n},e.lookahead=function(){var n=this.token;if(n.kind!==De.EOF)do{var a;n=(a=n.next)!==null&&a!==void 0?a:n.next=FK(this,n)}while(n.kind===De.COMMENT);return n},t}();function CK(t){return t===De.BANG||t===De.DOLLAR||t===De.AMP||t===De.PAREN_L||t===De.PAREN_R||t===De.SPREAD||t===De.COLON||t===De.EQUALS||t===De.AT||t===De.BRACKET_L||t===De.BRACKET_R||t===De.BRACE_L||t===De.PIPE||t===De.BRACE_R}function dl(t){return isNaN(t)?De.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function FK(t,e){for(var r=t.source,n=r.body,a=n.length,s=e.end;s31||o===9));return new Qr(De.COMMENT,e,u,r,n,a,s.slice(e+1,u))}function BK(t,e,r,n,a,s){var o=t.body,u=r,c=e,l=!1;if(u===45&&(u=o.charCodeAt(++c)),u===48){if(u=o.charCodeAt(++c),u>=48&&u<=57)throw la(t,c,"Invalid number, unexpected digit after 0: ".concat(dl(u),"."))}else c=BS(t,c,u),u=o.charCodeAt(c);if(u===46&&(l=!0,u=o.charCodeAt(++c),c=BS(t,c,u),u=o.charCodeAt(c)),(u===69||u===101)&&(l=!0,u=o.charCodeAt(++c),(u===43||u===45)&&(u=o.charCodeAt(++c)),c=BS(t,c,u),u=o.charCodeAt(c)),u===46||HK(u))throw la(t,c,"Invalid number, expected digit but got: ".concat(dl(u),"."));return new Qr(l?De.FLOAT:De.INT,e,c,n,a,s,o.slice(e,c))}function BS(t,e,r){var n=t.body,a=e,s=r;if(s>=48&&s<=57){do s=n.charCodeAt(++a);while(s>=48&&s<=57);return a}throw la(t,a,"Invalid number, expected digit but got: ".concat(dl(s),"."))}function $K(t,e,r,n,a){for(var s=t.body,o=e+1,u=o,c=0,l="";o=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function VK(t,e,r,n,a){for(var s=t.body,o=s.length,u=e+1,c=0;u!==o&&!isNaN(c=s.charCodeAt(u))&&(c===95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++u;return new Qr(De.NAME,e,u,r,n,a,s.slice(e,u))}function HK(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}var r9=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function kK(t,e){var r=new ax(t,e);return r.parseDocument()}function QK(t,e){var r=new ax(t,e);r.expectToken(De.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(De.EOF),n}function GK(t,e){var r=new ax(t,e);r.expectToken(De.SOF);var n=r.parseTypeReference();return r.expectToken(De.EOF),n}var ax=function(){function t(r,n){var a=gK(r)?r:new rx(r);this._lexer=new t9(a),this._options=n}var e=t.prototype;return e.parseName=function(){var n=this.expectToken(De.NAME);return{kind:Ge.NAME,value:n.value,loc:this.loc(n)}},e.parseDocument=function(){var n=this._lexer.token;return{kind:Ge.DOCUMENT,definitions:this.many(De.SOF,this.parseDefinition,De.EOF),loc:this.loc(n)}},e.parseDefinition=function(){if(this.peek(De.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(De.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(De.BRACE_L))return{kind:Ge.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var a=this.parseOperationType(),s;return this.peek(De.NAME)&&(s=this.parseName()),{kind:Ge.OPERATION_DEFINITION,operation:a,name:s,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseOperationType=function(){var n=this.expectToken(De.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},e.parseVariableDefinitions=function(){return this.optionalMany(De.PAREN_L,this.parseVariableDefinition,De.PAREN_R)},e.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:Ge.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(De.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(De.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},e.parseVariable=function(){var n=this._lexer.token;return this.expectToken(De.DOLLAR),{kind:Ge.VARIABLE,name:this.parseName(),loc:this.loc(n)}},e.parseSelectionSet=function(){var n=this._lexer.token;return{kind:Ge.SELECTION_SET,selections:this.many(De.BRACE_L,this.parseSelection,De.BRACE_R),loc:this.loc(n)}},e.parseSelection=function(){return this.peek(De.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var n=this._lexer.token,a=this.parseName(),s,o;return this.expectOptionalToken(De.COLON)?(s=a,o=this.parseName()):o=a,{kind:Ge.FIELD,alias:s,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(De.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},e.parseArguments=function(n){var a=n?this.parseConstArgument:this.parseArgument;return this.optionalMany(De.PAREN_L,a,De.PAREN_R)},e.parseArgument=function(){var n=this._lexer.token,a=this.parseName();return this.expectToken(De.COLON),{kind:Ge.ARGUMENT,name:a,value:this.parseValueLiteral(!1),loc:this.loc(n)}},e.parseConstArgument=function(){var n=this._lexer.token;return{kind:Ge.ARGUMENT,name:this.parseName(),value:(this.expectToken(De.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},e.parseFragment=function(){var n=this._lexer.token;this.expectToken(De.SPREAD);var a=this.expectOptionalKeyword("on");return!a&&this.peek(De.NAME)?{kind:Ge.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:Ge.INLINE_FRAGMENT,typeCondition:a?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseFragmentDefinition=function(){var n,a=this._lexer.token;return this.expectKeyword("fragment"),((n=this._options)===null||n===void 0?void 0:n.experimentalFragmentVariables)===!0?{kind:Ge.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}:{kind:Ge.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(n){var a=this._lexer.token;switch(a.kind){case De.BRACKET_L:return this.parseList(n);case De.BRACE_L:return this.parseObject(n);case De.INT:return this._lexer.advance(),{kind:Ge.INT,value:a.value,loc:this.loc(a)};case De.FLOAT:return this._lexer.advance(),{kind:Ge.FLOAT,value:a.value,loc:this.loc(a)};case De.STRING:case De.BLOCK_STRING:return this.parseStringLiteral();case De.NAME:switch(this._lexer.advance(),a.value){case"true":return{kind:Ge.BOOLEAN,value:!0,loc:this.loc(a)};case"false":return{kind:Ge.BOOLEAN,value:!1,loc:this.loc(a)};case"null":return{kind:Ge.NULL,loc:this.loc(a)};default:return{kind:Ge.ENUM,value:a.value,loc:this.loc(a)}}case De.DOLLAR:if(!n)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:Ge.STRING,value:n.value,block:n.kind===De.BLOCK_STRING,loc:this.loc(n)}},e.parseList=function(n){var a=this,s=this._lexer.token,o=function(){return a.parseValueLiteral(n)};return{kind:Ge.LIST,values:this.any(De.BRACKET_L,o,De.BRACKET_R),loc:this.loc(s)}},e.parseObject=function(n){var a=this,s=this._lexer.token,o=function(){return a.parseObjectField(n)};return{kind:Ge.OBJECT,fields:this.any(De.BRACE_L,o,De.BRACE_R),loc:this.loc(s)}},e.parseObjectField=function(n){var a=this._lexer.token,s=this.parseName();return this.expectToken(De.COLON),{kind:Ge.OBJECT_FIELD,name:s,value:this.parseValueLiteral(n),loc:this.loc(a)}},e.parseDirectives=function(n){for(var a=[];this.peek(De.AT);)a.push(this.parseDirective(n));return a},e.parseDirective=function(n){var a=this._lexer.token;return this.expectToken(De.AT),{kind:Ge.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(a)}},e.parseTypeReference=function(){var n=this._lexer.token,a;return this.expectOptionalToken(De.BRACKET_L)?(a=this.parseTypeReference(),this.expectToken(De.BRACKET_R),a={kind:Ge.LIST_TYPE,type:a,loc:this.loc(n)}):a=this.parseNamedType(),this.expectOptionalToken(De.BANG)?{kind:Ge.NON_NULL_TYPE,type:a,loc:this.loc(n)}:a},e.parseNamedType=function(){var n=this._lexer.token;return{kind:Ge.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},e.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===De.NAME)switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(n)},e.peekDescription=function(){return this.peek(De.STRING)||this.peek(De.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("schema");var s=this.parseDirectives(!0),o=this.many(De.BRACE_L,this.parseOperationTypeDefinition,De.BRACE_R);return{kind:Ge.SCHEMA_DEFINITION,description:a,directives:s,operationTypes:o,loc:this.loc(n)}},e.parseOperationTypeDefinition=function(){var n=this._lexer.token,a=this.parseOperationType();this.expectToken(De.COLON);var s=this.parseNamedType();return{kind:Ge.OPERATION_TYPE_DEFINITION,operation:a,type:s,loc:this.loc(n)}},e.parseScalarTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("scalar");var s=this.parseName(),o=this.parseDirectives(!0);return{kind:Ge.SCALAR_TYPE_DEFINITION,description:a,name:s,directives:o,loc:this.loc(n)}},e.parseObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("type");var s=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:Ge.OBJECT_TYPE_DEFINITION,description:a,name:s,interfaces:o,directives:u,fields:c,loc:this.loc(n)}},e.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLImplementsInterfaces)===!0){var a=[];this.expectOptionalToken(De.AMP);do a.push(this.parseNamedType());while(this.expectOptionalToken(De.AMP)||this.peek(De.NAME));return a}return this.delimitedMany(De.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var n;return((n=this._options)===null||n===void 0?void 0:n.allowLegacySDLEmptyFields)===!0&&this.peek(De.BRACE_L)&&this._lexer.lookahead().kind===De.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(De.BRACE_L,this.parseFieldDefinition,De.BRACE_R)},e.parseFieldDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName(),o=this.parseArgumentDefs();this.expectToken(De.COLON);var u=this.parseTypeReference(),c=this.parseDirectives(!0);return{kind:Ge.FIELD_DEFINITION,description:a,name:s,arguments:o,type:u,directives:c,loc:this.loc(n)}},e.parseArgumentDefs=function(){return this.optionalMany(De.PAREN_L,this.parseInputValueDef,De.PAREN_R)},e.parseInputValueDef=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName();this.expectToken(De.COLON);var o=this.parseTypeReference(),u;this.expectOptionalToken(De.EQUALS)&&(u=this.parseValueLiteral(!0));var c=this.parseDirectives(!0);return{kind:Ge.INPUT_VALUE_DEFINITION,description:a,name:s,type:o,defaultValue:u,directives:c,loc:this.loc(n)}},e.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("interface");var s=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseDirectives(!0),c=this.parseFieldsDefinition();return{kind:Ge.INTERFACE_TYPE_DEFINITION,description:a,name:s,interfaces:o,directives:u,fields:c,loc:this.loc(n)}},e.parseUnionTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("union");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseUnionMemberTypes();return{kind:Ge.UNION_TYPE_DEFINITION,description:a,name:s,directives:o,types:u,loc:this.loc(n)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(De.EQUALS)?this.delimitedMany(De.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("enum");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseEnumValuesDefinition();return{kind:Ge.ENUM_TYPE_DEFINITION,description:a,name:s,directives:o,values:u,loc:this.loc(n)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(De.BRACE_L,this.parseEnumValueDefinition,De.BRACE_R)},e.parseEnumValueDefinition=function(){var n=this._lexer.token,a=this.parseDescription(),s=this.parseName(),o=this.parseDirectives(!0);return{kind:Ge.ENUM_VALUE_DEFINITION,description:a,name:s,directives:o,loc:this.loc(n)}},e.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("input");var s=this.parseName(),o=this.parseDirectives(!0),u=this.parseInputFieldsDefinition();return{kind:Ge.INPUT_OBJECT_TYPE_DEFINITION,description:a,name:s,directives:o,fields:u,loc:this.loc(n)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(De.BRACE_L,this.parseInputValueDef,De.BRACE_R)},e.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===De.NAME)switch(n.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(n)},e.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var a=this.parseDirectives(!0),s=this.optionalMany(De.BRACE_L,this.parseOperationTypeDefinition,De.BRACE_R);if(a.length===0&&s.length===0)throw this.unexpected();return{kind:Ge.SCHEMA_EXTENSION,directives:a,operationTypes:s,loc:this.loc(n)}},e.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var a=this.parseName(),s=this.parseDirectives(!0);if(s.length===0)throw this.unexpected();return{kind:Ge.SCALAR_TYPE_EXTENSION,name:a,directives:s,loc:this.loc(n)}},e.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();if(s.length===0&&o.length===0&&u.length===0)throw this.unexpected();return{kind:Ge.OBJECT_TYPE_EXTENSION,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(n)}},e.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var a=this.parseName(),s=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),u=this.parseFieldsDefinition();if(s.length===0&&o.length===0&&u.length===0)throw this.unexpected();return{kind:Ge.INTERFACE_TYPE_EXTENSION,name:a,interfaces:s,directives:o,fields:u,loc:this.loc(n)}},e.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseUnionMemberTypes();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:Ge.UNION_TYPE_EXTENSION,name:a,directives:s,types:o,loc:this.loc(n)}},e.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:Ge.ENUM_TYPE_EXTENSION,name:a,directives:s,values:o,loc:this.loc(n)}},e.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var a=this.parseName(),s=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();if(s.length===0&&o.length===0)throw this.unexpected();return{kind:Ge.INPUT_OBJECT_TYPE_EXTENSION,name:a,directives:s,fields:o,loc:this.loc(n)}},e.parseDirectiveDefinition=function(){var n=this._lexer.token,a=this.parseDescription();this.expectKeyword("directive"),this.expectToken(De.AT);var s=this.parseName(),o=this.parseArgumentDefs(),u=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var c=this.parseDirectiveLocations();return{kind:Ge.DIRECTIVE_DEFINITION,description:a,name:s,arguments:o,repeatable:u,locations:c,loc:this.loc(n)}},e.parseDirectiveLocations=function(){return this.delimitedMany(De.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var n=this._lexer.token,a=this.parseName();if(r9[a.value]!==void 0)return a;throw this.unexpected(n)},e.loc=function(n){var a;if(((a=this._options)===null||a===void 0?void 0:a.noLocation)!==!0)return new ix(n,this._lexer.lastToken,this._lexer.source)},e.peek=function(n){return this._lexer.token.kind===n},e.expectToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a;throw la(this._lexer.source,a.start,"Expected ".concat(n9(n),", found ").concat($S(a),"."))},e.expectOptionalToken=function(n){var a=this._lexer.token;if(a.kind===n)return this._lexer.advance(),a},e.expectKeyword=function(n){var a=this._lexer.token;if(a.kind===De.NAME&&a.value===n)this._lexer.advance();else throw la(this._lexer.source,a.start,'Expected "'.concat(n,'", found ').concat($S(a),"."))},e.expectOptionalKeyword=function(n){var a=this._lexer.token;return a.kind===De.NAME&&a.value===n?(this._lexer.advance(),!0):!1},e.unexpected=function(n){var a=n??this._lexer.token;return la(this._lexer.source,a.start,"Unexpected ".concat($S(a),"."))},e.any=function(n,a,s){this.expectToken(n);for(var o=[];!this.expectOptionalToken(s);)o.push(a.call(this));return o},e.optionalMany=function(n,a,s){if(this.expectOptionalToken(n)){var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(s));return o}return[]},e.many=function(n,a,s){this.expectToken(n);var o=[];do o.push(a.call(this));while(!this.expectOptionalToken(s));return o},e.delimitedMany=function(n,a){this.expectOptionalToken(n);var s=[];do s.push(a.call(this));while(this.expectOptionalToken(n));return s},t}();function $S(t){var e=t.value;return n9(t.kind)+(e!=null?' "'.concat(e,'"'):"")}function n9(t){return CK(t)?'"'.concat(t,'"'):t}var zK={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},vd=Object.freeze({});function i9(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zK,n=void 0,a=Array.isArray(t),s=[t],o=-1,u=[],c=void 0,l=void 0,d=void 0,h=[],f=[],p=t;do{o++;var b=o===s.length,y=b&&u.length!==0;if(b){if(l=f.length===0?void 0:h[h.length-1],c=d,d=f.pop(),y){if(a)c=c.slice();else{for(var S={},w=0,I=Object.keys(c);wKK&&(c=u+Hr(`( -`,lb(rt(a,` -`)),` -)`)),rt([c,rt(s," "),o]," ")},Argument:function(e){var r=e.name,n=e.value;return r+": "+n},FragmentSpread:function(e){var r=e.name,n=e.directives;return"..."+r+Hr(" ",rt(n," "))},InlineFragment:function(e){var r=e.typeCondition,n=e.directives,a=e.selectionSet;return rt(["...",Hr("on ",r),rt(n," "),a]," ")},FragmentDefinition:function(e){var r=e.name,n=e.typeCondition,a=e.variableDefinitions,s=e.directives,o=e.selectionSet;return"fragment ".concat(r).concat(Hr("(",rt(a,", "),")")," ")+"on ".concat(n," ").concat(Hr("",rt(s," ")," "))+o},IntValue:function(e){var r=e.value;return r},FloatValue:function(e){var r=e.value;return r},StringValue:function(e,r){var n=e.value,a=e.block;return a?jK(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(e){var r=e.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var r=e.value;return r},ListValue:function(e){var r=e.values;return"["+rt(r,", ")+"]"},ObjectValue:function(e){var r=e.fields;return"{"+rt(r,", ")+"}"},ObjectField:function(e){var r=e.name,n=e.value;return r+": "+n},Directive:function(e){var r=e.name,n=e.arguments;return"@"+r+Hr("(",rt(n,", "),")")},NamedType:function(e){var r=e.name;return r},ListType:function(e){var r=e.type;return"["+r+"]"},NonNullType:function(e){var r=e.type;return r+"!"},SchemaDefinition:qa(function(t){var e=t.directives,r=t.operationTypes;return rt(["schema",rt(e," "),Va(r)]," ")}),OperationTypeDefinition:function(e){var r=e.operation,n=e.type;return r+": "+n},ScalarTypeDefinition:qa(function(t){var e=t.name,r=t.directives;return rt(["scalar",e,rt(r," ")]," ")}),ObjectTypeDefinition:qa(function(t){var e=t.name,r=t.interfaces,n=t.directives,a=t.fields;return rt(["type",e,Hr("implements ",rt(r," & ")),rt(n," "),Va(a)]," ")}),FieldDefinition:qa(function(t){var e=t.name,r=t.arguments,n=t.type,a=t.directives;return e+($P(r)?Hr(`( -`,lb(rt(r,` -`)),` -)`):Hr("(",rt(r,", "),")"))+": "+n+Hr(" ",rt(a," "))}),InputValueDefinition:qa(function(t){var e=t.name,r=t.type,n=t.defaultValue,a=t.directives;return rt([e+": "+r,Hr("= ",n),rt(a," ")]," ")}),InterfaceTypeDefinition:qa(function(t){var e=t.name,r=t.interfaces,n=t.directives,a=t.fields;return rt(["interface",e,Hr("implements ",rt(r," & ")),rt(n," "),Va(a)]," ")}),UnionTypeDefinition:qa(function(t){var e=t.name,r=t.directives,n=t.types;return rt(["union",e,rt(r," "),n&&n.length!==0?"= "+rt(n," | "):""]," ")}),EnumTypeDefinition:qa(function(t){var e=t.name,r=t.directives,n=t.values;return rt(["enum",e,rt(r," "),Va(n)]," ")}),EnumValueDefinition:qa(function(t){var e=t.name,r=t.directives;return rt([e,rt(r," ")]," ")}),InputObjectTypeDefinition:qa(function(t){var e=t.name,r=t.directives,n=t.fields;return rt(["input",e,rt(r," "),Va(n)]," ")}),DirectiveDefinition:qa(function(t){var e=t.name,r=t.arguments,n=t.repeatable,a=t.locations;return"directive @"+e+($P(r)?Hr(`( -`,lb(rt(r,` -`)),` -)`):Hr("(",rt(r,", "),")"))+(n?" repeatable":"")+" on "+rt(a," | ")}),SchemaExtension:function(e){var r=e.directives,n=e.operationTypes;return rt(["extend schema",rt(r," "),Va(n)]," ")},ScalarTypeExtension:function(e){var r=e.name,n=e.directives;return rt(["extend scalar",r,rt(n," ")]," ")},ObjectTypeExtension:function(e){var r=e.name,n=e.interfaces,a=e.directives,s=e.fields;return rt(["extend type",r,Hr("implements ",rt(n," & ")),rt(a," "),Va(s)]," ")},InterfaceTypeExtension:function(e){var r=e.name,n=e.interfaces,a=e.directives,s=e.fields;return rt(["extend interface",r,Hr("implements ",rt(n," & ")),rt(a," "),Va(s)]," ")},UnionTypeExtension:function(e){var r=e.name,n=e.directives,a=e.types;return rt(["extend union",r,rt(n," "),a&&a.length!==0?"= "+rt(a," | "):""]," ")},EnumTypeExtension:function(e){var r=e.name,n=e.directives,a=e.values;return rt(["extend enum",r,rt(n," "),Va(a)]," ")},InputObjectTypeExtension:function(e){var r=e.name,n=e.directives,a=e.fields;return rt(["extend input",r,rt(n," "),Va(a)]," ")}};function qa(t){return function(e){return rt([e.description,t(e)],` -`)}}function rt(t){var e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(e=t==null?void 0:t.filter(function(n){return n}).join(r))!==null&&e!==void 0?e:""}function Va(t){return Hr(`{ -`,lb(rt(t,` -`)),` -}`)}function Hr(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?t+e+r:""}function lb(t){return Hr(" ",t.replace(/\n/g,` - `))}function YK(t){return t.indexOf(` -`)!==-1}function $P(t){return t!=null&&t.some(YK)}function ZK(t){return a9(t)||s9(t)||u9(t)}function a9(t){return t.kind===Ge.OPERATION_DEFINITION||t.kind===Ge.FRAGMENT_DEFINITION}function eJ(t){return t.kind===Ge.FIELD||t.kind===Ge.FRAGMENT_SPREAD||t.kind===Ge.INLINE_FRAGMENT}function tJ(t){return t.kind===Ge.VARIABLE||t.kind===Ge.INT||t.kind===Ge.FLOAT||t.kind===Ge.STRING||t.kind===Ge.BOOLEAN||t.kind===Ge.NULL||t.kind===Ge.ENUM||t.kind===Ge.LIST||t.kind===Ge.OBJECT}function rJ(t){return t.kind===Ge.NAMED_TYPE||t.kind===Ge.LIST_TYPE||t.kind===Ge.NON_NULL_TYPE}function s9(t){return t.kind===Ge.SCHEMA_DEFINITION||o9(t)||t.kind===Ge.DIRECTIVE_DEFINITION}function o9(t){return t.kind===Ge.SCALAR_TYPE_DEFINITION||t.kind===Ge.OBJECT_TYPE_DEFINITION||t.kind===Ge.INTERFACE_TYPE_DEFINITION||t.kind===Ge.UNION_TYPE_DEFINITION||t.kind===Ge.ENUM_TYPE_DEFINITION||t.kind===Ge.INPUT_OBJECT_TYPE_DEFINITION}function u9(t){return t.kind===Ge.SCHEMA_EXTENSION||c9(t)}function c9(t){return t.kind===Ge.SCALAR_TYPE_EXTENSION||t.kind===Ge.OBJECT_TYPE_EXTENSION||t.kind===Ge.INTERFACE_TYPE_EXTENSION||t.kind===Ge.UNION_TYPE_EXTENSION||t.kind===Ge.ENUM_TYPE_EXTENSION||t.kind===Ge.INPUT_OBJECT_TYPE_EXTENSION}const nJ=Object.freeze(Object.defineProperty({__proto__:null,BREAK:vd,DirectiveLocation:r9,Kind:Ge,Lexer:t9,Location:ix,Source:rx,Token:Qr,TokenKind:De,getLocation:$b,getVisitFn:Ub,isDefinitionNode:ZK,isExecutableDefinitionNode:a9,isSelectionNode:eJ,isTypeDefinitionNode:o9,isTypeExtensionNode:c9,isTypeNode:rJ,isTypeSystemDefinitionNode:s9,isTypeSystemExtensionNode:u9,isValueNode:tJ,parse:kK,parseType:GK,parseValue:QK,print:XK,printLocation:JC,printSourceLocation:nx,visit:i9,visitInParallel:WK},Symbol.toStringTag,{value:"Module"})),iJ=iA(nJ);var x0={},vn={},kg={};(function(){(function(t){(function(e){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(N){return N&&DataView.prototype.isPrototypeOf(N)}if(r.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(N){return N&&a.indexOf(Object.prototype.toString.call(N))>-1};function o(N){if(typeof N!="string"&&(N=String(N)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(N))throw new TypeError("Invalid character in header field name");return N.toLowerCase()}function u(N){return typeof N!="string"&&(N=String(N)),N}function c(N){var D={next:function(){var F=N.shift();return{done:F===void 0,value:F}}};return r.iterable&&(D[Symbol.iterator]=function(){return D}),D}function l(N){this.map={},N instanceof l?N.forEach(function(D,F){this.append(F,D)},this):Array.isArray(N)?N.forEach(function(D){this.append(D[0],D[1])},this):N&&Object.getOwnPropertyNames(N).forEach(function(D){this.append(D,N[D])},this)}l.prototype.append=function(N,D){N=o(N),D=u(D);var F=this.map[N];this.map[N]=F?F+", "+D:D},l.prototype.delete=function(N){delete this.map[o(N)]},l.prototype.get=function(N){return N=o(N),this.has(N)?this.map[N]:null},l.prototype.has=function(N){return this.map.hasOwnProperty(o(N))},l.prototype.set=function(N,D){this.map[o(N)]=u(D)},l.prototype.forEach=function(N,D){for(var F in this.map)this.map.hasOwnProperty(F)&&N.call(D,this.map[F],F,this)},l.prototype.keys=function(){var N=[];return this.forEach(function(D,F){N.push(F)}),c(N)},l.prototype.values=function(){var N=[];return this.forEach(function(D){N.push(D)}),c(N)},l.prototype.entries=function(){var N=[];return this.forEach(function(D,F){N.push([F,D])}),c(N)},r.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function d(N){if(N.bodyUsed)return Promise.reject(new TypeError("Already read"));N.bodyUsed=!0}function h(N){return new Promise(function(D,F){N.onload=function(){D(N.result)},N.onerror=function(){F(N.error)}})}function f(N){var D=new FileReader,F=h(D);return D.readAsArrayBuffer(N),F}function p(N){var D=new FileReader,F=h(D);return D.readAsText(N),F}function b(N){for(var D=new Uint8Array(N),F=new Array(D.length),W=0;W-1?D:N}function O(N,D){D=D||{};var F=D.body;if(N instanceof O){if(N.bodyUsed)throw new TypeError("Already read");this.url=N.url,this.credentials=N.credentials,D.headers||(this.headers=new l(N.headers)),this.method=N.method,this.mode=N.mode,this.signal=N.signal,!F&&N._bodyInit!=null&&(F=N._bodyInit,N.bodyUsed=!0)}else this.url=String(N);if(this.credentials=D.credentials||this.credentials||"same-origin",(D.headers||!this.headers)&&(this.headers=new l(D.headers)),this.method=I(D.method||this.method||"GET"),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function T(N){var D=new FormData;return N.trim().split("&").forEach(function(F){if(F){var W=F.split("="),z=W.shift().replace(/\+/g," "),M=W.join("=").replace(/\+/g," ");D.append(decodeURIComponent(z),decodeURIComponent(M))}}),D}function x(N){var D=new l,F=N.replace(/\r?\n[\t ]+/g," ");return F.split(/\r?\n/).forEach(function(W){var z=W.split(":"),M=z.shift().trim();if(M){var C=z.join(":").trim();D.append(M,C)}}),D}S.call(O.prototype);function P(N,D){D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in D?D.statusText:"OK",this.headers=new l(D.headers),this.url=D.url||"",this._initBody(N)}S.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},P.error=function(){var N=new P(null,{status:0,statusText:""});return N.type="error",N};var B=[301,302,303,307,308];P.redirect=function(N,D){if(B.indexOf(D)===-1)throw new RangeError("Invalid status code");return new P(null,{status:D,headers:{location:N}})},e.DOMException=t.DOMException;try{new e.DOMException}catch{e.DOMException=function(D,F){this.message=D,this.name=F;var W=Error(D);this.stack=W.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Q(N,D){return new Promise(function(F,W){var z=new O(N,D);if(z.signal&&z.signal.aborted)return W(new e.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function C(){M.abort()}M.onload=function(){var V={status:M.status,statusText:M.statusText,headers:x(M.getAllResponseHeaders()||"")};V.url="responseURL"in M?M.responseURL:V.headers.get("X-Request-URL");var ie="response"in M?M.response:M.responseText;F(new P(ie,V))},M.onerror=function(){W(new TypeError("Network request failed"))},M.ontimeout=function(){W(new TypeError("Network request failed"))},M.onabort=function(){W(new e.DOMException("Aborted","AbortError"))},M.open(z.method,z.url,!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&r.blob&&(M.responseType="blob"),z.headers.forEach(function(V,ie){M.setRequestHeader(ie,V)}),z.signal&&(z.signal.addEventListener("abort",C),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",C)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return Q.polyfill=!0,t.fetch||(t.fetch=Q,t.Headers=l,t.Request=O,t.Response=P),e.Headers=l,e.Request=O,e.Response=P,e.fetch=Q,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})(typeof self<"u"?self:g)})();var Na={},ku={};Object.defineProperty(ku,"__esModule",{value:!0});ku.removeDotSegmentsOfPath=ku.removeDotSegments=ku.resolve=void 0;function aJ(t,e){e=e||"";const r=e.indexOf("#");if(r>0&&(e=e.substr(0,r)),!t.length){if(e.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);return e}if(t.startsWith("?")){const l=e.indexOf("?");return l>0&&(e=e.substr(0,l)),e+t}if(t.startsWith("#"))return e+t;if(!e.length){const l=t.indexOf(":");if(l<0)throw new Error(`Found invalid relative IRI '${t}' for a missing baseIRI`);return Cc(t,l)}const n=t.indexOf(":");if(n>=0)return Cc(t,n);const a=e.indexOf(":");if(a<0)throw new Error(`Found invalid baseIRI '${e}' for value '${t}'`);const s=e.substr(0,a+1);if(t.indexOf("//")===0)return s+Cc(t,n);let o;if(e.indexOf("//",a)===a+1){if(o=e.indexOf("/",a+3),o<0)return e.length>a+3?e+"/"+Cc(t,n):s+Cc(t,n)}else if(o=e.indexOf("/",a+1),o<0)return s+Cc(t,n);if(t.indexOf("/")===0)return e.substr(0,o)+qb(t);let u=e.substr(o);const c=u.lastIndexOf("/");return c>=0&&cn.join("")).join("/")}ku.removeDotSegments=qb;function Cc(t,e){let r=e+1;e>=0?t[e+1]==="/"&&t[e+2]==="/"&&(r=e+3):t[0]==="/"&&t[1]==="/"&&(r=2);const n=t.indexOf("/",r);if(n<0)return t;const a=t.substr(0,n),s=t.substr(n);return a+qb(s)}ku.removeDotSegmentsOfPath=Cc;function UP(t){return!t||t==="#"||t==="?"||t==="/"}(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ku,t)})(Na);var Mf={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES=t.ErrorCoded=void 0;class e extends Error{constructor(n,a){super(n),this.code=a}}t.ErrorCoded=e,function(r){r.COLLIDING_KEYWORDS="colliding keywords",r.CONFLICTING_INDEXES="conflicting indexes",r.CYCLIC_IRI_MAPPING="cyclic IRI mapping",r.INVALID_ID_VALUE="invalid @id value",r.INVALID_INDEX_VALUE="invalid @index value",r.INVALID_NEST_VALUE="invalid @nest value",r.INVALID_PREFIX_VALUE="invalid @prefix value",r.INVALID_PROPAGATE_VALUE="invalid @propagate value",r.INVALID_REVERSE_VALUE="invalid @reverse value",r.INVALID_IMPORT_VALUE="invalid @import value",r.INVALID_VERSION_VALUE="invalid @version value",r.INVALID_BASE_IRI="invalid base IRI",r.INVALID_CONTAINER_MAPPING="invalid container mapping",r.INVALID_CONTEXT_ENTRY="invalid context entry",r.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",r.INVALID_DEFAULT_LANGUAGE="invalid default language",r.INVALID_INCLUDED_VALUE="invalid @included value",r.INVALID_IRI_MAPPING="invalid IRI mapping",r.INVALID_JSON_LITERAL="invalid JSON literal",r.INVALID_KEYWORD_ALIAS="invalid keyword alias",r.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",r.INVALID_LANGUAGE_MAPPING="invalid language mapping",r.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",r.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",r.INVALID_LOCAL_CONTEXT="invalid local context",r.INVALID_REMOTE_CONTEXT="invalid remote context",r.INVALID_REVERSE_PROPERTY="invalid reverse property",r.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",r.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",r.INVALID_SCOPED_CONTEXT="invalid scoped context",r.INVALID_SCRIPT_ELEMENT="invalid script element",r.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",r.INVALID_TERM_DEFINITION="invalid term definition",r.INVALID_TYPE_MAPPING="invalid type mapping",r.INVALID_TYPE_VALUE="invalid type value",r.INVALID_TYPED_VALUE="invalid typed value",r.INVALID_VALUE_OBJECT="invalid value object",r.INVALID_VALUE_OBJECT_VALUE="invalid value object value",r.INVALID_VOCAB_MAPPING="invalid vocab mapping",r.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",r.KEYWORD_REDEFINITION="keyword redefinition",r.LOADING_DOCUMENT_FAILED="loading document failed",r.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",r.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",r.PROCESSING_MODE_CONFLICT="processing mode conflict",r.PROTECTED_TERM_REDEFINITION="protected term redefinition",r.CONTEXT_OVERFLOW="context overflow",r.INVALID_BASE_DIRECTION="invalid base direction",r.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",r.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",r.INVALID_EMBEDDED_NODE="invalid embedded node",r.INVALID_ANNOTATION="invalid annotation"}(t.ERROR_CODES||(t.ERROR_CODES={}))})(Mf);var R0={},sJ=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,oJ=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,uJ=/\s|\uFEFF|\xA0/,cJ=/\r?\n[\x20\x09]+/g,lJ=/[;,"]/,dJ=/[;,"]|\s/,fJ=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,So={IDLE:1,URI:2,ATTR:4};function qP(t){return t.replace(oJ,"")}function db(t){return uJ.test(t)}function hJ(t,e){for(;db(t[e]);)e++;return e}function VP(t){return dJ.test(t)||!fJ.test(t)}function pJ(t,e){return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>r in e&&t[r]===e[r])}class Pr{constructor(e){this.refs=[],e&&this.parse(e)}rel(e){for(var r=[],n=e.toLowerCase(),a=0;apJ(r,e))||this.refs.push(e),this}has(e,r){e=e.toLowerCase(),r=r.toLowerCase();for(var n=0;n",s);if(u===-1)throw new Error("Expected end of URI delimiter at offset "+s);o={uri:e.slice(s+1,u)},s=u,n=So.URI}else throw new Error('Unexpected character "'+e[s]+'" at offset '+s);s++}else if(n===So.URI)if(db(e[s])){s++;continue}else if(e[s]===";")n=So.ATTR,s++;else if(e[s]===",")n=So.IDLE,s++;else throw new Error('Unexpected character "'+e[s]+'" at offset '+s);else if(n===So.ATTR){if(e[s]===";"||db(e[s])){s++;continue}var u=e.indexOf("=",s);u===-1&&(u=e.indexOf(";",s)),u===-1&&(u=e.length);var c=qP(e.slice(s,u)).toLowerCase(),l="";if(s=u+1,s=hJ(e,s),e[s]==='"')for(s++;s"),e.push(r);return e.join(", ")}}Pr.isCompatibleEncoding=function(t){return sJ.test(t)};Pr.parse=function(t,e){return new Pr().parse(t,e)};Pr.isSingleOccurenceAttr=function(t){return t==="rel"||t==="type"||t==="media"||t==="title"||t==="title*"};Pr.isTokenAttr=function(t){return t==="rel"||t==="type"||t==="anchor"};Pr.escapeQuotes=function(t){return t.replace(/"/g,'\\"')};Pr.expandRelations=function(t){var e=t.rel.split(" ");return e.map(function(r){var n=Object.assign({},t);return n.rel=r,n})};Pr.parseExtendedValue=function(t){var e=/([^']+)?(?:'([^']*)')?(.+)/.exec(t);return{language:e[2].toLowerCase(),encoding:Pr.isCompatibleEncoding(e[1])?null:e[1].toLowerCase(),value:Pr.isCompatibleEncoding(e[1])?decodeURIComponent(e[3]):e[3]}};Pr.formatExtendedAttribute=function(t,e){var r=(e.encoding||"utf-8").toUpperCase(),n=e.language||"en",a="";return Buffer.isBuffer(e.value)&&Pr.isCompatibleEncoding(r)?a=e.value.toString(r):Buffer.isBuffer(e.value)?a=e.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):a=encodeURIComponent(e.value),t+"="+r+"'"+n+"'"+a};Pr.formatAttribute=function(t,e){return Array.isArray(e)?e.map(r=>Pr.formatAttribute(t,r)).join("; "):t[t.length-1]==="*"||typeof e!="string"?Pr.formatExtendedAttribute(t,e):(Pr.isTokenAttr(t)?e=VP(e)?'"'+Pr.escapeQuotes(e)+'"':Pr.escapeQuotes(e):VP(e)&&(e=encodeURIComponent(e),e=e.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),e='"'+e+'"'),t+"="+e)};var l9=Pr;Object.defineProperty(R0,"__esModule",{value:!0});R0.FetchDocumentLoader=void 0;const HP=Mf,yJ=l9,bJ=Na;class mJ{constructor(e){this.fetcher=e}async load(e){const r=await(this.fetcher||fetch)(e,{headers:new Headers({accept:"application/ld+json"})});if(r.ok&&r.headers){let n=r.headers.get("Content-Type");if(n){const a=n.indexOf(";");a>0&&(n=n.substr(0,a))}if(n==="application/ld+json")return await r.json();if(r.headers.has("Link")){let a;if(r.headers.forEach((s,o)=>{if(o==="link"){const u=(0,yJ.parse)(s);for(const c of u.get("type","application/ld+json"))if(c.rel==="alternate"){if(a)throw new Error("Multiple JSON-LD alternate links were found on "+e);a=(0,bJ.resolve)(c.uri,e)}}}),a)return this.load(a)}throw new HP.ErrorCoded(`Unsupported JSON-LD media type ${n}`,HP.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(r.statusText||`Status code: ${r.status}`)}}R0.FetchDocumentLoader=mJ;var sx={},Lf={};Object.defineProperty(Lf,"__esModule",{value:!0});Lf.Util=void 0;let ga=class Ro{static isCompactIri(e){return e.indexOf(":")>0&&!(e&&e[0]==="#")}static getPrefix(e,r){if(e&&e[0]==="#")return null;const n=e.indexOf(":");if(n>=0){if(e.length>n+1&&e.charAt(n+1)==="/"&&e.charAt(n+2)==="/")return null;const a=e.substr(0,n);if(a==="_")return null;if(r[a])return a}return null}static getContextValueId(e){if(e===null||typeof e=="string")return e;const r=e["@id"];return r||null}static isSimpleTermDefinitionPrefix(e,r){return!Ro.isPotentialKeyword(e)&&(r.allowPrefixNonGenDelims||typeof e=="string"&&(e[0]==="_"||Ro.isPrefixIriEndingWithGenDelim(e)))}static isPotentialKeyword(e){return typeof e=="string"&&Ro.KEYWORD_REGEX.test(e)}static isPrefixIriEndingWithGenDelim(e){return Ro.ENDS_WITH_GEN_DELIM.test(e)}static isPrefixValue(e){return e&&(typeof e=="string"||e&&typeof e=="object")}static isValidIri(e){return!!(e&&Ro.IRI_REGEX.test(e))}static isValidIriWeak(e){return!!e&&e[0]!==":"&&Ro.IRI_REGEX_WEAK.test(e)}static isValidKeyword(e){return Ro.VALID_KEYWORDS[e]}static isTermProtected(e,r){const n=e[r];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(e){for(const r of Object.keys(e))if(Ro.isTermProtected(e,r))return!0;return!1}static isReservedInternalKeyword(e){return e.startsWith("@__")}static deepEqual(e,r){const n=Object.keys(e),a=Object.keys(r);return n.length!==a.length?!1:n.every(s=>{const o=e[s],u=r[s];return o===u||o!==null&&u!==null&&typeof o=="object"&&typeof u=="object"&&this.deepEqual(o,u)})}};ga.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/;ga.IRI_REGEX_WEAK=/(?::[^:])|\//;ga.KEYWORD_REGEX=/^@[a-z]+$/i;ga.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/;ga.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/;ga.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/;ga.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0};ga.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"];ga.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"];ga.ALIAS_RANGE_BLACKLIST=["@context","@preserve"];ga.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"];ga.CONTAINERS_1_0=["@list","@set","@index"];Lf.Util=ga;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultExpandOptions=t.JsonLdContextNormalized=void 0;const e=Na,r=Mf,n=Lf;class a{constructor(o){this.contextRaw=o}getContextRaw(){return this.contextRaw}expandTerm(o,u,c=t.defaultExpandOptions){const l=this.contextRaw[o];if(l===null||l&&l["@id"]===null)return null;let d=!0;if(l&&u){const S=n.Util.getContextValueId(l);if(S&&S!==o)if(typeof S!="string"||!n.Util.isValidIri(S)&&!n.Util.isValidKeyword(S))n.Util.isPotentialKeyword(S)||(d=!1);else return S}const h=n.Util.getPrefix(o,this.contextRaw),f=this.contextRaw["@vocab"],p=(!!f||f==="")&&f.indexOf(":")<0,b=this.contextRaw["@base"],y=n.Util.isPotentialKeyword(o);if(h){const S=this.contextRaw[h],w=n.Util.getContextValueId(S);if(w){if(typeof S=="string"||!c.allowPrefixForcing){if(!n.Util.isSimpleTermDefinitionPrefix(w,c))return o}else if(w[0]!=="_"&&!y&&!S["@prefix"]&&!(o in this.contextRaw))return o;return w+o.substr(h.length+1)}}else if(u&&(f||f===""||c.allowVocabRelativeToBase&&b&&p)&&!y&&!n.Util.isCompactIri(o))if(p){if(c.allowVocabRelativeToBase)return(f||b?(0,e.resolve)(f,b):"")+o;throw new r.ErrorCoded(`Relative vocab expansion for term '${o}' with vocab '${f}' is not allowed.`,r.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return f+o;else if(!u&&b&&!y&&!n.Util.isCompactIri(o))return(0,e.resolve)(o,b);if(d)return o;throw new r.ErrorCoded(`Invalid IRI mapping found for context entry '${o}': '${JSON.stringify(l)}'`,r.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(o,u){if(u&&this.contextRaw["@vocab"]&&o.startsWith(this.contextRaw["@vocab"]))return o.substr(this.contextRaw["@vocab"].length);if(!u&&this.contextRaw["@base"]&&o.startsWith(this.contextRaw["@base"]))return o.substr(this.contextRaw["@base"].length);const c={prefix:"",suffix:o};for(const l in this.contextRaw){const d=this.contextRaw[l];if(d&&!n.Util.isPotentialKeyword(l)){const h=n.Util.getContextValueId(d);if(o.startsWith(h)){const f=o.substr(h.length);if(f)f.length=0&&(s!=="@type"||typeof a[s]=="object"&&!(a[s]["@protected"]||a[s]["@container"]==="@set")))throw new Le.ErrorCoded(`Keywords can not be aliased to something else. -Tried mapping ${s} to ${JSON.stringify(o)}`,Le.ERROR_CODES.KEYWORD_REDEFINITION);if(pt.Util.ALIAS_RANGE_BLACKLIST.indexOf(pt.Util.getContextValueId(o))>=0)throw new Le.ErrorCoded(`Aliasing to certain keywords is not allowed. -Tried mapping ${s} to ${JSON.stringify(o)}`,Le.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(o&&pt.Util.isPotentialKeyword(pt.Util.getContextValueId(o))&&o["@prefix"]===!0)throw new Le.ErrorCoded(`Tried to use keyword aliases as prefix: '${s}': '${JSON.stringify(o)}'`,Le.ERROR_CODES.INVALID_TERM_DEFINITION);for(;pt.Util.isPrefixValue(a[s]);){const u=a[s];let c=!1;if(typeof u=="string")a[s]=e.expandTerm(u,!0),c=c||u!==a[s];else{const l=u["@id"],d=u["@type"],h=!("@prefix"in u)||pt.Util.isValidIri(s);if("@id"in u)l!=null&&typeof l=="string"&&(a[s]=Object.assign(Object.assign({},a[s]),{"@id":e.expandTerm(l,!0)}),c=c||l!==a[s]["@id"]);else if(!pt.Util.isPotentialKeyword(s)&&h){const f=e.expandTerm(s,!0);f!==s&&(a[s]=Object.assign(Object.assign({},a[s]),{"@id":f}),c=!0)}if(d&&typeof d=="string"&&d!=="@vocab"&&(!u["@container"]||!u["@container"]["@type"])&&h){let f=e.expandTerm(d,!0);r&&d===f&&(f=e.expandTerm(d,!1)),f!==d&&(c=!0,a[s]=Object.assign(Object.assign({},a[s]),{"@type":f}))}}if(!c)break}}}normalize(e,{processingMode:r,normalizeLanguageTags:n}){if(n||r===1)for(const a of Object.keys(e))if(a==="@language"&&typeof e[a]=="string")e[a]=e[a].toLowerCase();else{const s=e[a];if(s&&typeof s=="object"&&typeof s["@language"]=="string"){const o=s["@language"].toLowerCase();o!==s["@language"]&&(e[a]=Object.assign(Object.assign({},s),{"@language":o}))}}}containersToHash(e){for(const r of Object.keys(e)){const n=e[r];if(n&&typeof n=="object"){if(typeof n["@container"]=="string")e[r]=Object.assign(Object.assign({},n),{"@container":{[n["@container"]]:!0}});else if(Array.isArray(n["@container"])){const a={};for(const s of n["@container"])a[s]=!0;e[r]=Object.assign(Object.assign({},n),{"@container":a})}}}}applyScopedProtected(e,{processingMode:r},n){if(r&&r>=1.1&&e["@protected"]){for(const a of Object.keys(e))if(!pt.Util.isReservedInternalKeyword(a)&&!pt.Util.isPotentialKeyword(a)&&!pt.Util.isTermProtected(e,a)){const s=e[a];s&&typeof s=="object"?"@protected"in e[a]||(e[a]=Object.assign(Object.assign({},e[a]),{"@protected":!0})):(e[a]={"@id":s,"@protected":!0},pt.Util.isSimpleTermDefinitionPrefix(s,n)&&(e[a]=Object.assign(Object.assign({},e[a]),{"@prefix":!0})))}delete e["@protected"]}}validateKeywordRedefinitions(e,r,n,a){for(const s of a??Object.keys(r))if(pt.Util.isTermProtected(e,s)&&(typeof r[s]=="string"?r[s]={"@id":r[s],"@protected":!0}:r[s]=Object.assign(Object.assign({},r[s]),{"@protected":!0}),!pt.Util.deepEqual(e[s],r[s])))throw new Le.ErrorCoded(`Attempted to override the protected keyword ${s} from ${JSON.stringify(pt.Util.getContextValueId(e[s]))} to ${JSON.stringify(pt.Util.getContextValueId(r[s]))}`,Le.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(e,{processingMode:r}){for(const n of Object.keys(e)){if(pt.Util.isReservedInternalKeyword(n))continue;if(n==="")throw new Le.ErrorCoded(`The empty term is not allowed, got: '${n}': '${JSON.stringify(e[n])}'`,Le.ERROR_CODES.INVALID_TERM_DEFINITION);const a=e[n],s=typeof a;if(pt.Util.isPotentialKeyword(n)){switch(n.substr(1)){case"vocab":if(a!==null&&s!=="string")throw new Le.ErrorCoded(`Found an invalid @vocab IRI: ${a}`,Le.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(a!==null&&s!=="string")throw new Le.ErrorCoded(`Found an invalid @base IRI: ${e[n]}`,Le.ERROR_CODES.INVALID_BASE_IRI);break;case"language":a!==null&&jo.validateLanguage(a,!0,Le.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(a!==null&&s!=="number")throw new Le.ErrorCoded(`Found an invalid @version number: ${a}`,Le.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":a!==null&&jo.validateDirection(a,!0);break;case"propagate":if(r===1)throw new Le.ErrorCoded(`Found an illegal @propagate keyword: ${a}`,Le.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(a!==null&&s!=="boolean")throw new Le.ErrorCoded(`Found an invalid @propagate value: ${a}`,Le.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(pt.Util.isValidKeyword(n)&&pt.Util.isValidKeyword(pt.Util.getContextValueId(a)))throw new Le.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${pt.Util.getContextValueId(a)}'`,Le.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(a!==null)switch(s){case"string":if(pt.Util.getPrefix(a,e)===n)throw new Le.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.CYCLIC_IRI_MAPPING);if(pt.Util.isValidIriWeak(n)){if(a==="@type")throw new Le.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${a}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING);if(pt.Util.isValidIri(a)&&a!==new Ha.JsonLdContextNormalized(e).expandTerm(n))throw new Le.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${a}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!pt.Util.isCompactIri(n)&&!("@id"in a)&&(a["@type"]==="@id"?!e["@base"]:!e["@vocab"]))throw new Le.ErrorCoded(`Missing @id in context entry: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING);for(const o of Object.keys(a)){const u=a[o];if(u)switch(o){case"@id":if(pt.Util.isValidKeyword(u)&&u!=="@type"&&u!=="@id"&&u!=="@graph"&&u!=="@nest")throw new Le.ErrorCoded(`Illegal keyword alias in term value, found: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING);if(pt.Util.isValidIriWeak(n)){if(u==="@type")throw new Le.ErrorCoded(`IRIs can not be mapped to @type, found: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING);if(pt.Util.isValidIri(u)&&u!==new Ha.JsonLdContextNormalized(e).expandTerm(n))throw new Le.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof u!="string")throw new Le.ErrorCoded(`Detected non-string @id in context entry: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_IRI_MAPPING);if(pt.Util.getPrefix(u,e)===n)throw new Le.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(a["@container"]==="@type"&&u!=="@id"&&u!=="@vocab")throw new Le.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${n}': '${u}'`,Le.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof u!="string")throw new Le.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(s)}'`,Le.ERROR_CODES.INVALID_TYPE_MAPPING);if(u!=="@id"&&u!=="@vocab"&&(r===1||u!=="@json")&&(r===1||u!=="@none")&&(u[0]==="_"||!pt.Util.isValidIri(u)))throw new Le.ErrorCoded(`A context @type must be an absolute IRI, found: '${n}': '${u}'`,Le.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof u=="string"&&a["@id"]&&a["@id"]!==u)throw new Le.ErrorCoded(`Found non-matching @id and @reverse term values in '${n}':'${u}' and '${a["@id"]}'`,Le.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in a)throw new Le.ErrorCoded(`@nest is not allowed in the reverse property '${n}'`,Le.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(r===1&&(Object.keys(u).length>1||pt.Util.CONTAINERS_1_0.indexOf(Object.keys(u)[0])<0))throw new Le.ErrorCoded(`Invalid term @container for '${n}' ('${Object.keys(u)}') in 1.0, must be only one of ${pt.Util.CONTAINERS_1_0.join(", ")}`,Le.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const c of Object.keys(u)){if(c==="@list"&&a["@reverse"])throw new Le.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${n}'`,Le.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(pt.Util.CONTAINERS.indexOf(c)<0)throw new Le.ErrorCoded(`Invalid term @container for '${n}' ('${c}'), must be one of ${pt.Util.CONTAINERS.join(", ")}`,Le.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":jo.validateLanguage(u,!0,Le.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":jo.validateDirection(u,!0);break;case"@prefix":if(u!==null&&typeof u!="boolean")throw new Le.ErrorCoded(`Found an invalid term @prefix boolean in: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in a)&&!pt.Util.isValidIri(n))throw new Le.ErrorCoded(`Invalid @prefix definition for '${n}' ('${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(r===1||!a["@container"]||!a["@container"]["@index"])throw new Le.ErrorCoded(`Attempt to add illegal key to value object: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(pt.Util.isPotentialKeyword(u)&&u!=="@nest")throw new Le.ErrorCoded(`Found an invalid term @nest value in: '${n}': '${JSON.stringify(a)}'`,Le.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new Le.ErrorCoded(`Found an invalid term value: '${n}': '${a}'`,Le.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(e,r,n){return typeof e=="string"||(n&&!("@base"in e)&&r.parentContext&&typeof r.parentContext=="object"&&"@base"in r.parentContext&&(e["@base"]=r.parentContext["@base"],r.parentContext["@__baseDocument"]&&(e["@__baseDocument"]=!0)),r.baseIRI&&!r.external&&("@base"in e?e["@base"]!==null&&typeof e["@base"]=="string"&&!pt.Util.isValidIri(e["@base"])&&(e["@base"]=(0,kP.resolve)(e["@base"],r.parentContext&&r.parentContext["@base"]||r.baseIRI)):(e["@base"]=r.baseIRI,e["@__baseDocument"]=!0))),e}normalizeContextIri(e,r){if(!pt.Util.isValidIri(e))try{e=(0,kP.resolve)(e,r)}catch{throw new Error(`Invalid context IRI: ${e}`)}return this.redirectSchemaOrgHttps&&e.startsWith("http://schema.org")&&(e="https://schema.org/"),e}async parseInnerContexts(e,r,n){for(const a of n??Object.keys(e)){const s=e[a];if(s&&typeof s=="object"&&"@context"in s&&s["@context"]!==null&&!r.ignoreScopedContexts){if(this.validateContext)try{const o=Object.assign(Object.assign({},e),{[a]:Object.assign({},e[a])});delete o[a]["@context"],await this.parse(s["@context"],Object.assign(Object.assign({},r),{external:!1,parentContext:o,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(o){throw new Le.ErrorCoded(o.message,Le.ERROR_CODES.INVALID_SCOPED_CONTEXT)}e[a]=Object.assign(Object.assign({},s),{"@context":(await this.parse(s["@context"],Object.assign(Object.assign({},r),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:e}))).getContextRaw()})}}return e}async parse(e,r={},n={}){const{baseIRI:a,parentContext:s,external:o,processingMode:u=jo.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:c,ignoreProtection:l,minimalProcessing:d}=r,h=r.remoteContexts||{};if(Object.keys(h).length>=this.remoteContextsDepthLimit)throw new Le.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(h),Le.ERROR_CODES.CONTEXT_OVERFLOW);if(e==null){if(!l&&s&&pt.Util.hasProtectedTerms(s))throw new Le.ErrorCoded("Illegal context nullification when terms are protected",Le.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new Ha.JsonLdContextNormalized(this.applyBaseEntry({},r,!1))}else if(typeof e=="string"){const f=this.normalizeContextIri(e,a),p=this.getOverriddenLoad(f,r);if(p)return new Ha.JsonLdContextNormalized(p);const b=await this.parse(await this.load(f),Object.assign(Object.assign({},r),{baseIRI:f,external:!0,remoteContexts:Object.assign(Object.assign({},h),{[f]:!0})}));return this.applyBaseEntry(b.getContextRaw(),r,!0),b}else if(Array.isArray(e)){const f=[],p=await Promise.all(e.map((y,S)=>{if(typeof y=="string"){const w=this.normalizeContextIri(y,a);f[S]=w;const I=this.getOverriddenLoad(w,r);return I||this.load(w)}else return y}));if(d)return new Ha.JsonLdContextNormalized(p);const b=await p.reduce((y,S,w)=>y.then(I=>this.parse(S,Object.assign(Object.assign({},r),{baseIRI:f[w]||r.baseIRI,external:!!f[w]||r.external,parentContext:I.getContextRaw(),remoteContexts:f[w]?Object.assign(Object.assign({},h),{[f[w]]:!0}):h}),{skipValidation:w=1.1){if(typeof e["@import"]!="string")throw new Le.ErrorCoded("An @import value must be a string, but got "+typeof e["@import"],Le.ERROR_CODES.INVALID_IMPORT_VALUE);f=await this.loadImportContext(this.normalizeContextIri(e["@import"],a)),delete e["@import"]}else throw new Le.ErrorCoded("Context importing is not supported in JSON-LD 1.0",Le.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(f,{processingMode:u},Ha.defaultExpandOptions);const p=Object.assign(f,e);this.idifyReverseTerms(p),this.normalize(p,{processingMode:u,normalizeLanguageTags:c}),this.applyScopedProtected(p,{processingMode:u},Ha.defaultExpandOptions);const b=Object.keys(p),y=[];if(typeof s=="object")for(const w in s)w in p?y.push(w):p[w]=s[w];await this.parseInnerContexts(p,r,b);const S=new Ha.JsonLdContextNormalized(p);return(p&&p["@version"]||jo.DEFAULT_PROCESSING_MODE)>=1.1&&(e["@vocab"]&&typeof e["@vocab"]=="string"||e["@vocab"]==="")&&(s&&"@vocab"in s&&e["@vocab"].indexOf(":")<0?p["@vocab"]=s["@vocab"]+e["@vocab"]:(pt.Util.isCompactIri(e["@vocab"])||e["@vocab"]in p)&&(p["@vocab"]=S.expandTerm(e["@vocab"],!0))),this.expandPrefixedTerms(S,this.expandContentTypeToBase,b),!l&&s&&u>=1.1&&this.validateKeywordRedefinitions(s,p,Ha.defaultExpandOptions,y),this.validateContext&&!n.skipValidation&&this.validate(p,{processingMode:u}),S}else throw new Le.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${e}`,Le.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(e){const r=this.documentCache[e];if(r)return r;let n;try{n=await this.documentLoader.load(e)}catch(a){throw new Le.ErrorCoded(`Failed to load remote context ${e}: ${a.message}`,Le.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in n))throw new Le.ErrorCoded(`Missing @context in remote context at ${e}`,Le.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[e]=n["@context"]}getOverriddenLoad(e,r){if(e in(r.remoteContexts||{})){if(r.ignoreRemoteScopedContexts)return e;throw new Le.ErrorCoded("Detected a cyclic context inclusion of "+e,Le.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(e){let r=await this.load(e);if(typeof r!="object"||Array.isArray(r))throw new Le.ErrorCoded("An imported context must be a single object: "+e,Le.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in r)throw new Le.ErrorCoded("An imported context can not import another context: "+e,Le.ERROR_CODES.INVALID_CONTEXT_ENTRY);return r=Object.assign({},r),this.containersToHash(r),r}}jo.DEFAULT_PROCESSING_MODE=1.1;kg.ContextParser=jo;var d9={};Object.defineProperty(d9,"__esModule",{value:!0});var f9={};Object.defineProperty(f9,"__esModule",{value:!0});(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kg,t),r(Mf,t),r(R0,t),r(d9,t),r(f9,t),r(sx,t),r(Lf,t)})(vn);Object.defineProperty(x0,"__esModule",{value:!0});x0.Util=void 0;const _J=yt,vJ=vn,wJ=Tt;let SJ=class{constructor(e){this.nodeHandlers={},this.nodeValueHandlers={},this.directiveNodeHandlers={},this.settings=e,this.dataFactory=e.dataFactory||new _J.DataFactory,this.operationFactory=new wJ.Factory(this.dataFactory),this.contextParser=new vJ.ContextParser}registerNodeHandler(e){this.nodeHandlers[e.targetKind]=e}registerNodeValueHandler(e){this.nodeValueHandlers[e.targetKind]=e}registerDirectiveNodeHandler(e){this.directiveNodeHandlers[e.targetKind]=e}handleNode(e,r){const n=this.nodeHandlers[e.kind];if(!n)throw new Error(`Unsupported GraphQL node '${e.kind}'`);return n.handle(e,r)}handleNodeValue(e,r,n){const a=this.nodeValueHandlers[e.kind];if(!a)throw new Error(`Unsupported GraphQL value node '${e.kind}'`);return a.handle(e,r,n)}handleDirectiveNode(e,r){const n=this.directiveNodeHandlers[e.directive.name.value];return n?n.handle(e,r):null}joinOperations(e){if(e.length===1)return e[0];const r=[],n=[];for(const a of e)a.type==="bgp"?r.push(a):n.push(a);if(r.length===e.length)return this.joinOperationsAsBgp(r);if(r.length===e.length-1&&n[0].type==="leftjoin"&&n[0].input[0].type==="bgp"){const a=n[0];return r.push(a.input[0]),this.operationFactory.createLeftJoin(this.joinOperationsAsBgp(r),a.input[1])}else return n.length===e.length?this.joinOperationsAsNestedJoin(n):this.joinOperationsAsNestedJoin([this.joinOperationsAsBgp(r),this.joinOperationsAsNestedJoin(n)])}joinOperationsAsBgp(e){return this.operationFactory.createBgp([].concat.apply([],e.map(r=>r.patterns)))}joinOperationsAsNestedJoin(e){return this.operationFactory.createJoin(e)}appendFieldToPath(e,r){return e.concat([r])}getFieldLabel(e){return(e.alias?e.alias:e.name).value}nameToVariable(e,r){return this.dataFactory.variable((r.path.length?r.path.join(this.settings.variableDelimiter)+this.settings.variableDelimiter:"")+e)}valueToNamedNode(e,r){const n=r.expandTerm(e,!0);if(this.settings.requireContext&&!n)throw new Error("No context entry was found for "+e);return this.dataFactory.namedNode(n||e)}getArgument(e,r){if(e){for(const n of e)if(n.name.value===r)return n}}newTypePattern(e,r,n){return this.operationFactory.createPattern(e,this.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.valueToNamedNode(r.name.value,n.context),n.graph)}createQuadPattern(e,r,n,a,s){const o=this.valueToNamedNode(r.value,s);return s&&s.getContextRaw()[r.value]&&s.getContextRaw()[r.value]["@reverse"]?this.operationFactory.createPattern(n,o,e,a):this.operationFactory.createPattern(e,o,n,a)}createQuadPath(e,r,n,a,s,o){const u=this.valueToNamedNode(r.value,o);let c=this.operationFactory.createLink(u);for(const l of n.values){if(l.kind!=="EnumValue")throw new Error("Invalid value type for 'alt' argument, must be EnumValue, but got "+l.kind);c=this.operationFactory.createAlt([c,this.operationFactory.createLink(this.valueToNamedNode(l.value,o))])}return o&&o.getContextRaw()[r.value]&&o.getContextRaw()[r.value]["@reverse"]?this.operationFactory.createPath(a,c,e,s):this.operationFactory.createPath(e,c,a,s)}};x0.Util=SJ;var TJ=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(Vg,"__esModule",{value:!0});Vg.Converter=void 0;const EJ=iJ,mi=ex,nh=tx,OJ=Cf,AJ=x0;let xJ=class fb{constructor(e){e=e||{},e.variableDelimiter=e.variableDelimiter||"_",e.expressionVariableCounter=e.expressionVariableCounter||0,this.util=new AJ.Util(e),this.initializeNodeHandlers(e)}static registerNodeHandlers(e,r){e.registerNodeHandler(new mi.NodeHandlerDocument(e,r)),e.registerNodeHandler(new mi.NodeHandlerDefinitionOperation(e,r)),e.registerNodeHandler(new mi.NodeHandlerDefinitionFragment(e,r)),e.registerNodeHandler(new mi.NodeHandlerSelectionFragmentSpread(e,r)),e.registerNodeHandler(new mi.NodeHandlerSelectionInlineFragment(e,r)),e.registerNodeHandler(new mi.NodeHandlerSelectionField(e,r))}static registerNodeValueHandlers(e,r){e.registerNodeValueHandler(new mi.NodeValueHandlerVariable(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerInt(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerFloat(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerString(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerBoolean(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerNull(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerEnum(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerList(e,r)),e.registerNodeValueHandler(new mi.NodeValueHandlerObject(e,r))}static registerDirectiveNodeHandlers(e,r){e.registerDirectiveNodeHandler(new nh.DirectiveNodeHandlerInclude(e,r)),e.registerDirectiveNodeHandler(new nh.DirectiveNodeHandlerOptional(e,r)),e.registerDirectiveNodeHandler(new nh.DirectiveNodeHandlerPlural(e,r)),e.registerDirectiveNodeHandler(new nh.DirectiveNodeHandlerSingle(e,r)),e.registerDirectiveNodeHandler(new nh.DirectiveNodeHandlerSkip(e,r))}graphqlToSparqlAlgebra(e,r,n){return TJ(this,void 0,void 0,function*(){return this.graphqlToSparqlAlgebraRawContext(e,yield this.util.contextParser.parse(r),n)})}graphqlToSparqlAlgebraRawContext(e,r,n){n=n||{};const a=typeof e=="string"?(0,EJ.parse)(e):e,s=this.indexFragments(a),o={context:r,fragmentDefinitions:s,graph:this.util.dataFactory.defaultGraph(),path:[],singularizeState:OJ.SingularizeState.PLURAL,singularizeVariables:n.singularizeVariables||{},subject:null,terminalVariables:[],variablesDict:n.variablesDict||{},variablesMetaDict:{}};return this.util.handleNode(a,o)}indexFragments(e){const r={},n=[];for(const a of e.definitions)a.kind==="FragmentDefinition"?r[a.name.value]=a:n.push(a);return e.definitions=n,r}initializeNodeHandlers(e){fb.registerNodeHandlers(this.util,e),fb.registerNodeValueHandlers(this.util,e),fb.registerDirectiveNodeHandlers(this.util,e)}};Vg.Converter=xJ;var h9={};Object.defineProperty(h9,"__esModule",{value:!0});(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ex,t),r(Vg,t),r(Cf,t),r(h9,t),r(x0,t)})(GC);Object.defineProperty(wg,"__esModule",{value:!0});wg.ActorQueryParseGraphql=void 0;const RJ=ZA,QP=Ht,IJ=GC;class PJ extends RJ.ActorQueryParse{constructor(e){super(e),this.graphqlToSparql=new IJ.Converter({requireContext:!0})}async test(e){var r;if(((r=e.queryFormat)==null?void 0:r.language)!=="graphql")throw new Error("This actor can only parse GraphQL queries");return!0}async run(e){const r=e.context.get(QP.KeysInitQuery.jsonLdContext)||{},n={singularizeVariables:e.context.get(QP.KeysInitQuery.graphqlSingularizeVariables)};return{operation:await this.graphqlToSparql.graphqlToSparqlAlgebra(e.query,r,n)}}}wg.ActorQueryParseGraphql=PJ;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wg,t)})(QC);var uc={},Qg={};Object.defineProperty(Qg,"__esModule",{value:!0});Qg.MediatorCombineUnion=void 0;const DJ=et;class NJ extends DJ.Mediator{constructor(e){super(e),this.combiner=this.createCombiner()}async mediate(e){let r;try{r=this.publish(e)}catch{r=[]}await Promise.all(r.map(({reply:a})=>a));const n=await Promise.all(r.map(a=>a.actor.runObservable(e)));return this.combiner(n)}mediateWith(){throw new Error("Method not supported.")}createCombiner(){return e=>{const r={};return r[this.field]={},[{}].concat(e.map(n=>n[this.field])).forEach((n,a,s)=>{r[this.field]={...n,...r[this.field]}}),r}}}Qg.MediatorCombineUnion=NJ;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Qg,t)})(uc);var p9={},Gg={},bs={},zg={},El={},I0={};Object.defineProperty(I0,"__esModule",{value:!0});I0.ActorAbstractMediaTyped=void 0;const jJ=et;class CJ extends jJ.Actor{constructor(e){super(e)}async run(e){if("handle"in e){const r=e;return{handle:await this.runHandle(r.handle,r.handleMediaType,e.context)}}if("mediaTypes"in e)return{mediaTypes:await this.getMediaTypes(e.context)};if("mediaTypeFormats"in e)return{mediaTypeFormats:await this.getMediaTypeFormats(e.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}async test(e){if("handle"in e){const r=e;return{handle:await this.testHandle(r.handle,r.handleMediaType,e.context)}}if("mediaTypes"in e)return{mediaTypes:await this.testMediaType(e.context)};if("mediaTypeFormats"in e)return{mediaTypeFormats:await this.testMediaTypeFormats(e.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}}I0.ActorAbstractMediaTyped=CJ;var Wg={};Object.defineProperty(Wg,"__esModule",{value:!0});Wg.ActorAbstractMediaTypedFixed=void 0;const FJ=I0;class MJ extends FJ.ActorAbstractMediaTyped{constructor(e){super(e);const r=this.priorityScale||this.priorityScale===0?this.priorityScale:1;this.mediaTypePriorities&&Object.entries(this.mediaTypePriorities).forEach(([n,a],s)=>{this.mediaTypePriorities[n]=r*a}),this.mediaTypePriorities=Object.freeze(this.mediaTypePriorities),this.mediaTypeFormats=Object.freeze(this.mediaTypeFormats)}async testHandle(e,r,n){if(!r||!(r in this.mediaTypePriorities))throw new Error(`Unrecognized media type: ${r}`);return await this.testHandleChecked(e,n)}async testMediaType(e){return!0}async getMediaTypes(e){return this.mediaTypePriorities}async testMediaTypeFormats(e){return!0}async getMediaTypeFormats(e){return this.mediaTypeFormats}}Wg.ActorAbstractMediaTypedFixed=MJ;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(I0,t),r(Wg,t)})(El);Object.defineProperty(zg,"__esModule",{value:!0});zg.ActorQueryResultSerialize=void 0;const LJ=El;class BJ extends LJ.ActorAbstractMediaTyped{constructor(e){super(e)}}zg.ActorQueryResultSerialize=BJ;var Xg={};Object.defineProperty(Xg,"__esModule",{value:!0});Xg.ActorQueryResultSerializeFixedMediaTypes=void 0;const $J=El;class UJ extends $J.ActorAbstractMediaTypedFixed{constructor(e){super(e)}async testHandleChecked(e,r){return!0}}Xg.ActorQueryResultSerializeFixedMediaTypes=UJ;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(zg,t),r(Xg,t)})(bs);var y9={exports:{}},US={exports:{}},ao={},Kg={};Kg.byteLength=HJ;Kg.toByteArray=QJ;Kg.fromByteArray=WJ;var $s=[],Sa=[],qJ=typeof Uint8Array<"u"?Uint8Array:Array,qS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Jl=0,VJ=qS.length;Jl0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function HJ(t){var e=b9(t),r=e[0],n=e[1];return(r+n)*3/4-n}function kJ(t,e,r){return(e+r)*3/4-r}function QJ(t){var e,r=b9(t),n=r[0],a=r[1],s=new qJ(kJ(t,n,a)),o=0,u=a>0?n-4:n,c;for(c=0;c>16&255,s[o++]=e>>8&255,s[o++]=e&255;return a===2&&(e=Sa[t.charCodeAt(c)]<<2|Sa[t.charCodeAt(c+1)]>>4,s[o++]=e&255),a===1&&(e=Sa[t.charCodeAt(c)]<<10|Sa[t.charCodeAt(c+1)]<<4|Sa[t.charCodeAt(c+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function GJ(t){return $s[t>>18&63]+$s[t>>12&63]+$s[t>>6&63]+$s[t&63]}function zJ(t,e,r){for(var n,a=[],s=e;su?u:o+s));return n===1?(e=t[r-1],a.push($s[e>>2]+$s[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],a.push($s[e>>10]+$s[e>>4&63]+$s[e<<2&63]+"=")),a.join("")}var ox={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ox.read=function(t,e,r,n,a){var s,o,u=a*8-n-1,c=(1<>1,d=-7,h=r?a-1:0,f=r?-1:1,p=t[e+h];for(h+=f,s=p&(1<<-d)-1,p>>=-d,d+=u;d>0;s=s*256+t[e+h],h+=f,d-=8);for(o=s&(1<<-d)-1,s>>=-d,d+=n;d>0;o=o*256+t[e+h],h+=f,d-=8);if(s===0)s=1-l;else{if(s===c)return o?NaN:(p?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-l}return(p?-1:1)*o*Math.pow(2,s-n)};ox.write=function(t,e,r,n,a,s){var o,u,c,l=s*8-a-1,d=(1<>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,b=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,o=d):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(o++,c/=2),o+h>=d?(u=0,o=d):o+h>=1?(u=(e*c-1)*Math.pow(2,a),o=o+h):(u=e*Math.pow(2,h-1)*Math.pow(2,a),o=0));a>=8;t[r+p]=u&255,p+=b,u/=256,a-=8);for(o=o<0;t[r+p]=o&255,p+=b,o/=256,l-=8);t[r+p-b]|=y*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(t){const e=Kg,r=ox,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=I,t.INSPECT_MAX_BYTES=50;const a=2147483647;t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=s(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const U=new Uint8Array(1),E={foo:function(){return 42}};return Object.setPrototypeOf(E,Uint8Array.prototype),Object.setPrototypeOf(U,E),U.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function o(U){if(U>a)throw new RangeError('The value "'+U+'" is invalid for option "size"');const E=new Uint8Array(U);return Object.setPrototypeOf(E,u.prototype),E}function u(U,E,R){if(typeof U=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(U)}return c(U,E,R)}u.poolSize=8192;function c(U,E,R){if(typeof U=="string")return f(U,E);if(ArrayBuffer.isView(U))return b(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(de(U,ArrayBuffer)||U&&de(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(U,SharedArrayBuffer)||U&&de(U.buffer,SharedArrayBuffer)))return y(U,E,R);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const K=U.valueOf&&U.valueOf();if(K!=null&&K!==U)return u.from(K,E,R);const ce=S(U);if(ce)return ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return u.from(U[Symbol.toPrimitive]("string"),E,R);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}u.from=function(U,E,R){return c(U,E,R)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function d(U,E,R){return l(U),U<=0?o(U):E!==void 0?typeof R=="string"?o(U).fill(E,R):o(U).fill(E):o(U)}u.alloc=function(U,E,R){return d(U,E,R)};function h(U){return l(U),o(U<0?0:w(U)|0)}u.allocUnsafe=function(U){return h(U)},u.allocUnsafeSlow=function(U){return h(U)};function f(U,E){if((typeof E!="string"||E==="")&&(E="utf8"),!u.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const R=O(U,E)|0;let K=o(R);const ce=K.write(U,E);return ce!==R&&(K=K.slice(0,ce)),K}function p(U){const E=U.length<0?0:w(U.length)|0,R=o(E);for(let K=0;K=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return U|0}function I(U){return+U!=U&&(U=0),u.alloc(+U)}u.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==u.prototype},u.compare=function(E,R){if(de(E,Uint8Array)&&(E=u.from(E,E.offset,E.byteLength)),de(R,Uint8Array)&&(R=u.from(R,R.offset,R.byteLength)),!u.isBuffer(E)||!u.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===R)return 0;let K=E.length,ce=R.length;for(let ye=0,ge=Math.min(K,ce);yece.length?(u.isBuffer(ge)||(ge=u.from(ge)),ge.copy(ce,ye)):Uint8Array.prototype.set.call(ce,ge,ye);else if(u.isBuffer(ge))ge.copy(ce,ye);else throw new TypeError('"list" argument must be an Array of Buffers');ye+=ge.length}return ce};function O(U,E){if(u.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||de(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const R=U.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&R===0)return 0;let ce=!1;for(;;)switch(E){case"ascii":case"latin1":case"binary":return R;case"utf8":case"utf-8":return $(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R*2;case"hex":return R>>>1;case"base64":return J(U).length;default:if(ce)return K?-1:$(U).length;E=(""+E).toLowerCase(),ce=!0}}u.byteLength=O;function T(U,E,R){let K=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((R===void 0||R>this.length)&&(R=this.length),R<=0)||(R>>>=0,E>>>=0,R<=E))return"";for(U||(U="utf8");;)switch(U){case"hex":return fe(this,E,R);case"utf8":case"utf-8":return M(this,E,R);case"ascii":return ie(this,E,R);case"latin1":case"binary":return ne(this,E,R);case"base64":return z(this,E,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _e(this,E,R);default:if(K)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),K=!0}}u.prototype._isBuffer=!0;function x(U,E,R){const K=U[E];U[E]=U[R],U[R]=K}u.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;RR&&(E+=" ... "),""},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(E,R,K,ce,ye){if(de(E,Uint8Array)&&(E=u.from(E,E.offset,E.byteLength)),!u.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(R===void 0&&(R=0),K===void 0&&(K=E?E.length:0),ce===void 0&&(ce=0),ye===void 0&&(ye=this.length),R<0||K>E.length||ce<0||ye>this.length)throw new RangeError("out of range index");if(ce>=ye&&R>=K)return 0;if(ce>=ye)return-1;if(R>=K)return 1;if(R>>>=0,K>>>=0,ce>>>=0,ye>>>=0,this===E)return 0;let ge=ye-ce,$e=K-R;const ke=Math.min(ge,$e),Xe=this.slice(ce,ye),Ke=E.slice(R,K);for(let ht=0;ht2147483647?R=2147483647:R<-2147483648&&(R=-2147483648),R=+R,be(R)&&(R=ce?0:U.length-1),R<0&&(R=U.length+R),R>=U.length){if(ce)return-1;R=U.length-1}else if(R<0)if(ce)R=0;else return-1;if(typeof E=="string"&&(E=u.from(E,K)),u.isBuffer(E))return E.length===0?-1:B(U,E,R,K,ce);if(typeof E=="number")return E=E&255,typeof Uint8Array.prototype.indexOf=="function"?ce?Uint8Array.prototype.indexOf.call(U,E,R):Uint8Array.prototype.lastIndexOf.call(U,E,R):B(U,[E],R,K,ce);throw new TypeError("val must be string, number or Buffer")}function B(U,E,R,K,ce){let ye=1,ge=U.length,$e=E.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(U.length<2||E.length<2)return-1;ye=2,ge/=2,$e/=2,R/=2}function ke(Ke,ht){return ye===1?Ke[ht]:Ke.readUInt16BE(ht*ye)}let Xe;if(ce){let Ke=-1;for(Xe=R;Xege&&(R=ge-$e),Xe=R;Xe>=0;Xe--){let Ke=!0;for(let ht=0;ht<$e;ht++)if(ke(U,Xe+ht)!==ke(E,ht)){Ke=!1;break}if(Ke)return Xe}return-1}u.prototype.includes=function(E,R,K){return this.indexOf(E,R,K)!==-1},u.prototype.indexOf=function(E,R,K){return P(this,E,R,K,!0)},u.prototype.lastIndexOf=function(E,R,K){return P(this,E,R,K,!1)};function Q(U,E,R,K){R=Number(R)||0;const ce=U.length-R;K?(K=Number(K),K>ce&&(K=ce)):K=ce;const ye=E.length;K>ye/2&&(K=ye/2);let ge;for(ge=0;ge>>0,isFinite(K)?(K=K>>>0,ce===void 0&&(ce="utf8")):(ce=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ye=this.length-R;if((K===void 0||K>ye)&&(K=ye),E.length>0&&(K<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");let ge=!1;for(;;)switch(ce){case"hex":return Q(this,E,R,K);case"utf8":case"utf-8":return N(this,E,R,K);case"ascii":case"latin1":case"binary":return D(this,E,R,K);case"base64":return F(this,E,R,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,E,R,K);default:if(ge)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),ge=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function z(U,E,R){return E===0&&R===U.length?e.fromByteArray(U):e.fromByteArray(U.slice(E,R))}function M(U,E,R){R=Math.min(U.length,R);const K=[];let ce=E;for(;ce239?4:ye>223?3:ye>191?2:1;if(ce+$e<=R){let ke,Xe,Ke,ht;switch($e){case 1:ye<128&&(ge=ye);break;case 2:ke=U[ce+1],(ke&192)===128&&(ht=(ye&31)<<6|ke&63,ht>127&&(ge=ht));break;case 3:ke=U[ce+1],Xe=U[ce+2],(ke&192)===128&&(Xe&192)===128&&(ht=(ye&15)<<12|(ke&63)<<6|Xe&63,ht>2047&&(ht<55296||ht>57343)&&(ge=ht));break;case 4:ke=U[ce+1],Xe=U[ce+2],Ke=U[ce+3],(ke&192)===128&&(Xe&192)===128&&(Ke&192)===128&&(ht=(ye&15)<<18|(ke&63)<<12|(Xe&63)<<6|Ke&63,ht>65535&&ht<1114112&&(ge=ht))}}ge===null?(ge=65533,$e=1):ge>65535&&(ge-=65536,K.push(ge>>>10&1023|55296),ge=56320|ge&1023),K.push(ge),ce+=$e}return V(K)}const C=4096;function V(U){const E=U.length;if(E<=C)return String.fromCharCode.apply(String,U);let R="",K=0;for(;KK)&&(R=K);let ce="";for(let ye=E;yeK&&(E=K),R<0?(R+=K,R<0&&(R=0)):R>K&&(R=K),RR)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(E,R,K){E=E>>>0,R=R>>>0,K||we(E,R,this.length);let ce=this[E],ye=1,ge=0;for(;++ge>>0,R=R>>>0,K||we(E,R,this.length);let ce=this[E+--R],ye=1;for(;R>0&&(ye*=256);)ce+=this[E+--R]*ye;return ce},u.prototype.readUint8=u.prototype.readUInt8=function(E,R){return E=E>>>0,R||we(E,1,this.length),this[E]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(E,R){return E=E>>>0,R||we(E,2,this.length),this[E]|this[E+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(E,R){return E=E>>>0,R||we(E,2,this.length),this[E]<<8|this[E+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(E,R){return E=E>>>0,R||we(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(E,R){return E=E>>>0,R||we(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},u.prototype.readBigUInt64LE=xe(function(E){E=E>>>0,m(E,"offset");const R=this[E],K=this[E+7];(R===void 0||K===void 0)&&v(E,this.length-8);const ce=R+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,ye=this[++E]+this[++E]*2**8+this[++E]*2**16+K*2**24;return BigInt(ce)+(BigInt(ye)<>>0,m(E,"offset");const R=this[E],K=this[E+7];(R===void 0||K===void 0)&&v(E,this.length-8);const ce=R*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],ye=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+K;return(BigInt(ce)<>>0,R=R>>>0,K||we(E,R,this.length);let ce=this[E],ye=1,ge=0;for(;++ge=ye&&(ce-=Math.pow(2,8*R)),ce},u.prototype.readIntBE=function(E,R,K){E=E>>>0,R=R>>>0,K||we(E,R,this.length);let ce=R,ye=1,ge=this[E+--ce];for(;ce>0&&(ye*=256);)ge+=this[E+--ce]*ye;return ye*=128,ge>=ye&&(ge-=Math.pow(2,8*R)),ge},u.prototype.readInt8=function(E,R){return E=E>>>0,R||we(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},u.prototype.readInt16LE=function(E,R){E=E>>>0,R||we(E,2,this.length);const K=this[E]|this[E+1]<<8;return K&32768?K|4294901760:K},u.prototype.readInt16BE=function(E,R){E=E>>>0,R||we(E,2,this.length);const K=this[E+1]|this[E]<<8;return K&32768?K|4294901760:K},u.prototype.readInt32LE=function(E,R){return E=E>>>0,R||we(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},u.prototype.readInt32BE=function(E,R){return E=E>>>0,R||we(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},u.prototype.readBigInt64LE=xe(function(E){E=E>>>0,m(E,"offset");const R=this[E],K=this[E+7];(R===void 0||K===void 0)&&v(E,this.length-8);const ce=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(K<<24);return(BigInt(ce)<>>0,m(E,"offset");const R=this[E],K=this[E+7];(R===void 0||K===void 0)&&v(E,this.length-8);const ce=(R<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(ce)<>>0,R||we(E,4,this.length),r.read(this,E,!0,23,4)},u.prototype.readFloatBE=function(E,R){return E=E>>>0,R||we(E,4,this.length),r.read(this,E,!1,23,4)},u.prototype.readDoubleLE=function(E,R){return E=E>>>0,R||we(E,8,this.length),r.read(this,E,!0,52,8)},u.prototype.readDoubleBE=function(E,R){return E=E>>>0,R||we(E,8,this.length),r.read(this,E,!1,52,8)};function Ce(U,E,R,K,ce,ye){if(!u.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>ce||EU.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(E,R,K,ce){if(E=+E,R=R>>>0,K=K>>>0,!ce){const $e=Math.pow(2,8*K)-1;Ce(this,E,R,K,$e,0)}let ye=1,ge=0;for(this[R]=E&255;++ge>>0,K=K>>>0,!ce){const $e=Math.pow(2,8*K)-1;Ce(this,E,R,K,$e,0)}let ye=K-1,ge=1;for(this[R+ye]=E&255;--ye>=0&&(ge*=256);)this[R+ye]=E/ge&255;return R+K},u.prototype.writeUint8=u.prototype.writeUInt8=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,1,255,0),this[R]=E&255,R+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,2,65535,0),this[R]=E&255,this[R+1]=E>>>8,R+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,2,65535,0),this[R]=E>>>8,this[R+1]=E&255,R+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,4,4294967295,0),this[R+3]=E>>>24,this[R+2]=E>>>16,this[R+1]=E>>>8,this[R]=E&255,R+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,4,4294967295,0),this[R]=E>>>24,this[R+1]=E>>>16,this[R+2]=E>>>8,this[R+3]=E&255,R+4};function oe(U,E,R,K,ce){A(E,K,ce,U,R,7);let ye=Number(E&BigInt(4294967295));U[R++]=ye,ye=ye>>8,U[R++]=ye,ye=ye>>8,U[R++]=ye,ye=ye>>8,U[R++]=ye;let ge=Number(E>>BigInt(32)&BigInt(4294967295));return U[R++]=ge,ge=ge>>8,U[R++]=ge,ge=ge>>8,U[R++]=ge,ge=ge>>8,U[R++]=ge,R}function ae(U,E,R,K,ce){A(E,K,ce,U,R,7);let ye=Number(E&BigInt(4294967295));U[R+7]=ye,ye=ye>>8,U[R+6]=ye,ye=ye>>8,U[R+5]=ye,ye=ye>>8,U[R+4]=ye;let ge=Number(E>>BigInt(32)&BigInt(4294967295));return U[R+3]=ge,ge=ge>>8,U[R+2]=ge,ge=ge>>8,U[R+1]=ge,ge=ge>>8,U[R]=ge,R+8}u.prototype.writeBigUInt64LE=xe(function(E,R=0){return oe(this,E,R,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=xe(function(E,R=0){return ae(this,E,R,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(E,R,K,ce){if(E=+E,R=R>>>0,!ce){const ke=Math.pow(2,8*K-1);Ce(this,E,R,K,ke-1,-ke)}let ye=0,ge=1,$e=0;for(this[R]=E&255;++ye>0)-$e&255;return R+K},u.prototype.writeIntBE=function(E,R,K,ce){if(E=+E,R=R>>>0,!ce){const ke=Math.pow(2,8*K-1);Ce(this,E,R,K,ke-1,-ke)}let ye=K-1,ge=1,$e=0;for(this[R+ye]=E&255;--ye>=0&&(ge*=256);)E<0&&$e===0&&this[R+ye+1]!==0&&($e=1),this[R+ye]=(E/ge>>0)-$e&255;return R+K},u.prototype.writeInt8=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,1,127,-128),E<0&&(E=255+E+1),this[R]=E&255,R+1},u.prototype.writeInt16LE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,2,32767,-32768),this[R]=E&255,this[R+1]=E>>>8,R+2},u.prototype.writeInt16BE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,2,32767,-32768),this[R]=E>>>8,this[R+1]=E&255,R+2},u.prototype.writeInt32LE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,4,2147483647,-2147483648),this[R]=E&255,this[R+1]=E>>>8,this[R+2]=E>>>16,this[R+3]=E>>>24,R+4},u.prototype.writeInt32BE=function(E,R,K){return E=+E,R=R>>>0,K||Ce(this,E,R,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[R]=E>>>24,this[R+1]=E>>>16,this[R+2]=E>>>8,this[R+3]=E&255,R+4},u.prototype.writeBigInt64LE=xe(function(E,R=0){return oe(this,E,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=xe(function(E,R=0){return ae(this,E,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ae(U,E,R,K,ce,ye){if(R+K>U.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("Index out of range")}function Ie(U,E,R,K,ce){return E=+E,R=R>>>0,ce||Ae(U,E,R,4),r.write(U,E,R,K,23,4),R+4}u.prototype.writeFloatLE=function(E,R,K){return Ie(this,E,R,!0,K)},u.prototype.writeFloatBE=function(E,R,K){return Ie(this,E,R,!1,K)};function he(U,E,R,K,ce){return E=+E,R=R>>>0,ce||Ae(U,E,R,8),r.write(U,E,R,K,52,8),R+8}u.prototype.writeDoubleLE=function(E,R,K){return he(this,E,R,!0,K)},u.prototype.writeDoubleBE=function(E,R,K){return he(this,E,R,!1,K)},u.prototype.copy=function(E,R,K,ce){if(!u.isBuffer(E))throw new TypeError("argument should be a Buffer");if(K||(K=0),!ce&&ce!==0&&(ce=this.length),R>=E.length&&(R=E.length),R||(R=0),ce>0&&ce=this.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),E.length-R>>0,K=K===void 0?this.length:K>>>0,E||(E=0);let ye;if(typeof E=="number")for(ye=R;ye2**32?ce=L(String(R)):typeof R=="bigint"&&(ce=String(R),(R>BigInt(2)**BigInt(32)||R<-(BigInt(2)**BigInt(32)))&&(ce=L(ce)),ce+="n"),K+=` It must be ${E}. Received ${ce}`,K},RangeError);function L(U){let E="",R=U.length;const K=U[0]==="-"?1:0;for(;R>=K+4;R-=3)E=`_${U.slice(R-3,R)}${E}`;return`${U.slice(0,R)}${E}`}function H(U,E,R){m(E,"offset"),(U[E]===void 0||U[E+R]===void 0)&&v(E,U.length-(R+1))}function A(U,E,R,K,ce,ye){if(U>R||U3?E===0||E===BigInt(0)?$e=`>= 0${ge} and < 2${ge} ** ${(ye+1)*8}${ge}`:$e=`>= -(2${ge} ** ${(ye+1)*8-1}${ge}) and < 2 ** ${(ye+1)*8-1}${ge}`:$e=`>= ${E}${ge} and <= ${R}${ge}`,new ve.ERR_OUT_OF_RANGE("value",$e,U)}H(K,ce,ye)}function m(U,E){if(typeof U!="number")throw new ve.ERR_INVALID_ARG_TYPE(E,"number",U)}function v(U,E,R){throw Math.floor(U)!==U?(m(U,R),new ve.ERR_OUT_OF_RANGE(R||"offset","an integer",U)):E<0?new ve.ERR_BUFFER_OUT_OF_BOUNDS:new ve.ERR_OUT_OF_RANGE(R||"offset",`>= ${R?1:0} and <= ${E}`,U)}const j=/[^+/0-9A-Za-z-_]/g;function q(U){if(U=U.split("=")[0],U=U.trim().replace(j,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function $(U,E){E=E||1/0;let R;const K=U.length;let ce=null;const ye=[];for(let ge=0;ge55295&&R<57344){if(!ce){if(R>56319){(E-=3)>-1&&ye.push(239,191,189);continue}else if(ge+1===K){(E-=3)>-1&&ye.push(239,191,189);continue}ce=R;continue}if(R<56320){(E-=3)>-1&&ye.push(239,191,189),ce=R;continue}R=(ce-55296<<10|R-56320)+65536}else ce&&(E-=3)>-1&&ye.push(239,191,189);if(ce=null,R<128){if((E-=1)<0)break;ye.push(R)}else if(R<2048){if((E-=2)<0)break;ye.push(R>>6|192,R&63|128)}else if(R<65536){if((E-=3)<0)break;ye.push(R>>12|224,R>>6&63|128,R&63|128)}else if(R<1114112){if((E-=4)<0)break;ye.push(R>>18|240,R>>12&63|128,R>>6&63|128,R&63|128)}else throw new Error("Invalid code point")}return ye}function G(U){const E=[];for(let R=0;R>8,ce=R%256,ye.push(ce),ye.push(K);return ye}function J(U){return e.toByteArray(q(U))}function re(U,E,R,K){let ce;for(ce=0;ce=E.length||ce>=U.length);++ce)E[ce+R]=U[ce];return ce}function de(U,E){return U instanceof E||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===E.name}function be(U){return U!==U}const Ee=function(){const U="0123456789abcdef",E=new Array(256);for(let R=0;R<16;++R){const K=R*16;for(let ce=0;ce<16;++ce)E[K+ce]=U[R]+U[ce]}return E}();function xe(U){return typeof BigInt>"u"?Pe:U}function Pe(){throw new Error("BigInt not supported")}})(ao);var Kr={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array},m9={exports:{}},ih={exports:{}},GP;function af(){if(GP)return ih.exports;GP=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return ih.exports=t,ih.exports.AbortSignal=e,ih.exports.default=t,ih.exports}(function(t){const e=ao,{kResistStopPropagation:r,SymbolDispose:n}=Kr,a=globalThis.AbortSignal||af().AbortSignal,s=globalThis.AbortController||af().AbortController,o=Object.getPrototypeOf(async function(){}).constructor,u=globalThis.Blob||e.Blob,c=typeof u<"u"?function(p){return p instanceof u}:function(p){return!1},l=(f,p)=>{if(f!==void 0&&(f===null||typeof f!="object"||!("aborted"in f)))throw new ERR_INVALID_ARG_TYPE(p,"AbortSignal",f)},d=(f,p)=>{if(typeof f!="function")throw new ERR_INVALID_ARG_TYPE(p,"Function",f)};class h extends Error{constructor(p){if(!Array.isArray(p))throw new TypeError(`Expected input to be an Array, got ${typeof p}`);let b="";for(let y=0;y{f=y,p=S}),resolve:f,reject:p}},promisify(f){return new Promise((p,b)=>{f((y,...S)=>y?b(y):p(...S))})},debuglog(){return function(){}},format(f,...p){return f.replace(/%([sdifj])/g,function(...[b,y]){const S=p.shift();return y==="f"?S.toFixed(6):y==="j"?JSON.stringify(S):y==="s"&&typeof S=="object"?`${S.constructor!==Object?S.constructor.name:""} {}`.trim():S.toString()})},inspect(f){switch(typeof f){case"string":if(f.includes("'"))if(f.includes('"')){if(!f.includes("`")&&!f.includes("${"))return`\`${f}\``}else return`"${f}"`;return`'${f}'`;case"number":return isNaN(f)?"NaN":Object.is(f,-0)?String(f):f;case"bigint":return`${String(f)}n`;case"boolean":case"undefined":return String(f);case"object":return"{}"}},types:{isAsyncFunction(f){return f instanceof o},isArrayBufferView(f){return ArrayBuffer.isView(f)}},isBlob:c,deprecate(f,p){return f},addAbortListener:O0.addAbortListener||function(p,b){if(p===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",p);l(p,"signal"),d(b,"listener");let y;return p.aborted?queueMicrotask(()=>b()):(p.addEventListener("abort",b,{__proto__:null,once:!0,[r]:!0}),y=()=>{p.removeEventListener("abort",b)}),{__proto__:null,[n](){var S;(S=y)===null||S===void 0||S()}}},AbortSignalAny:a.any||function(p){if(p.length===1)return p[0];const b=new s,y=()=>b.abort();return p.forEach(S=>{l(S,"signals"),S.addEventListener("abort",y,{once:!0})}),b.signal.addEventListener("abort",()=>{p.forEach(S=>S.removeEventListener("abort",y))},{once:!0}),b.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(m9);var Fi=m9.exports,ux={};const{format:XJ,inspect:Vb,AggregateError:KJ}=Fi,JJ=globalThis.AggregateError||KJ,YJ=Symbol("kIsNodeError"),ZJ=["string","function","number","object","Function","Object","boolean","bigint","symbol"],eY=/^([A-Z][a-z0-9]*)+$/,tY="__node_internal_",Jg={};function il(t,e){if(!t)throw new Jg.ERR_INTERNAL_ASSERTION(e)}function zP(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function rY(t,e,r){if(typeof e=="function")return il(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const n=(e.match(/%[dfijoOs]/g)||[]).length;return il(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:XJ(e,...r)}function kn(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(rY(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[YJ]=!0,Jg[t]=n}function WP(t){const e=tY+t.name;return Object.defineProperty(t,"name",{value:e}),t}function nY(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new JJ([e,t],e.message);return r.code=e.code,r}return t||e}let iY=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Jg.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};kn("ERR_ASSERTION","%s",Error);kn("ERR_INVALID_ARG_TYPE",(t,e,r)=>{il(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const a=[],s=[],o=[];for(const c of e)il(typeof c=="string","All expected entries have to be of type string"),ZJ.includes(c)?a.push(c.toLowerCase()):eY.test(c)?s.push(c):(il(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(s.length>0){const c=a.indexOf("object");c!==-1&&(a.splice(a,c,1),s.push("Object"))}if(a.length>0){switch(a.length){case 1:n+=`of type ${a[0]}`;break;case 2:n+=`one of type ${a[0]} or ${a[1]}`;break;default:{const c=a.pop();n+=`one of type ${a.join(", ")}, or ${c}`}}(s.length>0||o.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const c=s.pop();n+=`an instance of ${s.join(", ")}, or ${c}`}}o.length>0&&(n+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`;break;case 2:n+=`one of ${o[0]} or ${o[1]}`;break;default:{const c=o.pop();n+=`one of ${o.join(", ")}, or ${c}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var u;if((u=r.constructor)!==null&&u!==void 0&&u.name)n+=`. Received an instance of ${r.constructor.name}`;else{const c=Vb(r,{depth:-1});n+=`. Received ${c}`}}else{let c=Vb(r,{colors:!1});c.length>25&&(c=`${c.slice(0,25)}...`),n+=`. Received type ${typeof r} (${c})`}return n},TypeError);kn("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=Vb(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);kn("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;const a=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${a}.`},TypeError);kn("ERR_MISSING_ARGS",(...t)=>{il(t.length>0,"At least one arg needs to be specified");let e;const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);kn("ERR_OUT_OF_RANGE",(t,e,r)=>{il(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=zP(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=zP(n)),n+="n"):n=Vb(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);kn("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);kn("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);kn("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);kn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);kn("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);kn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);kn("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);kn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);kn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);kn("ERR_STREAM_WRITE_AFTER_END","write after end",Error);kn("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var Ki={AbortError:iY,aggregateTwoErrors:WP(nY),hideStackFrames:WP,codes:Jg};const{ArrayIsArray:cx,ArrayPrototypeIncludes:g9,ArrayPrototypeJoin:_9,ArrayPrototypeMap:aY,NumberIsInteger:lx,NumberIsNaN:sY,NumberMAX_SAFE_INTEGER:oY,NumberMIN_SAFE_INTEGER:uY,NumberParseInt:cY,ObjectPrototypeHasOwnProperty:lY,RegExpPrototypeExec:v9,String:dY,StringPrototypeToUpperCase:fY,StringPrototypeTrim:hY}=Kr,{hideStackFrames:ja,codes:{ERR_SOCKET_BAD_PORT:pY,ERR_INVALID_ARG_TYPE:fi,ERR_INVALID_ARG_VALUE:Bf,ERR_OUT_OF_RANGE:fl,ERR_UNKNOWN_SIGNAL:XP}}=Ki,{normalizeEncoding:yY}=Fi,{isAsyncFunction:bY,isArrayBufferView:mY}=Fi.types,KP={};function gY(t){return t===(t|0)}function _Y(t){return t===t>>>0}const vY=/^[0-7]+$/,wY="must be a 32-bit unsigned integer or an octal string";function SY(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(v9(vY,t)===null)throw new Bf(e,t,wY);t=cY(t,8)}return w9(t,e),t}const TY=ja((t,e,r=uY,n=oY)=>{if(typeof t!="number")throw new fi(e,"number",t);if(!lx(t))throw new fl(e,"an integer",t);if(tn)throw new fl(e,`>= ${r} && <= ${n}`,t)}),EY=ja((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new fi(e,"number",t);if(!lx(t))throw new fl(e,"an integer",t);if(tn)throw new fl(e,`>= ${r} && <= ${n}`,t)}),w9=ja((t,e,r=!1)=>{if(typeof t!="number")throw new fi(e,"number",t);if(!lx(t))throw new fl(e,"an integer",t);const n=r?1:0,a=4294967295;if(ta)throw new fl(e,`>= ${n} && <= ${a}`,t)});function dx(t,e){if(typeof t!="string")throw new fi(e,"string",t)}function OY(t,e,r=void 0,n){if(typeof t!="number")throw new fi(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&sY(t))throw new fl(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}const AY=ja((t,e,r)=>{if(!g9(r,t)){const a="must be one of: "+_9(aY(r,s=>typeof s=="string"?`'${s}'`:dY(s)),", ");throw new Bf(e,t,a)}});function S9(t,e){if(typeof t!="boolean")throw new fi(e,"boolean",t)}function VS(t,e,r){return t==null||!lY(t,e)?r:t[e]}const xY=ja((t,e,r=null)=>{const n=VS(r,"allowArray",!1),a=VS(r,"allowFunction",!1);if(!VS(r,"nullable",!1)&&t===null||!n&&cx(t)||typeof t!="object"&&(!a||typeof t!="function"))throw new fi(e,"Object",t)}),RY=ja((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new fi(e,"a dictionary",t)}),Yg=ja((t,e,r=0)=>{if(!cx(t))throw new fi(e,"Array",t);if(t.length{if(!mY(t))throw new fi(e,["Buffer","TypedArray","DataView"],t)});function CY(t,e){const r=yY(e),n=t.length;if(r==="hex"&&n%2!==0)throw new Bf("encoding",e,`is invalid for data of length ${n}`)}function FY(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&hY(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new pY(e,t,r);return t|0}const T9=ja((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new fi(e,"AbortSignal",t)}),MY=ja((t,e)=>{if(typeof t!="function")throw new fi(e,"Function",t)}),LY=ja((t,e)=>{if(typeof t!="function"||bY(t))throw new fi(e,"Function",t)}),BY=ja((t,e)=>{if(t!==void 0)throw new fi(e,"undefined",t)});function $Y(t,e,r){if(!g9(r,t))throw new fi(e,`('${_9(r,"|")}')`,t)}const UY=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function JP(t,e){if(typeof t>"u"||!v9(UY,t))throw new Bf(e,t,'must be an array or string of format "; rel=preload; as=style"')}function qY(t){if(typeof t=="string")return JP(t,"hints"),t;if(cx(t)){const e=t.length;let r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}var P0={isInt32:gY,isUint32:_Y,parseFileMode:SY,validateArray:Yg,validateStringArray:IY,validateBooleanArray:PY,validateAbortSignalArray:DY,validateBoolean:S9,validateBuffer:jY,validateDictionary:RY,validateEncoding:CY,validateFunction:MY,validateInt32:EY,validateInteger:TY,validateNumber:OY,validateObject:xY,validateOneOf:AY,validatePlainFunction:LY,validatePort:FY,validateSignalName:NY,validateString:dx,validateUint32:w9,validateUndefined:BY,validateUnion:$Y,validateAbortSignal:T9,validateLinkHeaderValue:qY},fx={exports:{}};const{SymbolAsyncIterator:YP,SymbolIterator:ZP,SymbolFor:Ol}=Kr,E9=Ol("nodejs.stream.destroyed"),O9=Ol("nodejs.stream.errored"),tO=Ol("nodejs.stream.readable"),rO=Ol("nodejs.stream.writable"),A9=Ol("nodejs.stream.disturbed"),VY=Ol("nodejs.webstream.isClosedPromise"),HY=Ol("nodejs.webstream.controllerErrorFunction");function Zg(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function e_(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function kY(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function so(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function x9(t){return!!(t&&!so(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function R9(t){return!!(t&&!so(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function I9(t){return!!(t&&!so(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function QY(t){return x9(t)||R9(t)||I9(t)}function GY(t,e){return t==null?!1:e===!0?typeof t[YP]=="function":e===!1?typeof t[ZP]=="function":typeof t[YP]=="function"||typeof t[ZP]=="function"}function t_(t){if(!so(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[E9]||n!=null&&n.destroyed)}function P9(t){if(!e_(t))return null;if(t.writableEnded===!0)return!0;const e=t._writableState;return e!=null&&e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function zY(t,e){if(!e_(t))return null;if(t.writableFinished===!0)return!0;const r=t._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function WY(t){if(!Zg(t))return null;if(t.readableEnded===!0)return!0;const e=t._readableState;return!e||e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function D9(t,e){if(!Zg(t))return null;const r=t._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function N9(t){return t&&t[tO]!=null?t[tO]:typeof(t==null?void 0:t.readable)!="boolean"?null:t_(t)?!1:Zg(t)&&t.readable&&!D9(t)}function j9(t){return t&&t[rO]!=null?t[rO]:typeof(t==null?void 0:t.writable)!="boolean"?null:t_(t)?!1:e_(t)&&t.writable&&!P9(t)}function XY(t,e){return so(t)?t_(t)?!0:!((e==null?void 0:e.readable)!==!1&&N9(t)||(e==null?void 0:e.writable)!==!1&&j9(t)):null}function KY(t){var e,r;return so(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function JY(t){var e,r;return so(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function YY(t){if(!so(t))return null;if(typeof t.closed=="boolean")return t.closed;const e=t._writableState,r=t._readableState;return typeof(e==null?void 0:e.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(e==null?void 0:e.closed)||(r==null?void 0:r.closed):typeof t._closed=="boolean"&&C9(t)?t._closed:null}function C9(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function F9(t){return typeof t._sent100=="boolean"&&C9(t)}function ZY(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function eZ(t){if(!so(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&F9(t)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function tZ(t){var e;return!!(t&&((e=t[A9])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function rZ(t){var e,r,n,a,s,o,u,c,l,d;return!!(t&&((e=(r=(n=(a=(s=(o=t[O9])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&a!==void 0?a:(u=t._readableState)===null||u===void 0?void 0:u.errorEmitted)!==null&&n!==void 0?n:(c=t._writableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&r!==void 0?r:(l=t._readableState)===null||l===void 0?void 0:l.errored)!==null&&e!==void 0?e:!((d=t._writableState)===null||d===void 0)&&d.errored))}var iu={isDestroyed:t_,kIsDestroyed:E9,isDisturbed:tZ,kIsDisturbed:A9,isErrored:rZ,kIsErrored:O9,isReadable:N9,kIsReadable:tO,kIsClosedPromise:VY,kControllerErrorFunction:HY,kIsWritable:rO,isClosed:YY,isDuplexNodeStream:kY,isFinished:XY,isIterable:GY,isReadableNodeStream:Zg,isReadableStream:x9,isReadableEnded:WY,isReadableFinished:D9,isReadableErrored:JY,isNodeStream:so,isWebStream:QY,isWritable:j9,isWritableNodeStream:e_,isWritableStream:R9,isWritableEnded:P9,isWritableFinished:zY,isWritableErrored:KY,isServerRequest:ZY,isServerResponse:F9,willEmitClose:eZ,isTransformStream:I9};const Pu=ru(),{AbortError:M9,codes:nZ}=Ki,{ERR_INVALID_ARG_TYPE:iZ,ERR_STREAM_PREMATURE_CLOSE:eD}=nZ,{kEmptyObject:nO,once:iO}=Fi,{validateAbortSignal:aZ,validateFunction:sZ,validateObject:oZ,validateBoolean:uZ}=P0,{Promise:cZ,PromisePrototypeThen:lZ,SymbolDispose:L9}=Kr,{isClosed:dZ,isReadable:tD,isReadableNodeStream:HS,isReadableStream:fZ,isReadableFinished:rD,isReadableErrored:nD,isWritable:iD,isWritableNodeStream:aD,isWritableStream:hZ,isWritableFinished:sD,isWritableErrored:oD,isNodeStream:pZ,willEmitClose:yZ,kIsClosedPromise:bZ}=iu;let Md;function mZ(t){return t.setHeader&&typeof t.abort=="function"}const aO=()=>{};function B9(t,e,r){var n,a;if(arguments.length===2?(r=e,e=nO):e==null?e=nO:oZ(e,"options"),sZ(r,"callback"),aZ(e.signal,"options.signal"),r=iO(r),fZ(t)||hZ(t))return gZ(t,e,r);if(!pZ(t))throw new iZ("stream",["ReadableStream","WritableStream","Stream"],t);const s=(n=e.readable)!==null&&n!==void 0?n:HS(t),o=(a=e.writable)!==null&&a!==void 0?a:aD(t),u=t._writableState,c=t._readableState,l=()=>{t.writable||f()};let d=yZ(t)&&HS(t)===s&&aD(t)===o,h=sD(t,!1);const f=()=>{h=!0,t.destroyed&&(d=!1),!(d&&(!t.readable||s))&&(!s||p)&&r.call(t)};let p=rD(t,!1);const b=()=>{p=!0,t.destroyed&&(d=!1),!(d&&(!t.writable||o))&&(!o||h)&&r.call(t)},y=x=>{r.call(t,x)};let S=dZ(t);const w=()=>{S=!0;const x=oD(t)||nD(t);if(x&&typeof x!="boolean")return r.call(t,x);if(s&&!p&&HS(t,!0)&&!rD(t,!1))return r.call(t,new eD);if(o&&!h&&!sD(t,!1))return r.call(t,new eD);r.call(t)},I=()=>{S=!0;const x=oD(t)||nD(t);if(x&&typeof x!="boolean")return r.call(t,x);r.call(t)},O=()=>{t.req.on("finish",f)};mZ(t)?(t.on("complete",f),d||t.on("abort",w),t.req?O():t.on("request",O)):o&&!u&&(t.on("end",l),t.on("close",l)),!d&&typeof t.aborted=="boolean"&&t.on("aborted",w),t.on("end",b),t.on("finish",f),e.error!==!1&&t.on("error",y),t.on("close",w),S?Pu.nextTick(w):u!=null&&u.errorEmitted||c!=null&&c.errorEmitted?d||Pu.nextTick(I):(!s&&(!d||tD(t))&&(h||iD(t)===!1)||!o&&(!d||iD(t))&&(p||tD(t)===!1)||c&&t.req&&t.aborted)&&Pu.nextTick(I);const T=()=>{r=aO,t.removeListener("aborted",w),t.removeListener("complete",f),t.removeListener("abort",w),t.removeListener("request",O),t.req&&t.req.removeListener("finish",f),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",f),t.removeListener("end",b),t.removeListener("error",y),t.removeListener("close",w)};if(e.signal&&!S){const x=()=>{const P=r;T(),P.call(t,new M9(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Pu.nextTick(x);else{Md=Md||Fi.addAbortListener;const P=Md(e.signal,x),B=r;r=iO((...Q)=>{P[L9](),B.apply(t,Q)})}}return T}function gZ(t,e,r){let n=!1,a=aO;if(e.signal)if(a=()=>{n=!0,r.call(t,new M9(void 0,{cause:e.signal.reason}))},e.signal.aborted)Pu.nextTick(a);else{Md=Md||Fi.addAbortListener;const o=Md(e.signal,a),u=r;r=iO((...c)=>{o[L9](),u.apply(t,c)})}const s=(...o)=>{n||Pu.nextTick(()=>r.apply(t,o))};return lZ(t[bZ].promise,s,s),aO}function _Z(t,e){var r;let n=!1;return e===null&&(e=nO),(r=e)!==null&&r!==void 0&&r.cleanup&&(uZ(e.cleanup,"cleanup"),n=e.cleanup),new cZ((a,s)=>{const o=B9(t,e,u=>{n&&o(),u?s(u):a()})})}fx.exports=B9;fx.exports.finished=_Z;var cc=fx.exports;const Qs=ru(),{aggregateTwoErrors:vZ,codes:{ERR_MULTIPLE_CALLBACK:wZ},AbortError:SZ}=Ki,{Symbol:$9}=Kr,{kIsDestroyed:TZ,isDestroyed:EZ,isFinished:OZ,isServerRequest:AZ}=iu,U9=$9("kDestroy"),sO=$9("kConstruct");function q9(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function xZ(t,e){const r=this._readableState,n=this._writableState,a=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(q9(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),a.constructed?uD(this,t,e):this.once(U9,function(s){uD(this,vZ(s,t),e)}),this)}function uD(t,e,r){let n=!1;function a(s){if(n)return;n=!0;const o=t._readableState,u=t._writableState;q9(s,u,o),u&&(u.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?Qs.nextTick(RZ,t,s):Qs.nextTick(V9,t)}try{t._destroy(e||null,a)}catch(s){a(s)}}function RZ(t,e){oO(t,e),V9(t)}function V9(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function oO(t,e){const r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function IZ(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function uO(t,e,r){const n=t._readableState,a=t._writableState;if(a!=null&&a.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||a!=null&&a.autoDestroy?t.destroy(e):e&&(e.stack,a&&!a.errored&&(a.errored=e),n&&!n.errored&&(n.errored=e),r?Qs.nextTick(oO,t,e):oO(t,e))}function PZ(t,e){if(typeof t._construct!="function")return;const r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(sO,e),!(t.listenerCount(sO)>1)&&Qs.nextTick(DZ,t)}function DZ(t){let e=!1;function r(n){if(e){uO(t,n??new wZ);return}e=!0;const a=t._readableState,s=t._writableState,o=s||a;a&&(a.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(U9,n):n?uO(t,n,!0):Qs.nextTick(NZ,t)}try{t._construct(n=>{Qs.nextTick(r,n)})}catch(n){Qs.nextTick(r,n)}}function NZ(t){t.emit(sO)}function cD(t){return(t==null?void 0:t.setHeader)&&typeof t.abort=="function"}function H9(t){t.emit("close")}function jZ(t,e){t.emit("error",e),Qs.nextTick(H9,t)}function CZ(t,e){!t||EZ(t)||(!e&&!OZ(t)&&(e=new SZ),AZ(t)?(t.socket=null,t.destroy(e)):cD(t)?t.abort():cD(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?Qs.nextTick(jZ,t,e):Qs.nextTick(H9,t),t.destroyed||(t[TZ]=!0))}var $f={construct:PZ,destroyer:CZ,destroy:xZ,undestroy:IZ,errorOrDestroy:uO};const{ArrayIsArray:FZ,ObjectSetPrototypeOf:k9}=Kr,{EventEmitter:r_}=O0;function n_(t){r_.call(this,t)}k9(n_.prototype,r_.prototype);k9(n_,r_);n_.prototype.pipe=function(t,e){const r=this;function n(d){t.writable&&t.write(d)===!1&&r.pause&&r.pause()}r.on("data",n);function a(){r.readable&&r.resume&&r.resume()}t.on("drain",a),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",u));let s=!1;function o(){s||(s=!0,t.end())}function u(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function c(d){l(),r_.listenerCount(this,"error")===0&&this.emit("error",d)}cO(r,"error",c),cO(t,"error",c);function l(){r.removeListener("data",n),t.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("end",l),r.on("close",l),t.on("close",l),t.emit("pipe",r),t};function cO(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):FZ(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}var hx={Stream:n_,prependListener:cO},Q9={exports:{}};(function(t){const{SymbolDispose:e}=Kr,{AbortError:r,codes:n}=Ki,{isNodeStream:a,isWebStream:s,kControllerErrorFunction:o}=iu,u=cc,{ERR_INVALID_ARG_TYPE:c}=n;let l;const d=(h,f)=>{if(typeof h!="object"||!("aborted"in h))throw new c(f,"AbortSignal",h)};t.exports.addAbortSignal=function(f,p){if(d(f,"signal"),!a(p)&&!s(p))throw new c("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(f,p)},t.exports.addAbortSignalNoValidate=function(h,f){if(typeof h!="object"||!("aborted"in h))return f;const p=a(f)?()=>{f.destroy(new r(void 0,{cause:h.reason}))}:()=>{f[o](new r(void 0,{cause:h.reason}))};if(h.aborted)p();else{l=l||Fi.addAbortListener;const b=l(h,p);u(f,b[e])}return f}})(Q9);var i_=Q9.exports;const{StringPrototypeSlice:lD,SymbolIterator:MZ,TypedArrayPrototypeSet:e1,Uint8Array:LZ}=Kr,{Buffer:kS}=ao,{inspect:BZ}=Fi;var $Z=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){const r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return kS.alloc(0);const r=kS.allocUnsafe(e>>>0);let n=this.head,a=0;for(;n;)e1(r,n.data,a),a+=n.data.length,n=n.next;return r}consume(e,r){const n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++a,n.next?this.head=n.next:this.head=this.tail=null):(r+=lD(s,0,e),this.head=n,n.data=lD(s,e));break}++a}while((n=n.next)!==null);return this.length-=a,r}_getBuffer(e){const r=kS.allocUnsafe(e),n=e;let a=this.head,s=0;do{const o=a.data;if(e>o.length)e1(r,o,n-e),e-=o.length;else{e===o.length?(e1(r,o,n-e),++s,a.next?this.head=a.next:this.head=this.tail=null):(e1(r,new LZ(o.buffer,o.byteOffset,e),n-e),this.head=a,a.data=o.slice(e));break}++s}while((a=a.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return BZ(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:UZ,NumberIsInteger:qZ}=Kr,{validateInteger:VZ}=P0,{ERR_INVALID_ARG_VALUE:HZ}=Ki.codes;let G9=16*1024,z9=16;function kZ(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function W9(t){return t?z9:G9}function QZ(t,e){VZ(e,"value",0),t?z9=e:G9=e}function GZ(t,e,r,n){const a=kZ(e,n,r);if(a!=null){if(!qZ(a)||a<0){const s=n?`options.${r}`:"options.highWaterMark";throw new HZ(s,a)}return UZ(a)}return W9(t.objectMode)}var a_={getHighWaterMark:GZ,getDefaultHighWaterMark:W9,setDefaultHighWaterMark:QZ},X9={},lO={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(t,e){var r=ao,n=r.Buffer;function a(o,u){for(var c in o)u[c]=o[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,e),e.Buffer=s);function s(o,u,c){return n(o,u,c)}s.prototype=Object.create(n.prototype),a(n,s),s.from=function(o,u,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,u,c)},s.alloc=function(o,u,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=n(o);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(lO,lO.exports);var zZ=lO.exports,px=zZ.Buffer,dD=px.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function WZ(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function XZ(t){var e=WZ(t);if(typeof e!="string"&&(px.isEncoding===dD||!dD(t)))throw new Error("Unknown encoding: "+t);return e||t}X9.StringDecoder=D0;function D0(t){this.encoding=XZ(t);var e;switch(this.encoding){case"utf16le":this.text=tee,this.end=ree,e=4;break;case"utf8":this.fillLast=YZ,e=4;break;case"base64":this.text=nee,this.end=iee,e=3;break;default:this.write=aee,this.end=see;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=px.allocUnsafe(e)}D0.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function KZ(t,e,r){var n=e.length-1;if(n=0?(a>0&&(t.lastNeed=a-1),a):--n=0?(a>0&&(t.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function JZ(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function YZ(t){var e=this.lastTotal-this.lastNeed,r=JZ(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function ZZ(t,e){var r=KZ(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function eee(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function tee(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function ree(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function nee(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function iee(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function aee(t){return t.toString(this.encoding)}function see(t){return t&&t.length?this.write(t):""}const fD=ru(),{PromisePrototypeThen:oee,SymbolAsyncIterator:hD,SymbolIterator:pD}=Kr,{Buffer:uee}=ao,{ERR_INVALID_ARG_TYPE:cee,ERR_STREAM_NULL_VALUES:lee}=Ki.codes;function dee(t,e,r){let n;if(typeof e=="string"||e instanceof uee)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let a;if(e&&e[hD])a=!0,n=e[hD]();else if(e&&e[pD])a=!1,n=e[pD]();else throw new cee("iterable",["Iterable"],e);const s=new t({objectMode:!0,highWaterMark:1,...r});let o=!1;s._read=function(){o||(o=!0,c())},s._destroy=function(l,d){oee(u(l),()=>fD.nextTick(d,l),h=>fD.nextTick(d,h||l))};async function u(l){const d=l!=null,h=typeof n.throw=="function";if(d&&h){const{value:f,done:p}=await n.throw(l);if(await f,p)return}if(typeof n.return=="function"){const{value:f}=await n.return();await f}}async function c(){for(;;){try{const{value:l,done:d}=a?await n.next():n.next();if(d)s.push(null);else{const h=l&&typeof l.then=="function"?await l:l;if(h===null)throw o=!1,new lee;if(s.push(h))continue;o=!1}}catch(l){s.destroy(l)}break}}return s}var K9=dee,GS,yD;function s_(){if(yD)return GS;yD=1;const t=ru(),{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:o,ObjectSetPrototypeOf:u,Promise:c,SafeSet:l,SymbolAsyncDispose:d,SymbolAsyncIterator:h,Symbol:f}=Kr;GS=de,de.ReadableState=re;const{EventEmitter:p}=O0,{Stream:b,prependListener:y}=hx,{Buffer:S}=ao,{addAbortSignal:w}=i_,I=cc;let O=Fi.debuglog("stream",te=>{O=te});const T=$Z,x=$f,{getHighWaterMark:P,getDefaultHighWaterMark:B}=a_,{aggregateTwoErrors:Q,codes:{ERR_INVALID_ARG_TYPE:N,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_OUT_OF_RANGE:F,ERR_STREAM_PUSH_AFTER_EOF:W,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:z},AbortError:M}=Ki,{validateObject:C}=P0,V=f("kPaused"),{StringDecoder:ie}=X9,ne=K9;u(de.prototype,b.prototype),u(de,b);const fe=()=>{},{errorOrDestroy:_e}=x,we=1,Ce=2,oe=4,ae=8,Ae=16,Ie=32,he=64,ve=128,me=256,L=512,H=1024,A=2048,m=4096,v=8192,j=16384,q=32768,$=65536,G=1<<17,Y=1<<18;function J(te){return{enumerable:!1,get(){return(this.state&te)!==0},set(_){_?this.state|=te:this.state&=~te}}}s(re.prototype,{objectMode:J(we),ended:J(Ce),endEmitted:J(oe),reading:J(ae),constructed:J(Ae),sync:J(Ie),needReadable:J(he),emittedReadable:J(ve),readableListening:J(me),resumeScheduled:J(L),errorEmitted:J(H),emitClose:J(A),autoDestroy:J(m),destroyed:J(v),closed:J(j),closeEmitted:J(q),multiAwaitDrain:J($),readingMore:J(G),dataEmitted:J(Y)});function re(te,_,k){typeof k!="boolean"&&(k=_ instanceof Jo()),this.state=A|m|Ae|Ie,te&&te.objectMode&&(this.state|=we),k&&te&&te.readableObjectMode&&(this.state|=we),this.highWaterMark=te?P(this,te,"readableHighWaterMark",k):B(!1),this.buffer=new T,this.length=0,this.pipes=[],this.flowing=null,this[V]=null,te&&te.emitClose===!1&&(this.state&=~A),te&&te.autoDestroy===!1&&(this.state&=~m),this.errored=null,this.defaultEncoding=te&&te.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,te&&te.encoding&&(this.decoder=new ie(te.encoding),this.encoding=te.encoding)}function de(te){if(!(this instanceof de))return new de(te);const _=this instanceof Jo();this._readableState=new re(te,this,_),te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.construct=="function"&&(this._construct=te.construct),te.signal&&!_&&w(te.signal,this)),b.call(this,te),x.construct(this,()=>{this._readableState.needReadable&&ce(this,this._readableState)})}de.prototype.destroy=x.destroy,de.prototype._undestroy=x.undestroy,de.prototype._destroy=function(te,_){_(te)},de.prototype[p.captureRejectionSymbol]=function(te){this.destroy(te)},de.prototype[d]=function(){let te;return this.destroyed||(te=this.readableEnded?null:new M,this.destroy(te)),new c((_,k)=>I(this,le=>le&&le!==te?k(le):_(null)))},de.prototype.push=function(te,_){return be(this,te,_,!1)},de.prototype.unshift=function(te,_){return be(this,te,_,!0)};function be(te,_,k,le){O("readableAddChunk",_);const Te=te._readableState;let Se;if(Te.state&we||(typeof _=="string"?(k=k||Te.defaultEncoding,Te.encoding!==k&&(le&&Te.encoding?_=S.from(_,k).toString(Te.encoding):(_=S.from(_,k),k=""))):_ instanceof S?k="":b._isUint8Array(_)?(_=b._uint8ArrayToBuffer(_),k=""):_!=null&&(Se=new N("chunk",["string","Buffer","Uint8Array"],_))),Se)_e(te,Se);else if(_===null)Te.state&=~ae,E(te,Te);else if(Te.state&we||_&&_.length>0)if(le)if(Te.state&oe)_e(te,new z);else{if(Te.destroyed||Te.errored)return!1;Ee(te,Te,_,!0)}else if(Te.ended)_e(te,new W);else{if(Te.destroyed||Te.errored)return!1;Te.state&=~ae,Te.decoder&&!k?(_=Te.decoder.write(_),Te.objectMode||_.length!==0?Ee(te,Te,_,!1):ce(te,Te)):Ee(te,Te,_,!1)}else le||(Te.state&=~ae,ce(te,Te));return!Te.ended&&(Te.length0?(_.state&$?_.awaitDrainWriters.clear():_.awaitDrainWriters=null,_.dataEmitted=!0,te.emit("data",k)):(_.length+=_.objectMode?1:k.length,le?_.buffer.unshift(k):_.buffer.push(k),_.state&he&&R(te)),ce(te,_)}de.prototype.isPaused=function(){const te=this._readableState;return te[V]===!0||te.flowing===!1},de.prototype.setEncoding=function(te){const _=new ie(te);this._readableState.decoder=_,this._readableState.encoding=this._readableState.decoder.encoding;const k=this._readableState.buffer;let le="";for(const Te of k)le+=_.write(Te);return k.clear(),le!==""&&k.push(le),this._readableState.length=le.length,this};const xe=1073741824;function Pe(te){if(te>xe)throw new F("size","<= 1GiB",te);return te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++,te}function U(te,_){return te<=0||_.length===0&&_.ended?0:_.state&we?1:n(te)?_.flowing&&_.length?_.buffer.first().length:_.length:te<=_.length?te:_.ended?_.length:0}de.prototype.read=function(te){O("read",te),te===void 0?te=NaN:r(te)||(te=a(te,10));const _=this._readableState,k=te;if(te>_.highWaterMark&&(_.highWaterMark=Pe(te)),te!==0&&(_.state&=~ve),te===0&&_.needReadable&&((_.highWaterMark!==0?_.length>=_.highWaterMark:_.length>0)||_.ended))return O("read: emitReadable",_.length,_.ended),_.length===0&&_.ended?br(this):R(this),null;if(te=U(te,_),te===0&&_.ended)return _.length===0&&br(this),null;let le=(_.state&he)!==0;if(O("need readable",le),(_.length===0||_.length-te<_.highWaterMark)&&(le=!0,O("length less than watermark",le)),_.ended||_.reading||_.destroyed||_.errored||!_.constructed)le=!1,O("reading, ended or constructing",le);else if(le){O("do read"),_.state|=ae|Ie,_.length===0&&(_.state|=he);try{this._read(_.highWaterMark)}catch(Se){_e(this,Se)}_.state&=~Ie,_.reading||(te=U(k,_))}let Te;return te>0?Te=nn(te,_):Te=null,Te===null?(_.needReadable=_.length<=_.highWaterMark,te=0):(_.length-=te,_.multiAwaitDrain?_.awaitDrainWriters.clear():_.awaitDrainWriters=null),_.length===0&&(_.ended||(_.needReadable=!0),k!==te&&_.ended&&br(this)),Te!==null&&!_.errorEmitted&&!_.closeEmitted&&(_.dataEmitted=!0,this.emit("data",Te)),Te};function E(te,_){if(O("onEofChunk"),!_.ended){if(_.decoder){const k=_.decoder.end();k&&k.length&&(_.buffer.push(k),_.length+=_.objectMode?1:k.length)}_.ended=!0,_.sync?R(te):(_.needReadable=!1,_.emittedReadable=!0,K(te))}}function R(te){const _=te._readableState;O("emitReadable",_.needReadable,_.emittedReadable),_.needReadable=!1,_.emittedReadable||(O("emitReadable",_.flowing),_.emittedReadable=!0,t.nextTick(K,te))}function K(te){const _=te._readableState;O("emitReadable_",_.destroyed,_.length,_.ended),!_.destroyed&&!_.errored&&(_.length||_.ended)&&(te.emit("readable"),_.emittedReadable=!1),_.needReadable=!_.flowing&&!_.ended&&_.length<=_.highWaterMark,ht(te)}function ce(te,_){!_.readingMore&&_.constructed&&(_.readingMore=!0,t.nextTick(ye,te,_))}function ye(te,_){for(;!_.reading&&!_.ended&&(_.length<_.highWaterMark||_.flowing&&_.length===0);){const k=_.length;if(O("maybeReadMore read 0"),te.read(0),k===_.length)break}_.readingMore=!1}de.prototype._read=function(te){throw new D("_read()")},de.prototype.pipe=function(te,_){const k=this,le=this._readableState;le.pipes.length===1&&(le.multiAwaitDrain||(le.multiAwaitDrain=!0,le.awaitDrainWriters=new l(le.awaitDrainWriters?[le.awaitDrainWriters]:[]))),le.pipes.push(te),O("pipe count=%d opts=%j",le.pipes.length,_);const Se=(!_||_.end!==!1)&&te!==t.stdout&&te!==t.stderr?je:Jt;le.endEmitted?t.nextTick(Se):k.once("end",Se),te.on("unpipe",He);function He(kt,Fr){O("onunpipe"),kt===k&&Fr&&Fr.hasUnpiped===!1&&(Fr.hasUnpiped=!0,It())}function je(){O("onend"),te.end()}let Fe,Je=!1;function It(){O("cleanup"),te.removeListener("close",Qe),te.removeListener("finish",Gr),Fe&&te.removeListener("drain",Fe),te.removeListener("error",Li),te.removeListener("unpipe",He),k.removeListener("end",je),k.removeListener("end",Jt),k.removeListener("data",qe),Je=!0,Fe&&le.awaitDrainWriters&&(!te._writableState||te._writableState.needDrain)&&Fe()}function it(){Je||(le.pipes.length===1&&le.pipes[0]===te?(O("false write response, pause",0),le.awaitDrainWriters=te,le.multiAwaitDrain=!1):le.pipes.length>1&&le.pipes.includes(te)&&(O("false write response, pause",le.awaitDrainWriters.size),le.awaitDrainWriters.add(te)),k.pause()),Fe||(Fe=ge(k,te),te.on("drain",Fe))}k.on("data",qe);function qe(kt){O("ondata");const Fr=te.write(kt);O("dest.write",Fr),Fr===!1&&it()}function Li(kt){if(O("onerror",kt),Jt(),te.removeListener("error",Li),te.listenerCount("error")===0){const Fr=te._writableState||te._readableState;Fr&&!Fr.errorEmitted?_e(te,kt):te.emit("error",kt)}}y(te,"error",Li);function Qe(){te.removeListener("finish",Gr),Jt()}te.once("close",Qe);function Gr(){O("onfinish"),te.removeListener("close",Qe),Jt()}te.once("finish",Gr);function Jt(){O("unpipe"),k.unpipe(te)}return te.emit("pipe",k),te.writableNeedDrain===!0?it():le.flowing||(O("pipe resume"),k.resume()),te};function ge(te,_){return function(){const le=te._readableState;le.awaitDrainWriters===_?(O("pipeOnDrain",1),le.awaitDrainWriters=null):le.multiAwaitDrain&&(O("pipeOnDrain",le.awaitDrainWriters.size),le.awaitDrainWriters.delete(_)),(!le.awaitDrainWriters||le.awaitDrainWriters.size===0)&&te.listenerCount("data")&&te.resume()}}de.prototype.unpipe=function(te){const _=this._readableState,k={hasUnpiped:!1};if(_.pipes.length===0)return this;if(!te){const Te=_.pipes;_.pipes=[],this.pause();for(let Se=0;Se0,le.flowing!==!1&&this.resume()):te==="readable"&&!le.endEmitted&&!le.readableListening&&(le.readableListening=le.needReadable=!0,le.flowing=!1,le.emittedReadable=!1,O("on readable",le.length,le.reading),le.length?R(this):le.reading||t.nextTick(ke,this)),k},de.prototype.addListener=de.prototype.on,de.prototype.removeListener=function(te,_){const k=b.prototype.removeListener.call(this,te,_);return te==="readable"&&t.nextTick($e,this),k},de.prototype.off=de.prototype.removeListener,de.prototype.removeAllListeners=function(te){const _=b.prototype.removeAllListeners.apply(this,arguments);return(te==="readable"||te===void 0)&&t.nextTick($e,this),_};function $e(te){const _=te._readableState;_.readableListening=te.listenerCount("readable")>0,_.resumeScheduled&&_[V]===!1?_.flowing=!0:te.listenerCount("data")>0?te.resume():_.readableListening||(_.flowing=null)}function ke(te){O("readable nexttick read 0"),te.read(0)}de.prototype.resume=function(){const te=this._readableState;return te.flowing||(O("resume"),te.flowing=!te.readableListening,Xe(this,te)),te[V]=!1,this};function Xe(te,_){_.resumeScheduled||(_.resumeScheduled=!0,t.nextTick(Ke,te,_))}function Ke(te,_){O("resume",_.reading),_.reading||te.read(0),_.resumeScheduled=!1,te.emit("resume"),ht(te),_.flowing&&!_.reading&&te.read(0)}de.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[V]=!0,this};function ht(te){const _=te._readableState;for(O("flow",_.flowing);_.flowing&&te.read()!==null;);}de.prototype.wrap=function(te){let _=!1;te.on("data",le=>{!this.push(le)&&te.pause&&(_=!0,te.pause())}),te.on("end",()=>{this.push(null)}),te.on("error",le=>{_e(this,le)}),te.on("close",()=>{this.destroy()}),te.on("destroy",()=>{this.destroy()}),this._read=()=>{_&&te.resume&&(_=!1,te.resume())};const k=o(te);for(let le=1;le{Te=He?Q(Te,He):null,k(),k=fe});try{for(;;){const He=te.destroyed?null:te.read();if(He!==null)yield He;else{if(Te)throw Te;if(Te===null)return;await new c(le)}}}catch(He){throw Te=Q(Te,He),Te}finally{(Te||(_==null?void 0:_.destroyOnReturn)!==!1)&&(Te===void 0||te._readableState.autoDestroy)?x.destroyer(te,null):(te.off("readable",le),Se())}}s(de.prototype,{readable:{__proto__:null,get(){const te=this._readableState;return!!te&&te.readable!==!1&&!te.destroyed&&!te.errorEmitted&&!te.endEmitted},set(te){this._readableState&&(this._readableState.readable=!!te)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(te){this._readableState&&(this._readableState.flowing=te)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(te){this._readableState&&(this._readableState.destroyed=te)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(re.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[V]!==!1},set(te){this[V]=!!te}}}),de._fromList=nn;function nn(te,_){if(_.length===0)return null;let k;return _.objectMode?k=_.buffer.shift():!te||te>=_.length?(_.decoder?k=_.buffer.join(""):_.buffer.length===1?k=_.buffer.first():k=_.buffer.concat(_.length),_.buffer.clear()):k=_.buffer.consume(te,_.decoder),k}function br(te){const _=te._readableState;O("endReadable",_.endEmitted),_.endEmitted||(_.ended=!0,t.nextTick(Pn,_,te))}function Pn(te,_){if(O("endReadableNT",te.endEmitted,te.length),!te.errored&&!te.closeEmitted&&!te.endEmitted&&te.length===0){if(te.endEmitted=!0,_.emit("end"),_.writable&&_.allowHalfOpen===!1)t.nextTick(vr,_);else if(te.autoDestroy){const k=_._writableState;(!k||k.autoDestroy&&(k.finished||k.writable===!1))&&_.destroy()}}}function vr(te){te.writable&&!te.writableEnded&&!te.destroyed&&te.end()}de.from=function(te,_){return ne(de,te,_)};let wr;function an(){return wr===void 0&&(wr={}),wr}return de.fromWeb=function(te,_){return an().newStreamReadableFromReadableStream(te,_)},de.toWeb=function(te,_){return an().newReadableStreamFromStreamReadable(te,_)},de.wrap=function(te,_){var k,le;return new de({objectMode:(k=(le=te.readableObjectMode)!==null&&le!==void 0?le:te.objectMode)!==null&&k!==void 0?k:!0,..._,destroy(Te,Se){x.destroyer(te,Te),Se(Te)}}).wrap(te)},GS}var zS,bD;function yx(){if(bD)return zS;bD=1;const t=ru(),{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:u,Symbol:c,SymbolHasInstance:l}=Kr;zS=C,C.WritableState=z;const{EventEmitter:d}=O0,h=hx.Stream,{Buffer:f}=ao,p=$f,{addAbortSignal:b}=i_,{getHighWaterMark:y,getDefaultHighWaterMark:S}=a_,{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_MULTIPLE_CALLBACK:O,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:P,ERR_STREAM_NULL_VALUES:B,ERR_STREAM_WRITE_AFTER_END:Q,ERR_UNKNOWN_ENCODING:N}=Ki.codes,{errorOrDestroy:D}=p;o(C.prototype,h.prototype),o(C,h);function F(){}const W=c("kOnFinished");function z(m,v,j){typeof j!="boolean"&&(j=v instanceof Jo()),this.objectMode=!!(m&&m.objectMode),j&&(this.objectMode=this.objectMode||!!(m&&m.writableObjectMode)),this.highWaterMark=m?y(this,m,"writableHighWaterMark",j):S(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const q=!!(m&&m.decodeStrings===!1);this.decodeStrings=!q,this.defaultEncoding=m&&m.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=_e.bind(void 0,v),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!m||m.emitClose!==!1,this.autoDestroy=!m||m.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[W]=[]}function M(m){m.buffered=[],m.bufferedIndex=0,m.allBuffers=!0,m.allNoop=!0}z.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},a(z.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function C(m){const v=this instanceof Jo();if(!v&&!n(C,this))return new C(m);this._writableState=new z(m,this,v),m&&(typeof m.write=="function"&&(this._write=m.write),typeof m.writev=="function"&&(this._writev=m.writev),typeof m.destroy=="function"&&(this._destroy=m.destroy),typeof m.final=="function"&&(this._final=m.final),typeof m.construct=="function"&&(this._construct=m.construct),m.signal&&b(m.signal,this)),h.call(this,m),p.construct(this,()=>{const j=this._writableState;j.writing||ae(this,j),ve(this,j)})}a(C,l,{__proto__:null,value:function(m){return n(this,m)?!0:this!==C?!1:m&&m._writableState instanceof z}}),C.prototype.pipe=function(){D(this,new T)};function V(m,v,j,q){const $=m._writableState;if(typeof j=="function")q=j,j=$.defaultEncoding;else{if(!j)j=$.defaultEncoding;else if(j!=="buffer"&&!f.isEncoding(j))throw new N(j);typeof q!="function"&&(q=F)}if(v===null)throw new B;if(!$.objectMode)if(typeof v=="string")$.decodeStrings!==!1&&(v=f.from(v,j),j="buffer");else if(v instanceof f)j="buffer";else if(h._isUint8Array(v))v=h._uint8ArrayToBuffer(v),j="buffer";else throw new w("chunk",["string","Buffer","Uint8Array"],v);let G;return $.ending?G=new Q:$.destroyed&&(G=new x("write")),G?(t.nextTick(q,G),D(m,G,!0),G):($.pendingcb++,ie(m,$,v,j,q))}C.prototype.write=function(m,v,j){return V(this,m,v,j)===!0},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){const m=this._writableState;m.corked&&(m.corked--,m.writing||ae(this,m))},C.prototype.setDefaultEncoding=function(v){if(typeof v=="string"&&(v=u(v)),!f.isEncoding(v))throw new N(v);return this._writableState.defaultEncoding=v,this};function ie(m,v,j,q,$){const G=v.objectMode?1:j.length;v.length+=G;const Y=v.lengthj.bufferedIndex&&ae(m,j),q?j.afterWriteTickInfo!==null&&j.afterWriteTickInfo.cb===$?j.afterWriteTickInfo.count++:(j.afterWriteTickInfo={count:1,cb:$,stream:m,state:j},t.nextTick(we,j.afterWriteTickInfo)):Ce(m,j,1,$))}function we({stream:m,state:v,count:j,cb:q}){return v.afterWriteTickInfo=null,Ce(m,v,j,q)}function Ce(m,v,j,q){for(!v.ending&&!m.destroyed&&v.length===0&&v.needDrain&&(v.needDrain=!1,m.emit("drain"));j-- >0;)v.pendingcb--,q();v.destroyed&&oe(v),ve(m,v)}function oe(m){if(m.writing)return;for(let $=m.bufferedIndex;$1&&m._writev){v.pendingcb-=G-1;const J=v.allNoop?F:de=>{for(let be=Y;be256?(j.splice(0,Y),v.bufferedIndex=0):v.bufferedIndex=Y}v.bufferProcessing=!1}C.prototype._write=function(m,v,j){if(this._writev)this._writev([{chunk:m,encoding:v}],j);else throw new I("_write()")},C.prototype._writev=null,C.prototype.end=function(m,v,j){const q=this._writableState;typeof m=="function"?(j=m,m=null,v=null):typeof v=="function"&&(j=v,v=null);let $;if(m!=null){const G=V(this,m,v);G instanceof r&&($=G)}return q.corked&&(q.corked=1,this.uncork()),$||(!q.errored&&!q.ending?(q.ending=!0,ve(this,q,!0),q.ended=!0):q.finished?$=new P("end"):q.destroyed&&($=new x("end"))),typeof j=="function"&&($||q.finished?t.nextTick(j,$):q[W].push(j)),this};function Ae(m){return m.ending&&!m.destroyed&&m.constructed&&m.length===0&&!m.errored&&m.buffered.length===0&&!m.finished&&!m.writing&&!m.errorEmitted&&!m.closeEmitted}function Ie(m,v){let j=!1;function q($){if(j){D(m,$??O());return}if(j=!0,v.pendingcb--,$){const G=v[W].splice(0);for(let Y=0;Y{Ae($)?me(q,$):$.pendingcb--},m,v)):Ae(v)&&(v.pendingcb++,me(m,v))))}function me(m,v){v.pendingcb--,v.finished=!0;const j=v[W].splice(0);for(let q=0;q{if(oe!=null)throw new b("nully","body",oe)},oe=>{y(we,oe)});return we=new N({objectMode:!0,readable:!1,write:ie,final(oe){ne(async()=>{try{await Ce,t.nextTick(oe,null)}catch(ae){t.nextTick(oe,ae)}})},destroy:fe})}throw new b("Iterable, AsyncIterable or AsyncFunction",M,V)}if(P(z))return W(z.arrayBuffer());if(a(z))return T(N,z,{objectMode:!0,writable:!1});if(l(z==null?void 0:z.readable)&&d(z==null?void 0:z.writable))return N.fromWeb(z);if(typeof(z==null?void 0:z.writable)=="object"||typeof(z==null?void 0:z.readable)=="object"){const V=z!=null&&z.readable?o(z==null?void 0:z.readable)?z==null?void 0:z.readable:W(z.readable):void 0,ie=z!=null&&z.writable?u(z==null?void 0:z.writable)?z==null?void 0:z.writable:W(z.writable):void 0;return F({readable:V,writable:ie})}const C=z==null?void 0:z.then;if(typeof C=="function"){let V;return Q(C,z,ie=>{ie!=null&&V.push(ie),V.push(null)},ie=>{y(V,ie)}),V=new N({objectMode:!0,writable:!1,read(){}})}throw new p(M,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],z)};function D(W){let{promise:z,resolve:M}=O();const C=new B,V=C.signal;return{value:W(async function*(){for(;;){const ne=z;z=null;const{chunk:fe,done:_e,cb:we}=await ne;if(t.nextTick(we),_e)return;if(V.aborted)throw new f(void 0,{cause:V.reason});({promise:z,resolve:M}=O()),yield fe}}(),{signal:V}),write(ne,fe,_e){const we=M;M=null,we({chunk:ne,done:!1,cb:_e})},final(ne){const fe=M;M=null,fe({done:!0,cb:ne})},destroy(ne,fe){C.abort(),fe(ne)}}}function F(W){const z=W.readable&&typeof W.readable.read!="function"?w.wrap(W.readable):W.readable,M=W.writable;let C=!!r(z),V=!!n(M),ie,ne,fe,_e,we;function Ce(oe){const ae=_e;_e=null,ae?ae(oe):oe&&we.destroy(oe)}return we=new N({readableObjectMode:!!(z!=null&&z.readableObjectMode),writableObjectMode:!!(M!=null&&M.writableObjectMode),readable:C,writable:V}),V&&(h(M,oe=>{V=!1,oe&&y(z,oe),Ce(oe)}),we._write=function(oe,ae,Ae){M.write(oe,ae)?Ae():ie=Ae},we._final=function(oe){M.end(),ne=oe},M.on("drain",function(){if(ie){const oe=ie;ie=null,oe()}}),M.on("finish",function(){if(ne){const oe=ne;ne=null,oe()}})),C&&(h(z,oe=>{C=!1,oe&&y(z,oe),Ce(oe)}),z.on("readable",function(){if(fe){const oe=fe;fe=null,oe()}}),z.on("end",function(){we.push(null)}),we._read=function(){for(;;){const oe=z.read();if(oe===null){fe=we._read;return}if(!we.push(oe))return}}),we._destroy=function(oe,ae){!oe&&_e!==null&&(oe=new f),fe=null,ie=null,ne=null,_e===null?ae(oe):(_e=ae,y(M,oe),y(z,oe))},we}return WS}var XS,gD;function Jo(){if(gD)return XS;gD=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=Kr;XS=o;const a=s_(),s=yx();n(o.prototype,a.prototype),n(o,a);{const d=r(s.prototype);for(let h=0;h{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function bee(){this._final!==dO&&dO.call(this)}Yo.prototype._final=dO;Yo.prototype._transform=function(t,e,r){throw new pee("_transform()")};Yo.prototype._write=function(t,e,r){const n=this._readableState,a=this._writableState,s=n.length;this._transform(t,e,(o,u)=>{if(o){r(o);return}u!=null&&this.push(u),a.ended||s===n.length||n.length{n=!0});const a=Hb(t,{readable:e,writable:r},s=>{n=!s});return{destroy:s=>{n||(n=!0,See.destroyer(t,s||new Oee("pipe")))},cleanup:a}}function jee(t){return Ree(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function rT(t){if(Fc(t))return t;if(hb(t))return Cee(t);throw new fO("val",["Readable","Iterable","AsyncIterable"],t)}async function*Cee(t){eT||(eT=s_()),yield*eT.prototype[_ee].call(t)}async function t1(t,e,r,{end:n}){let a,s=null;const o=l=>{if(l&&(a=l),s){const d=s;s=null,d()}},u=()=>new gee((l,d)=>{a?d(a):s=()=>{a?d(a):l()}});e.on("drain",o);const c=Hb(e,{readable:!1},o);try{e.writableNeedDrain&&await u();for await(const l of t)e.write(l)||await u();n&&(e.end(),await u()),r()}catch(l){r(a!==l?Tee(a,l):l)}finally{c(),e.off("drain",o)}}async function nT(t,e,r,{end:n}){hd(e)&&(e=e.writable);const a=e.getWriter();try{for await(const s of t)await a.ready,a.write(s).catch(()=>{});await a.ready,n&&await a.close(),r()}catch(s){try{await a.abort(s),r(s)}catch(o){r(o)}}}function Fee(...t){return tF(t,wee(jee(t)))}function tF(t,e,r){if(t.length===1&&mee(t[0])&&(t=t[0]),t.length<2)throw new Eee("streams");const n=new Nee,a=n.signal,s=r==null?void 0:r.signal,o=[];Iee(s,"options.signal");function u(){b(new xee)}tT=tT||Fi.addAbortListener;let c;s&&(c=tT(s,u));let l,d;const h=[];let f=0;function p(I){b(I,--f===0)}function b(I,O){var T;if(I&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=I),!(!l&&!O)){for(;h.length;)h.shift()(l);(T=c)===null||T===void 0||T[vee](),n.abort(),O&&(l||o.forEach(x=>x()),Yh.nextTick(e,l,d))}}let y;for(let I=0;I0,P=T||(r==null?void 0:r.end)!==!1,B=I===t.length-1;if(vD(O)){let Q=function(N){N&&N.name!=="AbortError"&&N.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(N)};if(P){const{destroy:N,cleanup:D}=wD(O,T,x);h.push(N),JS(O)&&B&&o.push(D)}O.on("error",Q),JS(O)&&B&&o.push(()=>{O.removeListener("error",Q)})}if(I===0)if(typeof O=="function"){if(y=O({signal:a}),!Fc(y))throw new KS("Iterable, AsyncIterable or Stream","source",y)}else Fc(O)||hb(O)||hd(O)?y=O:y=_D.from(O);else if(typeof O=="function"){if(hd(y)){var S;y=rT((S=y)===null||S===void 0?void 0:S.readable)}else y=rT(y);if(y=O(y,{signal:a}),T){if(!Fc(y,!0))throw new KS("AsyncIterable",`transform[${I-1}]`,y)}else{var w;ZS||(ZS=eF);const Q=new ZS({objectMode:!0}),N=(w=y)===null||w===void 0?void 0:w.then;if(typeof N=="function")f++,N.call(y,W=>{d=W,W!=null&&Q.write(W),P&&Q.end(),Yh.nextTick(p)},W=>{Q.destroy(W),Yh.nextTick(p,W)});else if(Fc(y,!0))f++,t1(y,Q,p,{end:P});else if(YS(y)||hd(y)){const W=y.readable||y;f++,t1(W,Q,p,{end:P})}else throw new KS("AsyncIterable or Promise","destination",y);y=Q;const{destroy:D,cleanup:F}=wD(y,!1,!0);h.push(D),B&&o.push(F)}}else if(vD(O)){if(hb(y)){f+=2;const Q=Mee(y,O,p,{end:P});JS(O)&&B&&o.push(Q)}else if(hd(y)||YS(y)){const Q=y.readable||y;f++,t1(Q,O,p,{end:P})}else if(Fc(y))f++,t1(y,O,p,{end:P});else throw new fO("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=O}else if(Pee(O)){if(hb(y))f++,nT(rT(y),O,p,{end:P});else if(YS(y)||Fc(y))f++,nT(y,O,p,{end:P});else if(hd(y))f++,nT(y.readable,O,p,{end:P});else throw new fO("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],y);y=O}else y=_D.from(O)}return(a!=null&&a.aborted||s!=null&&s.aborted)&&Yh.nextTick(u),y}function Mee(t,e,r,{end:n}){let a=!1;if(e.on("close",()=>{a||r(new Aee)}),t.pipe(e,{end:!1}),n){let s=function(){a=!0,e.end()};Dee(t)?Yh.nextTick(s):t.once("end",s)}else r();return Hb(t,{readable:!0,writable:!1},s=>{const o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),Hb(e,{readable:!1,writable:!0},r)}var gx={pipelineImpl:tF,pipeline:Fee};const{pipeline:Lee}=gx,r1=Jo(),{destroyer:Bee}=$f,{isNodeStream:n1,isReadable:SD,isWritable:TD,isWebStream:iT,isTransformStream:Tc,isWritableStream:ED,isReadableStream:OD}=iu,{AbortError:$ee,codes:{ERR_INVALID_ARG_VALUE:AD,ERR_MISSING_ARGS:Uee}}=Ki,qee=cc;var rF=function(...e){if(e.length===0)throw new Uee("streams");if(e.length===1)return r1.from(e[0]);const r=[...e];if(typeof e[0]=="function"&&(e[0]=r1.from(e[0])),typeof e[e.length-1]=="function"){const p=e.length-1;e[p]=r1.from(e[p])}for(let p=0;p0&&!(TD(e[p])||ED(e[p])||Tc(e[p])))throw new AD(`streams[${p}]`,r[p],"must be writable")}let n,a,s,o,u;function c(p){const b=o;o=null,b?b(p):p?u.destroy(p):!f&&!h&&u.destroy()}const l=e[0],d=Lee(e,c),h=!!(TD(l)||ED(l)||Tc(l)),f=!!(SD(d)||OD(d)||Tc(d));if(u=new r1({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(d!=null&&d.readableObjectMode),writable:h,readable:f}),h){if(n1(l))u._write=function(b,y,S){l.write(b,y)?S():n=S},u._final=function(b){l.end(),a=b},l.on("drain",function(){if(n){const b=n;n=null,b()}});else if(iT(l)){const y=(Tc(l)?l.writable:l).getWriter();u._write=async function(S,w,I){try{await y.ready,y.write(S).catch(()=>{}),I()}catch(O){I(O)}},u._final=async function(S){try{await y.ready,y.close().catch(()=>{}),a=S}catch(w){S(w)}}}const p=Tc(d)?d.readable:d;qee(p,()=>{if(a){const b=a;a=null,b()}})}if(f){if(n1(d))d.on("readable",function(){if(s){const p=s;s=null,p()}}),d.on("end",function(){u.push(null)}),u._read=function(){for(;;){const p=d.read();if(p===null){s=u._read;return}if(!u.push(p))return}};else if(iT(d)){const b=(Tc(d)?d.readable:d).getReader();u._read=async function(){for(;;)try{const{value:y,done:S}=await b.read();if(!u.push(y))return;if(S){u.push(null);return}}catch{return}}}}return u._destroy=function(p,b){!p&&o!==null&&(p=new $ee),s=null,n=null,a=null,o===null?b(p):(o=b,n1(d)&&Bee(d,p))},u};const Vee=globalThis.AbortController||af().AbortController,{codes:{ERR_INVALID_ARG_VALUE:Hee,ERR_INVALID_ARG_TYPE:N0,ERR_MISSING_ARGS:kee,ERR_OUT_OF_RANGE:Qee},AbortError:to}=Ki,{validateAbortSignal:Al,validateInteger:xD,validateObject:xl}=P0,Gee=Kr.Symbol("kWeak"),zee=Kr.Symbol("kResistStopPropagation"),{finished:Wee}=cc,Xee=rF,{addAbortSignalNoValidate:Kee}=i_,{isWritable:Jee,isNodeStream:Yee}=iu,{deprecate:Zee}=Fi,{ArrayPrototypePush:ete,Boolean:tte,MathFloor:RD,Number:rte,NumberIsNaN:nte,Promise:ID,PromiseReject:PD,PromiseResolve:ite,PromisePrototypeThen:DD,Symbol:nF}=Kr,kb=nF("kEmpty"),ND=nF("kEof");function ate(t,e){if(e!=null&&xl(e,"options"),(e==null?void 0:e.signal)!=null&&Al(e.signal,"options.signal"),Yee(t)&&!Jee(t))throw new Hee("stream",t,"must be writable");const r=Xee(this,t);return e!=null&&e.signal&&Kee(e.signal,r),r}function o_(t,e){if(typeof t!="function")throw new N0("fn",["Function","AsyncFunction"],t);e!=null&&xl(e,"options"),(e==null?void 0:e.signal)!=null&&Al(e.signal,"options.signal");let r=1;(e==null?void 0:e.concurrency)!=null&&(r=RD(e.concurrency));let n=r-1;return(e==null?void 0:e.highWaterMark)!=null&&(n=RD(e.highWaterMark)),xD(r,"options.concurrency",1),xD(n,"options.highWaterMark",0),n+=r,(async function*(){const s=Fi.AbortSignalAny([e==null?void 0:e.signal].filter(tte)),o=this,u=[],c={signal:s};let l,d,h=!1,f=0;function p(){h=!0,b()}function b(){f-=1,y()}function y(){d&&!h&&f=n||f>=r)&&await new ID(I=>{d=I})}u.push(ND)}catch(w){const I=PD(w);DD(I,b,p),u.push(I)}finally{h=!0,l&&(l(),l=null)}}S();try{for(;;){for(;u.length>0;){const w=await u[0];if(w===ND)return;if(s.aborted)throw new to;w!==kb&&(yield w),u.shift(),y()}await new ID(w=>{l=w})}}finally{h=!0,d&&(d(),d=null)}}).call(this)}function ste(t=void 0){return t!=null&&xl(t,"options"),(t==null?void 0:t.signal)!=null&&Al(t.signal,"options.signal"),(async function*(){let r=0;for await(const a of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new to({cause:t.signal.reason});yield[r++,a]}}).call(this)}async function iF(t,e=void 0){for await(const r of _x.call(this,t,e))return!0;return!1}async function ote(t,e=void 0){if(typeof t!="function")throw new N0("fn",["Function","AsyncFunction"],t);return!await iF.call(this,async(...r)=>!await t(...r),e)}async function ute(t,e){for await(const r of _x.call(this,t,e))return r}async function cte(t,e){if(typeof t!="function")throw new N0("fn",["Function","AsyncFunction"],t);async function r(n,a){return await t(n,a),kb}for await(const n of o_.call(this,r,e));}function _x(t,e){if(typeof t!="function")throw new N0("fn",["Function","AsyncFunction"],t);async function r(n,a){return await t(n,a)?n:kb}return o_.call(this,r,e)}class lte extends kee{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function dte(t,e,r){var n;if(typeof t!="function")throw new N0("reducer",["Function","AsyncFunction"],t);r!=null&&xl(r,"options"),(r==null?void 0:r.signal)!=null&&Al(r.signal,"options.signal");let a=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const l=new to(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await Wee(this.destroy(l)),l}const s=new Vee,o=s.signal;if(r!=null&&r.signal){const l={once:!0,[Gee]:this,[zee]:!0};r.signal.addEventListener("abort",()=>s.abort(),l)}let u=!1;try{for await(const l of this){var c;if(u=!0,r!=null&&(c=r.signal)!==null&&c!==void 0&&c.aborted)throw new to;a?e=await t(e,l,{signal:o}):(e=l,a=!0)}if(!u&&!a)throw new lte}finally{s.abort()}return e}async function fte(t){t!=null&&xl(t,"options"),(t==null?void 0:t.signal)!=null&&Al(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new to(void 0,{cause:t.signal.reason});ete(e,n)}return e}function hte(t,e){const r=o_.call(this,t,e);return(async function*(){for await(const a of r)yield*a}).call(this)}function aF(t){if(t=rte(t),nte(t))return 0;if(t<0)throw new Qee("number",">= 0",t);return t}function pte(t,e=void 0){return e!=null&&xl(e,"options"),(e==null?void 0:e.signal)!=null&&Al(e.signal,"options.signal"),t=aF(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new to;for await(const s of this){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new to;t--<=0&&(yield s)}}).call(this)}function yte(t,e=void 0){return e!=null&&xl(e,"options"),(e==null?void 0:e.signal)!=null&&Al(e.signal,"options.signal"),t=aF(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new to;for await(const s of this){var a;if(e!=null&&(a=e.signal)!==null&&a!==void 0&&a.aborted)throw new to;if(t-- >0&&(yield s),t<=0)return}}).call(this)}ux.streamReturningOperators={asIndexedPairs:Zee(ste,"readable.asIndexedPairs will be removed in a future version."),drop:pte,filter:_x,flatMap:hte,map:o_,take:yte,compose:ate};ux.promiseReturningOperators={every:ote,forEach:cte,reduce:dte,toArray:fte,some:iF,find:ute};var aT,jD;function sF(){if(jD)return aT;jD=1;const{ArrayPrototypePop:t,Promise:e}=Kr,{isIterable:r,isNodeStream:n,isWebStream:a}=iu,{pipelineImpl:s}=gx,{finished:o}=cc;oF();function u(...c){return new e((l,d)=>{let h,f;const p=c[c.length-1];if(p&&typeof p=="object"&&!n(p)&&!r(p)&&!a(p)){const b=t(c);h=b.signal,f=b.end}s(c,(b,y)=>{b?d(b):l(y)},{signal:h,end:f})})}return aT={finished:o,pipeline:u},aT}var CD;function oF(){if(CD)return US.exports;CD=1;const{Buffer:t}=ao,{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=Kr,{promisify:{custom:a}}=Fi,{streamReturningOperators:s,promiseReturningOperators:o}=ux,{codes:{ERR_ILLEGAL_CONSTRUCTOR:u}}=Ki,c=rF,{setDefaultHighWaterMark:l,getDefaultHighWaterMark:d}=a_,{pipeline:h}=gx,{destroyer:f}=$f,p=cc,b=sF(),y=iu,S=US.exports=hx.Stream;S.isDestroyed=y.isDestroyed,S.isDisturbed=y.isDisturbed,S.isErrored=y.isErrored,S.isReadable=y.isReadable,S.isWritable=y.isWritable,S.Readable=s_();for(const I of r(s)){let T=function(...x){if(new.target)throw u();return S.Readable.from(n(O,this,x))};const O=s[I];e(T,"name",{__proto__:null,value:O.name}),e(T,"length",{__proto__:null,value:O.length}),e(S.Readable.prototype,I,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}for(const I of r(o)){let T=function(...x){if(new.target)throw u();return n(O,this,x)};const O=o[I];e(T,"name",{__proto__:null,value:O.name}),e(T,"length",{__proto__:null,value:O.length}),e(S.Readable.prototype,I,{__proto__:null,value:T,enumerable:!1,configurable:!0,writable:!0})}S.Writable=yx(),S.Duplex=Jo(),S.Transform=Y9,S.PassThrough=eF,S.pipeline=h;const{addAbortSignal:w}=i_;return S.addAbortSignal=w,S.finished=p,S.destroy=f,S.compose=c,S.setDefaultHighWaterMark=l,S.getDefaultHighWaterMark=d,e(S,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return b}}),e(h,a,{__proto__:null,enumerable:!0,get(){return b.pipeline}}),e(p,a,{__proto__:null,enumerable:!0,get(){return b.finished}}),S.Stream=S,S._isUint8Array=function(O){return O instanceof Uint8Array},S._uint8ArrayToBuffer=function(O){return t.from(O.buffer,O.byteOffset,O.byteLength)},US.exports}(function(t){const e=oF(),r=sF(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports})(y9);var Kt=y9.exports;Object.defineProperty(Gg,"__esModule",{value:!0});Gg.ActorQueryResultSerializeJson=void 0;const bte=bs,FD=sr,mte=Kt;class gte extends bte.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}async testHandleChecked(e,r){if(!["bindings","quads","boolean"].includes(e.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}async runHandle(e,r,n){const a=new mte.Readable;a._read=()=>{};let s=!0;if(e.type==="bindings"){const o=e.bindingsStream;a.push("["),o.on("error",u=>a.emit("error",u)),o.on("data",u=>{a.push(s?` -`:`, -`),a.push(JSON.stringify(Object.fromEntries([...u].map(([c,l])=>[c.value,FD.termToString(l)])))),s=!1}),o.on("end",()=>{a.push(s?`] -`:` -] -`),a.push(null)})}else if(e.type==="quads"){const o=e.quadStream;a.push("["),o.on("error",u=>a.emit("error",u)),o.on("data",u=>{a.push(s?` -`:`, -`),a.push(JSON.stringify(FD.quadToStringQuad(u))),s=!1}),o.on("end",()=>{a.push(s?`] -`:` -] -`),a.push(null)})}else try{a.push(`${JSON.stringify(await e.execute())} -`),a.push(null)}catch(o){setTimeout(()=>a.emit("error",o))}return{data:a}}}Gg.ActorQueryResultSerializeJson=gte;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Gg,t)})(p9);var uF={},u_={};Object.defineProperty(u_,"__esModule",{value:!0});u_.ActorQueryResultSerializeSimple=void 0;const _te=bs,vte=sr,wte=Kt;class kc extends _te.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}async testHandleChecked(e,r){if(!["bindings","quads","boolean","void"].includes(e.type))throw new Error("This actor can only handle bindings streams, quad streams, booleans, or updates.");return!0}static termToString(e){return e.termType==="Quad"?(0,vte.termToString)(e):e.value}async runHandle(e,r,n){const a=new wte.Readable;a._read=()=>{};let s;if(e.type==="bindings")s=e.bindingsStream,s.on("error",o=>a.emit("error",o)),s.on("data",o=>a.push(`${[...o].map(([u,c])=>`?${u.value}: ${kc.termToString(c)}`).join(` -`)} - -`)),s.on("end",()=>a.push(null));else if(e.type==="quads")s=e.quadStream,s.on("error",o=>a.emit("error",o)),s.on("data",o=>a.push(`subject: ${kc.termToString(o.subject)} -predicate: ${kc.termToString(o.predicate)} -object: ${kc.termToString(o.object)} -graph: ${kc.termToString(o.graph)} - -`)),s.on("end",()=>a.push(null));else if(e.type==="boolean")try{a.push(`${JSON.stringify(await e.execute())} -`),a.push(null)}catch(o){setTimeout(()=>a.emit("error",o))}else e.execute().then(()=>{a.push(`ok -`),a.push(null)}).catch(o=>setTimeout(()=>a.emit("error",o)));return{data:a}}}u_.ActorQueryResultSerializeSimple=kc;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(u_,t)})(uF);var cF={},c_={};Object.defineProperty(c_,"__esModule",{value:!0});c_.ActorQueryResultSerializeSparqlCsv=void 0;const Ste=bs,Tte=Kt;class wd extends Ste.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToCsvBindings(e){if(!e)return"";let r=e.value;if(e.termType==="Literal")r=`${r}`;else if(e.termType==="BlankNode")r=`_:${r}`;else if(e.termType==="Quad"){let n=wd.bindingToCsvBindings(e.object);e.object.termType==="Literal"&&(n=`"${n.replace(/"/ug,'""')}"`),r=`<< ${wd.bindingToCsvBindings(e.subject)} ${wd.bindingToCsvBindings(e.predicate)} ${n} >>`}else r=`<${r}>`;return/[",\n\r]/u.test(r)&&(r=`"${r.replace(/"/ug,'""')}"`),r}async testHandleChecked(e,r){if(e.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(e,r,n){const a=e,s=new Tte.Readable;s._read=()=>{};const o=await a.metadata();return s.push(`${o.variables.map(u=>u.value).join(",")}\r -`),a.bindingsStream.on("error",u=>{s.emit("error",u)}),a.bindingsStream.on("data",u=>{s.push(`${o.variables.map(c=>wd.bindingToCsvBindings(u.get(c))).join(",")}\r -`)}),a.bindingsStream.on("end",()=>{s.push(null)}),{data:s}}}c_.ActorQueryResultSerializeSparqlCsv=wd;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(c_,t)})(cF);var lF={},l_={},j0={},ei={};Object.defineProperty(ei,"__esModule",{value:!0});ei.stringQuadToQuad=ei.quadToStringQuad=ei.stringToTerm=ei.getLiteralLanguage=ei.getLiteralType=ei.getLiteralValue=ei.termToString=void 0;const Ete=yt,dF=new Ete.DataFactory;function qo(t){if(t)switch(t.termType){case"NamedNode":return`<${xte(t.value)}>`;case"BlankNode":return`_:${t.value}`;case"Literal":{const e=t;return`"${Rte(e.value)}"${e.datatype&&e.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&e.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?`^^<${e.datatype.value}>`:""}${e.language?`@${e.language}`:""}`}case"Quad":return`<<${qo(t.subject)} ${qo(t.predicate)} ${qo(t.object)}${t.graph.termType==="DefaultGraph"?"":` ${qo(t.graph)}`}>>`;case"Variable":return`?${t.value}`;case"DefaultGraph":return t.value}}ei.termToString=qo;function fF(t){const e=/^"([^]*)"((\^\^.*)|(@.*))?$/u.exec(t);if(!e)throw new Error(`${t} is not a literal`);return e[1].replace(/\\"/ug,'"')}ei.getLiteralValue=fF;function hF(t){const e=/^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/u.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")}ei.getLiteralType=hF;function pF(t){const e=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/u.exec(t);if(!e)throw new Error(`${t} is not a literal`);return e[1]?e[1].toLowerCase():""}ei.getLiteralLanguage=pF;function Vo(t,e){if(e=e||dF,!t||t.length===0)return e.defaultGraph();switch(t[0]){case"_":return e.blankNode(t.slice(2));case"?":if(!e.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return e.variable(t.slice(1));case'"':{const r=pF(t),n=e.namedNode(hF(t));return e.literal(fF(t),r||n)}case"<":default:if(t.startsWith("<<")&&t.endsWith(">>")){const r=t.slice(2,-2),n=[];let a=0,s=0;for(let o=0;o"){if(a===0)throw new Error(`Found closing tag without opening tag in ${t}`);a--}u===" "&&a===0&&(n.push(r.slice(s,o)),s=o+1)}if(a!==0)throw new Error(`Found opening tag without closing tag in ${t}`);if(n.push(r.slice(s,r.length)),n.length!==3&&n.length!==4)throw new Error(`Nested quad syntax error ${t}`);return e.quad(Vo(n[0]),Vo(n[1]),Vo(n[2]),n[3]?Vo(n[3]):void 0)}if(!t.startsWith("<")||!t.endsWith(">"))throw new Error(`Detected invalid iri for named node (must be wrapped in <>): ${t}`);return e.namedNode(t.slice(1,-1))}}ei.stringToTerm=Vo;function Ote(t){return{subject:qo(t.subject),predicate:qo(t.predicate),object:qo(t.object),graph:qo(t.graph)}}ei.quadToStringQuad=Ote;function Ate(t,e){return e=e||dF,e.quad(Vo(t.subject,e),Vo(t.predicate,e),Vo(t.object,e),Vo(t.graph,e))}ei.stringQuadToQuad=Ate;function xte(t){return t.replace(hO,yF)}function Rte(t){return hO.test(t)&&(t=t.replace(hO,yF)),t}const hO=/["\\\t\n\r\b\f\u0000-\u0019]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ite=new Map([["\\","\\\\"],['"','\\"'],[" ","\\t"],[` -`,"\\n"],["\r","\\r"],["\b","\\b"],["\f","\\f"]]);function yF(t){const e=Ite.get(t);if(!e){if(t.length===1){const n=t.charCodeAt(0).toString(16);return`${"\\u0000".slice(0,-n.length)}${n}`}const r=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16);return`${"\\U00000000".slice(0,-r.length)}${r}`}return e}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=ei;Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})})(j0);Object.defineProperty(l_,"__esModule",{value:!0});l_.ActorQueryResultSerializeSparqlTsv=void 0;const Pte=bs,Dte=j0,Nte=Kt;class vx extends Pte.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToTsvBindings(e){return e?(0,Dte.termToString)(e).replace(/\t/gu,"\\t").replace(/\n/gu,"\\n").replace(/\r/gu,"\\r"):""}async testHandleChecked(e,r){if(e.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(e,r,n){const a=e,s=new Nte.Readable;s._read=()=>{};const o=await a.metadata();return s.push(`${o.variables.map(u=>u.value).join(" ")} -`),a.bindingsStream.on("error",u=>{s.emit("error",u)}),a.bindingsStream.on("data",u=>{s.push(`${o.variables.map(c=>vx.bindingToTsvBindings(u.get(c))).join(" ")} -`)}),a.bindingsStream.on("end",()=>{s.push(null)}),{data:s}}}l_.ActorQueryResultSerializeSparqlTsv=vx;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(l_,t)})(lF);var bF={},d_={},f_={};Object.defineProperty(f_,"__esModule",{value:!0});f_.XmlSerializer=void 0;class jte{constructor(e){this.stack=[],this.push=e,this.push(` -`)}open(e,r){this.push(`${this.identation()+this.formatTag(e,r,"open")} -`),this.stack.push(e)}close(){const e=this.stack.pop();if(e===void 0)throw new Error("There is no tag left to close");this.push(`${this.identation()+this.formatTag(e,{},"close")} -`)}add(e){this.push(this.serializeNode(e))}serializeNode(e){if(e.children===void 0)return`${this.identation()+this.formatTag(e.name,e.attributes,"self-closing")} -`;if(typeof e.children=="string")return`${this.identation()+this.formatTag(e.name,e.attributes,"open")+this.escape(e.children)+this.formatTag(e.name,{},"close")} -`;const r=[];r.push(`${this.identation()+this.formatTag(e.name,e.attributes,"open")} -`),this.stack.push(e.name);for(const n of e.children)r.push(this.serializeNode(n));return this.stack.pop(),r.push(`${this.identation()+this.formatTag(e.name,{},"close")} -`),r.join("")}identation(){return this.stack.map(e=>" ").join("")}formatTag(e,r,n){return`<${n==="close"?"/":""}${e}${Object.entries(r||{}).map(a=>` ${a[0]}="${this.escape(a[1])}"`)}${n==="self-closing"?"/":""}>`}escape(e){return e.replace(/["&'<>]/gu,r=>{switch(r){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case'"':return"""}})}}f_.XmlSerializer=jte;Object.defineProperty(d_,"__esModule",{value:!0});d_.ActorQueryResultSerializeSparqlXml=void 0;const Cte=bs,Fte=Kt,Mte=f_;class wx extends Cte.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToXmlBindings(e,r){return{name:"binding",attributes:{name:r.value},children:[this.valueToXmlValue(e)]}}static valueToXmlValue(e){let r;switch(e.termType){case"Literal":return e.language?r={"xml:lang":e.language}:e.datatype&&e.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?r={datatype:e.datatype.value}:r={},{name:"literal",attributes:r,children:e.value};case"BlankNode":return{name:"bnode",children:e.value};case"Quad":return{name:"triple",children:[{name:"subject",children:[this.valueToXmlValue(e.subject)]},{name:"predicate",children:[this.valueToXmlValue(e.predicate)]},{name:"object",children:[this.valueToXmlValue(e.object)]}]};default:return{name:"uri",children:e.value}}}async testHandleChecked(e,r){if(!["bindings","boolean"].includes(e.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(e,r,n){const a=new Fte.Readable;a._read=()=>{};const s=new Mte.XmlSerializer(u=>a.push(u));s.open("sparql",{xmlns:"http://www.w3.org/2005/sparql-results#"});const o=await e.metadata();if(s.add({name:"head",children:o.variables.map(u=>({name:"variable",attributes:{name:u.value}}))}),e.type==="bindings"){s.open("results");const u=e.bindingsStream;u.on("error",c=>{a.emit("error",c)}),u.on("data",c=>{s.add({name:"result",children:[...c].map(([l,d])=>wx.bindingToXmlBindings(d,l))})}),u.on("end",()=>{s.close(),s.close(),setTimeout(()=>a.push(null))})}else try{const u=await e.execute();s.add({name:"boolean",children:u.toString()}),s.close(),setTimeout(()=>a.push(null))}catch(u){setTimeout(()=>a.emit("error",u))}return{data:a}}}d_.ActorQueryResultSerializeSparqlXml=wx;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(d_,t)})(bF);var mF={},h_={};Object.defineProperty(h_,"__esModule",{value:!0});h_.ActorQueryResultSerializeTable=void 0;const Lte=bs,Bte=yt,$te=sr,gF=hn,Ute=Kt,qte=new Bte.DataFactory,Vte=gF.QUAD_TERM_NAMES.map(t=>qte.variable(t));class Qb extends Lte.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e),this.padding=Qb.repeat(" ",this.columnWidth)}static repeat(e,r){return e.repeat(r)}async testHandleChecked(e,r){if(!["bindings","quads"].includes(e.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}termToString(e){return e.termType==="Quad"?(0,$te.termToString)(e):e.value}pad(e){return e.length<=this.columnWidth?e+this.padding.slice(e.length):`${e.slice(0,this.columnWidth-1)}…`}pushHeader(e,r){const n=r.map(a=>this.pad(a.value)).join(" ");e.push(`${n} -${Qb.repeat("-",n.length)} -`)}pushRow(e,r,n){e.push(`${r.map(a=>n.has(a)?this.termToString(n.get(a)):"").map(a=>this.pad(a)).join(" ")} -`)}async runHandle(e,r,n){const a=new Ute.Readable;a._read=()=>{};let s;if(e.type==="bindings"){s=e.bindingsStream;const o=(await e.metadata()).variables;this.pushHeader(a,o),s.on("error",u=>a.emit("error",u)),s.on("data",u=>this.pushRow(a,o,u))}else s=e.quadStream,this.pushHeader(a,Vte),s.on("error",o=>a.emit("error",o)),s.on("data",o=>a.push(`${(0,gF.getTerms)(o).map(u=>this.pad(this.termToString(u))).join(" ")} -`));return s.on("end",()=>a.push(null)),{data:a}}}h_.ActorQueryResultSerializeTable=Qb;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(h_,t)})(mF);var _F={},Cp={},vF={},p_={},wF={},pO={},y_={},Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});Zo.Translator=void 0;class Hte{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(e){throw new Error(`Invalid RDF ${e.datatype.value} value: '${e.value}'`)}registerHandler(e,r,n){for(const a of r)this.supportedRdfDatatypes.push(a),this.fromRdfHandlers[a.value]=e;for(const a of n){let s=this.toRdfHandlers[a];s||(this.toRdfHandlers[a]=s=[]),s.push(e)}}fromRdf(e,r){const n=this.fromRdfHandlers[e.datatype.value];return n?n.fromRdf(e,r):e.value}toRdf(e,r){const n=this.toRdfHandlers[typeof e];if(n)for(const a of n){const s=a.toRdf(e,r);if(s)return s}throw new Error(`Invalid JavaScript value: '${e}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}}Zo.Translator=Hte;Object.defineProperty(y_,"__esModule",{value:!0});y_.TypeHandlerBoolean=void 0;const kte=Zo;class b_{fromRdf(e,r){switch(e.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return r&&kte.Translator.incorrectRdfDataType(e),!1}toRdf(e,{datatype:r,dataFactory:n}){return n.literal(e?"true":"false",r||n.namedNode(b_.TYPE))}}b_.TYPE="http://www.w3.org/2001/XMLSchema#boolean";y_.TypeHandlerBoolean=b_;var m_={};Object.defineProperty(m_,"__esModule",{value:!0});m_.TypeHandlerDate=void 0;const Qte=Zo;class of{fromRdf(e,r){switch(r&&!e.value.match(of.VALIDATORS[e.datatype.value.substr(33,e.datatype.value.length)])&&Qte.Translator.incorrectRdfDataType(e),e.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(e.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const n=e.value.split("-");return new Date(0,parseInt(n[0],10)-1,parseInt(n[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(e.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(e.value+"-01");default:return new Date(e.value)}}toRdf(e,{datatype:r,dataFactory:n}){if(r=r||n.namedNode(of.TYPES[0]),!(e instanceof Date))return null;const a=e;let s;switch(r.value){case"http://www.w3.org/2001/XMLSchema#gDay":s=String(a.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":s=a.getUTCMonth()+1+"-"+a.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":s=String(a.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":s=a.getUTCFullYear()+"-"+(a.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":s=a.toISOString().replace(/T.*$/,"");break;default:s=a.toISOString()}return n.literal(s,r)}}of.TYPES=["http://www.w3.org/2001/XMLSchema#dateTime","http://www.w3.org/2001/XMLSchema#date","http://www.w3.org/2001/XMLSchema#gDay","http://www.w3.org/2001/XMLSchema#gMonthDay","http://www.w3.org/2001/XMLSchema#gYear","http://www.w3.org/2001/XMLSchema#gYearMonth"];of.VALIDATORS={date:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,dateTime:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,gDay:/^[0-9]+$/,gMonthDay:/^[0-9]+-[0-9][0-9]$/,gYear:/^[0-9]+$/,gYearMonth:/^[0-9]+-[0-9][0-9]$/};m_.TypeHandlerDate=of;var g_={};Object.defineProperty(g_,"__esModule",{value:!0});g_.TypeHandlerNumberDouble=void 0;const Gte=Zo;class __{fromRdf(e,r){const n=parseFloat(e.value);return r&&isNaN(n)&&Gte.Translator.incorrectRdfDataType(e),n}toRdf(e,{datatype:r,dataFactory:n}){return r=r||n.namedNode(__.TYPES[0]),isNaN(e)?n.literal("NaN",r):isFinite(e)?e%1===0?null:n.literal(e.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),r):n.literal(e>0?"INF":"-INF",r)}}__.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"];g_.TypeHandlerNumberDouble=__;var v_={};Object.defineProperty(v_,"__esModule",{value:!0});v_.TypeHandlerNumberInteger=void 0;const zte=Zo;class Ho{fromRdf(e,r){const n=parseInt(e.value,10);return r&&(isNaN(n)||e.value.indexOf(".")>=0)&&zte.Translator.incorrectRdfDataType(e),n}toRdf(e,{datatype:r,dataFactory:n}){return n.literal(String(e),r||(e<=Ho.MAX_INT&&e>=Ho.MIN_INT?n.namedNode(Ho.TYPES[0]):n.namedNode(Ho.TYPES[1])))}}Ho.TYPES=["http://www.w3.org/2001/XMLSchema#integer","http://www.w3.org/2001/XMLSchema#long","http://www.w3.org/2001/XMLSchema#int","http://www.w3.org/2001/XMLSchema#byte","http://www.w3.org/2001/XMLSchema#short","http://www.w3.org/2001/XMLSchema#negativeInteger","http://www.w3.org/2001/XMLSchema#nonNegativeInteger","http://www.w3.org/2001/XMLSchema#nonPositiveInteger","http://www.w3.org/2001/XMLSchema#positiveInteger","http://www.w3.org/2001/XMLSchema#unsignedByte","http://www.w3.org/2001/XMLSchema#unsignedInt","http://www.w3.org/2001/XMLSchema#unsignedLong","http://www.w3.org/2001/XMLSchema#unsignedShort"];Ho.MAX_INT=2147483647;Ho.MIN_INT=-2147483648;v_.TypeHandlerNumberInteger=Ho;var w_={};Object.defineProperty(w_,"__esModule",{value:!0});w_.TypeHandlerString=void 0;class SF{fromRdf(e){return e.value}toRdf(e,{datatype:r,dataFactory:n}){return n.literal(e,r)}}SF.TYPES=["http://www.w3.org/2001/XMLSchema#string","http://www.w3.org/2001/XMLSchema#normalizedString","http://www.w3.org/2001/XMLSchema#anyURI","http://www.w3.org/2001/XMLSchema#base64Binary","http://www.w3.org/2001/XMLSchema#language","http://www.w3.org/2001/XMLSchema#Name","http://www.w3.org/2001/XMLSchema#NCName","http://www.w3.org/2001/XMLSchema#NMTOKEN","http://www.w3.org/2001/XMLSchema#token","http://www.w3.org/2001/XMLSchema#hexBinary","http://www.w3.org/1999/02/22-rdf-syntax-ns#langString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"];w_.TypeHandlerString=SF;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(y_,t),r(m_,t),r(g_,t),r(v_,t),r(w_,t)})(pO);var TF={};Object.defineProperty(TF,"__esModule",{value:!0});(function(t){var e=g&&g.__createBinding||(Object.create?function(p,b,y,S){S===void 0&&(S=y);var w=Object.getOwnPropertyDescriptor(b,y);(!w||("get"in w?!b.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return b[y]}}),Object.defineProperty(p,S,w)}:function(p,b,y,S){S===void 0&&(S=y),p[S]=b[y]}),r=g&&g.__exportStar||function(p,b){for(var y in p)y!=="default"&&!Object.prototype.hasOwnProperty.call(b,y)&&e(b,p,y)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const n=yt,a=pO,s=Zo;r(pO,t),r(TF,t),r(Zo,t);const o=new n.DataFactory,u=new s.Translator;u.registerHandler(new a.TypeHandlerString,a.TypeHandlerString.TYPES.map(p=>o.namedNode(p)),["string"]),u.registerHandler(new a.TypeHandlerBoolean,[a.TypeHandlerBoolean.TYPE].map(p=>o.namedNode(p)),["boolean"]),u.registerHandler(new a.TypeHandlerNumberDouble,a.TypeHandlerNumberDouble.TYPES.map(p=>o.namedNode(p)),["number"]),u.registerHandler(new a.TypeHandlerNumberInteger,a.TypeHandlerNumberInteger.TYPES.map(p=>o.namedNode(p)),["number"]),u.registerHandler(new a.TypeHandlerDate,a.TypeHandlerDate.TYPES.map(p=>o.namedNode(p)),["object"]);function c(p,b){return u.fromRdf(p,b)}t.fromRdf=c;function l(p,b){return b&&"namedNode"in b&&(b={dataFactory:b}),b=b||{},b&&!b.dataFactory&&(b.dataFactory=o),u.toRdf(p,b)}t.toRdf=l;function d(p,b){return p.termType==="Literal"?c(p,b):p.value}t.getTermRaw=d;function h(){return u.getSupportedRdfDatatypes()}t.getSupportedRdfDatatypes=h;function f(){return u.getSupportedJavaScriptPrimitives()}t.getSupportedJavaScriptPrimitives=f})(wF);var Sx={},S_={},{Buffer:Fu}=ao,Ct={},EF=Ct.LEFT_BRACE=1,pb=Ct.RIGHT_BRACE=2,OF=Ct.LEFT_BRACKET=3,yO=Ct.RIGHT_BRACKET=4,yb=Ct.COLON=5,Gb=Ct.COMMA=6,AF=Ct.TRUE=7,xF=Ct.FALSE=8,RF=Ct.NULL=9,zb=Ct.STRING=10,IF=Ct.NUMBER=11,Mc=Ct.START=17,PF=Ct.STOP=18,MD=Ct.TRUE1=33,LD=Ct.TRUE2=34,BD=Ct.TRUE3=35,$D=Ct.FALSE1=49,UD=Ct.FALSE2=50,qD=Ct.FALSE3=51,VD=Ct.FALSE4=52,HD=Ct.NULL1=65,kD=Ct.NULL2=66,QD=Ct.NULL3=67,GD=Ct.NUMBER1=81,sT=Ct.NUMBER3=83,ka=Ct.STRING1=97,zD=Ct.STRING2=98,WD=Ct.STRING3=99,Wte=Ct.STRING4=100,Xte=Ct.STRING5=101,XD=Ct.STRING6=102,Sd=Ct.VALUE=113,oT=Ct.KEY=114,i1=Ct.OBJECT=129,a1=Ct.ARRAY=130,Kte="\\".charCodeAt(0),Jte="/".charCodeAt(0),Yte="\b".charCodeAt(0),Zte="\f".charCodeAt(0),ere=` -`.charCodeAt(0),tre="\r".charCodeAt(0),rre=" ".charCodeAt(0),Tx=64*1024;function s1(t){return Fu.alloc?Fu.alloc(t):new Fu(t)}function Zu(){this.tState=Mc,this.value=void 0,this.string=void 0,this.stringBuffer=s1(Tx),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Sd,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:s1(2),3:s1(3),4:s1(4)},this.offset=-1}Zu.toknam=function(t){for(var e=Object.keys(Ct),r=0,n=e.length;r=Tx&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t};_a.appendStringBuf=function(t,e,r){var n=t.length;typeof e=="number"&&(typeof r=="number"?r<0?n=t.length-e+r:n=r-e:n=t.length-e),n<0&&(n=0),this.stringBufferOffset+n>Tx&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n};_a.write=function(t){typeof t=="string"&&(t=new Fu(t));for(var e,r=0,n=t.length;r=48&&e<64)this.string=String.fromCharCode(e),this.tState=sT;else if(!(e===32||e===9||e===10||e===13))return this.charError(t,r)}else if(this.tState===ka)if(e=t[r],this.bytes_remaining>0){for(var a=0;a=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+Zu.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var s=0;s<=t.length-1-r;s++)this.temp_buffs[this.bytes_in_sequence][s]=t[r+s];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(e===34)this.tState=Mc,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(zb,this.string),this.offset+=Fu.byteLength(this.string,"utf8")+1,this.string=void 0;else if(e===92)this.tState=zD;else if(e>=32)this.appendStringChar(e);else return this.charError(t,r);else if(this.tState===zD)if(e=t[r],e===34)this.appendStringChar(e),this.tState=ka;else if(e===92)this.appendStringChar(Kte),this.tState=ka;else if(e===47)this.appendStringChar(Jte),this.tState=ka;else if(e===98)this.appendStringChar(Yte),this.tState=ka;else if(e===102)this.appendStringChar(Zte),this.tState=ka;else if(e===110)this.appendStringChar(ere),this.tState=ka;else if(e===114)this.appendStringChar(tre),this.tState=ka;else if(e===116)this.appendStringChar(rre),this.tState=ka;else if(e===117)this.unicode="",this.tState=WD;else return this.charError(t,r);else if(this.tState===WD||this.tState===Wte||this.tState===Xte||this.tState===XD)if(e=t[r],e>=48&&e<64||e>64&&e<=70||e>96&&e<=102){if(this.unicode+=String.fromCharCode(e),this.tState++===XD){var o=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&o>=56320&&o<57343+1?(this.appendStringBuf(new Fu(String.fromCharCode(this.highSurrogate,o))),this.highSurrogate=void 0):this.highSurrogate===void 0&&o>=55296&&o<56319+1?this.highSurrogate=o:(this.highSurrogate!==void 0&&(this.appendStringBuf(new Fu(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new Fu(String.fromCharCode(o)))),this.tState=ka}}else return this.charError(t,r);else if(this.tState===GD||this.tState===sT)switch(e=t[r],e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=sT;break;default:this.tState=Mc;var u=this.numberReviver(this.string);if(u)return u;this.offset+=this.string.length-1,this.string=void 0,r--;break}else if(this.tState===MD)if(t[r]===114)this.tState=LD;else return this.charError(t,r);else if(this.tState===LD)if(t[r]===117)this.tState=BD;else return this.charError(t,r);else if(this.tState===BD)if(t[r]===101)this.tState=Mc,this.onToken(AF,!0),this.offset+=3;else return this.charError(t,r);else if(this.tState===$D)if(t[r]===97)this.tState=UD;else return this.charError(t,r);else if(this.tState===UD)if(t[r]===108)this.tState=qD;else return this.charError(t,r);else if(this.tState===qD)if(t[r]===115)this.tState=VD;else return this.charError(t,r);else if(this.tState===VD)if(t[r]===101)this.tState=Mc,this.onToken(xF,!1),this.offset+=4;else return this.charError(t,r);else if(this.tState===HD)if(t[r]===117)this.tState=kD;else return this.charError(t,r);else if(this.tState===kD)if(t[r]===108)this.tState=QD;else return this.charError(t,r);else if(this.tState===QD)if(t[r]===108)this.tState=Mc,this.onToken(RF,null),this.offset+=3;else return this.charError(t,r)};_a.onToken=function(t,e){};_a.parseError=function(t,e){this.tState=PF,this.onError(new Error("Unexpected "+Zu.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+Zu.toknam(this.state)))};_a.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};_a.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=Sd)};_a.emit=function(t){this.mode&&(this.state=Gb),this.onValue(t)};_a.onValue=function(t){};_a.onToken=function(t,e){if(this.state===Sd)if(t===zb||t===IF||t===AF||t===xF||t===RF)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===EF)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=oT,this.mode=i1;else if(t===OF)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=a1,this.state=Sd;else if(t===pb)if(this.mode===i1)this.pop();else return this.parseError(t,e);else if(t===yO)if(this.mode===a1)this.pop();else return this.parseError(t,e);else return this.parseError(t,e);else if(this.state===oT)if(t===zb)this.key=e,this.state=yb;else if(t===pb)this.pop();else return this.parseError(t,e);else if(this.state===yb)if(t===yb)this.state=Sd;else return this.parseError(t,e);else if(this.state===Gb)if(t===Gb)this.mode===a1?(this.key++,this.state=Sd):this.mode===i1&&(this.state=oT);else if(t===yO&&this.mode===a1||t===pb&&this.mode===i1)this.pop();else return this.parseError(t,e);else return this.parseError(t,e)};_a.numberReviver=function(t){var e=Number(t);if(isNaN(e))return this.charError(buffer,i);t.match(/[0-9]+/)==t&&e.toString()!=t?this.onToken(zb,t):this.onToken(IF,e)};Zu.C=Ct;var DF=Zu;Object.defineProperty(S_,"__esModule",{value:!0});S_.SparqlJsonParser=void 0;const nre=yt,ire=Kt,KD=DF;class are{constructor(e){var r;e=e||{},this.dataFactory=e.dataFactory||new nre.DataFactory,this.prefixVariableQuestionMark=!!e.prefixVariableQuestionMark,this.suppressMissingStreamResultsError=(r=e.suppressMissingStreamResultsError)!==null&&r!==void 0?r:!0}parseJsonResults(e){return e.results.bindings.map(r=>this.parseJsonBindings(r))}parseJsonResultsStream(e){const r=u=>o.emit("error",u);e.on("error",r);const n=new KD;n.onError=r;let a=!1,s=!1;n.onValue=u=>{if(n.key==="vars"&&n.stack.length===2&&n.stack[1].key==="head")o.emit("variables",u.map(c=>this.dataFactory.variable(c))),a=!0;else if(n.key==="results"&&n.stack.length===1)s=!0;else if(typeof n.key=="number"&&n.stack.length===3&&n.stack[1].key==="results"&&n.stack[2].key==="bindings")try{o.push(this.parseJsonBindings(u))}catch(c){o.emit("error",c)}else n.key==="metadata"&&n.stack.length===1&&o.emit("metadata",u)};const o=e.on("end",u=>{!s&&!this.suppressMissingStreamResultsError?o.emit("error",new Error("No valid SPARQL query results were found.")):a||o.emit("variables",[])}).pipe(new ire.Transform({objectMode:!0,transform(u,c,l){n.write(u),l()}}));return o}parseJsonBindings(e){const r={};for(const n in e){const a=e[n];r[this.prefixVariableQuestionMark?"?"+n:n]=this.parseJsonValue(a)}return r}parseJsonValue(e){let r;switch(e.type){case"bnode":r=this.dataFactory.blankNode(e.value);break;case"literal":e["xml:lang"]?r=this.dataFactory.literal(e.value,e["xml:lang"]):e.datatype?r=this.dataFactory.literal(e.value,this.dataFactory.namedNode(e.datatype)):r=this.dataFactory.literal(e.value);break;case"typed-literal":r=this.dataFactory.literal(e.value,this.dataFactory.namedNode(e.datatype));break;case"triple":const n=e.value;if(!n||!n.subject||!n.predicate||!n.object)throw new Error("Invalid quoted triple: "+JSON.stringify(e));r=this.dataFactory.quad(this.parseJsonValue(n.subject),this.parseJsonValue(n.predicate),this.parseJsonValue(n.object));break;default:r=this.dataFactory.namedNode(e.value);break}return r}parseJsonBoolean(e){if("boolean"in e)return e.boolean;throw new Error("No valid ASK response was found.")}parseJsonBooleanStream(e){return new Promise((r,n)=>{const a=new KD;a.onError=n,a.onValue=s=>{a.key==="boolean"&&typeof s=="boolean"&&a.stack.length===1&&r(s)},e.on("error",n).on("data",s=>a.write(s)).on("end",()=>n(new Error("No valid ASK response was found.")))})}}S_.SparqlJsonParser=are;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(S_,t)})(Sx);Object.defineProperty(p_,"__esModule",{value:!0});p_.Converter=void 0;const sre=wF,ore=Sx;class Ps{constructor(e){e=e||{delimiter:"_"},e.prefixVariableQuestionMark=!1,this.delimiter=e.delimiter||"_",this.parser=new ore.SparqlJsonParser(e),this.materializeRdfJsTerms=e.materializeRdfJsTerms}static addValueToTree(e,r,n,a,s,o){const u=r[0],c=a?a+o+u:u,l=s.singularizeVariables[c];if(r.length===1)l?e[u]||(e[u]=n):(e[u]||(e[u]=[]),e[u].push(n));else{let d;l?(e[u]||(e[u]={}),d=e[u]):(e[u]||(e[u]=[{}]),d=e[u][0]),Ps.addValueToTree(d,r.slice(1),n,c,s,o)}}static mergeTrees(e,r){if(typeof e!=typeof r)throw new Error(`Two incompatible tree nodes were found: ${typeof e} and ${typeof r}`);if(Array.isArray(e)!==Array.isArray(r))throw new Error(`Two incompatible tree nodes were found: Array?${Array.isArray(e)} and Array?${Array.isArray(r)}`);if(typeof e=="object"&&typeof r=="object"){if(e.termType&&r.termType)return e.equals(r)?{valid:!0,result:e}:{valid:!1,result:e};if(Array.isArray(e)&&Array.isArray(r)){if(e.length>0){const n=[];let a=!1;for(const s of e){const o=Ps.mergeTrees(s,r[0]);o.valid?(a=!0,n.push(o.result)):n.push(s)}if(a)return{valid:!0,result:n}}return{valid:!0,result:e.concat(r)}}else{const n={};for(const a in r)n[a]=r[a];for(const a in e)if(n[a]){const s=Ps.mergeTrees(e[a],n[a]);if(s.valid)n[a]=s.result;else return{valid:!1,result:e}}else n[a]=e[a];return{valid:!0,result:n}}}else throw new Error(`Unmergable tree types: ${typeof e} and ${typeof r}`)}static materializeTree(e){if(e.termType)return(0,sre.getTermRaw)(e);if(Array.isArray(e))return e.map(Ps.materializeTree);{const r={};for(const n in e)r[n]=Ps.materializeTree(e[n]);return r}}sparqlJsonResultsToTree(e,r){return this.bindingsToTree(this.parser.parseJsonResults(e),r||{singularizeVariables:{}})}bindingsToTree(e,r){const n=r&&r.singularizeVariables[""];let a=n?{}:[];for(const s of e){const o=n?{}:[{}];for(const u in s){const c=u.split(this.delimiter),l=s[u];Ps.addValueToTree(n?o:o[0],c,l,"",r,this.delimiter)}a=Ps.mergeTrees(a,o).result}return this.materializeRdfJsTerms&&(a=Ps.materializeTree(a)),a}}p_.Converter=Ps;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(p_,t)})(vF);Object.defineProperty(Cp,"__esModule",{value:!0});Cp.ActorQueryResultSerializeTree=void 0;const ure=bs,cre=Ht,lre=et,dre=Kt,fre=vF;class Ex extends ure.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}static bindingsStreamToGraphQl(e,r,n){const a=lre.ActionContext.ensureActionContext(r);return new Promise((s,o)=>{const u=[],c=new fre.Converter(n),l={singularizeVariables:a.get(cre.KeysInitQuery.graphqlSingularizeVariables)||{}};e.on("error",o),e.on("data",d=>{u.push(Object.fromEntries([...d].map(([h,f])=>[h.value,f])))}),e.on("end",()=>{s(c.bindingsToTree(u,l))})})}async testHandleChecked(e){if(e.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(e,r){const n=new dre.Readable;n._read=()=>{};const a=e.bindingsStream;return a.on("error",s=>n.emit("error",s)),Ex.bindingsStreamToGraphQl(a,e.context,{materializeRdfJsTerms:!0}).then(s=>{n.push(JSON.stringify(s,null," ")),n.push(null)}).catch(s=>n.emit("error",s)),{data:n}}}Cp.ActorQueryResultSerializeTree=Ex;(function(t){var e=g&&g.__createBinding||(Object.create?function(s,o,u,c){c===void 0&&(c=u);var l=Object.getOwnPropertyDescriptor(o,u);(!l||("get"in l?!o.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return o[u]}}),Object.defineProperty(s,c,l)}:function(s,o,u,c){c===void 0&&(c=u),s[c]=o[u]}),r=g&&g.__exportStar||function(s,o){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(o,u)&&e(o,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindingsStreamToGraphQl=void 0;const n=Cp,{bindingsStreamToGraphQl:a}=n.ActorQueryResultSerializeTree;t.bindingsStreamToGraphQl=a,r(Cp,t)})(_F);var NF={},T_={},jF={},E_={};Object.defineProperty(E_,"__esModule",{value:!0});E_.ActorContextPreprocess=void 0;const hre=et;class pre extends hre.Actor{constructor(e){super(e)}}E_.ActorContextPreprocess=pre;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(E_,t)})(jF);Object.defineProperty(T_,"__esModule",{value:!0});T_.ActorContextPreprocessSourceToDestination=void 0;const yre=jF,o1=Ht;class bre extends yre.ActorContextPreprocess{constructor(e){super(e)}async test(e){return!0}async run(e){if(e.context.get(o1.KeysRdfResolveQuadPattern.sources)&&!e.context.get(o1.KeysRdfUpdateQuads.destination)){const r=e.context.get(o1.KeysRdfResolveQuadPattern.sources);if(r.length===1)return{context:e.context.set(o1.KeysRdfUpdateQuads.destination,r[0])}}return e}}T_.ActorContextPreprocessSourceToDestination=bre;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(T_,t)})(NF);var CF={},O_={};Object.defineProperty(O_,"__esModule",{value:!0});O_.MediatorAll=void 0;const mre=et;class gre extends mre.Mediator{constructor(e){super(e)}async mediate(e){const r=[];let n;try{n=this.publish(e)}catch{n=[]}for(const s of n)try{await s.reply,r.push(s.actor)}catch{}return(await Promise.all(r.map(s=>s.runObservable(e))))[0]}async mediateWith(){throw new Error("Unsupported operation: MediatorAll#mediateWith")}}O_.MediatorAll=gre;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(O_,t)})(CF);var C0={},F0={};Object.defineProperty(F0,"__esModule",{value:!0});F0.ActorHttpInvalidate=void 0;const _re=et;class vre extends _re.Actor{constructor(e){super(e)}}F0.ActorHttpInvalidate=vre;var A_={};Object.defineProperty(A_,"__esModule",{value:!0});A_.ActorHttpInvalidateListenable=void 0;const wre=F0;class Sre extends wre.ActorHttpInvalidate{constructor(e){super(e),this.invalidateListeners=[],this.invalidateListeners=[]}addInvalidateListener(e){this.invalidateListeners.push(e)}async test(e){return!0}async run(e){for(const r of this.invalidateListeners)r(e);return{}}}A_.ActorHttpInvalidateListenable=Sre;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(F0,t),r(A_,t)})(C0);var FF={},x_={},MF={},R_={};Object.defineProperty(R_,"__esModule",{value:!0});R_.ActorHashBindings=void 0;const Tre=et;class Ere extends Tre.Actor{constructor(e){super(e)}}R_.ActorHashBindings=Ere;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(R_,t)})(MF);var Ore=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((a,s,o)=>`${a}${o===0?"":","}${t(s===void 0||typeof s=="symbol"?null:s)}`,"")}]`:`{${Object.keys(e).sort().reduce((n,a)=>{if(e[a]===void 0||typeof e[a]=="symbol")return n;const s=n.length===0?"":",";return`${n}${s}${t(a)}:${t(e[a])}`},"")}}`};Object.defineProperty(x_,"__esModule",{value:!0});x_.ActorHashBindingsSha1=void 0;const Are=MF,xre=zm,JD=sr,Rre=Ore;class Ire extends Are.ActorHashBindings{async test(e){if(!e.allowHashCollisions)throw new Error(`Actor ${this.name} can not provide hash functions without hash collisions`);return!0}async run(e){return{hashFunction:r=>(0,xre.sha1)().update(Rre(Object.fromEntries([...r].map(([n,a])=>[(0,JD.termToString)(n),(0,JD.termToString)(a)])))).digest("hex"),hashCollisions:!0}}}x_.ActorHashBindingsSha1=Ire;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(x_,t)})(FF);var LF={},I_={},P_={},D_={};Object.defineProperty(D_,"__esModule",{value:!0});D_.ActorRdfSerialize=void 0;const Pre=El;class Dre extends Pre.ActorAbstractMediaTyped{constructor(e){super(e)}}D_.ActorRdfSerialize=Dre;var N_={};Object.defineProperty(N_,"__esModule",{value:!0});N_.ActorRdfSerializeFixedMediaTypes=void 0;const Nre=El;class jre extends Nre.ActorAbstractMediaTypedFixed{constructor(e){super(e)}async testHandleChecked(e){return!0}}N_.ActorRdfSerializeFixedMediaTypes=jre;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(D_,t),r(N_,t)})(P_);const ah="http://www.w3.org/1999/02/22-rdf-syntax-ns#",sh="http://www.w3.org/2001/XMLSchema#",uT="http://www.w3.org/2000/10/swap/",Yn={xsd:{decimal:`${sh}decimal`,boolean:`${sh}boolean`,double:`${sh}double`,integer:`${sh}integer`,string:`${sh}string`},rdf:{type:`${ah}type`,nil:`${ah}nil`,first:`${ah}first`,rest:`${ah}rest`,langString:`${ah}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${uT}reify#forSome`,forAll:`${uT}reify#forAll`},log:{implies:`${uT}log#implies`}};/*! queue-microtask. MIT License. Feross Aboukhadijeh */let YD;var Cre=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:g):t=>(YD||(YD=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0));const Fre=XV(Cre),{xsd:u1}=Yn,Mre=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,ZD={"\\":"\\","'":"'",'"':'"',n:` -`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Lre=/[\x00-\x20<>\\"\{\}\|\^\`]/,Bre={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},$re=/$0^/;class Ox{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const r in this)!(r in Bre)&&this[r]instanceof RegExp&&(this[r]=$re)}else this._n3Mode=e.n3!==!1;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,r){let n=this._input,a=n.length;for(;;){let u,c;for(;u=this._newline.exec(n);)this._comments&&(c=this._comment.exec(u[0]))&&s("comment",c[1],"",this._line,u[0].length),n=n.substr(u[0].length,n.length),a=n.length,this._line++;if(!u&&(u=this._whitespace.exec(n))&&(n=n.substr(u[0].length,n.length)),this._endOfFile.test(n))return r&&(this._comments&&(c=this._comment.exec(n))&&s("comment",c[1],"",this._line,n.length),n=null,s("eof","","",this._line,0)),this._input=n;const l=this._line,d=n[0];let h="",f="",p="",b=null,y=0,S=!1;switch(d){case"^":if(n.length<3)break;if(n[1]==="^"){if(this._previousMarker="^^",n=n.substr(2),n[0]!=="<"){S=!0;break}}else{this._n3Mode&&(y=1,h="^");break}case"<":if(b=this._unescapedIri.exec(n))h="IRI",f=b[1];else if(b=this._iri.exec(n)){if(f=this._unescape(b[1]),f===null||Lre.test(f))return o(this);h="IRI"}else n.length>1&&n[1]==="<"?(h="<<",y=2):this._n3Mode&&n.length>1&&n[1]==="="&&(h="inverse",y=2,f=">");break;case">":n.length>1&&n[1]===">"&&(h=">>",y=2);break;case"_":((b=this._blank.exec(n))||r&&(b=this._blank.exec(`${n} `)))&&(h="blank",p="_",f=b[1]);break;case'"':if(b=this._simpleQuotedString.exec(n))f=b[1];else if({value:f,matchLength:y}=this._parseLiteral(n),f===null)return o(this);(b!==null||y!==0)&&(h="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(b=this._simpleApostropheString.exec(n))f=b[1];else if({value:f,matchLength:y}=this._parseLiteral(n),f===null)return o(this);(b!==null||y!==0)&&(h="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(b=this._variable.exec(n))&&(h="var",f=b[0]);break;case"@":this._previousMarker==="literal"&&(b=this._langcode.exec(n))?(h="langcode",f=b[1]):(b=this._keyword.exec(n))&&(h=b[0]);break;case".":if(n.length===1?r:n[1]<"0"||n[1]>"9"){h=".",y=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(b=this._number.exec(n)||r&&(b=this._number.exec(`${n} `)))&&(h="literal",f=b[0],p=typeof b[1]=="string"?u1.double:typeof b[2]=="string"?u1.decimal:u1.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(b=this._sparqlKeyword.exec(n))?h=b[0].toUpperCase():S=!0;break;case"f":case"t":(b=this._boolean.exec(n))?(h="literal",f=b[0],p=u1.boolean):S=!0;break;case"a":(b=this._shortPredicates.exec(n))?(h="abbreviation",f="a"):S=!0;break;case"=":this._n3Mode&&n.length>1&&(h="abbreviation",n[1]!==">"?(y=1,f="="):(y=2,f=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(y=1,h=d);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(h="{|",y=2):(h=d,y=1));break;case"|":n.length>=2&&n[1]==="}"&&(h="|}",y=2);break;default:S=!0}if(S&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(b=this._prefix.exec(n))?(h="prefix",f=b[1]||""):((b=this._prefixed.exec(n))||r&&(b=this._prefixed.exec(`${n} `)))&&(h="prefixed",p=b[1]||"",f=this._unescape(b[2]))),this._previousMarker==="^^")switch(h){case"prefixed":h="type";break;case"IRI":h="typeIRI";break;default:h=""}if(!h)return r||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?o(this):this._input=n;const w=y||b[0].length,I=s(h,f,p,l,w);this.previousToken=I,this._previousMarker=h,n=n.substr(w,n.length)}function s(u,c,l,d,h){const f=n?a-n.length:a,p=f+h,b={type:u,value:c,prefix:l,line:d,start:f,end:p};return e(null,b),b}function o(u){e(u._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let r=!1;const n=e.replace(Mre,(a,s,o,u)=>{if(typeof s=="string")return String.fromCharCode(Number.parseInt(s,16));if(typeof o=="string"){let c=Number.parseInt(o,16);return c<=65535?String.fromCharCode(Number.parseInt(o,16)):String.fromCharCode(55296+((c-=65536)>>10),56320+(c&1023))}return u in ZD?ZD[u]:(r=!0,"")});return r?null:n}_parseLiteral(e){if(e.length>=3){const r=e.match(/^(?:"""|"|'''|'|)/)[0],n=r.length;let a=Math.max(this._literalClosingPos,n);for(;(a=e.indexOf(r,a))>0;){let s=0;for(;e[a-s-1]==="\\";)s++;if(s%2===0){const o=e.substring(n,a),u=o.split(/\r\n|\r|\n/).length-1,c=a+n;if(n===1&&u!==0||n===3&&this._lineMode)break;return this._line+=u,{value:this._unescape(o),matchLength:c}}a++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const r=new Error(`Unexpected "${e}" on line ${this._line}.`);return r.context={token:void 0,line:this._line,previousToken:this.previousToken},r}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,r){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof r=="function")Fre(()=>this._tokenizeToEnd(r,!0));else{const n=[];let a;if(this._tokenizeToEnd((s,o)=>s?a=s:n.push(o),!0),a)throw a;return n}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",n=>{this._input!==null&&n.length!==0&&(this._pendingBuffer&&(n=Buffer.concat([this._pendingBuffer,n]),this._pendingBuffer=null),n[n.length-1]&128?this._pendingBuffer=n:(typeof this._input>"u"?this._input=this._readStartingBom(typeof n=="string"?n:n.toString()):this._input+=n,this._tokenizeToEnd(r,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(r,!0)}),e.on("error",r)}}function Ure(t){return!!t&&t.termType==="NamedNode"}function qre(t){return!!t&&t.termType==="BlankNode"}function Vre(t){return!!t&&t.termType==="Literal"}function Hre(t){return!!t&&t.termType==="Variable"}function uf(t){return!!t&&t.termType==="DefaultGraph"}function kre(t){return uf(t.graph)}function Qre(t,e){return BF({"":t.value||t},e)("")}function BF(t,e){const r=Object.create(null);for(const a in t)n(a,t[a]);e=e||Uf;function n(a,s){if(typeof s=="string"){const o=Object.create(null);r[a]=u=>o[u]||(o[u]=e.namedNode(s+u))}else if(!(a in r))throw new Error(`Unknown prefix: ${a}`);return r[a]}return n}const $F=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:kre,isBlankNode:qre,isDefaultGraph:uf,isLiteral:Vre,isNamedNode:Ure,isVariable:Hre,prefix:Qre,prefixes:BF},Symbol.toStringTag,{value:"Module"})),{rdf:Gre,xsd:Qc}=Yn;let M0,zre=0;const bO={namedNode:Wre,blankNode:Xre,variable:Jre,literal:Kre,defaultGraph:Yre,quad:eN,triple:eN},Uf=bO;let oo=class UF{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof UF?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}};class j_ extends oo{get termType(){return"NamedNode"}}class Qu extends oo{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let r=e.lastIndexOf('"')+1;return r0?"INF":"-INF")))),r===""||r===Qc.string?new Qu(`"${t}"`):new Qu(`"${t}"^^${r}`)}function Jre(t){return new xx(t)}function Yre(){return M0}function eN(t,e,r,n){return new Fp(t,e,r,n)}let tN=0;class C_{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&qF(this,e.factory);const r=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(r),a=/trig/.test(r),s=/triple/.test(r),o=/quad/.test(r),u=this._n3Mode=/n3/.test(r),c=s||o;(this._supportsNamedGraphs=!(n||u))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||a||s||u),this._supportsRDFStar=r===""||/star|\*$/.test(r),c&&(this._resolveRelativeIRI=l=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new Ox({lineMode:c,n3:u}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){tN=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const r=e.indexOf("#");r>=0&&(e=e.substr(0,r)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}}_saveContext(e,r,n,a,s){const o=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:a,object:s,graph:r,inverse:o?this._inversePredicate:!1,blankPrefix:o?this._prefixes._:"",quantified:o?this._quantified:null}),o&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,r){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${r.type}`,r);this._subject=n.subject,this._predicate=n.predicate,this._object=n.object,this._graph=n.graph,this._n3Mode&&(this._inversePredicate=n.inverse,this._prefixes._=n.blankPrefix,this._quantified=n.quantified)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(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(e)}}_readEntity(e,r){let n;switch(e.type){case"IRI":case"typeIRI":const a=this._resolveIRI(e.value);if(a===null)return this._error("Invalid IRI",e);n=this._namedNode(a);break;case"type":case"prefixed":const s=this._prefixes[e.prefix];if(s===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._namedNode(s+e.value);break;case"blank":n=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!r&&this._n3Mode&&n.id in this._quantified&&(n=this._quantified[n.id]),n}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const r=e.type;switch(r){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${r}`,e):(this._subject=null,r==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return e.type==="]"?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const r=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:r?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let r=null,n=null,a=this._readListItem;const s=this._subject,o=this._contextStack,u=o[o.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._blankNode(),this.RDF_FIRST,this._subject=r=this._blankNode()),a=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),o.length!==0&&o[o.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(a=this._readPredicate,this._subject===this.RDF_NIL)return a}else if(a=this._getContextEndReader(),this._object===this.RDF_NIL)return a;n=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,a=this._readListItemDataTypeOrLang):(r=this._literal(e.value,this._namedNode(e.prefix)),a=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((r=this._readEntity(e))===void 0)return}if(n===null&&(this._subject=n=this._blankNode()),s===null?u.predicate===null?u.subject=n:u.object=n:this._emit(s,this.RDF_REST,n,this._graph),r!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,n,this.RDF_FIRST,r),this._subject=r,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,r,this._graph)}return a}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let r=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(n===void 0)return;r=this._literal(this._literalValue,n),e=null;break;case"langcode":r=this._literal(this._literalValue,e.value),e=null;break}return{token:e,literal:r}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,r){const n=this._completeLiteral(e);if(n)return this._object=n.literal,r&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),n.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(n.token))}_readFormulaTail(e){return e.type!=="}"?this._readPunctuation(e):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let r,n=this._graph;const a=this._subject,s=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,r=this._contextStack.length?this._readSubject:this._readInTopContext,s&&(this._inversePredicate=!1);break;case";":r=this._readPredicate;break;case",":r=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const o=this._predicate,u=this._object;this._subject=this._quad(a,o,u,this.DEFAULTGRAPH),r=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,r=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(n=this._readEntity(e))!==void 0){r=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(a!==null){const o=this._predicate,u=this._object;s?this._emit(u,o,a,n):this._emit(a,o,u,n)}return r}_readBlankNodePunctuation(e){let r;switch(e.type){case";":r=this._readPredicate;break;case",":r=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),r}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const r=this._readEntity(e);return this._prefixes[this._prefix]=r.value,this._prefixCallback(this._prefix,r),this._readDeclarationPunctuation}_readBaseIRI(e){const r=e.type==="IRI"&&this._resolveIRI(e.value);return r?(this._setBase(r),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let r;switch(e.type){case"IRI":case"prefixed":if((r=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,r,this.QUANTIFIERS_GRAPH)):this._quantified[r.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const r=this._contextStack,n=r.length&&r[r.length-1];if(n&&n.type==="item"){const a=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,a,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let r,n;const a=this._blankNode();if((n=this._readEntity(e))!==void 0)return this._predicate===null?(r=this._subject,this._subject=a):(r=this._object,this._object=a),this._emit(r,n,a,this._graph),this._readPath}_readBackwardPath(e){const r=this._blankNode();let n,a;if((n=this._readEntity(e))!==void 0)return this._predicate===null?(a=this._subject,this._subject=r):(a=this._object,this._object=r),this._emit(r,n,a,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return e.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(e))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);const r=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=r,this._readPredicate):(this._object=r,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,r,n,a){this._callback(null,this._quad(e,r,n,a||this.DEFAULTGRAPH))}_error(e,r){const n=new Error(`${e} on line ${r.line}.`);n.context={token:r,line:r.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=cT}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return(e[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const r=e.length;let n="",a=-1,s=-1,o=0,u="/";for(;a=s&&(n=n.substr(0,o)),u!=="/")return`${n}/${e.substr(a+1)}`;o=a+1}}}u=e[++a]}return n+e.substring(o)}parse(e,r,n){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${tN++}_`,this._prefixCallback=n||cT,this._inversePredicate=!1,this._quantified=Object.create(null),!r){const a=[];let s;if(this._callback=(o,u)=>{o?s=o:u&&a.push(u)},this._lexer.tokenize(e).every(o=>this._readCallback=this._readCallback(o)),s)throw s;return a}this._callback=r,this._lexer.tokenize(e,(a,s)=>{a!==null?(this._callback(a),this._callback=cT):this._readCallback&&(this._readCallback=this._readCallback(s))})}}function cT(){}function qF(t,e){const r=e.namedNode;t._namedNode=r,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=r(Yn.rdf.first),t.RDF_REST=r(Yn.rdf.rest),t.RDF_NIL=r(Yn.rdf.nil),t.N3_FORALL=r(Yn.r.forAll),t.N3_FORSOME=r(Yn.r.forSome),t.ABBREVIATIONS={a:r(Yn.rdf.type),"=":r(Yn.owl.sameAs),">":r(Yn.log.implies)},t.QUANTIFIERS_GRAPH=r("urn:n3:quantifiers")}qF(C_.prototype,Uf);const oh=Uf.defaultGraph(),{rdf:Zre,xsd:Yl}=Yn,rN=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,nN=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,ene={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class uh extends oo{equals(e){return e===this}}class Ix{constructor(e,r){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(r=e,e=null),r=r||{},this._lists=r.lists,e)this._outputStream=e,this._endStream=r.end===void 0?!0:!!r.end;else{let n="";this._outputStream={write(a,s,o){n+=a,o&&o()},end:a=>{a&&a(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(r.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=oh,this._prefixIRIs=Object.create(null),r.prefixes&&this.addPrefixes(r.prefixes),r.baseIRI&&(this._baseMatcher=new RegExp(`^${aN(r.baseIRI)}${r.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=r.baseIRI.length))}get _inDefaultGraph(){return oh.equals(this._graph)}_write(e,r){this._outputStream.write(e,"utf8",r)}_writeQuad(e,r,n,a,s){try{a.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. -`:` -} -`)+(oh.equals(a)?"":`${this._encodeIriOrBlank(a)} { -`)),this._graph=a,this._subject=null),e.equals(this._subject)?r.equals(this._predicate)?this._write(`, ${this._encodeObject(n)}`,s):this._write(`; - ${this._encodePredicate(this._predicate=r)} ${this._encodeObject(n)}`,s):this._write(`${(this._subject===null?"":`. -`)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=r)} ${this._encodeObject(n)}`,s)}catch(o){s&&s(o)}}_writeQuadLine(e,r,n,a,s){delete this._prefixMatch,this._write(this.quadToString(e,r,n,a),s)}quadToString(e,r,n,a){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(r)} ${this._encodeObject(n)}${a&&a.value?` ${this._encodeIriOrBlank(a)} . -`:` . -`}`}quadsToString(e){return e.map(r=>this.quadToString(r.subject,r.predicate,r.object,r.graph)).join("")}_encodeSubject(e){return e.termType==="Quad"?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if(e.termType!=="NamedNode")return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let r=e.value;this._baseMatcher&&this._baseMatcher.test(r)&&(r=r.substr(this._baseLength)),rN.test(r)&&(r=r.replace(nN,iN));const n=this._prefixRegex.exec(r);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:r:`<${r}>`}_encodeLiteral(e){let r=e.value;if(rN.test(r)&&(r=r.replace(nN,iN)),e.language)return`"${r}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Yl.string)return`"${r}"`}else switch(e.datatype.value){case Yl.string:return`"${r}"`;case Yl.boolean:if(r==="true"||r==="false")return r;break;case Yl.integer:if(/^[+-]?\d+$/.test(r))return r;break;case Yl.decimal:if(/^[+-]?\d*\.\d+$/.test(r))return r;break;case Yl.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(r))return r;break}return`"${r}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===Zre.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:r,object:n,graph:a}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${uf(a)?"":` ${this._encodeIriOrBlank(a)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,r,n,a,s){n===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,r):typeof a=="function"?this._writeQuad(e,r,n,oh,a):this._writeQuad(e,r,n,a||oh,s)}addQuads(e){for(let r=0;r. -`)}if(n){let a="",s="";for(const o in this._prefixIRIs)a+=a?`|${o}`:o,s+=(s?"|":"")+this._prefixIRIs[o];a=aN(a),this._prefixRegex=new RegExp(`^(?:${s})[^/]*$|^(${a})([_a-zA-Z][\\-_a-zA-Z0-9]*)$`)}this._write(n?` -`:"",r)}blank(e,r){let n=e,a,s;switch(e===void 0?n=[]:e.termType?n=[{predicate:e,object:r}]:"length"in e||(n=[e]),s=n.length){case 0:return new uh("[]");case 1:if(a=n[0],!(a.object instanceof uh))return new uh(`[ ${this._encodePredicate(a.predicate)} ${this._encodeObject(a.object)} ]`);default:let o="[";for(let u=0;u{r=null,e(n,a)});if(this._endStream)try{return this._outputStream.end(r)}catch{}r&&r()}}function iN(t){let e=ene[t];return e===void 0&&(t.length===1?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function aN(t){return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}class Px{constructor(e,r){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,!r&&e&&!e[0]&&(r=e,e=null),r=r||{},this._factory=r.factory||Uf,e&&this.addQuads(e)}_termFromId(e,r){if(e[0]==="."){const n=this._entities,a=e.split(".");return this._factory.quad(this._termFromId(n[a[1]]),this._termFromId(n[a[2]]),this._termFromId(n[a[3]]),a[4]&&this._termFromId(n[a[4]]))}return Jc(e,r)}_termToNumericId(e){if(e.termType==="Quad"){const r=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),a=this._termToNumericId(e.object);let s;return r&&n&&a&&(uf(e.graph)||(s=this._termToNumericId(e.graph)))&&this._ids[s?`.${r}.${n}.${a}.${s}`:`.${r}.${n}.${a}`]}return this._ids[Oi(e)]}_termToNewNumericId(e){const r=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${uf(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:Oi(e);return this._ids[r]||(this._ids[this._entities[++this._id]=r]=this._id)}get size(){let e=this._size;if(e!==null)return e;e=0;const r=this._graphs;let n,a;for(const s in r)for(const o in n=r[s].subjects)for(const u in a=n[o])e+=Object.keys(a[u]).length;return this._size=e}_addToIndex(e,r,n,a){const s=e[r]||(e[r]={}),o=s[n]||(s[n]={}),u=a in o;return u||(o[a]=null),!u}_removeFromIndex(e,r,n,a){const s=e[r],o=s[n];delete o[a];for(const u in o)return;delete s[n];for(const u in s)return;delete e[r]}*_findInIndex(e,r,n,a,s,o,u,c){let l,d,h;const f=this._entities,p=this._termFromId(c,this._factory),b={subject:null,predicate:null,object:null};r&&((l=e,e={})[r]=l[r]);for(const y in e)if(d=e[y]){b[s]=this._termFromId(f[y],this._factory),n&&((l=d,d={})[n]=l[n]);for(const S in d)if(h=d[S]){b[o]=this._termFromId(f[S],this._factory);const w=a?a in h?[a]:[]:Object.keys(h);for(let I=0;I{n in r||(r[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Oi(a);let s=this._graphs[a];s||(s=this._graphs[a]={subjects:{},predicates:{},objects:{}},Object.freeze(s)),e=this._termToNewNumericId(e),r=this._termToNewNumericId(r),n=this._termToNewNumericId(n);const o=this._addToIndex(s.subjects,e,r,n);return this._addToIndex(s.predicates,r,n,e),this._addToIndex(s.objects,n,e,r),this._size=null,o}addQuads(e){for(let r=0;r{this.addQuad(r)}),e}removeQuad(e,r,n,a){r||(a=e.graph,n=e.object,r=e.predicate,e=e.subject),a=Oi(a);const s=this._graphs;let o,u,c;if(!(e=e&&this._termToNumericId(e))||!(r=r&&this._termToNumericId(r))||!(n=n&&this._termToNumericId(n))||!(o=s[a])||!(u=o.subjects[e])||!(c=u[r])||!(n in c))return!1;this._removeFromIndex(o.subjects,e,r,n),this._removeFromIndex(o.predicates,r,n,e),this._removeFromIndex(o.objects,n,e,r),this._size!==null&&this._size--;for(e in o.subjects)return!0;return delete s[a],!0}removeQuads(e){for(let r=0;r{this.removeQuad(r)}),e}removeMatches(e,r,n,a){const s=new Kt.Readable({objectMode:!0});return s._read=()=>{for(const o of this.readQuads(e,r,n,a))s.push(o);s.push(null)},this.remove(s)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,r,n,a){return[...this.readQuads(e,r,n,a)]}*readQuads(e,r,n,a){a=a&&Oi(a);const s=this._getGraphs(a);let o,u,c,l;if(!(e&&!(u=this._termToNumericId(e))||r&&!(c=this._termToNumericId(r))||n&&!(l=this._termToNumericId(n))))for(const d in s)(o=s[d])&&(u?l?yield*this._findInIndex(o.objects,l,u,c,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,u,c,null,"subject","predicate","object",d):c?yield*this._findInIndex(o.predicates,c,l,null,"predicate","object","subject",d):l?yield*this._findInIndex(o.objects,l,null,null,"object","subject","predicate",d):yield*this._findInIndex(o.subjects,null,null,null,"subject","predicate","object",d))}match(e,r,n,a){return new Dx(this,e,r,n,a)}countQuads(e,r,n,a){a=a&&Oi(a);const s=this._getGraphs(a);let o=0,u,c,l,d;if(e&&!(c=this._termToNumericId(e))||r&&!(l=this._termToNumericId(r))||n&&!(d=this._termToNumericId(n)))return 0;for(const h in s)(u=s[h])&&(e?n?o+=this._countInIndex(u.objects,d,c,l):o+=this._countInIndex(u.subjects,c,l,d):r?o+=this._countInIndex(u.predicates,l,d,c):o+=this._countInIndex(u.objects,d,c,l));return o}forEach(e,r,n,a,s){this.some(o=>(e(o),!1),r,n,a,s)}every(e,r,n,a,s){let o=!1;const u=!this.some(c=>(o=!0,!e(c)),r,n,a,s);return o&&u}some(e,r,n,a,s){for(const o of this.readQuads(r,n,a,s))if(e(o))return!0;return!1}getSubjects(e,r,n){const a=[];return this.forSubjects(s=>{a.push(s)},e,r,n),a}forSubjects(e,r,n,a){a=a&&Oi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.predicates,u,c,e):this._loopByKey1(o.subjects,u,e):c?this._loopByKey0(o.objects,c,e):this._loop(o.subjects,e))}getPredicates(e,r,n){const a=[];return this.forPredicates(s=>{a.push(s)},e,r,n),a}forPredicates(e,r,n,a){a=a&&Oi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.objects,c,u,e):this._loopByKey0(o.subjects,u,e):c?this._loopByKey1(o.predicates,c,e):this._loop(o.predicates,e))}getObjects(e,r,n){const a=[];return this.forObjects(s=>{a.push(s)},e,r,n),a}forObjects(e,r,n,a){a=a&&Oi(a);const s=this._getGraphs(a);let o,u,c;if(e=this._uniqueEntities(e),!(r&&!(u=this._termToNumericId(r))||n&&!(c=this._termToNumericId(n))))for(a in s)(o=s[a])&&(u?c?this._loopBy2Keys(o.subjects,u,c,e):this._loopByKey1(o.objects,u,e):c?this._loopByKey0(o.predicates,c,e):this._loop(o.objects,e))}getGraphs(e,r,n){const a=[];return this.forGraphs(s=>{a.push(s)},e,r,n),a}forGraphs(e,r,n,a){for(const s in this._graphs)this.some(o=>(e(o.graph),!0),r,n,a,s)}createBlankNode(e){let r,n;if(e)for(r=e=`_:${e}`,n=1;this._ids[r];)r=e+n++;else do r=`_:b${this._blankNodeIndex++}`;while(this._ids[r]);return this._ids[r]=++this._id,this._entities[this._id]=r,this._factory.blankNode(r.substr(2))}extractLists({remove:e=!1,ignoreErrors:r=!1}={}){const n={},a=r?()=>!0:(u,c)=>{throw new Error(`${u.value} ${c}`)},s=this.getQuads(null,Yn.rdf.rest,Yn.rdf.nil,null),o=e?[...s]:[];return s.forEach(u=>{const c=[];let l=!1,d,h;const f=u.graph;let p=u.subject;for(;p&&!l;){const b=this.getQuads(null,null,p,null),y=this.getQuads(p,null,null,null);let S,w=null,I=null,O=null;for(let T=0;T{switch(s){case"data":n=o;break;case"end":a=o;break}}},(s,o)=>{s&&this.emit("error",s)||o&&this.push(o)},(s,o)=>{this.emit("prefix",s,o)}),this._transform=(s,o,u)=>{n(s),u()},this._flush=s=>{a(),s()}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),this}}class HF extends Kt.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const r=this._writer=new Ix({write:(n,a,s)=>{this.push(n),s&&s()},end:n=>{this.push(null),n&&n()}},e);this._transform=(n,a,s)=>{r.addQuad(n,s)},this._flush=n=>{r.end(n)}}import(e){return e.on("data",r=>{this.write(r)}),e.on("end",()=>{this.end()}),e.on("error",r=>{this.emit("error",r)}),e.on("prefix",(r,n)=>{this._writer.addPrefix(r,n)}),this}}const rne={Lexer:Ox,Parser:C_,Writer:Ix,Store:Px,StreamParser:VF,StreamWriter:HF,Util:$F,DataFactory:Uf,Term:oo,NamedNode:j_,Literal:Qu,BlankNode:Ax,Variable:xx,DefaultGraph:Rx,Quad:Fp,Triple:Fp,termFromId:Jc,termToId:Oi},nne=Object.freeze(Object.defineProperty({__proto__:null,BlankNode:Ax,DataFactory:Uf,DefaultGraph:Rx,Lexer:Ox,Literal:Qu,NamedNode:j_,Parser:C_,Quad:Fp,Store:Px,StreamParser:VF,StreamWriter:HF,Term:oo,Triple:Fp,Util:$F,Variable:xx,Writer:Ix,default:rne,termFromId:Jc,termToId:Oi},Symbol.toStringTag,{value:"Module"})),au=iA(nne);Object.defineProperty(I_,"__esModule",{value:!0});I_.ActorRdfSerializeN3=void 0;const ine=P_,ane=au;class sne extends ine.ActorRdfSerializeFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){const a=new ane.StreamWriter({format:r});let s;return"pipe"in e.quadStream?(e.quadStream.on("error",o=>a.emit("error",o)),s=e.quadStream.pipe(a)):s=a.import(e.quadStream),{data:s,triples:r==="text/turtle"||r==="application/n-triples"||r==="text/n3"}}}I_.ActorRdfSerializeN3=sne;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(I_,t)})(LF);var kF={},F_={},QF={},M_={},L_={};Object.defineProperty(L_,"__esModule",{value:!0});L_.SeparatorType=void 0;class tn{constructor(e){this.label=e}}L_.SeparatorType=tn;tn.COMMA=new tn(",");tn.OBJECT_START=new tn("{");tn.OBJECT_END=new tn("}");tn.OBJECT_END_COMMA=new tn("},");tn.ARRAY_START=new tn("[");tn.ARRAY_END=new tn("]");tn.ARRAY_END_COMMA=new tn("],");tn.GRAPH_FIELD_NONCOMPACT=new tn('"@graph": [');tn.GRAPH_FIELD_COMPACT=new tn('"@graph":[');tn.CONTEXT_FIELD=new tn('"@context":');var L0={};Object.defineProperty(L0,"__esModule",{value:!0});L0.Util=void 0;const sN=vn;let ro=class gu{static termToValue(e,r,n={compactIds:!1,useNativeTypes:!1}){switch(e.termType){case"NamedNode":const a=r.compactIri(e.value,n.vocab);return n.compactIds?a:{"@id":a};case"DefaultGraph":return n.compactIds?e.value:{"@id":e.value};case"BlankNode":const s=`_:${e.value}`;return n.compactIds?s:{"@id":s};case"Literal":if(e.datatype.value===gu.RDF_JSON){let c;try{c=JSON.parse(e.value)}catch(l){throw new sN.ErrorCoded("Invalid JSON literal: "+l.message,sN.ERROR_CODES.INVALID_JSON_LITERAL)}return{"@value":c,"@type":"@json"}}if(n.rdfDirection==="i18n-datatype"&&e.datatype.value.startsWith(gu.I18N)){const[c,l]=e.datatype.value.substr(gu.I18N.length,e.datatype.value.length).split("_");return Object.assign(Object.assign({"@value":e.value},c?{"@language":c}:{}),l?{"@direction":l}:{})}const o=e.datatype.value===gu.XSD_STRING,u={"@value":!o&&n.useNativeTypes?gu.stringToNativeType(e.value,e.datatype.value):e.value};return e.language?Object.assign(Object.assign({},u),{"@language":e.language}):!o&&typeof u["@value"]=="string"?Object.assign(Object.assign({},u),{"@type":e.datatype.value}):u}}static stringToNativeType(e,r){if(r.startsWith(gu.XSD))switch(r.substr(gu.XSD.length)){case"boolean":if(e==="true")return!0;if(e==="false")return!1;throw new Error(`Invalid xsd:boolean value '${e}'`);case"integer":case"number":case"int":case"byte":case"long":const a=parseInt(e,10);if(isNaN(a))throw new Error(`Invalid xsd:integer value '${e}'`);return a;case"float":case"double":const s=parseFloat(e);if(isNaN(s))throw new Error(`Invalid xsd:float value '${e}'`);return s}return e}};L0.Util=ro;ro.XSD="http://www.w3.org/2001/XMLSchema#";ro.XSD_STRING=ro.XSD+"string";ro.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";ro.RDF_TYPE=ro.RDF+"type";ro.RDF_JSON=ro.RDF+"JSON";ro.I18N="https://www.w3.org/ns/i18n#";Object.defineProperty(M_,"__esModule",{value:!0});M_.JsonLdSerializer=void 0;const oN=vn,zr=L_,lT=L0,uN=Kt;class Nx extends uN.Transform{constructor(e={}){super({objectMode:!0}),this.indentation=0,this.options=e,this.options.baseIRI&&!this.options.context&&(this.options.context={"@base":this.options.baseIRI}),this.options.context?(this.originalContext=this.options.context,this.context=new oN.ContextParser().parse(this.options.context,{baseIRI:this.options.baseIRI})):this.context=Promise.resolve(new oN.JsonLdContextNormalized({}))}import(e){const r=new uN.PassThrough({objectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new Nx(this.options));return n}_transform(e,r,n){this.context.then(a=>{this.transformQuad(e,a),n()}).catch(n)}async list(e){const r=await this.context;return{"@list":e.map(n=>lT.Util.termToValue(n,r,this.options))}}_flush(e){return this.opened||this.pushDocumentStart(),this.lastPredicate&&this.endPredicate(),this.lastSubject&&this.endSubject(),this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.endGraph(),this.endDocument(),e(null,null)}transformQuad(e,r){this.opened||this.pushDocumentStart();const n=this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.lastGraph.equals(e.subject);if(!n&&(!this.lastGraph||!e.graph.equals(this.lastGraph))){let a=e.graph.termType!=="DefaultGraph"&&this.lastSubject&&this.lastSubject.equals(e.graph);this.lastGraph&&(this.lastGraph.termType!=="DefaultGraph"?(this.endPredicate(),this.endSubject(),this.endGraph(!0),a=!1):a?(this.endPredicate(!0),this.lastSubject=null):(this.endPredicate(),this.endSubject(!0))),e.graph.termType!=="DefaultGraph"&&(a||this.pushId(e.graph,!0,r),this.pushSeparator(this.options.space?zr.SeparatorType.GRAPH_FIELD_NONCOMPACT:zr.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++),this.lastGraph=e.graph}(!this.lastSubject||!e.subject.equals(this.lastSubject))&&(n?(this.endPredicate(),this.endSubject(),this.indentation--,this.pushSeparator(zr.SeparatorType.ARRAY_END_COMMA),this.lastGraph=e.graph):(this.lastSubject&&(this.endPredicate(),this.endSubject(!0)),this.pushId(e.subject,!0,r)),this.lastSubject=e.subject),(!this.lastPredicate||!e.predicate.equals(this.lastPredicate))&&(this.lastPredicate&&this.endPredicate(!0),this.pushPredicate(e.predicate,r)),this.pushObject(e.object,r)}pushDocumentStart(){this.opened=!0,this.originalContext&&!this.options.excludeContext?(this.pushSeparator(zr.SeparatorType.OBJECT_START),this.indentation++,this.pushSeparator(zr.SeparatorType.CONTEXT_FIELD),this.pushIndented(JSON.stringify(this.originalContext,null,this.options.space)+","),this.pushSeparator(this.options.space?zr.SeparatorType.GRAPH_FIELD_NONCOMPACT:zr.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++):(this.pushSeparator(zr.SeparatorType.ARRAY_START),this.indentation++)}pushId(e,r,n){if(e.termType==="Quad")this.pushNestedQuad(e,!0,n);else{const a=e.termType==="BlankNode"?"_:"+e.value:n.compactIri(e.value,!1);r?this.pushSeparator(zr.SeparatorType.OBJECT_START):(this.push(zr.SeparatorType.OBJECT_START.label),this.options.space&&this.push(` -`)),this.indentation++,this.pushIndented(this.options.space?`"@id": "${a}",`:`"@id":"${a}",`)}}pushPredicate(e,r){let n=e.value;!this.options.useRdfType&&n===lT.Util.RDF_TYPE&&(n="@type",this.objectOptions=Object.assign(Object.assign({},this.options),{compactIds:!0,vocab:!0}));const a=r.compactIri(n,!0);this.pushIndented(this.options.space?`"${a}": [`:`"${a}":[`),this.indentation++,this.lastPredicate=e}pushObject(e,r){if(this.hadObjectForPredicate?this.pushSeparator(zr.SeparatorType.COMMA):this.hadObjectForPredicate=!0,e.termType==="Quad"){const a=this.lastSubject,s=this.lastPredicate;this.hadObjectForPredicate=!1,this.pushNestedQuad(e,!1,r),this.endSubject(!1),this.hadObjectForPredicate=!0,this.lastPredicate=s,this.lastSubject=a;return}let n;try{e["@list"]?n=e:n=lT.Util.termToValue(e,r,this.objectOptions||this.options)}catch(a){return this.emit("error",a)}this.pushIndented(JSON.stringify(n,null,this.options.space))}pushNestedQuad(e,r,n){this.pushSeparator(zr.SeparatorType.OBJECT_START),this.indentation++,this.pushIndented(this.options.space?'"@id": ':'"@id":',!1),e.graph.termType!=="DefaultGraph"&&this.emit("error",new Error(`Found a nested quad with the non-default graph: ${e.graph.value}`)),this.pushId(e.subject,!1,n),this.pushPredicate(e.predicate,n),this.pushObject(e.object,n),this.endPredicate(!1),this.endSubject(r)}endDocument(){this.opened=!1,this.originalContext&&!this.options.excludeContext?(this.indentation--,this.pushSeparator(zr.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(zr.SeparatorType.OBJECT_END)):(this.indentation--,this.pushSeparator(zr.SeparatorType.ARRAY_END))}endPredicate(e){this.indentation--,this.pushSeparator(e?zr.SeparatorType.ARRAY_END_COMMA:zr.SeparatorType.ARRAY_END),this.hadObjectForPredicate=!1,this.objectOptions=null,this.lastPredicate=null}endSubject(e){this.indentation--,this.pushSeparator(e?zr.SeparatorType.OBJECT_END_COMMA:zr.SeparatorType.OBJECT_END),this.lastSubject=null}endGraph(e){this.indentation--,this.pushSeparator(zr.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(e?zr.SeparatorType.OBJECT_END_COMMA:zr.SeparatorType.OBJECT_END),this.lastGraph=null}pushSeparator(e){this.pushIndented(e.label)}pushIndented(e,r=!0){const n=this.getIndentPrefix(),a=e.split(` -`).map(s=>n+s).join(` -`);this.push(a),this.options.space&&r&&this.push(` -`)}getIndentPrefix(){return this.options.space?this.options.space.repeat(this.indentation):""}}M_.JsonLdSerializer=Nx;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s),Object.defineProperty(n,o,{enumerable:!0,get:function(){return a[s]}})}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(M_,t),r(L0,t)})(QF);Object.defineProperty(F_,"__esModule",{value:!0});F_.ActorRdfSerializeJsonLd=void 0;const one=P_,une=QF;class cne extends one.ActorRdfSerializeFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){const a=new une.JsonLdSerializer({space:" ".repeat(this.jsonStringifyIndentSpaces)});let s;return"pipe"in e.quadStream?(e.quadStream.on("error",o=>a.emit("error",o)),s=e.quadStream.pipe(a)):s=a.import(e.quadStream),{data:s}}}F_.ActorRdfSerializeJsonLd=cne;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(F_,t)})(kF);var GF={},B_={},jx={};Object.defineProperty(jx,"__esModule",{value:!0});function lne(t,e){return new Promise((r,n)=>{t.on("end",()=>r(e)),t.on("error",n)})}function dne(t){const e=[];return lne(t.on("data",r=>e.push(r)),e)}jx.default=dne;var $_={},Cx={},zF={},U_={};Object.defineProperty(U_,"__esModule",{value:!0});U_.fragment=void 0;function fne(t){let e=t;(e.endsWith("/")||e.endsWith("#"))&&(e=e.slice(0,e.length-1));const r=[];e.lastIndexOf("/")>0&&r.push(e.lastIndexOf("/")),e.lastIndexOf("#")>0&&r.push(e.lastIndexOf("#"));const n=Math.max(...r);return e.slice(n+1)}function hne(t){var e;const r=(e=t.split(/[^a-z0-9]+/ig).filter(n=>n!=="").map(n=>n[0].toUpperCase()+n.slice(1)).join("").match(/[a-z][a-z0-9]+/ig))===null||e===void 0?void 0:e[0];return typeof r>"u"?void 0:r[0].toLowerCase()+r.slice(1)}function pne(t){let e=fne(t);return e=e?hne(e):void 0,e||"v"}U_.fragment=pne;var mO={},q_={},ec={},gO={exports:{}};(function(t,e){var r=typeof self<"u"?self:g,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(o){var u={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function c(M){return M&&DataView.prototype.isPrototypeOf(M)}if(u.arrayBuffer)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(M){return M&&l.indexOf(Object.prototype.toString.call(M))>-1};function h(M){if(typeof M!="string"&&(M=String(M)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(M))throw new TypeError("Invalid character in header field name");return M.toLowerCase()}function f(M){return typeof M!="string"&&(M=String(M)),M}function p(M){var C={next:function(){var V=M.shift();return{done:V===void 0,value:V}}};return u.iterable&&(C[Symbol.iterator]=function(){return C}),C}function b(M){this.map={},M instanceof b?M.forEach(function(C,V){this.append(V,C)},this):Array.isArray(M)?M.forEach(function(C){this.append(C[0],C[1])},this):M&&Object.getOwnPropertyNames(M).forEach(function(C){this.append(C,M[C])},this)}b.prototype.append=function(M,C){M=h(M),C=f(C);var V=this.map[M];this.map[M]=V?V+", "+C:C},b.prototype.delete=function(M){delete this.map[h(M)]},b.prototype.get=function(M){return M=h(M),this.has(M)?this.map[M]:null},b.prototype.has=function(M){return this.map.hasOwnProperty(h(M))},b.prototype.set=function(M,C){this.map[h(M)]=f(C)},b.prototype.forEach=function(M,C){for(var V in this.map)this.map.hasOwnProperty(V)&&M.call(C,this.map[V],V,this)},b.prototype.keys=function(){var M=[];return this.forEach(function(C,V){M.push(V)}),p(M)},b.prototype.values=function(){var M=[];return this.forEach(function(C){M.push(C)}),p(M)},b.prototype.entries=function(){var M=[];return this.forEach(function(C,V){M.push([V,C])}),p(M)},u.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function y(M){if(M.bodyUsed)return Promise.reject(new TypeError("Already read"));M.bodyUsed=!0}function S(M){return new Promise(function(C,V){M.onload=function(){C(M.result)},M.onerror=function(){V(M.error)}})}function w(M){var C=new FileReader,V=S(C);return C.readAsArrayBuffer(M),V}function I(M){var C=new FileReader,V=S(C);return C.readAsText(M),V}function O(M){for(var C=new Uint8Array(M),V=new Array(C.length),ie=0;ie-1?C:M}function Q(M,C){C=C||{};var V=C.body;if(M instanceof Q){if(M.bodyUsed)throw new TypeError("Already read");this.url=M.url,this.credentials=M.credentials,C.headers||(this.headers=new b(M.headers)),this.method=M.method,this.mode=M.mode,this.signal=M.signal,!V&&M._bodyInit!=null&&(V=M._bodyInit,M.bodyUsed=!0)}else this.url=String(M);if(this.credentials=C.credentials||this.credentials||"same-origin",(C.headers||!this.headers)&&(this.headers=new b(C.headers)),this.method=B(C.method||this.method||"GET"),this.mode=C.mode||this.mode||null,this.signal=C.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&V)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(V)}Q.prototype.clone=function(){return new Q(this,{body:this._bodyInit})};function N(M){var C=new FormData;return M.trim().split("&").forEach(function(V){if(V){var ie=V.split("="),ne=ie.shift().replace(/\+/g," "),fe=ie.join("=").replace(/\+/g," ");C.append(decodeURIComponent(ne),decodeURIComponent(fe))}}),C}function D(M){var C=new b,V=M.replace(/\r?\n[\t ]+/g," ");return V.split(/\r?\n/).forEach(function(ie){var ne=ie.split(":"),fe=ne.shift().trim();if(fe){var _e=ne.join(":").trim();C.append(fe,_e)}}),C}x.call(Q.prototype);function F(M,C){C||(C={}),this.type="default",this.status=C.status===void 0?200:C.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in C?C.statusText:"OK",this.headers=new b(C.headers),this.url=C.url||"",this._initBody(M)}x.call(F.prototype),F.prototype.clone=function(){return new F(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},F.error=function(){var M=new F(null,{status:0,statusText:""});return M.type="error",M};var W=[301,302,303,307,308];F.redirect=function(M,C){if(W.indexOf(C)===-1)throw new RangeError("Invalid status code");return new F(null,{status:C,headers:{location:M}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(C,V){this.message=C,this.name=V;var ie=Error(C);this.stack=ie.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function z(M,C){return new Promise(function(V,ie){var ne=new Q(M,C);if(ne.signal&&ne.signal.aborted)return ie(new o.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function _e(){fe.abort()}fe.onload=function(){var we={status:fe.status,statusText:fe.statusText,headers:D(fe.getAllResponseHeaders()||"")};we.url="responseURL"in fe?fe.responseURL:we.headers.get("X-Request-URL");var Ce="response"in fe?fe.response:fe.responseText;V(new F(Ce,we))},fe.onerror=function(){ie(new TypeError("Network request failed"))},fe.ontimeout=function(){ie(new TypeError("Network request failed"))},fe.onabort=function(){ie(new o.DOMException("Aborted","AbortError"))},fe.open(ne.method,ne.url,!0),ne.credentials==="include"?fe.withCredentials=!0:ne.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&u.blob&&(fe.responseType="blob"),ne.headers.forEach(function(we,Ce){fe.setRequestHeader(Ce,we)}),ne.signal&&(ne.signal.addEventListener("abort",_e),fe.onreadystatechange=function(){fe.readyState===4&&ne.signal.removeEventListener("abort",_e)}),fe.send(typeof ne._bodyInit>"u"?null:ne._bodyInit)})}return z.polyfill=!0,s.fetch||(s.fetch=z,s.Headers=b,s.Request=Q,s.Response=F),o.Headers=b,o.Request=Q,o.Response=F,o.fetch=z,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=n;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e})(gO,gO.exports);var yne=gO.exports,WF=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(ec,"__esModule",{value:!0});ec.fetchContext=ec.fetchJson=void 0;const bne=yne;function XF(t,e){var r;return WF(this,void 0,void 0,function*(){return(yield((r=e==null?void 0:e.fetch)!==null&&r!==void 0?r:bne.fetch)(t)).json()})}ec.fetchJson=XF;function mne(t,e){return WF(this,void 0,void 0,function*(){return(yield XF(t,e))["@context"]})}ec.fetchContext=mne;var gne=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(q_,"__esModule",{value:!0});q_.lookupUri=void 0;const _ne=ec;function vne(t,e){return gne(this,void 0,void 0,function*(){const r=(yield(0,_ne.fetchContext)(`https://prefix.cc/${t}.file.jsonld`,e))[t];if(typeof r!="string")throw new Error(`Expected uri to be a string, received: ${r} of type ${typeof r}`);return r})}q_.lookupUri=vne;var V_={},wne=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(V_,"__esModule",{value:!0});V_.lookupPrefix=void 0;const Sne=ec;function Tne(t,e){return wne(this,void 0,void 0,function*(){const r=new URL("https://prefix.cc/reverse");r.searchParams.append("uri",t),r.searchParams.append("format","jsonld");const n=Object.keys(yield(0,Sne.fetchContext)(r,e));if(n.length===0)throw new Error("No prefixes returned");return n[0]})}V_.lookupPrefix=Tne;var H_={},Ene=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(H_,"__esModule",{value:!0});H_.lookupAllPrefixes=void 0;const One=ec;function Ane(t){return Ene(this,void 0,void 0,function*(){return(0,One.fetchContext)("https://prefix.cc/context",t)})}H_.lookupAllPrefixes=Ane;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(q_,t),r(V_,t),r(H_,t)})(mO);(function(t){var e=g&&g.__awaiter||function(u,c,l,d){function h(f){return f instanceof l?f:new l(function(p){p(f)})}return new(l||(l=Promise))(function(f,p){function b(w){try{S(d.next(w))}catch(I){p(I)}}function y(w){try{S(d.throw(w))}catch(I){p(I)}}function S(w){w.done?f(w.value):h(w.value).then(b,y)}S((d=d.apply(u,c||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.lookupAllPrefixes=t.prefixToUri=t.uriToPrefix=void 0;const r=U_,n=mO;function a(u,c){return e(this,void 0,void 0,function*(){let l;try{l=yield(0,n.lookupPrefix)(u,c)}catch{c!=null&&c.mintOnUnknown&&(l=(0,r.fragment)(u).slice(0,4))}if(typeof l<"u"&&typeof(c==null?void 0:c.existingPrefixes)=="object"&&l in c.existingPrefixes){let d=0;for(;`${l}${d}`in c.existingPrefixes;)d+=1;l=`${l}${d}`}return l})}t.uriToPrefix=a;function s(u,c){return e(this,void 0,void 0,function*(){try{return yield(0,n.lookupUri)(u,c)}catch{return}})}t.prefixToUri=s;var o=mO;Object.defineProperty(t,"lookupAllPrefixes",{enumerable:!0,get:function(){return o.lookupAllPrefixes}})})(zF);var k_={};Object.defineProperty(k_,"__esModule",{value:!0});k_.getShaclName=void 0;function xne(t){if(t.termType!=="NamedNode"||!t.value.startsWith("http://www.w3.org/ns/shacl#"))throw new Error(`Term ${t.value} is not part of the SHACL namespace`);return t.value.slice(27)}k_.getShaclName=xne;var Fx={};Object.defineProperty(Fx,"__esModule",{value:!0});Fx.default={deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,uniqueLang:!0,equals:!0,disjoint:!0,lessThan:!0,lessThanOrEquals:!0,qualifiedValueShape:!0,qualifiedMinCount:!0,qualifiedMaxCount:!0,qualifiedValueShapesDisjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0,node:!0};var Mx={};Object.defineProperty(Mx,"__esModule",{value:!0});Mx.default={owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"};var Lx={};Object.defineProperty(Lx,"__esModule",{value:!0});Lx.default={targetNode:!0,targetObjectsOf:!0,targetSubjectsOf:!0,deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,equals:!0,disjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0};var Fn=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})},Bx=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cx,"__esModule",{value:!0});const Zt=au,Rne=zF,c1=j0,ch=k_,Ine=Bx(Fx),Pne=Bx(Mx),cN=Bx(Lx);function dT(t){var e;return(e=/^[^]*[#/]/.exec(t))===null||e===void 0?void 0:e[0]}const fT={"http://www.w3.org/1999/02/22-rdf-syntax-ns#":"rdf","http://www.w3.org/2000/01/rdf-schema#":"rdfs","http://www.w3.org/ns/shacl#":"sh","http://www.w3.org/2001/XMLSchema#":"xsd"},hT={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"};class Dne{constructor(e,r,n={},a=void 0,s=!0,o=!1,u,c=!1){this.store=e,this.base=a,this.errorOnExtraQuads=s,this.mintUnspecifiedPrefixes=o,this.fetch=u,this.extendedSyntax=c,this.prefixes={},this.prefixRev={};for(const l of Object.keys(n)){const d=n[l],h=typeof d=="string"?d:d.value;!(h in fT)&&!(l in hT)&&(this.prefixRev[h]=l,this.prefixes[l]=h)}this.writer=r}write(){return Fn(this,void 0,void 0,function*(){const e=this.store.getQuads(null,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type","http://www.w3.org/2002/07/owl#Ontology",null);if(e.length===1&&e[0].subject.termType==="NamedNode"){const n=e[0].subject;this.store.removeQuads(e),n.equals(new Zt.NamedNode("urn:x-base:default"))||this.writer.add(`BASE ${(0,c1.termToString)(n)}`),yield this.writeImports(n)}else throw new Error("Base expected");if(this.mintUnspecifiedPrefixes){const n=new Set;for(const s of[...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)])if(s.termType==="NamedNode"){const o=dT(s.value);o&&!(o in this.prefixRev)&&!(o in fT)&&n.add(o)}const a=Object.assign(Object.assign({},this.prefixes),hT);yield Promise.all([...n].map(s=>(0,Rne.uriToPrefix)(s,{fetch:this.fetch,mintOnUnknown:!0,existingPrefixes:a}).then(o=>{this.prefixes[o]=s,a[o]=s,this.prefixRev[s]=o})))}const r=new Set([...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)].filter(n=>n.termType==="NamedNode").map(n=>dT(n.value)).filter(n=>typeof n=="string"));for(const n in this.prefixRev)r.has(n)||(delete this.prefixes[this.prefixRev[n]],delete this.prefixRev[n]);if(yield this.writePrefixes(),this.prefixes=Object.assign(Object.assign({},this.prefixes),hT),this.prefixRev=Object.assign(Object.assign({},this.prefixRev),fT),this.writer.newLine(),yield this.writeShapes(),this.extendedSyntax){const n=this.store.getSubjects(null,null,null);n.length>0&&this.writer.newLine(1);for(const a of n)this.writer.add(yield this.termToString(a,!0,!0)),this.writer.add(" "),this.writer.indent(),yield this.writeTurtlePredicates(a),this.writer.deindent();n.length>0&&(this.writer.add(" ."),this.writer.newLine())}if(this.errorOnExtraQuads&&this.store.size>0)throw new Error("Dataset contains quads that cannot be written in SHACLC");this.writer.end()})}writeImports(e){return Fn(this,void 0,void 0,function*(){const r=this.store.getObjectsOnce(e,new Zt.NamedNode("http://www.w3.org/2002/07/owl#imports"),null);if(r.length>0)for(const n of r)this.writer.add(`IMPORTS <${n.value}>`,!0)})}writePrefixes(){return Fn(this,void 0,void 0,function*(){const e=Object.keys(this.prefixes).filter(r=>!(r in Pne.default)).sort();if(e.length>0)for(const r of e)this.writer.add(`PREFIX ${r}: <${this.prefixes[r]}>`,!0)})}termToString(e,r=!1,n=!1){return Fn(this,void 0,void 0,function*(){try{if(r)throw new Error("Shacl name disabled");return(0,ch.getShaclName)(e)}catch{}if(e.termType==="NamedNode"){const a=dT(e.value);return a&&a in this.prefixRev&&a in this.prefixRev?`${this.prefixRev[a]}:${e.value.slice(a.length)}`:(0,c1.termToString)(e)}if(e.termType==="Literal")return e.datatypeString==="http://www.w3.org/2001/XMLSchema#integer"||e.datatypeString==="http://www.w3.org/2001/XMLSchema#boolean"?e.value:(0,c1.termToString)(e);throw e.termType==="BlankNode"&&n&&(0,c1.termToString)(e),new Error(`Invalid term type for extra statement ${e.value} (${e.termType})`)})}writeShapes(){return Fn(this,void 0,void 0,function*(){for(const e of this.store.getSubjectsOnce(new Zt.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new Zt.NamedNode("http://www.w3.org/ns/shacl#NodeShape"),null)){this.store.getQuadsOnce(e,new Zt.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new Zt.NamedNode("http://www.w3.org/2000/01/rdf-schema#Class"),null).length>0?this.writer.add("shapeClass "):this.writer.add("shape "),this.writer.add(yield this.termToString(e)),this.writer.add(" ");const r=this.store.getObjectsOnce(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#targetClass"),null);if(r.length>0){this.writer.add("-> ");for(const a of r)a.termType==="NamedNode"?this.writer.add(yield this.termToString(a)):(this.writer.add("!"),this.writer.add(yield this.termToString(this.singleObject(a,new Zt.NamedNode("http://www.w3.org/ns/shacl#not"),!0)))),this.writer.add(" ")}const n=this.store.getPredicates(e,null,null).filter(a=>[new Zt.NamedNode("http://www.w3.org/ns/shacl#targetClass"),new Zt.NamedNode("http://www.w3.org/ns/shacl#property"),new Zt.NamedNode("http://www.w3.org/ns/shacl#or"),...Object.keys(cN.default).map(s=>new Zt.NamedNode("http://www.w3.org/ns/shacl#"+s))].every(s=>!a.equals(s)));n.length>0&&(this.writer.add(";"),this.writer.indent(),this.writer.newLine(1)),this.extendedSyntax&&(yield this.writeGivenTurtlePredicates(e,n)),n.length>0&&(this.writer.add(" "),this.writer.deindent()),yield this.writeShapeBody(e,!1)}})}getSingleProperty(e,r){let n=[e];try{let a=(0,ch.getShaclName)(e.predicate),s="pred";if(a==="not"){const o=this.store.getQuadsOnce(e.object,null,null,null);if(n=n.concat(o),o.length!==1)throw new Error("Can only handle having one predicate of 'not'");[e]=o,a=(0,ch.getShaclName)(e.predicate),s="not"}if(!(a in r))throw new Error(`${a} is not allowed`);return{name:a,type:s,object:e.object}}catch{this.store.addQuads(n)}}singleLayerPropertiesList(e,r){const n=[];for(const a of this.store.getQuadsOnce(e,null,null,null)){const s=this.getSingleProperty(a,r);s&&n.push(s)}return n}expectOneProperty(e,r){const n=this.store.getQuadsOnce(e,null,null,null);if(n.length===1){const a=this.getSingleProperty(n[0],r);if(a)return a}this.store.addQuads(n)}orProperties(e,r){const n=[];for(const a of this.store.getQuadsOnce(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#or"),null,null)){const s=[];for(const o of this.getList(a.object)){const u=this.expectOneProperty(o,r);if(!u)throw this.store.addQuad(a),new Error("Each entry of the 'or' statement must declare exactly one property");s.push(u)}n.push(s)}return n}getList(e){let r=e;const n=[];for(;!r.equals(new Zt.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));)n.push(this.singleObject(r,new Zt.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),!0)),r=this.singleObject(r,new Zt.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),!0);return n}writeIriLiteralOrArray(e){return Fn(this,void 0,void 0,function*(){if(e.termType==="BlankNode"){this.writer.add("[");let r=!0;for(const n of this.getList(e))r?r=!1:this.writer.add(" "),this.writer.add(yield this.termToString(n));this.writer.add("]")}else this.writer.add(yield this.termToString(e))})}singleObject(e,r,n){var a;return(a=this.singleQuad(e,r,n))===null||a===void 0?void 0:a.object}singleQuad(e,r,n=!1){const a=this.store.getQuadsOnce(e,r,null,null);if(n&&a.length!==1)throw this.store.addQuads(a),new Error(`The subject and predicate ${e==null?void 0:e.value} ${r==null?void 0:r.value} must have exactly one object. Instead has ${a.length}`);if(a.length>1)throw this.store.addQuads(a),new Error(`The subject and predicate ${e==null?void 0:e.value} ${r==null?void 0:r.value} can have at most one object. Instead has ${a.length}`);return a.length===1?a[0]:void 0}writeAssigment({name:e,type:r,object:n}){return Fn(this,void 0,void 0,function*(){r==="not"&&this.writer.add("!"),this.writer.add(e),this.writer.add("="),yield this.writeIriLiteralOrArray(n)})}writeAtom({name:e,type:r,object:n}){return Fn(this,void 0,void 0,function*(){switch(r==="not"&&this.writer.add("!"),e){case"node":{if(n.termType==="NamedNode")this.writer.add(`@${yield this.termToString(n)}`);else if(n.termType==="BlankNode")yield this.writeShapeBody(n);else throw new Error("Invalid nested shape, must be blank node or IRI");return}case"nodeKind":{this.writer.add((0,ch.getShaclName)(n));return}case"class":{this.writer.add(yield this.termToString(n));return}case"datatype":{this.writer.add(yield this.termToString(n));return}default:this.writer.add(e),this.writer.add("="),yield this.writeIriLiteralOrArray(n)}})}writeAssigments(e,r=" ",n=!0,a){return Fn(this,void 0,void 0,function*(){for(const s of e)n?n=!1:this.writer.add(r),a?yield this.writeAtom(s):yield this.writeAssigment(s)})}writeParams(e,r=!0,n,a=!1,s=!1){return Fn(this,void 0,void 0,function*(){const o=this.orProperties(e,n),u=this.singleLayerPropertiesList(e,n);s&&(o.length>0||u.length>0)&&this.writer.newLine(1);for(const c of o)r?r=!1:this.writer.add(" "),yield this.writeAssigments(c,"|",!0,a);yield this.writeAssigments(u," ",r,a),s&&(o.length>0||u.length>0)&&this.writer.add(" .")})}writeShapeBody(e,r=!0){return Fn(this,void 0,void 0,function*(){this.writer.add("{").indent();const n=this.store.getObjectsOnce(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#property"),null);yield this.writeParams(e,!0,cN.default,!1,!0);for(const a of n)this.writer.newLine(1),yield this.writeProperty(a);this.writer.deindent().newLine(1),r?this.writer.add("} ."):this.writer.add("}").newLine(1)})}writeProperty(e){return Fn(this,void 0,void 0,function*(){yield this.writePath(this.singleObject(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#path"),!0));const r=this.singleObject(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#minCount")),n=this.singleObject(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#maxCount")),a=this.singleObject(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#nodeKind")),s=this.singleObject(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#class")),o=this.singleObject(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#datatype")),u=this.store.getObjectsOnce(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#node"),null);if(a&&(this.writer.add(" "),this.writer.add((0,ch.getShaclName)(a))),s&&(this.writer.add(" "),this.writer.add(yield this.termToString(s))),o&&(this.writer.add(" "),this.writer.add(yield this.termToString(o))),r!==void 0||n!==void 0){if(this.writer.add(" ["),r){if(r.termType!=="Literal"||r.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid min value, must me an integer literal");this.writer.add(r.value)}else this.writer.add("0");if(this.writer.add(".."),n){if(n.termType!=="Literal"||n.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid max value, must me an integer literal");this.store.removeMatches(e,new Zt.NamedNode("http://www.w3.org/ns/shacl#maxCount"),void 0,void 0),this.writer.add(n.value)}else this.writer.add("*");this.writer.add("]")}yield this.writeParams(e,!1,Ine.default,!0);const c=[];for(const l of u)if(l.termType==="NamedNode")this.writer.add(" "),this.writer.add(`@${yield this.termToString(l)}`);else if(l.termType==="BlankNode")c.push(l);else throw new Error("Invalid nested shape, must be blank node or IRI");for(const l of c)this.writer.add(" "),yield this.writeShapeBody(l);this.extendedSyntax&&this.store.getQuads(e,null,null,null).length>0&&(this.writer.add(" %"),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(e),this.writer.deindent(),this.writer.newLine(1),this.writer.add("%")),c.length===0&&this.writer.add(" .")})}writeTurtlePredicates(e){return Fn(this,void 0,void 0,function*(){return this.writeGivenTurtlePredicates(e,this.store.getPredicates(e,null,null))})}writeGivenTurtlePredicates(e,r){return Fn(this,void 0,void 0,function*(){let n=!1;if(r.some(a=>a.equals(Zt.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")))){const a=this.store.getObjectsOnce(e,Zt.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),null);a.length>0&&(n=!0,this.writer.add("a "),yield this.writeTurtleObjects(a))}for(const a of r)a.equals(Zt.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))||(n?(this.writer.add(" ;"),this.writer.newLine(1)):n=!0,this.writer.add(yield this.termToString(a,!0)),this.writer.add(" "),yield this.writeTurtleObjects(this.store.getObjectsOnce(e,a,null)))})}writeTurtleObjects(e){return Fn(this,void 0,void 0,function*(){const r=[],n=[];for(const s of e)s.termType==="BlankNode"&&[...this.store.match(null,null,s),...this.store.match(null,s,null)].length===0?r.push(s):n.push(s);this.writer.add((yield Promise.all(n.map(s=>this.termToString(s,!0,!0)))).join(", "));let a=n.length>0;if(r.length>0)for(const s of r)a?this.writer.add(", "):a=!0,(yield this.writeList(s))||(this.writer.add("["),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(s),this.writer.deindent(),this.writer.newLine(1),this.writer.add("]"))})}writeList(e){return Fn(this,void 0,void 0,function*(){let r=e;const n=[],a=[];for(;!r.equals(Zt.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));){const o=this.store.getQuadsOnce(r,Zt.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),null,null),u=this.store.getQuadsOnce(r,Zt.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),null,null);if(a.push(...o,...u),o.length!==1||u.length!==1||this.store.getQuads(r,null,null,null).length!==0)return this.store.addQuads(a),!1;n.push(o[0].object),r=u[0].object}let s=!1;this.writer.add("(");for(const o of n)s?this.writer.add(" "):s=!0,yield this.writeTurtleObjects([o]);return this.writer.add(")"),!0})}writePath(e,r=!1){return Fn(this,void 0,void 0,function*(){if(e.termType==="NamedNode")this.writer.add(yield this.termToString(e));else if(e.termType==="BlankNode"){const n=this.store.getQuadsOnce(e,null,null,null);if(n.length===1){const{predicate:a,object:s}=n[0];switch(a.value){case"http://www.w3.org/ns/shacl#inversePath":this.writer.add("^"),yield this.writePath(s,!0);return;case"http://www.w3.org/ns/shacl#alternativePath":{const o=this.getList(s);if(o.length===0)throw new Error("Invalid Alternative Path - no options");if(o.length===1)yield this.writePath(o[0]);else{r&&this.writer.add("(");let u=!0;for(const c of o)u?u=!1:this.writer.add("|"),yield this.writePath(c,!0);r&&this.writer.add(")")}return}case"http://www.w3.org/ns/shacl#zeroOrMorePath":yield this.writePath(s,!0),this.writer.add("*");return;case"http://www.w3.org/ns/shacl#oneOrMorePath":yield this.writePath(s,!0),this.writer.add("+");return;case"http://www.w3.org/ns/shacl#zeroOrOnePath":yield this.writePath(s,!0),this.writer.add("?");return;default:throw new Error(`Invalid path type ${e.value}`)}}else{this.store.addQuads(n);const a=this.getList(e);if(a.length===0)throw new Error("Invalid Path");{r&&this.writer.add("(");let s=!0;for(const o of a)s?s=!1:this.writer.add("/"),yield this.writePath(o,!0);r&&this.writer.add(")")}}}else throw new Error("Path should be named node or blank node")})}}Cx.default=Dne;var $x={};Object.defineProperty($x,"__esModule",{value:!0});class Nne{constructor(e){this.indents=0,this.write=e.write,this.end=e.end}indent(){return this.indents+=1,this}deindent(){if(this.indents<1)throw new Error(`Trying to deindent when indent is only ${this.indents}`);return this.indents-=1,this}add(e,r=!1){return this.write(r?` -${" ".repeat(this.indents)}${e}`:e,"utf-8"),this}newLine(e=2){return this.write(` -`.repeat(e)+" ".repeat(this.indents),"utf-8"),this}}$x.default=Nne;var Ux={};Object.defineProperty(Ux,"__esModule",{value:!0});const jne=au;class Cne extends jne.Store{getQuadsOnce(e,r,n,a){const s=this.getQuads(e,r,n,a);return this.removeQuads(s),s}getSubjectsOnce(e,r,n){return this.getQuadsOnce(null,e,r,n).map(a=>a.subject)}getObjectsOnce(e,r,n){return this.getQuadsOnce(e,r,null,n).map(a=>a.object)}}Ux.default=Cne;var lN=g&&g.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})},qx=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($_,"__esModule",{value:!0});$_.write=void 0;const Fne=au,Mne=qx(Cx),Lne=qx($x),Bne=qx(Ux);function $ne(t,e){return lN(this,void 0,void 0,function*(){return new Promise((r,n)=>lN(this,void 0,void 0,function*(){try{let a="";const s=new Bne.default(t),o=s.getGraphs(null,null,null);if(o.length>1)throw new Error("More than one graph found - can serialize in the default graph");if(o.length===1&&!o[0].equals(Fne.DataFactory.defaultGraph()))throw new Error(`Expected all triples to be in the default graph, instead triples were in ${o[0].value}`);const u=new Lne.default({write:l=>{a+=l},end:()=>{let l=s.getQuads(null,null,null,null);l.length===0&&(l=void 0),r({text:a,extraQuads:l})}});yield new Mne.default(s,u,e==null?void 0:e.prefixes,void 0,(e==null?void 0:e.errorOnUnused)!==!1,e==null?void 0:e.mintPrefixes,e==null?void 0:e.fetch,e==null?void 0:e.extendedSyntax).write()}catch(a){n(a)}}))})}$_.write=$ne;Object.defineProperty(B_,"__esModule",{value:!0});B_.ActorRdfSerializeShaclc=void 0;const Une=P_,qne=jx,Vne=Kt,Hne=$_;class kne extends Une.ActorRdfSerializeFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){const a=new Vne.Readable;a._read=()=>{};try{const s={};e.quadStream.on("prefix",(u,c)=>{s[u]=c});const{text:o}=await(0,Hne.write)(await(0,qne.default)(e.quadStream),{errorOnUnused:!0,extendedSyntax:r==="text/shaclc-ext",prefixes:s});a.push(o),a.push(null)}catch(s){a._read=()=>{a.emit("error",s)}}return{data:a,triples:!0}}}B_.ActorRdfSerializeShaclc=kne;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(B_,t)})(GF);var KF={},Q_={},ms={},G_={},B0={};Object.defineProperty(B0,"__esModule",{value:!0});B0.ReadableWebToNodeStream=void 0;const Qne=Kt;class Gne extends Qne.Readable{constructor(e){super(),this.bytesRead=0,this.released=!1,this.reader=e.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const e=await this.pendingRead;delete this.pendingRead,e.done||this.released?this.push(null):(this.bytesRead+=e.value.length,this.push(e.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}B0.ReadableWebToNodeStream=Gne;function l1(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pT={exports:{}},dN;function zne(){return dN||(dN=1,function(t,e){(function(r){t.exports=r()})(function(){return function r(n,a,s){function o(l,d){if(!a[l]){if(!n[l]){var h=typeof l1=="function"&&l1;if(!d&&h)return h(l,!0);if(u)return u(l,!0);var f=new Error("Cannot find module '"+l+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[l]={exports:{}};n[l][0].call(p.exports,function(b){var y=n[l][1][b];return o(y||b)},p,p.exports,r,n,a,s)}return a[l].exports}for(var u=typeof l1=="function"&&l1,c=0;c=0;we--)if(Ce[we]!==oe[we])return!1;for(we=Ce.length-1;we>=0;we--)if(_e=Ce[we],!S(M[_e],C[_e],V,ie))return!1;return!0}function O(M,C,V){S(M,C,!0)&&b(M,C,V,"notDeepStrictEqual",O)}function T(M,C){if(!M||!C)return!1;if(Object.prototype.toString.call(C)=="[object RegExp]")return C.test(M);try{if(M instanceof C)return!0}catch{}return!Error.isPrototypeOf(C)&&C.call({},M)===!0}function x(M){var C;try{M()}catch(V){C=V}return C}function P(M,C,V,ie){var ne;if(typeof C!="function")throw new TypeError('"block" argument must be a function');typeof V=="string"&&(ie=V,V=null),ne=x(C),ie=(V&&V.name?" ("+V.name+").":".")+(ie?" "+ie:"."),M&&!ne&&b(ne,V,"Missing expected exception"+ie);var fe=typeof ie=="string",_e=!M&&B.isError(ne),we=!M&&ne&&!V;if((_e&&fe&&T(ne,V)||we)&&b(ne,V,"Got unwanted exception"+ie),M&&ne&&V&&!T(ne,V)||!M&&ne)throw ne}var B=r("util/"),Q=Object.prototype.hasOwnProperty,N=Array.prototype.slice,D=(function(){}).name==="foo",F=n.exports=y,W=/\s*function\s+([^\(\s]*)\s*/;F.AssertionError=function(C){this.name="AssertionError",this.actual=C.actual,this.expected=C.expected,this.operator=C.operator,C.message?(this.message=C.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var V=C.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,V);else{var ie=new Error;if(ie.stack){var ne=ie.stack,fe=d(V),_e=ne.indexOf(` -`+fe);if(_e>=0){var we=ne.indexOf(` -`,_e+1);ne=ne.substring(we+1)}this.stack=ne}}},B.inherits(F.AssertionError,Error),F.fail=b,F.ok=y,F.equal=function(C,V,ie){C!=V&&b(C,V,ie,"==",F.equal)},F.notEqual=function(C,V,ie){C==V&&b(C,V,ie,"!=",F.notEqual)},F.deepEqual=function(C,V,ie){S(C,V,!1)||b(C,V,ie,"deepEqual",F.deepEqual)},F.deepStrictEqual=function(C,V,ie){S(C,V,!0)||b(C,V,ie,"deepStrictEqual",F.deepStrictEqual)},F.notDeepEqual=function(C,V,ie){S(C,V,!1)&&b(C,V,ie,"notDeepEqual",F.notDeepEqual)},F.notDeepStrictEqual=O,F.strictEqual=function(C,V,ie){C!==V&&b(C,V,ie,"===",F.strictEqual)},F.notStrictEqual=function(C,V,ie){C===V&&b(C,V,ie,"!==",F.notStrictEqual)},F.throws=function(M,C,V){P(!0,M,C,V)},F.doesNotThrow=function(M,C,V){P(!1,M,C,V)},F.ifError=function(M){if(M)throw M};var z=Object.keys||function(M){var C=[];for(var V in M)Q.call(M,V)&&C.push(V);return C}}).call(this,typeof g<"u"?g:typeof self<"u"?self:typeof window<"u"?window:{})},{"util/":7}],3:[function(r,n,a){},{}],4:[function(r,n,a){function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(T){if(p===setTimeout)return setTimeout(T,0);if((p===s||!p)&&setTimeout)return p=setTimeout,setTimeout(T,0);try{return p(T,0)}catch{try{return p.call(null,T,0)}catch{return p.call(this,T,0)}}}function c(T){if(b===clearTimeout)return clearTimeout(T);if((b===o||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(T);try{return b(T)}catch{try{return b.call(null,T)}catch{return b.call(this,T)}}}function l(){I&&S&&(I=!1,S.length?w=S.concat(w):O=-1,w.length&&d())}function d(){if(!I){var T=u(l);I=!0;for(var x=w.length;x;){for(S=w,w=[];++O1)for(var P=1;P=3&&(Ae.depth=arguments[2]),arguments.length>=4&&(Ae.colors=arguments[3]),I(ae)?Ae.showHidden=ae:ae&&a._extend(Ae,ae),Q(Ae.showHidden)&&(Ae.showHidden=!1),Q(Ae.depth)&&(Ae.depth=2),Q(Ae.colors)&&(Ae.colors=!1),Q(Ae.customInspect)&&(Ae.customInspect=!0),Ae.colors&&(Ae.stylize=c),h(Ae,oe,Ae.depth)}function c(oe,ae){var Ae=u.styles[ae];return Ae?"\x1B["+u.colors[Ae][0]+"m"+oe+"\x1B["+u.colors[Ae][1]+"m":oe}function l(oe,ae){return oe}function d(oe){var ae={};return oe.forEach(function(Ae,Ie){ae[Ae]=!0}),ae}function h(oe,ae,Ae){if(oe.customInspect&&ae&&z(ae.inspect)&&ae.inspect!==a.inspect&&(!ae.constructor||ae.constructor.prototype!==ae)){var Ie=ae.inspect(Ae,oe);return P(Ie)||(Ie=h(oe,Ie,Ae)),Ie}var he=f(oe,ae);if(he)return he;var ve=Object.keys(ae),me=d(ve);if(oe.showHidden&&(ve=Object.getOwnPropertyNames(ae)),W(ae)&&(ve.indexOf("message")>=0||ve.indexOf("description")>=0))return p(ae);if(ve.length===0){if(z(ae)){var L=ae.name?": "+ae.name:"";return oe.stylize("[Function"+L+"]","special")}if(N(ae))return oe.stylize(RegExp.prototype.toString.call(ae),"regexp");if(F(ae))return oe.stylize(Date.prototype.toString.call(ae),"date");if(W(ae))return p(ae)}var H="",A=!1,m=["{","}"];if(w(ae)&&(A=!0,m=["[","]"]),z(ae)&&(H=" [Function"+(ae.name?": "+ae.name:"")+"]"),N(ae)&&(H=" "+RegExp.prototype.toString.call(ae)),F(ae)&&(H=" "+Date.prototype.toUTCString.call(ae)),W(ae)&&(H=" "+p(ae)),ve.length===0&&(!A||ae.length==0))return m[0]+H+m[1];if(Ae<0)return N(ae)?oe.stylize(RegExp.prototype.toString.call(ae),"regexp"):oe.stylize("[Object]","special");oe.seen.push(ae);var v;return v=A?b(oe,ae,Ae,me,ve):ve.map(function(j){return y(oe,ae,Ae,me,j,A)}),oe.seen.pop(),S(v,H,m)}function f(oe,ae){if(Q(ae))return oe.stylize("undefined","undefined");if(P(ae)){var Ae="'"+JSON.stringify(ae).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return oe.stylize(Ae,"string")}return x(ae)?oe.stylize(""+ae,"number"):I(ae)?oe.stylize(""+ae,"boolean"):O(ae)?oe.stylize("null","null"):void 0}function p(oe){return"["+Error.prototype.toString.call(oe)+"]"}function b(oe,ae,Ae,Ie,he){for(var ve=[],me=0,L=ae.length;me-1&&(L=ve?L.split(` -`).map(function(A){return" "+A}).join(` -`).substr(2):` -`+L.split(` -`).map(function(A){return" "+A}).join(` -`)):L=oe.stylize("[Circular]","special")),Q(me)){if(ve&&he.match(/^\d+$/))return L;(me=JSON.stringify(""+he)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(me=me.substr(1,me.length-2),me=oe.stylize(me,"name")):(me=me.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),me=oe.stylize(me,"string"))}return me+": "+L}function S(oe,ae,Ae){var Ie=0;return oe.reduce(function(he,ve){return Ie++,ve.indexOf(` -`)>=0&&Ie++,he+ve.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Ae[0]+(ae===""?"":ae+` - `)+" "+oe.join(`, - `)+" "+Ae[1]:Ae[0]+ae+" "+oe.join(", ")+" "+Ae[1]}function w(oe){return Array.isArray(oe)}function I(oe){return typeof oe=="boolean"}function O(oe){return oe===null}function T(oe){return oe==null}function x(oe){return typeof oe=="number"}function P(oe){return typeof oe=="string"}function B(oe){return typeof oe=="symbol"}function Q(oe){return oe===void 0}function N(oe){return D(oe)&&C(oe)==="[object RegExp]"}function D(oe){return typeof oe=="object"&&oe!==null}function F(oe){return D(oe)&&C(oe)==="[object Date]"}function W(oe){return D(oe)&&(C(oe)==="[object Error]"||oe instanceof Error)}function z(oe){return typeof oe=="function"}function M(oe){return oe===null||typeof oe=="boolean"||typeof oe=="number"||typeof oe=="string"||typeof oe=="symbol"||oe===void 0}function C(oe){return Object.prototype.toString.call(oe)}function V(oe){return oe<10?"0"+oe.toString(10):oe.toString(10)}function ie(){var oe=new Date,ae=[V(oe.getHours()),V(oe.getMinutes()),V(oe.getSeconds())].join(":");return[oe.getDate(),Ce[oe.getMonth()],ae].join(" ")}function ne(oe,ae){return Object.prototype.hasOwnProperty.call(oe,ae)}var fe=/%[sdj%]/g;a.format=function(oe){if(!P(oe)){for(var ae=[],Ae=0;Ae=he)return H;switch(H){case"%s":return String(Ie[Ae++]);case"%d":return Number(Ie[Ae++]);case"%j":try{return JSON.stringify(Ie[Ae++])}catch{return"[Circular]"}default:return H}}),me=Ie[Ae];Ae3&&arguments[3]!==void 0?arguments[3]:1,ze=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},Ye=Object.create(La.prototype);return d(Ye),he(Ye,Object.create(cu.prototype),ee,se,pe,Ve,ze),Ye}function l(ee,se,pe){var Ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ze=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,Ye=Object.create(La.prototype);return d(Ye),ge(Ye,Object.create(Ll.prototype),ee,se,pe,Ve,ze),Ye}function d(ee){ee._state="readable",ee._reader=void 0,ee._storedError=void 0,ee._disturbed=!1}function h(ee){return!!Gr(ee)&&!!Object.prototype.hasOwnProperty.call(ee,"_readableStreamController")}function f(ee){return ee._disturbed}function p(ee){return ee._reader!==void 0}function b(ee,se){function pe(){return V(ze).then(function(Dn){var yi=Dn.value;if(Dn.done===!0&&Ye===!1&&(Et===!1&&_e(rr._readableStreamController),qt===!1&&_e(Er._readableStreamController),Ye=!0),Ye!==!0){var $a=yi,wn=yi;Et===!1&&we(rr._readableStreamController,$a),qt===!1&&we(Er._readableStreamController,wn)}})}function Ve(){}var ze=u(ee),Ye=!1,Et=!1,qt=!1,or=void 0,Mr=void 0,rr=void 0,Er=void 0,pi=void 0,Gn=new Promise(function(Dn){pi=Dn});return rr=c(Ve,pe,function(yi){if(Et=!0,or=yi,qt===!0){var $a=Qe([or,Mr]),wn=w(ee,$a);pi(wn)}return Gn}),Er=c(Ve,pe,function(yi){if(qt=!0,Mr=yi,Et===!0){var $a=Qe([or,Mr]),wn=w(ee,$a);pi(wn)}return Gn}),ze._closedPromise.catch(function(Dn){Ye!==!0&&(oe(rr._readableStreamController,Dn),oe(Er._readableStreamController,Dn),Ye=!0)}),[rr,Er]}function y(ee){return new Promise(function(se,pe){var Ve={_resolve:se,_reject:pe};ee._reader._readIntoRequests.push(Ve)})}function S(ee){return new Promise(function(se,pe){var Ve={_resolve:se,_reject:pe};ee._reader._readRequests.push(Ve)})}function w(ee,se){return ee._disturbed=!0,ee._state==="closed"?Promise.resolve(void 0):ee._state==="errored"?Promise.reject(ee._storedError):(I(ee),ee._readableStreamController[sn](se).then(function(){}))}function I(ee){ee._state="closed";var se=ee._reader;if(se!==void 0){if(F(se)===!0){var pe=!0,Ve=!1,ze=void 0;try{for(var Ye,Et=se._readRequests[Symbol.iterator]();!(pe=(Ye=Et.next()).done);pe=!0)(0,Ye.value._resolve)(je(void 0,!0))}catch(qt){Ve=!0,ze=qt}finally{try{!pe&&Et.return&&Et.return()}finally{if(Ve)throw ze}}se._readRequests=[]}vr(se)}}function O(ee,se){ee._state="errored",ee._storedError=se;var pe=ee._reader;if(pe!==void 0){if(F(pe)===!0){var Ve=!0,ze=!1,Ye=void 0;try{for(var Et,qt=pe._readRequests[Symbol.iterator]();!(Ve=(Et=qt.next()).done);Ve=!0)Et.value._reject(se)}catch(Gn){ze=!0,Ye=Gn}finally{try{!Ve&&qt.return&&qt.return()}finally{if(ze)throw Ye}}pe._readRequests=[]}else{var or=!0,Mr=!1,rr=void 0;try{for(var Er,pi=pe._readIntoRequests[Symbol.iterator]();!(or=(Er=pi.next()).done);or=!0)Er.value._reject(se)}catch(Gn){Mr=!0,rr=Gn}finally{try{!or&&pi.return&&pi.return()}finally{if(Mr)throw rr}}pe._readIntoRequests=[]}br(pe,se),pe._closedPromise.catch(function(){})}}function T(ee,se,pe){ee._reader._readIntoRequests.shift()._resolve(je(se,pe))}function x(ee,se,pe){ee._reader._readRequests.shift()._resolve(je(se,pe))}function P(ee){return ee._reader._readIntoRequests.length}function B(ee){return ee._reader._readRequests.length}function Q(ee){var se=ee._reader;return se!==void 0&&D(se)!==!1}function N(ee){var se=ee._reader;return se!==void 0&&F(se)!==!1}function D(ee){return!!Gr(ee)&&!!Object.prototype.hasOwnProperty.call(ee,"_readIntoRequests")}function F(ee){return!!Gr(ee)&&!!Object.prototype.hasOwnProperty.call(ee,"_readRequests")}function W(ee,se){ee._ownerReadableStream=se,se._reader=ee,se._state==="readable"?rn(ee):se._state==="closed"?nn(ee):(Vr(ee,se._storedError),ee._closedPromise.catch(function(){}))}function z(ee,se){return w(ee._ownerReadableStream,se)}function M(ee){ee._ownerReadableStream._state==="readable"?br(ee,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):Pn(ee,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),ee._closedPromise.catch(function(){}),ee._ownerReadableStream._reader=void 0,ee._ownerReadableStream=void 0}function C(ee,se){var pe=ee._ownerReadableStream;return pe._disturbed=!0,pe._state==="errored"?Promise.reject(pe._storedError):re(pe._readableStreamController,se)}function V(ee){var se=ee._ownerReadableStream;return se._disturbed=!0,se._state==="closed"?Promise.resolve(je(void 0,!0)):se._state==="errored"?Promise.reject(se._storedError):se._readableStreamController[Ss]()}function ie(ee){return!!Gr(ee)&&!!Object.prototype.hasOwnProperty.call(ee,"_controlledReadableStream")}function ne(ee){fe(ee)!==!1&&(ee._pulling!==!0?(ee._pulling=!0,ee._pullAlgorithm().then(function(){if(ee._pulling=!1,ee._pullAgain===!0)return ee._pullAgain=!1,ne(ee)},function(se){oe(ee,se)}).catch(kt)):ee._pullAgain=!0)}function fe(ee){var se=ee._controlledReadableStream;return Ie(ee)!==!1&&ee._started!==!1&&(p(se)===!0&&B(se)>0||ae(ee)>0)}function _e(ee){var se=ee._controlledReadableStream;ee._closeRequested=!0,ee._queue.length===0&&I(se)}function we(ee,se){var pe=ee._controlledReadableStream;if(p(pe)===!0&&B(pe)>0)x(pe,se,!1);else{var Ve=void 0;try{Ve=ee._strategySizeAlgorithm(se)}catch(ze){throw oe(ee,ze),ze}try{wa(ee,se,Ve)}catch(ze){throw oe(ee,ze),ze}}ne(ee)}function Ce(ee,se){var pe=ee._controlledReadableStream;Ji(ee),O(pe,se)}function oe(ee,se){ee._controlledReadableStream._state==="readable"&&Ce(ee,se)}function ae(ee){var se=ee._controlledReadableStream._state;return se==="errored"?null:se==="closed"?0:ee._strategyHWM-ee._queueTotalSize}function Ae(ee){return fe(ee)!==!0}function Ie(ee){var se=ee._controlledReadableStream._state;return ee._closeRequested===!1&&se==="readable"}function he(ee,se,pe,Ve,ze,Ye,Et){se._controlledReadableStream=ee,se._queue=void 0,se._queueTotalSize=void 0,Ji(se),se._started=!1,se._closeRequested=!1,se._pullAgain=!1,se._pulling=!1,se._strategySizeAlgorithm=Et,se._strategyHWM=Ye,se._pullAlgorithm=Ve,se._cancelAlgorithm=ze,ee._readableStreamController=se;var qt=pe();Promise.resolve(qt).then(function(){se._started=!0,ne(se)},function(or){oe(se,or)}).catch(kt)}function ve(ee,se,pe,Ve){var ze=Object.create(cu.prototype),Ye=He(se,"pull",0,[ze]),Et=He(se,"cancel",1,[]);he(ee,ze,function(){return Je(se,"start",[ze])},Ye,Et,pe,Ve)}function me(ee){return!!Gr(ee)&&!!Object.prototype.hasOwnProperty.call(ee,"_controlledReadableByteStream")}function L(ee){return!!Gr(ee)&&!!Object.prototype.hasOwnProperty.call(ee,"_associatedReadableByteStreamController")}function H(ee){Pe(ee)!==!1&&(ee._pulling!==!0?(ee._pulling=!0,ee._pullAlgorithm().then(function(){ee._pulling=!1,ee._pullAgain===!0&&(ee._pullAgain=!1,H(ee))},function(se){ee._controlledReadableByteStream._state==="readable"&&R(ee,se)}).catch(kt)):ee._pullAgain=!0)}function A(ee){Y(ee),ee._pendingPullIntos=[]}function m(ee,se){var pe=!1;ee._state==="closed"&&(pe=!0);var Ve=v(se);se.readerType==="default"?x(ee,Ve,pe):T(ee,Ve,pe)}function v(ee){var se=ee.bytesFilled,pe=ee.elementSize;return new ee.ctor(ee.buffer,ee.byteOffset,se/pe)}function j(ee,se,pe,Ve){ee._queue.push({buffer:se,byteOffset:pe,byteLength:Ve}),ee._queueTotalSize+=Ve}function q(ee,se){var pe=se.elementSize,Ve=se.bytesFilled-se.bytesFilled%pe,ze=Math.min(ee._queueTotalSize,se.byteLength-se.bytesFilled),Ye=se.bytesFilled+ze,Et=Ye-Ye%pe,qt=ze,or=!1;Et>Ve&&(qt=Et-se.bytesFilled,or=!0);for(var Mr=ee._queue;qt>0;){var rr=Mr[0],Er=Math.min(qt,rr.byteLength),pi=se.byteOffset+se.bytesFilled;Se(se.buffer,pi,rr.buffer,rr.byteOffset,Er),rr.byteLength===Er?Mr.shift():(rr.byteOffset+=Er,rr.byteLength-=Er),ee._queueTotalSize-=Er,$(ee,Er,se),qt-=Er}return or}function $(ee,se,pe){Y(ee),pe.bytesFilled+=se}function G(ee){ee._queueTotalSize===0&&ee._closeRequested===!0?I(ee._controlledReadableByteStream):H(ee)}function Y(ee){ee._byobRequest!==void 0&&(ee._byobRequest._associatedReadableByteStreamController=void 0,ee._byobRequest._view=void 0,ee._byobRequest=void 0)}function J(ee){for(;ee._pendingPullIntos.length>0;){if(ee._queueTotalSize===0)return;var se=ee._pendingPullIntos[0];q(ee,se)===!0&&(xe(ee),m(ee._controlledReadableByteStream,se))}}function re(ee,se){var pe=ee._controlledReadableByteStream,Ve=1;se.constructor!==DataView&&(Ve=se.constructor.BYTES_PER_ELEMENT);var ze=se.constructor,Ye={buffer:it(se.buffer),byteOffset:se.byteOffset,byteLength:se.byteLength,bytesFilled:0,elementSize:Ve,ctor:ze,readerType:"byob"};if(ee._pendingPullIntos.length>0)return ee._pendingPullIntos.push(Ye),y(pe);if(pe._state==="closed"){var Et=new se.constructor(Ye.buffer,Ye.byteOffset,0);return Promise.resolve(je(Et,!0))}if(ee._queueTotalSize>0){if(q(ee,Ye)===!0){var qt=v(Ye);return G(ee),Promise.resolve(je(qt,!1))}if(ee._closeRequested===!0){var or=new TypeError("Insufficient bytes to fill elements in the given buffer");return R(ee,or),Promise.reject(or)}}ee._pendingPullIntos.push(Ye);var Mr=y(pe);return H(ee),Mr}function de(ee,se){se.buffer=it(se.buffer);var pe=ee._controlledReadableByteStream;if(Q(pe)===!0)for(;P(pe)>0;)m(pe,xe(ee))}function be(ee,se,pe){if(pe.bytesFilled+se>pe.byteLength)throw new RangeError("bytesWritten out of range");if($(ee,se,pe),!(pe.bytesFilled0){var ze=pe.byteOffset+pe.bytesFilled,Ye=pe.buffer.slice(ze-Ve,ze);j(ee,Ye,0,Ye.byteLength)}pe.buffer=it(pe.buffer),pe.bytesFilled-=Ve,m(ee._controlledReadableByteStream,pe),J(ee)}}function Ee(ee,se){var pe=ee._pendingPullIntos[0];if(ee._controlledReadableByteStream._state==="closed"){if(se!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");de(ee,pe)}else be(ee,se,pe)}function xe(ee){var se=ee._pendingPullIntos.shift();return Y(ee),se}function Pe(ee){var se=ee._controlledReadableByteStream;return se._state==="readable"&&ee._closeRequested!==!0&&ee._started!==!1&&(N(se)===!0&&B(se)>0||Q(se)===!0&&P(se)>0||K(ee)>0)}function U(ee){var se=ee._controlledReadableByteStream;if(ee._queueTotalSize>0)ee._closeRequested=!0;else{if(ee._pendingPullIntos.length>0&&ee._pendingPullIntos[0].bytesFilled>0){var pe=new TypeError("Insufficient bytes to fill elements in the given buffer");throw R(ee,pe),pe}I(se)}}function E(ee,se){var pe=ee._controlledReadableByteStream,Ve=se.buffer,ze=se.byteOffset,Ye=se.byteLength,Et=it(Ve);N(pe)===!0?B(pe)===0?j(ee,Et,ze,Ye):x(pe,new Uint8Array(Et,ze,Ye),!1):Q(pe)===!0?(j(ee,Et,ze,Ye),J(ee)):j(ee,Et,ze,Ye)}function R(ee,se){var pe=ee._controlledReadableByteStream;A(ee),Ji(ee),O(pe,se)}function K(ee){var se=ee._controlledReadableByteStream._state;return se==="errored"?null:se==="closed"?0:ee._strategyHWM-ee._queueTotalSize}function ce(ee,se){if(se=Number(se),Fe(se)===!1)throw new RangeError("bytesWritten must be a finite");Ee(ee,se)}function ye(ee,se){var pe=ee._pendingPullIntos[0];if(pe.byteOffset+pe.bytesFilled!==se.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(pe.byteLength!==se.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");pe.buffer=se.buffer,Ee(ee,se.byteLength)}function ge(ee,se,pe,Ve,ze,Ye,Et){se._controlledReadableByteStream=ee,se._pullAgain=!1,se._pulling=!1,A(se),se._queue=se._queueTotalSize=void 0,Ji(se),se._closeRequested=!1,se._started=!1,se._strategyHWM=qe(Ye),se._pullAlgorithm=Ve,se._cancelAlgorithm=ze,se._autoAllocateChunkSize=Et,se._pendingPullIntos=[],ee._readableStreamController=se;var qt=pe();Promise.resolve(qt).then(function(){se._started=!0,H(se)},function(or){ee._state==="readable"&&R(se,or)}).catch(kt)}function $e(ee,se,pe){var Ve=Object.create(Ll.prototype),ze=He(se,"pull",0,[Ve]),Ye=He(se,"cancel",1,[]),Et=se.autoAllocateChunkSize;if(Et!==void 0&&(Number.isInteger(Et)===!1||Et<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");ge(ee,Ve,function(){return Je(se,"start",[Ve])},ze,Ye,pe,Et)}function ke(ee,se,pe){ee._associatedReadableByteStreamController=se,ee._view=pe}function Xe(ee){return new TypeError("ReadableStream.prototype."+ee+" can only be used on a ReadableStream")}function Ke(ee){return new TypeError("Cannot "+ee+" a stream using a released reader")}function ht(ee){return new TypeError("ReadableStreamDefaultReader.prototype."+ee+" can only be used on a ReadableStreamDefaultReader")}function rn(ee){ee._closedPromise=new Promise(function(se,pe){ee._closedPromise_resolve=se,ee._closedPromise_reject=pe})}function Vr(ee,se){ee._closedPromise=Promise.reject(se),ee._closedPromise_resolve=void 0,ee._closedPromise_reject=void 0}function nn(ee){ee._closedPromise=Promise.resolve(void 0),ee._closedPromise_resolve=void 0,ee._closedPromise_reject=void 0}function br(ee,se){ee._closedPromise_reject(se),ee._closedPromise_resolve=void 0,ee._closedPromise_reject=void 0}function Pn(ee,se){ee._closedPromise=Promise.reject(se)}function vr(ee){ee._closedPromise_resolve(void 0),ee._closedPromise_resolve=void 0,ee._closedPromise_reject=void 0}function wr(ee){return new TypeError("ReadableStreamBYOBReader.prototype."+ee+" can only be used on a ReadableStreamBYOBReader")}function an(ee){return new TypeError("ReadableStreamDefaultController.prototype."+ee+" can only be used on a ReadableStreamDefaultController")}function te(ee){return new TypeError("ReadableStreamBYOBRequest.prototype."+ee+" can only be used on a ReadableStreamBYOBRequest")}function _(ee){return new TypeError("ReadableByteStreamController.prototype."+ee+" can only be used on a ReadableByteStreamController")}function k(ee){try{Promise.prototype.then.call(ee,void 0,function(){})}catch{}}var le=function(){function ee(se,pe){for(var Ve=0;Ve0&&arguments[0]!==void 0?arguments[0]:{},pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ve=pe.size,ze=pe.highWaterMark;s(this,ee),d(this);var Ye=se.type;if(String(Ye)==="bytes"){if(ze===void 0&&(ze=0),ze=qe(ze),Ve!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");$e(this,se,ze)}else{if(Ye!==void 0)throw new RangeError("Invalid type is specified");ze===void 0&&(ze=1),ve(this,se,ze=qe(ze),Li(Ve))}}return le(ee,[{key:"cancel",value:function(pe){return h(this)===!1?Promise.reject(Xe("cancel")):p(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):w(this,pe)}},{key:"getReader",value:function(){var pe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mode;if(h(this)===!1)throw Xe("getReader");if(pe===void 0)return u(this);if((pe=String(pe))==="byob")return o(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(pe,Ve){var ze=pe.writable,Ye=pe.readable;if(ze===void 0||Ye===void 0)throw new TypeError("readable and writable arguments must be defined");return k(this.pipeTo(ze,Ve)),Ye}},{key:"pipeTo",value:function(pe){var Ve=this,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=ze.preventClose,Et=ze.preventAbort,qt=ze.preventCancel;if(h(this)===!1)return Promise.reject(Xe("pipeTo"));if(uu(pe)===!1)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(Ye=!!Ye,Et=!!Et,qt=!!qt,p(this)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(Jr(pe)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var or=u(this),Mr=ho(pe),rr=!1,Er=Promise.resolve();return new Promise(function(pi,Gn){function Dn(){return rr===!0?Promise.resolve():Mr._readyPromise.then(function(){return V(or).then(function(Yt){var Sn=Yt.value;Yt.done!==!0&&(Er=yn(Mr,Sn).catch(function(){}))})}).then(Dn)}function yi(){var Yt=Er;return Er.then(function(){return Yt!==Er?yi():void 0})}function $a(Yt,Sn,yo){Yt._state==="errored"?yo(Yt._storedError):Sn.catch(yo).catch(kt)}function wn(Yt,Sn,yo){function lu(){Yt().then(function(){return pc(Sn,yo)},function(Ey){return pc(!0,Ey)}).catch(kt)}rr!==!0&&(rr=!0,pe._state==="writable"&&Ma(pe)===!1?yi().then(lu):lu())}function po(Yt,Sn){rr!==!0&&(rr=!0,pe._state==="writable"&&Ma(pe)===!1?yi().then(function(){return pc(Yt,Sn)}).catch(kt):pc(Yt,Sn))}function pc(Yt,Sn){Yi(Mr),M(or),Yt?Gn(Sn):pi(void 0)}if($a(Ve,or._closedPromise,function(Yt){Et===!1?wn(function(){return Bi(pe,Yt)},!0,Yt):po(!0,Yt)}),$a(pe,Mr._closedPromise,function(Yt){qt===!1?wn(function(){return w(Ve,Yt)},!0,Yt):po(!0,Yt)}),function(Sn,yo,lu){Sn._state==="closed"?lu():yo.then(lu).catch(kt)}(Ve,or._closedPromise,function(){Ye===!1?wn(function(){return pn(Mr)}):po()}),Ma(pe)===!0||pe._state==="closed"){var yc=new TypeError("the destination writable stream closed before all data could be piped to it");qt===!1?wn(function(){return w(Ve,yc)},!0,yc):po(!0,yc)}Dn().catch(function(Yt){Er=Promise.resolve(),kt(Yt)})})}},{key:"tee",value:function(){if(h(this)===!1)throw Xe("tee");var pe=b(this);return Qe(pe)}},{key:"locked",get:function(){if(h(this)===!1)throw Xe("locked");return p(this)}}]),ee}();n.exports={CreateReadableByteStream:l,CreateReadableStream:c,ReadableStream:La,IsReadableStreamDisturbed:f,ReadableStreamDefaultControllerClose:_e,ReadableStreamDefaultControllerEnqueue:we,ReadableStreamDefaultControllerError:Ce,ReadableStreamDefaultControllerGetDesiredSize:ae,ReadableStreamDefaultControllerHasBackpressure:Ae,ReadableStreamDefaultControllerCanCloseOrEnqueue:Ie};var hi=function(){function ee(se){if(s(this,ee),h(se)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(p(se)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");W(this,se),this._readRequests=[]}return le(ee,[{key:"cancel",value:function(pe){return F(this)===!1?Promise.reject(ht("cancel")):this._ownerReadableStream===void 0?Promise.reject(Ke("cancel")):z(this,pe)}},{key:"read",value:function(){return F(this)===!1?Promise.reject(ht("read")):this._ownerReadableStream===void 0?Promise.reject(Ke("read from")):V(this)}},{key:"releaseLock",value:function(){if(F(this)===!1)throw ht("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}},{key:"closed",get:function(){return F(this)===!1?Promise.reject(ht("closed")):this._closedPromise}}]),ee}(),Qn=function(){function ee(se){if(s(this,ee),!h(se))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(me(se._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(p(se))throw new TypeError("This stream has already been locked for exclusive reading by another reader");W(this,se),this._readIntoRequests=[]}return le(ee,[{key:"cancel",value:function(pe){return D(this)?this._ownerReadableStream===void 0?Promise.reject(Ke("cancel")):z(this,pe):Promise.reject(wr("cancel"))}},{key:"read",value:function(pe){return D(this)?this._ownerReadableStream===void 0?Promise.reject(Ke("read from")):ArrayBuffer.isView(pe)?It(pe.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):pe.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):C(this,pe):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(wr("read"))}},{key:"releaseLock",value:function(){if(!D(this))throw wr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}},{key:"closed",get:function(){return D(this)?this._closedPromise:Promise.reject(wr("closed"))}}]),ee}(),cu=function(){function ee(){throw s(this,ee),new TypeError}return le(ee,[{key:"close",value:function(){if(ie(this)===!1)throw an("close");if(Ie(this)===!1)throw new TypeError("The stream is not in a state that permits close");_e(this)}},{key:"enqueue",value:function(pe){if(ie(this)===!1)throw an("enqueue");if(Ie(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return we(this,pe)}},{key:"error",value:function(pe){if(ie(this)===!1)throw an("error");var Ve=this._controlledReadableStream;if(Ve._state!=="readable")throw new TypeError("The stream is "+Ve._state+" and so cannot be errored");Ce(this,pe)}},{key:sn,value:function(pe){return Ji(this),this._cancelAlgorithm(pe)}},{key:Ss,value:function(){var pe=this._controlledReadableStream;if(this._queue.length>0){var Ve=At(this);return this._closeRequested===!0&&this._queue.length===0?I(pe):ne(this),Promise.resolve(je(Ve,!1))}var ze=S(pe);return ne(this),ze}},{key:"desiredSize",get:function(){if(ie(this)===!1)throw an("desiredSize");return ae(this)}}]),ee}(),Ba=function(){function ee(){throw s(this,ee),new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return le(ee,[{key:"respond",value:function(pe){if(L(this)===!1)throw te("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(It(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");ce(this._associatedReadableByteStreamController,pe)}},{key:"respondWithNewView",value:function(pe){if(L(this)===!1)throw te("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(pe))throw new TypeError("You can only respond with array buffer views");if(It(pe.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");ye(this._associatedReadableByteStreamController,pe)}},{key:"view",get:function(){if(L(this)===!1)throw te("view");return this._view}}]),ee}(),Ll=function(){function ee(){throw s(this,ee),new TypeError("ReadableByteStreamController constructor cannot be used directly")}return le(ee,[{key:"close",value:function(){if(me(this)===!1)throw _("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var pe=this._controlledReadableByteStream._state;if(pe!=="readable")throw new TypeError("The stream (in "+pe+" state) is not in the readable state and cannot be closed");U(this)}},{key:"enqueue",value:function(pe){if(me(this)===!1)throw _("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var Ve=this._controlledReadableByteStream._state;if(Ve!=="readable")throw new TypeError("The stream (in "+Ve+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(pe))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(It(pe.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");E(this,pe)}},{key:"error",value:function(pe){if(me(this)===!1)throw _("error");var Ve=this._controlledReadableByteStream;if(Ve._state!=="readable")throw new TypeError("The stream is "+Ve._state+" and so cannot be errored");R(this,pe)}},{key:sn,value:function(pe){return this._pendingPullIntos.length>0&&(this._pendingPullIntos[0].bytesFilled=0),Ji(this),this._cancelAlgorithm(pe)}},{key:Ss,value:function(){var pe=this._controlledReadableByteStream;if(this._queueTotalSize>0){var Ve=this._queue.shift();this._queueTotalSize-=Ve.byteLength,G(this);var ze=void 0;try{ze=new Uint8Array(Ve.buffer,Ve.byteOffset,Ve.byteLength)}catch(Mr){return Promise.reject(Mr)}return Promise.resolve(je(ze,!1))}var Ye=this._autoAllocateChunkSize;if(Ye!==void 0){var Et=void 0;try{Et=new ArrayBuffer(Ye)}catch(Mr){return Promise.reject(Mr)}var qt={buffer:Et,byteOffset:0,byteLength:Ye,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(qt)}var or=S(pe);return H(this),or}},{key:"byobRequest",get:function(){if(me(this)===!1)throw _("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var pe=this._pendingPullIntos[0],Ve=new Uint8Array(pe.buffer,pe.byteOffset+pe.bytesFilled,pe.byteLength-pe.bytesFilled),ze=Object.create(Ba.prototype);ke(ze,this,Ve),this._byobRequest=ze}return this._byobRequest}},{key:"desiredSize",get:function(){if(me(this)===!1)throw _("desiredSize");return K(this)}}]),ee}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"./writable-stream.js":15,"better-assert":16}],13:[function(r,n,a){function s(L,H){if(!(L instanceof H))throw new TypeError("Cannot call a class as a function")}function o(L,H,A){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},j=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,q=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){return 1},$=Object.create(ve.prototype),G=void 0;u($,new Promise(function(J){G=J}),m,v,j,q),p($,Object.create(me.prototype),H,A);var Y=L();return G(Y),$}function u(L,H,A,m,v,j){function q(){return H}L._writable=Ie(q,function(G){return I(L,G)},function(){return T(L)},function(){return O(L)},A,m),L._readable=ne(q,function(){return x(L)},function(G){return d(L,G),Promise.resolve()},v,j),L._backpressure=void 0,L._backpressureChangePromise=void 0,L._backpressureChangePromise_resolve=void 0,h(L,!0),L._transformStreamController=void 0}function c(L){return!!M(L)&&!!Object.prototype.hasOwnProperty.call(L,"_transformStreamController")}function l(L,H){N("TransformStreamError()"),L._readable._state==="readable"&&we(L._readable._readableStreamController,H),d(L,H)}function d(L,H){he(L._writable._writableStreamController,H),L._backpressure===!0&&h(L,!1)}function h(L,H){N("TransformStreamSetBackpressure() [backpressure = "+H+"]"),L._backpressureChangePromise!==void 0&&L._backpressureChangePromise_resolve(),L._backpressureChangePromise=new Promise(function(A){L._backpressureChangePromise_resolve=A}),L._backpressure=H}function f(L){return!!M(L)&&!!Object.prototype.hasOwnProperty.call(L,"_controlledTransformStream")}function p(L,H,A,m){H._controlledTransformStream=L,L._transformStreamController=H,H._transformAlgorithm=A,H._flushAlgorithm=m}function b(L,H){var A=Object.create(me.prototype),m=function($){try{return y(A,$),Promise.resolve()}catch(G){return Promise.reject(G)}},v=H.transform;if(v!==void 0){if(typeof v!="function")throw new TypeError("transform is not a method");m=function($){return z(v,H,[$,A]).catch(function(G){throw l(L,G),G})}}var j=W(H,"flush",0,[A]);p(L,A,m,j)}function y(L,H){N("TransformStreamDefaultControllerEnqueue()");var A=L._controlledTransformStream,m=A._readable._readableStreamController;if(ae(m)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{_e(m,H)}catch(v){throw d(A,v),A._readable._storedError}oe(m)!==A._backpressure&&h(A,!0)}function S(L,H){l(L._controlledTransformStream,H)}function w(L){N("TransformStreamDefaultControllerTerminate()");var H=L._controlledTransformStream,A=H._readable._readableStreamController;ae(A)===!0&&fe(A),d(H,new TypeError("TransformStream terminated"))}function I(L,H){N("TransformStreamDefaultSinkWriteAlgorithm()");var A=L._transformStreamController;return L._backpressure===!0?L._backpressureChangePromise.then(function(){var m=L._writable;if(m._state==="erroring")throw m._storedError;return A._transformAlgorithm(H)}):A._transformAlgorithm(H)}function O(L){return l(L,new TypeError("Writable side aborted")),Promise.resolve()}function T(L){N("TransformStreamDefaultSinkCloseAlgorithm()");var H=L._readable;return L._transformStreamController._flushAlgorithm().then(function(){if(H._state==="errored")throw H._storedError;var A=H._readableStreamController;ae(A)===!0&&fe(A)}).catch(function(A){throw l(L,A),H._storedError})}function x(L){return N("TransformStreamDefaultSourcePullAlgorithm()"),h(L,!1),L._backpressureChangePromise}function P(L){return new TypeError("TransformStreamDefaultController.prototype."+L+" can only be used on a TransformStreamDefaultController")}function B(L){return new TypeError("TransformStream.prototype."+L+" can only be used on a TransformStream")}var Q=function(){function L(H,A){for(var m=0;m0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(s(this,L),H.readableType!==void 0)throw new RangeError("Invalid readable type specified");if(H.writableType!==void 0)throw new RangeError("Invalid writable type specified");var v=A.size,j=V(v),q=A.highWaterMark;q===void 0&&(q=1),q=C(q);var $=m.size,G=V($),Y=m.highWaterMark;Y===void 0&&(Y=0),Y=C(Y);var J=void 0;u(this,new Promise(function(de){J=de}),q,j,Y,G),b(this,H);var re=F(H,"start",[this._transformStreamController]);J(re)}return Q(L,[{key:"readable",get:function(){if(c(this)===!1)throw B("readable");return this._readable}},{key:"writable",get:function(){if(c(this)===!1)throw B("writable");return this._writable}}]),L}(),me=function(){function L(){throw s(this,L),new TypeError("TransformStreamDefaultController instances cannot be created directly")}return Q(L,[{key:"enqueue",value:function(A){if(f(this)===!1)throw P("enqueue");y(this,A)}},{key:"error",value:function(A){if(f(this)===!1)throw P("error");S(this,A)}},{key:"terminate",value:function(){if(f(this)===!1)throw P("terminate");w(this)}},{key:"desiredSize",get:function(){if(f(this)===!1)throw P("desiredSize");var A=this._controlledTransformStream._readable._readableStreamController;return Ce(A)}}]),L}();n.exports={CreateTransformStream:o,TransformStream:ve}},{"./helpers.js":10,"./readable-stream.js":12,"./writable-stream.js":15,"better-assert":16,debug:18}],14:[function(r,n,a){var s=r("better-assert");a.rethrowAssertionErrorRejection=function(o){o&&o.constructor===s.AssertionError&&setTimeout(function(){throw o},0)}},{"better-assert":16}],15:[function(r,n,a){function s(_,k){if(!(_ instanceof k))throw new TypeError("Cannot call a class as a function")}function o(_){return new an(_)}function u(_,k,le,Te){var Se=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,He=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){return 1},je=Object.create(wr.prototype);return c(je),_e(je,Object.create(te.prototype),_,k,le,Te,Se,He),je}function c(_){_._state="writable",_._storedError=void 0,_._writer=void 0,_._writableStreamController=void 0,_._writeRequests=[],_._inFlightWriteRequest=void 0,_._closeRequest=void 0,_._inFlightCloseRequest=void 0,_._pendingAbortRequest=void 0,_._backpressure=!1}function l(_){return!!ke(_)&&!!Object.prototype.hasOwnProperty.call(_,"_writableStreamController")}function d(_){return _._writer!==void 0}function h(_,k){var le=_._state;if(le==="closed")return Promise.resolve(void 0);if(le==="errored")return Promise.reject(_._storedError);var Te=new TypeError("Requested to abort");if(_._pendingAbortRequest!==void 0)return Promise.reject(Te);var Se=!1;le==="erroring"&&(Se=!0,k=void 0);var He=new Promise(function(je,Fe){_._pendingAbortRequest={_resolve:je,_reject:Fe,_reason:k,_wasAlreadyErroring:Se}});return Se===!1&&b(_,Te),He}function f(_){return new Promise(function(k,le){var Te={_resolve:k,_reject:le};_._writeRequests.push(Te)})}function p(_,k){R("WritableStreamDealWithRejection(stream, %o)",k),_._state!=="writable"?y(_):b(_,k)}function b(_,k){R("WritableStreamStartErroring(stream, %o)",k);var le=_._writableStreamController;_._state="erroring",_._storedError=k;var Te=_._writer;Te!==void 0&&C(Te,k),x(_)===!1&&le._started===!0&&y(_)}function y(_){R("WritableStreamFinishErroring()"),_._state="errored",_._writableStreamController[vr]();var k=_._storedError,le=!0,Te=!1,Se=void 0;try{for(var He,je=_._writeRequests[Symbol.iterator]();!(le=(He=je.next()).done);le=!0)He.value._reject(k)}catch(Je){Te=!0,Se=Je}finally{try{!le&&je.return&&je.return()}finally{if(Te)throw Se}}if(_._writeRequests=[],_._pendingAbortRequest!==void 0){var Fe=_._pendingAbortRequest;if(_._pendingAbortRequest=void 0,Fe._wasAlreadyErroring===!0)return Fe._reject(k),void Q(_);_._writableStreamController[Pn](Fe._reason).then(function(){Fe._resolve(),Q(_)},function(Je){Fe._reject(Je),Q(_)})}else Q(_)}function S(_){_._inFlightWriteRequest._resolve(void 0),_._inFlightWriteRequest=void 0}function w(_,k){_._inFlightWriteRequest._reject(k),_._inFlightWriteRequest=void 0,p(_,k)}function I(_){_._inFlightCloseRequest._resolve(void 0),_._inFlightCloseRequest=void 0,_._state==="erroring"&&(_._storedError=void 0,_._pendingAbortRequest!==void 0&&(_._pendingAbortRequest._resolve(),_._pendingAbortRequest=void 0)),_._state="closed";var k=_._writer;k!==void 0&&J(k)}function O(_,k){_._inFlightCloseRequest._reject(k),_._inFlightCloseRequest=void 0,_._pendingAbortRequest!==void 0&&(_._pendingAbortRequest._reject(k),_._pendingAbortRequest=void 0),p(_,k)}function T(_){return _._closeRequest!==void 0||_._inFlightCloseRequest!==void 0}function x(_){return _._inFlightWriteRequest===void 0&&_._inFlightCloseRequest===void 0?(R("WritableStreamHasOperationMarkedInFlight() is false"),!1):(R("WritableStreamHasOperationMarkedInFlight() is true"),!0)}function P(_){_._inFlightCloseRequest=_._closeRequest,_._closeRequest=void 0}function B(_){_._inFlightWriteRequest=_._writeRequests.shift()}function Q(_){R("WritableStreamRejectCloseAndClosedPromiseIfNeeded()"),_._closeRequest!==void 0&&(_._closeRequest._reject(_._storedError),_._closeRequest=void 0);var k=_._writer;k!==void 0&&(G(k,_._storedError),k._closedPromise.catch(function(){}))}function N(_,k){var le=_._writer;le!==void 0&&k!==_._backpressure&&(k===!0?xe(le):U(le)),_._backpressure=k}function D(_){return!!ke(_)&&!!Object.prototype.hasOwnProperty.call(_,"_ownerWritableStream")}function F(_,k){return h(_._ownerWritableStream,k)}function W(_){var k=_._ownerWritableStream,le=k._state;if(le==="closed"||le==="errored")return Promise.reject(new TypeError("The stream (in "+le+" state) is not in the writable state and cannot be closed"));var Te=new Promise(function(Se,He){var je={_resolve:Se,_reject:He};k._closeRequest=je});return k._backpressure===!0&&le==="writable"&&U(_),Ce(k._writableStreamController),Te}function z(_){var k=_._ownerWritableStream,le=k._state;return T(k)===!0||le==="closed"?Promise.resolve():le==="errored"?Promise.reject(k._storedError):W(_)}function M(_,k){_._closedPromiseState==="pending"?G(_,k):Y(_,k),_._closedPromise.catch(function(){})}function C(_,k){R("WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, %o)",k),_._readyPromiseState==="pending"?Ee(_,k):Pe(_,k),_._readyPromise.catch(function(){})}function V(_){var k=_._ownerWritableStream,le=k._state;return le==="errored"||le==="erroring"?null:le==="closed"?0:ae(k._writableStreamController)}function ie(_){var k=_._ownerWritableStream,le=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");C(_,le),M(_,le),k._writer=void 0,_._ownerWritableStream=void 0}function ne(_,k){var le=_._ownerWritableStream,Te=le._writableStreamController,Se=oe(Te,k);if(le!==_._ownerWritableStream)return Promise.reject(v("write to"));var He=le._state;if(He==="errored")return Promise.reject(le._storedError);if(T(le)===!0||He==="closed")return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if(He==="erroring")return Promise.reject(le._storedError);var je=f(le);return Ae(Te,k,Se),je}function fe(_){return!!ke(_)&&!!Object.prototype.hasOwnProperty.call(_,"_controlledWritableStream")}function _e(_,k,le,Te,Se,He,je,Fe){k._controlledWritableStream=_,_._writableStreamController=k,k._queue=void 0,k._queueTotalSize=void 0,br(k),k._started=!1,k._strategySizeAlgorithm=Fe,k._strategyHWM=je,k._writeAlgorithm=Te,k._closeAlgorithm=Se,k._abortAlgorithm=He;var Je=L(k);N(_,Je);var It=le();Promise.resolve(It).then(function(){k._started=!0,Ie(k)},function(it){k._started=!0,p(_,it)}).catch(Ke)}function we(_,k,le,Te){var Se=Object.create(te.prototype),He=ce(k,"write",1,[Se]),je=ce(k,"close",0,[]),Fe=ce(k,"abort",1,[]);_e(_,Se,function(){return ye(k,"start",[Se])},He,je,Fe,le,Te)}function Ce(_){Vr(_,"close",0),Ie(_)}function oe(_,k){try{return _._strategySizeAlgorithm(k)}catch(le){return he(_,le),1}}function ae(_){return _._strategyHWM-_._queueTotalSize}function Ae(_,k,le){var Te={chunk:k};try{Vr(_,Te,le)}catch(He){return void he(_,He)}var Se=_._controlledWritableStream;T(Se)===!1&&Se._state==="writable"&&N(Se,L(_)),Ie(_)}function Ie(_){R("WritableStreamDefaultControllerAdvanceQueueIfNeeded()");var k=_._controlledWritableStream;if(_._started!==!1&&k._inFlightWriteRequest===void 0){var le=k._state;if(le!=="closed"&&le!=="errored")if(le!=="erroring"){if(_._queue.length!==0){var Te=nn(_);Te==="close"?ve(_):me(_,Te.chunk)}}else y(k)}}function he(_,k){_._controlledWritableStream._state==="writable"&&H(_,k)}function ve(_){var k=_._controlledWritableStream;P(k),rn(_),_._closeAlgorithm().then(function(){I(k)},function(le){O(k,le)}).catch(Ke)}function me(_,k){var le=_._controlledWritableStream;B(le),_._writeAlgorithm(k).then(function(){S(le);var Te=le._state;if(rn(_),T(le)===!1&&Te==="writable"){var Se=L(_);N(le,Se)}Ie(_)},function(Te){w(le,Te)}).catch(Ke)}function L(_){return ae(_)<=0}function H(_,k){b(_._controlledWritableStream,k)}function A(_){return new TypeError("WritableStream.prototype."+_+" can only be used on a WritableStream")}function m(_){return new TypeError("WritableStreamDefaultWriter.prototype."+_+" can only be used on a WritableStreamDefaultWriter")}function v(_){return new TypeError("Cannot "+_+" a stream using a released writer")}function j(_){_._closedPromise=new Promise(function(k,le){_._closedPromise_resolve=k,_._closedPromise_reject=le,_._closedPromiseState="pending"})}function q(_,k){_._closedPromise=Promise.reject(k),_._closedPromise_resolve=void 0,_._closedPromise_reject=void 0,_._closedPromiseState="rejected"}function $(_){_._closedPromise=Promise.resolve(void 0),_._closedPromise_resolve=void 0,_._closedPromise_reject=void 0,_._closedPromiseState="resolved"}function G(_,k){_._closedPromise_reject(k),_._closedPromise_resolve=void 0,_._closedPromise_reject=void 0,_._closedPromiseState="rejected"}function Y(_,k){_._closedPromise=Promise.reject(k),_._closedPromiseState="rejected"}function J(_){_._closedPromise_resolve(void 0),_._closedPromise_resolve=void 0,_._closedPromise_reject=void 0,_._closedPromiseState="resolved"}function re(_){R("defaultWriterReadyPromiseInitialize()"),_._readyPromise=new Promise(function(k,le){_._readyPromise_resolve=k,_._readyPromise_reject=le}),_._readyPromiseState="pending"}function de(_,k){R("defaultWriterReadyPromiseInitializeAsRejected(writer, %o)",k),_._readyPromise=Promise.reject(k),_._readyPromise_resolve=void 0,_._readyPromise_reject=void 0,_._readyPromiseState="rejected"}function be(_){R("defaultWriterReadyPromiseInitializeAsResolved()"),_._readyPromise=Promise.resolve(void 0),_._readyPromise_resolve=void 0,_._readyPromise_reject=void 0,_._readyPromiseState="fulfilled"}function Ee(_,k){R("defaultWriterReadyPromiseReject(writer, %o)",k),_._readyPromise_reject(k),_._readyPromise_resolve=void 0,_._readyPromise_reject=void 0,_._readyPromiseState="rejected"}function xe(_){R("defaultWriterReadyPromiseReset()"),_._readyPromise=new Promise(function(k,le){_._readyPromise_resolve=k,_._readyPromise_reject=le}),_._readyPromiseState="pending"}function Pe(_,k){R("defaultWriterReadyPromiseResetToRejected(writer, %o)",k),_._readyPromise=Promise.reject(k),_._readyPromiseState="rejected"}function U(_){R("defaultWriterReadyPromiseResolve()"),_._readyPromise_resolve(void 0),_._readyPromise_resolve=void 0,_._readyPromise_reject=void 0,_._readyPromiseState="fulfilled"}var E=function(){function _(k,le){for(var Te=0;Te0&&arguments[0]!==void 0?arguments[0]:{},le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=le.size,Se=le.highWaterMark,He=Se===void 0?1:Se;if(s(this,_),c(this),k.type!==void 0)throw new RangeError("Invalid type is specified");var je=$e(Te);we(this,k,He=ge(He),je)}return E(_,[{key:"abort",value:function(le){return l(this)===!1?Promise.reject(A("abort")):d(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):h(this,le)}},{key:"getWriter",value:function(){if(l(this)===!1)throw A("getWriter");return o(this)}},{key:"locked",get:function(){if(l(this)===!1)throw A("locked");return d(this)}}]),_}();n.exports={AcquireWritableStreamDefaultWriter:o,CreateWritableStream:u,IsWritableStream:l,IsWritableStreamLocked:d,WritableStream:wr,WritableStreamAbort:h,WritableStreamDefaultControllerErrorIfNeeded:he,WritableStreamDefaultWriterCloseWithErrorPropagation:z,WritableStreamDefaultWriterRelease:ie,WritableStreamDefaultWriterWrite:ne,WritableStreamCloseQueuedOrInFlight:T};var an=function(){function _(k){if(s(this,_),l(k)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(d(k)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=k,k._writer=this;var le=k._state;if(le==="writable")T(k)===!1&&k._backpressure===!0?re(this):be(this),j(this);else if(le==="erroring")de(this,k._storedError),this._readyPromise.catch(function(){}),j(this);else if(le==="closed")be(this),$(this);else{var Te=k._storedError;de(this,Te),this._readyPromise.catch(function(){}),q(this,Te),this._closedPromise.catch(function(){})}}return E(_,[{key:"abort",value:function(le){return D(this)===!1?Promise.reject(m("abort")):this._ownerWritableStream===void 0?Promise.reject(v("abort")):F(this,le)}},{key:"close",value:function(){if(D(this)===!1)return Promise.reject(m("close"));var le=this._ownerWritableStream;return le===void 0?Promise.reject(v("close")):T(le)===!0?Promise.reject(new TypeError("cannot close an already-closing stream")):W(this)}},{key:"releaseLock",value:function(){if(D(this)===!1)throw m("releaseLock");this._ownerWritableStream!==void 0&&ie(this)}},{key:"write",value:function(le){return D(this)===!1?Promise.reject(m("write")):this._ownerWritableStream===void 0?Promise.reject(v("write to")):ne(this,le)}},{key:"closed",get:function(){return D(this)===!1?Promise.reject(m("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(D(this)===!1)throw m("desiredSize");if(this._ownerWritableStream===void 0)throw v("desiredSize");return V(this)}},{key:"ready",get:function(){return D(this)===!1?Promise.reject(m("ready")):this._readyPromise}}]),_}(),te=function(){function _(){throw s(this,_),new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return E(_,[{key:"error",value:function(le){if(fe(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");this._controlledWritableStream._state==="writable"&&H(this,le)}},{key:Pn,value:function(le){return this._abortAlgorithm(le)}},{key:vr,value:function(){br(this)}}]),_}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"better-assert":16,debug:18}],16:[function(r,n,a){(function(s){function o(d){if(!d){var h=c(),f=h[1],p=f.getFileName(),b=f.getLineNumber(),y=(y=l.readFileSync(p,"utf8")).split(` -`)[b-1].match(/assert\((.*)\)/)[1];throw new u({message:y,stackStartFunction:h[0].getFunction()})}}var u=r("assert").AssertionError,c=r("callsite"),l=r("fs");n.exports={}.NO_ASSERT?function(){}:o}).call(this,r("_process"))},{_process:4,assert:2,callsite:17,fs:3}],17:[function(r,n,a){n.exports=function(){var s=Error.prepareStackTrace;Error.prepareStackTrace=function(c,l){return l};var o=new Error;Error.captureStackTrace(o,arguments.callee);var u=o.stack;return Error.prepareStackTrace=s,u}},{}],18:[function(r,n,a){(function(s){function o(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function u(f){var p=this.useColors;if(f[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+f[0]+(p?"%c ":" ")+"+"+a.humanize(this.diff),p){var b="color: "+this.color;f.splice(1,0,b,"color: inherit");var y=0,S=0;f[0].replace(/%[a-zA-Z%]/g,function(w){w!=="%%"&&(y++,w==="%c"&&(S=y))}),f.splice(S,0,b)}}function c(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function l(f){try{f==null?a.storage.removeItem("debug"):a.storage.debug=f}catch{}}function d(){var f;try{f=a.storage.debug}catch{}return!f&&typeof s<"u"&&"env"in s&&(f={}.DEBUG),f}function h(){try{return window.localStorage}catch{}}a=n.exports=r("./debug"),a.log=c,a.formatArgs=u,a.save=l,a.load=d,a.useColors=o,a.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:h(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],a.formatters.j=function(f){try{return JSON.stringify(f)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}},a.enable(d())}).call(this,r("_process"))},{"./debug":19,_process:4}],19:[function(r,n,a){function s(f){var p,b=0;for(p in f)b=(b<<5)-b+f.charCodeAt(p),b|=0;return a.colors[Math.abs(b)%a.colors.length]}function o(f){function p(){if(p.enabled){var y=p,S=+new Date,w=S-(b||S);y.diff=w,y.prev=b,y.curr=S,b=S;for(var I=new Array(arguments.length),O=0;O100)){var y=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(b);if(y){var S=parseFloat(y[1]);switch((y[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return S*p;case"days":case"day":case"d":return S*f;case"hours":case"hour":case"hrs":case"hr":case"h":return S*h;case"minutes":case"minute":case"mins":case"min":case"m":return S*d;case"seconds":case"second":case"secs":case"sec":case"s":return S*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return S;default:return}}}}function o(b){return b>=f?Math.round(b/f)+"d":b>=h?Math.round(b/h)+"h":b>=d?Math.round(b/d)+"m":b>=l?Math.round(b/l)+"s":b+"ms"}function u(b){return c(b,f,"day")||c(b,h,"hour")||c(b,d,"minute")||c(b,l,"second")||b+" ms"}function c(b,y,S){if(!(b0)return s(b);if(S==="number"&&isNaN(b)===!1)return y.long?u(b):o(b);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(b))}},{}]},{},[1])(1)})}(pT)),pT.exports}const Gs=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Gs.writable=t=>Gs(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Gs.readable=t=>Gs(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Gs.duplex=t=>Gs.writable(t)&&Gs.readable(t);Gs.transform=t=>Gs.duplex(t)&&typeof t._transform=="function";var JF=Gs,YF={exports:{}};(function(t){t.exports=e,t.exports.WEBSTREAM_SUPPORT=typeof ReadableStream<"u";function e(r){if(!t.exports.WEBSTREAM_SUPPORT)throw new Error("No web ReadableStream support");var n=!1,a={};function s(c){a.data=d,a.end=d,a.end=h,a.close=h,a.error=h;for(var l in a)r.on(l,a[l]);r.pause();function d(f){n||(c.enqueue(f),r.pause())}function h(f){if(!n){n=!0;for(var p in a)r.removeListener(p,a[p]);f?c.error(f):c.close()}}}function o(){n||r.resume()}function u(){n=!0;for(var c in a)r.removeListener(c,a[c]);r.push(null),r.pause(),r.destroy?r.destroy():r.close&&r.close()}return new ReadableStream({start:s,pull:o,cancel:u})}})(YF);var Wne=YF.exports;Object.defineProperty(G_,"__esModule",{value:!0});G_.ActorHttp=void 0;const Xne=et,Kne=B0;globalThis.ReadableStream||(globalThis.ReadableStream=zne().ReadableStream);const Jne=JF,Yne=Wne;class Zne extends Xne.Actor{constructor(e){super(e)}static toNodeReadable(e){return Jne(e)||e===null?e:new Kne.ReadableWebToNodeStream(e)}static toWebReadableStream(e){return Yne(e)}static headersToHash(e){const r={};return e.forEach((n,a)=>{r[a]=n}),r}}G_.ActorHttp=Zne;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(G_,t)})(ms);(function(t){(function(e){var r=typeof globalThis<"u"&&globalThis||typeof t<"u"&&t||typeof r<"u"&&r,n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(D){return D&&DataView.prototype.isPrototypeOf(D)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(D){return D&&s.indexOf(Object.prototype.toString.call(D))>-1};function u(D){if(typeof D!="string"&&(D=String(D)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(D)||D==="")throw new TypeError('Invalid character in header field name: "'+D+'"');return D.toLowerCase()}function c(D){return typeof D!="string"&&(D=String(D)),D}function l(D){var F={next:function(){var W=D.shift();return{done:W===void 0,value:W}}};return n.iterable&&(F[Symbol.iterator]=function(){return F}),F}function d(D){this.map={},D instanceof d?D.forEach(function(F,W){this.append(W,F)},this):Array.isArray(D)?D.forEach(function(F){this.append(F[0],F[1])},this):D&&Object.getOwnPropertyNames(D).forEach(function(F){this.append(F,D[F])},this)}d.prototype.append=function(D,F){D=u(D),F=c(F);var W=this.map[D];this.map[D]=W?W+", "+F:F},d.prototype.delete=function(D){delete this.map[u(D)]},d.prototype.get=function(D){return D=u(D),this.has(D)?this.map[D]:null},d.prototype.has=function(D){return this.map.hasOwnProperty(u(D))},d.prototype.set=function(D,F){this.map[u(D)]=c(F)},d.prototype.forEach=function(D,F){for(var W in this.map)this.map.hasOwnProperty(W)&&D.call(F,this.map[W],W,this)},d.prototype.keys=function(){var D=[];return this.forEach(function(F,W){D.push(W)}),l(D)},d.prototype.values=function(){var D=[];return this.forEach(function(F){D.push(F)}),l(D)},d.prototype.entries=function(){var D=[];return this.forEach(function(F,W){D.push([W,F])}),l(D)},n.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function h(D){if(D.bodyUsed)return Promise.reject(new TypeError("Already read"));D.bodyUsed=!0}function f(D){return new Promise(function(F,W){D.onload=function(){F(D.result)},D.onerror=function(){W(D.error)}})}function p(D){var F=new FileReader,W=f(F);return F.readAsArrayBuffer(D),W}function b(D){var F=new FileReader,W=f(F);return F.readAsText(D),W}function y(D){for(var F=new Uint8Array(D),W=new Array(F.length),z=0;z-1?F:D}function T(D,F){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');F=F||{};var W=F.body;if(D instanceof T){if(D.bodyUsed)throw new TypeError("Already read");this.url=D.url,this.credentials=D.credentials,F.headers||(this.headers=new d(D.headers)),this.method=D.method,this.mode=D.mode,this.signal=D.signal,!W&&D._bodyInit!=null&&(W=D._bodyInit,D.bodyUsed=!0)}else this.url=String(D);if(this.credentials=F.credentials||this.credentials||"same-origin",(F.headers||!this.headers)&&(this.headers=new d(F.headers)),this.method=O(F.method||this.method||"GET"),this.mode=F.mode||this.mode||null,this.signal=F.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&W)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(W),(this.method==="GET"||this.method==="HEAD")&&(F.cache==="no-store"||F.cache==="no-cache")){var z=/([?&])_=[^&]*/;if(z.test(this.url))this.url=this.url.replace(z,"$1_="+new Date().getTime());else{var M=/\?/;this.url+=(M.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})};function x(D){var F=new FormData;return D.trim().split("&").forEach(function(W){if(W){var z=W.split("="),M=z.shift().replace(/\+/g," "),C=z.join("=").replace(/\+/g," ");F.append(decodeURIComponent(M),decodeURIComponent(C))}}),F}function P(D){var F=new d,W=D.replace(/\r?\n[\t ]+/g," ");return W.split("\r").map(function(z){return z.indexOf(` -`)===0?z.substr(1,z.length):z}).forEach(function(z){var M=z.split(":"),C=M.shift().trim();if(C){var V=M.join(":").trim();F.append(C,V)}}),F}w.call(T.prototype);function B(D,F){if(!(this instanceof B))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');F||(F={}),this.type="default",this.status=F.status===void 0?200:F.status,this.ok=this.status>=200&&this.status<300,this.statusText=F.statusText===void 0?"":""+F.statusText,this.headers=new d(F.headers),this.url=F.url||"",this._initBody(D)}w.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},B.error=function(){var D=new B(null,{status:0,statusText:""});return D.type="error",D};var Q=[301,302,303,307,308];B.redirect=function(D,F){if(Q.indexOf(F)===-1)throw new RangeError("Invalid status code");return new B(null,{status:F,headers:{location:D}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(F,W){this.message=F,this.name=W;var z=Error(F);this.stack=z.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function N(D,F){return new Promise(function(W,z){var M=new T(D,F);if(M.signal&&M.signal.aborted)return z(new e.DOMException("Aborted","AbortError"));var C=new XMLHttpRequest;function V(){C.abort()}C.onload=function(){var ne={status:C.status,statusText:C.statusText,headers:P(C.getAllResponseHeaders()||"")};ne.url="responseURL"in C?C.responseURL:ne.headers.get("X-Request-URL");var fe="response"in C?C.response:C.responseText;setTimeout(function(){W(new B(fe,ne))},0)},C.onerror=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},C.ontimeout=function(){setTimeout(function(){z(new TypeError("Network request failed"))},0)},C.onabort=function(){setTimeout(function(){z(new e.DOMException("Aborted","AbortError"))},0)};function ie(ne){try{return ne===""&&r.location.href?r.location.href:ne}catch{return ne}}C.open(M.method,ie(M.url),!0),M.credentials==="include"?C.withCredentials=!0:M.credentials==="omit"&&(C.withCredentials=!1),"responseType"in C&&(n.blob?C.responseType="blob":n.arrayBuffer&&M.headers.get("Content-Type")&&M.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(C.responseType="arraybuffer")),F&&typeof F.headers=="object"&&!(F.headers instanceof d)?Object.getOwnPropertyNames(F.headers).forEach(function(ne){C.setRequestHeader(ne,c(F.headers[ne]))}):M.headers.forEach(function(ne,fe){C.setRequestHeader(fe,ne)}),M.signal&&(M.signal.addEventListener("abort",V),C.onreadystatechange=function(){C.readyState===4&&M.signal.removeEventListener("abort",V)}),C.send(typeof M._bodyInit>"u"?null:M._bodyInit)})}return N.polyfill=!0,r.fetch||(r.fetch=N,r.Headers=d,r.Request=T,r.Response=B),e.Headers=d,e.Request=T,e.Response=B,e.fetch=N,e})({})})(typeof self<"u"?self:g);var z_={};Object.defineProperty(z_,"__esModule",{value:!0});z_.FetchInitPreprocessor=void 0;const eie=ms;class tie{async handle(e){if(e.headers){const r=new Headers(e.headers);r.has("user-agent")&&r.delete("user-agent"),e.headers=r}if(e!=null&&e.headers&&"append"in e.headers&&(e.headers=eie.ActorHttp.headersToHash(e.headers)),e.body&&typeof e.body!="string"&&"getReader"in e.body){const r=e.body.getReader(),n=[];for(;;){const{done:a,value:s}=await r.read();if(a)break;n.push(s)}e.body=n.join("")}return{keepalive:!e.body,...e}}async createAbortController(){return new AbortController}}z_.FetchInitPreprocessor=tie;Object.defineProperty(Q_,"__esModule",{value:!0});Q_.ActorHttpFetch=void 0;const yT=ms,To=Ht,rie=z_;class Wb extends yT.ActorHttp{constructor(e){super(e),this.userAgent=Wb.createUserAgent(),this.fetchInitPreprocessor=new rie.FetchInitPreprocessor(e.agentOptions)}static createUserAgent(){return`Comunica/actor-http-fetch (${typeof globalThis.navigator>"u"?`Node.js ${process.version}; ${process.platform}`:`Browser-${globalThis.navigator.userAgent}`})`}async test(e){return{time:Number.POSITIVE_INFINITY}}static async getResponse(e,r,n,a,s,o){var l;let u,c=a+1;for(;c-- >0;)try{const d=await e(r,n);if(o&&d.status>=500&&d.status<600)throw new Error(`Server replied with response code ${d.status}: ${d.statusText}`);return d}catch(d){if(u=d,(l=n.signal)!=null&&l.aborted)throw d;c>0&&await new Promise((h,f)=>{var p;setTimeout(h,s),(p=n.signal)==null||p.addEventListener("abort",()=>{f(new Error("Fetch aborted by timeout."))})})}throw a>0?new Error(`Number of fetch retries (${a}) exceeded. Last error: ${String(u)}`):u}async run(e){var c,l,d,h,f,p,b,y;const r=((c=e.init)==null?void 0:c.headers)??{};e.init=e.init??{},e.init.headers=new Headers(r),e.init.headers.has("user-agent")||e.init.headers.append("user-agent",this.userAgent);const n=e.context.get(To.KeysHttp.auth);n&&e.init.headers.append("Authorization",`Basic ${Buffer.from(n).toString("base64")}`),this.logInfo(e.context,`Requesting ${typeof e.input=="string"?e.input:e.input.url}`,()=>({headers:yT.ActorHttp.headersToHash(new Headers(e.init.headers)),method:e.init.method||"GET"})),(l=e.init)!=null&&l.headers&&"append"in e.init.headers&&e.context.has(To.KeysHttp.fetch)&&(e.init.headers=yT.ActorHttp.headersToHash(e.init.headers));let a={...e.init};e.context.get(To.KeysHttp.includeCredentials)&&(a.credentials="include");const s=(d=e.context)==null?void 0:d.get(To.KeysHttp.httpTimeout);let o,u;if(s!==void 0){const S=await this.fetchInitPreprocessor.createAbortController();a.signal=S.signal,u=()=>S.abort(),o=setTimeout(()=>u(),s)}try{a=await this.fetchInitPreprocessor.handle(a);const S=((h=e.context)==null?void 0:h.get(To.KeysHttp.httpRetryCount))??0,w=((f=e.context)==null?void 0:f.get(To.KeysHttp.httpRetryDelay))??0,I=((p=e.context)==null?void 0:p.get(To.KeysHttp.httpRetryOnServerError))??!1,O=(b=e.context)==null?void 0:b.get(To.KeysHttp.fetch),T=await Wb.getResponse(O||fetch,e.input,a,S,w,I);return o!==void 0&&((((y=e.context)==null?void 0:y.get(To.KeysHttp.httpBodyTimeout))||!1)&&T.body?(u=()=>{var P;return(P=T.body)==null?void 0:P.cancel(new Error(`HTTP timeout when reading the body of ${T.url}. -This error can be disabled by modifying the 'httpBodyTimeout' and/or 'httpTimeout' options.`))},T.body.on("close",()=>{clearTimeout(o)})):clearTimeout(o)),T.body&&!T.body.cancel&&(T.body.cancel=async x=>{T.body.destroy(x),o!==void 0&&clearTimeout(o)}),T}catch(S){throw o!==void 0&&clearTimeout(o),S}}}Q_.ActorHttpFetch=Wb;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Q_,t)})(KF);var ZF={},W_={},X_={},K_={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.ActorDereferenceBase=zs.isHardError=zs.emptyReadable=void 0;const nie=Ht,iie=et,aie=Kt;function eM(){const t=new aie.Readable;return t.push(null),t}zs.emptyReadable=eM;function tM(t){return!t.get(nie.KeysInitQuery.lenient)}zs.isHardError=tM;class sie extends iie.Actor{constructor(e){super(e)}async dereferenceErrorHandler(e,r,n){if(tM(e.context))throw r;return this.logError(e.context,r.message),{...n,data:eM()}}}zs.ActorDereferenceBase=sie;Object.defineProperty(K_,"__esModule",{value:!0});K_.ActorDereference=void 0;const oie=zs;class uie extends oie.ActorDereferenceBase{constructor(e){super(e)}async handleDereferenceErrors(e,r,n,a=0){return this.dereferenceErrorHandler(e,r,{url:e.url,exists:!1,headers:n,requestTime:a})}}K_.ActorDereference=uie;var cf={};Object.defineProperty(cf,"__esModule",{value:!0});cf.ActorDereferenceParse=cf.getMediaTypeFromExtension=void 0;const cie=Kt,fN=zs;function rM(t,e){const r=t.lastIndexOf(".");return r>=0&&(e==null?void 0:e[t.slice(r+1)])||""}cf.getMediaTypeFromExtension=rM;class lie extends fN.ActorDereferenceBase{constructor(e){super(e)}async test(e){return!0}handleDereferenceStreamErrors(e,r){return(0,fN.isHardError)(e.context)||(r.on("error",n=>{this.logError(e.context,n.message,()=>({url:e.url})),r.push(null)}),r=r.pipe(new cie.PassThrough({objectMode:!0}))),r}async run(e){var s,o;const{context:r}=e,n=await this.mediatorDereference.mediate({...e,mediaTypes:async()=>{var u,c;return(c=await((u=this.mediatorParseMediatypes)==null?void 0:u.mediate({context:r,mediaTypes:!0})))==null?void 0:c.mediaTypes}});let a;try{a=(await this.mediatorParse.mediate({context:r,handle:{context:r,...n,metadata:await this.getMetadata(n)},handleMediaType:n.mediaType||rM(n.url,this.mediaMappings)||e.mediaType})).handle,a.data=this.handleDereferenceStreamErrors(e,a.data)}catch(u){await((o=(s=n.data).close)==null?void 0:o.call(s)),a=await this.dereferenceErrorHandler(e,u,{})}return{...n,...a}}}cf.ActorDereferenceParse=lie;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(K_,t),r(cf,t),r(zs,t)})(X_);Object.defineProperty(W_,"__esModule",{value:!0});W_.ActorDereferenceFallback=void 0;const die=X_;class fie extends die.ActorDereference{constructor(e){super(e)}async test(e){return!0}async run(e){return this.handleDereferenceErrors(e,new Error(`Could not dereference '${e.url}'`))}}W_.ActorDereferenceFallback=fie;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(W_,t)})(ZF);var nM={},J_={},Rl={},Y_={};Object.defineProperty(Y_,"__esModule",{value:!0});Y_.ActorRdfParse=void 0;const hie=El;class pie extends hie.ActorAbstractMediaTyped{constructor(e){super(e)}}Y_.ActorRdfParse=pie;var Z_={};Object.defineProperty(Z_,"__esModule",{value:!0});Z_.ActorRdfParseFixedMediaTypes=void 0;const yie=El;class bie extends yie.ActorAbstractMediaTypedFixed{constructor(e){super(e)}async testHandleChecked(e){return!0}}Z_.ActorRdfParseFixedMediaTypes=bie;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Y_,t),r(Z_,t)})(Rl);Object.defineProperty(J_,"__esModule",{value:!0});J_.ActorRdfParseN3=void 0;const mie=Rl,gie=au;class _ie extends mie.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){var s;e.data.on("error",o=>a.emit("error",o));const a=e.data.pipe(new gie.StreamParser({baseIRI:(s=e.metadata)==null?void 0:s.baseIRI,format:r.endsWith("n3")?r:`${r}*`}));return{data:a,metadata:{triples:r==="text/turtle"||r==="application/n-triples"||r==="text/n3"}}}}J_.ActorRdfParseN3=_ie;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(J_,t)})(nM);var iM={},ev={},aM={},lf={},hl={},sM={};(function(t){/** - * Character classes and associated utilities for the 5th edition of XML 1.0. - * - * @author Louis-Dominique Dubeau - * @license MIT - * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR=` -\r -퟿-�𐀀-􏿿`,t.S=` \r -`,t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");var e=9,r=10,n=13,a=32;t.S_LIST=[a,r,n,e];function s(l){return l>=a&&l<=55295||l===r||l===n||l===e||l>=57344&&l<=65533||l>=65536&&l<=1114111}t.isChar=s;function o(l){return l===a||l===r||l===n||l===e}t.isS=o;function u(l){return l>=65&&l<=90||l>=97&&l<=122||l===58||l===95||l===8204||l===8205||l>=192&&l<=214||l>=216&&l<=246||l>=248&&l<=767||l>=880&&l<=893||l>=895&&l<=8191||l>=8304&&l<=8591||l>=11264&&l<=12271||l>=12289&&l<=55295||l>=63744&&l<=64975||l>=65008&&l<=65533||l>=65536&&l<=983039}t.isNameStartChar=u;function c(l){return u(l)||l>=48&&l<=57||l===45||l===46||l===183||l>=768&&l<=879||l>=8255&&l<=8256}t.isNameChar=c})(sM);var oM={};(function(t){/** - * Character classes and associated utilities for the 2nd edition of XML 1.1. - * - * @author Louis-Dominique Dubeau - * @license MIT - * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR="-퟿-�𐀀-􏿿",t.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",t.S=` \r -`,t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.RESTRICTED_CHAR_RE=new RegExp("^["+t.RESTRICTED_CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");var e=9,r=10,n=13,a=32;t.S_LIST=[a,r,n,e];function s(h){return h>=1&&h<=55295||h>=57344&&h<=65533||h>=65536&&h<=1114111}t.isChar=s;function o(h){return h>=1&&h<=8||h===11||h===12||h>=14&&h<=31||h>=127&&h<=132||h>=134&&h<=159}t.isRestrictedChar=o;function u(h){return h===9||h===10||h===13||h>31&&h<127||h===133||h>159&&h<=55295||h>=57344&&h<=65533||h>=65536&&h<=1114111}t.isCharAndNotRestricted=u;function c(h){return h===a||h===r||h===n||h===e}t.isS=c;function l(h){return h>=65&&h<=90||h>=97&&h<=122||h===58||h===95||h===8204||h===8205||h>=192&&h<=214||h>=216&&h<=246||h>=248&&h<=767||h>=880&&h<=893||h>=895&&h<=8191||h>=8304&&h<=8591||h>=11264&&h<=12271||h>=12289&&h<=55295||h>=63744&&h<=64975||h>=65008&&h<=65533||h>=65536&&h<=983039}t.isNameStartChar=l;function d(h){return l(h)||h>=48&&h<=57||h===45||h===46||h===183||h>=768&&h<=879||h>=8255&&h<=8256}t.isNameChar=d})(oM);var uM={};(function(t){/** - * Character class utilities for XML NS 1.0 edition 3. - * - * @author Louis-Dominique Dubeau - * @license MIT - * @copyright Louis-Dominique Dubeau - */Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u");function e(n){return n>=65&&n<=90||n===95||n>=97&&n<=122||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=767||n>=880&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}t.isNCNameStartChar=e;function r(n){return e(n)||n===45||n===46||n>=48&&n<=57||n===183||n>=768&&n<=879||n>=8255&&n<=8256}t.isNCNameChar=r})(uM);Object.defineProperty(hl,"__esModule",{value:!0});hl.SaxesParser=hl.EVENTS=void 0;const qf=sM,vie=oM,Vx=uM;var $i=qf.isS,wie=qf.isChar,lh=qf.isNameStartChar,hN=qf.isNameChar,cM=qf.S_LIST,Sie=qf.NAME_RE,Tie=vie.isChar,Eie=Vx.isNCNameStartChar,Oie=Vx.isNCNameChar,Aie=Vx.NC_NAME_RE;const bb="http://www.w3.org/XML/1998/namespace",Td="http://www.w3.org/2000/xmlns/",xie={__proto__:null,xml:bb,xmlns:Td},Rie={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},Br=-1,xs=-2,pN=0,Iie=1,bT=2,Pie=3,Zl=4,Die=5,Nie=6,jie=7,mT=8,Cie=9,Fie=10,Mie=11,Lie=12,gi=13,d1=14,gT=15,Bie=16,_T=17,$ie=18,Uie=19,vT=20,qie=21,Vie=22,Hie=23,yN=24,wT=25,f1=26,bN=27,kie=28,Qie=29,mN=30,Gie=31,zie=32,Ec=33,Wie=34,ST=35,dh=36,TT=37,Xie=38,gN=39,_N=40,Kie=41,vN=42,Jie=43,Yie=44,ET=9,Qa=10,OT=13,wN=32,SN=33,lM=34,Zh=38,dM=39,h1=45,p1=47,Zie=59,Du=60,pd=61,bn=62,Bn=63,fM=91,yd=93,TN=133,EN=8232,y1=t=>t===lM||t===dM,hM=[lM,dM],eae=[...hM,fM,bn],tae=[...hM,Du,yd],rae=[pd,Bn,...cM],nae=[...cM,bn,Zh,Du];function _O(t,e,r){switch(e){case"xml":r!==bb&&t.fail(`xml prefix must be bound to ${bb}.`);break;case"xmlns":r!==Td&&t.fail(`xmlns prefix must be bound to ${Td}.`);break}switch(r){case Td:t.fail(e===""?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${Td}.`);break;case bb:switch(e){case"xml":break;case"":t.fail(`the default namespace may not be set to ${r}.`);break;default:t.fail("may not assign the xml namespace to another prefix.")}break}}function iae(t,e){for(const r of Object.keys(e))_O(t,r,e[r])}const aae=t=>Aie.test(t),sae=t=>Sie.test(t),Oc=0,ON=1,AT=2;hl.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const AN={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class oae{get closed(){return this._closed}constructor(e){this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;const r=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,r){this.nameStartCheck=Eie,this.nameCheck=Oie,this.isName=aae,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},xie);const n=this.opt.additionalNamespaces;n!=null&&(iae(this,n),Object.assign(this.ns,n))}else this.nameStartCheck=lh,this.nameCheck=hN,this.isName=sae,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=Oc,this.attribList=[];const{fragmentOpt:r}=this;this.state=r?gi:pN,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=r,this.xmlDeclPossible=!r,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:n}=this.opt;if(n===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");n="1.0"}this.setXMLVersion(n),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Rie),(e=this.readyHandler)===null||e===void 0||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,r){this[AN[e]]=r}off(e){this[AN[e]]=void 0}makeError(e){var r;let n=(r=this.fileName)!==null&&r!==void 0?r:"";return this.trackPosition&&(n.length>0&&(n+=":"),n+=`${this.line}:${this.column}`),n.length>0&&(n+=": "),new Error(n+e)}fail(e){const r=this.makeError(e),n=this.errorHandler;if(n===void 0)throw r;return n(r),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let r=!1;e===null?(r=!0,e=""):typeof e=="object"&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length;const a=e.charCodeAt(n-1);!r&&(a===OT||a>=55296&&a<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));const{stateTable:s}=this;for(this.chunk=e,this.i=0;this.i=e.length)return Br;const n=e.charCodeAt(r);if(this.column++,n<55296){if(n>=wN||n===ET)return n;switch(n){case Qa:return this.line++,this.column=0,this.positionAtNewLine=this.position,Qa;case OT:return e.charCodeAt(r+1)===Qa&&(this.i=r+2),this.line++,this.column=0,this.positionAtNewLine=this.position,xs;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const a=65536+(n-55296)*1024+(e.charCodeAt(r+1)-56320);return this.i=r+2,a>1114111&&this.fail("disallowed character."),a}getCode11(){const{chunk:e,i:r}=this;if(this.prevI=r,this.i=r+1,r>=e.length)return Br;const n=e.charCodeAt(r);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==EN||n===ET)return n;switch(n){case Qa:return this.line++,this.column=0,this.positionAtNewLine=this.position,Qa;case OT:{const s=e.charCodeAt(r+1);(s===Qa||s===TN)&&(this.i=r+2)}case TN:case EN:return this.line++,this.column=0,this.positionAtNewLine=this.position,xs;default:return this.fail("disallowed character."),n}}if(n>56319)return n>=57344&&n<=65533||this.fail("disallowed character."),n;const a=65536+(n-55296)*1024+(e.charCodeAt(r+1)-56320);return this.i=r+2,a>1114111&&this.fail("disallowed character."),a}getCodeNorm(){const e=this.getCode();return e===xs?Qa:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:r}=this;const{chunk:n}=this;for(;;){const a=this.getCode(),s=a===xs,o=s?Qa:a;if(o===Br||e.includes(o))return this.text+=n.slice(r,this.prevI),o;s&&(this.text+=`${n.slice(r,this.prevI)} -`,r=this.i)}}captureToChar(e){let{i:r}=this;const{chunk:n}=this;for(;;){let a=this.getCode();switch(a){case xs:this.text+=`${n.slice(r,this.prevI)} -`,r=this.i,a=Qa;break;case Br:return this.text+=n.slice(r),!1}if(a===e)return this.text+=n.slice(r,this.prevI),!0}}captureNameChars(){const{chunk:e,i:r}=this;for(;;){const n=this.getCode();if(n===Br)return this.name+=e.slice(r),Br;if(!hN(n))return this.name+=e.slice(r,this.prevI),n===xs?Qa:n}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(e===Br||!$i(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e==="1.0"?(this.isChar=wie,this.getCode=this.getCode10):(this.isChar=Tie,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=Iie}sBeginWhitespace(){const e=this.i,r=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),r){case Du:if(this.state=gT,this.text.length!==0)throw new Error("no-empty text at start");break;case Br:break;default:this.unget(),this.state=gi,this.xmlDeclPossible=!1}}sDoctype(){var e;const r=this.captureTo(eae);switch(r){case bn:{(e=this.doctypeHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=gi,this.doctype=!0;break}case Br:break;default:this.text+=String.fromCodePoint(r),r===fM?this.state=Zl:y1(r)&&(this.state=Pie,this.q=r)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=bT)}sDTD(){const e=this.captureTo(tae);e!==Br&&(this.text+=String.fromCodePoint(e),e===yd?this.state=bT:e===Du?this.state=Nie:y1(e)&&(this.state=Die,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=Zl,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case SN:this.state=jie,this.openWakaBang="";break;case Bn:this.state=Mie;break;default:this.state=Zl}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),r=this.openWakaBang+=e;this.text+=e,r!=="-"&&(this.state=r==="--"?mT:Zl,this.openWakaBang="")}sDTDComment(){this.captureToChar(h1)&&(this.text+="-",this.state=Cie)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===h1?Fie:mT}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===bn?this.state=Zl:(this.fail("malformed comment."),this.state=mT)}sDTDPI(){this.captureToChar(Bn)&&(this.text+="?",this.state=Lie)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===bn&&(this.state=Zl)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:r}=this;e:for(;;)switch(this.getCode()){case xs:this.entity+=`${r.slice(e,this.prevI)} -`,e=this.i;break;case Zie:{const{entityReturnState:n}=this,a=this.entity+r.slice(e,this.prevI);this.state=n;let s;a===""?(this.fail("empty entity name."),s="&;"):(s=this.parseEntity(a),this.entity=""),(n!==gi||this.textHandler!==void 0)&&(this.text+=s);break e}case Br:this.entity+=r.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(lh(e))this.state=Wie,this.unget(),this.xmlDeclPossible=!1;else switch(e){case p1:this.state=Jie,this.xmlDeclPossible=!1;break;case SN:this.state=Bie,this.openWakaBang="",this.xmlDeclPossible=!1;break;case Bn:this.state=Hie;break;default:this.fail("disallowed character in tag name"),this.state=gi,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=vT,this.openWakaBang="";break;case"--":this.state=_T,this.openWakaBang="";break;case"DOCTYPE":this.state=bT,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(h1)&&(this.state=$ie)}sCommentEnding(){var e;const r=this.getCodeNorm();r===h1?(this.state=Uie,(e=this.commentHandler)===null||e===void 0||e.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(r)}`,this.state=_T)}sCommentEnded(){const e=this.getCodeNorm();e!==bn?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(e)}`,this.state=_T):this.state=gi}sCData(){this.captureToChar(yd)&&(this.state=qie)}sCDataEnding(){const e=this.getCodeNorm();e===yd?this.state=Vie:(this.text+=`]${String.fromCodePoint(e)}`,this.state=vT)}sCDataEnding2(){var e;const r=this.getCodeNorm();switch(r){case bn:{(e=this.cdataHandler)===null||e===void 0||e.call(this,this.text),this.text="",this.state=gi;break}case yd:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(r)}`,this.state=vT}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=yN):e===Bn||$i(e)?(this.fail("processing instruction without a target."),this.state=e===Bn?f1:wT):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=yN)}sPIRest(){const{chunk:e,i:r}=this;for(;;){const n=this.getCodeNorm();if(n===Br){this.piTarget+=e.slice(r);return}if(!this.nameCheck(n)){this.piTarget+=e.slice(r,this.prevI);const a=n===Bn;a||$i(n)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=a?Ec:bN):this.state=a?f1:wT:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){const e=this.getCodeNorm();e===Bn?this.state=f1:$i(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(Bn)&&(this.state=f1)}sPIEnding(){var e;const r=this.getCodeNorm();if(r===bn){const{piTarget:n}=this;n.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(e=this.piHandler)===null||e===void 0||e.call(this,{target:n,body:this.text}),this.piTarget=this.text="",this.state=gi}else r===Bn?this.text+="?":(this.text+=`?${String.fromCodePoint(r)}`,this.state=wT);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();if(e===Bn){this.state=Ec;return}e!==Br&&(this.state=kie,this.name=String.fromCodePoint(e))}sXMLDeclName(){const e=this.captureTo(rae);if(e===Bn){this.state=Ec,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if($i(e)||e===pd){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=e===pd?mN:Qie}}sXMLDeclEq(){const e=this.getCodeNorm();if(e===Bn){this.state=Ec,this.fail("XML declaration is incomplete.");return}$i(e)||(e!==pd&&this.fail("value required."),this.state=mN)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(e===Bn){this.state=Ec,this.fail("XML declaration is incomplete.");return}$i(e)||(y1(e)?this.q=e:(this.fail("value must be quoted."),this.q=wN),this.state=Gie)}sXMLDeclValue(){const e=this.captureTo([this.q,Bn]);if(e===Bn){this.state=Ec,this.text="",this.fail("XML declaration is incomplete.");return}if(e===Br)return;const r=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const n=r;this.xmlDecl.version=n,/^1\.[0-9]+$/.test(n)?this.opt.forceXMLVersion||this.setXMLVersion(n):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(r)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=r;break;case"standalone":r!=="yes"&&r!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=r;break}this.name="",this.state=zie}sXMLDeclSeparator(){const e=this.getCodeNorm();if(e===Bn){this.state=Ec;return}$i(e)||(this.fail("whitespace required."),this.unget()),this.state=bN}sXMLDeclEnding(){var e;this.getCodeNorm()===bn?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(e=this.xmldeclHandler)===null||e===void 0||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=gi):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var e;const r=this.captureNameChars();if(r===Br)return;const n=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=n.ns=Object.create(null)),(e=this.openTagStartHandler)===null||e===void 0||e.call(this,n),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),r){case bn:this.openTag();break;case p1:this.state=ST;break;default:$i(r)||this.fail("disallowed character in tag name."),this.state=dh}}sOpenTagSlash(){this.getCode()===bn?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=dh)}sAttrib(){const e=this.skipSpaces();e!==Br&&(lh(e)?(this.unget(),this.state=TT):e===bn?this.openTag():e===p1?this.state=ST:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();e===pd?this.state=gN:$i(e)?this.state=Xie:e===bn?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):e!==Br&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case Br:return;case pd:this.state=gN;break;default:this.fail("attribute without value."),this.text="",this.name="",e===bn?this.openTag():lh(e)?(this.unget(),this.state=TT):(this.fail("disallowed character in attribute name."),this.state=dh)}}sAttribValue(){const e=this.getCodeNorm();y1(e)?(this.q=e,this.state=_N):$i(e)||(this.fail("unquoted attribute value."),this.state=vN,this.unget())}sAttribValueQuoted(){const{q:e,chunk:r}=this;let{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+r.slice(n,this.prevI)),this.name=this.text="",this.q=null,this.state=Kie;return;case Zh:this.text+=r.slice(n,this.prevI),this.state=d1,this.entityReturnState=_N;return;case Qa:case xs:case ET:this.text+=`${r.slice(n,this.prevI)} `,n=this.i;break;case Du:this.text+=r.slice(n,this.prevI),this.fail("disallowed character.");return;case Br:this.text+=r.slice(n);return}}sAttribValueClosed(){const e=this.getCodeNorm();$i(e)?this.state=dh:e===bn?this.openTag():e===p1?this.state=ST:lh(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=TT):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(nae);switch(e){case Zh:this.state=d1,this.entityReturnState=vN;break;case Du:this.fail("disallowed character.");break;case Br:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",e===bn?this.openTag():this.state=dh}}sCloseTag(){const e=this.captureNameChars();e===bn?this.closeTag():$i(e)?this.state=Yie:e!==Br&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case bn:this.closeTag();break;case Br:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:e,forbiddenState:r}=this;const{chunk:n,textHandler:a}=this;e:for(;;)switch(this.getCode()){case Du:{if(this.state=gT,a!==void 0){const{text:s}=this,o=n.slice(e,this.prevI);s.length!==0?(a(s+o),this.text=""):o.length!==0&&a(o)}r=Oc;break e}case Zh:this.state=d1,this.entityReturnState=gi,a!==void 0&&(this.text+=n.slice(e,this.prevI)),r=Oc;break e;case yd:switch(r){case Oc:r=ON;break;case ON:r=AT;break;case AT:break;default:throw new Error("impossible state")}break;case bn:r===AT&&this.fail('the string "]]>" is disallowed in char data.'),r=Oc;break;case xs:a!==void 0&&(this.text+=`${n.slice(e,this.prevI)} -`),e=this.i,r=Oc;break;case Br:a!==void 0&&(this.text+=n.slice(e));break e;default:r=Oc}this.forbiddenState=r}handleTextOutsideRoot(){let{i:e}=this;const{chunk:r,textHandler:n}=this;let a=!1;e:for(;;){const s=this.getCode();switch(s){case Du:{if(this.state=gT,n!==void 0){const{text:o}=this,u=r.slice(e,this.prevI);o.length!==0?(n(o+u),this.text=""):u.length!==0&&n(u)}break e}case Zh:this.state=d1,this.entityReturnState=gi,n!==void 0&&(this.text+=r.slice(e,this.prevI)),a=!0;break e;case xs:n!==void 0&&(this.text+=`${r.slice(e,this.prevI)} -`),e=this.i;break;case Br:n!==void 0&&(this.text+=r.slice(e));break e;default:$i(s)||(a=!0)}}a&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(e,r){var n;const{prefix:a,local:s}=this.qname(e),o={name:e,prefix:a,local:s,value:r};if(this.attribList.push(o),(n=this.attributeHandler)===null||n===void 0||n.call(this,o),a==="xmlns"){const u=r.trim();this.currentXMLVersion==="1.0"&&u===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[s]=u,_O(this,s,u)}else if(e==="xmlns"){const u=r.trim();this.topNS[""]=u,_O(this,"",u)}}pushAttribPlain(e,r){var n;const a={name:e,value:r};this.attribList.push(a),(n=this.attributeHandler)===null||n===void 0||n.call(this,a)}end(){var e,r;this.sawRoot||this.fail("document must contain a root element.");const{tags:n}=this;for(;n.length>0;){const s=n.pop();this.fail(`unclosed tag: ${s.name}`)}this.state!==pN&&this.state!==gi&&this.fail("unexpected end.");const{text:a}=this;return a.length!==0&&((e=this.textHandler)===null||e===void 0||e.call(this,a),this.text=""),this._closed=!0,(r=this.endHandler)===null||r===void 0||r.call(this),this._init(),this}resolve(e){var r,n;let a=this.topNS[e];if(a!==void 0)return a;const{tags:s}=this;for(let o=s.length-1;o>=0;o--)if(a=s[o].ns[e],a!==void 0)return a;return a=this.ns[e],a!==void 0?a:(n=(r=this.opt).resolvePrefix)===null||n===void 0?void 0:n.call(r,e)}qname(e){const r=e.indexOf(":");if(r===-1)return{prefix:"",local:e};const n=e.slice(r+1),a=e.slice(0,r);return(a===""||n===""||n.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:a,local:n}}processAttribsNS(){var e;const{attribList:r}=this,n=this.tag;{const{prefix:o,local:u}=this.qname(n.name);n.prefix=o,n.local=u;const c=n.uri=(e=this.resolve(o))!==null&&e!==void 0?e:"";o!==""&&(o==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),c===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`),n.uri=o))}if(r.length===0)return;const{attributes:a}=n,s=new Set;for(const o of r){const{name:u,prefix:c,local:l}=o;let d,h;c===""?(d=u==="xmlns"?Td:"",h=u):(d=this.resolve(c),d===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(c)}.`),d=c),h=`{${d}}${l}`),s.has(h)&&this.fail(`duplicate attribute: ${h}.`),s.add(h),o.uri=d,a[u]=o}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,r=this.tag.attributes;for(const{name:n,value:a}of e)r[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),r[n]=a;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:r}=this,n=this.tag;n.isSelfClosing=!1,(e=this.openTagHandler)===null||e===void 0||e.call(this,n),r.push(n),this.state=gi,this.name=""}openSelfClosingTag(){var e,r,n;this.processAttribs();const{tags:a}=this,s=this.tag;s.isSelfClosing=!0,(e=this.openTagHandler)===null||e===void 0||e.call(this,s),(r=this.closeTagHandler)===null||r===void 0||r.call(this,s),(this.tag=(n=a[a.length-1])!==null&&n!==void 0?n:null)===null&&(this.closedRoot=!0),this.state=gi,this.name=""}closeTag(){const{tags:e,name:r}=this;if(this.state=gi,this.name="",r===""){this.fail("weird empty close tag."),this.text+="";return}const n=this.closeTagHandler;let a=e.length;for(;a-- >0;){const s=this.tag=e.pop();if(this.topNS=s.ns,n==null||n(s),s.name===r)break;this.fail("unexpected close tag.")}a===0?this.closedRoot=!0:a<0&&(this.fail(`unmatched closing tag: ${r}.`),this.text+=``)}parseEntity(e){if(e[0]!=="#"){const n=this.ENTITIES[e];return n!==void 0?n:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let r=NaN;return e[1]==="x"&&/^#x[0-9a-f]+$/i.test(e)?r=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(r=parseInt(e.slice(1),10)),this.isChar(r)?String.fromCodePoint(r):(this.fail("malformed character entity."),`&${e};`)}}hl.SaxesParser=oae;var tv={};Object.defineProperty(tv,"__esModule",{value:!0});tv.ParseError=void 0;let uae=class extends Error{constructor(e,r){const n=e.saxParser;super(e.trackPosition?`Line ${n.line} column ${n.column+1}: ${r}`:r)}};tv.ParseError=uae;var pM={},yM={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIri=t.IriValidationStrategy=void 0;function e(){const u="[!$&'()*+,;=]",c="%[a-fA-F0-9]{2}",l="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",d=`${l}\\.${l}\\.${l}\\.${l}`,h="[a-fA-F0-9]{1,4}",f=`(${h}:${h}|${d})`,p=`((${h}:){6}${f}|::(${h}:){5}${f}|(${h})?::(${h}:){4}${f}|((${h}:){0,1}${h})?::(${h}:){3}${f}|((${h}:){0,2}${h})?::(${h}:){2}${f}|((${h}:){0,3}${h})?::${h}:${f}|((${h}:){0,4}${h})?::${f}|((${h}:){0,5}${h})?::${h}|((${h}:){0,6}${h})?::)`,b=`v[a-fA-F0-9]+\\.(${u}|${u}|":)+`,y=`\\[(${p}|${b})\\]`,S="[0-9]*",w="[a-zA-Z][a-zA-Z0-9+\\-.]*",O="[-󰀀-󿿽􀀀-􏿽]",P="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",B=`(${P}|${c}|${u}|[:@])*`,Q=`(${B}|[\\/?])*`,N=`(${B}|${O}|[\\/?])*`,D=`(${B})+`,F=`(${B})*`,W="",z=`${D}(\\/${F})*`,M=`\\/(${D}(\\/${F})*)?`,C=`(\\/${F})*`,V=`(${P}|${c}|${u})*`,ie=`(${y}|${d}|${V})`,_e=`(\\/\\/${`(${`(${P}|${c}|${u}|:)*`}@)?${ie}(:${S})?`}${C}|${M}|${z}|${W})`,we=`^${w}:${_e}(\\?${N})?(#${Q})?$`;return new RegExp(we,"u")}const r=e(),n=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var a;(function(o){o.Strict="strict",o.Pragmatic="pragmatic",o.None="none"})(a=t.IriValidationStrategy||(t.IriValidationStrategy={}));function s(o,u=a.Strict){switch(u){case a.Strict:return r.test(o)?void 0:new Error(`Invalid IRI according to RFC 3987: '${o}'`);case a.Pragmatic:return n.test(o)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${o}'`);case a.None:return;default:return new Error(`Not supported validation strategy "${u}"`)}}t.validateIri=s})(yM);(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yM,t)})(pM);Object.defineProperty(lf,"__esModule",{value:!0});lf.ParseType=lf.RdfXmlParser=void 0;const xN=Na,cae=hl,RN=Kt,lae=tv,dae=yt,xT=pM;class ir extends RN.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},e&&(Object.assign(this,e),this.options=e),this.dataFactory||(this.dataFactory=new dae.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?xT.IriValidationStrategy.Pragmatic:xT.IriValidationStrategy.None),this.saxParser=new cae.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(e){const r=new RN.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new ir(this.options));return n}_transform(e,r,n){try{this.saxParser.write(e)}catch(a){return n(a)}n()}newParseError(e){return new lae.ParseError(this,e)}valueToUri(e,r){return this.uriToNamedNode((0,xN.resolve)(e,r.baseIRI))}uriToNamedNode(e){const r=(0,xT.validateIri)(e,this.iriValidationStrategy);if(r instanceof Error)throw this.newParseError(r.message);return this.dataFactory.namedNode(e)}validateNcname(e){if(!ir.NCNAME_MATCHER.test(e))throw this.newParseError(`Not a valid NCName: ${e}`)}attachSaxListeners(){this.saxParser.on("error",e=>this.emit("error",e)),this.saxParser.on("opentag",this.onTag.bind(this)),this.saxParser.on("text",this.onText.bind(this)),this.saxParser.on("cdata",this.onText.bind(this)),this.saxParser.on("closetag",this.onCloseTag.bind(this)),this.saxParser.on("doctype",this.onDoctype.bind(this))}onTag(e){const r=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let n=Do.RESOURCE;if(r&&(r.hadChildren=!0,n=r.childrenParseType),r&&r.childrenStringTags){const s=e.name;let o="";for(const d in e.attributes)o+=` ${d}="${e.attributes[d].value}"`;const c=`<${`${s}${o}`}>`;r.childrenStringTags.push(c);const l={childrenStringTags:r.childrenStringTags};l.childrenStringEmitClosingTag=``,this.activeTagStack.push(l);return}const a={};r?(a.language=r.language,a.baseIRI=r.baseIRI):a.baseIRI=this.baseIRI,this.activeTagStack.push(a),n===Do.RESOURCE?this.onTagResource(e,a,r,!r):this.onTagProperty(e,a,r)}onTagResource(e,r,n,a){r.childrenParseType=Do.PROPERTY;let s=!0;if(e.uri===ir.RDF){if(!a&&ir.FORBIDDEN_NODE_ELEMENTS.indexOf(e.local)>=0)throw this.newParseError(`Illegal node element name: ${e.local}`);switch(e.local){case"RDF":r.childrenParseType=Do.RESOURCE;case"Description":s=!1}}const o=[],u=[];let c=null,l=!1,d=!1,h=null;for(const f in e.attributes){const p=e.attributes[f];if(n&&p.uri===ir.RDF)switch(p.local){case"about":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);c=p.value;continue;case"ID":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);this.validateNcname(p.value),c="#"+p.value,l=!0;continue;case"nodeID":if(c)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${p.value} and ${c} where found.`);this.validateNcname(p.value),c=p.value,d=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":h=p.value;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(p.uri===ir.XML){if(p.local==="lang"){r.language=p.value===""?null:p.value.toLowerCase();continue}else if(p.local==="base"){r.baseIRI=(0,xN.resolve)(p.value,r.baseIRI);continue}}p.prefix!=="xml"&&p.prefix!=="xmlns"&&(p.prefix!==""||p.local!=="xmlns")&&p.uri&&(o.push(this.uriToNamedNode(p.uri+p.local)),u.push(p.value))}if(c!==null&&(r.subject=d?this.dataFactory.blankNode(c):this.valueToUri(c,r),l&&this.claimNodeId(r.subject)),r.subject||(r.subject=this.dataFactory.blankNode()),s){const f=this.uriToNamedNode(e.uri+e.local);this.emitTriple(r.subject,this.dataFactory.namedNode(ir.RDF+"type"),f,n?n.reifiedStatementId:null)}if(n){if(n.predicate)if(n.childrenCollectionSubject){const f=this.dataFactory.blankNode();this.emitTriple(n.childrenCollectionSubject,n.childrenCollectionPredicate,f,n.reifiedStatementId),this.emitTriple(f,this.dataFactory.namedNode(ir.RDF+"first"),r.subject,r.reifiedStatementId),n.childrenCollectionSubject=f,n.childrenCollectionPredicate=this.dataFactory.namedNode(ir.RDF+"rest")}else{this.emitTriple(n.subject,n.predicate,r.subject,n.reifiedStatementId);for(let f=0;f=0)throw this.newParseError(`Illegal property element name: ${e.local}`);r.predicateSubPredicates=[],r.predicateSubObjects=[];let a=!1,s=!1,o=null,u=!0;const c=[],l=[];for(const d in e.attributes){const h=e.attributes[d];if(h.uri===ir.RDF)switch(h.local){case"resource":if(o)throw this.newParseError(`Found both rdf:resource (${h.value}) and rdf:nodeID (${o}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${h.value})`);r.hadChildren=!0,o=h.value,u=!1;continue;case"datatype":if(s)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${h.value}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${h.value})`);r.datatype=this.valueToUri(h.value,r);continue;case"nodeID":if(s)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${h.value}).`);if(r.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${h.value}).`);if(a)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${h.value})`);this.validateNcname(h.value),r.hadChildren=!0,o=h.value,u=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(s)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(r.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${r.datatype.value})`);if(o)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${o})`);if(h.value==="Resource"){a=!0,r.childrenParseType=Do.PROPERTY;const f=this.dataFactory.blankNode();this.emitTriple(r.subject,r.predicate,f,r.reifiedStatementId),r.subject=f,r.predicate=null}else h.value==="Collection"?(a=!0,r.hadChildren=!0,r.childrenCollectionSubject=r.subject,r.childrenCollectionPredicate=r.predicate,u=!1):h.value==="Literal"&&(a=!0,r.childrenTagsToString=!0,r.childrenStringTags=[]);continue;case"ID":this.validateNcname(h.value),r.reifiedStatementId=this.valueToUri("#"+h.value,r),this.claimNodeId(r.reifiedStatementId);continue}else if(h.uri===ir.XML&&h.local==="lang"){r.language=h.value===""?null:h.value.toLowerCase();continue}if(h.prefix!=="xml"&&h.prefix!=="xmlns"&&(h.prefix!==""||h.local!=="xmlns")&&h.uri){if(a||r.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${h.value}`);r.hadChildren=!0,s=!0,c.push(this.uriToNamedNode(h.uri+h.local)),l.push(this.dataFactory.literal(h.value,r.datatype||r.language))}}if(o!==null){const d=r.subject;r.subject=u?this.dataFactory.blankNode(o):this.valueToUri(o,r),this.emitTriple(d,r.predicate,r.subject,r.reifiedStatementId);for(let h=0;h/g,(r,n,a)=>(this.saxParser.ENTITIES[n]=a,""))}}lf.RdfXmlParser=ir;ir.MIME_TYPE="application/rdf+xml";ir.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";ir.XML="http://www.w3.org/XML/1998/namespace";ir.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"];ir.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"];ir.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u;var Do;(function(t){t[t.RESOURCE=0]="RESOURCE",t[t.PROPERTY=1]="PROPERTY"})(Do||(lf.ParseType=Do={}));(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lf,t)})(aM);Object.defineProperty(ev,"__esModule",{value:!0});ev.ActorRdfParseRdfXml=void 0;const fae=Rl,hae=aM;class pae extends fae.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){var s;e.data.on("error",o=>a.emit("error",o));const a=e.data.pipe(new hae.RdfXmlParser({baseIRI:(s=e.metadata)==null?void 0:s.baseIRI}));return{data:a,metadata:{triples:!0}}}}ev.ActorRdfParseRdfXml=pae;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ev,t)})(iM);var bM={},rv={},Hx={},mM={};Object.defineProperty(mM,"__esModule",{value:!0});var gM={};Object.defineProperty(gM,"__esModule",{value:!0});var _M={};Object.defineProperty(_M,"__esModule",{value:!0});var nv={},vM={},Mp={},kx={},eu={},Qx={};Object.defineProperty(Qx,"__esModule",{value:!0});Qx.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Gx={};Object.defineProperty(Gx,"__esModule",{value:!0});Gx.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var vO={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function n(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=r.get(s))!==null&&o!==void 0?o:s}t.replaceCodePoint=n;function a(s){return(0,t.fromCodePoint)(n(s))}t.default=a})(vO);(function(t){var e=g&&g.__createBinding||(Object.create?function(F,W,z,M){M===void 0&&(M=z);var C=Object.getOwnPropertyDescriptor(W,z);(!C||("get"in C?!W.__esModule:C.writable||C.configurable))&&(C={enumerable:!0,get:function(){return W[z]}}),Object.defineProperty(F,M,C)}:function(F,W,z,M){M===void 0&&(M=z),F[M]=W[z]}),r=g&&g.__setModuleDefault||(Object.create?function(F,W){Object.defineProperty(F,"default",{enumerable:!0,value:W})}:function(F,W){F.default=W}),n=g&&g.__importStar||function(F){if(F&&F.__esModule)return F;var W={};if(F!=null)for(var z in F)z!=="default"&&Object.prototype.hasOwnProperty.call(F,z)&&e(W,F,z);return r(W,F),W},a=g&&g.__importDefault||function(F){return F&&F.__esModule?F:{default:F}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var s=a(Qx);t.htmlDecodeTree=s.default;var o=a(Gx);t.xmlDecodeTree=o.default;var u=n(vO);t.decodeCodePoint=u.default;var c=vO;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}});var l;(function(F){F[F.NUM=35]="NUM",F[F.SEMI=59]="SEMI",F[F.EQUALS=61]="EQUALS",F[F.ZERO=48]="ZERO",F[F.NINE=57]="NINE",F[F.LOWER_A=97]="LOWER_A",F[F.LOWER_F=102]="LOWER_F",F[F.LOWER_X=120]="LOWER_X",F[F.LOWER_Z=122]="LOWER_Z",F[F.UPPER_A=65]="UPPER_A",F[F.UPPER_F=70]="UPPER_F",F[F.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var d=32,h;(function(F){F[F.VALUE_LENGTH=49152]="VALUE_LENGTH",F[F.BRANCH_LENGTH=16256]="BRANCH_LENGTH",F[F.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(F){return F>=l.ZERO&&F<=l.NINE}function p(F){return F>=l.UPPER_A&&F<=l.UPPER_F||F>=l.LOWER_A&&F<=l.LOWER_F}function b(F){return F>=l.UPPER_A&&F<=l.UPPER_Z||F>=l.LOWER_A&&F<=l.LOWER_Z||f(F)}function y(F){return F===l.EQUALS||b(F)}var S;(function(F){F[F.EntityStart=0]="EntityStart",F[F.NumericStart=1]="NumericStart",F[F.NumericDecimal=2]="NumericDecimal",F[F.NumericHex=3]="NumericHex",F[F.NamedEntity=4]="NamedEntity"})(S||(S={}));var w;(function(F){F[F.Legacy=0]="Legacy",F[F.Strict=1]="Strict",F[F.Attribute=2]="Attribute"})(w=t.DecodingMode||(t.DecodingMode={}));var I=function(){function F(W,z,M){this.decodeTree=W,this.emitCodePoint=z,this.errors=M,this.state=S.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=w.Strict}return F.prototype.startEntity=function(W){this.decodeMode=W,this.state=S.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},F.prototype.write=function(W,z){switch(this.state){case S.EntityStart:return W.charCodeAt(z)===l.NUM?(this.state=S.NumericStart,this.consumed+=1,this.stateNumericStart(W,z+1)):(this.state=S.NamedEntity,this.stateNamedEntity(W,z));case S.NumericStart:return this.stateNumericStart(W,z);case S.NumericDecimal:return this.stateNumericDecimal(W,z);case S.NumericHex:return this.stateNumericHex(W,z);case S.NamedEntity:return this.stateNamedEntity(W,z)}},F.prototype.stateNumericStart=function(W,z){return z>=W.length?-1:(W.charCodeAt(z)|d)===l.LOWER_X?(this.state=S.NumericHex,this.consumed+=1,this.stateNumericHex(W,z+1)):(this.state=S.NumericDecimal,this.stateNumericDecimal(W,z))},F.prototype.addToNumericResult=function(W,z,M,C){if(z!==M){var V=M-z;this.result=this.result*Math.pow(C,V)+parseInt(W.substr(z,V),C),this.consumed+=V}},F.prototype.stateNumericHex=function(W,z){for(var M=z;z>14;z>14,V!==0){if(ie===l.SEMI)return this.emitNamedEntityData(this.treeIndex,V,this.consumed+this.excess);this.decodeMode!==w.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},F.prototype.emitNotTerminatedNamedEntity=function(){var W,z=this,M=z.result,C=z.decodeTree,V=(C[M]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(M,V,this.consumed),(W=this.errors)===null||W===void 0||W.missingSemicolonAfterCharacterReference(),this.consumed},F.prototype.emitNamedEntityData=function(W,z,M){var C=this.decodeTree;return this.emitCodePoint(z===1?C[W]&~h.VALUE_LENGTH:C[W+1],M),z===3&&this.emitCodePoint(C[W+2],M),M},F.prototype.end=function(){var W;switch(this.state){case S.NamedEntity:return this.result!==0&&(this.decodeMode!==w.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case S.NumericDecimal:return this.emitNumericEntity(0,2);case S.NumericHex:return this.emitNumericEntity(0,3);case S.NumericStart:return(W=this.errors)===null||W===void 0||W.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case S.EntityStart:return 0}},F}();t.EntityDecoder=I;function O(F){var W="",z=new I(F,function(M){return W+=(0,u.fromCodePoint)(M)});return function(C,V){for(var ie=0,ne=0;(ne=C.indexOf("&",ne))>=0;){W+=C.slice(ie,ne),z.startEntity(V);var fe=z.write(C,ne+1);if(fe<0){ie=ne+z.end();break}ie=ne+fe,ne=fe===0?ie+1:ie}var _e=W+C.slice(ie);return W="",_e}}function T(F,W,z,M){var C=(W&h.BRANCH_LENGTH)>>7,V=W&h.JUMP_TABLE;if(C===0)return V!==0&&M===V?z:-1;if(V){var ie=M-V;return ie<0||ie>=C?-1:F[z+ie]-1}for(var ne=z,fe=ne+C-1;ne<=fe;){var _e=ne+fe>>>1,we=F[_e];if(weM)fe=_e-1;else return F[_e+C]}return-1}t.determineBranch=T;var x=O(s.default),P=O(o.default);function B(F,W){return W===void 0&&(W=w.Legacy),x(F,W)}t.decodeHTML=B;function Q(F){return x(F,w.Attribute)}t.decodeHTMLAttribute=Q;function N(F){return x(F,w.Strict)}t.decodeHTMLStrict=N;function D(F){return P(F,w.Strict)}t.decodeXML=D})(eu);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=eu,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function s(f){return f===r.Slash||f===r.Gt||a(f)}function o(f){return f>=r.Zero&&f<=r.Nine}function u(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function c(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(p,b){var y=p.xmlMode,S=y===void 0?!1:y,w=p.decodeEntities,I=w===void 0?!0:w;this.cbs=b,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=S,this.decodeEntities=I,this.entityTrie=S?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(p){var b=this.sequenceIndex===this.currentSequence.length,y=b?s(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!y)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(p)},f.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===r.Gt||a(p)){var b=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==r.Semi)this.trieIndex+=y;else{var S=this.index-this.entityExcess+1;S>this.sectionStart&&this.emitPartial(this.sectionStart,S),this.entityResult=this.trieIndex,this.trieIndex+=y,this.entityExcess=0,this.sectionStart=this.index+1,y===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(p){(p|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(p))},f.prototype.emitNumericEntity=function(p){var b=this.index-this.entityExcess-1,y=b+2+ +(this.state===n.InHexEntity);y!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*10+(p-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*16+(p-r.Zero),this.entityExcess++):c(p)?(this.entityResult=this.entityResult*16+((p|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.push(e),jN.has(e)?this.foreignContext.push(!0):CN.has(e)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(jN.has(l)||CN.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{var d=this.stack.lastIndexOf(l);if(d!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-d;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=d;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,IN.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===b1.QuoteType.Double?'"':e===b1.QuoteType.Single?"'":e===b1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(vae),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,h,f,p;this.endIndex=r;var b=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,b),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((h=(d=this.cbs).oncomment)===null||h===void 0||h.call(d,"[CDATA[".concat(b,"]]")),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,a;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(zx);Ft.NodeWithChildren=av;var EM=function(t){dc(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Gi.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(av);Ft.CDATA=EM;var OM=function(t){dc(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Gi.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(av);Ft.Document=OM;var AM=function(t){dc(e,t);function e(r,n,a,s){a===void 0&&(a=[]),s===void 0&&(s=r==="script"?Gi.ElementType.Script:r==="style"?Gi.ElementType.Style:Gi.ElementType.Tag);var o=t.call(this,a)||this;return o.name=r,o.attribs=n,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var a,s;return{name:n,value:r.attribs[n],namespace:(a=r["x-attribsNamespace"])===null||a===void 0?void 0:a[n],prefix:(s=r["x-attribsPrefix"])===null||s===void 0?void 0:s[n]}})},enumerable:!1,configurable:!0}),e}(av);Ft.Element=AM;function xM(t){return(0,Gi.isTag)(t)}Ft.isTag=xM;function RM(t){return t.type===Gi.ElementType.CDATA}Ft.isCDATA=RM;function IM(t){return t.type===Gi.ElementType.Text}Ft.isText=IM;function PM(t){return t.type===Gi.ElementType.Comment}Ft.isComment=PM;function DM(t){return t.type===Gi.ElementType.Directive}Ft.isDirective=DM;function NM(t){return t.type===Gi.ElementType.Root}Ft.isDocument=NM;function Sae(t){return Object.prototype.hasOwnProperty.call(t,"children")}Ft.hasChildren=Sae;function Wx(t,e){e===void 0&&(e=!1);var r;if(IM(t))r=new wM(t.data);else if(PM(t))r=new SM(t.data);else if(xM(t)){var n=e?RT(t.children):[],a=new AM(t.name,hp({},t.attribs),n);n.forEach(function(c){return c.parent=a}),t.namespace!=null&&(a.namespace=t.namespace),t["x-attribsNamespace"]&&(a["x-attribsNamespace"]=hp({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(a["x-attribsPrefix"]=hp({},t["x-attribsPrefix"])),r=a}else if(RM(t)){var n=e?RT(t.children):[],s=new EM(n);n.forEach(function(l){return l.parent=s}),r=s}else if(NM(t)){var n=e?RT(t.children):[],o=new OM(n);n.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(DM(t)){var u=new TM(t.name,t.data);t["x-name"]!=null&&(u["x-name"]=t["x-name"],u["x-publicId"]=t["x-publicId"],u["x-systemId"]=t["x-systemId"]),r=u}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}Ft.cloneNode=Wx;function RT(t){for(var e=t.map(function(n){return Wx(n,!0)}),r=1;r$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(a,s){return a.codePointAt(s)}:function(a,s){return(a.charCodeAt(s)&64512)===55296?(a.charCodeAt(s)-55296)*1024+a.charCodeAt(s+1)-56320+65536:a.charCodeAt(s)};function r(a){for(var s="",o=0,u;(u=t.xmlReplacer.exec(a))!==null;){var c=u.index,l=a.charCodeAt(c),d=e.get(l);d!==void 0?(s+=a.substring(o,c)+d,o=c+1):(s+="".concat(a.substring(o,c),"&#x").concat((0,t.getCodePoint)(a,c).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return s+a.substr(o)}t.encodeXML=r,t.escape=r;function n(a,s){return function(u){for(var c,l=0,d="";c=a.exec(u);)l!==c.index&&(d+=u.substring(l,c.index)),d+=s.get(c[0].charCodeAt(0)),l=c.index+1;return d+u.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Xb);var Tae=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pl,"__esModule",{value:!0});pl.encodeNonAsciiHTML=pl.encodeHTML=void 0;var Eae=Tae(Xx),CM=Xb,Oae=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Aae(t){return FM(Oae,t)}pl.encodeHTML=Aae;function xae(t){return FM(CM.xmlReplacer,t)}pl.encodeNonAsciiHTML=xae;function FM(t,e){for(var r="",n=0,a;(a=t.exec(e))!==null;){var s=a.index;r+=e.substring(n,s);var o=e.charCodeAt(s),u=Eae.default.get(o);if(typeof u=="object"){if(s+10&&(n+=sv(t.children,e)),(e.xmlMode||!FN.has(t.name))&&(n+=""))),n}function Bae(t){return"<".concat(t.data,">")}function $ae(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Dae.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Kb.encodeXML)(n):(0,Kb.escapeText)(n)),n}function Uae(t){return"")}function qae(t){return"")}var Vae=g&&g.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ua,"__esModule",{value:!0});ua.innerText=ua.textContent=ua.getText=ua.getInnerHTML=ua.getOuterHTML=void 0;var Xs=fa,Hae=Vae($0),kae=lc;function LM(t,e){return(0,Hae.default)(t,e)}ua.getOuterHTML=LM;function Qae(t,e){return(0,Xs.hasChildren)(t)?t.children.map(function(r){return LM(r,e)}).join(""):""}ua.getInnerHTML=Qae;function mb(t){return Array.isArray(t)?t.map(mb).join(""):(0,Xs.isTag)(t)?t.name==="br"?` -`:mb(t.children):(0,Xs.isCDATA)(t)?mb(t.children):(0,Xs.isText)(t)?t.data:""}ua.getText=mb;function wO(t){return Array.isArray(t)?t.map(wO).join(""):(0,Xs.hasChildren)(t)&&!(0,Xs.isComment)(t)?wO(t.children):(0,Xs.isText)(t)?t.data:""}ua.textContent=wO;function SO(t){return Array.isArray(t)?t.map(SO).join(""):(0,Xs.hasChildren)(t)&&(t.type===kae.ElementType.Tag||(0,Xs.isCDATA)(t))?SO(t.children):(0,Xs.isText)(t)?t.data:""}ua.innerText=SO;var xn={};Object.defineProperty(xn,"__esModule",{value:!0});xn.prevElementSibling=xn.nextElementSibling=xn.getName=xn.hasAttrib=xn.getAttributeValue=xn.getSiblings=xn.getParent=xn.getChildren=void 0;var Kx=fa;function BM(t){return(0,Kx.hasChildren)(t)?t.children:[]}xn.getChildren=BM;function $M(t){return t.parent||null}xn.getParent=$M;function Gae(t){var e,r,n=$M(t);if(n!=null)return BM(n);for(var a=[t],s=t.prev,o=t.next;s!=null;)a.unshift(s),e=s,s=e.prev;for(;o!=null;)a.push(o),r=o,o=r.next;return a}xn.getSiblings=Gae;function zae(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}xn.getAttributeValue=zae;function Wae(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}xn.hasAttrib=Wae;function Xae(t){return t.name}xn.getName=Xae;function Kae(t){for(var e,r=t.next;r!==null&&!(0,Kx.isTag)(r);)e=r,r=e.next;return r}xn.nextElementSibling=Kae;function Jae(t){for(var e,r=t.prev;r!==null&&!(0,Kx.isTag)(r);)e=r,r=e.prev;return r}xn.prevElementSibling=Jae;var Hi={};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.prepend=Hi.prependChild=Hi.append=Hi.appendChild=Hi.replaceElement=Hi.removeElement=void 0;function U0(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}Hi.removeElement=U0;function Yae(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var a=e.parent=t.parent;if(a){var s=a.children;s[s.lastIndexOf(t)]=e,t.parent=null}}Hi.replaceElement=Yae;function Zae(t,e){if(U0(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}Hi.appendChild=Zae;function ese(t,e){U0(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var a=r.children;a.splice(a.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}Hi.append=ese;function tse(t,e){if(U0(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}Hi.prependChild=tse;function rse(t,e){U0(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}Hi.prepend=rse;var xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.findAll=xi.existsOne=xi.findOne=xi.findOneChild=xi.find=xi.filter=void 0;var ov=fa;function nse(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),UM(t,Array.isArray(e)?e:[e],r,n)}xi.filter=nse;function UM(t,e,r,n){for(var a=[],s=[e],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return a;s.shift(),o.shift();continue}var u=s[0][o[0]++];if(t(u)&&(a.push(u),--n<=0))return a;r&&(0,ov.hasChildren)(u)&&u.children.length>0&&(o.unshift(0),s.unshift(u.children))}}xi.find=UM;function ise(t,e){return e.find(t)}xi.findOneChild=ise;function qM(t,e,r){r===void 0&&(r=!0);for(var n=null,a=0;a0&&(n=qM(t,s.children,!0));else continue}return n}xi.findOne=qM;function VM(t,e){return e.some(function(r){return(0,ov.isTag)(r)&&(t(r)||VM(t,r.children))})}xi.existsOne=VM;function ase(t,e){for(var r=[],n=[e],a=[0];;){if(a[0]>=n[0].length){if(n.length===1)return r;n.shift(),a.shift();continue}var s=n[0][a[0]++];(0,ov.isTag)(s)&&(t(s)&&r.push(s),s.children.length>0&&(a.unshift(0),n.unshift(s.children)))}}xi.findAll=ase;var ca={};Object.defineProperty(ca,"__esModule",{value:!0});ca.getElementsByTagType=ca.getElementsByTagName=ca.getElementById=ca.getElements=ca.testElement=void 0;var Gc=fa,uv=xi,Jb={tag_name:function(t){return typeof t=="function"?function(e){return(0,Gc.isTag)(e)&&t(e.name)}:t==="*"?Gc.isTag:function(e){return(0,Gc.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Gc.isText)(e)&&t(e.data)}:function(e){return(0,Gc.isText)(e)&&e.data===t}}};function HM(t,e){return typeof e=="function"?function(r){return(0,Gc.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Gc.isTag)(r)&&r.attribs[t]===e}}function sse(t,e){return function(r){return t(r)||e(r)}}function kM(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Jb,r)?Jb[r](n):HM(r,n)});return e.length===0?null:e.reduce(sse)}function ose(t,e){var r=kM(t);return r?r(e):!0}ca.testElement=ose;function use(t,e,r,n){n===void 0&&(n=1/0);var a=kM(t);return a?(0,uv.filter)(a,e,r,n):[]}ca.getElements=use;function cse(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,uv.findOne)(HM("id",t),e,r)}ca.getElementById=cse;function lse(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,uv.filter)(Jb.tag_name(t),e,r,n)}ca.getElementsByTagName=lse;function dse(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,uv.filter)(Jb.tag_type(t),e,r,n)}ca.getElementsByTagType=dse;var QM={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=fa;function r(o){for(var u=o.length;--u>=0;){var c=o[u];if(u>0&&o.lastIndexOf(c,u-1)>=0){o.splice(u,1);continue}for(var l=c.parent;l;l=l.parent)if(o.includes(l)){o.splice(u,1);break}}return o}t.removeSubsets=r;var n;(function(o){o[o.DISCONNECTED=1]="DISCONNECTED",o[o.PRECEDING=2]="PRECEDING",o[o.FOLLOWING=4]="FOLLOWING",o[o.CONTAINS=8]="CONTAINS",o[o.CONTAINED_BY=16]="CONTAINED_BY"})(n=t.DocumentPosition||(t.DocumentPosition={}));function a(o,u){var c=[],l=[];if(o===u)return 0;for(var d=(0,e.hasChildren)(o)?o:o.parent;d;)c.unshift(d),d=d.parent;for(d=(0,e.hasChildren)(u)?u:u.parent;d;)l.unshift(d),d=d.parent;for(var h=Math.min(c.length,l.length),f=0;fb.indexOf(S)?p===u?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:p===o?n.PRECEDING|n.CONTAINS:n.PRECEDING}t.compareDocumentPosition=a;function s(o){return o=o.filter(function(u,c,l){return!l.includes(u,c+1)}),o.sort(function(u,c){var l=a(u,c);return l&n.PRECEDING?-1:l&n.FOLLOWING?1:0}),o}t.uniqueSort=s})(QM);var cv={};Object.defineProperty(cv,"__esModule",{value:!0});cv.getFeed=void 0;var fse=ua,q0=ca;function hse(t){var e=Yb(gse,t);return e?e.name==="feed"?pse(e):yse(e):null}cv.getFeed=hse;function pse(t){var e,r=t.children,n={type:"atom",items:(0,q0.getElementsByTagName)("entry",r).map(function(o){var u,c=o.children,l={media:GM(c)};Vi(l,"id","id",c),Vi(l,"title","title",c);var d=(u=Yb("link",c))===null||u===void 0?void 0:u.attribs.href;d&&(l.link=d);var h=Bu("summary",c)||Bu("content",c);h&&(l.description=h);var f=Bu("updated",c);return f&&(l.pubDate=new Date(f)),l})};Vi(n,"id","id",r),Vi(n,"title","title",r);var a=(e=Yb("link",r))===null||e===void 0?void 0:e.attribs.href;a&&(n.link=a),Vi(n,"description","subtitle",r);var s=Bu("updated",r);return s&&(n.updated=new Date(s)),Vi(n,"author","email",r,!0),n}function yse(t){var e,r,n=(r=(e=Yb("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],a={type:t.name.substr(0,3),id:"",items:(0,q0.getElementsByTagName)("item",t.children).map(function(o){var u=o.children,c={media:GM(u)};Vi(c,"id","guid",u),Vi(c,"title","title",u),Vi(c,"link","link",u),Vi(c,"description","description",u);var l=Bu("pubDate",u)||Bu("dc:date",u);return l&&(c.pubDate=new Date(l)),c})};Vi(a,"title","title",n),Vi(a,"link","link",n),Vi(a,"description","description",n);var s=Bu("lastBuildDate",n);return s&&(a.updated=new Date(s)),Vi(a,"author","managingEditor",n,!0),a}var bse=["url","type","lang"],mse=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function GM(t){return(0,q0.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},a=0,s=bse;a0){const s=Object.assign(Object.assign({},r),a);if(e.prefix){let o;for(;o=_u.PREFIX_REGEX.exec(e.prefix);)s[o[1]]=o[2]}return s}else return r}static expandPrefixedTerm(e,r){const n=e.indexOf(":");let a,s;if(n>=0&&(a=e.substr(0,n),s=e.substr(n+1)),a==="")return"http://www.w3.org/1999/xhtml/vocab#"+s;if(a){const o=r.prefixesAll[a];if(o)return o+s}if(e){const o=r.prefixesAll[e.toLocaleLowerCase()];if(o)return o}return e}static isValidIri(e){return _u.IRI_REGEX.test(e)}static contentTypeToProfile(e){return wse.RDFA_CONTENTTYPES[e]||""}getBaseIRI(e){let r=e;const n=r.indexOf("#");return n>=0&&(r=r.substr(0,n)),this.dataFactory.namedNode((0,g1.resolve)(r,this.baseIRI.value))}getResourceOrBaseIri(e,r){return e===!0?this.getBaseIriTerm(r):e}getBaseIriTerm(e){return e.localBaseIRI||this.baseIRI}createVocabIris(e,r,n,a){return e.split(/\s+/).filter(s=>s&&(n||s.indexOf(":")>=0)).map(s=>this.createIri(s,r,!0,!0,a)).filter(s=>s!=null)}createLiteral(e,r){if(r.interpretObjectAsTime&&!r.datatype){for(const n of _u.TIME_REGEXES)if(e.match(n.regex)){r.datatype=this.dataFactory.namedNode(_u.XSD+n.type);break}}return this.dataFactory.literal(e,r.datatype||r.language)}createBlankNode(){return this.blankNodeFactory?this.blankNodeFactory():this.dataFactory.blankNode()}createIri(e,r,n,a,s){if(e=e||"",!a)return n||(e=(0,g1.resolve)(e,this.getBaseIriTerm(r).value)),_u.isValidIri(e)?this.dataFactory.namedNode(e):null;if(e.length>0&&e[0]==="["&&e[e.length-1]==="]"&&(e=e.substr(1,e.length-2),e.indexOf(":")<0))return null;if(e.startsWith("_:"))return s?this.dataFactory.blankNode(e.substr(2)||"b_identity"):null;if(n&&r.vocab&&e.indexOf(":")<0)return this.dataFactory.namedNode(r.vocab+e);let o=_u.expandPrefixedTerm(e,r);return n?e!==o&&(o=(0,g1.resolve)(o,this.baseIRIDocument.value)):o=(0,g1.resolve)(o,this.getBaseIriTerm(r).value),_u.isValidIri(o)?this.dataFactory.namedNode(o):null}};V0.Util=Il;Il.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";Il.XSD="http://www.w3.org/2001/XMLSchema#";Il.RDFA="http://www.w3.org/ns/rdfa#";Il.PREFIX_REGEX=/\s*([^:\s]*)*:\s*([^\s]*)*\s*/g;Il.TIME_REGEXES=[{regex:/^-?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.[0-9])?S)?)?$/,type:"duration"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"dateTime"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,type:"date"},{regex:/^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"time"},{regex:/^[0-9]+-[0-9][0-9]$/,type:"gYearMonth"},{regex:/^[0-9]+$/,type:"gYear"}];Il.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`]*$/;Object.defineProperty(nv,"__esModule",{value:!0});nv.RdfaParser=void 0;const Tse=vM,MN=Kt,Ese=_se,Ose=vse,Ase=tc,Ui=V0;class Jx extends MN.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],e=e||{},this.options=e,this.util=new Ui.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph();const r=e.contentType?Ui.Util.contentTypeToProfile(e.contentType):e.profile||"";this.features=e.features||Ase.RDFA_FEATURES[r],this.htmlParseListener=e.htmlParseListener,this.rdfaPatterns=this.features.copyRdfaPatterns?{}:null,this.pendingRdfaPatternCopies=this.features.copyRdfaPatterns?{}:null,this.parser=this.initializeParser(r==="xml"),this.activeTagStack.push({incompleteTriples:[],inlist:!1,language:e.language,listMapping:{},listMappingLocal:{},name:"",prefixesAll:Object.assign(Object.assign({},Ose["@context"]),this.features.xhtmlInitialContext?Ese["@context"]:{}),prefixesCustom:{},skipElement:!1,vocab:e.vocab})}import(e){const r=new MN.PassThrough({readableObjectMode:!0});e.on("error",a=>n.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new Jx(this.options));return n}_transform(e,r,n){this.parser.write(e.toString()),n()}_flush(e){this.parser.end(),e()}onTagOpen(e,r){let n=this.activeTagStack.length-1;for(;n>0&&this.activeTagStack[n].skipElement;)n--;let a=this.activeTagStack[n];n!==this.activeTagStack.length-1&&(a=Object.assign(Object.assign({},a),{language:this.activeTagStack[this.activeTagStack.length-1].language,prefixesAll:this.activeTagStack[this.activeTagStack.length-1].prefixesAll,prefixesCustom:this.activeTagStack[this.activeTagStack.length-1].prefixesCustom,vocab:this.activeTagStack[this.activeTagStack.length-1].vocab}));const s={collectChildTags:a.collectChildTags,incompleteTriples:[],inlist:"inlist"in r,listMapping:[],listMappingLocal:a.listMapping,localBaseIRI:a.localBaseIRI,name:e,prefixesAll:null,prefixesCustom:null,skipElement:!1};if(this.activeTagStack.push(s),s.collectChildTags){for(const b of Object.keys(a.prefixesCustom).sort()){const y=a.prefixesCustom[b],S=b===""?"xmlns":"xmlns:"+b;S in r||(r[S]=y)}const p=Object.keys(r).map(b=>`${b}="${r[b]}"`).join(" ");if(s.text=[`<${e}${p?" "+p:""}>`],this.features.skipHandlingXmlLiteralChildren)return}let o=!0,u=!0;if(this.features.onlyAllowUriRelRevIfProperty&&("property"in r&&"rel"in r&&(o=!1,r.rel.indexOf(":")<0&&delete r.rel),"property"in r&&"rev"in r&&(u=!1,r.rev.indexOf(":")<0&&delete r.rev)),this.features.copyRdfaPatterns){if(a.collectedPatternTag){const p={attributes:r,children:[],name:e,referenced:!1,rootPattern:!1,text:[]};a.collectedPatternTag.children.push(p),s.collectedPatternTag=p;return}if(r.typeof==="rdfa:Pattern"){s.collectedPatternTag={attributes:r,children:[],name:e,parentTag:a,referenced:!1,rootPattern:!0,text:[]};return}if(r.property==="rdfa:copy"){const p=r.resource||r.href||r.src;this.rdfaPatterns[p]?this.emitPatternCopy(a,this.rdfaPatterns[p],p):(this.pendingRdfaPatternCopies[p]||(this.pendingRdfaPatternCopies[p]=[]),this.pendingRdfaPatternCopies[p].push(a));return}}this.features.baseTag&&e==="base"&&r.href&&(this.util.baseIRI=this.util.getBaseIRI(r.href)),this.features.xmlBase&&r["xml:base"]&&(s.localBaseIRI=this.util.getBaseIRI(r["xml:base"])),this.features.timeTag&&e==="time"&&!r.datatype&&(s.interpretObjectAsTime=!0);let c,l,d;if("vocab"in r?r.vocab?(s.vocab=r.vocab,this.emitTriple(this.util.getBaseIriTerm(s),this.util.dataFactory.namedNode(Ui.Util.RDFA+"usesVocabulary"),this.util.dataFactory.namedNode(s.vocab))):s.vocab=this.activeTagStack[0].vocab:s.vocab=a.vocab,s.prefixesCustom=Ui.Util.parsePrefixes(r,a.prefixesCustom,this.features.xmlnsPrefixMappings),s.prefixesAll=Object.keys(s.prefixesCustom).length>0?Object.assign(Object.assign({},a.prefixesAll),s.prefixesCustom):a.prefixesAll,this.features.roleAttribute&&r.role){const p=r.id?this.util.createIri("#"+r.id,s,!1,!1,!1):this.util.createBlankNode(),b=s.vocab;s.vocab="http://www.w3.org/1999/xhtml/vocab#";for(const y of this.util.createVocabIris(r.role,s,!0,!1))this.emitTriple(p,this.util.dataFactory.namedNode("http://www.w3.org/1999/xhtml/vocab#role"),y);s.vocab=b}"xml:lang"in r||this.features.langAttribute&&"lang"in r?s.language=r["xml:lang"]||r.lang:s.language=a.language;const h=this.activeTagStack.length===2;if(!("rel"in r)&&!("rev"in r)?"property"in r&&!("content"in r)&&!("datatype"in r)?("about"in r?(c=this.util.createIri(r.about,s,!1,!0,!0),s.explicitNewSubject=!!c):h?c=!0:a.object&&(c=a.object),"typeof"in r&&("about"in r&&(d=this.util.createIri(r.about,s,!1,!0,!0)),!d&&h&&(d=!0),!d&&"resource"in r&&(d=this.util.createIri(r.resource,s,!1,!0,!0)),!d&&("href"in r||"src"in r)&&(d=this.util.createIri(r.href||r.src,s,!1,!1,!0)),!d&&this.isInheritSubjectInHeadBody(e)&&(d=c),d||(d=this.util.createBlankNode()),l=d)):(("about"in r||"resource"in r)&&(c=this.util.createIri(r.about||r.resource,s,!1,!0,!0),s.explicitNewSubject=!!c),!c&&("href"in r||"src"in r)&&(c=this.util.createIri(r.href||r.src,s,!1,!1,!0),s.explicitNewSubject=!!c),c||(h?c=!0:this.isInheritSubjectInHeadBody(e)?c=a.object:"typeof"in r?(c=this.util.createBlankNode(),s.explicitNewSubject=!0):a.object&&(c=a.object,"property"in r||(s.skipElement=!0))),"typeof"in r&&(d=c)):("about"in r?(c=this.util.createIri(r.about,s,!1,!0,!0),s.explicitNewSubject=!!c,"typeof"in r&&(d=c)):h?c=!0:a.object&&(c=a.object),"resource"in r&&(l=this.util.createIri(r.resource,s,!1,!0,!0)),l||("href"in r||"src"in r?l=this.util.createIri(r.href||r.src,s,!1,!1,!0):"typeof"in r&&!("about"in r)&&!this.isInheritSubjectInHeadBody(e)&&(l=this.util.createBlankNode())),"typeof"in r&&!("about"in r)&&(this.isInheritSubjectInHeadBody(e)?d=c:d=l)),d)for(const p of this.util.createVocabIris(r.typeof,s,!0,!0))this.emitTriple(this.util.getResourceOrBaseIri(d,s),this.util.dataFactory.namedNode(Ui.Util.RDF+"type"),p);if(c&&(s.listMapping={}),l){if("rel"in r&&"inlist"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.addListMapping(s,c,p,l);if(!("rel"in r&&"inlist"in r)){if("rel"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.emitTriple(this.util.getResourceOrBaseIri(c,s),p,this.util.getResourceOrBaseIri(l,s));if("rev"in r)for(const p of this.util.createVocabIris(r.rev,s,u,!1))this.emitTriple(this.util.getResourceOrBaseIri(l,s),p,this.util.getResourceOrBaseIri(c,s))}}if(!l){if("rel"in r)if("inlist"in r)for(const p of this.util.createVocabIris(r.rel,s,o,!1))this.addListMapping(s,c,p,null),s.incompleteTriples.push({predicate:p,reverse:!1,list:!0});else for(const p of this.util.createVocabIris(r.rel,s,o,!1))s.incompleteTriples.push({predicate:p,reverse:!1});if("rev"in r)for(const p of this.util.createVocabIris(r.rev,s,u,!1))s.incompleteTriples.push({predicate:p,reverse:!0});s.incompleteTriples.length>0&&(l=this.util.createBlankNode())}if("property"in r){s.predicates=this.util.createVocabIris(r.property,s,!0,!1);let p;if("datatype"in r?(s.datatype=this.util.createIri(r.datatype,s,!0,!0,!1),s.datatype&&(s.datatype.value===Ui.Util.RDF+"XMLLiteral"||this.features.htmlDatatype&&s.datatype.value===Ui.Util.RDF+"HTML")&&(s.collectChildTags=!0)):(!("rev"in r)&&!("rel"in r)&&!("content"in r)&&("resource"in r&&(p=this.util.createIri(r.resource,s,!1,!0,!0)),!p&&"href"in r&&(p=this.util.createIri(r.href,s,!1,!1,!0)),!p&&"src"in r&&(p=this.util.createIri(r.src,s,!1,!1,!0))),"typeof"in r&&!("about"in r)&&(p=d)),"content"in r){const b=this.util.createLiteral(r.content,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,b);else{const y=this.util.getResourceOrBaseIri(c,s);for(const S of s.predicates)this.emitTriple(y,S,b)}s.predicates=null}else if(this.features.datetimeAttribute&&"datetime"in r){s.interpretObjectAsTime=!0;const b=this.util.createLiteral(r.datetime,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,b);else{const y=this.util.getResourceOrBaseIri(c,s);for(const S of s.predicates)this.emitTriple(y,S,b)}s.predicates=null}else if(p){const b=this.util.getResourceOrBaseIri(p,s);if("inlist"in r)for(const y of s.predicates)this.addListMapping(s,c,y,b);else{const y=this.util.getResourceOrBaseIri(c,s);for(const S of s.predicates)this.emitTriple(y,S,b)}s.predicates=null}}let f=!1;if(!s.skipElement&&c&&a.incompleteTriples.length>0){f=!0;const p=this.util.getResourceOrBaseIri(a.subject,s),b=this.util.getResourceOrBaseIri(c,s);for(const y of a.incompleteTriples)if(y.reverse)this.emitTriple(b,y.predicate,p);else if(y.list){let S=null;for(let w=this.activeTagStack.length-1;w>=0;w--)if(this.activeTagStack[w].inlist){S=this.activeTagStack[w];break}this.addListMapping(S,c,y.predicate,b)}else this.emitTriple(p,y.predicate,b)}!f&&a.incompleteTriples.length>0&&(s.incompleteTriples=s.incompleteTriples.concat(a.incompleteTriples)),s.subject=c||a.subject,s.object=l||c}onText(e){const r=this.activeTagStack[this.activeTagStack.length-1];if(this.features.copyRdfaPatterns&&r.collectedPatternTag){r.collectedPatternTag.text.push(e);return}r.text||(r.text=[]),r.text.push(e)}onTagClose(){const e=this.activeTagStack[this.activeTagStack.length-1],r=this.activeTagStack[this.activeTagStack.length-2];if(!(e.collectChildTags&&r.collectChildTags&&this.features.skipHandlingXmlLiteralChildren)){if(this.features.copyRdfaPatterns&&e.collectedPatternTag&&e.collectedPatternTag.rootPattern){const n=e.collectedPatternTag.attributes.resource;if(delete e.collectedPatternTag.attributes.resource,delete e.collectedPatternTag.attributes.typeof,this.rdfaPatterns[n]=e.collectedPatternTag,this.pendingRdfaPatternCopies[n]){for(const a of this.pendingRdfaPatternCopies[n])this.emitPatternCopy(a,e.collectedPatternTag,n);delete this.pendingRdfaPatternCopies[n]}this.activeTagStack.pop();return}if(e.predicates){const n=this.util.getResourceOrBaseIri(e.subject,e);let a=e.text||[];e.collectChildTags&&r.collectChildTags&&(a=a.slice(1));const s=this.util.createLiteral(a.join(""),e);if(e.inlist)for(const o of e.predicates)this.addListMapping(e,n,o,s);else for(const o of e.predicates)this.emitTriple(n,o,s);r.predicates||(e.text=null)}if(e.object&&Object.keys(e.listMapping).length>0){const n=this.util.getResourceOrBaseIri(e.object,e);for(const a in e.listMapping){const s=this.util.dataFactory.namedNode(a),o=e.listMapping[a];if(o.length>0){const u=o.map(()=>this.util.createBlankNode());for(let c=0;c`),e.text&&r&&(r.text?r.text=r.text.concat(e.text):r.text=e.text)}onEnd(){if(this.features.copyRdfaPatterns){this.features.copyRdfaPatterns=!1;for(const e in this.rdfaPatterns){const r=this.rdfaPatterns[e];r.referenced||(r.attributes.typeof="rdfa:Pattern",r.attributes.resource=e,this.emitPatternCopy(r.parentTag,r,e),r.referenced=!1,delete r.attributes.typeof,delete r.attributes.resource)}for(const e in this.pendingRdfaPatternCopies)for(const r of this.pendingRdfaPatternCopies[e])this.activeTagStack.push(r),this.onTagOpen("link",{property:"rdfa:copy",href:e}),this.onTagClose(),this.activeTagStack.pop();this.features.copyRdfaPatterns=!0}}isInheritSubjectInHeadBody(e){return this.features.inheritSubjectInHeadBody&&(e==="head"||e==="body")}addListMapping(e,r,n,a){if(e.explicitNewSubject){const s=this.util.createBlankNode();this.emitTriple(this.util.getResourceOrBaseIri(r,e),n,s),this.emitTriple(s,this.util.dataFactory.namedNode(Ui.Util.RDF+"first"),this.util.getResourceOrBaseIri(a,e)),this.emitTriple(s,this.util.dataFactory.namedNode(Ui.Util.RDF+"rest"),this.util.dataFactory.namedNode(Ui.Util.RDF+"nil"))}else{let s=e.listMappingLocal[n.value];s||(e.listMappingLocal[n.value]=s=[]),a&&s.push(a)}}emitTriple(e,r,n){e.termType==="NamedNode"&&e.value.indexOf(":")<0||r.termType==="NamedNode"&&r.value.indexOf(":")<0||n.termType==="NamedNode"&&n.value.indexOf(":")<0||this.push(this.util.dataFactory.quad(e,r,n,this.defaultGraph))}emitPatternCopy(e,r,n){if(this.activeTagStack.push(e),r.referenced=!0,!r.constructedBlankNodes)r.constructedBlankNodes=[],this.util.blankNodeFactory=()=>{const a=this.util.dataFactory.blankNode();return r.constructedBlankNodes.push(a),a};else{let a=0;this.util.blankNodeFactory=()=>r.constructedBlankNodes[a++]}this.emitPatternCopyAbsolute(r,!0,n),this.util.blankNodeFactory=null,this.activeTagStack.pop()}emitPatternCopyAbsolute(e,r,n){if(!(!r&&e.attributes.property==="rdfa:copy"&&e.attributes.href===n)){this.onTagOpen(e.name,e.attributes);for(const a of e.text)this.onText(a);for(const a of e.children)this.emitPatternCopyAbsolute(a,!1,n);this.onTagClose()}}initializeParser(e){return new Tse.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(r){this.emit("error",r)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(r){this.emit("error",r)}},onopentag:(r,n)=>{try{this.onTagOpen(r,n),this.htmlParseListener&&this.htmlParseListener.onTagOpen(r,n)}catch(a){this.emit("error",a)}},ontext:r=>{try{this.onText(r),this.htmlParseListener&&this.htmlParseListener.onText(r)}catch(n){this.emit("error",n)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}}nv.RdfaParser=Jx;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mM,t),r(gM,t),r(_M,t),r(nv,t),r(tc,t),r(V0,t)})(Hx);Object.defineProperty(rv,"__esModule",{value:!0});rv.ActorRdfParseXmlRdfa=void 0;const xse=Rl,Rse=Hx;class Ise extends xse.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){var o;const a=(e.headers&&e.headers.get("content-language"))??void 0;e.data.on("error",u=>s.emit("error",u));const s=e.data.pipe(new Rse.RdfaParser({baseIRI:(o=e.metadata)==null?void 0:o.baseIRI,profile:"xml",language:a}));return{data:s,metadata:{triples:!0}}}}rv.ActorRdfParseXmlRdfa=Ise;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rv,t)})(bM);var zM={},lv={},Yx={},Pse=function(){var t=function(He,je,Fe,Je){for(Fe=Fe||{},Je=He.length;Je--;Fe[He[Je]]=je);return Fe},e=[7,12,13,14,15,16,20,25,115,130],r=[7,13,16,20,25,115,130],n=[7,13,16,115,130],a=[1,25],s=[1,29],o=[1,27],u=[1,28],c=[13,16,115,130],l=[13,16,28,38,40,42,44,46,48,53,56,61,67,85,87,92,93,95,96,102,110,111,115,119,120,126,128,129,130,131,132,133,134,135,136],d=[28,56],h=[1,42],f=[46,48,53,56],p=[1,54],b=[1,60],y=[1,56],S=[1,57],w=[1,58],I=[1,63],O=[1,64],T=[1,65],x=[1,66],P=[1,67],B=[1,68],Q=[1,75],N=[28,46,48,53,56],D=[28,42,46,48,53,56],F=[13,16,28,38,40,42,44,46,48,53,56,92,115,119,120,130,131,132,133,134,135,136],W=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,119,120,126,128,129,130,131,132,133,134,135,136],z=[13,16,38,40,44,92,115,119,120,130,131,132,133,134,135,136],M=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,117,118,119,120,126,128,129,130,131,132,133,134,135,136],C=[13,16,28,56,115,130],V=[13,16,38,58,87,96,109,115,126,130],ie=[1,116],ne=[1,112],fe=[1,108],_e=[1,114],we=[1,111],Ce=[7,13,16,20,25,44,48,53,56,67,85,87,95,96,115,128,129,130],oe=[48,53],ae=[48,53,87,96,126],Ae=[13,16,44,48,53,56,85,87,95,96,115,128,129,130],Ie=[1,126],he=[13,16,40,44,48,53,56,85,87,95,96,115,128,129,130],ve=[1,129],me=[48,53,67,87,96,126],L=[13,16,40,44,48,53,56,67,85,87,95,96,115,128,129,130],H=[1,133],A=[13,16,40,44,48,53,56,67,85,87,95,96,102,115,128,129,130],m=[13,16,40,44,48,53,56,67,85,87,93,95,96,102,110,111,115,128,129,130],v=[1,151],j=[1,153],q=[1,156],$=[1,157],G=[1,158],Y=[1,167],J=[1,175],re=[13,16,44,48,53,56,67,85,87,95,96,115,128,129,130],de=[13,16,44,48,53,56,67,85,87,95,96,115,126,128,129,130],be=[13,16,46,92,115,119,120,130,131,132,133,134,135,136],Ee={trace:function(){},yy:{},symbols_:{error:2,shaclDoc:3,shaclDoc_repetition0:4,shaclDoc_repetition1:5,ttlSection:6,EOF:7,directive:8,baseDecl:9,importsDecl:10,prefixDecl:11,KW_BASE:12,IRIREF:13,KW_IMPORTS:14,KW_PREFIX:15,PNAME_NS:16,nodeShapeIri:17,iri:18,nodeShape:19,KW_SHAPE:20,nodeShape_option0:21,nodeShape_option1:22,nodeShapeBody:23,shapeClass:24,KW_SHAPE_CLASS:25,shapeClass_option0:26,turtleAnnotation:27,";":28,turtleAnnotation2:29,predicate:30,turtleAnnotation2_option0:31,objectList:32,object:33,objectList_repetition0:34,iriOrLiteral:35,blankNodeSection:36,list:37,"(":38,list_repetition0:39,")":40,objectTail:41,",":42,LB:43,"[":44,RB:45,"]":46,LP:47,"%":48,RP:49,pcSection:50,iriHead:51,ttlStatement:52,".":53,ttlSection_repetition0:54,startNodeShape:55,"{":56,endNodeShape:57,"}":58,nodeShapeBody_repetition0:59,targetClass:60,"->":61,targetClass_repetition_plus0:62,constraint:63,constraint_group0:64,constraint_option0:65,orNotComponent:66,"|":67,nodeNot:68,nodeOrEmit:69,nodeOr:70,nodeOr_repetition_plus0:71,nodeValue:72,negation:73,nodeValue_group0:74,"=":75,iriOrLiteralOrArray:76,propertyShape:77,path:78,propertyShape_repetition0:79,propertyOrComponent:80,propertyNot:81,propertyOr:82,propertyOr_repetition_plus0:83,propertyAtom:84,NODEKIND:85,shapeRef:86,PARAM:87,propertyCount:88,propertyMinCount:89,"..":90,propertyMaxCount:91,INTEGER:92,"*":93,shapeRef_group0:94,"@":95,"!":96,pathAlternative:97,additionalAlternative:98,pathSequence:99,pathAlternative_repetition_plus0:100,additionalSequence:101,"/":102,pathEltOrInverse:103,pathSequence_repetition_plus0:104,pathElt:105,pathPrimary:106,pathMod:107,pathInverse:108,"^":109,"?":110,"+":111,iriOrLiteralOrArray_repetition0:112,literal:113,iri_group0:114,a:115,string:116,LANGTAG:117,"^^":118,DECIMAL:119,DOUBLE:120,literal_group0:121,string_group0:122,string_group1:123,shaclDoc_repetition1_group0:124,constraint_group0_repetition_plus0:125,TARGET:126,propertyShape_repetition0_group0:127,ATPNAME_LN:128,ATPNAME_NS:129,PNAME_LN:130,KW_TRUE:131,KW_FALSE:132,STRING_LITERAL1:133,STRING_LITERAL2:134,STRING_LITERAL_LONG1:135,STRING_LITERAL_LONG2:136,$accept:0,$end:1},terminals_:{2:"error",7:"EOF",12:"KW_BASE",13:"IRIREF",14:"KW_IMPORTS",15:"KW_PREFIX",16:"PNAME_NS",20:"KW_SHAPE",25:"KW_SHAPE_CLASS",28:";",38:"(",40:")",42:",",44:"[",46:"]",48:"%",53:".",56:"{",58:"}",61:"->",67:"|",75:"=",85:"NODEKIND",87:"PARAM",90:"..",92:"INTEGER",93:"*",95:"@",96:"!",102:"/",109:"^",110:"?",111:"+",115:"a",117:"LANGTAG",118:"^^",119:"DECIMAL",120:"DOUBLE",126:"TARGET",128:"ATPNAME_LN",129:"ATPNAME_NS",130:"PNAME_LN",131:"KW_TRUE",132:"KW_FALSE",133:"STRING_LITERAL1",134:"STRING_LITERAL2",135:"STRING_LITERAL_LONG1",136:"STRING_LITERAL_LONG2"},productions_:[0,[3,4],[8,1],[8,1],[8,1],[9,2],[10,2],[11,3],[17,1],[19,5],[24,4],[27,2],[29,2],[30,2],[32,2],[33,1],[33,1],[33,1],[37,3],[41,2],[43,1],[45,1],[36,3],[47,1],[49,1],[50,3],[51,1],[52,3],[6,1],[55,1],[57,1],[23,3],[60,2],[63,3],[66,2],[69,1],[70,1],[70,2],[68,1],[68,2],[72,3],[77,2],[80,2],[82,1],[82,2],[81,1],[81,2],[84,1],[84,1],[84,1],[84,3],[84,1],[88,5],[89,1],[91,1],[91,1],[86,1],[86,2],[73,1],[78,1],[98,2],[97,1],[97,2],[101,2],[99,1],[99,2],[105,1],[105,2],[103,1],[103,2],[108,1],[107,1],[107,1],[107,1],[106,1],[106,3],[76,1],[76,3],[35,1],[35,1],[18,1],[18,1],[18,1],[113,1],[113,2],[113,3],[113,1],[113,1],[113,1],[113,1],[116,1],[116,1],[4,0],[4,2],[124,1],[124,1],[5,0],[5,2],[21,0],[21,1],[22,0],[22,1],[26,0],[26,1],[31,0],[31,1],[34,0],[34,2],[39,0],[39,2],[54,0],[54,2],[59,0],[59,2],[62,1],[62,2],[125,1],[125,2],[64,1],[64,1],[65,0],[65,1],[71,1],[71,2],[74,1],[74,1],[127,1],[127,1],[79,0],[79,2],[83,1],[83,2],[94,1],[94,1],[100,1],[100,2],[104,1],[104,2],[112,0],[112,2],[114,1],[114,1],[121,1],[121,1],[122,1],[122,1],[123,1],[123,1]],performAction:function(je,Fe,Je,It,it,qe,Li){var Qe=qe.length-1;switch(it){case 1:this.$=te(Se.factory.namedNode(Vr("")),Se.factory.namedNode(Pe),Se.factory.namedNode(Xe+"Ontology"));break;case 5:Se.base=Se.factory.namedNode(qe[Qe].slice(1,-1)),Se.n3Parser._setBase(Se.base.value);break;case 6:this.$=te(Se.base,Se.factory.namedNode(Xe+"imports"),Se.factory.namedNode(qe[Qe].slice(1,-1)));break;case 7:this.$=Se.prefixes[qe[Qe-1].substr(0,qe[Qe-1].length-1)]=Vr(qe[Qe]);break;case 8:Se.nodeShapeStack=!1,te(Se.currentNodeShape=qe[Qe],Se.factory.namedNode(Pe),Se.factory.namedNode(ke+"NodeShape"));break;case 10:this.$=te(Se.currentNodeShape,Se.factory.namedNode(Pe),Se.factory.namedNode(Ke+"Class"));break;case 11:this.$=le();break;case 13:this.$=qe[Qe].forEach(kt=>te(Se.currentNodeShape,qe[Qe-1],kt));break;case 14:this.$=[qe[Qe-1],...qe[Qe]];break;case 18:this.$=rn(qe[Qe-1],!0);break;case 19:case 34:case 42:case 60:case 63:this.$=qe[Qe];break;case 20:Se.tempCurrentNodeShape=Se.currentNodeShape,this.$=Se.currentNodeShape=vr();break;case 21:Se.currentNodeShape=Se.tempCurrentNodeShape;break;case 22:case 31:this.$=qe[Qe-2];break;case 23:Se.tempCurrentNodeShape=Se.currentNodeShape,Se.currentNodeShape=Se.currentPropertyNode;break;case 24:Se.currentNodeShape=Se.tempCurrentNodeShape;break;case 26:Se.currentNodeShape=qe[Qe];break;case 29:Se.nodeShapeStack?(Se.nodeShapeStack.push(Se.currentNodeShape),te(Se.currentPropertyNode,Se.factory.namedNode(ke+"node"),Se.currentNodeShape=vr())):Se.nodeShapeStack=[],this.$=Se.currentNodeShape;break;case 30:Se.nodeShapeStack.length>0&&(Se.currentNodeShape=Se.nodeShapeStack.pop());break;case 32:this.$=qe[Qe].forEach(kt=>{te(Se.currentNodeShape,Se.factory.namedNode(ke+"targetClass"),kt)});break;case 35:this.$=te(Se.currentNodeShape,Se.factory.namedNode(ke+qe[Qe][0]),qe[Qe][1]);break;case 36:break;case 37:const Gr=rn([qe[Qe-1],...qe[Qe]].map(kt=>{const Fr=vr();return te(Fr,Se.factory.namedNode(ke+kt[0]),kt[1]),Fr}));this.$=["or",Gr];break;case 39:case 46:this.$=k("not",...qe[Qe]);break;case 40:case 50:this.$=[qe[Qe-2],qe[Qe]];break;case 43:this.$=qe[Qe]&&_(...qe[Qe]);break;case 44:this.$=_("or",rn([qe[Qe-1],...qe[Qe]].map(kt=>{const Fr=vr();return te(Fr,Se.factory.namedNode(ke+kt[0]),kt[1]),Fr})));break;case 47:this.$=[ht[qe[Qe].value]?"datatype":"class",qe[Qe]];break;case 48:this.$=["nodeKind",Se.factory.namedNode(ke+qe[Qe])];break;case 49:this.$=["node",Se.factory.namedNode(qe[Qe])];break;case 51:this.$=void 0;break;case 53:this.$=qe[Qe]>0&&_("minCount",br(qe[Qe],ce));break;case 54:this.$=_("maxCount",br(qe[Qe],ce));break;case 56:this.$=nn(qe[Qe].slice(1));break;case 57:this.$=Vr(qe[Qe]);break;case 59:te(Se.currentNodeShape,Se.factory.namedNode(ke+"property"),Se.currentPropertyNode=vr()),_("path",qe[Qe]);break;case 62:const Jt=vr();te(Jt,Se.factory.namedNode(ke+"alternativePath"),rn([qe[Qe-1],...qe[Qe]])),this.$=Jt;break;case 65:this.$=rn([qe[Qe-1],...qe[Qe]]);break;case 67:te(this.$=vr(),Se.factory.namedNode(ke+qe[Qe]),qe[Qe-1]);break;case 69:te(this.$=vr(),Se.factory.namedNode(ke+"inversePath"),qe[Qe]);break;case 71:this.$="zeroOrOnePath";break;case 72:this.$="zeroOrMorePath";break;case 73:this.$="oneOrMorePath";break;case 75:this.$=qe[Qe-1];break;case 77:this.$=rn(qe[Qe-1]);break;case 80:this.$=Se.factory.namedNode(Vr(qe[Qe]));break;case 81:this.$=Se.factory.namedNode(nn(qe[Qe]));break;case 82:this.$=le(Se.factory.namedNode(Pe));break;case 83:this.$=br(qe[Qe]);break;case 84:this.$=Pn(qe[Qe-1],lowercase(qe[Qe].substr(1)));break;case 85:this.$=br(qe[Qe-2],qe[Qe]);break;case 86:this.$=br(qe[Qe],ce);break;case 87:this.$=br(qe[Qe],ye);break;case 88:this.$=br(qe[Qe].toLowerCase(),ge);break;case 89:this.$=br(qe[Qe].toLowerCase(),$e);break;case 90:this.$=an(qe[Qe],1);break;case 91:this.$=an(qe[Qe],3);break;case 92:case 96:case 106:case 108:case 110:case 112:case 128:case 138:this.$=[];break;case 93:case 97:case 107:case 109:case 111:case 113:case 115:case 117:case 123:case 129:case 131:case 135:case 137:case 139:qe[Qe-1].push(qe[Qe]);break;case 114:case 116:case 122:case 130:case 134:case 136:this.$=[qe[Qe]];break}},table:[t(e,[2,92],{3:1,4:2}),{1:[3]},t(r,[2,96],{5:3,8:4,9:5,10:6,11:7,12:[1,8],14:[1,9],15:[1,10]}),t(n,[2,110],{6:11,124:12,54:13,19:14,24:15,20:[1,16],25:[1,17]}),t(e,[2,93]),t(e,[2,2]),t(e,[2,3]),t(e,[2,4]),{13:[1,18]},{13:[1,19]},{16:[1,20]},{7:[1,21]},t(r,[2,97]),{7:[2,28],13:a,16:s,18:24,51:23,52:22,114:26,115:o,130:u},t(r,[2,94]),t(r,[2,95]),{13:a,16:s,17:30,18:31,114:26,115:o,130:u},{13:a,16:s,17:32,18:31,114:26,115:o,130:u},t(e,[2,5]),t(e,[2,6]),{13:[1,33]},{1:[2,1]},t(n,[2,111]),{13:a,16:s,18:36,29:34,30:35,114:26,115:o,130:u},t(c,[2,26]),t(l,[2,80]),t(l,[2,81]),t(l,[2,82]),t(l,[2,140]),t(l,[2,141]),t(d,[2,98],{21:37,60:38,61:[1,39]}),t([28,56,61],[2,8]),{26:40,27:41,28:h,56:[2,102]},t(e,[2,7]),{53:[1,43]},t(f,[2,104],{31:44,27:45,28:h}),{13:a,16:s,18:51,32:46,33:47,35:48,36:49,37:50,38:p,43:53,44:b,92:y,113:52,114:26,115:o,116:55,119:S,120:w,121:59,122:61,123:62,130:u,131:I,132:O,133:T,134:x,135:P,136:B},{22:69,27:70,28:h,56:[2,100]},t(d,[2,99]),{13:a,16:s,18:72,62:71,114:26,115:o,130:u},{23:73,55:74,56:Q},{56:[2,103]},{13:a,16:s,18:36,29:76,30:35,114:26,115:o,130:u},t(n,[2,27]),t(f,[2,12]),t(f,[2,105]),t(N,[2,13]),t(D,[2,106],{34:77}),t(F,[2,15]),t(F,[2,16]),t(F,[2,17]),t(W,[2,78]),t(W,[2,79]),{13:a,16:s,18:36,29:78,30:35,114:26,115:o,130:u},t(z,[2,108],{39:79}),t(W,[2,83],{117:[1,80],118:[1,81]}),t(W,[2,86]),t(W,[2,87]),t(W,[2,88]),t(W,[2,89]),t(c,[2,20]),t(M,[2,90]),t(M,[2,91]),t(W,[2,142]),t(W,[2,143]),t(M,[2,144]),t(M,[2,145]),t(M,[2,146]),t(M,[2,147]),{23:82,55:74,56:Q},{56:[2,101]},t(d,[2,32],{114:26,18:83,13:a,16:s,115:o,130:u}),t(C,[2,114]),t(r,[2,10]),t(V,[2,112],{59:84}),t(V,[2,29]),t(f,[2,11]),t(N,[2,14],{41:85,42:[1,86]}),{45:87,46:[1,88]},{13:a,16:s,18:51,33:90,35:48,36:49,37:50,38:p,40:[1,89],43:53,44:b,92:y,113:52,114:26,115:o,116:55,119:S,120:w,121:59,122:61,123:62,130:u,131:I,132:O,133:T,134:x,135:P,136:B},t(W,[2,84]),{13:a,16:s,18:91,114:26,115:o,130:u},t(r,[2,9]),t(C,[2,115]),{13:a,16:s,18:115,38:ie,57:92,58:[1,94],63:93,64:95,68:102,69:98,70:100,72:104,73:105,74:107,77:97,78:99,87:ne,96:fe,97:101,99:103,103:106,105:109,106:113,108:110,109:_e,114:26,115:o,125:96,126:we,130:u},t(D,[2,107]),{13:a,16:s,18:51,33:117,35:48,36:49,37:50,38:p,43:53,44:b,92:y,113:52,114:26,115:o,116:55,119:S,120:w,121:59,122:61,123:62,130:u,131:I,132:O,133:T,134:x,135:P,136:B},t(F,[2,22]),t(F,[2,21]),t(F,[2,18]),t(z,[2,109]),t(W,[2,85]),t(Ce,[2,31]),t(V,[2,113]),t(Ce,[2,30]),{47:120,48:[1,121],50:119,53:[2,120],65:118},t(oe,[2,118],{70:100,68:102,72:104,73:105,74:107,69:122,87:ne,96:fe,126:we}),t(oe,[2,119]),t(ae,[2,116]),t(Ae,[2,128],{79:123}),t(ae,[2,35]),t(Ae,[2,59]),t(ae,[2,36],{71:124,66:125,67:Ie}),t(he,[2,61],{100:127,98:128,67:ve}),t(me,[2,38]),{72:130,74:107,87:ne,126:we},t(L,[2,64],{104:131,101:132,102:H}),{75:[1,134]},t([13,16,56,85,87,95,115,126,128,129,130],[2,58]),t(A,[2,68]),{13:a,16:s,18:115,38:ie,105:135,106:113,114:26,115:o,130:u},{75:[2,124]},{75:[2,125]},t(A,[2,66],{107:136,93:[1,138],110:[1,137],111:[1,139]}),t([13,16,38,115,130],[2,70]),t(m,[2,74]),{13:a,16:s,18:115,38:ie,97:140,99:103,103:106,105:109,106:113,108:110,109:_e,114:26,115:o,130:u},t(D,[2,19]),{53:[1,141]},{53:[2,121]},{13:a,16:s,18:36,29:142,30:35,114:26,115:o,130:u},t(c,[2,23]),t(ae,[2,117]),t(oe,[2,41],{114:26,55:74,127:143,88:144,82:145,81:147,84:148,73:149,18:150,86:152,23:154,94:155,13:a,16:s,44:[1,146],56:Q,85:v,87:j,95:q,96:fe,115:o,128:$,129:G,130:u}),t(ae,[2,37],{66:159,67:Ie}),t(me,[2,122]),{68:160,72:104,73:105,74:107,87:ne,96:fe,126:we},t(he,[2,62],{98:161,67:ve}),t(L,[2,134]),{13:a,16:s,18:115,38:ie,99:162,103:106,105:109,106:113,108:110,109:_e,114:26,115:o,130:u},t(me,[2,39]),t(L,[2,65],{101:163,102:H}),t(A,[2,136]),{13:a,16:s,18:115,38:ie,103:164,105:109,106:113,108:110,109:_e,114:26,115:o,130:u},{13:a,16:s,18:51,35:166,44:Y,76:165,92:y,113:52,114:26,115:o,116:55,119:S,120:w,121:59,122:61,123:62,130:u,131:I,132:O,133:T,134:x,135:P,136:B},t(A,[2,69]),t(A,[2,67]),t(A,[2,71]),t(A,[2,72]),t(A,[2,73]),{40:[1,168]},t(V,[2,33]),{48:[1,170],49:169},t(Ae,[2,129]),t(Ae,[2,126]),t(Ae,[2,127]),{89:171,92:[1,172]},t(Ae,[2,43],{83:173,80:174,67:J}),t(re,[2,45]),{13:a,16:s,18:150,23:154,55:74,56:Q,84:176,85:v,86:152,87:j,94:155,95:q,114:26,115:o,128:$,129:G,130:u},t(re,[2,47]),t(re,[2,48]),t(re,[2,49]),{75:[1,177]},t(re,[2,51]),t(re,[2,56]),{13:[1,178]},t(re,[2,132]),t(re,[2,133]),t(me,[2,123]),t(me,[2,34]),t(L,[2,135]),t(L,[2,60]),t(A,[2,137]),t(A,[2,63]),t(me,[2,40]),t(de,[2,76]),t(be,[2,138],{112:179}),t(m,[2,75]),{53:[2,25]},{53:[2,24]},{90:[1,180]},{90:[2,53]},t(Ae,[2,44],{80:181,67:J}),t(re,[2,130]),{13:a,16:s,18:150,23:154,55:74,56:Q,73:149,81:182,84:148,85:v,86:152,87:j,94:155,95:q,96:fe,114:26,115:o,128:$,129:G,130:u},t(re,[2,46]),{13:a,16:s,18:51,35:166,44:Y,76:183,92:y,113:52,114:26,115:o,116:55,119:S,120:w,121:59,122:61,123:62,130:u,131:I,132:O,133:T,134:x,135:P,136:B},t(re,[2,57]),{13:a,16:s,18:51,35:185,46:[1,184],92:y,113:52,114:26,115:o,116:55,119:S,120:w,121:59,122:61,123:62,130:u,131:I,132:O,133:T,134:x,135:P,136:B},{91:186,92:[1,187],93:[1,188]},t(re,[2,131]),t(re,[2,42]),t(re,[2,50]),t(de,[2,77]),t(be,[2,139]),{46:[1,189]},{46:[2,54]},{46:[2,55]},t(Ae,[2,52])],defaultActions:{21:[2,1],41:[2,103],70:[2,101],111:[2,124],112:[2,125],119:[2,121],169:[2,25],170:[2,24],172:[2,53],187:[2,54],188:[2,55]},parseError:function(je,Fe){if(Fe.recoverable)this.trace(je);else{var Je=new Error(je);throw Je.hash=Fe,Je}},parse:function(je){var Fe=this,Je=[0],It=[null],it=[],qe=this.table,Li="",Qe=0,Gr=0,Jt=2,kt=1,Fr=it.slice.call(arguments,1),At=Object.create(this.lexer),wa={yy:{}};for(var Ji in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ji)&&(wa.yy[Ji]=this.yy[Ji]);At.setInput(je,wa.yy),wa.yy.lexer=At,wa.yy.parser=this,typeof At.yylloc>"u"&&(At.yylloc={});var lr=At.yylloc;it.push(lr);var ho=At.options&&At.options.ranges;typeof wa.yy.parseError=="function"?this.parseError=wa.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var uu=function(){var Qn;return Qn=At.lex()||kt,typeof Qn!="number"&&(Qn=Fe.symbols_[Qn]||Qn),Qn},Jr,Bi,pn,Yi,yn={},Ma,sn,Ss,La;;){if(Bi=Je[Je.length-1],this.defaultActions[Bi]?pn=this.defaultActions[Bi]:((Jr===null||typeof Jr>"u")&&(Jr=uu()),pn=qe[Bi]&&qe[Bi][Jr]),typeof pn>"u"||!pn.length||!pn[0]){var hi="";La=[];for(Ma in qe[Bi])this.terminals_[Ma]&&Ma>Jt&&La.push("'"+this.terminals_[Ma]+"'");At.showPosition?hi="Parse error on line "+(Qe+1)+`: -`+At.showPosition()+` -Expecting `+La.join(", ")+", got '"+(this.terminals_[Jr]||Jr)+"'":hi="Parse error on line "+(Qe+1)+": Unexpected "+(Jr==kt?"end of input":"'"+(this.terminals_[Jr]||Jr)+"'"),this.parseError(hi,{text:At.match,token:this.terminals_[Jr]||Jr,line:At.yylineno,loc:lr,expected:La})}if(pn[0]instanceof Array&&pn.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Bi+", token: "+Jr);switch(pn[0]){case 1:Je.push(Jr),It.push(At.yytext),it.push(At.yylloc),Je.push(pn[1]),Jr=null,Gr=At.yyleng,Li=At.yytext,Qe=At.yylineno,lr=At.yylloc;break;case 2:if(sn=this.productions_[pn[1]][1],yn.$=It[It.length-sn],yn._$={first_line:it[it.length-(sn||1)].first_line,last_line:it[it.length-1].last_line,first_column:it[it.length-(sn||1)].first_column,last_column:it[it.length-1].last_column},ho&&(yn._$.range=[it[it.length-(sn||1)].range[0],it[it.length-1].range[1]]),Yi=this.performAction.apply(yn,[Li,Gr,Qe,wa.yy,pn[1],It,it].concat(Fr)),typeof Yi<"u")return Yi;sn&&(Je=Je.slice(0,-1*sn*2),It=It.slice(0,-1*sn),it=it.slice(0,-1*sn)),Je.push(this.productions_[pn[1]][0]),It.push(yn.$),it.push(yn._$),Ss=qe[Je[Je.length-2]][Je[Je.length-1]],Je.push(Ss);break;case 3:return!0}}return!0}};const xe="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Pe=xe+"type",U=xe+"first",E=xe+"rest",R=xe+"nil",K="http://www.w3.org/2001/XMLSchema#",ce=K+"integer",ye=K+"decimal",ge=K+"double",$e=K+"boolean",ke="http://www.w3.org/ns/shacl#",Xe="http://www.w3.org/2002/07/owl#",Ke="http://www.w3.org/2000/01/rdf-schema#",ht={[ce]:!0,[ye]:!0,[K+"float"]:!0,[ge]:!0,[K+"string"]:!0,[$e]:!0,[K+"dateTime"]:!0,[K+"nonPositiveInteger"]:!0,[K+"negativeInteger"]:!0,[K+"long"]:!0,[K+"int"]:!0,[K+"short"]:!0,[K+"byte"]:!0,[K+"nonNegativeInteger"]:!0,[K+"unsignedLong"]:!0,[K+"unsignedShort"]:!0,[K+"unsignedByte"]:!0,[K+"positiveInteger"]:!0,[xe+"langString"]:!0};function rn(He,je=!1){let Fe=0,Je=He.length;if(je&&Je===0)return Se.factory.namedNode(R);const It=head=vr();return Je===0&&te(head,Se.factory.namedNode(E),Se.factory.namedNode(R)),He.forEach(it=>{if(it===void 0)throw new Error("b");te(head,Se.factory.namedNode(U),it),te(head,Se.factory.namedNode(E),head=++Fe20?"...":"")+je.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var je=this.match;return je.length<20&&(je+=this._input.substr(0,20-je.length)),(je.substr(0,20)+(je.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var je=this.pastInput(),Fe=new Array(je.length+1).join("-");return je+this.upcomingInput()+` -`+Fe+"^"},test_match:function(je,Fe){var Je,It,it;if(this.options.backtrack_lexer&&(it={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&&(it.yylloc.range=this.yylloc.range.slice(0))),It=je[0].match(/(?:\r\n?|\n).*/g),It&&(this.yylineno+=It.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:It?It[It.length-1].length-It[It.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+je[0].length},this.yytext+=je[0],this.match+=je[0],this.matches=je,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(je[0].length),this.matched+=je[0],Je=this.performAction.call(this,this.yy,this,Fe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Je)return Je;if(this._backtrack){for(var qe in it)this[qe]=it[qe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var je,Fe,Je,It;this._more||(this.yytext="",this.match="");for(var it=this._currentRules(),qe=0;qeFe[0].length)){if(Fe=Je,It=qe,this.options.backtrack_lexer){if(je=this.test_match(Je,it[qe]),je!==!1)return je;if(this._backtrack){Fe=!1;continue}else return!1}else if(!this.options.flex)break}return Fe?(je=this.test_match(Fe,it[It]),je!==!1?je:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Fe=this.next();return Fe||this.lex()},begin:function(Fe){this.conditionStack.push(Fe)},popState:function(){var Fe=this.conditionStack.length-1;return Fe>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(Fe){return Fe=this.conditionStack.length-1-Math.abs(Fe||0),Fe>=0?this.conditionStack[Fe]:"INITIAL"},pushState:function(Fe){this.begin(Fe)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(Fe,Je,It,it){switch(It){case 0:break;case 1:return 12;case 2:return 14;case 3:return 15;case 4:return 25;case 5:return 20;case 6:return 131;case 7:return 132;case 8:return 85;case 9:return 126;case 10:return 87;case 11:return"PASS";case 12:return"COMMENT";case 13:return 13;case 14:return 16;case 15:return 130;case 16:return 129;case 17:return 128;case 18:return 117;case 19:return 92;case 20:return 119;case 21:return 120;case 22:return"EXPONENT";case 23:return 133;case 24:return 134;case 25:return 135;case 26:return 136;case 27:return 61;case 28:return 90;case 29:return 58;case 30:return 56;case 31:return 38;case 32:return 40;case 33:return 44;case 34:return 46;case 35:return 110;case 36:return 93;case 37:return 111;case 38:return 67;case 39:return 118;case 40:return 53;case 41:return 96;case 42:return 102;case 43:return 75;case 44:return 95;case 45:return 109;case 46:return 28;case 47:return 42;case 48:return 48;case 49:return 115;case 50:return 7;case 51:console.log(Je.yytext);break}},rules:[/^(?:\s+|#[^\n\r]*)/i,/^(?:BASE)/i,/^(?:IMPORTS)/i,/^(?:PREFIX)/i,/^(?:shapeClass)/i,/^(?:shape)/i,/^(?:true)/i,/^(?:false)/i,/^(?:(BlankNode|IRI|Literal|BlankNodeOrIRI|BlankNodeOrLiteral|IRIOrLiteral\b))/i,/^(?:(targetNode|targetObjectsOf|targetSubjectsOf\b))/i,/^(?:(deactivated|severity|message|class|datatype|nodeKind|minExclusive|minInclusive|maxExclusive|maxInclusive|minLength|maxLength|pattern|flags|languageIn|uniqueLang|equals|disjoint|lessThan|lessThanOrEquals|qualifiedValueShape|qualifiedMinCount|qualifiedMaxCount|qualifiedValueShapesDisjoint|closed|ignoredProperties|hasValue|in))/i,/^(?:([ \t\r\n]+))/i,/^(?:(#[\r\n]*))/i,/^(?:(<([^=<>\"\{\}\|\^`\\\u0000-\u0020]|(\\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,/^(?:((([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])((((([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])|_\b)|-|[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])|_\b)|-|[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])((((([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])|_\b)|-|[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])|_\b)|-|[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])|_\b)|:|[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])|_\b)|-|[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])|_\b)|-|[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])((((([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])|_\b)|-|[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])|_\b)|-|[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])((((([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])|_\b)|-|[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])|_\b)|-|[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])|_\b)|:|[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])|_\b)|-|[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])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/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]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"\'])))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"\'])))*"""))/i,/^(?:->)/i,/^(?:\.\.)/i,/^(?:\})/i,/^(?:\{)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\?)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:\|)/i,/^(?:\^\^)/i,/^(?:\.)/i,/^(?:!)/i,/^(?:\/)/i,/^(?:=)/i,/^(?:@)/i,/^(?:\^)/i,/^(?:;)/i,/^(?:,)/i,/^(?:%)/i,/^(?:a)/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],inclusive:!0}}};return He}();Ee.lexer=Te;function Se(){this.yy={}}return Se.prototype=Ee,Ee.Parser=Se,new Se}(),Dse=Pse;const Nse=Dse.Parser,IT=au;let WM=class{constructor(){}parse(e,{extendedSyntax:r,baseIRI:n}={}){this._parser=new Nse,this._parser.Parser.factory=IT.DataFactory,this._parser.Parser.base=IT.DataFactory.namedNode(n||"urn:x-base:default"),this._parser.Parser.extended=r===!0,this._parser.Parser.prefixes={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"},this._parser.Parser.currentNodeShape=void 0,this._parser.Parser.currentPropertyNode=void 0,this._parser.Parser.nodeShapeStack=[],this._parser.Parser.tempCurrentNodeShape=void 0,this._parser.Parser.n3Parser=new IT.Parser({baseIRI:n||"urn:x-base:default"});const a=[];return this._parser.Parser.onQuad=s=>{a.push(s)},this._parser.parse(e),a.prefixes=this._parser.Parser.prefixes,a}};Yx.Parser=WM;Yx.parse=function(e,r){return new WM().parse(e,r)};var XM={exports:{}};(function(t){(function(){var e;typeof window=="object"&&window?e=window:e=g,t.exports?t.exports=e.Promise?e.Promise:s:e.Promise||(e.Promise=s);var r=e.setImmediate||function(f){setTimeout(f,1)};function n(f,p){return function(){f.apply(p,arguments)}}var a=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function s(f){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof f!="function")throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],h(f,n(u,this),n(c,this))}function o(f){var p=this;if(this._state===null){this._deferreds.push(f);return}r(function(){var b=p._state?f.onFulfilled:f.onRejected;if(b===null){(p._state?f.resolve:f.reject)(p._value);return}var y;try{y=b(p._value)}catch(S){f.reject(S);return}f.resolve(y)})}function u(f){try{if(f===this)throw new TypeError("A promise cannot be resolved with itself.");if(f&&(typeof f=="object"||typeof f=="function")){var p=f.then;if(typeof p=="function"){h(n(p,f),n(u,this),n(c,this));return}}this._state=!0,this._value=f,l.call(this)}catch(b){c.call(this,b)}}function c(f){this._state=!1,this._value=f,l.call(this)}function l(){for(var f=0,p=this._deferreds.length;f(this.prefixes=r.prefixes,r)))}read(){if(this.prefixes){for(const e of Object.entries(this.prefixes))this.emit("prefix",...e);delete this.prefixes}return super.read()}}dv.PrefixWrappingIterator=Mse;Object.defineProperty(lv,"__esModule",{value:!0});lv.ActorRdfParseShaclc=void 0;const Lse=Rl,Bse=Kt,$se=Yx,Use=Pl,qse=dv;class Vse extends Lse.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,r,n){const a=new qse.PrefixWrappingIterator(Use(e.data).then(o=>{var u;return(0,$se.parse)(o,{extendedSyntax:r==="text/shaclc-ext",baseIRI:(u=e.metadata)==null?void 0:u.baseIRI})})),s=new Bse.Readable({objectMode:!0});return a.on("prefix",(...o)=>s.emit("prefix",...o)),{data:s.wrap(a),metadata:{triples:!0}}}}lv.ActorRdfParseShaclc=Vse;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lv,t)})(zM);var KM={},fv={},JM={},hv={};Object.defineProperty(hv,"__esModule",{value:!0});hv.ActorRdfJoinEntriesSort=void 0;const Hse=et;class kse extends Hse.Actor{constructor(e){super(e)}}hv.ActorRdfJoinEntriesSort=kse;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hv,t)})(JM);var Dl={},H0={};Object.defineProperty(H0,"__esModule",{value:!0});H0.ActorRdfResolveQuadPattern=void 0;const Qse=et;class Gse extends Qse.Actor{constructor(e){super(e)}}H0.ActorRdfResolveQuadPattern=Gse;var pv={};Object.defineProperty(pv,"__esModule",{value:!0});pv.ActorRdfResolveQuadPatternSource=void 0;const zse=H0;class Wse extends zse.ActorRdfResolveQuadPattern{constructor(e){super(e)}async test(e){return!0}async run(e){const r=await this.getSource(e.context,e.pattern);return await this.getOutput(r,e.pattern,e.context)}async getOutput(e,r,n){return{data:e.match(r.subject,r.predicate,r.object,r.graph,n)}}}pv.ActorRdfResolveQuadPatternSource=Wse;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.hasContextSingleSourceOfType=Wr.hasContextSingleSource=Wr.getContextSourceUrl=Wr.getContextSourceFirst=Wr.getContextSource=Wr.getContextSources=Wr.getDataSourceContext=Wr.getDataSourceValue=Wr.getDataSourceType=Wr.isDataSourceRawType=void 0;const pp=Ht,Xse=et;function yv(t){return typeof t=="string"||"match"in t}Wr.isDataSourceRawType=yv;function YM(t){return typeof t=="string"?"":"match"in t?"rdfjsSource":t.type}Wr.getDataSourceType=YM;function Zx(t){return yv(t)?t:t.value}Wr.getDataSourceValue=Zx;function Kse(t,e){return yv(t)||!t.context?e:e.merge(Xse.ActionContext.ensureActionContext(t.context))}Wr.getDataSourceContext=Kse;function Jse(t){return t.get(pp.KeysRdfResolveQuadPattern.sources)}Wr.getContextSources=Jse;function eR(t){return t.get(pp.KeysRdfResolveQuadPattern.source)}Wr.getContextSource=eR;function Yse(t){if(t.has(pp.KeysRdfResolveQuadPattern.source))return t.get(pp.KeysRdfResolveQuadPattern.source);const e=t.get(pp.KeysRdfResolveQuadPattern.sources);if((e==null?void 0:e.length)===1)return e[0]}Wr.getContextSourceFirst=Yse;function Zse(t){if(t){let e=Zx(t);if(typeof e=="string"){const r=e.indexOf("#");return r>=0&&(e=e.slice(0,r)),e}}}Wr.getContextSourceUrl=Zse;function eoe(t){const e=eR(t);return!!(e&&(yv(e)||e.value))}Wr.hasContextSingleSource=eoe;function toe(t,e){const r=eR(e);return!!(r&&YM(r)===t&&Zx(r))}Wr.hasContextSingleSourceOfType=toe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(H0,t),r(pv,t),r(Wr,t)})(Dl);Object.defineProperty(fv,"__esModule",{value:!0});fv.ActorRdfJoinEntriesSortTraversalZeroKnowledge=void 0;const roe=JM,noe=Dl,ioe=Ht,_1=hn,td=Tt;class No extends roe.ActorRdfJoinEntriesSort{constructor(e){super(e)}static getPatternNonVocabUris(e){let r;const n=[];return e.type==="pattern"?n.push(e.predicate):td.Util.recurseOperation(e,{link(a){return n.push(a.iri),!1},nps(a){for(const s of a.iris)n.push(s);return!1}}),n.some(a=>a.termType==="NamedNode"&&a.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#type")?r=[e.subject,e.graph]:r=[e.subject,e.object,e.graph],(0,_1.getNamedNodes)(r)}static getSourceUri(e){const r=e.value,n=r.indexOf("#");return n>0?r.slice(0,n):r}static getScoreSeedNonVocab(e,r){return No.getPatternNonVocabUris(e).map(n=>No.getSourceUri(n)).filter(n=>r.includes(n)).length}static getScoreSelectivity(e){const r=e.type==="pattern"?(0,_1.getTerms)(e):[e.subject,e.object,e.graph];return _1.QUAD_TERM_NAMES.length-(0,_1.getVariables)(r).length}static sortJoinEntries(e,r){return[...e].sort((n,a)=>{if((n.operation.type===td.Algebra.types.PATTERN||n.operation.type===td.Algebra.types.PATH)&&(a.operation.type===td.Algebra.types.PATTERN||a.operation.type===td.Algebra.types.PATH)){const s=No.getScoreSeedNonVocab(a.operation,r)-No.getScoreSeedNonVocab(n.operation,r);return s===0?No.getScoreSelectivity(a.operation)-No.getScoreSelectivity(n.operation):s}return n.operation.type===td.Algebra.types.PATTERN?-1:1})}async test(e){return!0}async run(e){const r=[],n=e.context.get(ioe.KeysRdfResolveQuadPattern.sources);if(n)for(const a of n){const s=(0,noe.getDataSourceValue)(a);typeof s=="string"&&r.push(s)}return{entries:No.sortJoinEntries(e.entries,r)}}}fv.ActorRdfJoinEntriesSortTraversalZeroKnowledge=No;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fv,t)})(KM);var ZM={},ff={},e7={},bv={};Object.defineProperty(bv,"__esModule",{value:!0});bv.ActorRdfJoinSelectivity=void 0;const aoe=et;class soe extends aoe.Actor{constructor(e){super(e)}}bv.ActorRdfJoinSelectivity=soe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bv,t)})(e7);Object.defineProperty(ff,"__esModule",{value:!0});ff.JoinTypes=ff.ActorRdfJoinSelectivityVariableCounting=void 0;const ooe=e7,v1=Tt;class Co extends ooe.ActorRdfJoinSelectivity{constructor(e){super(e)}async test(e){return{accuracy:.5}}static getPatternCost(e){let r=1;return e.subject.termType==="Variable"&&(r+=4),(e.predicate.termType==="Variable"||e.type===v1.Algebra.types.PATH)&&(r+=1),e.object.termType==="Variable"&&(r+=2),e.graph.termType==="Variable"&&(r+=1),r/9}static getJoinTypes(e,r){const n=[];return e.subject.termType==="Variable"?(e.subject.equals(r.subject)&&n.push(tt.unboundSS),r.type==="pattern"&&e.subject.equals(r.predicate)&&n.push(tt.unboundSP),e.subject.equals(r.object)&&n.push(tt.unboundSO),e.subject.equals(r.graph)&&n.push(tt.unboundSG)):(e.subject.equals(r.subject)&&n.push(tt.boundSS),r.type==="pattern"&&e.subject.equals(r.predicate)&&n.push(tt.boundSP),e.subject.equals(r.object)&&n.push(tt.boundSO),e.subject.equals(r.graph)&&n.push(tt.boundSG)),e.type==="pattern"&&(e.predicate.termType==="Variable"?(e.predicate.equals(r.subject)&&n.push(tt.unboundPS),r.type==="pattern"&&e.predicate.equals(r.predicate)&&n.push(tt.unboundPP),e.predicate.equals(r.object)&&n.push(tt.unboundPO),e.predicate.equals(r.graph)&&n.push(tt.unboundPG)):(e.predicate.equals(r.subject)&&n.push(tt.boundPS),r.type==="pattern"&&e.predicate.equals(r.predicate)&&n.push(tt.boundPP),e.predicate.equals(r.object)&&n.push(tt.boundPO),e.predicate.equals(r.graph)&&n.push(tt.boundPG))),e.object.termType==="Variable"?(e.object.equals(r.subject)&&n.push(tt.unboundOS),r.type==="pattern"&&e.object.equals(r.predicate)&&n.push(tt.unboundOP),e.object.equals(r.object)&&n.push(tt.unboundOO),e.object.equals(r.graph)&&n.push(tt.unboundOG)):(e.object.equals(r.subject)&&n.push(tt.boundOS),r.type==="pattern"&&e.object.equals(r.predicate)&&n.push(tt.boundOP),e.object.equals(r.object)&&n.push(tt.boundOO),e.object.equals(r.graph)&&n.push(tt.boundOG)),e.graph.termType==="Variable"?(e.graph.equals(r.subject)&&n.push(tt.unboundGS),r.type==="pattern"&&e.graph.equals(r.predicate)&&n.push(tt.unboundGP),e.graph.equals(r.object)&&n.push(tt.unboundGO),e.graph.equals(r.graph)&&n.push(tt.unboundGG)):(e.graph.equals(r.subject)&&n.push(tt.boundGS),r.type==="pattern"&&e.graph.equals(r.predicate)&&n.push(tt.boundGP),e.graph.equals(r.object)&&n.push(tt.boundGO),e.graph.equals(r.graph)&&n.push(tt.boundGG)),n}static getOperationsPairwiseJoinCost(e,r){let n=Co.MAX_PAIRWISE_COST;for(const a of Co.getJoinTypes(e,r))switch(a){case tt.boundSS:n-=2*2;break;case tt.boundSP:n-=3*2;break;case tt.boundSO:n-=1*2;break;case tt.boundSG:n-=3*2;break;case tt.boundPS:n-=3*2;break;case tt.boundPP:return 1;case tt.boundPO:n-=3*2;break;case tt.boundPG:n-=3*2;break;case tt.boundOS:n-=1*2;break;case tt.boundOP:n-=3*2;break;case tt.boundOO:n-=1*2;break;case tt.boundOG:n-=3*2;break;case tt.boundGS:n-=3*2;break;case tt.boundGP:n-=3*2;break;case tt.boundGO:n-=3*2;break;case tt.boundGG:n-=3*2;break;case tt.unboundSS:n-=2;break;case tt.unboundSP:n-=3;break;case tt.unboundSO:n-=1;break;case tt.unboundSG:n-=3;break;case tt.unboundPS:n-=3;break;case tt.unboundPP:n-=3;break;case tt.unboundPO:n-=3;break;case tt.unboundPG:n-=3;break;case tt.unboundOS:n-=1;break;case tt.unboundOP:n-=3;break;case tt.unboundOO:n-=1;break;case tt.unboundOG:n-=3;break;case tt.unboundGS:n-=3;break;case tt.unboundGP:n-=3;break;case tt.unboundGO:n-=3;break;case tt.unboundGG:n-=3;break}return n/Co.MAX_PAIRWISE_COST}static getOperationsJoinCost(e){const r=[];for(const s of e)v1.Util.recurseOperation(s,{[v1.Algebra.types.PATTERN](o){return r.push(o),!1},[v1.Algebra.types.PATH](o){return r.push(o),!1}});let n=0,a=0;for(const s of r)for(const o of r)s!==o&&(n+=Co.getOperationsPairwiseJoinCost(s,o),a++);return a===0?1:n/a*r.reduce((s,o)=>s*Co.getPatternCost(o),1)}async run(e){return e.entries.length<=1?{selectivity:1}:{selectivity:Co.getOperationsJoinCost(e.entries.map(r=>r.operation))}}}ff.ActorRdfJoinSelectivityVariableCounting=Co;Co.MAX_PAIRWISE_COST=41*2;var tt;(function(t){t[t.boundSS=0]="boundSS",t[t.boundSP=1]="boundSP",t[t.boundSO=2]="boundSO",t[t.boundSG=3]="boundSG",t[t.boundPS=4]="boundPS",t[t.boundPP=5]="boundPP",t[t.boundPO=6]="boundPO",t[t.boundPG=7]="boundPG",t[t.boundOS=8]="boundOS",t[t.boundOP=9]="boundOP",t[t.boundOO=10]="boundOO",t[t.boundOG=11]="boundOG",t[t.boundGS=12]="boundGS",t[t.boundGP=13]="boundGP",t[t.boundGO=14]="boundGO",t[t.boundGG=15]="boundGG",t[t.unboundSS=16]="unboundSS",t[t.unboundSP=17]="unboundSP",t[t.unboundSO=18]="unboundSO",t[t.unboundSG=19]="unboundSG",t[t.unboundPS=20]="unboundPS",t[t.unboundPP=21]="unboundPP",t[t.unboundPO=22]="unboundPO",t[t.unboundPG=23]="unboundPG",t[t.unboundOS=24]="unboundOS",t[t.unboundOP=25]="unboundOP",t[t.unboundOO=26]="unboundOO",t[t.unboundOG=27]="unboundOG",t[t.unboundGS=28]="unboundGS",t[t.unboundGP=29]="unboundGP",t[t.unboundGO=30]="unboundGO",t[t.unboundGG=31]="unboundGG"})(tt||(ff.JoinTypes=tt={}));(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ff,t)})(ZM);var t7={},mv={},tR={},gv={};Object.defineProperty(gv,"__esModule",{value:!0});gv.ActorRdfMetadata=void 0;const uoe=et;class coe extends uoe.Actor{constructor(e){super(e)}}gv.ActorRdfMetadata=coe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gv,t)})(tR);Object.defineProperty(mv,"__esModule",{value:!0});mv.ActorRdfMetadataPrimaryTopic=void 0;const loe=tR,LN=Kt;class doe extends loe.ActorRdfMetadata{constructor(e){super(e)}async test(e){if(e.triples)throw new Error("This actor only supports non-triple quad streams.");return!0}async run(e){const r=new LN.Readable({objectMode:!0}),n=new LN.Readable({objectMode:!0}),a=()=>{r._read=n._read=()=>{},e.quads.on("error",c=>{r.emit("error",c),n.emit("error",c)});const s={};let o;const u={};e.quads.on("data",c=>{c.predicate.value==="http://rdfs.org/ns/void#subset"&&c.object.value===e.url?o=c.subject.value:c.predicate.value==="http://xmlns.com/foaf/0.1/primaryTopic"&&(u[c.object.value]=c.subject.value);let l=s[c.graph.value];l||(l=s[c.graph.value]=[]),l.push(c)}),e.quads.on("end",()=>{const c=o?u[o]:void 0;for(const l in s)if(l===c){for(const d of s[l])n.push(d);if(this.metadataToData)for(const d of s[l])r.push(d)}else{for(const d of s[l])r.push(d);if(!c&&this.dataToMetadataOnInvalidMetadataGraph)for(const d of s[l])n.push(d)}r.push(null),n.push(null)})};return r._read=n._read=()=>{a()},{data:r,metadata:n}}}mv.ActorRdfMetadataPrimaryTopic=doe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mv,t)})(t7);var r7={},_v={};Object.defineProperty(_v,"__esModule",{value:!0});_v.ActorRdfMetadataAll=void 0;const foe=tR,BN=Kt;class hoe extends foe.ActorRdfMetadata{constructor(e){super(e)}async test(e){return!0}async run(e){const r=new BN.Readable({objectMode:!0}),n=new BN.Readable({objectMode:!0});e.quads.on("error",s=>{r.emit("error",s),n.emit("error",s)});const a=()=>{r._read=n._read=()=>{},e.quads.on("data",s=>{r.push(s),n.push(s)}),e.quads.on("end",()=>{r.push(null),n.push(null)})};return r._read=n._read=()=>{a()},{data:r,metadata:n}}}_v.ActorRdfMetadataAll=hoe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_v,t)})(r7);var n7={},vv={},k0={},wv={};Object.defineProperty(wv,"__esModule",{value:!0});wv.ActorRdfMetadataAccumulate=void 0;const poe=et;class yoe extends poe.Actor{constructor(e){super(e)}}wv.ActorRdfMetadataAccumulate=yoe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(wv,t)})(k0);Object.defineProperty(vv,"__esModule",{value:!0});vv.ActorRdfMetadataAccumulateCanContainUndefs=void 0;const boe=k0;class moe extends boe.ActorRdfMetadataAccumulate{constructor(e){super(e)}async test(e){return!0}async run(e){if(e.mode==="initialize")return{metadata:{canContainUndefs:!1}};let r=e.accumulatedMetadata.canContainUndefs;return e.appendingMetadata.canContainUndefs&&(r=!0),{metadata:{canContainUndefs:r}}}}vv.ActorRdfMetadataAccumulateCanContainUndefs=moe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vv,t)})(n7);var i7={},Sv={};Object.defineProperty(Sv,"__esModule",{value:!0});Sv.ActorRdfMetadataAccumulateCardinality=void 0;const goe=k0;class _oe extends goe.ActorRdfMetadataAccumulate{constructor(e){super(e)}async test(e){return!0}async run(e){if(e.mode==="initialize")return{metadata:{cardinality:{type:"exact",value:0}}};const r={...e.accumulatedMetadata.cardinality};if(r.dataset)if(e.appendingMetadata.cardinality.dataset){if(r.dataset!==e.appendingMetadata.cardinality.dataset&&e.appendingMetadata.subsetOf===r.dataset)return{metadata:{cardinality:e.appendingMetadata.cardinality}};if(r.dataset!==e.appendingMetadata.cardinality.dataset)delete r.dataset;else return{metadata:{cardinality:r}}}else return{metadata:{cardinality:r}};return!e.appendingMetadata.cardinality||!Number.isFinite(e.appendingMetadata.cardinality.value)?(r.type="estimate",r.value=Number.POSITIVE_INFINITY):(e.appendingMetadata.cardinality.type==="estimate"&&(r.type="estimate"),r.value+=e.appendingMetadata.cardinality.value),{metadata:{cardinality:r}}}}Sv.ActorRdfMetadataAccumulateCardinality=_oe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Sv,t)})(i7);var a7={},Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});Tv.ActorRdfMetadataAccumulatePageSize=void 0;const voe=k0;class woe extends voe.ActorRdfMetadataAccumulate{constructor(e){super(e)}async test(e){return!0}async run(e){return e.mode==="initialize"?{metadata:{}}:{metadata:{..."pageSize"in e.accumulatedMetadata||"pageSize"in e.appendingMetadata?{pageSize:(e.accumulatedMetadata.pageSize||0)+(e.appendingMetadata.pageSize||0)}:{}}}}}Tv.ActorRdfMetadataAccumulatePageSize=woe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Tv,t)})(a7);var s7={},Ev={};Object.defineProperty(Ev,"__esModule",{value:!0});Ev.ActorRdfMetadataAccumulateRequestTime=void 0;const Soe=k0;class Toe extends Soe.ActorRdfMetadataAccumulate{constructor(e){super(e)}async test(e){return!0}async run(e){return e.mode==="initialize"?{metadata:{}}:{metadata:{..."requestTime"in e.accumulatedMetadata||"requestTime"in e.appendingMetadata?{requestTime:(e.accumulatedMetadata.requestTime||0)+(e.appendingMetadata.requestTime||0)}:{}}}}}Ev.ActorRdfMetadataAccumulateRequestTime=Toe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ev,t)})(s7);var o7={},Ov={},uo={},Av={};Object.defineProperty(Av,"__esModule",{value:!0});Av.ActorRdfMetadataExtract=void 0;const Eoe=et;class Ooe extends Eoe.Actor{constructor(e){super(e)}}Av.ActorRdfMetadataExtract=Ooe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Av,t)})(uo);var u7={exports:{}};(function(t){(function(e){var r=function(){function b(y){this.options=y}return b.prototype.toString=function(){return JSON&&JSON.stringify?JSON.stringify(this.options):this.options},b}(),n=function(){function b(B){return Object.prototype.toString.apply(B)==="[object Array]"}function y(B){return Object.prototype.toString.apply(B)==="[object String]"}function S(B){return Object.prototype.toString.apply(B)==="[object Number]"}function w(B){return Object.prototype.toString.apply(B)==="[object Boolean]"}function I(B,Q){var N="",D=!0,F;for(F=0;F="a"&&w<="z"||w>="A"&&w<="Z"}function y(w){return w>="0"&&w<="9"}function S(w){return y(w)||w>="a"&&w<="f"||w>="A"&&w<="F"}return{isAlpha:b,isDigit:y,isHexDigit:S}}(),s=function(){var b={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 y(T){var x="",P=b.encode(T),B,Q;for(Q=0;Q1||o.isReserved(T)||o.isUnreserved(T)?T:s.encodeCharacter(T)}function w(I){var O="",T,x="";for(T=0;T1?O+=x:O+=o.isReserved(x)||o.isUnreserved(x)?x:s.encodeCharacter(x);return O}return{encode:b,encodePassReserved:y,encodeLiteral:w,encodeLiteralCharacter:S}}(),c=function(){var b={};function y(S){b[S]={symbol:S,separator:S==="?"?"&":S===""||S==="+"||S==="#"?",":S,named:S===";"||S==="&"||S==="?",ifEmpty:S==="&"||S==="?"?"=":"",first:S==="+"?"":S,encode:S==="+"||S==="#"?u.encodePassReserved:u.encode,toString:function(){return this.symbol}}}return y(""),y("+"),y("#"),y("."),y("/"),y(";"),y("?"),y("&"),{valueOf:function(S){return b[S]?b[S]:"=,!@|".indexOf(S)>=0?null:b[""]}}}();function l(b){var y;if(b==null)return!1;if(n.isArray(b))return b.length>0;if(typeof b=="string"||typeof b=="number"||typeof b=="boolean")return!0;for(y in b)if(b.hasOwnProperty(y)&&l(b[y]))return!0;return!1}var d=function(){function b(y){this.literal=u.encodeLiteral(y)}return b.prototype.expand=function(){return this.literal},b.prototype.toString=b.prototype.expand,b}(),h=function(){function b(S){var w,I=[],O=null,T=null,x=null,P,B="";function Q(){var D=S.substring(T,P);if(D.length===0)throw new r({expressionText:S,message:"a varname must be specified",position:P});O={varname:D,exploded:!1,maxLength:null},T=null}function N(){if(x===P)throw new r({expressionText:S,message:"after a ':' you have to specify the length",position:P});O.maxLength=parseInt(S.substring(x,P),10),x=null}for(w=function(D){var F=c.valueOf(D);if(F===null)throw new r({expressionText:S,message:"illegal use of reserved operator",position:P,operator:D});return F}(S.charAt(0)),P=w.symbol.length,T=P;P=4)throw new r({expressionText:S,message:"A :prefix must have max 4 digits",position:P});continue}N()}if(B===":"){if(O.maxLength!==null)throw new r({expressionText:S,message:"only one :maxLength is allowed per varspec",position:P});if(O.exploded)throw new r({expressionText:S,message:"an exploeded varspec MUST NOT be varspeced",position:P});x=P+1;continue}if(B==="*"){if(O===null)throw new r({expressionText:S,message:"exploded without varspec",position:P});if(O.exploded)throw new r({expressionText:S,message:"exploded twice",position:P});if(O.maxLength)throw new r({expressionText:S,message:"an explode (*) MUST NOT follow to a prefix",position:P});O.exploded=!0;continue}if(B===","){I.push(O),O=null,T=P+1;continue}throw new r({expressionText:S,message:"illegal character",character:B,position:P})}return T!==null&&Q(),x!==null&&N(),I.push(O),new f(S,w,I)}function y(S){var w,I,O=[],T=null,x=0;for(w=0;w{const a=r[n]||r[`${n}Page`],s=a&&a[e];return[n,s&&s.length>0?s[0]:null]}))}parseUriTemplateCached(e){const r=this.parsedUriTemplateCache[e];return r||(this.parsedUriTemplateCache[e]=(0,Roe.parse)(e))}getSearchForms(e){const r=e.search,n=[];if(r)for(const a in r)for(const s of r[a]){const o=(e.template||{})[s]||[];if(o.length!==1)throw new Error(`Expected 1 hydra:template for ${s}`);const u=o[0],c=this.parseUriTemplateCached(u),l=Object.fromEntries(((e.mapping||{})[s]||[]).map(h=>{const f=((e.variable||{})[h]||[])[0],p=((e.property||{})[h]||[])[0];if(!f)throw new Error(`Expected a hydra:variable for ${h}`);if(!p)throw new Error(`Expected a hydra:property for ${h}`);return[p,f]})),d=h=>c.expand(Object.fromEntries(Object.keys(h).map(f=>[l[f],h[f]])));n.push({dataset:a,template:u,mappings:l,getUri:d})}return{values:n}}getHydraProperties(e){return new Promise((r,n)=>{e.on("error",n);const a={};e.on("data",s=>{if(s.predicate.value.startsWith(al.HYDRA)){const o=s.predicate.value.slice(al.HYDRA.length),u=a[o]||(a[o]={});(u[s.subject.value]||(u[s.subject.value]=[])).push(s.object.value)}}),e.on("end",()=>r(a))})}async run(e){const r={},n=await this.getHydraProperties(e.metadata);return Object.assign(r,this.getLinks(e.url,n)),r.searchForms=this.getSearchForms(n),{metadata:r}}}Ov.ActorRdfMetadataExtractHydraControls=al;al.HYDRA="http://www.w3.org/ns/hydra/core#";al.LINK_TYPES=["first","next","previous","last"];(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ov,t)})(o7);var c7={},xv={};Object.defineProperty(xv,"__esModule",{value:!0});xv.ActorRdfMetadataExtractHydraCount=void 0;const Ioe=uo;class Poe extends Ioe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}run(e){return new Promise((r,n)=>{e.metadata.on("error",n),e.metadata.on("data",a=>{this.predicates.includes(a.predicate.value)&&r({metadata:{cardinality:{type:"estimate",value:Number.parseInt(a.object.value,10),dataset:a.subject.value}}})}),e.metadata.on("end",()=>{r({metadata:{cardinality:{type:"estimate",value:0}}})})})}}xv.ActorRdfMetadataExtractHydraCount=Poe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(xv,t)})(c7);var l7={},Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});Rv.ActorRdfMetadataExtractHydraPagesize=void 0;const Doe=uo;class Noe extends Doe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){return new Promise((r,n)=>{e.metadata.on("error",n),e.metadata.on("data",a=>{this.predicates.includes(a.predicate.value)&&r({metadata:{pageSize:Number.parseInt(a.object.value,10)}})}),e.metadata.on("end",()=>{r({metadata:{}})})})}}Rv.ActorRdfMetadataExtractHydraPagesize=Noe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Rv,t)})(l7);var d7={},Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});Iv.ActorRdfMetadataExtractRequestTime=void 0;const joe=uo;class Coe extends joe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){return{metadata:{requestTime:e.requestTime}}}}Iv.ActorRdfMetadataExtractRequestTime=Coe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Iv,t)})(d7);var f7={},Pv={};Object.defineProperty(Pv,"__esModule",{value:!0});Pv.ActorRdfMetadataExtractAllowHttpMethods=void 0;const Foe=uo;class Moe extends Foe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){var n,a;const r={};return(n=e.headers)!=null&&n.get("allow")&&(r.allowHttpMethods=(a=e.headers.get("allow"))==null?void 0:a.split(/, */u)),{metadata:r}}}Pv.ActorRdfMetadataExtractAllowHttpMethods=Moe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Pv,t)})(f7);var h7={},Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});Dv.ActorRdfMetadataExtractPutAccepted=void 0;const Loe=uo;class Boe extends Loe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){var n,a;const r={};return(n=e.headers)!=null&&n.get("accept-put")&&(r.putAccepted=(a=e.headers.get("accept-put"))==null?void 0:a.split(/, */u)),{metadata:r}}}Dv.ActorRdfMetadataExtractPutAccepted=Boe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Dv,t)})(h7);var p7={},Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});Nv.ActorRdfMetadataExtractPatchSparqlUpdate=void 0;const $oe=uo;class Uoe extends $oe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){var n,a,s,o;const r={};return((a=(n=e.headers)==null?void 0:n.get("accept-patch"))!=null&&a.includes("application/sparql-update")||(o=(s=e.headers)==null?void 0:s.get("ms-author-via"))!=null&&o.includes("SPARQL"))&&(r.patchSparqlUpdate=!0),{metadata:r}}}Nv.ActorRdfMetadataExtractPatchSparqlUpdate=Uoe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Nv,t)})(p7);var y7={},jv={};Object.defineProperty(jv,"__esModule",{value:!0});jv.ActorRdfMetadataExtractSparqlService=void 0;const qoe=uo,Voe=Na;class Hoe extends qoe.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){return new Promise((r,n)=>{e.metadata.on("error",n);const a={};e.metadata.on("data",s=>{s.predicate.value==="http://www.w3.org/ns/sparql-service-description#endpoint"&&(s.subject.termType==="BlankNode"||s.subject.value===e.url)?(a.sparqlService=s.object.termType==="Literal"?(0,Voe.resolve)(s.object.value,e.url):s.object.value,this.inferHttpsEndpoint&&e.url.startsWith("https")&&!a.sparqlService.startsWith("https")&&(a.sparqlService=a.sparqlService.replace("http:","https:"))):s.predicate.value==="http://www.w3.org/ns/sparql-service-description#defaultGraph"&&(a.defaultGraph=s.object.value)}),e.metadata.on("end",()=>{r({metadata:a})})})}}jv.ActorRdfMetadataExtractSparqlService=Hoe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(jv,t)})(y7);var b7={},Cv={},m7={},Lp={},Vf={};Object.defineProperty(Vf,"__esModule",{value:!0});Vf.QuoteType=void 0;var rd=eu,lt;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(lt||(lt={}));var Be;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.BeforeSpecialT=23]="BeforeSpecialT",t[t.SpecialStartSequence=24]="SpecialStartSequence",t[t.InSpecialTag=25]="InSpecialTag",t[t.InEntity=26]="InEntity"})(Be||(Be={}));function Io(t){return t===lt.Space||t===lt.NewLine||t===lt.Tab||t===lt.FormFeed||t===lt.CarriageReturn}function w1(t){return t===lt.Slash||t===lt.Gt||Io(t)}function koe(t){return t>=lt.LowerA&&t<=lt.LowerZ||t>=lt.UpperA&&t<=lt.UpperZ}var zc;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(zc||(Vf.QuoteType=zc={}));var Mn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Qoe=function(){function t(e,r){var n=e.xmlMode,a=n===void 0?!1:n,s=e.decodeEntities,o=s===void 0?!0:s,u=this;this.cbs=r,this.state=Be.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Be.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=a,this.decodeEntities=o,this.entityDecoder=new rd.EntityDecoder(a?rd.xmlDecodeTree:rd.htmlDecodeTree,function(c,l){return u.emitCodePoint(c,l)})}return t.prototype.reset=function(){this.state=Be.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Be.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},t.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},t.prototype.end=function(){this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Be.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===lt.Amp&&this.startEntity()},t.prototype.stateSpecialStartSequence=function(e){var r=this.sequenceIndex===this.currentSequence.length,n=r?w1(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!n)this.isSpecial=!1;else if(!r){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Be.InTagName,this.stateInTagName(e)},t.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===lt.Gt||Io(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,e===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1},t.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===Be.Text||this.state===Be.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Be.InAttributeValueDq||this.state===Be.InAttributeValueSq||this.state===Be.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},t.prototype.shouldContinue=function(){return this.index=e||(this.state===Be.InCommentLike?this.currentSequence===Mn.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===Be.InTagName||this.state===Be.BeforeAttributeName||this.state===Be.BeforeAttributeValue||this.state===Be.AfterAttributeName||this.state===Be.InAttributeName||this.state===Be.InAttributeValueSq||this.state===Be.InAttributeValueDq||this.state===Be.InAttributeValueNq||this.state===Be.InClosingTagName||this.cbs.ontext(this.sectionStart,e))},t.prototype.emitCodePoint=function(e,r){this.baseState!==Be.Text&&this.baseState!==Be.InSpecialTag?(this.sectionStart0&&o.has(this.stack[0]);){var u=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(HN.has(e)?this.foreignContext.unshift(!0):kN.has(e)&&this.foreignContext.unshift(!1))),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c,l,d;this.endIndex=r;var h=this.getSlice(e,r);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),this.htmlMode&&(HN.has(h)||kN.has(h))&&this.foreignContext.shift(),this.isVoidElement(h))this.htmlMode&&h==="br"&&((o=(s=this.cbs).onopentagname)===null||o===void 0||o.call(s,"br"),(c=(u=this.cbs).onopentag)===null||c===void 0||c.call(u,"br",{},!0),(d=(l=this.cbs).onclosetag)===null||d===void 0||d.call(l,"br",!1));else{var f=this.stack.indexOf(h);if(f!==-1)for(var p=0;p<=f;p++){var b=this.stack.shift();(a=(n=this.cbs).onclosetag)===null||a===void 0||a.call(n,b,p!==f)}else this.htmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[0]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.shift())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,$N.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===S1.QuoteType.Double?'"':e===S1.QuoteType.Single?"'":e===S1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(Joe),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,h,f,p;this.endIndex=r;var b=this.getSlice(e,r-n);!this.htmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,b),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((h=(d=this.cbs).oncomment)===null||h===void 0||h.call(d,"[CDATA[".concat(b,"]]")),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=0;n=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{var d;a._read=()=>{};let s=1;function o(h){a.emit("data",h)}function u(h){a.emit("error",h)}function c(){--s===0&&a.push(null)}const l={baseIRI:((d=e.metadata)==null?void 0:d.baseIRI)??"",context:n,emit:o,end:c,error:u,headers:e.headers};Promise.all(this.busRdfParseHtml.publish(l)).then(async h=>{s+=h.length;const f=[];for(const b of h){const{htmlParseListener:y}=await b.actor.run(l);f.push(y)}const p=new eue.Parser({onclosetag(){try{for(const b of f)b.onTagClose()}catch(b){u(b)}},onend(){try{for(const b of f)b.onEnd()}catch(b){u(b)}c()},onopentag(b,y){try{for(const S of f)S.onTagOpen(b,y)}catch(S){u(S)}},ontext(b){try{for(const y of f)y.onText(b)}catch(y){u(y)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:!1});e.data.on("error",u).on("data",b=>p.write(b.toString())).on("end",()=>p.end())}).catch(u)},{data:a}}};Cv.ActorRdfParseHtml=rue;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Cv,t)})(b7);var g7={},Fv={},Mv={},Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});Lv.ActorRdfParseHtml=void 0;const nue=et;class iue extends nue.Actor{constructor(e){super(e)}}Lv.ActorRdfParseHtml=iue;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Lv,t)})(Mv);var _7={},v7={};Object.defineProperty(v7,"__esModule",{value:!0});var Q0={};Object.defineProperty(Q0,"__esModule",{value:!0});Q0.ItemPropertyHandlerContent=void 0;class aue{canHandle(e,r){return"content"in r}getObject(e,r,n){return r.createLiteral(e.content,n)}}Q0.ItemPropertyHandlerContent=aue;var G0={},Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.Util=void 0;const sue=yt,QN=Na;let z0=class ep{constructor(e,r){this.dataFactory=e||new sue.DataFactory,this.baseIRI=r||""}static isValidIri(e){return ep.IRI_REGEX.test(e)}createVocabIris(e,r,n){return e.split(/\s+/u).filter(a=>!!a).map(a=>{if(!ep.isValidIri(a)){if(!n)return;a=`${r.vocab||`${this.baseIRI}#`}${a}`}return this.dataFactory.namedNode(a)}).filter(a=>!!a)}getVocabularyExpansionType(e,r,n){const a=e.split(/\s+/u);if(a.includes("subPropertyOf")||a.includes("equivalentProperty"))return[this.dataFactory.namedNode(`${ep.RDF}type`)];if(r.vocab&&r.vocab in n&&n[r.vocab].properties){let s=[];for(const[o,u]of Object.entries(n[r.vocab].properties))a.includes(o)&&(s=[...Object.values(u).map(c=>this.dataFactory.namedNode(c))]);return s}return[]}createSubject(e){if(!ep.isValidIri(e))try{e=(0,QN.resolve)(e,this.baseIRI)}catch{return}return this.dataFactory.namedNode(e)}createLiteral(e,r){return this.dataFactory.literal(e,r.language)}deriveVocab(e,r){let n;for(const a in r)if(e.startsWith(a)){n=a,n.endsWith("/")||(n+="#");break}if(!n){const a=e.indexOf("#");a>0?n=e.slice(0,a+1):n=(0,QN.resolve)(".",e)}return n}};Nl.Util=z0;z0.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#";z0.XSD="http://www.w3.org/2001/XMLSchema#";z0.RDFA="http://www.w3.org/ns/rdfa#";z0.IRI_REGEX=/^([A-Za-z][\d+-.A-Za-z]*|_):[^ "<>[\\\]`{|}]*$/u;Object.defineProperty(G0,"__esModule",{value:!0});G0.ItemPropertyHandlerNumber=void 0;const GN=Nl;class oue{constructor(e,r){this.tagName=e,this.attributeName=r}canHandle(e,r){return this.tagName===e&&this.attributeName in r}getObject(e,r,n){const a=e[this.attributeName];let s;return!Number.isNaN(Number.parseInt(a,10))&&!a.includes(".")?s=`${GN.Util.XSD}integer`:Number.isNaN(Number.parseFloat(a))||(s=`${GN.Util.XSD}double`),r.dataFactory.literal(a,s&&r.dataFactory.namedNode(s))}}G0.ItemPropertyHandlerNumber=oue;var W0={};Object.defineProperty(W0,"__esModule",{value:!0});W0.ItemPropertyHandlerTime=void 0;const uue=Nl;class Bv{canHandle(e,r){return e==="time"&&"datetime"in r}getObject(e,r,n){const a=e.datetime;let s;for(const o of Bv.TIME_REGEXES)if(o.regex.test(a)){s=r.dataFactory.namedNode(uue.Util.XSD+o.type);break}return r.dataFactory.literal(a,s)}}W0.ItemPropertyHandlerTime=Bv;Bv.TIME_REGEXES=[{regex:/^-?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d)?S)?)?$/u,type:"duration"},{regex:/^\d+-\d\d-\d\dT\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"dateTime"},{regex:/^\d+-\d\d-\d\dZ?$/u,type:"date"},{regex:/^\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"time"},{regex:/^\d+-\d\d$/u,type:"gYearMonth"},{regex:/^\d+$/u,type:"gYear"}];var X0={};Object.defineProperty(X0,"__esModule",{value:!0});X0.ItemPropertyHandlerUrl=void 0;const cue=Na;class lue{constructor(e,r){this.tagName=e,this.attributeName=r}canHandle(e,r){return this.tagName===e&&this.attributeName in r}getObject(e,r,n){return r.dataFactory.namedNode((0,cue.resolve)(e[this.attributeName],r.baseIRI))}}X0.ItemPropertyHandlerUrl=lue;var w7={};Object.defineProperty(w7,"__esModule",{value:!0});var S7={};Object.defineProperty(S7,"__esModule",{value:!0});var T7={};Object.defineProperty(T7,"__esModule",{value:!0});var $v={},E7={},Bp={},rR={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=eu,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function a(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function s(f){return f===r.Slash||f===r.Gt||a(f)}function o(f){return f>=r.Zero&&f<=r.Nine}function u(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function c(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(p,b){var y=p.xmlMode,S=y===void 0?!1:y,w=p.decodeEntities,I=w===void 0?!0:w;this.cbs=b,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=S,this.decodeEntities=I,this.entityTrie=S?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(p){var b=this.sequenceIndex===this.currentSequence.length,y=b?s(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!y)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(p)},f.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===r.Gt||a(p)){var b=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==r.Semi)this.trieIndex+=y;else{var S=this.index-this.entityExcess+1;S>this.sectionStart&&this.emitPartial(this.sectionStart,S),this.entityResult=this.trieIndex,this.trieIndex+=y,this.entityExcess=0,this.sectionStart=this.index+1,y===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(p){(p|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(p))},f.prototype.emitNumericEntity=function(p){var b=this.index-this.entityExcess-1,y=b+2+ +(this.state===n.InHexEntity);y!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*10+(p-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(p){p===r.Semi?this.emitNumericEntity(!0):o(p)?(this.entityResult=this.entityResult*16+(p-r.Zero),this.entityExcess++):c(p)?(this.entityResult=this.entityResult*16+((p|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,u,!0)}this.isVoidElement(e)||(this.stack.push(e),JN.has(e)?this.foreignContext.push(!0):YN.has(e)&&this.foreignContext.push(!1)),(s=(a=this.cbs).onopentagname)===null||s===void 0||s.call(a,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,a,s,o,u,c;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(JN.has(l)||YN.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(c=(u=this.cbs).onclosetag)===null||c===void 0||c.call(u,"br",!1));else{var d=this.stack.lastIndexOf(l);if(d!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-d;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=d;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,a=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===a&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,zN.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,a;this.endIndex=r,(a=(n=this.cbs).onattribute)===null||a===void 0||a.call(n,this.attribname,this.attribvalue,e===T1.QuoteType.Double?'"':e===T1.QuoteType.Single?"'":e===T1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(bue),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(a),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var a=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(a),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var a,s,o,u;this.endIndex=r,(s=(a=this.cbs).oncomment)===null||s===void 0||s.call(a,this.getSlice(e,r-n)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var a,s,o,u,c,l,d,h,f,p;this.endIndex=r;var b=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((s=(a=this.cbs).oncdatastart)===null||s===void 0||s.call(a),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,b),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((h=(d=this.cbs).oncomment)===null||h===void 0||h.call(d,"[CDATA[".concat(b,"]]")),(p=(f=this.cbs).oncommentend)===null||p===void 0||p.call(f)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,a;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(a=(n=this.cbs).onparserinit)===null||a===void 0||a.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexn.emit("error",a)),e.on("data",a=>r.push(a)),e.on("end",()=>r.push(null));const n=r.pipe(new $p(this.options));return n}_transform(e,r,n){this.parser.write(e.toString()),n()}_flush(e){this.parser.end(),e()}getItemScope(e){let r=this.itemScopeStack.length-(e?2:1);for(;r>0&&!this.itemScopeStack[r];)r--;return this.itemScopeStack[r]}getDepth(){return this.itemScopeStack.length}onTagOpen(e,r){if(!this.isEmittingReferences){if("id"in r){const a=r.id;this.pendingItemRefsRangeCollecting[a]={events:[],counter:0,ids:[]}}for(const a of Object.values(this.pendingItemRefsRangeCollecting))a.counter++,a.events.push({type:"open",name:e,attributes:r})}this.textBufferStack.push(void 0);let n;if("itemscope"in r){let a;if(this.emittingReferencesItemScopeIdGenerator)a=this.emittingReferencesItemScopeIdGenerator();else{a="itemid"in r&&this.util.createSubject(r.itemid)||this.util.dataFactory.blankNode();for(const o of Object.values(this.pendingItemRefsRangeCollecting))o.ids.push(a)}n={subject:a},this.isEmittingReferences&&(n.blockEmission=!0);const s=this.getItemScope();s&&s.vocab&&(n.vocab=s.vocab),this.itemScopeStack.push(n)}else n=this.getItemScope(),this.itemScopeStack.push(void 0);if(n){if("itemtype"in r)for(const a of this.util.createVocabIris(r.itemtype,n,!1))n.vocab||(n.vocab=this.util.deriveVocab(a.value,this.vocabRegistry)),n.blockEmission||this.emitTriple(n.subject,this.util.dataFactory.namedNode(`${t4.Util.RDF}type`),a);if("lang"in r&&(n.language=r.lang),"xml:lang"in r&&(n.language=r["xml:lang"]),"itemscope"in r&&!this.isEmittingReferences&&"itemref"in r)for(const a of r.itemref.split(/\s+/u))a in this.pendingItemRefsDomain||(this.pendingItemRefsDomain[a]=[]),this.pendingItemRefsDomain[a].push(n),this.tryToEmitReferences(a,n)}"itemprop"in r&&this.handleItemProperties(r.itemprop,!1,n,e,r),"itemprop-reverse"in r&&this.handleItemProperties(r["itemprop-reverse"],!0,n,e,r)}onText(e){if(!this.isEmittingReferences)for(const r of Object.values(this.pendingItemRefsRangeCollecting))r.events.push({type:"text",data:e});for(const r of this.textBufferStack)r&&r.push(e)}onTagClose(){if(!this.isEmittingReferences)for(const[r,n]of Object.entries(this.pendingItemRefsRangeCollecting))n.counter--,n.events.push({type:"close"}),n.counter===0&&(this.pendingItemRefsRangeFinalized[r]=n,delete this.pendingItemRefsRangeCollecting[r],this.tryToEmitReferences(r));const e=this.getItemScope(!0);if(e){const r=this.getDepth();if(e.predicates&&r in e.predicates)for(const[n,a]of Object.entries(e.predicates[r])){const s=this.util.createLiteral(this.textBufferStack[r].join(""),e);this.emitPredicateTriples(e,a,s,n==="reverse"),delete e.predicates[r][n]}}this.itemScopeStack.pop(),this.textBufferStack.pop()}onEnd(){}initializeParser(e){return new _ue.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(r){this.emit("error",r)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(r){this.emit("error",r)}},onopentag:(r,n)=>{try{this.onTagOpen(r,n),this.htmlParseListener&&this.htmlParseListener.onTagOpen(r,n)}catch(a){this.emit("error",a)}},ontext:r=>{try{this.onText(r),this.htmlParseListener&&this.htmlParseListener.onText(r)}catch(n){this.emit("error",n)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}handleItemProperties(e,r,n,a,s){const o=this.getItemScope(!0);if(o){const u=this.getDepth(),c=this.util.createVocabIris(e,o,!0);o.predicates||(o.predicates={}),o.predicates[u]||(o.predicates[u]={});const l=r?"reverse":"forward";o.predicates[u][l]=c;for(const d of this.util.getVocabularyExpansionType(e,o,this.vocabRegistry))c.push(d);if(n&&"itemscope"in s)this.emitPredicateTriples(o,c,n.subject,r),delete o.predicates[u][l];else for(const d of $p.ITEM_PROPERTY_HANDLERS)if(d.canHandle(a,s)){const h=d.getObject(s,this.util,o);this.emitPredicateTriples(o,c,h,r),delete o.predicates[u][l]}o.predicates[u][l]&&(this.textBufferStack[u]=[])}}emitPredicateTriples(e,r,n,a){if(!e.blockEmission)for(const s of r)a?n.termType!=="Literal"&&this.emitTriple(n,s,e.subject):this.emitTriple(e.subject,s,n)}emitTriple(e,r,n){this.push(this.util.dataFactory.quad(e,r,n,this.defaultGraph))}tryToEmitReferences(e,r){const n=this.pendingItemRefsRangeFinalized[e];if(n){let a;if(r){a=[r];const s=this.pendingItemRefsDomain[e].indexOf(r);this.pendingItemRefsDomain[e].splice(s,1)}else a=this.pendingItemRefsDomain[e],delete this.pendingItemRefsDomain[e];if(a){const s=this.itemScopeStack,o=this.textBufferStack;this.isEmittingReferences=!0;for(const u of a){this.itemScopeStack=[u],this.textBufferStack=[void 0];const c=[...n.ids];this.emittingReferencesItemScopeIdGenerator=()=>c.shift();for(const l of n.events)switch(l.type){case"open":this.onTagOpen(l.name,l.attributes);break;case"text":this.onText(l.data);break;case"close":this.onTagClose();break}}this.emittingReferencesItemScopeIdGenerator=void 0,this.itemScopeStack=s,this.textBufferStack=o,this.isEmittingReferences=!1}}}}$v.MicrodataRdfParser=$p;$p.ITEM_PROPERTY_HANDLERS=[new vue.ItemPropertyHandlerContent,new Ga.ItemPropertyHandlerUrl("a","href"),new Ga.ItemPropertyHandlerUrl("area","href"),new Ga.ItemPropertyHandlerUrl("audio","src"),new Ga.ItemPropertyHandlerUrl("embed","src"),new Ga.ItemPropertyHandlerUrl("iframe","src"),new Ga.ItemPropertyHandlerUrl("img","src"),new Ga.ItemPropertyHandlerUrl("link","href"),new Ga.ItemPropertyHandlerUrl("object","data"),new Ga.ItemPropertyHandlerUrl("source","src"),new Ga.ItemPropertyHandlerUrl("track","src"),new Ga.ItemPropertyHandlerUrl("video","src"),new e4.ItemPropertyHandlerNumber("data","value"),new e4.ItemPropertyHandlerNumber("meter","value"),new wue.ItemPropertyHandlerTime];(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(v7,t),r(Q0,t),r(G0,t),r(W0,t),r(X0,t),r(w7,t),r(S7,t),r(T7,t),r($v,t),r(Nl,t)})(_7);Object.defineProperty(Fv,"__esModule",{value:!0});Fv.ActorRdfParseHtmlMicrodata=void 0;const Tue=Mv,Eue=_7;class Oue extends Tue.ActorRdfParseHtml{constructor(e){super(e)}async test(e){return!0}async run(e){const r=e.headers?e.headers.get("content-type"):null,n=r==null?void 0:r.includes("xml"),a=new Eue.MicrodataRdfParser({baseIRI:e.baseIRI,xmlMode:n});a.on("error",e.error),a.on("data",e.emit);const s=a.onEnd;return a.onEnd=()=>{s.call(a),e.end()},{htmlParseListener:a}}}Fv.ActorRdfParseHtmlMicrodata=Oue;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Fv,t)})(g7);var O7={},Uv={};Object.defineProperty(Uv,"__esModule",{value:!0});Uv.ActorRdfParseHtmlRdfa=void 0;const Aue=Mv,xue=Hx;class Rue extends Aue.ActorRdfParseHtml{constructor(e){super(e)}async test(e){return!0}async run(e){const r=e.headers?e.headers.get("content-type"):null,n=(e.headers&&e.headers.get("content-language"))??void 0,a=r&&r.includes("xml")?"xhtml":"html",s=new xue.RdfaParser({baseIRI:e.baseIRI,profile:a,language:n});s.on("error",e.error),s.on("data",e.emit);const o=s.onEnd;return s.onEnd=()=>{o.call(s),e.end()},{htmlParseListener:s}}}Uv.ActorRdfParseHtmlRdfa=Rue;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Uv,t)})(O7);var A7={},qv={},nR={},Vv={},K0={};Object.defineProperty(K0,"__esModule",{value:!0});K0.RdfJsQuadSource=void 0;const Iue=ba,Pue=Wt,Due=yt,ad=hn,r4=new Due.DataFactory;class wi{constructor(e){this.source=e}static nullifyVariables(e,r){return!e||e.termType==="Variable"||!r&&e.termType==="Quad"&&(0,ad.someTermsNested)(e,n=>n.termType==="Variable")?void 0:e}static hasDuplicateVariables(e){const r=(0,ad.filterTermsNested)(e,n=>n.termType==="Variable");return r.length>1&&(0,ad.uniqTerms)(r).lengthd.termType==="Quad")&&(u=u.filter(d=>(0,ad.matchPatternComplete)(d,c))),this.setMetadata(u,e,r,n,a).catch(d=>u.destroy(d)),u}async setMetadata(e,r,n,a,s){var d;const o=!!((d=this.source.features)!=null&&d.quotedTripleFiltering);let u;if(this.source.countQuads)u=await this.source.countQuads(wi.nullifyVariables(r,o),wi.nullifyVariables(n,o),wi.nullifyVariables(a,o),wi.nullifyVariables(s,o));else{let h=0;u=await new Promise((f,p)=>{const b=this.source.match(wi.nullifyVariables(r,o),wi.nullifyVariables(n,o),wi.nullifyVariables(a,o),wi.nullifyVariables(s,o));b.on("error",p),b.on("end",()=>f(h)),b.on("data",()=>h++)})}const c=r4.quad(r,n,a,s),l=!o&&(0,ad.someTerms)(c,h=>h.termType==="Quad")||wi.hasDuplicateVariables(c);e.setProperty("metadata",{state:new Iue.MetadataValidationState,cardinality:{type:l?"estimate":"exact",value:u},canContainUndefs:!1})}}K0.RdfJsQuadSource=wi;Object.defineProperty(Vv,"__esModule",{value:!0});Vv.ActorRdfResolveQuadPatternRdfJsSource=void 0;const E1=Dl,Nue=K0;class jue extends E1.ActorRdfResolveQuadPatternSource{constructor(e){super(e)}async test(e){if(!(0,E1.hasContextSingleSourceOfType)("rdfjsSource",e.context))throw new Error(`${this.name} requires a single source with an rdfjsSource to be present in the context.`);const r=(0,E1.getContextSource)(e.context);if(!r||typeof r=="string"||!("match"in r)&&!r.value.match)throw new Error(`${this.name} received an invalid rdfjsSource.`);return!0}async getSource(e){const r=(0,E1.getContextSource)(e);return new Nue.RdfJsQuadSource("match"in r?r:r.value)}}Vv.ActorRdfResolveQuadPatternRdfJsSource=jue;var x7={};Object.defineProperty(x7,"__esModule",{value:!0});(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Vv,t),r(x7,t),r(K0,t)})(nR);var Hv={},kv={};Object.defineProperty(kv,"__esModule",{value:!0});kv.ActorRdfResolveHypermedia=void 0;const Cue=et;class Fue extends Cue.Actor{constructor(e,r){super(e),this.sourceType=r}async test(e){if(e.forceSourceType&&this.sourceType!==e.forceSourceType)throw new Error(`Actor ${this.name} is not able to handle source type ${e.forceSourceType}.`);return this.testMetadata(e)}}kv.ActorRdfResolveHypermedia=Fue;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(kv,t)})(Hv);var Qv={},R7={},fh={},hh={},J0={};Object.defineProperty(J0,"__esModule",{value:!0});J0.TermDictionaryNumberRecordFullTerms=void 0;const Mue=yt,n4=sr;class Lue{constructor(e=new Mue.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=e}encode(e){const r=(0,n4.termToString)(e);let n=this.dictionary[r];return n===void 0&&(n=this.lastId++,this.dictionary[r]=n,this.reverseDictionary[n]=e),n}encodeOptional(e){const r=(0,n4.termToString)(e);return this.dictionary[r]}decode(e){const r=this.reverseDictionary[e];if(r===void 0)throw new Error(`The value ${e} is not present in this dictionary`);return r}*encodings(){for(const e of Object.keys(this.reverseDictionary))yield Number.parseInt(e,10)}findQuotedTriples(e){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(e){throw new Error("findQuotedTriplesEncoded is not supported")}}J0.TermDictionaryNumberRecordFullTerms=Lue;var Y0={},Hf={},gs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.arePatternsQuoted=t.quadHasVariables=t.quadToPattern=t.encodeOptionalTerms=t.orderQuadComponents=t.getComponentOrderScore=t.getBestIndex=t.QUAD_TERM_NAMES_INVERSE=void 0;const e=hn;t.QUAD_TERM_NAMES_INVERSE=Object.fromEntries(e.QUAD_TERM_NAMES.map((l,d)=>[l,d]));function r(l,d){if(l.length===1||d.every(p=>p!==void 0))return 0;const h=[];for(let p=0;p({score:n(p,h),index:b})).sort((p,b)=>b.score-p.score)[0].index}t.getBestIndex=r;function n(l,d){return l.map((h,f)=>d.includes(h)?l.length-f:0).reduce((h,f)=>h+f,0)}t.getComponentOrderScore=n;function a(l,d){return l.map(h=>{const f=t.QUAD_TERM_NAMES_INVERSE[h];return d[f]})}t.orderQuadComponents=a;function s(l,d){const h=l.map(f=>{if(f){if(f.termType==="Quad"&&u(f))return;const p=d.encodeOptional(f);return p===void 0?"none":p}return f});if(!h.includes("none"))return h}t.encodeOptionalTerms=s;function o(l,d,h,f,p){let b=!1;return[[l||void 0,d||void 0,h||void 0,f||void 0].map(S=>{if(S){if(S.termType==="Variable")return;if(S.termType==="Quad"){if(p)return S;b=!0;return}}return S}),b]}t.quadToPattern=o;function u(l){for(const d of e.QUAD_TERM_NAMES){const h=l[d];if(h.termType==="Variable"||h.termType==="Quad"&&u(h))return!0}return!1}t.quadHasVariables=u;function c(l){return l.map(d=>(d==null?void 0:d.termType)==="Quad"&&u(d))}t.arePatternsQuoted=c})(gs);Object.defineProperty(Hf,"__esModule",{value:!0});Hf.RdfStoreIndexNestedMap=void 0;const PT=gs;class Bue{constructor(e){this.features={quotedTripleFiltering:!1},this.dictionary=e.dictionary,this.nestedMap=new Map}set(e,r){const n=this.nestedMap;let a=n.get(e[0]);a||(a=new Map,n.set(e[0],a));let s=a.get(e[1]);s||(s=new Map,a.set(e[1],s));let o=s.get(e[2]);o||(o=new Map,s.set(e[2],o));const u=o.has(e[3]);return u||o.set(e[3],r),!u}remove(e){const r=this.nestedMap,n=r.get(e[0]);if(!n)return!1;const a=n.get(e[1]);if(!a)return!1;const s=a.get(e[2]);if(!s)return!1;const o=s.delete(e[3]);return o&&s.size===0&&(a.delete(e[2]),a.size===0&&(n.delete(e[1]),n.size===0&&r.delete(e[0]))),o}get(e){const r=(0,PT.encodeOptionalTerms)(e,this.dictionary);if(!(!r||r.includes(void 0)))return this.getEncoded(r)}getEncoded(e){const r=this.nestedMap.get(e[0]);if(!r)return;const n=r.get(e[1]);if(!n)return;const a=n.get(e[2]);if(a)return a.get(e[3])}*find(e){const r=(0,PT.encodeOptionalTerms)(e,this.dictionary);if(!r)return;const[n,a,s,o]=r,[u,c,l,d]=e;let h,f,p,b,y,S,w;const I=this.nestedMap,O=n!==void 0?I.has(n)?[n]:[]:I.keys();for(const T of O){y=I.get(T),h=u||this.dictionary.decode(T);const x=a!==void 0?y.has(a)?[a]:[]:y.keys();for(const P of x){S=y.get(P),f=c||this.dictionary.decode(P);const B=s!==void 0?S.has(s)?[s]:[]:S.keys();for(const Q of B){w=S.get(Q),p=l||this.dictionary.decode(Q);const N=o!==void 0?w.has(o)?[o]:[]:w.keys();for(const D of N)b=d||this.dictionary.decode(D),yield[h,f,p,b]}}}}*findEncoded(e,r){const[n,a,s,o]=e;let u,c,l;const d=this.nestedMap,h=n!==void 0?d.has(n)?[n]:[]:d.keys();for(const f of h){u=d.get(f);const p=a!==void 0?u.has(a)?[a]:[]:u.keys();for(const b of p){c=u.get(b);const y=s!==void 0?c.has(s)?[s]:[]:c.keys();for(const S of y){l=c.get(S);const w=o!==void 0?l.has(o)?[o]:[]:l.keys();for(const I of w)yield[f,b,S,I]}}}}count(e){let r=0;const n=(0,PT.encodeOptionalTerms)(e,this.dictionary);if(!n)return 0;const a=n[0],s=n[1],o=n[2],u=n[3];let c,l,d;const h=this.nestedMap,f=a!==void 0?h.has(a)?[a]:[]:h.keys();for(const p of f){c=h.get(p);const b=s!==void 0?c.has(s)?[s]:[]:c.keys();for(const y of b){l=c.get(y);const S=o!==void 0?l.has(o)?[o]:[]:l.keys();for(const w of S)d=l.get(w),u!==void 0?d.has(u)&&r++:r+=d.size}}return r}}Hf.RdfStoreIndexNestedMap=Bue;Object.defineProperty(Y0,"__esModule",{value:!0});Y0.TermDictionaryQuotedIndexed=void 0;const $ue=yt,DT=Hf,i4=gs;class Wa{constructor(e,r=new $ue.DataFactory){this.quotedTriplesDictionary=[],this.features={quotedTriples:!0},this.plainTermDictionary=e;const n={indexCombinations:[],indexConstructor:void 0,dictionary:this,dataFactory:r};this.quotedTriplesReverseDictionaries=[new DT.RdfStoreIndexNestedMap(n),new DT.RdfStoreIndexNestedMap(n),new DT.RdfStoreIndexNestedMap(n)],this.dataFactory=r}encode(e){return e.termType==="Quad"?this.encodeQuotedTriple(e,!1):this.plainTermDictionary.encode(e)}encodeQuotedTriple(e,r){if(e.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const n=(0,i4.encodeOptionalTerms)([e.subject,e.predicate,e.object,e.graph],this),a=n&&n.every(c=>c!==void 0)?this.quotedTriplesReverseDictionaries[0].getEncoded(n):void 0;if(a!==void 0||r)return a===void 0?void 0:Wa.BITMASK|a;const s=[this.encode(e.subject),this.encode(e.predicate),this.encode(e.object)],o=this.quotedTriplesDictionary.length+1;this.quotedTriplesDictionary.push(s);const u=this.encode(this.dataFactory.defaultGraph());return this.quotedTriplesReverseDictionaries[0].set([s[0],s[1],s[2],u],o),this.quotedTriplesReverseDictionaries[1].set([s[1],s[2],s[0],u],o),this.quotedTriplesReverseDictionaries[2].set([s[2],s[0],s[1],u],o),Wa.BITMASK|o}encodeOptional(e){return e.termType==="Quad"?this.encodeQuotedTriple(e,!0):this.plainTermDictionary.encodeOptional(e)}decode(e){if(Wa.BITMASK&e){const r=(~Wa.BITMASK&e)-1;if(r>=this.quotedTriplesDictionary.length)throw new Error(`The value ${e} is not present in the quoted triples range of the dictionary`);const n=this.quotedTriplesDictionary[r];return this.dataFactory.quad(this.decode(n[0]),this.decode(n[1]),this.decode(n[2]))}return this.plainTermDictionary.decode(e)}*encodings(){for(const e of this.plainTermDictionary.encodings())yield e;for(const e of this.quotedTriplesDictionary.keys())yield Wa.BITMASK|1+e}*findQuotedTriples(e){for(const r of this.findQuotedTriplesEncoded(e))yield this.decode(r)}*findQuotedTriplesEncoded(e){const[r,n]=(0,i4.quadToPattern)(e.subject,e.predicate,e.object,e.graph,!0);for(const a of this.patternToIterable(r[0]))for(const s of this.patternToIterable(r[1]))for(const o of this.patternToIterable(r[2]))for(const u of this.patternToIterable(r[3]))if(a&&s||!s&&!o){const c=[a,s,o,u];for(const l of this.quotedTriplesReverseDictionaries[0].findEncoded(c,r))yield Wa.BITMASK|this.quotedTriplesReverseDictionaries[0].getEncoded(l)}else if(!a&&s){const c=[s,o,a,u];for(const l of this.quotedTriplesReverseDictionaries[1].findEncoded(c,r))yield Wa.BITMASK|this.quotedTriplesReverseDictionaries[1].getEncoded(l)}else{const c=[o,a,s,u];for(const l of this.quotedTriplesReverseDictionaries[2].findEncoded(c,r))yield Wa.BITMASK|this.quotedTriplesReverseDictionaries[2].getEncoded(l)}}*patternToIterable(e){if((e==null?void 0:e.termType)==="Quad"){yield*this.findQuotedTriplesEncoded(e);return}if(e===void 0){yield void 0;return}const r=this.encodeOptional(e);r!==void 0&&(yield r)}}Wa.BITMASK=1<<31;Y0.TermDictionaryQuotedIndexed=Wa;var Z0={};Object.defineProperty(Z0,"__esModule",{value:!0});Z0.RdfStoreIndexNestedMapQuoted=void 0;const ph=gs,Uue=Hf;class que extends Uue.RdfStoreIndexNestedMap{constructor(e){super(e),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(e,r){for(const n of this.dictionary.findQuotedTriplesEncoded(r))e.has(n)&&(yield n)}*find(e){const r=(0,ph.encodeOptionalTerms)(e,this.dictionary);if(!r)return;const[n,a,s,o]=r,[u,c,l,d]=e,[h,f,p,b]=(0,ph.arePatternsQuoted)(e);let y,S,w,I,O,T,x;const P=this.nestedMap,B=u!==void 0?h?this.getQuotedPatternKeys(P,u):P.has(n)?[n]:[]:P.keys();for(const Q of B){O=P.get(Q),y=!h&&u?u:this.dictionary.decode(Q);const N=c!==void 0?f?this.getQuotedPatternKeys(O,c):O.has(a)?[a]:[]:O.keys();for(const D of N){T=O.get(D),S=!f&&c?c:this.dictionary.decode(D);const F=l!==void 0?p?this.getQuotedPatternKeys(T,l):T.has(s)?[s]:[]:T.keys();for(const W of F){x=T.get(W),w=!p&&l?l:this.dictionary.decode(W);const z=d!==void 0?b?this.getQuotedPatternKeys(x,d):x.has(o)?[o]:[]:x.keys();for(const M of z)I=!b&&d?d:this.dictionary.decode(M),yield[y,S,w,I]}}}}*findEncoded(e,r){const[n,a,s,o]=e,[u,c,l,d]=r,[h,f,p,b]=(0,ph.arePatternsQuoted)(r);let y,S,w;const I=this.nestedMap,O=u!==void 0?h?this.getQuotedPatternKeys(I,u):I.has(n)?[n]:[]:I.keys();for(const T of O){y=I.get(T);const x=c!==void 0?f?this.getQuotedPatternKeys(y,c):y.has(a)?[a]:[]:y.keys();for(const P of x){S=y.get(P);const B=l!==void 0?p?this.getQuotedPatternKeys(S,l):S.has(s)?[s]:[]:S.keys();for(const Q of B){w=S.get(Q);const N=d!==void 0?b?this.getQuotedPatternKeys(w,d):w.has(o)?[o]:[]:w.keys();for(const D of N)yield[Number.parseInt(T,10),Number.parseInt(P,10),Number.parseInt(Q,10),Number.parseInt(D,10)]}}}}count(e){let r=0;const n=(0,ph.encodeOptionalTerms)(e,this.dictionary);if(!n)return 0;const[a,s,o,u]=n,[c,l,d,h]=e,[f,p,b,y]=(0,ph.arePatternsQuoted)(e);let S,w,I;const O=this.nestedMap,T=c!==void 0?f?this.getQuotedPatternKeys(O,c):O.has(a)?[a]:[]:O.keys();for(const x of T){S=O.get(x);const P=l!==void 0?p?this.getQuotedPatternKeys(S,l):S.has(s)?[s]:[]:S.keys();for(const B of P){w=S.get(B);const Q=d!==void 0?b?this.getQuotedPatternKeys(w,d):w.has(o)?[o]:[]:w.keys();for(const N of Q)I=w.get(N),h!==void 0?y?r+=[...this.getQuotedPatternKeys(I,h)].length:I.has(u)&&r++:r+=I.size}}return r}}Z0.RdfStoreIndexNestedMapQuoted=que;var a4;function I7(){if(a4)return hh;a4=1,Object.defineProperty(hh,"__esModule",{value:!0}),hh.RdfStore=void 0;const t=Wt,e=yt,r=hn,n=D7(),a=J0,s=Y0,o=Z0,u=gs;let c=class tp{constructor(d){this.features={quotedTripleFiltering:!0},this._size=0,this.options=d,this.dataFactory=d.dataFactory,this.dictionary=d.dictionary,this.indexesWrapped=tp.constructIndexesWrapped(d),this.indexesWrappedComponentOrders=this.indexesWrapped.map(h=>h.componentOrder)}static createDefault(){return new tp({indexCombinations:tp.DEFAULT_INDEX_COMBINATIONS,indexConstructor:d=>new o.RdfStoreIndexNestedMapQuoted(d),dictionary:new s.TermDictionaryQuotedIndexed(new a.TermDictionaryNumberRecordFullTerms),dataFactory:new e.DataFactory})}static constructIndexesWrapped(d){const h=[];if(d.indexCombinations.length===0)throw new Error("At least one index combination is required");for(const f of d.indexCombinations){if(!tp.isCombinationValid(f))throw new Error(`Invalid index combination: ${f}`);h.push({index:d.indexConstructor(d),componentOrder:f,componentOrderInverse:Object.fromEntries(f.map((p,b)=>[p,b]))})}return h}static isCombinationValid(d){for(const h of r.QUAD_TERM_NAMES)if(!d.includes(h))return!1;return d.length===4}get size(){return this._size}addQuad(d){const h=[this.dictionary.encode(d.subject),this.dictionary.encode(d.predicate),this.dictionary.encode(d.object),this.dictionary.encode(d.graph)];let f=!1;for(const p of this.indexesWrapped)f=p.index.set((0,u.orderQuadComponents)(p.componentOrder,h),!0);return f?(this._size++,!0):!1}removeQuad(d){const h=[this.dictionary.encodeOptional(d.subject),this.dictionary.encodeOptional(d.predicate),this.dictionary.encodeOptional(d.object),this.dictionary.encodeOptional(d.graph)];if(h.includes(void 0))return!1;let f=!1;for(const p of this.indexesWrapped)if(f=p.index.remove((0,u.orderQuadComponents)(p.componentOrder,h)),!f)break;return f?(this._size--,!0):!1}remove(d){return d.on("data",h=>this.removeQuad(h)),d}removeMatches(d,h,f,p){return this.remove(this.match(d,h,f,p))}deleteGraph(d){return typeof d=="string"&&(d=this.dataFactory.namedNode(d)),this.removeMatches(void 0,void 0,void 0,d)}import(d){return d.on("data",h=>this.addQuad(h)),d}*readQuads(d,h,f,p){const b=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(O=>O.index.features.quotedTripleFiltering),[y,S]=(0,u.quadToPattern)(d,h,f,p,b),w=this.indexesWrapped[(0,u.getBestIndex)(this.indexesWrappedComponentOrders,y)],I=(0,u.orderQuadComponents)(w.componentOrder,y);for(const O of w.index.find(I)){const T=this.dataFactory.quad(O[w.componentOrderInverse.subject],O[w.componentOrderInverse.predicate],O[w.componentOrderInverse.object],O[w.componentOrderInverse.graph]);S?(0,r.matchPattern)(T,d,h,f,p)&&(yield T):yield T}}getQuads(d,h,f,p){return[...this.readQuads(d,h,f,p)]}match(d,h,f,p){return(0,t.wrap)(this.readQuads(d,h,f,p))}countQuads(d,h,f,p){const b=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(I=>I.index.features.quotedTripleFiltering),[y]=(0,u.quadToPattern)(d,h,f,p,b);if(y.every(I=>I===void 0))return this.size;const S=this.indexesWrapped[(0,u.getBestIndex)(this.indexesWrappedComponentOrders,y)],w=(0,u.orderQuadComponents)(S.componentOrder,y);return S.index.count(w)}asDataset(){return new n.DatasetCoreWrapper(this)}};return c.DEFAULT_INDEX_COMBINATIONS=[["graph","subject","predicate","object"],["graph","predicate","object","subject"],["graph","object","subject","predicate"]],hh.RdfStore=c,hh}var s4;function D7(){if(s4)return fh;s4=1,Object.defineProperty(fh,"__esModule",{value:!0}),fh.DatasetCoreWrapper=void 0;const t=I7();let e=class P7{constructor(n){this.store=n}get size(){return this.store.size}add(n){return this.store.addQuad(n),this}delete(n){return this.store.removeQuad(n),this}has(n){for(const a of this.store.readQuads(n.subject,n.predicate,n.object,n.graph))return!0;return!1}match(n,a,s,o){const u=new t.RdfStore(this.store.options);for(const c of this.store.readQuads(n,a,s,o))u.addQuad(c);return new P7(u)}[Symbol.iterator](){return this.store.readQuads()}};return fh.DatasetCoreWrapper=e,fh}var N7={};Object.defineProperty(N7,"__esModule",{value:!0});var Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});Gv.TermDictionaryNumberMap=void 0;const Vue=yt,NT=sr;class Hue{constructor(e=new Vue.DataFactory){this.lastId=0,this.dictionary=new Map,this.reverseDictionary=new Map,this.features={quotedTriples:!1},this.dataFactory=e}encode(e){const r=(0,NT.termToString)(e);let n=this.dictionary.get(r);return n===void 0&&(n=this.lastId++,this.dictionary.set(r,n),this.reverseDictionary.set(n,r)),n}encodeOptional(e){const r=(0,NT.termToString)(e);return this.dictionary.get(r)}decode(e){const r=this.reverseDictionary.get(e);if(r===void 0)throw new Error(`The value ${e} is not present in this dictionary`);return(0,NT.stringToTerm)(r,this.dataFactory)}encodings(){return this.reverseDictionary.keys()}findQuotedTriples(e){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(e){throw new Error("findQuotedTriplesEncoded is not supported")}}Gv.TermDictionaryNumberMap=Hue;var zv={};Object.defineProperty(zv,"__esModule",{value:!0});zv.TermDictionaryNumberRecord=void 0;const kue=yt,jT=sr;class Que{constructor(e=new kue.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=e}encode(e){const r=(0,jT.termToString)(e);let n=this.dictionary[r];return n===void 0&&(n=this.lastId++,this.dictionary[r]=n,this.reverseDictionary[n]=r),n}encodeOptional(e){const r=(0,jT.termToString)(e);return this.dictionary[r]}decode(e){const r=this.reverseDictionary[e];if(r===void 0)throw new Error(`The value ${e} is not present in this dictionary`);return(0,jT.stringToTerm)(r,this.dataFactory)}*encodings(){for(const e of Object.keys(this.reverseDictionary))yield Number.parseInt(e,10)}findQuotedTriples(e){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(e){throw new Error("findQuotedTriplesEncoded is not supported")}}zv.TermDictionaryNumberRecord=Que;var Wv={};Object.defineProperty(Wv,"__esModule",{value:!0});Wv.TermDictionaryQuoted=void 0;const Gue=yt,zue=hn;class Fo{constructor(e,r,n=new Gue.DataFactory){this.features={quotedTriples:!0},this.plainTermDictionary=e,this.quotedTriplesDictionary=r,this.dataFactory=n}encode(e){return e.termType==="Quad"?Fo.BITMASK|1+this.quotedTriplesDictionary.encode(e):this.plainTermDictionary.encode(e)}encodeOptional(e){if(e.termType==="Quad"){const r=this.quotedTriplesDictionary.encodeOptional(e);return r===void 0?r:Fo.BITMASK|1+r}return this.plainTermDictionary.encodeOptional(e)}decode(e){if(Fo.BITMASK&e){const r=(~Fo.BITMASK&e)-1;return this.quotedTriplesDictionary.decode(r)}return this.plainTermDictionary.decode(e)}*encodings(){for(const e of this.plainTermDictionary.encodings())yield e;for(const e of this.quotedTriplesDictionary.encodings())yield Fo.BITMASK|1+e}*findQuotedTriples(e){for(const r of this.findQuotedTriplesEncoded(e))yield this.decode(r)}*findQuotedTriplesEncoded(e){for(let r of this.quotedTriplesDictionary.encodings()){r=Fo.BITMASK|1+r;const n=this.decode(r);(0,zue.matchPattern)(n,e.subject,e.predicate,e.object,e.graph)&&(yield r)}}}Fo.BITMASK=1<<31;Wv.TermDictionaryQuoted=Fo;var Xv={};Object.defineProperty(Xv,"__esModule",{value:!0});Xv.TermDictionaryQuotedReferential=void 0;const Wue=yt,Xue=hn,Kue=gs;class Ta{constructor(e,r=new Wue.DataFactory){this.quotedTriplesDictionary=[],this.quotedTriplesReverseDictionary={},this.features={quotedTriples:!0},this.plainTermDictionary=e,this.dataFactory=r}encode(e){return e.termType==="Quad"?this.encodeQuotedTriple(e,!1):this.plainTermDictionary.encode(e)}encodeQuotedTriple(e,r){var n;if(e.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const a=(n=(0,Kue.encodeOptionalTerms)([e.subject,e.predicate,e.object,void 0],this))===null||n===void 0?void 0:n.slice(0,3),s=a&&a.every(c=>c!==void 0)?this.quotedTriplesReverseDictionary[a.join(Ta.SEPARATOR)]:void 0;if(s!==void 0||r)return s===void 0?void 0:Ta.BITMASK|s;const o=[this.encode(e.subject),this.encode(e.predicate),this.encode(e.object)],u=this.quotedTriplesDictionary.length+1;return this.quotedTriplesDictionary.push(o),this.quotedTriplesReverseDictionary[o.join(Ta.SEPARATOR)]=u,Ta.BITMASK|u}encodeOptional(e){return e.termType==="Quad"?this.encodeQuotedTriple(e,!0):this.plainTermDictionary.encodeOptional(e)}decode(e){if(Ta.BITMASK&e){const r=(~Ta.BITMASK&e)-1;if(r>=this.quotedTriplesDictionary.length)throw new Error(`The value ${e} is not present in the quoted triples range of the dictionary`);const n=this.quotedTriplesDictionary[r];return this.dataFactory.quad(this.decode(n[0]),this.decode(n[1]),this.decode(n[2]))}return this.plainTermDictionary.decode(e)}*encodings(){for(const e of this.plainTermDictionary.encodings())yield e;for(const e of this.quotedTriplesDictionary.keys())yield Ta.BITMASK|1+e}*findQuotedTriples(e){for(const r of this.findQuotedTriplesEncoded(e))yield this.decode(r)}*findQuotedTriplesEncoded(e){for(let r of this.quotedTriplesDictionary.keys()){r=Ta.BITMASK|1+r;const n=this.decode(r);(0,Xue.matchPattern)(n,e.subject,e.predicate,e.object,e.graph)&&(yield r)}}}Ta.BITMASK=1<<31;Ta.SEPARATOR="_";Xv.TermDictionaryQuotedReferential=Ta;var Kv={};Object.defineProperty(Kv,"__esModule",{value:!0});Kv.TermDictionarySymbol=void 0;const Jue=yt,o4=sr;class Yue{constructor(e=new Jue.DataFactory){this.features={quotedTriples:!1},this.dataFactory=e}encode(e){return Symbol.for(`rdf::${(0,o4.termToString)(e)}`)}encodeOptional(e){return this.encode(e)}decode(e){const r=Symbol.keyFor(e);if(r===void 0)throw new Error(`The value ${String(e)} is not present in this dictionary`);return(0,o4.stringToTerm)(r.slice(5),this.dataFactory)}encodings(){throw new Error("encodings is not supported")}findQuotedTriples(e){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(e){throw new Error("findQuotedTriplesEncoded is not supported")}}Kv.TermDictionarySymbol=Yue;var j7={};Object.defineProperty(j7,"__esModule",{value:!0});var ey={};Object.defineProperty(ey,"__esModule",{value:!0});ey.RdfStoreIndexNestedMapRecursive=void 0;const u4=gs;class Zue{constructor(e){this.features={quotedTripleFiltering:!1},this.dictionary=e.dictionary,this.nestedMap=new Map}set(e,r){let n=this.nestedMap,a=!1;for(const[s,o]of e.entries()){const u=n;let c=u.get(o);c?s===e.length-1&&(a=!0):(c=s===e.length-1?r:new Map,u.set(o,c)),n=c}return!a}remove(e){const r=this.nestedMap,n=r.get(e[0]);if(!n)return!1;const a=n.get(e[1]);if(!a)return!1;const s=a.get(e[2]);if(!s)return!1;const o=s.delete(e[3]);return o&&s.size===0&&(a.delete(e[2]),a.size===0&&(n.delete(e[1]),n.size===0&&r.delete(e[0]))),o}get(e){const r=(0,u4.encodeOptionalTerms)(e,this.dictionary);if(!(!r||r.includes(void 0)))return this.getEncoded(r)}getEncoded(e){const r=this.nestedMap.get(e[0]);if(!r)return;const n=r.get(e[1]);if(!n)return;const a=n.get(e[2]);if(a)return a.get(e[3])}*find(e){const r=(0,u4.encodeOptionalTerms)(e,this.dictionary);if(r)for(const n of this.findEncoded(r,e))yield[r[0]!==void 0?e[0]:this.dictionary.decode(n[0]),r[1]!==void 0?e[1]:this.dictionary.decode(n[1]),r[2]!==void 0?e[2]:this.dictionary.decode(n[2]),r[3]!==void 0?e[3]:this.dictionary.decode(n[3])]}*findEncoded(e,r){return yield*this.findEncodedInner(0,e,r,this.nestedMap,[])}*findEncodedInner(e,r,n,a,s){if(e===r.length)yield[...s];else{const o=r[e];if(n[e]){const c=o;if(c!==void 0){const l=a.get(c);l&&(s[e]=o,yield*this.findEncodedInner(e+1,r,n,l,s))}}else for(const[c,l]of a.entries())s[e]=c,yield*this.findEncodedInner(e+1,r,n,l,s)}}count(e){return this.countInner(0,e,this.nestedMap)}countInner(e,r,n){const a=r[e];let s=0;if(a){const o=this.dictionary.encodeOptional(a);if(o!==void 0){if(e===r.length-1)return n.has(o)?1:0;const u=n.get(o);u&&(s+=this.countInner(e+1,r,u))}}else{if(e===r.length-1)return n.size;for(const o of n.values())s+=this.countInner(e+1,r,o)}return s}}ey.RdfStoreIndexNestedMapRecursive=Zue;var Jv={};Object.defineProperty(Jv,"__esModule",{value:!0});Jv.RdfStoreIndexNestedMapRecursiveQuoted=void 0;const c4=gs,ece=ey;class tce extends ece.RdfStoreIndexNestedMapRecursive{constructor(e){super(e),this.features={quotedTripleFiltering:!0}}*findEncoded(e,r){return yield*this.findEncodedInnerQuoted(0,e,r,(0,c4.arePatternsQuoted)(r),this.nestedMap,[])}*findEncodedInnerQuoted(e,r,n,a,s,o){if(e===r.length)yield[...o];else{const u=r[e],c=n[e];if(c)if(a[e]){const l=this.dictionary.findQuotedTriplesEncoded(c);for(const d of l){const h=s.get(d);h&&(o[e]=d,yield*this.findEncodedInnerQuoted(e+1,r,n,a,h,o))}}else{const l=u;if(l!==void 0){const d=s.get(l);d&&(o[e]=u,yield*this.findEncodedInnerQuoted(e+1,r,n,a,d,o))}}else for(const[l,d]of s.entries())o[e]=l,yield*this.findEncodedInnerQuoted(e+1,r,n,a,d,o)}}countInner(e,r,n){const a=r[e];let s=0;if(a)if(a.termType==="Quad"&&(0,c4.quadHasVariables)(a)){const o=this.dictionary.findQuotedTriplesEncoded(a);for(const u of o)if(e===r.length-1)n.has(u)&&s++;else{const c=n.get(u);c&&(s+=this.countInner(e+1,r,c))}}else{const o=this.dictionary.encodeOptional(a);if(o!==void 0){if(e===r.length-1)return n.has(o)?1:0;const u=n.get(o);u&&(s+=this.countInner(e+1,r,u))}}else{if(e===r.length-1)return n.size;for(const o of n.values())s+=this.countInner(e+1,r,o)}return s}}Jv.RdfStoreIndexNestedMapRecursiveQuoted=tce;var ty={};Object.defineProperty(ty,"__esModule",{value:!0});ty.RdfStoreIndexNestedRecord=void 0;const CT=gs;class rce{constructor(e){this.features={quotedTripleFiltering:!1},this.dictionary=e.dictionary,this.nestedRecords={}}set(e,r){const n=this.nestedRecords,a=n[e[0]]||(n[e[0]]={}),s=a[e[1]]||(a[e[1]]={}),o=s[e[2]]||(s[e[2]]={});return o[e[3]]?!1:(o[e[3]]=r,!0)}remove(e){const r=this.nestedRecords,n=r[e[0]];if(!n)return!1;const a=n[e[1]];if(!a)return!1;const s=a[e[2]];return!s||!s[e[3]]?!1:(delete s[e[3]],Object.keys(s).length===0&&(delete a[e[2]],Object.keys(a).length===0&&(delete n[e[1]],Object.keys(n).length===0&&delete r[e[0]])),!0)}get(e){const r=(0,CT.encodeOptionalTerms)(e,this.dictionary);if(!(!r||r.includes(void 0)))return this.getEncoded(r)}getEncoded(e){var r,n,a;return(a=(n=(r=this.nestedRecords[e[0]])===null||r===void 0?void 0:r[e[1]])===null||n===void 0?void 0:n[e[2]])===null||a===void 0?void 0:a[e[3]]}*find(e){const r=(0,CT.encodeOptionalTerms)(e,this.dictionary);if(!r)return;const[n,a,s,o]=r,[u,c,l,d]=e;let h,f,p,b,y,S,w;const I=this.nestedRecords,O=n!==void 0?n in I?[n]:[]:Object.keys(I);for(const T of O){y=I[T],h=u||this.dictionary.decode(Number.parseInt(T,10));const x=a!==void 0?a in y?[a]:[]:Object.keys(y);for(const P of x){S=y[P],f=c||this.dictionary.decode(Number.parseInt(P,10));const B=s!==void 0?s in S?[s]:[]:Object.keys(S);for(const Q of B){w=S[Q],p=l||this.dictionary.decode(Number.parseInt(Q,10));const N=o!==void 0?o in w?[o]:[]:Object.keys(w);for(const D of N)b=d||this.dictionary.decode(Number.parseInt(D,10)),yield[h,f,p,b]}}}}*findEncoded(e,r){const[n,a,s,o]=e;let u,c,l;const d=this.nestedRecords,h=n!==void 0?n in d?[n]:[]:Object.keys(d);for(const f of h){u=d[f];const p=a!==void 0?a in u?[a]:[]:Object.keys(u);for(const b of p){c=u[b];const y=s!==void 0?s in c?[s]:[]:Object.keys(c);for(const S of y){l=c[S];const w=o!==void 0?o in l?[o]:[]:Object.keys(l);for(const I of w)yield[Number.parseInt(f,10),Number.parseInt(b,10),Number.parseInt(S,10),Number.parseInt(I,10)]}}}}count(e){let r=0;const n=(0,CT.encodeOptionalTerms)(e,this.dictionary);if(!n)return 0;const a=n[0],s=n[1],o=n[2],u=n[3];let c,l,d;const h=this.nestedRecords,f=a!==void 0?a in h?[a]:[]:Object.keys(h);for(const p of f){c=h[p];const b=s!==void 0?s in c?[s]:[]:Object.keys(c);for(const y of b){l=c[y];const S=o!==void 0?o in l?[o]:[]:Object.keys(l);for(const w of S)d=l[w],u!==void 0?u in d&&r++:r+=Object.keys(d).length}}return r}}ty.RdfStoreIndexNestedRecord=rce;var Yv={};Object.defineProperty(Yv,"__esModule",{value:!0});Yv.RdfStoreIndexNestedRecordQuoted=void 0;const yh=gs,nce=ty;class ice extends nce.RdfStoreIndexNestedRecord{constructor(e){super(e),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(e,r){for(const n of this.dictionary.findQuotedTriplesEncoded(r))n in e&&(yield n)}*find(e){const r=(0,yh.encodeOptionalTerms)(e,this.dictionary);if(!r)return;const[n,a,s,o]=r,[u,c,l,d]=e,[h,f,p,b]=(0,yh.arePatternsQuoted)(e);let y,S,w,I,O,T,x;const P=this.nestedRecords,B=u!==void 0?h?this.getQuotedPatternKeys(P,u):n in P?[n]:[]:Object.keys(P);for(const Q of B){O=P[Q],y=!h&&u?u:this.dictionary.decode(Number.parseInt(Q,10));const N=c!==void 0?f?this.getQuotedPatternKeys(O,c):a in O?[a]:[]:Object.keys(O);for(const D of N){T=O[D],S=!f&&c?c:this.dictionary.decode(Number.parseInt(D,10));const F=l!==void 0?p?this.getQuotedPatternKeys(T,l):s in T?[s]:[]:Object.keys(T);for(const W of F){x=T[W],w=!p&&l?l:this.dictionary.decode(Number.parseInt(W,10));const z=d!==void 0?b?this.getQuotedPatternKeys(x,d):o in x?[o]:[]:Object.keys(x);for(const M of z)I=!b&&d?d:this.dictionary.decode(Number.parseInt(M,10)),yield[y,S,w,I]}}}}*findEncoded(e,r){const[n,a,s,o]=e,[u,c,l,d]=r,[h,f,p,b]=(0,yh.arePatternsQuoted)(r);let y,S,w;const I=this.nestedRecords,O=u!==void 0?h?this.getQuotedPatternKeys(I,u):n in I?[n]:[]:Object.keys(I);for(const T of O){y=I[T];const x=c!==void 0?f?this.getQuotedPatternKeys(y,c):a in y?[a]:[]:Object.keys(y);for(const P of x){S=y[P];const B=l!==void 0?p?this.getQuotedPatternKeys(S,l):s in S?[s]:[]:Object.keys(S);for(const Q of B){w=S[Q];const N=d!==void 0?b?this.getQuotedPatternKeys(w,d):o in w?[o]:[]:Object.keys(w);for(const D of N)yield[Number.parseInt(T,10),Number.parseInt(P,10),Number.parseInt(Q,10),Number.parseInt(D,10)]}}}}count(e){let r=0;const n=(0,yh.encodeOptionalTerms)(e,this.dictionary);if(!n)return 0;const[a,s,o,u]=n,[c,l,d,h]=e,[f,p,b,y]=(0,yh.arePatternsQuoted)(e);let S,w,I;const O=this.nestedRecords,T=c!==void 0?f?this.getQuotedPatternKeys(O,c):a in O?[a]:[]:Object.keys(O);for(const x of T){S=O[x];const P=l!==void 0?p?this.getQuotedPatternKeys(S,l):s in S?[s]:[]:Object.keys(S);for(const B of P){w=S[B];const Q=d!==void 0?b?this.getQuotedPatternKeys(w,d):o in w?[o]:[]:Object.keys(w);for(const N of Q)I=w[N],h!==void 0?y?r+=[...this.getQuotedPatternKeys(I,h)].length:u in I&&r++:r+=Object.keys(I).length}}return r}}Yv.RdfStoreIndexNestedRecordQuoted=ice;var C7={};Object.defineProperty(C7,"__esModule",{value:!0});var F7={};Object.defineProperty(F7,"__esModule",{value:!0});(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(D7(),t),r(N7,t),r(Gv,t),r(zv,t),r(J0,t),r(Wv,t),r(Y0,t),r(Xv,t),r(Kv,t),r(j7,t),r(Hf,t),r(Z0,t),r(ey,t),r(Jv,t),r(ty,t),r(Yv,t),r(C7,t),r(gs,t),r(F7,t),r(I7(),t)})(R7);Object.defineProperty(Qv,"__esModule",{value:!0});Qv.storeStream=void 0;const ace=R7;function sce(t){const e=ace.RdfStore.createDefault();return new Promise((r,n)=>e.import(t).on("error",n).once("end",()=>r(e)))}Qv.storeStream=sce;Object.defineProperty(qv,"__esModule",{value:!0});qv.ActorRdfResolveHypermediaNone=void 0;const oce=nR,uce=Hv,cce=Qv;class lce extends uce.ActorRdfResolveHypermedia{constructor(e){super(e,"file")}async testMetadata(e){return{filterFactor:0}}async run(e){return this.logInfo(e.context,`Identified as file source: ${e.url}`),{source:new oce.RdfJsQuadSource(await(0,cce.storeStream)(e.quads))}}}qv.ActorRdfResolveHypermediaNone=lce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(qv,t)})(A7);var M7={},Zv={},iR={},e2={};Object.defineProperty(e2,"__esModule",{value:!0});e2.ActorRdfResolveHypermediaLinks=void 0;const dce=et;class fce extends dce.Actor{constructor(e){super(e)}}e2.ActorRdfResolveHypermediaLinks=fce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(e2,t)})(iR);Object.defineProperty(Zv,"__esModule",{value:!0});Zv.ActorRdfResolveHypermediaLinksNext=void 0;const hce=iR;class pce extends hce.ActorRdfResolveHypermediaLinks{constructor(e){super(e)}async test(e){if(!e.metadata.next)throw new Error(`Actor ${this.name} requires a 'next' metadata entry.`);return!0}async run(e){return{links:[{url:e.metadata.next}]}}}Zv.ActorRdfResolveHypermediaLinksNext=pce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Zv,t)})(M7);var L7={},t2={},aR={},Gu={};Object.defineProperty(Gu,"__esModule",{value:!0});Gu.KeysRdfJoin=Gu.KeysExtractLinksTree=Gu.KeysRdfResolveHypermediaLinks=void 0;const Zb=et;Gu.KeysRdfResolveHypermediaLinks={traverse:new Zb.ActionContextKey("@comunica/actor-rdf-resolve-hypermedia-links-traverse:traverse"),annotateSources:new Zb.ActionContextKey("@comunica/bus-rdf-resolve-hypermedia-links:annotateSources")};Gu.KeysExtractLinksTree={strictTraversal:new Zb.ActionContextKey("@comunica/actor-extract-links-tree:strictTraversal")};Gu.KeysRdfJoin={skipAdaptiveJoin:new Zb.ActionContextKey("@comunica/bus-rdf-join:skipAdaptiveJoin")};(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Gu,t)})(aR);Object.defineProperty(t2,"__esModule",{value:!0});t2.ActorRdfResolveHypermediaLinksTraverse=void 0;const yce=iR,bce=Ht,l4=aR;class mce extends yce.ActorRdfResolveHypermediaLinks{constructor(e){super(e),this.upgradeInsecureRequests=e.upgradeInsecureRequests}async test(e){if(!e.metadata.traverse)throw new Error(`Actor ${this.name} requires a 'traverse' metadata entry.`);if(e.context.has(l4.KeysRdfResolveHypermediaLinks.traverse)&&!e.context.get(l4.KeysRdfResolveHypermediaLinks.traverse))throw new Error("Link traversal has been disabled via the context.");return!0}async run(e){return{links:e.metadata.traverse.map(r=>{const n=r.url.indexOf("#");return n>=0&&(r.url=r.url.slice(0,n)),r.url.startsWith("http:")&&(this.upgradeInsecureRequests??(g.window&&g.window.location.protocol==="https:"&&!e.context.get(bce.KeysHttpProxy.httpProxyHandler)))&&(r.url=r.url.replace("http:","https:")),r})}}}t2.ActorRdfResolveHypermediaLinksTraverse=mce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(t2,t)})(L7);var B7={},r2={},$7={},n2={};Object.defineProperty(n2,"__esModule",{value:!0});n2.ActorRdfResolveHypermediaLinksQueue=void 0;const gce=et;class _ce extends gce.Actor{constructor(e){super(e)}}n2.ActorRdfResolveHypermediaLinksQueue=_ce;var U7={};Object.defineProperty(U7,"__esModule",{value:!0});var i2={};Object.defineProperty(i2,"__esModule",{value:!0});i2.LinkQueueWrapper=void 0;class vce{constructor(e){this.linkQueue=e}push(e,r){return this.linkQueue.push(e,r)}getSize(){return this.linkQueue.getSize()}isEmpty(){return this.linkQueue.isEmpty()}pop(){return this.linkQueue.pop()}peek(){return this.linkQueue.peek()}}i2.LinkQueueWrapper=vce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(n2,t),r(U7,t),r(i2,t)})($7);var ry={};Object.defineProperty(ry,"__esModule",{value:!0});ry.LinkQueueFifo=void 0;class wce{constructor(){this.links=[]}push(e){return this.links.push(e),!0}getSize(){return this.links.length}isEmpty(){return this.links.length===0}pop(){return this.links.shift()}peek(){return this.links[0]}}ry.LinkQueueFifo=wce;Object.defineProperty(r2,"__esModule",{value:!0});r2.ActorRdfResolveHypermediaLinksQueueFifo=void 0;const Sce=$7,Tce=ry;class Ece extends Sce.ActorRdfResolveHypermediaLinksQueue{constructor(e){super(e)}async test(e){return!0}async run(e){return{linkQueue:new Tce.LinkQueueFifo}}}r2.ActorRdfResolveHypermediaLinksQueueFifo=Ece;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(r2,t),r(ry,t)})(B7);var q7={},a2={},kf={},ny={};Object.defineProperty(ny,"__esModule",{value:!0});ny.ActorRdfUpdateQuads=void 0;const Oce=et;class Ace extends Oce.Actor{constructor(e){super(e)}}ny.ActorRdfUpdateQuads=Ace;var zu={},sR={},s2={},iy={};Object.defineProperty(iy,"__esModule",{value:!0});iy.FederatedQuadSource=void 0;const xce=ft,Rce=Dl,O1=Ht,Ice=qm,FT=ba,d4=Wt,Pce=yt,f4=hn,Dce=Tt,h4=new Pce.DataFactory;class mn{constructor(e,r,n,a,s){if(this.mediatorResolveQuadPattern=e,this.mediatorRdfMetadataAccumulate=r,this.sources=n.get(O1.KeysRdfResolveQuadPattern.sources),this.contextDefault=n.delete(O1.KeysRdfResolveQuadPattern.sources),this.emptyPatterns=a,this.sourceIds=n.get(O1.KeysRdfResolveQuadPattern.sourceIds)??new Map,this.skipEmptyPatterns=s,this.algebraFactory=new Dce.Factory,this.skipEmptyPatterns)for(const o of this.sources)this.emptyPatterns.has(o)||this.emptyPatterns.set(o,[])}static isTermBound(e){return e.termType!=="Variable"}static isSubPatternOf(e,r){return(!mn.isTermBound(r.subject)||r.subject.equals(e.subject))&&(!mn.isTermBound(r.predicate)||r.predicate.equals(e.predicate))&&(!mn.isTermBound(r.object)||r.object.equals(e.object))&&(!mn.isTermBound(r.graph)||r.graph.equals(e.graph))}static skolemizeTerm(e,r){return e.termType==="BlankNode"?new Ice.BlankNodeScoped(`bc_${r}_${e.value}`,h4.namedNode(`${mn.SKOLEM_PREFIX}${r}:${e.value}`)):e}static skolemizeQuad(e,r){return(0,f4.mapTermsNested)(e,n=>mn.skolemizeTerm(n,r))}static deskolemizeTerm(e,r){if(e.termType==="BlankNode"&&"skolemized"in e&&(e=e.skolemized),e.termType==="NamedNode"&&e.value.startsWith(mn.SKOLEM_PREFIX)){const n=e.value.indexOf(":",mn.SKOLEM_PREFIX.length);if(e.value.slice(mn.SKOLEM_PREFIX.length,n)===r){const s=e.value.slice(n+1,e.value.length);return h4.blankNode(s)}return null}return e}static deskolemizeQuad(e,r){return(0,f4.mapTermsNested)(e,n=>{const a=mn.deskolemizeTerm(n,r);return a||n})}isSourceEmpty(e,r){if(!this.skipEmptyPatterns)return!1;const n=this.emptyPatterns.get(e);if(n){for(const a of n)if(mn.isSubPatternOf(r,a))return!0}return!1}getSourceId(e){let r=this.sourceIds.get(e);return r===void 0&&(r=`${this.sourceIds.size}`,this.sourceIds.set(e,r)),r}match(e,r,n,a){const s=async()=>{if(o.size===this.sources.length){let l=(await this.mediatorRdfMetadataAccumulate.mediate({mode:"initialize",context:this.contextDefault})).metadata;for(const h of o.values())l={...h,...(await this.mediatorRdfMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:l,appendingMetadata:h,context:this.contextDefault})).metadata};l.state=new FT.MetadataValidationState;const d=c.getProperty("metadata");c.setProperty("metadata",l),d==null||d.state.invalidate()}},o=new Map,u=Promise.all(this.sources.map(async(l,d)=>{const h=this.getSourceId(l),f=mn.deskolemizeTerm(e,h),p=mn.deskolemizeTerm(r,h),b=mn.deskolemizeTerm(n,h),y=mn.deskolemizeTerm(a,h);let S,w=(0,Rce.getDataSourceContext)(l,this.contextDefault);w=w.set(O1.KeysRdfResolveQuadPattern.source,l);let I;!f||!p||!b||!y||this.isSourceEmpty(l,S=this.algebraFactory.createPattern(f,p,b,y))?(I={data:new d4.ArrayIterator([],{autoStart:!1})},I.data.setProperty("metadata",{state:new FT.MetadataValidationState,...(await this.mediatorRdfMetadataAccumulate.mediate({mode:"initialize",context:this.contextDefault})).metadata})):I=await this.mediatorResolveQuadPattern.mediate({pattern:S,context:w});const O=()=>{I.data.getProperty("metadata",x=>{var P,B;o.set(`${d}`,x),this.skipEmptyPatterns&&!((P=x.cardinality)!=null&&P.value)&&S&&!this.isSourceEmpty(l,S)&&this.emptyPatterns.get(l).push(S),s().catch(Q=>c.emit("error",Q)),(B=x.state)==null||B.addInvalidateListener(()=>{o.delete(`${d}`),O()})})};O();const T=I.data.map(x=>mn.skolemizeQuad(x,h));return T.on("error",x=>c.emit("error",x)),T}));u.catch(l=>c.emit("error",l));const c=new xce.ClosableTransformIterator(async()=>new d4.UnionIterator(await u),{autoStart:!1,onClose(){u.then(l=>{for(const d of l)d.destroy()},()=>{})}});return this.sources.length===0&&this.mediatorRdfMetadataAccumulate.mediate({mode:"initialize",context:this.contextDefault}).then(l=>c.setProperty("metadata",{state:new FT.MetadataValidationState,...l.metadata})).catch(l=>c.emit("error",l)),c}}iy.FederatedQuadSource=mn;mn.SKOLEM_PREFIX="urn:comunica_skolem:source_";Object.defineProperty(s2,"__esModule",{value:!0});s2.ActorRdfResolveQuadPatternFederated=void 0;const p4=Dl,Nce=iy;class jce extends p4.ActorRdfResolveQuadPatternSource{constructor(e){super(e),this.emptyPatterns=new Map,e.mediatorRdfMetadataAccumulate||(this.mediatorRdfMetadataAccumulate={async mediate(r){if(r.mode==="initialize")return{metadata:{cardinality:{type:"exact",value:0},canContainUndefs:!1}};const n={...r.accumulatedMetadata},a=r.appendingMetadata;return!a.cardinality||!Number.isFinite(a.cardinality.value)?(n.cardinality.type="estimate",n.cardinality.value=Number.POSITIVE_INFINITY):(a.cardinality.type==="estimate"&&(n.cardinality.type="estimate"),n.cardinality.value+=a.cardinality.value),(n.requestTime||a.requestTime)&&(n.requestTime=n.requestTime||0,a.requestTime=a.requestTime||0,n.requestTime+=a.requestTime),(n.pageSize||a.pageSize)&&(n.pageSize=n.pageSize||0,a.pageSize=a.pageSize||0,n.pageSize+=a.pageSize),a.canContainUndefs&&(n.canContainUndefs=!0),{metadata:n}}})}async test(e){if(!(0,p4.getContextSources)(e.context))throw new Error(`Actor ${this.name} can only resolve quad pattern queries against a sources array.`);return!0}async getSource(e){return new Nce.FederatedQuadSource(this.mediatorResolveQuadPattern,this.mediatorRdfMetadataAccumulate,e,this.emptyPatterns,this.skipEmptyPatterns)}}s2.ActorRdfResolveQuadPatternFederated=jce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s2,t),r(iy,t)})(sR);Object.defineProperty(zu,"__esModule",{value:!0});zu.ActorRdfUpdateQuadsDestination=zu.deskolemize=zu.deskolemizeStream=void 0;const Cce=sR,y4=Ht,Fce=ny;function TO(t,e){return t==null?void 0:t.map(r=>Cce.FederatedQuadSource.deskolemizeQuad(r,e))}zu.deskolemizeStream=TO;function V7(t){var n;const e=t.context.get(y4.KeysRdfUpdateQuads.destination),r=(n=t.context.get(y4.KeysRdfResolveQuadPattern.sourceIds))==null?void 0:n.get(e);return r?{...t,quadStreamInsert:TO(t.quadStreamInsert,r),quadStreamDelete:TO(t.quadStreamDelete,r)}:t}zu.deskolemize=V7;class Mce extends Fce.ActorRdfUpdateQuads{async test(e){return!0}async run(e){const r=await this.getDestination(e.context);return await this.getOutput(r,V7(e),e.context)}async getOutput(e,r,n){return{execute:()=>Promise.all([r.quadStreamInsert?e.insert(r.quadStreamInsert):Promise.resolve(),r.quadStreamDelete?e.delete(r.quadStreamDelete):Promise.resolve(),r.deleteGraphs?e.deleteGraphs(r.deleteGraphs.graphs,r.deleteGraphs.requireExistence,r.deleteGraphs.dropGraphs):Promise.resolve(),r.createGraphs?e.createGraphs(r.createGraphs.graphs,r.createGraphs.requireNonExistence):Promise.resolve()]).then(()=>{})}}}zu.ActorRdfUpdateQuadsDestination=Mce;var o2={};Object.defineProperty(o2,"__esModule",{value:!0});o2.validateHttpResponse=void 0;const Lce=ms,Bce=Pl;async function $ce(t,e){var r;if(e.status>=400){let n="empty response";if(e.body){const a=Lce.ActorHttp.toNodeReadable(e.body);n=await Bce(a)}throw new Error(`Could not update ${t} (HTTP status ${e.status}): -${n}`)}await((r=e.body)==null?void 0:r.cancel())}o2.validateHttpResponse=$ce;var ti={};Object.defineProperty(ti,"__esModule",{value:!0});ti.getContextDestinationUrl=ti.getContextDestinationFirst=ti.getContextDestination=ti.getDataDestinationContext=ti.getDataDestinationValue=ti.getDataDestinationType=ti.isDataDestinationRawType=void 0;const EO=Ht;function H7(t){return typeof t=="string"||"remove"in t}ti.isDataDestinationRawType=H7;function Uce(t){return typeof t=="string"?"":"remove"in t?"rdfjsStore":t.type}ti.getDataDestinationType=Uce;function k7(t){return H7(t)?t:t.value}ti.getDataDestinationValue=k7;function qce(t,e){return typeof t=="string"||"remove"in t||!t.context?e:e.merge(t.context)}ti.getDataDestinationContext=qce;function Vce(t){return t.get(EO.KeysRdfUpdateQuads.destination)}ti.getContextDestination=Vce;function Hce(t){if(t.has(EO.KeysRdfUpdateQuads.destination))return t.get(EO.KeysRdfUpdateQuads.destination)}ti.getContextDestinationFirst=Hce;function kce(t){if(t){let e=k7(t);if(typeof e=="string"){const r=e.indexOf("#");return r>=0&&(e=e.slice(0,r)),e}}}ti.getContextDestinationUrl=kce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ny,t),r(zu,t),r(o2,t),r(ti,t)})(kf);var u2={};Object.defineProperty(u2,"__esModule",{value:!0});u2.RdfJsQuadDestination=void 0;const Qce=yt,b4=sr,Gce=new Qce.DataFactory;class zce{constructor(e){this.store=e}promisifyEventEmitter(e){return new Promise((r,n)=>{e.on("end",r),e.on("error",n)})}delete(e){return this.promisifyEventEmitter(this.store.remove(e))}insert(e){return this.promisifyEventEmitter(this.store.import(e))}async deleteGraphs(e,r,n){switch(e){case"ALL":await this.promisifyEventEmitter(this.store.deleteGraph(Gce.defaultGraph()));case"NAMED":const a=this.store.match(),s={};a.on("data",o=>{o.graph.termType!=="DefaultGraph"&&(s[(0,b4.termToString)(o.graph)]=!0)}),await this.promisifyEventEmitter(a),await Promise.all(Object.keys(s).map(o=>this.promisifyEventEmitter(this.store.deleteGraph((0,b4.stringToTerm)(o)))));break;default:for(const o of Array.isArray(e)?e:[e])await this.promisifyEventEmitter(this.store.deleteGraph(o))}}async createGraphs(e,r){if(r)for(const n of e){const a=this.store.match(void 0,void 0,void 0,n);await new Promise((s,o)=>{a.once("data",()=>{o(new Error(`Unable to create graph ${n.value} as it already exists`))}),a.on("end",s),a.on("error",o)})}}}u2.RdfJsQuadDestination=zce;Object.defineProperty(a2,"__esModule",{value:!0});a2.ActorRdfUpdateQuadsRdfJsStore=void 0;const MT=kf,Wce=u2;class Xce extends MT.ActorRdfUpdateQuadsDestination{constructor(e){super(e)}async test(e){const r=(0,MT.getContextDestination)(e.context);if(!r||typeof r=="string"||!("remove"in r)&&"value"in r&&!r.value.remove)throw new Error(`${this.name} received an invalid rdfjsStore.`);return!0}async getDestination(e){const r=(0,MT.getContextDestination)(e);return new Wce.RdfJsQuadDestination("remove"in r?r:r.value)}}a2.ActorRdfUpdateQuadsRdfJsStore=Xce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(a2,t)})(q7);var Q7={},c2={};Object.defineProperty(c2,"__esModule",{value:!0});c2.MediatorJoinCoefficientsFixed=void 0;const Kce=Ht,m4=et;class Jce extends m4.Mediator{constructor(e){super(e)}async mediateWith(e,r){var f;const n=[],a=r.map(({reply:p})=>p).map(p=>p.catch(b=>{n.push(b)})),s=await Promise.all(a);let o=s.map((p,b)=>{if(p)return p.iterations*this.cpuWeight+p.persistedItems*this.memoryWeight+p.blockingItems*this.timeWeight+p.requestTime*this.ioWeight});const u=Math.max(...o.filter(p=>p!==void 0)),c=e.context.get(Kce.KeysQueryOperation.limitIndicator);c&&(o=o.map((p,b)=>p!==void 0&&s[b].persistedItems>0&&s[b].iterations>c?p+u:p));let l=-1,d=Number.POSITIVE_INFINITY;for(const[p,b]of o.entries())b!==void 0&&(l===-1||bp.message).join(` -`)}`);const h=r[l].actor;return h.includeInLogs&&((f=m4.Actor.getContextLogger(e.context))==null||f.debug(`Determined physical join operator '${h.logicalType}-${h.physicalName}'`,{entries:e.entries.length,variables:await Promise.all(e.entries.map(async p=>(await p.output.metadata()).variables.map(b=>b.value))),costs:Object.fromEntries(o.map((p,b)=>[`${r[b].actor.logicalType}-${r[b].actor.physicalName}`,p])),coefficients:Object.fromEntries(s.map((p,b)=>[`${r[b].actor.logicalType}-${r[b].actor.physicalName}`,p]))})),h}}c2.MediatorJoinCoefficientsFixed=Jce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(c2,t)})(Q7);var G7={},l2={};Object.defineProperty(l2,"__esModule",{value:!0});l2.ActorRdfMetadataExtractTraverse=void 0;const Yce=uo;class Zce extends Yce.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){const r=await this.mediatorExtractLinks.mediate(e);return{metadata:{traverse:r.links,traverseConditional:r.linksConditional}}}}l2.ActorRdfMetadataExtractTraverse=Zce;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(l2,t)})(G7);var z7={},d2={};Object.defineProperty(d2,"__esModule",{value:!0});d2.ActorQueryOperationAsk=void 0;const g4=ft;class ele extends g4.ActorQueryOperationTypedMediated{constructor(e){super(e,"ask")}async testOperation(e,r){return!0}async runOperation(e,r){const n=await this.mediatorQueryOperation.mediate({operation:e.input,context:r}),{bindingsStream:a}=g4.ActorQueryOperation.getSafeBindings(n);return{type:"boolean",execute:async()=>(await a.take(1).toArray()).length===1}}}d2.ActorQueryOperationAsk=ele;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(d2,t)})(z7);var W7={},f2={};Object.defineProperty(f2,"__esModule",{value:!0});f2.ActorQueryOperationBgpJoin=void 0;const tle=ft,rle=Tt;class h2 extends tle.ActorQueryOperationTypedMediated{constructor(e){super(e,"bgp")}async testOperation(e,r){return!0}async runOperation(e,r){return this.mediatorQueryOperation.mediate({operation:h2.FACTORY.createJoin(e.patterns),context:r})}}f2.ActorQueryOperationBgpJoin=h2;h2.FACTORY=new rle.Factory;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(f2,t)})(W7);var X7={},p2={},y2={},b2={};Object.defineProperty(b2,"__esModule",{value:!0});b2.ActorQueryOperationUnion=void 0;const _4=ft,nle=ba,ile=Wt,ale=hn;class em extends _4.ActorQueryOperationTypedMediated{constructor(e){super(e,"union")}static unionVariables(e){return(0,ale.uniqTerms)(e.flat())}static unionMetadata(e,r){const n={type:"exact",value:0};for(const o of e)if(o.cardinality.value&&Number.isFinite(o.cardinality.value)||o.cardinality.value===0)o.cardinality.type==="estimate"&&(n.type="estimate"),n.value+=o.cardinality.value;else{n.type="estimate",n.value=Number.POSITIVE_INFINITY;break}const a={state:new nle.MetadataValidationState,cardinality:n,canContainUndefs:e.some(o=>o.canContainUndefs)},s=()=>a.state.invalidate();for(const o of e)o.state.addInvalidateListener(s);return r&&(a.variables=em.unionVariables(e.map(o=>o.variables))),a}async testOperation(e,r){return!0}async runOperation(e,r){const n=(await Promise.all(e.input.map(o=>this.mediatorQueryOperation.mediate({operation:o,context:r})))).map(_4.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new ile.UnionIterator(n.map(o=>o.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(n.map(o=>o.metadata())).then(o=>em.unionMetadata(o,!0))}}}b2.ActorQueryOperationUnion=em;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(b2,t)})(y2);Object.defineProperty(p2,"__esModule",{value:!0});p2.ActorQueryOperationDescribeSubject=void 0;const sle=y2,v4=ft,ole=Wt,ule=yt,A1=Tt,sd=new ule.DataFactory;class cle extends v4.ActorQueryOperationTypedMediated{constructor(e){super(e,"describe")}async testOperation(e,r){return!0}async runOperation(e,r){const n=e.terms.filter(u=>u.termType!=="Variable").map(u=>{const c=[sd.quad(u,sd.variable("__predicate"),sd.variable("__object"))];return c.forEach(d=>d.type="pattern"),{input:{type:A1.Algebra.types.BGP,patterns:c},template:c,type:"construct"}});if(n.length!==e.terms.length){let u=[];e.terms.filter(c=>c.termType==="Variable").forEach((c,l)=>{const d=[sd.quad(c,sd.variable(`__predicate${l}`),sd.variable(`__object${l}`))];d.forEach(h=>h.type="pattern"),u=[...u,...d]}),n.push({input:{type:A1.Algebra.types.JOIN,input:[e.input,{type:A1.Algebra.types.BGP,patterns:u}]},template:u,type:A1.Algebra.types.CONSTRUCT})}const a=(await Promise.all(n.map(u=>this.mediatorQueryOperation.mediate({operation:u,context:r})))).map(v4.ActorQueryOperation.getSafeQuads);return{type:"quads",quadStream:new ole.UnionIterator(a.map(u=>u.quadStream),{autoStart:!1}),metadata:()=>Promise.all(a.map(u=>u.metadata())).then(u=>sle.ActorQueryOperationUnion.unionMetadata(u,!1))}}}p2.ActorQueryOperationDescribeSubject=cle;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(p2,t)})(X7);var oR={},m2={},ay={};Object.defineProperty(ay,"__esModule",{value:!0});ay.BindingsToQuadsIterator=void 0;const w4=Wt,lle=yt,S4=hn,dle=new lle.DataFactory;class Od extends w4.MultiTransformIterator{constructor(e,r){super(r,{autoStart:!1}),this.template=e,this.blankNodeCounter=0}static bindTerm(e,r){return r.termType==="Variable"?e.get(r):r}static bindQuad(e,r){try{return(0,S4.mapTermsNested)(r,n=>{const a=Od.bindTerm(e,n);if(!a)throw new Error("Unbound term");return a})}catch{}}static localizeBlankNode(e,r){return r.termType==="BlankNode"?dle.blankNode(`${r.value}${e}`):r}static localizeQuad(e,r){return(0,S4.mapTermsNested)(r,n=>Od.localizeBlankNode(e,n))}bindTemplate(e,r,n){return r.map(Od.localizeQuad.bind(null,n)).map(s=>Od.bindQuad.bind(null,e)(s)).filter(Boolean)}_createTransformer(e){return new w4.ArrayIterator(this.bindTemplate(e,this.template,this.blankNodeCounter++),{autoStart:!1})}}ay.BindingsToQuadsIterator=Od;Object.defineProperty(m2,"__esModule",{value:!0});m2.ActorQueryOperationConstruct=void 0;const T4=ft,LT=hn,fle=Tt,hle=ay;class uR extends T4.ActorQueryOperationTypedMediated{constructor(e){super(e,"construct")}static getVariables(e){return(0,LT.uniqTerms)([].concat.apply([],e.map(r=>(0,LT.getVariables)((0,LT.getTermsNested)(r)))))}async testOperation(e,r){return!0}async runOperation(e,r){const n=uR.getVariables(e.template),a={type:fle.Algebra.types.PROJECT,input:e.input,variables:n},s=T4.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:a,context:r})),o=new hle.BindingsToQuadsIterator(e.template,s.bindingsStream);return{metadata:()=>s.metadata().then(c=>({...c,order:void 0,cardinality:{type:c.cardinality.type,value:c.cardinality.value*e.template.length},canContainUndefs:!1,availableOrders:void 0})),quadStream:o,type:"quads"}}}m2.ActorQueryOperationConstruct=uR;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(m2,t),r(ay,t)})(oR);var K7={},g2={},jl={},sy={},_s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.LRUCache=void 0;const od=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,J7=new Set,OO=typeof process=="object"&&process?process:{},Y7=(t,e,r,n)=>{typeof OO.emitWarning=="function"?OO.emitWarning(t,e,r,n):console.error(`[${r}] ${e}: ${t}`)};let tm=globalThis.AbortController,E4=globalThis.AbortSignal;var _8;if(typeof tm>"u"){E4=class{constructor(){Lr(this,"onabort");Lr(this,"_onabort",[]);Lr(this,"reason");Lr(this,"aborted",!1)}addEventListener(n,a){this._onabort.push(a)}},tm=class{constructor(){Lr(this,"signal",new E4);e()}abort(n){var a,s;if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(const o of this.signal._onabort)o(n);(s=(a=this.signal).onabort)==null||s.call(a,n)}}};let t=((_8=OO.env)==null?void 0:_8.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const e=()=>{t&&(t=!1,Y7("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}const ple=t=>!J7.has(t),vu=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Z7=t=>vu(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?gb:null:null;class gb extends Array{constructor(e){super(e),this.fill(0)}}var Ld;const Wc=class Wc{constructor(e,r){Lr(this,"heap");Lr(this,"length");if(!ue(Wc,Ld))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}static create(e){const r=Z7(e);if(!r)return[];dt(Wc,Ld,!0);const n=new Wc(e,r);return dt(Wc,Ld,!1),n}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};Ld=new WeakMap,xt(Wc,Ld,!1);let AO=Wc;var Xa,ea,Ka,Ja,Bd,gn,Ya,on,xr,wt,Ti,ta,Jn,On,Za,An,es,ts,ra,rs,Lu,Ei,Qp,RO,Zc,Mo,Gp,na,am,eL,el,$d,zp,js,wu,Cs,Su,Wp,IO,nve,Ud,_b,qd,vb,mr,Ar,Xp,PO,tl,rp;const $R=class $R{constructor(e){xt(this,Qp);xt(this,am);xt(this,js);xt(this,Cs);xt(this,Wp);xt(this,Ud);xt(this,qd);xt(this,mr);xt(this,Xp);xt(this,tl);xt(this,Xa,void 0);xt(this,ea,void 0);xt(this,Ka,void 0);xt(this,Ja,void 0);xt(this,Bd,void 0);Lr(this,"ttl");Lr(this,"ttlResolution");Lr(this,"ttlAutopurge");Lr(this,"updateAgeOnGet");Lr(this,"updateAgeOnHas");Lr(this,"allowStale");Lr(this,"noDisposeOnSet");Lr(this,"noUpdateTTL");Lr(this,"maxEntrySize");Lr(this,"sizeCalculation");Lr(this,"noDeleteOnFetchRejection");Lr(this,"noDeleteOnStaleGet");Lr(this,"allowStaleOnFetchAbort");Lr(this,"allowStaleOnFetchRejection");Lr(this,"ignoreFetchAbort");xt(this,gn,void 0);xt(this,Ya,void 0);xt(this,on,void 0);xt(this,xr,void 0);xt(this,wt,void 0);xt(this,Ti,void 0);xt(this,ta,void 0);xt(this,Jn,void 0);xt(this,On,void 0);xt(this,Za,void 0);xt(this,An,void 0);xt(this,es,void 0);xt(this,ts,void 0);xt(this,ra,void 0);xt(this,rs,void 0);xt(this,Lu,void 0);xt(this,Ei,void 0);xt(this,Zc,()=>{});xt(this,Mo,()=>{});xt(this,Gp,()=>{});xt(this,na,()=>!1);xt(this,el,e=>{});xt(this,$d,(e,r,n)=>{});xt(this,zp,(e,r,n,a)=>{if(n||a)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});Lr(this,nve,"LRUCache");const{max:r=0,ttl:n,ttlResolution:a=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:u,allowStale:c,dispose:l,disposeAfter:d,noDisposeOnSet:h,noUpdateTTL:f,maxSize:p=0,maxEntrySize:b=0,sizeCalculation:y,fetchMethod:S,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:I,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:T,ignoreFetchAbort:x}=e;if(r!==0&&!vu(r))throw new TypeError("max option must be a nonnegative integer");const P=r?Z7(r):Array;if(!P)throw new Error("invalid max value: "+r);if(dt(this,Xa,r),dt(this,ea,p),this.maxEntrySize=b||ue(this,ea),this.sizeCalculation=y,this.sizeCalculation){if(!ue(this,ea)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(S!==void 0&&typeof S!="function")throw new TypeError("fetchMethod must be a function if specified");if(dt(this,Bd,S),dt(this,Lu,!!S),dt(this,on,new Map),dt(this,xr,new Array(r).fill(void 0)),dt(this,wt,new Array(r).fill(void 0)),dt(this,Ti,new P(r)),dt(this,ta,new P(r)),dt(this,Jn,0),dt(this,On,0),dt(this,Za,AO.create(r)),dt(this,gn,0),dt(this,Ya,0),typeof l=="function"&&dt(this,Ka,l),typeof d=="function"?(dt(this,Ja,d),dt(this,An,[])):(dt(this,Ja,void 0),dt(this,An,void 0)),dt(this,rs,!!ue(this,Ka)),dt(this,Ei,!!ue(this,Ja)),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!f,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!O,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!x,this.maxEntrySize!==0){if(ue(this,ea)!==0&&!vu(ue(this,ea)))throw new TypeError("maxSize must be a positive integer if specified");if(!vu(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");st(this,am,eL).call(this)}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!I,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!u,this.ttlResolution=vu(a)||a===0?a:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!vu(this.ttl))throw new TypeError("ttl must be a positive integer if specified");st(this,Qp,RO).call(this)}if(ue(this,Xa)===0&&this.ttl===0&&ue(this,ea)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!ue(this,Xa)&&!ue(this,ea)){const B="LRU_CACHE_UNBOUNDED";ple(B)&&(J7.add(B),Y7("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",B,$R))}}static unsafeExposeInternals(e){return{starts:ue(e,ts),ttls:ue(e,ra),sizes:ue(e,es),keyMap:ue(e,on),keyList:ue(e,xr),valList:ue(e,wt),next:ue(e,Ti),prev:ue(e,ta),get head(){return ue(e,Jn)},get tail(){return ue(e,On)},free:ue(e,Za),isBackgroundFetch:r=>{var n;return st(n=e,mr,Ar).call(n,r)},backgroundFetch:(r,n,a,s)=>{var o;return st(o=e,qd,vb).call(o,r,n,a,s)},moveToTail:r=>{var n;return st(n=e,tl,rp).call(n,r)},indexes:r=>{var n;return st(n=e,js,wu).call(n,r)},rindexes:r=>{var n;return st(n=e,Cs,Su).call(n,r)},isStale:r=>{var n;return ue(n=e,na).call(n,r)}}}get max(){return ue(this,Xa)}get maxSize(){return ue(this,ea)}get calculatedSize(){return ue(this,Ya)}get size(){return ue(this,gn)}get fetchMethod(){return ue(this,Bd)}get dispose(){return ue(this,Ka)}get disposeAfter(){return ue(this,Ja)}getRemainingTTL(e){return ue(this,on).has(e)?1/0:0}*entries(){for(const e of st(this,js,wu).call(this))ue(this,wt)[e]!==void 0&&ue(this,xr)[e]!==void 0&&!st(this,mr,Ar).call(this,ue(this,wt)[e])&&(yield[ue(this,xr)[e],ue(this,wt)[e]])}*rentries(){for(const e of st(this,Cs,Su).call(this))ue(this,wt)[e]!==void 0&&ue(this,xr)[e]!==void 0&&!st(this,mr,Ar).call(this,ue(this,wt)[e])&&(yield[ue(this,xr)[e],ue(this,wt)[e]])}*keys(){for(const e of st(this,js,wu).call(this)){const r=ue(this,xr)[e];r!==void 0&&!st(this,mr,Ar).call(this,ue(this,wt)[e])&&(yield r)}}*rkeys(){for(const e of st(this,Cs,Su).call(this)){const r=ue(this,xr)[e];r!==void 0&&!st(this,mr,Ar).call(this,ue(this,wt)[e])&&(yield r)}}*values(){for(const e of st(this,js,wu).call(this))ue(this,wt)[e]!==void 0&&!st(this,mr,Ar).call(this,ue(this,wt)[e])&&(yield ue(this,wt)[e])}*rvalues(){for(const e of st(this,Cs,Su).call(this))ue(this,wt)[e]!==void 0&&!st(this,mr,Ar).call(this,ue(this,wt)[e])&&(yield ue(this,wt)[e])}[Symbol.iterator](){return this.entries()}find(e,r={}){for(const n of st(this,js,wu).call(this)){const a=ue(this,wt)[n],s=st(this,mr,Ar).call(this,a)?a.__staleWhileFetching:a;if(s!==void 0&&e(s,ue(this,xr)[n],this))return this.get(ue(this,xr)[n],r)}}forEach(e,r=this){for(const n of st(this,js,wu).call(this)){const a=ue(this,wt)[n],s=st(this,mr,Ar).call(this,a)?a.__staleWhileFetching:a;s!==void 0&&e.call(r,s,ue(this,xr)[n],this)}}rforEach(e,r=this){for(const n of st(this,Cs,Su).call(this)){const a=ue(this,wt)[n],s=st(this,mr,Ar).call(this,a)?a.__staleWhileFetching:a;s!==void 0&&e.call(r,s,ue(this,xr)[n],this)}}purgeStale(){let e=!1;for(const r of st(this,Cs,Su).call(this,{allowStale:!0}))ue(this,na).call(this,r)&&(this.delete(ue(this,xr)[r]),e=!0);return e}info(e){const r=ue(this,on).get(e);if(r===void 0)return;const n=ue(this,wt)[r],a=st(this,mr,Ar).call(this,n)?n.__staleWhileFetching:n;if(a===void 0)return;const s={value:a};if(ue(this,ra)&&ue(this,ts)){const o=ue(this,ra)[r],u=ue(this,ts)[r];if(o&&u){const c=o-(od.now()-u);s.ttl=c,s.start=Date.now()}}return ue(this,es)&&(s.size=ue(this,es)[r]),s}dump(){const e=[];for(const r of st(this,js,wu).call(this,{allowStale:!0})){const n=ue(this,xr)[r],a=ue(this,wt)[r],s=st(this,mr,Ar).call(this,a)?a.__staleWhileFetching:a;if(s===void 0||n===void 0)continue;const o={value:s};if(ue(this,ra)&&ue(this,ts)){o.ttl=ue(this,ra)[r];const u=od.now()-ue(this,ts)[r];o.start=Math.floor(Date.now()-u)}ue(this,es)&&(o.size=ue(this,es)[r]),e.unshift([n,o])}return e}load(e){this.clear();for(const[r,n]of e){if(n.start){const a=Date.now()-n.start;n.start=od.now()-a}this.set(r,n.value,n)}}set(e,r,n={}){var f,p,b,y,S;if(r===void 0)return this.delete(e),this;const{ttl:a=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:u=this.sizeCalculation,status:c}=n;let{noUpdateTTL:l=this.noUpdateTTL}=n;const d=ue(this,zp).call(this,e,r,n.size||0,u);if(this.maxEntrySize&&d>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.delete(e),this;let h=ue(this,gn)===0?void 0:ue(this,on).get(e);if(h===void 0)h=ue(this,gn)===0?ue(this,On):ue(this,Za).length!==0?ue(this,Za).pop():ue(this,gn)===ue(this,Xa)?st(this,Ud,_b).call(this,!1):ue(this,gn),ue(this,xr)[h]=e,ue(this,wt)[h]=r,ue(this,on).set(e,h),ue(this,Ti)[ue(this,On)]=h,ue(this,ta)[h]=ue(this,On),dt(this,On,h),Ly(this,gn)._++,ue(this,$d).call(this,h,d,c),c&&(c.set="add"),l=!1;else{st(this,tl,rp).call(this,h);const w=ue(this,wt)[h];if(r!==w){if(ue(this,Lu)&&st(this,mr,Ar).call(this,w)){w.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:I}=w;I!==void 0&&!o&&(ue(this,rs)&&((f=ue(this,Ka))==null||f.call(this,I,e,"set")),ue(this,Ei)&&((p=ue(this,An))==null||p.push([I,e,"set"])))}else o||(ue(this,rs)&&((b=ue(this,Ka))==null||b.call(this,w,e,"set")),ue(this,Ei)&&((y=ue(this,An))==null||y.push([w,e,"set"])));if(ue(this,el).call(this,h),ue(this,$d).call(this,h,d,c),ue(this,wt)[h]=r,c){c.set="replace";const I=w&&st(this,mr,Ar).call(this,w)?w.__staleWhileFetching:w;I!==void 0&&(c.oldValue=I)}}else c&&(c.set="update")}if(a!==0&&!ue(this,ra)&&st(this,Qp,RO).call(this),ue(this,ra)&&(l||ue(this,Gp).call(this,h,a,s),c&&ue(this,Mo).call(this,c,h)),!o&&ue(this,Ei)&&ue(this,An)){const w=ue(this,An);let I;for(;I=w==null?void 0:w.shift();)(S=ue(this,Ja))==null||S.call(this,...I)}return this}pop(){var e;try{for(;ue(this,gn);){const r=ue(this,wt)[ue(this,Jn)];if(st(this,Ud,_b).call(this,!0),st(this,mr,Ar).call(this,r)){if(r.__staleWhileFetching)return r.__staleWhileFetching}else if(r!==void 0)return r}}finally{if(ue(this,Ei)&&ue(this,An)){const r=ue(this,An);let n;for(;n=r==null?void 0:r.shift();)(e=ue(this,Ja))==null||e.call(this,...n)}}}has(e,r={}){const{updateAgeOnHas:n=this.updateAgeOnHas,status:a}=r,s=ue(this,on).get(e);if(s!==void 0){const o=ue(this,wt)[s];if(st(this,mr,Ar).call(this,o)&&o.__staleWhileFetching===void 0)return!1;if(ue(this,na).call(this,s))a&&(a.has="stale",ue(this,Mo).call(this,a,s));else return n&&ue(this,Zc).call(this,s),a&&(a.has="hit",ue(this,Mo).call(this,a,s)),!0}else a&&(a.has="miss");return!1}peek(e,r={}){const{allowStale:n=this.allowStale}=r,a=ue(this,on).get(e);if(a===void 0||!n&&ue(this,na).call(this,a))return;const s=ue(this,wt)[a];return st(this,mr,Ar).call(this,s)?s.__staleWhileFetching:s}async fetch(e,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:y,forceRefresh:S=!1,status:w,signal:I}=r;if(!ue(this,Lu))return w&&(w.fetch="get"),this.get(e,{allowStale:n,updateAgeOnGet:a,noDeleteOnStaleGet:s,status:w});const O={allowStale:n,updateAgeOnGet:a,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:u,size:c,sizeCalculation:l,noUpdateTTL:d,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:b,ignoreFetchAbort:p,status:w,signal:I};let T=ue(this,on).get(e);if(T===void 0){w&&(w.fetch="miss");const x=st(this,qd,vb).call(this,e,T,O,y);return x.__returned=x}else{const x=ue(this,wt)[T];if(st(this,mr,Ar).call(this,x)){const D=n&&x.__staleWhileFetching!==void 0;return w&&(w.fetch="inflight",D&&(w.returnedStale=!0)),D?x.__staleWhileFetching:x.__returned=x}const P=ue(this,na).call(this,T);if(!S&&!P)return w&&(w.fetch="hit"),st(this,tl,rp).call(this,T),a&&ue(this,Zc).call(this,T),w&&ue(this,Mo).call(this,w,T),x;const B=st(this,qd,vb).call(this,e,T,O,y),N=B.__staleWhileFetching!==void 0&&n;return w&&(w.fetch=P?"stale":"refresh",N&&P&&(w.returnedStale=!0)),N?B.__staleWhileFetching:B.__returned=B}}get(e,r={}){const{allowStale:n=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,u=ue(this,on).get(e);if(u!==void 0){const c=ue(this,wt)[u],l=st(this,mr,Ar).call(this,c);return o&&ue(this,Mo).call(this,o,u),ue(this,na).call(this,u)?(o&&(o.get="stale"),l?(o&&n&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?c.__staleWhileFetching:void 0):(s||this.delete(e),o&&n&&(o.returnedStale=!0),n?c:void 0)):(o&&(o.get="hit"),l?c.__staleWhileFetching:(st(this,tl,rp).call(this,u),a&&ue(this,Zc).call(this,u),c))}else o&&(o.get="miss")}delete(e){var n,a,s,o;let r=!1;if(ue(this,gn)!==0){const u=ue(this,on).get(e);if(u!==void 0)if(r=!0,ue(this,gn)===1)this.clear();else{ue(this,el).call(this,u);const c=ue(this,wt)[u];if(st(this,mr,Ar).call(this,c)?c.__abortController.abort(new Error("deleted")):(ue(this,rs)||ue(this,Ei))&&(ue(this,rs)&&((n=ue(this,Ka))==null||n.call(this,c,e,"delete")),ue(this,Ei)&&((a=ue(this,An))==null||a.push([c,e,"delete"]))),ue(this,on).delete(e),ue(this,xr)[u]=void 0,ue(this,wt)[u]=void 0,u===ue(this,On))dt(this,On,ue(this,ta)[u]);else if(u===ue(this,Jn))dt(this,Jn,ue(this,Ti)[u]);else{const l=ue(this,ta)[u];ue(this,Ti)[l]=ue(this,Ti)[u];const d=ue(this,Ti)[u];ue(this,ta)[d]=ue(this,ta)[u]}Ly(this,gn)._--,ue(this,Za).push(u)}}if(ue(this,Ei)&&((s=ue(this,An))!=null&&s.length)){const u=ue(this,An);let c;for(;c=u==null?void 0:u.shift();)(o=ue(this,Ja))==null||o.call(this,...c)}return r}clear(){var e,r,n;for(const a of st(this,Cs,Su).call(this,{allowStale:!0})){const s=ue(this,wt)[a];if(st(this,mr,Ar).call(this,s))s.__abortController.abort(new Error("deleted"));else{const o=ue(this,xr)[a];ue(this,rs)&&((e=ue(this,Ka))==null||e.call(this,s,o,"delete")),ue(this,Ei)&&((r=ue(this,An))==null||r.push([s,o,"delete"]))}}if(ue(this,on).clear(),ue(this,wt).fill(void 0),ue(this,xr).fill(void 0),ue(this,ra)&&ue(this,ts)&&(ue(this,ra).fill(0),ue(this,ts).fill(0)),ue(this,es)&&ue(this,es).fill(0),dt(this,Jn,0),dt(this,On,0),ue(this,Za).length=0,dt(this,Ya,0),dt(this,gn,0),ue(this,Ei)&&ue(this,An)){const a=ue(this,An);let s;for(;s=a==null?void 0:a.shift();)(n=ue(this,Ja))==null||n.call(this,...s)}}};nve=Symbol.toStringTag,Xa=new WeakMap,ea=new WeakMap,Ka=new WeakMap,Ja=new WeakMap,Bd=new WeakMap,gn=new WeakMap,Ya=new WeakMap,on=new WeakMap,xr=new WeakMap,wt=new WeakMap,Ti=new WeakMap,ta=new WeakMap,Jn=new WeakMap,On=new WeakMap,Za=new WeakMap,An=new WeakMap,es=new WeakMap,ts=new WeakMap,ra=new WeakMap,rs=new WeakMap,Lu=new WeakMap,Ei=new WeakMap,Qp=new WeakSet,RO=function(){const e=new gb(ue(this,Xa)),r=new gb(ue(this,Xa));dt(this,ra,e),dt(this,ts,r),dt(this,Gp,(s,o,u=od.now())=>{if(r[s]=o!==0?u:0,e[s]=o,o!==0&&this.ttlAutopurge){const c=setTimeout(()=>{ue(this,na).call(this,s)&&this.delete(ue(this,xr)[s])},o+1);c.unref&&c.unref()}}),dt(this,Zc,s=>{r[s]=e[s]!==0?od.now():0}),dt(this,Mo,(s,o)=>{if(e[o]){const u=e[o],c=r[o];if(!u||!c)return;s.ttl=u,s.start=c,s.now=n||a();const l=s.now-c;s.remainingTTL=u-l}});let n=0;const a=()=>{const s=od.now();if(this.ttlResolution>0){n=s;const o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{const o=ue(this,on).get(s);if(o===void 0)return 0;const u=e[o],c=r[o];if(!u||!c)return 1/0;const l=(n||a())-c;return u-l},dt(this,na,s=>{const o=r[s],u=e[s];return!!u&&!!o&&(n||a())-o>u})},Zc=new WeakMap,Mo=new WeakMap,Gp=new WeakMap,na=new WeakMap,am=new WeakSet,eL=function(){const e=new gb(ue(this,Xa));dt(this,Ya,0),dt(this,es,e),dt(this,el,r=>{dt(this,Ya,ue(this,Ya)-e[r]),e[r]=0}),dt(this,zp,(r,n,a,s)=>{if(st(this,mr,Ar).call(this,n))return 0;if(!vu(a))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(a=s(n,r),!vu(a))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return a}),dt(this,$d,(r,n,a)=>{if(e[r]=n,ue(this,ea)){const s=ue(this,ea)-e[r];for(;ue(this,Ya)>s;)st(this,Ud,_b).call(this,!0)}dt(this,Ya,ue(this,Ya)+e[r]),a&&(a.entrySize=n,a.totalCalculatedSize=ue(this,Ya))})},el=new WeakMap,$d=new WeakMap,zp=new WeakMap,js=new WeakSet,wu=function*({allowStale:e=this.allowStale}={}){if(ue(this,gn))for(let r=ue(this,On);!(!st(this,Wp,IO).call(this,r)||((e||!ue(this,na).call(this,r))&&(yield r),r===ue(this,Jn)));)r=ue(this,ta)[r]},Cs=new WeakSet,Su=function*({allowStale:e=this.allowStale}={}){if(ue(this,gn))for(let r=ue(this,Jn);!(!st(this,Wp,IO).call(this,r)||((e||!ue(this,na).call(this,r))&&(yield r),r===ue(this,On)));)r=ue(this,Ti)[r]},Wp=new WeakSet,IO=function(e){return e!==void 0&&ue(this,on).get(ue(this,xr)[e])===e},Ud=new WeakSet,_b=function(e){var s,o;const r=ue(this,Jn),n=ue(this,xr)[r],a=ue(this,wt)[r];return ue(this,Lu)&&st(this,mr,Ar).call(this,a)?a.__abortController.abort(new Error("evicted")):(ue(this,rs)||ue(this,Ei))&&(ue(this,rs)&&((s=ue(this,Ka))==null||s.call(this,a,n,"evict")),ue(this,Ei)&&((o=ue(this,An))==null||o.push([a,n,"evict"]))),ue(this,el).call(this,r),e&&(ue(this,xr)[r]=void 0,ue(this,wt)[r]=void 0,ue(this,Za).push(r)),ue(this,gn)===1?(dt(this,Jn,dt(this,On,0)),ue(this,Za).length=0):dt(this,Jn,ue(this,Ti)[r]),ue(this,on).delete(n),Ly(this,gn)._--,r},qd=new WeakSet,vb=function(e,r,n,a){const s=r===void 0?void 0:ue(this,wt)[r];if(st(this,mr,Ar).call(this,s))return s;const o=new tm,{signal:u}=n;u==null||u.addEventListener("abort",()=>o.abort(u.reason),{signal:o.signal});const c={signal:o.signal,options:n,context:a},l=(y,S=!1)=>{const{aborted:w}=o.signal,I=n.ignoreFetchAbort&&y!==void 0;if(n.status&&(w&&!S?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,I&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),w&&!I&&!S)return h(o.signal.reason);const O=p;return ue(this,wt)[r]===p&&(y===void 0?O.__staleWhileFetching?ue(this,wt)[r]=O.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,y,c.options))),y},d=y=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=y),h(y)),h=y=>{const{aborted:S}=o.signal,w=S&&n.allowStaleOnFetchAbort,I=w||n.allowStaleOnFetchRejection,O=I||n.noDeleteOnFetchRejection,T=p;if(ue(this,wt)[r]===p&&(!O||T.__staleWhileFetching===void 0?this.delete(e):w||(ue(this,wt)[r]=T.__staleWhileFetching)),I)return n.status&&T.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),T.__staleWhileFetching;if(T.__returned===T)throw y},f=(y,S)=>{var I;const w=(I=ue(this,Bd))==null?void 0:I.call(this,e,s,c);w&&w instanceof Promise&&w.then(O=>y(O===void 0?void 0:O),S),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(y(void 0),n.allowStaleOnFetchAbort&&(y=O=>l(O,!0)))})};n.status&&(n.status.fetchDispatched=!0);const p=new Promise(f).then(l,d),b=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(e,b,{...c.options,status:void 0}),r=ue(this,on).get(e)):ue(this,wt)[r]=b,b},mr=new WeakSet,Ar=function(e){if(!ue(this,Lu))return!1;const r=e;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof tm},Xp=new WeakSet,PO=function(e,r){ue(this,ta)[r]=e,ue(this,Ti)[e]=r},tl=new WeakSet,rp=function(e){e!==ue(this,On)&&(e===ue(this,Jn)?dt(this,Jn,ue(this,Ti)[e]):st(this,Xp,PO).call(this,ue(this,ta)[e],ue(this,Ti)[e]),st(this,Xp,PO).call(this,ue(this,On),e),dt(this,On,e))};let xO=$R;_s.LRUCache=xO;var oy={},BT={},Ni={};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.asTermType=Ni.ExpressionType=void 0;var O4;(function(t){t.Aggregate="aggregate",t.Existence="existence",t.Named="named",t.Operator="operator",t.SpecialOperator="specialOperator",t.Term="term",t.Variable="variable",t.AsyncExtension="asyncExtension",t.SyncExtension="syncExtension"})(O4||(Ni.ExpressionType=O4={}));function yle(t){if(t==="namedNode"||t==="literal"||t==="blankNode"||t==="quad")return t}Ni.asTermType=yle;var _2={};Object.defineProperty(_2,"__esModule",{value:!0});_2.Variable=void 0;const ble=Ni;class mle{constructor(e){this.expressionType=ble.ExpressionType.Variable,this.name=e}}_2.Variable=mle;var bt={},bh={},li={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.NamedOperators=t.SetFunctions=t.SetFunction=t.Operators=t.SpecialOperators=t.RegularOperators=t.SpecialOperator=t.RegularOperator=t.TypeURL=t.TypeAlias=void 0;var e;(function(o){o.SPARQL_NUMERIC="SPARQL_NUMERIC",o.SPARQL_STRINGLY="SPARQL_STRINGLY"})(e||(t.TypeAlias=e={}));var r;(function(o){o.XSD_ANY_URI="http://www.w3.org/2001/XMLSchema#anyURI",o.XSD_STRING="http://www.w3.org/2001/XMLSchema#string",o.RDF_LANG_STRING="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",o.XSD_BOOLEAN="http://www.w3.org/2001/XMLSchema#boolean",o.XSD_DATE_TIME="http://www.w3.org/2001/XMLSchema#dateTime",o.XSD_DATE_TIME_STAMP="http://www.w3.org/2001/XMLSchema#dateTimeStamp",o.XSD_DATE="http://www.w3.org/2001/XMLSchema#date",o.XSD_G_MONTH="http://www.w3.org/2001/XMLSchema#gMonth",o.XSD_G_MONTHDAY="http://www.w3.org/2001/XMLSchema#gMonthDay",o.XSD_G_YEAR="http://www.w3.org/2001/XMLSchema#gYear",o.XSD_G_YEAR_MONTH="http://www.w3.org/2001/XMLSchema#gYearMonth",o.XSD_TIME="http://www.w3.org/2001/XMLSchema#time",o.XSD_G_DAY="http://www.w3.org/2001/XMLSchema#gDay",o.XSD_DECIMAL="http://www.w3.org/2001/XMLSchema#decimal",o.XSD_FLOAT="http://www.w3.org/2001/XMLSchema#float",o.XSD_DOUBLE="http://www.w3.org/2001/XMLSchema#double",o.XSD_INTEGER="http://www.w3.org/2001/XMLSchema#integer",o.XSD_NON_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonPositiveInteger",o.XSD_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#negativeInteger",o.XSD_LONG="http://www.w3.org/2001/XMLSchema#long",o.XSD_INT="http://www.w3.org/2001/XMLSchema#int",o.XSD_SHORT="http://www.w3.org/2001/XMLSchema#short",o.XSD_BYTE="http://www.w3.org/2001/XMLSchema#byte",o.XSD_NON_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonNegativeInteger",o.XSD_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#positiveInteger",o.XSD_UNSIGNED_LONG="http://www.w3.org/2001/XMLSchema#unsignedLong",o.XSD_UNSIGNED_INT="http://www.w3.org/2001/XMLSchema#unsignedInt",o.XSD_UNSIGNED_SHORT="http://www.w3.org/2001/XMLSchema#unsignedShort",o.XSD_UNSIGNED_BYTE="http://www.w3.org/2001/XMLSchema#unsignedByte",o.XSD_NORMALIZED_STRING="http://www.w3.org/2001/XMLSchema#normalizedString",o.XSD_TOKEN="http://www.w3.org/2001/XMLSchema#token",o.XSD_LANGUAGE="http://www.w3.org/2001/XMLSchema#language",o.XSD_NM_TOKEN="http://www.w3.org/2001/XMLSchema#NMTOKEN",o.XSD_NAME="http://www.w3.org/2001/XMLSchema#name",o.XSD_NC_NAME="http://www.w3.org/2001/XMLSchema#NCName",o.XSD_ENTITY="http://www.w3.org/2001/XMLSchema#ENTITY",o.XSD_ID="http://www.w3.org/2001/XMLSchema#ID",o.XSD_ID_REF="http://www.w3.org/2001/XMLSchema#IDREF",o.XSD_DURATION="http://www.w3.org/2001/XMLSchema#duration",o.XSD_YEAR_MONTH_DURATION="http://www.w3.org/2001/XMLSchema#yearMonthDuration",o.XSD_DAY_TIME_DURATION="http://www.w3.org/2001/XMLSchema#dayTimeDuration"})(r||(t.TypeURL=r={}));var n;(function(o){o.NOT="!",o.UMINUS="uminus",o.UPLUS="uplus",o.EQUAL="=",o.NOT_EQUAL="!=",o.LT="<",o.GT=">",o.LTE="<=",o.GTE=">=",o.MULTIPLICATION="*",o.DIVISION="/",o.ADDITION="+",o.SUBTRACTION="-",o.IS_IRI="isiri",o.IS_URI="isuri",o.IS_BLANK="isblank",o.IS_LITERAL="isliteral",o.IS_NUMERIC="isnumeric",o.STR="str",o.LANG="lang",o.DATATYPE="datatype",o.IRI="iri",o.URI="uri",o.STRDT="strdt",o.STRLANG="strlang",o.UUID="uuid",o.STRUUID="struuid",o.STRLEN="strlen",o.SUBSTR="substr",o.UCASE="ucase",o.LCASE="lcase",o.STRSTARTS="strstarts",o.STRENDS="strends",o.CONTAINS="contains",o.STRBEFORE="strbefore",o.STRAFTER="strafter",o.ENCODE_FOR_URI="encode_for_uri",o.LANG_MATCHES="langmatches",o.REGEX="regex",o.REPLACE="replace",o.ABS="abs",o.ROUND="round",o.CEIL="ceil",o.FLOOR="floor",o.RAND="rand",o.NOW="now",o.YEAR="year",o.MONTH="month",o.DAY="day",o.HOURS="hours",o.MINUTES="minutes",o.SECONDS="seconds",o.TIMEZONE="timezone",o.TZ="tz",o.MD5="md5",o.SHA1="sha1",o.SHA256="sha256",o.SHA384="sha384",o.SHA512="sha512",o.TRIPLE="triple",o.SUBJECT="subject",o.PREDICATE="predicate",o.OBJECT="object",o.IS_TRIPLE="istriple"})(n||(t.RegularOperator=n={}));var a;(function(o){o.BOUND="bound",o.IF="if",o.COALESCE="coalesce",o.LOGICAL_OR="||",o.LOGICAL_AND="&&",o.SAME_TERM="sameterm",o.IN="in",o.NOT_IN="notin",o.CONCAT="concat",o.BNODE="bnode"})(a||(t.SpecialOperator=a={})),t.RegularOperators=new Set(Object.values(n)),t.SpecialOperators=new Set(Object.values(a)),t.Operators=new Set([...t.RegularOperators,...t.SpecialOperators]);var s;(function(o){o.COUNT="count",o.SUM="sum",o.MIN="min",o.MAX="max",o.AVG="avg",o.GROUP_CONCAT="group_concat",o.SAMPLE="sample"})(s||(t.SetFunction=s={})),t.SetFunctions=new Set(Object.values(s)),t.NamedOperators=new Set([r.XSD_STRING,r.XSD_FLOAT,r.XSD_DOUBLE,r.XSD_DECIMAL,r.XSD_INTEGER,r.XSD_DATE_TIME,r.XSD_DATE,r.XSD_BOOLEAN,r.XSD_TIME,r.XSD_DURATION,r.XSD_DAY_TIME_DURATION,r.XSD_YEAR_MONTH_DURATION])})(li);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.NoExistenceHook=Ze.NoAggregator=Ze.ExtensionFunctionError=Ze.UnknownNamedOperator=Ze.UnknownOperator=Ze.InvalidTermType=Ze.InvalidExpressionType=Ze.InvalidExpression=Ze.InvalidArity=Ze.UnexpectedError=Ze.ParseError=Ze.EmptyAggregateError=Ze.IncompatibleLanguageOperation=Ze.InvalidTimezoneCall=Ze.CastError=Ze.InvalidCompareArgumentTypes=Ze.InvalidArgumentTypes=Ze.InError=Ze.CoalesceError=Ze.RDFEqualTypeError=Ze.EBVCoercionError=Ze.UnboundVariableError=Ze.InvalidLexicalForm=Ze.isExpressionError=Ze.ExpressionError=void 0;class Mi extends Error{}Ze.ExpressionError=Mi;function gle(t){return t instanceof Mi}Ze.isExpressionError=gle;class _le extends Mi{constructor(e){super(`Invalid lexical form '${di(e)}'`),this.arg=e}}Ze.InvalidLexicalForm=_le;class vle extends Mi{constructor(e,r){super(`Unbound variable '${di(e)}'`),this.variable=e,this.bindings=r}}Ze.UnboundVariableError=vle;class wle extends Mi{constructor(e){super(`Cannot coerce term to EBV '${di(e)}'`),this.arg=e}}Ze.EBVCoercionError=wle;class Sle extends Mi{constructor(e){super("Equality test for literals with unsupported datatypes"),this.args=e}}Ze.RDFEqualTypeError=Sle;class Tle extends Mi{constructor(e){super("All COALESCE arguments threw errors"),this.errors=e}}Ze.CoalesceError=Tle;class Ele extends Mi{constructor(e){super(`Some argument to IN errorred and none where equal. ${e.map(r=>`(${r.toString()}) `).join("and ")}`),this.errors=e}}Ze.InError=Ele;class Ole extends Mi{constructor(e,r){super(`Argument types not valid for operator: '${di(r)}' with '${di(e)}`),this.args=e,this.op=r}}Ze.InvalidArgumentTypes=Ole;class Ale extends Mi{constructor(e,r){super(`Compared argument types are supported: '${e.termType}' and '${r.termType}'`),this.arg0=e,this.arg1=r}}Ze.InvalidCompareArgumentTypes=Ale;class xle extends Mi{constructor(e,r){super(`Invalid cast: '${di(e)}' to '${di(r)}'`),this.arg=e}}Ze.CastError=xle;class Rle extends Mi{constructor(e){super(`TIMEZONE call on ${e} which has no timezone`),this.dateString=e}}Ze.InvalidTimezoneCall=Rle;class Ile extends Mi{constructor(e,r){super(`Operation on incompatible language literals '${di(e)}' and '${di(r)}'`),this.arg1=e,this.arg2=r}}Ze.IncompatibleLanguageOperation=Ile;class Ple extends Mi{constructor(){super("Empty aggregate expression")}}Ze.EmptyAggregateError=Ple;class Dle extends Mi{constructor(e,r){super(`Failed to parse ${e} as ${r}.`)}}Ze.ParseError=Dle;class Nle extends Error{constructor(e,r){super(`Programmer Error '${e}'`),this.payload=r}}Ze.UnexpectedError=Nle;class jle extends Error{constructor(e,r){super(`The number of args does not match the arity of the operator '${di(r)}'.`),this.args=e,this.op=r}}Ze.InvalidArity=jle;class Cle extends Error{constructor(e){super(`Invalid SPARQL Expression '${di(e)}'`)}}Ze.InvalidExpression=Cle;class Fle extends Error{constructor(e){super(`Invalid expression type for SPARQL Expression '${di(e)}'`),this.expr=e}}Ze.InvalidExpressionType=Fle;class Mle extends Error{constructor(e){super(`Invalid term type for term '${di(e)}'`),this.term=e}}Ze.InvalidTermType=Mle;class Lle extends Error{constructor(e){super(`Unknown operator: '${di(e)}`)}}Ze.UnknownOperator=Lle;class Ble extends Error{constructor(e){super(`Unknown named operator: '${di(e)}'`)}}Ze.UnknownNamedOperator=Ble;class $le extends Error{constructor(e,r){r instanceof Error?super(`Error thrown in ${e}: ${r.message}${r.stack?` -${r.stack}`:""}`):super(`Error thrown in ${e}`)}}Ze.ExtensionFunctionError=$le;class Ule extends Error{constructor(e){super(`Aggregate expression ${di(e)} found, but no aggregate hook provided.`)}}Ze.NoAggregator=Ule;class qle extends Error{constructor(){super("EXISTS found, but no existence hook provided.")}}Ze.NoExistenceHook=qle;function di(t){return JSON.stringify(t)}var Xr={},Mt={};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.extractTimeZone=Mt.extractRawTimeZone=Mt.dayTimeDurationsToSeconds=Mt.yearMonthDurationsToMonths=Mt.trimToDayTimeDuration=Mt.trimToYearMonthDuration=Mt.toUTCDate=Mt.toJSDate=Mt.negateDuration=Mt.toDateTimeRepresentation=Mt.defaultedDateTimeRepresentation=Mt.simplifyDurationRepresentation=Mt.defaultedDurationRepresentation=Mt.defaultedYearMonthDurationRepresentation=Mt.defaultedDayTimeDurationRepresentation=void 0;function tL(t){return{day:t.day||0,hours:t.hours||0,minutes:t.minutes||0,seconds:t.seconds||0}}Mt.defaultedDayTimeDurationRepresentation=tL;function rL(t){return{year:t.year||0,month:t.month||0}}Mt.defaultedYearMonthDurationRepresentation=rL;function nL(t){return{...tL(t),...rL(t)}}Mt.defaultedDurationRepresentation=nL;function Vle(t){const e=nL(t),r={},n=e.year+Math.trunc(e.month/12);n&&(r.year=n,e.month%=12),e.month&&(r.month=e.month);const a=e.day+Math.trunc(e.hours/24)+Math.trunc(e.minutes/(24*60))+Math.trunc(e.seconds/(24*60*60));a&&(r.day=a,e.hours%=24,e.minutes%=24*60,e.seconds%=24*60*60);const s=e.hours+Math.trunc(e.minutes/60)+Math.trunc(e.seconds/(60*60));s&&(r.hours=s,e.minutes%=60,e.seconds%=60*60);const o=e.minutes+Math.trunc(e.seconds/60);return o&&(r.minutes=o,e.seconds%=60),e.seconds&&(r.seconds=e.seconds),r}Mt.simplifyDurationRepresentation=Vle;function iL(t){return{...t,day:t.day||1,hours:t.hours||0,month:t.month||1,year:t.year||0,seconds:t.seconds||0,minutes:t.minutes||0}}Mt.defaultedDateTimeRepresentation=iL;function Hle({date:t,timeZone:e}){return{year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hours:t.getHours(),minutes:t.getMinutes(),seconds:t.getSeconds(),zoneHours:e.zoneHours,zoneMinutes:e.zoneMinutes}}Mt.toDateTimeRepresentation=Hle;function kle(t){return{year:t.year!==void 0?-1*t.year:void 0,month:t.month!==void 0?-1*t.month:void 0,day:t.day!==void 0?-1*t.day:void 0,hours:t.hours!==void 0?-1*t.hours:void 0,minutes:t.minutes!==void 0?-1*t.minutes:void 0,seconds:t.seconds!==void 0?-1*t.seconds:void 0}}Mt.negateDuration=kle;function aL(t){const e=new Date(t.year,t.month-1,t.day,t.hours,t.minutes,Math.trunc(t.seconds),t.seconds%1*1e3);return 0<=t.year&&t.year<100&&e.setFullYear(e.getFullYear()-1900),e}Mt.toJSDate=aL;function Qle(t,e){const r=aL(iL(t)),n=r.getTimezoneOffset(),a=t.zoneHours===void 0?e.zoneHours:t.zoneHours,s=t.zoneMinutes===void 0?e.zoneMinutes:t.zoneMinutes;return new Date(r.getTime()-(n+a*60+s)*60*1e3)}Mt.toUTCDate=Qle;function Gle(t){return{year:t.year,month:t.month}}Mt.trimToYearMonthDuration=Gle;function zle(t){return{day:t.day,hours:t.hours,minutes:t.minutes,seconds:t.seconds}}Mt.trimToDayTimeDuration=zle;function Wle(t){return t.year*12+t.month}Mt.yearMonthDurationsToMonths=Wle;function Xle(t){return((t.day*24+t.hours)*60+t.minutes)*60+t.seconds}Mt.dayTimeDurationsToSeconds=Xle;function Kle(t){return/(Z|([+-]\d\d:\d\d))?$/u.exec(t)[0]}Mt.extractRawTimeZone=Kle;function Jle(t){return{zoneHours:t.getTimezoneOffset()/60,zoneMinutes:t.getTimezoneOffset()%60}}Mt.extractTimeZone=Jle;var ko={};Object.defineProperty(ko,"__esModule",{value:!0});ko.elapsedDuration=ko.addDurationToDateTime=ko.maximumDayInMonthFor=void 0;const A4=Mt;function Lo(t,e,r=0){const n=t-r,a=e-r,s=Math.floor(n/a);return{intDiv:s,remainder:t-s*a}}function wb(t,e){const{intDiv:r,remainder:n}=Lo(e,13,1),a=t+r;return[1,3,5,7,8,10,12].includes(n)?31:[4,6,9,11].includes(n)?30:n===2&&(Lo(a,400).remainder===0||Lo(a,100).remainder!==0&&Lo(a,4).remainder===0)?29:28}ko.maximumDayInMonthFor=wb;function Yle(t,e){const r={...t};let n=Lo(t.month+e.month,13,1);for(r.month=n.remainder,r.year=t.year+e.year+n.intDiv,n=Lo(t.seconds+e.seconds,60),r.seconds=n.remainder,n=Lo(t.minutes+e.minutes+n.intDiv,60),r.minutes=n.remainder,n=Lo(t.hours+e.hours+n.intDiv,24),r.hours=n.remainder,r.day=t.day+e.day+n.intDiv;;){let a;if(r.day<1)r.day+=wb(r.year,r.month-1),a=-1;else if(r.day>wb(r.year,r.month))r.day-=wb(r.year,r.month),a=1;else break;n=Lo(r.month+a,13,1),r.month=n.remainder,r.year+=n.intDiv}return r}ko.addDurationToDateTime=Yle;function Zle(t,e,r){const n=(0,A4.toUTCDate)(t,r),a=(0,A4.toUTCDate)(e,r),s=n.getTime()-a.getTime();return{day:Math.floor(s/(1e3*60*60*24)),hours:Math.floor(s%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(s%(1e3*60*60)/(1e3*60)),seconds:s%(1e3*60)}}ko.elapsedDuration=Zle;Object.defineProperty(Xr,"__esModule",{value:!0});Xr.parseDayTimeDuration=Xr.parseYearMonthDuration=Xr.parseDuration=Xr.parseTime=Xr.parseDate=Xr.parseDateTime=Xr.parseXSDInteger=Xr.parseXSDDecimal=Xr.parseXSDFloat=void 0;const ede=Mt,Qo=Ze,tde=ko;function rde(t){const e=Number(t);return Number.isNaN(e)?t==="NaN"?Number.NaN:t==="INF"||t==="+INF"?Number.POSITIVE_INFINITY:t==="-INF"?Number.NEGATIVE_INFINITY:void 0:e}Xr.parseXSDFloat=rde;function nde(t){const e=Number(t);return Number.isNaN(e)?void 0:e}Xr.parseXSDDecimal=nde;function ide(t){const e=Number.parseInt(t,10);return Number.isNaN(e)?void 0:e}Xr.parseXSDInteger=ide;function ade(t){const[e,r]=t.split("T");return{...oL(e),...uL(r)}}Xr.parseDateTime=ade;function sL(t){if(t==="")return{zoneHours:void 0,zoneMinutes:void 0};if(t==="Z")return{zoneHours:0,zoneMinutes:0};const r=t.replace(/^([+|-])(\d\d):(\d\d)$/gu,"$11!$2!$3").split("!").map(n=>Number(n));return{zoneHours:r[0]*r[1],zoneMinutes:r[0]*r[2]}}function oL(t){const e=t.replace(/^(-)?([123456789]*\d{4})-(\d\d)-(\d\d)(Z|([+-]\d\d:\d\d))?$/gu,"$11!$2!$3!$4!$5");if(e===t)throw new Qo.ParseError(t,"date");const r=e.split("!"),n=r.slice(0,-1).map(s=>Number(s)),a={year:n[0]*n[1],month:n[2],day:n[3],...sL(r[4])};if(!(1<=a.month&&a.month<=12)||!(1<=a.day&&a.day<=(0,tde.maximumDayInMonthFor)(a.year,a.month)))throw new Qo.ParseError(t,"date");return a}Xr.parseDate=oL;function uL(t){const e=t.replace(/^(\d\d):(\d\d):(\d\d(\.\d+)?)(Z|([+-]\d\d:\d\d))?$/gu,"$1!$2!$3!$5");if(e===t)throw new Qo.ParseError(t,"time");const r=e.split("!"),n=r.slice(0,-1).map(s=>Number(s)),a={hours:n[0],minutes:n[1],seconds:n[2],...sL(r[3])};if(a.seconds>=60||a.minutes>=60||a.hours>24||a.hours===24&&(a.minutes!==0||a.seconds!==0))throw new Qo.ParseError(t,"time");return a}function sde(t){const e=uL(t);return e.hours%=24,e}Xr.parseTime=sde;function cR(t){const[e,r]=t.split("T"),n=e.replace(/^(-)?P(\d+Y)?(\d+M)?(\d+D)?$/gu,"$11S!$2!$3!$4");if(n===e)throw new Qo.ParseError(t,"duration");const a=n.split("!");if(r!==void 0){const u=r.replace(/^(\d+H)?(\d+M)?(\d+(\.\d+)?S)?$/gu,"$1!$2!$3");if(r===""||r===u)throw new Qo.ParseError(t,"duration");a.push(...u.split("!"))}const s=a.map(u=>u.slice(0,-1));if(!s.slice(1).some(u=>u))throw new Qo.ParseError(t,"duration");const o=Number(s[0]);return(0,ede.simplifyDurationRepresentation)({year:s[1]?o*Number(s[1]):void 0,month:s[2]?o*Number(s[2]):void 0,day:s[3]?o*Number(s[3]):void 0,hours:s[4]?o*Number(s[4]):void 0,minutes:s[5]?o*Number(s[5]):void 0,seconds:s[6]?o*Number(s[6]):void 0})}Xr.parseDuration=cR;function ode(t){const e=cR(t);if(["hours","minutes","seconds","day"].some(r=>!!e[r]))throw new Qo.ParseError(t,"yearMonthDuration");return e}Xr.parseYearMonthDuration=ode;function ude(t){const e=cR(t);if(["year","month"].some(r=>!!e[r]))throw new Qo.ParseError(t,"dayTimeDuration");return e}Xr.parseDayTimeDuration=ude;var $T={},Or={},mh={},x4;function cL(){if(x4)return mh;x4=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.OverloadTree=void 0;const t=ha(),e=v2();let r=class DO{constructor(a,s){this.identifier=a,this.implementation=void 0,this.generalOverloads=Object.create(null),this.literalOverLoads=[],this.depth=s||0,this.promotionCount=void 0}getSubtree(a){const s=(0,e.asGeneralType)(a);if(s)return this.generalOverloads[s];for(const[o,u]of this.literalOverLoads)if(a===o)return u}getImplementationExact(a){let s=this;for(const o of a)if(s=s.getSubtree(o),!s)return;return s.implementation}search(a,s,o){let u=o[this.identifier],c=0;for(;c({node:h,index:d+1})));l.length>0;){const{index:h,node:f}=l.pop();if(h===a.length&&f.implementation)return this.addToCache(o,a,f.implementation),f.implementation;l.push(...f.getSubTreeWithArg(a[h],s).map(p=>({node:p,index:h+1})))}}addToCache(a,s,o){function u(l,d){return d in l||(l[d]={}),l[d]}let c=u(a,this.identifier);for(const l of s){const d=(0,t.isLiteralTermExpression)(l),h=d?d.dataType:l.termType;c.cache=c.cache||{},c=u(c.cache,h)}c.func=o}addOverload(a,s){this._addOverload([...a],s,0)}_addOverload(a,s,o){var d;const[u,...c]=a;if(!u){(this.promotionCount===void 0||o<=this.promotionCount)&&(this.promotionCount=o,this.implementation=s);return}let l=this.getSubtree(u);if(!l){const h=new DO(this.identifier,this.depth+1),f=(0,e.asGeneralType)(u);f&&(this.generalOverloads[f]=h);const p=(0,e.asOverrideType)(u);p&&this.literalOverLoads.push([p,h]),l=h}l._addOverload(c,s,o),(d=e.typePromotion[u])==null||d.forEach(h=>this.addPromotedOverload(h.typeToPromote,s,h.conversionFunction,c,o))}addPromotedOverload(a,s,o,u,c){let l=this.getSubtree(a);if(!l){const d=new DO(this.identifier,this.depth+1);this.literalOverLoads.push([a,d]),l=d}l._addOverload(u,d=>h=>s(d)([...h.slice(0,this.depth),o(h[this.depth]),...h.slice(this.depth+1,h.length)]),c+1)}getSubTreeWithArg(a,s){const o=[],u=(0,t.isLiteralTermExpression)(a);if(this.generalOverloads.term&&o.push(this.generalOverloads.term),this.generalOverloads[a.termType]&&o.push(this.generalOverloads[a.termType]),u){const c=(0,e.asKnownLiteralType)(u.dataType);let l;c?l=e.superTypeDictTable[c]:l=(0,e.getSuperTypes)(u.dataType,s);const d=this.literalOverLoads.filter(([h,f])=>h in l).map(([h,f])=>[l[h],f]);d.sort(([h,f],[p,b])=>h-p),o.push(...d.map(([h,f])=>f))}return o}};return mh.OverloadTree=r,mh}var R4;function co(){if(R4)return Or;R4=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.expressionToVar=Or.dateTime=Or.langString=Or.string=Or.double=Or.float=Or.decimal=Or.integer=Or.bool=Or.Builder=Or.declare=void 0;const t=yt,e=ha(),r=ha(),n=li,a=li,s=Ze,o=cL(),u=new t.DataFactory;function c(O){return new l(O)}Or.declare=c;class l{constructor(T){this.overloadTree=new o.OverloadTree(T),this.collected=!1}collect(){if(this.collected)throw new Error("Builders can only be collected once!");return this.collected=!0,this.overloadTree}static wrapInvalidLexicalProtected(T){return x=>P=>(P.forEach((B,Q)=>{if(B instanceof r.NonLexicalLiteral)throw new s.InvalidLexicalForm(P[Q].toRDF())}),T(x)(P))}set(T,x,P=!0){return this.overloadTree.addOverload(T,P?l.wrapInvalidLexicalProtected(x):x),this}copy({from:T,to:x}){const P=this.overloadTree.getImplementationExact(T);if(!P)throw new s.UnexpectedError("Tried to copy implementation, but types not found",{from:T,to:x});return this.set(x,P)}onUnary(T,x,P=!0){return this.set([T],B=>([Q])=>x(B)(Q),P)}onUnaryTyped(T,x,P=!0){return this.set([T],B=>([Q])=>x(B)(Q.typedValue),P)}onBinary(T,x,P=!0){return this.set(T,B=>([Q,N])=>x(B)(Q,N),P)}onBinaryTyped(T,x,P=!0){return this.set(T,B=>([Q,N])=>x(B)(Q.typedValue,N.typedValue),P)}onTernaryTyped(T,x,P=!0){return this.set(T,B=>([Q,N,D])=>x(B)(Q.typedValue,N.typedValue,D.typedValue),P)}onTernary(T,x,P=!0){return this.set(T,B=>([Q,N,D])=>x(B)(Q,N,D),P)}onQuaternaryTyped(T,x,P=!0){return this.set(T,B=>([Q,N,D,F])=>x(B)(Q.typedValue,N.typedValue,D.typedValue,F.typedValue),P)}onTerm1(T,x=!1){return this.set(["term"],P=>([B])=>T(P)(B),x)}onTerm3(T){return this.set(["term","term","term"],x=>([P,B,Q])=>T(x)(P,B,Q))}onQuad1(T){return this.set(["quad"],x=>([P])=>T(x)(P))}onLiteral1(T,x=!0){return this.set(["literal"],P=>([B])=>T(P)(B),x)}onBoolean1(T,x=!0){return this.set([n.TypeURL.XSD_BOOLEAN],P=>([B])=>T(P)(B),x)}onBoolean1Typed(T,x=!0){return this.set([n.TypeURL.XSD_BOOLEAN],P=>([B])=>T(P)(B.typedValue),x)}onString1(T,x=!0){return this.set([n.TypeURL.XSD_STRING],P=>([B])=>T(P)(B),x)}onString1Typed(T,x=!0){return this.set([n.TypeURL.XSD_STRING],P=>([B])=>T(P)(B.typedValue),x)}onLangString1(T,x=!0){return this.set([n.TypeURL.RDF_LANG_STRING],P=>([B])=>T(P)(B),x)}onStringly1(T,x=!0){return this.set([n.TypeAlias.SPARQL_STRINGLY],P=>([B])=>T(P)(B),x)}onStringly1Typed(T,x=!0){return this.set([n.TypeAlias.SPARQL_STRINGLY],P=>([B])=>T(P)(B.typedValue),x)}onNumeric1(T,x=!0){return this.set([n.TypeAlias.SPARQL_NUMERIC],P=>([B])=>T(P)(B),x)}onDateTime1(T,x=!0){return this.set([n.TypeURL.XSD_DATE_TIME],P=>([B])=>T(P)(B),x)}numericConverter(T,x=!0){const P=B=>Q=>T(B)(Q.typedValue);return this.onBinary([a.TypeURL.XSD_INTEGER],B=>Q=>h(P(B)(Q)),x).onBinary([a.TypeURL.XSD_DECIMAL],B=>Q=>f(P(B)(Q)),x).onBinary([a.TypeURL.XSD_FLOAT],B=>Q=>p(P(B)(Q)),x).onBinary([a.TypeURL.XSD_DOUBLE],B=>Q=>b(P(B)(Q)),x)}arithmetic(T,x=!0){const P=B=>(Q,N)=>T(B)(Q.typedValue,N.typedValue);return this.onBinary([a.TypeURL.XSD_INTEGER,a.TypeURL.XSD_INTEGER],B=>(Q,N)=>h(P(B)(Q,N)),x).onBinary([a.TypeURL.XSD_DECIMAL,a.TypeURL.XSD_DECIMAL],B=>(Q,N)=>f(P(B)(Q,N)),x).onBinary([a.TypeURL.XSD_FLOAT,a.TypeURL.XSD_FLOAT],B=>(Q,N)=>p(P(B)(Q,N)),x).onBinary([a.TypeURL.XSD_DOUBLE,a.TypeURL.XSD_DOUBLE],B=>(Q,N)=>b(P(B)(Q,N)),x)}numberTest(T){return this.numeric(x=>([P,B])=>{const Q=T(x)(P.typedValue,B.typedValue);return d(Q)})}stringTest(T,x=!0){return this.set([n.TypeURL.XSD_STRING,n.TypeURL.XSD_STRING],P=>([B,Q])=>{const N=T(P)(B.typedValue,Q.typedValue);return d(N)},x)}booleanTest(T,x=!0){return this.set([n.TypeURL.XSD_BOOLEAN,n.TypeURL.XSD_BOOLEAN],P=>([B,Q])=>{const N=T(P)(B.typedValue,Q.typedValue);return d(N)},x)}dateTimeTest(T,x=!0){return this.set([n.TypeURL.XSD_DATE_TIME,n.TypeURL.XSD_DATE_TIME],P=>([B,Q])=>{const N=T(P)(B.typedValue,Q.typedValue);return d(N)},x)}numeric(T){return this.set([n.TypeAlias.SPARQL_NUMERIC,n.TypeAlias.SPARQL_NUMERIC],T)}}Or.Builder=l;function d(O){return new e.BooleanLiteral(O)}Or.bool=d;function h(O){return new e.IntegerLiteral(O)}Or.integer=h;function f(O){return new e.DecimalLiteral(O)}Or.decimal=f;function p(O){return new e.FloatLiteral(O)}Or.float=p;function b(O){return new e.DoubleLiteral(O)}Or.double=b;function y(O){return new e.StringLiteral(O)}Or.string=y;function S(O,T){return new e.LangStringLiteral(O,T)}Or.langString=S;function w(O,T){return new e.DateTimeLiteral(O,T)}Or.dateTime=w;function I(O){return u.variable(O.name.slice(1))}return Or.expressionToVar=I,Or}var I4;function v2(){return I4||(I4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.typePromotion=t.isSubTypeOf=t.getSuperTypeDict=t.isInternalSubType=t.asGeneralType=t.asOverrideType=t.asKnownLiteralType=t.asTypeAlias=t.typeAliasCheck=t.extensionTableInit=t.getSuperTypes=t.superTypeDictTable=t.extensionTableInput=void 0;const e=ha(),r=co(),n=li;t.extensionTableInput={[n.TypeURL.XSD_DATE_TIME_STAMP]:n.TypeURL.XSD_DATE_TIME,[n.TypeURL.XSD_DAY_TIME_DURATION]:n.TypeURL.XSD_DURATION,[n.TypeURL.XSD_YEAR_MONTH_DURATION]:n.TypeURL.XSD_DURATION,[n.TypeURL.RDF_LANG_STRING]:n.TypeAlias.SPARQL_STRINGLY,[n.TypeURL.XSD_STRING]:n.TypeAlias.SPARQL_STRINGLY,[n.TypeURL.XSD_NORMALIZED_STRING]:n.TypeURL.XSD_STRING,[n.TypeURL.XSD_TOKEN]:n.TypeURL.XSD_NORMALIZED_STRING,[n.TypeURL.XSD_LANGUAGE]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NM_TOKEN]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NAME]:n.TypeURL.XSD_TOKEN,[n.TypeURL.XSD_NC_NAME]:n.TypeURL.XSD_NAME,[n.TypeURL.XSD_ENTITY]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_ID]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_ID_REF]:n.TypeURL.XSD_NC_NAME,[n.TypeURL.XSD_DOUBLE]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_FLOAT]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_DECIMAL]:n.TypeAlias.SPARQL_NUMERIC,[n.TypeURL.XSD_INTEGER]:n.TypeURL.XSD_DECIMAL,[n.TypeURL.XSD_NON_POSITIVE_INTEGER]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_NEGATIVE_INTEGER]:n.TypeURL.XSD_NON_POSITIVE_INTEGER,[n.TypeURL.XSD_LONG]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_INT]:n.TypeURL.XSD_LONG,[n.TypeURL.XSD_SHORT]:n.TypeURL.XSD_INT,[n.TypeURL.XSD_BYTE]:n.TypeURL.XSD_SHORT,[n.TypeURL.XSD_NON_NEGATIVE_INTEGER]:n.TypeURL.XSD_INTEGER,[n.TypeURL.XSD_POSITIVE_INTEGER]:n.TypeURL.XSD_NON_NEGATIVE_INTEGER,[n.TypeURL.XSD_UNSIGNED_LONG]:n.TypeURL.XSD_NON_NEGATIVE_INTEGER,[n.TypeURL.XSD_UNSIGNED_INT]:n.TypeURL.XSD_UNSIGNED_LONG,[n.TypeURL.XSD_UNSIGNED_SHORT]:n.TypeURL.XSD_UNSIGNED_INT,[n.TypeURL.XSD_UNSIGNED_BYTE]:n.TypeURL.XSD_UNSIGNED_SHORT,[n.TypeURL.XSD_DATE_TIME]:"term",[n.TypeURL.XSD_BOOLEAN]:"term",[n.TypeURL.XSD_DATE]:"term",[n.TypeURL.XSD_G_MONTH]:"term",[n.TypeURL.XSD_G_MONTHDAY]:"term",[n.TypeURL.XSD_G_YEAR]:"term",[n.TypeURL.XSD_G_YEAR_MONTH]:"term",[n.TypeURL.XSD_TIME]:"term",[n.TypeURL.XSD_G_DAY]:"term",[n.TypeURL.XSD_DURATION]:"term",[n.TypeAlias.SPARQL_NUMERIC]:"term",[n.TypeAlias.SPARQL_STRINGLY]:"term",[n.TypeURL.XSD_ANY_URI]:"term"},t.superTypeDictTable=Object.create(null);function a(y,S){const w=S.cache.get(y);if(w)return w;const I=S.discoverer(y);if(I==="term"){const x=Object.create(null);return x.__depth=0,x[y]=0,S.cache.set(y,x),x}let O;const T=l(I);return T?O={...t.superTypeDictTable[T]}:O={...a(I,S)},O.__depth++,O[y]=O.__depth,S.cache.set(y,O),O}t.getSuperTypes=a;function s(){for(const[y,S]of Object.entries(t.extensionTableInput)){const w=y;t.superTypeDictTable[w]||o(w,S,t.superTypeDictTable)}}t.extensionTableInit=s,s();function o(y,S,w){if(S==="term"||S===void 0){const I=Object.create(null);I.__depth=0,I[y]=0,w[y]=I;return}w[S]||o(S,t.extensionTableInput[S],w),w[y]={...w[S],[y]:w[S].__depth+1,__depth:w[S].__depth+1}}t.typeAliasCheck=Object.create(null);function u(){for(const y of Object.values(n.TypeAlias))t.typeAliasCheck[y]=!0}u();function c(y){if(y in t.typeAliasCheck)return y}t.asTypeAlias=c;function l(y){if(y in t.superTypeDictTable)return y}t.asKnownLiteralType=l;function d(y){if(l(y)||y==="term")return y}t.asOverrideType=d;function h(y){if(y==="term"||(0,e.asTermType)(y))return y}t.asGeneralType=h;function f(y,S){return y!=="term"&&t.superTypeDictTable[y]&&t.superTypeDictTable[y][S]!==void 0}t.isInternalSubType=f;function p(y,S){const w=l(y);return w?t.superTypeDictTable[w]:a(y,S)}t.getSuperTypeDict=p;function b(y,S,w){return y==="term"?!1:p(y,w)[S]!==void 0}t.isSubTypeOf=b,t.typePromotion={[n.TypeURL.XSD_STRING]:[{typeToPromote:n.TypeURL.XSD_ANY_URI,conversionFunction:y=>(0,r.string)(y.str())}],[n.TypeURL.XSD_DOUBLE]:[{typeToPromote:n.TypeURL.XSD_FLOAT,conversionFunction:y=>(0,r.double)(y.typedValue)},{typeToPromote:n.TypeURL.XSD_DECIMAL,conversionFunction:y=>(0,r.double)(y.typedValue)}],[n.TypeURL.XSD_FLOAT]:[{typeToPromote:n.TypeURL.XSD_DECIMAL,conversionFunction:y=>(0,r.float)(y.typedValue)}]}}($T)),$T}var P4;function Cl(){if(P4)return bh;P4=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.TermTransformer=void 0;const t=sr,e=Tt,r=ha(),n=li,a=Ze,s=Ze,o=Xr,u=Xr,c=v2();let l=class{constructor(h){this.superTypeProvider=h}transformRDFTermUnsafe(h){return this.transformTerm({term:h,type:e.Algebra.types.EXPRESSION,expressionType:e.Algebra.expressionTypes.TERM})}transformTerm(h){if(!h.term)throw new a.InvalidExpression(h);switch(h.term.termType){case"Variable":return new r.Variable(t.termToString(h.term));case"Literal":return this.transformLiteral(h.term);case"NamedNode":return new r.NamedNode(h.term.value);case"BlankNode":return new r.BlankNode(h.term.value);case"Quad":return new r.Quad(h.term,this.superTypeProvider);default:throw new a.InvalidTermType(h)}}transformLiteral(h){if(!h.datatype||[null,void 0,""].includes(h.datatype.value))return h.language?new r.LangStringLiteral(h.value,h.language):new r.StringLiteral(h.value);const f=h.datatype.value,p=(0,c.getSuperTypeDict)(f,this.superTypeProvider);try{if(n.TypeURL.XSD_STRING in p)return new r.StringLiteral(h.value,f);if(n.TypeURL.RDF_LANG_STRING in p)return new r.LangStringLiteral(h.value,h.language);if(n.TypeURL.XSD_YEAR_MONTH_DURATION in p)return new r.YearMonthDurationLiteral((0,o.parseYearMonthDuration)(h.value),h.value,f);if(n.TypeURL.XSD_DAY_TIME_DURATION in p)return new r.DayTimeDurationLiteral((0,o.parseDayTimeDuration)(h.value),h.value,f);if(n.TypeURL.XSD_DURATION in p)return new r.DurationLiteral((0,o.parseDuration)(h.value),h.value,f);if(n.TypeURL.XSD_DATE_TIME in p){const S=new Date(h.value);return Number.isNaN(S.getTime())?new r.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):new r.DateTimeLiteral((0,o.parseDateTime)(h.value),h.value,f)}if(n.TypeURL.XSD_DATE in p)return new r.DateLiteral((0,o.parseDate)(h.value),h.value,f);if(n.TypeURL.XSD_TIME in p)return new r.TimeLiteral((0,o.parseTime)(h.value),h.value,f);if(n.TypeURL.XSD_BOOLEAN in p)return h.value!=="true"&&h.value!=="false"&&h.value!=="1"&&h.value!=="0"?new r.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):new r.BooleanLiteral(h.value==="true"||h.value==="1",h.value);if(n.TypeURL.XSD_DECIMAL in p){const S=u.parseXSDDecimal(h.value);return S===void 0?new r.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):n.TypeURL.XSD_INTEGER in p?new r.IntegerLiteral(S,f,h.value):new r.DecimalLiteral(S,f,h.value)}const b=n.TypeURL.XSD_FLOAT in p,y=n.TypeURL.XSD_DOUBLE in p;if(b||y){const S=u.parseXSDFloat(h.value);return S===void 0?new r.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):b?new r.FloatLiteral(S,f,h.value):new r.DoubleLiteral(S,f,h.value)}return new r.Literal(h.value,f,h.value)}catch(b){if(b instanceof Error&&(0,s.isExpressionError)(b))return new r.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value);throw b}}};return bh.TermTransformer=l,bh}var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.serializeDuration=Us.serializeTime=Us.serializeDate=Us.serializeDateTime=void 0;function Go(t,e=2){return t.toLocaleString(void 0,{minimumIntegerDigits:e,useGrouping:!1})}function cde(t){return`${dL({year:t.year,month:t.month,day:t.day})}T${fL(t)}`}Us.serializeDateTime=cde;function lL(t){return t.zoneHours===void 0||t.zoneMinutes===void 0?"":t.zoneHours===0&&t.zoneMinutes===0?"Z":`${t.zoneHours>=0?`+${Go(t.zoneHours)}`:Go(t.zoneHours)}:${Go(Math.abs(t.zoneMinutes))}`}function dL(t){return`${Go(t.year,4)}-${Go(t.month)}-${Go(t.day)}${lL(t)}`}Us.serializeDate=dL;function fL(t){return`${Go(t.hours)}:${Go(t.minutes)}:${Go(t.seconds)}${lL(t)}`}Us.serializeTime=fL;function lde(t,e="PT0S"){if(!Object.values(t).some(d=>(d||0)!==0))return e;const r=Object.values(t).some(d=>(d||0)<0)?"-":"",n=t.year?`${Math.abs(t.year)}Y`:"",a=t.month?`${Math.abs(t.month)}M`:"",s=t.day?`${Math.abs(t.day)}D`:"",o=`${r}P${n}${a}${s}`;if(!(t.hours||t.minutes||t.seconds))return o;const u=t.hours?`${Math.abs(t.hours)}H`:"",c=t.minutes?`${Math.abs(t.minutes)}M`:"",l=t.seconds?`${Math.abs(t.seconds)}S`:"";return`${o}T${u}${c}${l}`}Us.serializeDuration=lde;var D4;function dde(){if(D4)return bt;D4=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.isNonLexicalLiteral=bt.NonLexicalLiteral=bt.YearMonthDurationLiteral=bt.DayTimeDurationLiteral=bt.DurationLiteral=bt.DateLiteral=bt.TimeLiteral=bt.DateTimeLiteral=bt.StringLiteral=bt.LangStringLiteral=bt.BooleanLiteral=bt.DoubleLiteral=bt.FloatLiteral=bt.DecimalLiteral=bt.IntegerLiteral=bt.NumericLiteral=bt.Literal=bt.isLiteralTermExpression=bt.Quad=bt.BlankNode=bt.NamedNode=bt.Term=void 0;const t=yt,e=Cl(),r=li,n=li,a=Ze,s=Us,o=v2(),u=Ni,c=new t.DataFactory;let l=class{constructor(){this.expressionType=u.ExpressionType.Term}str(){throw new a.InvalidArgumentTypes([this],r.RegularOperator.STR)}coerceEBV(){throw new a.EBVCoercionError(this)}};bt.Term=l;class d extends l{constructor(V){super(),this.value=V,this.termType="namedNode"}toRDF(){return c.namedNode(this.value)}str(){return this.value}}bt.NamedNode=d;class h extends l{constructor(V){super(),this.termType="blankNode",this.value=typeof V=="string"?c.blankNode(V):V}toRDF(){return this.value}}bt.BlankNode=h;class f extends l{constructor(V,ie){super(),this.termType="quad",this.transformer=new e.TermTransformer(ie),this.valueTerm=V}toRDF(){return this.valueTerm}get subject(){return this.transformer.transformRDFTermUnsafe(this.RDFsubject)}get predicate(){return this.transformer.transformRDFTermUnsafe(this.RDFpredicate)}get object(){return this.transformer.transformRDFTermUnsafe(this.RDFobject)}get RDFsubject(){return this.toRDF().subject}get RDFpredicate(){return this.toRDF().predicate}get RDFobject(){return this.toRDF().object}}bt.Quad=f;function p(C){if(C.termType==="literal")return C}bt.isLiteralTermExpression=p;class b extends l{constructor(V,ie,ne,fe){super(),this.typedValue=V,this.dataType=ie,this.strValue=ne,this.language=fe,this.termType="literal"}toRDF(){return c.literal(this.strValue||this.str(),this.language||c.namedNode(this.dataType))}str(){return this.strValue||this.typedValue.toString()}}bt.Literal=b;class y extends b{constructor(V,ie,ne,fe){super(V,ie,ne,fe),this.typedValue=V,this.strValue=ne,this.language=fe}coerceEBV(){return!!this.typedValue}toRDF(){const V=super.toRDF();return Number.isFinite(this.typedValue)||(V.value=V.value.replace("Infinity","INF")),V}str(){return this.strValue||this.specificFormatter(this.typedValue)}}bt.NumericLiteral=y;class S extends y{constructor(V,ie,ne,fe){super(V,ie||n.TypeURL.XSD_INTEGER,ne,fe),this.typedValue=V,this.strValue=ne,this.language=fe}specificFormatter(V){return V.toFixed(0)}}bt.IntegerLiteral=S;class w extends y{constructor(V,ie,ne,fe){super(V,ie||n.TypeURL.XSD_DECIMAL,ne,fe),this.typedValue=V,this.strValue=ne,this.language=fe}specificFormatter(V){return V.toString()}}bt.DecimalLiteral=w;class I extends y{constructor(V,ie,ne,fe){super(V,ie||n.TypeURL.XSD_FLOAT,ne,fe),this.typedValue=V,this.strValue=ne,this.language=fe}specificFormatter(V){return V.toString()}}bt.FloatLiteral=I;class O extends y{constructor(V,ie,ne,fe){super(V,ie||n.TypeURL.XSD_DOUBLE,ne,fe),this.typedValue=V,this.strValue=ne,this.language=fe}specificFormatter(V){if(!Number.isFinite(V))return V>0?"INF":V<0?"-INF":"NaN";const ie=V.toExponential(),[ne,fe]=ie.split("e"),_e=fe.replace(/\+/u,"");return`${ne.includes(".")?ne:`${ne}.0`}E${_e}`}}bt.DoubleLiteral=O;class T extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.XSD_BOOLEAN,ie),this.typedValue=V,this.strValue=ie}coerceEBV(){return this.typedValue}}bt.BooleanLiteral=T;class x extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.RDF_LANG_STRING,V,ie),this.typedValue=V,this.language=ie}coerceEBV(){return this.str().length>0}}bt.LangStringLiteral=x;class P extends b{constructor(V,ie){super(V,ie||n.TypeURL.XSD_STRING,V),this.typedValue=V}coerceEBV(){return this.str().length>0}}bt.StringLiteral=P;class B extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.XSD_DATE_TIME,ie),this.typedValue=V,this.strValue=ie}str(){return(0,s.serializeDateTime)(this.typedValue)}}bt.DateTimeLiteral=B;class Q extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.XSD_TIME,ie),this.typedValue=V,this.strValue=ie}str(){return(0,s.serializeTime)(this.typedValue)}}bt.TimeLiteral=Q;class N extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.XSD_DATE,ie),this.typedValue=V,this.strValue=ie}str(){return(0,s.serializeDate)(this.typedValue)}}bt.DateLiteral=N;class D extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.XSD_DURATION,ie),this.typedValue=V,this.strValue=ie}str(){return(0,s.serializeDuration)(this.typedValue)}}bt.DurationLiteral=D;class F extends D{constructor(V,ie,ne){super(V,ie,ne||n.TypeURL.XSD_DAY_TIME_DURATION),this.typedValue=V,this.strValue=ie}}bt.DayTimeDurationLiteral=F;class W extends b{constructor(V,ie,ne){super(V,ne||n.TypeURL.XSD_YEAR_MONTH_DURATION,ie),this.typedValue=V,this.strValue=ie}str(){return(0,s.serializeDuration)(this.typedValue,"P0M")}}bt.YearMonthDurationLiteral=W;class z extends b{constructor(V,ie,ne,fe,_e){super({toString:()=>"undefined"},ie,fe,_e),this.openWorldType=ne}coerceEBV(){if((0,o.isSubTypeOf)(this.dataType,n.TypeURL.XSD_BOOLEAN,this.openWorldType)||(0,o.isSubTypeOf)(this.dataType,n.TypeAlias.SPARQL_NUMERIC,this.openWorldType))return!1;throw new a.EBVCoercionError(this)}toRDF(){return c.literal(this.str(),this.language||c.namedNode(this.dataType))}str(){return this.strValue||""}}bt.NonLexicalLiteral=z;function M(C){if(C instanceof z)return C}return bt.isNonLexicalLiteral=M,bt}var w2={};Object.defineProperty(w2,"__esModule",{value:!0});w2.Operator=void 0;const fde=Ni;class hde{constructor(e,r){this.args=e,this.apply=r,this.expressionType=fde.ExpressionType.Operator}}w2.Operator=hde;var S2={};Object.defineProperty(S2,"__esModule",{value:!0});S2.SpecialOperator=void 0;const pde=Ni;class yde{constructor(e,r,n){this.args=e,this.applyAsync=r,this.applySynchronously=n,this.expressionType=pde.ExpressionType.SpecialOperator}}S2.SpecialOperator=yde;var T2={};Object.defineProperty(T2,"__esModule",{value:!0});T2.Named=void 0;const bde=Ni;class mde{constructor(e,r,n){this.name=e,this.args=r,this.apply=n,this.expressionType=bde.ExpressionType.Named}}T2.Named=mde;var E2={};Object.defineProperty(E2,"__esModule",{value:!0});E2.Aggregate=void 0;const gde=Ni;class _de{constructor(e,r){this.name=e,this.expression=r,this.expressionType=gde.ExpressionType.Aggregate}}E2.Aggregate=_de;var O2={};Object.defineProperty(O2,"__esModule",{value:!0});O2.Existence=void 0;const vde=Ni;class wde{constructor(e){this.expression=e,this.expressionType=vde.ExpressionType.Existence}}O2.Existence=wde;var A2={};Object.defineProperty(A2,"__esModule",{value:!0});A2.AsyncExtension=void 0;const Sde=Ni;class Tde{constructor(e,r,n){this.name=e,this.args=r,this.apply=n,this.expressionType=Sde.ExpressionType.AsyncExtension}}A2.AsyncExtension=Tde;var x2={};Object.defineProperty(x2,"__esModule",{value:!0});x2.SyncExtension=void 0;const Ede=Ni;class Ode{constructor(e,r,n){this.name=e,this.args=r,this.apply=n,this.expressionType=Ede.ExpressionType.SyncExtension}}x2.SyncExtension=Ode;var N4;function ha(){return N4||(N4=1,function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ni,t),r(_2,t),r(dde(),t),r(w2,t),r(S2,t),r(T2,t),r(E2,t),r(O2,t),r(A2,t),r(x2,t)}(BT)),BT}var UT={},Aa={};Object.defineProperty(Aa,"__esModule",{value:!0});Aa.SpecialFunction=Aa.NamedFunction=Aa.RegularFunction=Aa.BaseFunction=void 0;const hL=Ze;class lR{constructor(e,r){this.operator=e,this.apply=(n,a)=>(this.monomorph(n,a.superTypeProvider,a.functionArgumentsCache)||this.handleInvalidTypes(n))(a)(n),this.arity=r.arity,this.overloads=r.overloads}monomorph(e,r,n){return this.overloads.search(e,r,n)}}Aa.BaseFunction=lR;class Ade extends lR{constructor(e,r){super(e,r),this.functionClass="regular"}handleInvalidTypes(e){throw new hL.InvalidArgumentTypes(e,this.operator)}}Aa.RegularFunction=Ade;class xde extends lR{constructor(e,r){super(e,r),this.functionClass="named"}handleInvalidTypes(e){throw new hL.InvalidArgumentTypes(e,this.operator)}}Aa.NamedFunction=xde;class Rde{constructor(e,r){this.operator=e,this.functionClass="special",this.arity=r.arity,this.applySynchronously=r.applySynchronously,this.applyAsync=r.applyAsync,this.checkArity=r.checkArity||Ide(this.arity)}}Aa.SpecialFunction=Rde;function Ide(t){return e=>t===Number.POSITIVE_INFINITY?!0:e.length===t}var R2={};Object.defineProperty(R2,"__esModule",{value:!0});R2.namedDefinitions=void 0;const xa=ha(),Pde=ha(),_t=li,pL=Mt,yl=Ze,Ia=Xr,$t=co(),Dde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_STRING).onNumeric1(()=>t=>(0,$t.string)((0,$t.float)(t.typedValue).str())).onBoolean1Typed(()=>t=>(0,$t.string)((0,$t.bool)(t).str())).onTerm1(()=>t=>(0,$t.string)(t.str())).collect()},Nde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_FLOAT).onNumeric1(()=>t=>(0,$t.float)(t.typedValue)).onBoolean1Typed(()=>t=>(0,$t.float)(t?1:0)).onUnary(_t.TypeURL.XSD_STRING,()=>t=>{const e=(0,Ia.parseXSDFloat)(t.str());if(e===void 0)throw new yl.CastError(t,_t.TypeURL.XSD_FLOAT);return(0,$t.float)(e)},!1).collect()},jde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_DOUBLE).onNumeric1(()=>t=>(0,$t.double)(t.typedValue)).onBoolean1Typed(()=>t=>(0,$t.double)(t?1:0)).onUnary(_t.TypeURL.XSD_STRING,()=>t=>{const e=(0,Ia.parseXSDFloat)(t.str());if(e===void 0)throw new yl.CastError(t,_t.TypeURL.XSD_DOUBLE);return(0,$t.double)(e)},!1).collect()},Cde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_DECIMAL).onNumeric1(()=>t=>{const e=(0,Ia.parseXSDDecimal)(t.str());if(e===void 0)throw new yl.CastError(t,_t.TypeURL.XSD_DECIMAL);return(0,$t.decimal)(e)}).onString1(()=>t=>{const e=t.str(),r=/^([+-])?(\d+(\.\d+)?)$/u.test(e)?(0,Ia.parseXSDDecimal)(e):void 0;if(r===void 0)throw new yl.CastError(t,_t.TypeURL.XSD_DECIMAL);return(0,$t.decimal)(r)},!1).onBoolean1Typed(()=>t=>(0,$t.decimal)(t?1:0)).collect()},Fde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_INTEGER).onBoolean1Typed(()=>t=>(0,$t.integer)(t?1:0)).onNumeric1(()=>t=>{const e=(0,Ia.parseXSDInteger)(t.str());if(e===void 0)throw new yl.CastError(t,_t.TypeURL.XSD_INTEGER);return(0,$t.integer)(e)},!1).onString1(()=>t=>{const e=t.str(),r=/^\d+$/u.test(e)?(0,Ia.parseXSDInteger)(e):void 0;if(r===void 0)throw new yl.CastError(t,_t.TypeURL.XSD_INTEGER);return(0,$t.integer)(r)}).collect()},Mde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_DATE_TIME).onUnary(_t.TypeURL.XSD_DATE_TIME,()=>t=>t).onUnary(_t.TypeURL.XSD_STRING,()=>t=>(0,$t.dateTime)((0,Ia.parseDateTime)(t.str()),t.str()),!1).onUnary(_t.TypeURL.XSD_DATE,()=>t=>new xa.DateTimeLiteral({...t.typedValue,hours:0,minutes:0,seconds:0})).collect()},Lde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_BOOLEAN).onNumeric1(()=>t=>(0,$t.bool)(t.coerceEBV()),!0).onUnary(_t.TypeURL.XSD_BOOLEAN,()=>t=>(0,$t.bool)(t.coerceEBV()),!0).onUnary(_t.TypeURL.XSD_STRING,()=>t=>{switch(t.str()){case"true":return(0,$t.bool)(!0);case"false":return(0,$t.bool)(!1);case"1":return(0,$t.bool)(!0);case"0":return(0,$t.bool)(!1);default:throw new yl.CastError(t,_t.TypeURL.XSD_BOOLEAN)}},!1).collect()},Bde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_TIME).onUnary(_t.TypeURL.XSD_TIME,()=>t=>new xa.TimeLiteral(t.typedValue,t.strValue)).onUnary(_t.TypeURL.XSD_DATE_TIME,()=>t=>new xa.TimeLiteral(t.typedValue)).onStringly1(()=>t=>new xa.TimeLiteral((0,Ia.parseTime)(t.str()))).collect()},$de={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_DATE).onUnary(_t.TypeURL.XSD_DATE,()=>t=>new xa.DateLiteral(t.typedValue,t.strValue)).onUnary(_t.TypeURL.XSD_DATE_TIME,()=>t=>new xa.DateLiteral(t.typedValue)).onStringly1(()=>t=>new xa.DateLiteral((0,Ia.parseDate)(t.str()))).collect()},Ude={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_DURATION).onUnary(_t.TypeURL.XSD_DURATION,()=>t=>new xa.DurationLiteral(t.typedValue,t.strValue)).onStringly1(()=>t=>new Pde.DurationLiteral((0,Ia.parseDuration)(t.str()))).collect()},qde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_DAY_TIME_DURATION).onUnary(_t.TypeURL.XSD_DURATION,()=>t=>new xa.DayTimeDurationLiteral((0,pL.trimToDayTimeDuration)(t.typedValue))).onStringly1(()=>t=>new xa.DayTimeDurationLiteral((0,Ia.parseDayTimeDuration)(t.str()))).collect()},Vde={arity:1,overloads:(0,$t.declare)(_t.TypeURL.XSD_YEAR_MONTH_DURATION).onUnary(_t.TypeURL.XSD_DURATION,()=>t=>new xa.YearMonthDurationLiteral((0,pL.trimToYearMonthDuration)(t.typedValue))).onStringly1(()=>t=>new xa.YearMonthDurationLiteral((0,Ia.parseYearMonthDuration)(t.str()))).collect()};R2.namedDefinitions={[_t.TypeURL.XSD_STRING]:Dde,[_t.TypeURL.XSD_FLOAT]:Nde,[_t.TypeURL.XSD_DOUBLE]:jde,[_t.TypeURL.XSD_DECIMAL]:Cde,[_t.TypeURL.XSD_INTEGER]:Fde,[_t.TypeURL.XSD_DATE_TIME]:Mde,[_t.TypeURL.XSD_DATE]:$de,[_t.TypeURL.XSD_BOOLEAN]:Lde,[_t.TypeURL.XSD_TIME]:Bde,[_t.TypeURL.XSD_DURATION]:Ude,[_t.TypeURL.XSD_DAY_TIME_DURATION]:qde,[_t.TypeURL.XSD_YEAR_MONTH_DURATION]:Vde};var gh={},yL={exports:{}};(function(t){(function(e){var r,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,s=Math.floor,o="[BigNumber Error] ",u=o+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,d=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,p=1e9;function b(P){var B,Q,N,D=ae.prototype={constructor:ae,toString:null,valueOf:null},F=new ae(1),W=20,z=4,M=-7,C=21,V=-1e7,ie=1e7,ne=!1,fe=1,_e=0,we={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Ce="0123456789abcdefghijklmnopqrstuvwxyz",oe=!0;function ae(L,H){var A,m,v,j,q,$,G,Y,J=this;if(!(J instanceof ae))return new ae(L,H);if(H==null){if(L&&L._isBigNumber===!0){J.s=L.s,!L.c||L.e>ie?J.c=J.e=null:L.e=10;q/=10,j++);j>ie?J.c=J.e=null:(J.e=j,J.c=[L]);return}Y=String(L)}else{if(!n.test(Y=String(L)))return N(J,Y,$);J.s=Y.charCodeAt(0)==45?(Y=Y.slice(1),-1):1}(j=Y.indexOf("."))>-1&&(Y=Y.replace(".","")),(q=Y.search(/e/i))>0?(j<0&&(j=q),j+=+Y.slice(q+1),Y=Y.substring(0,q)):j<0&&(j=Y.length)}else{if(I(H,2,Ce.length,"Base"),H==10&&oe)return J=new ae(L),ve(J,W+J.e+1,z);if(Y=String(L),$=typeof L=="number"){if(L*0!=0)return N(J,Y,$,H);if(J.s=1/L<0?(Y=Y.slice(1),-1):1,ae.DEBUG&&Y.replace(/^0\.0*|\./,"").length>15)throw Error(u+L)}else J.s=Y.charCodeAt(0)===45?(Y=Y.slice(1),-1):1;for(A=Ce.slice(0,H),j=q=0,G=Y.length;qj){j=G;continue}}else if(!v&&(Y==Y.toUpperCase()&&(Y=Y.toLowerCase())||Y==Y.toLowerCase()&&(Y=Y.toUpperCase()))){v=!0,q=-1,j=0;continue}return N(J,String(L),$,H)}$=!1,Y=Q(Y,H,10,J.s),(j=Y.indexOf("."))>-1?Y=Y.replace(".",""):j=Y.length}for(q=0;Y.charCodeAt(q)===48;q++);for(G=Y.length;Y.charCodeAt(--G)===48;);if(Y=Y.slice(q,++G)){if(G-=q,$&&ae.DEBUG&&G>15&&(L>d||L!==s(L)))throw Error(u+J.s*L);if((j=j-q-1)>ie)J.c=J.e=null;else if(j=-p&&v<=p&&v===s(v)){if(m[0]===0){if(v===0&&m.length===1)return!0;break e}if(H=(v+1)%l,H<1&&(H+=l),String(m[0]).length==H){for(H=0;H=c||A!==s(A))break e;if(A!==0)return!0}}}else if(m===null&&v===null&&(j===null||j===1||j===-1))return!0;throw Error(o+"Invalid BigNumber: "+L)},ae.maximum=ae.max=function(){return Ie(arguments,-1)},ae.minimum=ae.min=function(){return Ie(arguments,1)},ae.random=function(){var L=9007199254740992,H=Math.random()*L&2097151?function(){return s(Math.random()*L)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(A){var m,v,j,q,$,G=0,Y=[],J=new ae(F);if(A==null?A=W:I(A,0,p),q=a(A/l),ne)if(crypto.getRandomValues){for(m=crypto.getRandomValues(new Uint32Array(q*=2));G>>11),$>=9e15?(v=crypto.getRandomValues(new Uint32Array(2)),m[G]=v[0],m[G+1]=v[1]):(Y.push($%1e14),G+=2);G=q/2}else if(crypto.randomBytes){for(m=crypto.randomBytes(q*=7);G=9e15?crypto.randomBytes(7).copy(m,G):(Y.push($%1e14),G+=7);G=q/7}else throw ne=!1,Error(o+"crypto unavailable");if(!ne)for(;G=10;$/=10,G++);Gv-1&&($[q+1]==null&&($[q+1]=0),$[q+1]+=$[q]/v|0,$[q]%=v)}return $.reverse()}return function(A,m,v,j,q){var $,G,Y,J,re,de,be,Ee,xe=A.indexOf("."),Pe=W,U=z;for(xe>=0&&(J=_e,_e=0,A=A.replace(".",""),Ee=new ae(m),de=Ee.pow(A.length-xe),_e=J,Ee.c=H(x(S(de.c),de.e,"0"),10,v,L),Ee.e=Ee.c.length),be=H(A,m,v,q?($=Ce,L):($=L,Ce)),Y=J=be.length;be[--J]==0;be.pop());if(!be[0])return $.charAt(0);if(xe<0?--Y:(de.c=be,de.e=Y,de.s=j,de=B(de,Ee,Pe,U,v),be=de.c,re=de.r,Y=de.e),G=Y+Pe+1,xe=be[G],J=v/2,re=re||G<0||be[G+1]!=null,re=U<4?(xe!=null||re)&&(U==0||U==(de.s<0?3:2)):xe>J||xe==J&&(U==4||re||U==6&&be[G-1]&1||U==(de.s<0?8:7)),G<1||!be[0])A=re?x($.charAt(1),-Pe,$.charAt(0)):$.charAt(0);else{if(be.length=G,re)for(--v;++be[--G]>v;)be[G]=0,G||(++Y,be=[1].concat(be));for(J=be.length;!be[--J];);for(xe=0,A="";xe<=J;A+=$.charAt(be[xe++]));A=x(A,Y,$.charAt(0))}return A}}(),B=function(){function L(m,v,j){var q,$,G,Y,J=0,re=m.length,de=v%f,be=v/f|0;for(m=m.slice();re--;)G=m[re]%f,Y=m[re]/f|0,q=be*G+Y*de,$=de*G+q%f*f+J,J=($/j|0)+(q/f|0)+be*Y,m[re]=$%j;return J&&(m=[J].concat(m)),m}function H(m,v,j,q){var $,G;if(j!=q)G=j>q?1:-1;else for($=G=0;$v[$]?1:-1;break}return G}function A(m,v,j,q){for(var $=0;j--;)m[j]-=$,$=m[j]1;m.splice(0,1));}return function(m,v,j,q,$){var G,Y,J,re,de,be,Ee,xe,Pe,U,E,R,K,ce,ye,ge,$e,ke=m.s==v.s?1:-1,Xe=m.c,Ke=v.c;if(!Xe||!Xe[0]||!Ke||!Ke[0])return new ae(!m.s||!v.s||(Xe?Ke&&Xe[0]==Ke[0]:!Ke)?NaN:Xe&&Xe[0]==0||!Ke?ke*0:ke/0);for(xe=new ae(ke),Pe=xe.c=[],Y=m.e-v.e,ke=j+Y+1,$||($=c,Y=y(m.e/l)-y(v.e/l),ke=ke/l|0),J=0;Ke[J]==(Xe[J]||0);J++);if(Ke[J]>(Xe[J]||0)&&Y--,ke<0)Pe.push(1),re=!0;else{for(ce=Xe.length,ge=Ke.length,J=0,ke+=2,de=s($/(Ke[0]+1)),de>1&&(Ke=L(Ke,de,$),Xe=L(Xe,de,$),ge=Ke.length,ce=Xe.length),K=ge,U=Xe.slice(0,ge),E=U.length;E=$/2&&ye++;do{if(de=0,G=H(Ke,U,ge,E),G<0){if(R=U[0],ge!=E&&(R=R*$+(U[1]||0)),de=s(R/ye),de>1)for(de>=$&&(de=$-1),be=L(Ke,de,$),Ee=be.length,E=U.length;H(be,U,Ee,E)==1;)de--,A(be,ge=10;ke/=10,J++);ve(xe,j+(xe.e=J+Y*l-1)+1,q,re)}else xe.e=Y,xe.r=+re;return xe}}();function Ae(L,H,A,m){var v,j,q,$,G;if(A==null?A=z:I(A,0,8),!L.c)return L.toString();if(v=L.c[0],q=L.e,H==null)G=S(L.c),G=m==1||m==2&&(q<=M||q>=C)?T(G,q):x(G,q,"0");else if(L=ve(new ae(L),H,A),j=L.e,G=S(L.c),$=G.length,m==1||m==2&&(H<=j||j<=M)){for(;$$){if(--H>0)for(G+=".";H--;G+="0");}else if(H+=j-$,H>0)for(j+1==$&&(G+=".");H--;G+="0");return L.s<0&&v?"-"+G:G}function Ie(L,H){for(var A,m,v=1,j=new ae(L[0]);v=10;v/=10,m++);return(A=m+A*l-1)>ie?L.c=L.e=null:A=10;$/=10,v++);if(j=H-v,j<0)j+=l,q=H,G=re[Y=0],J=s(G/de[v-q-1]%10);else if(Y=a((j+1)/l),Y>=re.length)if(m){for(;re.length<=Y;re.push(0));G=J=0,v=1,j%=l,q=j-l+1}else break e;else{for(G=$=re[Y],v=1;$>=10;$/=10,v++);j%=l,q=j-l+v,J=q<0?0:s(G/de[v-q-1]%10)}if(m=m||H<0||re[Y+1]!=null||(q<0?G:G%de[v-q-1]),m=A<4?(J||m)&&(A==0||A==(L.s<0?3:2)):J>5||J==5&&(A==4||m||A==6&&(j>0?q>0?G/de[v-q]:0:re[Y-1])%10&1||A==(L.s<0?8:7)),H<1||!re[0])return re.length=0,m?(H-=L.e+1,re[0]=de[(l-H%l)%l],L.e=-H||0):re[0]=L.e=0,L;if(j==0?(re.length=Y,$=1,Y--):(re.length=Y+1,$=de[l-j],re[Y]=q>0?s(G/de[v-q]%de[q])*$:0),m)for(;;)if(Y==0){for(j=1,q=re[0];q>=10;q/=10,j++);for(q=re[0]+=$,$=1;q>=10;q/=10,$++);j!=$&&(L.e++,re[0]==c&&(re[0]=1));break}else{if(re[Y]+=$,re[Y]!=c)break;re[Y--]=0,$=1}for(j=re.length;re[--j]===0;re.pop());}L.e>ie?L.c=L.e=null:L.e=C?T(H,A):x(H,A,"0"),L.s<0?"-"+H:H)}return D.absoluteValue=D.abs=function(){var L=new ae(this);return L.s<0&&(L.s=1),L},D.comparedTo=function(L,H){return w(this,new ae(L,H))},D.decimalPlaces=D.dp=function(L,H){var A,m,v,j=this;if(L!=null)return I(L,0,p),H==null?H=z:I(H,0,8),ve(new ae(j),L+j.e+1,H);if(!(A=j.c))return null;if(m=((v=A.length-1)-y(this.e/l))*l,v=A[v])for(;v%10==0;v/=10,m--);return m<0&&(m=0),m},D.dividedBy=D.div=function(L,H){return B(this,new ae(L,H),W,z)},D.dividedToIntegerBy=D.idiv=function(L,H){return B(this,new ae(L,H),0,1)},D.exponentiatedBy=D.pow=function(L,H){var A,m,v,j,q,$,G,Y,J,re=this;if(L=new ae(L),L.c&&!L.isInteger())throw Error(o+"Exponent not an integer: "+me(L));if(H!=null&&(H=new ae(H)),$=L.e>14,!re.c||!re.c[0]||re.c[0]==1&&!re.e&&re.c.length==1||!L.c||!L.c[0])return J=new ae(Math.pow(+me(re),$?L.s*(2-O(L)):+me(L))),H?J.mod(H):J;if(G=L.s<0,H){if(H.c?!H.c[0]:!H.s)return new ae(NaN);m=!G&&re.isInteger()&&H.isInteger(),m&&(re=re.mod(H))}else{if(L.e>9&&(re.e>0||re.e<-1||(re.e==0?re.c[0]>1||$&&re.c[1]>=24e7:re.c[0]<8e13||$&&re.c[0]<=9999975e7)))return j=re.s<0&&O(L)?-0:0,re.e>-1&&(j=1/j),new ae(G?1/j:j);_e&&(j=a(_e/l+2))}for($?(A=new ae(.5),G&&(L.s=1),Y=O(L)):(v=Math.abs(+me(L)),Y=v%2),J=new ae(F);;){if(Y){if(J=J.times(re),!J.c)break;j?J.c.length>j&&(J.c.length=j):m&&(J=J.mod(H))}if(v){if(v=s(v/2),v===0)break;Y=v%2}else if(L=L.times(A),ve(L,L.e+1,1),L.e>14)Y=O(L);else{if(v=+me(L),v===0)break;Y=v%2}re=re.times(re),j?re.c&&re.c.length>j&&(re.c.length=j):m&&(re=re.mod(H))}return m?J:(G&&(J=F.div(J)),H?J.mod(H):j?ve(J,_e,z,q):J)},D.integerValue=function(L){var H=new ae(this);return L==null?L=z:I(L,0,8),ve(H,H.e+1,L)},D.isEqualTo=D.eq=function(L,H){return w(this,new ae(L,H))===0},D.isFinite=function(){return!!this.c},D.isGreaterThan=D.gt=function(L,H){return w(this,new ae(L,H))>0},D.isGreaterThanOrEqualTo=D.gte=function(L,H){return(H=w(this,new ae(L,H)))===1||H===0},D.isInteger=function(){return!!this.c&&y(this.e/l)>this.c.length-2},D.isLessThan=D.lt=function(L,H){return w(this,new ae(L,H))<0},D.isLessThanOrEqualTo=D.lte=function(L,H){return(H=w(this,new ae(L,H)))===-1||H===0},D.isNaN=function(){return!this.s},D.isNegative=function(){return this.s<0},D.isPositive=function(){return this.s>0},D.isZero=function(){return!!this.c&&this.c[0]==0},D.minus=function(L,H){var A,m,v,j,q=this,$=q.s;if(L=new ae(L,H),H=L.s,!$||!H)return new ae(NaN);if($!=H)return L.s=-H,q.plus(L);var G=q.e/l,Y=L.e/l,J=q.c,re=L.c;if(!G||!Y){if(!J||!re)return J?(L.s=-H,L):new ae(re?q:NaN);if(!J[0]||!re[0])return re[0]?(L.s=-H,L):new ae(J[0]?q:z==3?-0:0)}if(G=y(G),Y=y(Y),J=J.slice(),$=G-Y){for((j=$<0)?($=-$,v=J):(Y=G,v=re),v.reverse(),H=$;H--;v.push(0));v.reverse()}else for(m=(j=($=J.length)<(H=re.length))?$:H,$=H=0;H0)for(;H--;J[A++]=0);for(H=c-1;m>$;){if(J[--m]=0;){for(A=0,de=R[v]%Pe,be=R[v]/Pe|0,q=G,j=v+q;j>v;)Y=E[--q]%Pe,J=E[q]/Pe|0,$=be*Y+J*de,Y=de*Y+$%Pe*Pe+Ee[j]+A,A=(Y/xe|0)+($/Pe|0)+be*J,Ee[j--]=Y%xe;Ee[j]=A}return A?++m:Ee.splice(0,1),he(L,Ee,m)},D.negated=function(){var L=new ae(this);return L.s=-L.s||null,L},D.plus=function(L,H){var A,m=this,v=m.s;if(L=new ae(L,H),H=L.s,!v||!H)return new ae(NaN);if(v!=H)return L.s=-H,m.minus(L);var j=m.e/l,q=L.e/l,$=m.c,G=L.c;if(!j||!q){if(!$||!G)return new ae(v/0);if(!$[0]||!G[0])return G[0]?L:new ae($[0]?m:v*0)}if(j=y(j),q=y(q),$=$.slice(),v=j-q){for(v>0?(q=j,A=G):(v=-v,A=$),A.reverse();v--;A.push(0));A.reverse()}for(v=$.length,H=G.length,v-H<0&&(A=G,G=$,$=A,H=v),v=0;H;)v=($[--H]=$[H]+G[H]+v)/c|0,$[H]=c===$[H]?0:$[H]%c;return v&&($=[v].concat($),++q),he(L,$,q)},D.precision=D.sd=function(L,H){var A,m,v,j=this;if(L!=null&&L!==!!L)return I(L,1,p),H==null?H=z:I(H,0,8),ve(new ae(j),L,H);if(!(A=j.c))return null;if(v=A.length-1,m=v*l+1,v=A[v]){for(;v%10==0;v/=10,m--);for(v=A[0];v>=10;v/=10,m++);}return L&&j.e+1>m&&(m=j.e+1),m},D.shiftedBy=function(L){return I(L,-d,d),this.times("1e"+L)},D.squareRoot=D.sqrt=function(){var L,H,A,m,v,j=this,q=j.c,$=j.s,G=j.e,Y=W+4,J=new ae("0.5");if($!==1||!q||!q[0])return new ae(!$||$<0&&(!q||q[0])?NaN:q?j:1/0);if($=Math.sqrt(+me(j)),$==0||$==1/0?(H=S(q),(H.length+G)%2==0&&(H+="0"),$=Math.sqrt(+H),G=y((G+1)/2)-(G<0||G%2),$==1/0?H="5e"+G:(H=$.toExponential(),H=H.slice(0,H.indexOf("e")+1)+G),A=new ae(H)):A=new ae($+""),A.c[0]){for(G=A.e,$=G+Y,$<3&&($=0);;)if(v=A,A=J.times(v.plus(B(j,v,Y,1))),S(v.c).slice(0,$)===(H=S(A.c)).slice(0,$))if(A.e0&&Ee>0){for(j=Ee%$||$,J=be.substr(0,j);j0&&(J+=Y+be.slice(j)),de&&(J="-"+J)}m=re?J+(A.decimalSeparator||"")+((G=+A.fractionGroupSize)?re.replace(new RegExp("\\d{"+G+"}\\B","g"),"$&"+(A.fractionGroupSeparator||"")):re):J}return(A.prefix||"")+m+(A.suffix||"")},D.toFraction=function(L){var H,A,m,v,j,q,$,G,Y,J,re,de,be=this,Ee=be.c;if(L!=null&&($=new ae(L),!$.isInteger()&&($.c||$.s!==1)||$.lt(F)))throw Error(o+"Argument "+($.isInteger()?"out of range: ":"not an integer: ")+me($));if(!Ee)return new ae(be);for(H=new ae(F),Y=A=new ae(F),m=G=new ae(F),de=S(Ee),j=H.e=de.length-be.e-1,H.c[0]=h[(q=j%l)<0?l+q:q],L=!L||$.comparedTo(H)>0?j>0?H:Y:$,q=ie,ie=1/0,$=new ae(de),G.c[0]=0;J=B($,H,0,1),v=A.plus(J.times(m)),v.comparedTo(L)!=1;)A=m,m=v,Y=G.plus(J.times(v=Y)),G=v,H=$.minus(J.times(v=H)),$=v;return v=B(L.minus(A),m,0,1),G=G.plus(v.times(Y)),A=A.plus(v.times(m)),G.s=Y.s=be.s,j=j*2,re=B(Y,m,j,z).minus(be).abs().comparedTo(B(G,A,j,z).minus(be).abs())<1?[Y,m]:[G,A],ie=q,re},D.toNumber=function(){return+me(this)},D.toPrecision=function(L,H){return L!=null&&I(L,1,p),Ae(this,L,H,2)},D.toString=function(L){var H,A=this,m=A.s,v=A.e;return v===null?m?(H="Infinity",m<0&&(H="-"+H)):H="NaN":(L==null?H=v<=M||v>=C?T(S(A.c),v):x(S(A.c),v,"0"):L===10&&oe?(A=ve(new ae(A),W+v+1,z),H=x(S(A.c),A.e,"0")):(I(L,2,Ce.length,"Base"),H=Q(x(S(A.c),v,"0"),10,L,m,!0)),m<0&&A.c[0]&&(H="-"+H)),H},D.valueOf=D.toJSON=function(){return me(this)},D._isBigNumber=!0,P!=null&&ae.set(P),ae}function y(P){var B=P|0;return P>0||P===B?B:B-1}function S(P){for(var B,Q,N=1,D=P.length,F=P[0]+"";NC^Q?1:-1;for(z=(M=D.length)<(C=F.length)?M:C,W=0;WF[W]^Q?1:-1;return M==C?0:M>C^Q?1:-1}function I(P,B,Q,N){if(PQ||P!==s(P))throw Error(o+(N||"Argument")+(typeof P=="number"?PQ?" out of range: ":" not an integer: ":" not a primitive number: ")+String(P))}function O(P){var B=P.c.length-1;return y(P.e/l)==B&&P.c[B]%2!=0}function T(P,B){return(P.length>1?P.charAt(0)+"."+P.slice(1):P)+(B<0?"e":"e+")+B}function x(P,B,Q){var N,D;if(B<0){for(D=Q+".";++B;D+=Q);P=D+P}else if(N=P.length,++B>N){for(D=Q,B-=N;--B;D+=Q);P+=D}else B>>25)+T|0,P+=(O&T|~O&x)+I[1]-389564586|0,P=(P<<12|P>>>20)+O|0,x+=(P&O|~P&T)+I[2]+606105819|0,x=(x<<17|x>>>15)+P|0,T+=(x&P|~x&O)+I[3]-1044525330|0,T=(T<<22|T>>>10)+x|0,O+=(T&x|~T&P)+I[4]-176418897|0,O=(O<<7|O>>>25)+T|0,P+=(O&T|~O&x)+I[5]+1200080426|0,P=(P<<12|P>>>20)+O|0,x+=(P&O|~P&T)+I[6]-1473231341|0,x=(x<<17|x>>>15)+P|0,T+=(x&P|~x&O)+I[7]-45705983|0,T=(T<<22|T>>>10)+x|0,O+=(T&x|~T&P)+I[8]+1770035416|0,O=(O<<7|O>>>25)+T|0,P+=(O&T|~O&x)+I[9]-1958414417|0,P=(P<<12|P>>>20)+O|0,x+=(P&O|~P&T)+I[10]-42063|0,x=(x<<17|x>>>15)+P|0,T+=(x&P|~x&O)+I[11]-1990404162|0,T=(T<<22|T>>>10)+x|0,O+=(T&x|~T&P)+I[12]+1804603682|0,O=(O<<7|O>>>25)+T|0,P+=(O&T|~O&x)+I[13]-40341101|0,P=(P<<12|P>>>20)+O|0,x+=(P&O|~P&T)+I[14]-1502002290|0,x=(x<<17|x>>>15)+P|0,T+=(x&P|~x&O)+I[15]+1236535329|0,T=(T<<22|T>>>10)+x|0,O+=(T&P|x&~P)+I[1]-165796510|0,O=(O<<5|O>>>27)+T|0,P+=(O&x|T&~x)+I[6]-1069501632|0,P=(P<<9|P>>>23)+O|0,x+=(P&T|O&~T)+I[11]+643717713|0,x=(x<<14|x>>>18)+P|0,T+=(x&O|P&~O)+I[0]-373897302|0,T=(T<<20|T>>>12)+x|0,O+=(T&P|x&~P)+I[5]-701558691|0,O=(O<<5|O>>>27)+T|0,P+=(O&x|T&~x)+I[10]+38016083|0,P=(P<<9|P>>>23)+O|0,x+=(P&T|O&~T)+I[15]-660478335|0,x=(x<<14|x>>>18)+P|0,T+=(x&O|P&~O)+I[4]-405537848|0,T=(T<<20|T>>>12)+x|0,O+=(T&P|x&~P)+I[9]+568446438|0,O=(O<<5|O>>>27)+T|0,P+=(O&x|T&~x)+I[14]-1019803690|0,P=(P<<9|P>>>23)+O|0,x+=(P&T|O&~T)+I[3]-187363961|0,x=(x<<14|x>>>18)+P|0,T+=(x&O|P&~O)+I[8]+1163531501|0,T=(T<<20|T>>>12)+x|0,O+=(T&P|x&~P)+I[13]-1444681467|0,O=(O<<5|O>>>27)+T|0,P+=(O&x|T&~x)+I[2]-51403784|0,P=(P<<9|P>>>23)+O|0,x+=(P&T|O&~T)+I[7]+1735328473|0,x=(x<<14|x>>>18)+P|0,T+=(x&O|P&~O)+I[12]-1926607734|0,T=(T<<20|T>>>12)+x|0,O+=(T^x^P)+I[5]-378558|0,O=(O<<4|O>>>28)+T|0,P+=(O^T^x)+I[8]-2022574463|0,P=(P<<11|P>>>21)+O|0,x+=(P^O^T)+I[11]+1839030562|0,x=(x<<16|x>>>16)+P|0,T+=(x^P^O)+I[14]-35309556|0,T=(T<<23|T>>>9)+x|0,O+=(T^x^P)+I[1]-1530992060|0,O=(O<<4|O>>>28)+T|0,P+=(O^T^x)+I[4]+1272893353|0,P=(P<<11|P>>>21)+O|0,x+=(P^O^T)+I[7]-155497632|0,x=(x<<16|x>>>16)+P|0,T+=(x^P^O)+I[10]-1094730640|0,T=(T<<23|T>>>9)+x|0,O+=(T^x^P)+I[13]+681279174|0,O=(O<<4|O>>>28)+T|0,P+=(O^T^x)+I[0]-358537222|0,P=(P<<11|P>>>21)+O|0,x+=(P^O^T)+I[3]-722521979|0,x=(x<<16|x>>>16)+P|0,T+=(x^P^O)+I[6]+76029189|0,T=(T<<23|T>>>9)+x|0,O+=(T^x^P)+I[9]-640364487|0,O=(O<<4|O>>>28)+T|0,P+=(O^T^x)+I[12]-421815835|0,P=(P<<11|P>>>21)+O|0,x+=(P^O^T)+I[15]+530742520|0,x=(x<<16|x>>>16)+P|0,T+=(x^P^O)+I[2]-995338651|0,T=(T<<23|T>>>9)+x|0,O+=(x^(T|~P))+I[0]-198630844|0,O=(O<<6|O>>>26)+T|0,P+=(T^(O|~x))+I[7]+1126891415|0,P=(P<<10|P>>>22)+O|0,x+=(O^(P|~T))+I[14]-1416354905|0,x=(x<<15|x>>>17)+P|0,T+=(P^(x|~O))+I[5]-57434055|0,T=(T<<21|T>>>11)+x|0,O+=(x^(T|~P))+I[12]+1700485571|0,O=(O<<6|O>>>26)+T|0,P+=(T^(O|~x))+I[3]-1894986606|0,P=(P<<10|P>>>22)+O|0,x+=(O^(P|~T))+I[10]-1051523|0,x=(x<<15|x>>>17)+P|0,T+=(P^(x|~O))+I[1]-2054922799|0,T=(T<<21|T>>>11)+x|0,O+=(x^(T|~P))+I[8]+1873313359|0,O=(O<<6|O>>>26)+T|0,P+=(T^(O|~x))+I[15]-30611744|0,P=(P<<10|P>>>22)+O|0,x+=(O^(P|~T))+I[6]-1560198380|0,x=(x<<15|x>>>17)+P|0,T+=(P^(x|~O))+I[13]+1309151649|0,T=(T<<21|T>>>11)+x|0,O+=(x^(T|~P))+I[4]-145523070|0,O=(O<<6|O>>>26)+T|0,P+=(T^(O|~x))+I[11]-1120210379|0,P=(P<<10|P>>>22)+O|0,x+=(O^(P|~T))+I[2]+718787259|0,x=(x<<15|x>>>17)+P|0,T+=(P^(x|~O))+I[9]-343485551|0,T=(T<<21|T>>>11)+x|0,w[0]=O+w[0]|0,w[1]=T+w[1]|0,w[2]=x+w[2]|0,w[3]=P+w[3]|0}function s(w){var I=[],O;for(O=0;O<64;O+=4)I[O>>2]=w.charCodeAt(O)+(w.charCodeAt(O+1)<<8)+(w.charCodeAt(O+2)<<16)+(w.charCodeAt(O+3)<<24);return I}function o(w){var I=[],O;for(O=0;O<64;O+=4)I[O>>2]=w[O]+(w[O+1]<<8)+(w[O+2]<<16)+(w[O+3]<<24);return I}function u(w){var I=w.length,O=[1732584193,-271733879,-1732584194,271733878],T,x,P,B,Q,N;for(T=64;T<=I;T+=64)a(O,s(w.substring(T-64,T)));for(w=w.substring(T-64),x=w.length,P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0;T>2]|=w.charCodeAt(T)<<(T%4<<3);if(P[T>>2]|=128<<(T%4<<3),T>55)for(a(O,P),T=0;T<16;T+=1)P[T]=0;return B=I*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),Q=parseInt(B[2],16),N=parseInt(B[1],16)||0,P[14]=Q,P[15]=N,a(O,P),O}function c(w){var I=w.length,O=[1732584193,-271733879,-1732584194,271733878],T,x,P,B,Q,N;for(T=64;T<=I;T+=64)a(O,o(w.subarray(T-64,T)));for(w=T-64>2]|=w[T]<<(T%4<<3);if(P[T>>2]|=128<<(T%4<<3),T>55)for(a(O,P),T=0;T<16;T+=1)P[T]=0;return B=I*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),Q=parseInt(B[2],16),N=parseInt(B[1],16)||0,P[14]=Q,P[15]=N,a(O,P),O}function l(w){var I="",O;for(O=0;O<4;O+=1)I+=n[w>>O*8+4&15]+n[w>>O*8&15];return I}function d(w){var I;for(I=0;IP?new ArrayBuffer(0):(B=P-x,Q=new ArrayBuffer(B),N=new Uint8Array(Q),D=new Uint8Array(this,x,B),N.set(D),Q)}}();function h(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function f(w,I){var O=w.length,T=new ArrayBuffer(O),x=new Uint8Array(T),P;for(P=0;P>2]|=I.charCodeAt(T)<<(T%4<<3);return this._finish(x,O),P=d(this._hash),w&&(P=y(P)),this.reset(),P},S.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},S.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},S.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},S.prototype._finish=function(w,I){var O=I,T,x,P;if(w[O>>2]|=128<<(O%4<<3),O>55)for(a(this._hash,w),O=0;O<16;O+=1)w[O]=0;T=this._length*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),x=parseInt(T[2],16),P=parseInt(T[1],16)||0,w[14]=x,w[15]=P,a(this._hash,w)},S.hash=function(w,I){return S.hashBinary(h(w),I)},S.hashBinary=function(w,I){var O=u(w),T=d(O);return I?y(T):T},S.ArrayBuffer=function(){this.reset()},S.ArrayBuffer.prototype.append=function(w){var I=b(this._buff.buffer,w,!0),O=I.length,T;for(this._length+=w.byteLength,T=64;T<=O;T+=64)a(this._hash,o(I.subarray(T-64,T)));return this._buff=T-64>2]|=I[x]<<(x%4<<3);return this._finish(T,O),P=d(this._hash),w&&(P=y(P)),this.reset(),P},S.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},S.ArrayBuffer.prototype.getState=function(){var w=S.prototype.getState.call(this);return w.buff=p(w.buff),w},S.ArrayBuffer.prototype.setState=function(w){return w.buff=f(w.buff,!0),S.prototype.setState.call(this,w)},S.ArrayBuffer.prototype.destroy=S.prototype.destroy,S.ArrayBuffer.prototype._finish=S.prototype._finish,S.ArrayBuffer.hash=function(w,I){var O=c(new Uint8Array(w)),T=d(O);return I?y(T):T},S})})(bL);var kde=bL.exports,dR={},I2={},P2={};Object.defineProperty(P2,"__esModule",{value:!0});P2.default=Gde;let x1;const Qde=new Uint8Array(16);function Gde(){if(!x1&&(x1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!x1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return x1(Qde)}var fc={},Fl={},D2={};Object.defineProperty(D2,"__esModule",{value:!0});D2.default=void 0;var zde=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;D2.default=zde;Object.defineProperty(Fl,"__esModule",{value:!0});Fl.default=void 0;var Wde=Xde(D2);function Xde(t){return t&&t.__esModule?t:{default:t}}function Kde(t){return typeof t=="string"&&Wde.default.test(t)}var Jde=Kde;Fl.default=Jde;Object.defineProperty(fc,"__esModule",{value:!0});fc.default=void 0;fc.unsafeStringify=mL;var Yde=Zde(Fl);function Zde(t){return t&&t.__esModule?t:{default:t}}const $n=[];for(let t=0;t<256;++t)$n.push((t+256).toString(16).slice(1));function mL(t,e=0){return $n[t[e+0]]+$n[t[e+1]]+$n[t[e+2]]+$n[t[e+3]]+"-"+$n[t[e+4]]+$n[t[e+5]]+"-"+$n[t[e+6]]+$n[t[e+7]]+"-"+$n[t[e+8]]+$n[t[e+9]]+"-"+$n[t[e+10]]+$n[t[e+11]]+$n[t[e+12]]+$n[t[e+13]]+$n[t[e+14]]+$n[t[e+15]]}function efe(t,e=0){const r=mL(t,e);if(!(0,Yde.default)(r))throw TypeError("Stringified UUID is invalid");return r}var tfe=efe;fc.default=tfe;Object.defineProperty(I2,"__esModule",{value:!0});I2.default=void 0;var rfe=ife(P2),nfe=fc;function ife(t){return t&&t.__esModule?t:{default:t}}let j4,qT,VT=0,HT=0;function afe(t,e,r){let n=e&&r||0;const a=e||new Array(16);t=t||{};let s=t.node||j4,o=t.clockseq!==void 0?t.clockseq:qT;if(s==null||o==null){const f=t.random||(t.rng||rfe.default)();s==null&&(s=j4=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),o==null&&(o=qT=(f[6]<<8|f[7])&16383)}let u=t.msecs!==void 0?t.msecs:Date.now(),c=t.nsecs!==void 0?t.nsecs:HT+1;const l=u-VT+(c-HT)/1e4;if(l<0&&t.clockseq===void 0&&(o=o+1&16383),(l<0||u>VT)&&t.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");VT=u,HT=c,qT=o,u+=122192928e5;const d=((u&268435455)*1e4+c)%4294967296;a[n++]=d>>>24&255,a[n++]=d>>>16&255,a[n++]=d>>>8&255,a[n++]=d&255;const h=u/4294967296*1e4&268435455;a[n++]=h>>>8&255,a[n++]=h&255,a[n++]=h>>>24&15|16,a[n++]=h>>>16&255,a[n++]=o>>>8|128,a[n++]=o&255;for(let f=0;f<6;++f)a[n+f]=s[f];return e||(0,nfe.unsafeStringify)(a)}var sfe=afe;I2.default=sfe;var N2={},rc={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});uy.default=void 0;var ofe=ufe(Fl);function ufe(t){return t&&t.__esModule?t:{default:t}}function cfe(t){if(!(0,ofe.default)(t))throw TypeError("Invalid UUID");let e;const r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}var lfe=cfe;uy.default=lfe;Object.defineProperty(rc,"__esModule",{value:!0});rc.URL=rc.DNS=void 0;rc.default=yfe;var dfe=fc,ffe=hfe(uy);function hfe(t){return t&&t.__esModule?t:{default:t}}function pfe(t){t=unescape(encodeURIComponent(t));const e=[];for(let r=0;r>5]>>>a%32&255,o=parseInt(n.charAt(s>>>4&15)+n.charAt(s&15),16);e.push(o)}return e}function vL(t){return(t+64>>>9<<4)+14+1}function gfe(t,e){t[e>>5]|=128<>5]|=(t[n/8]&255)<>16)+(e>>16)+(r>>16)<<16|r&65535}function vfe(t,e){return t<>>32-e}function C2(t,e,r,n,a,s){return $u(vfe($u($u(e,t),$u(n,s)),a),r)}function zn(t,e,r,n,a,s,o){return C2(e&r|~e&n,t,e,a,s,o)}function Wn(t,e,r,n,a,s,o){return C2(e&n|r&~n,t,e,a,s,o)}function Xn(t,e,r,n,a,s,o){return C2(e^r^n,t,e,a,s,o)}function Kn(t,e,r,n,a,s,o){return C2(r^(e|~n),t,e,a,s,o)}var wfe=bfe;j2.default=wfe;Object.defineProperty(N2,"__esModule",{value:!0});N2.default=void 0;var Sfe=wL(rc),Tfe=wL(j2);function wL(t){return t&&t.__esModule?t:{default:t}}const Efe=(0,Sfe.default)("v3",48,Tfe.default);var Ofe=Efe;N2.default=Ofe;var F2={},M2={};Object.defineProperty(M2,"__esModule",{value:!0});M2.default=void 0;const Afe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var xfe={randomUUID:Afe};M2.default=xfe;Object.defineProperty(F2,"__esModule",{value:!0});F2.default=void 0;var C4=SL(M2),Rfe=SL(P2),Ife=fc;function SL(t){return t&&t.__esModule?t:{default:t}}function Pfe(t,e,r){if(C4.default.randomUUID&&!e&&!t)return C4.default.randomUUID();t=t||{};const n=t.random||(t.rng||Rfe.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let a=0;a<16;++a)e[r+a]=n[a];return e}return(0,Ife.unsafeStringify)(n)}var Dfe=Pfe;F2.default=Dfe;var L2={},B2={};Object.defineProperty(B2,"__esModule",{value:!0});B2.default=void 0;function Nfe(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 kT(t,e){return t<>>32-e}function jfe(t){const e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const o=unescape(encodeURIComponent(t));t=[];for(let u=0;u>>0;f=h,h=d,d=kT(l,30)>>>0,l=c,c=y}r[0]=r[0]+c>>>0,r[1]=r[1]+l>>>0,r[2]=r[2]+d>>>0,r[3]=r[3]+h>>>0,r[4]=r[4]+f>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var Cfe=jfe;B2.default=Cfe;Object.defineProperty(L2,"__esModule",{value:!0});L2.default=void 0;var Ffe=TL(rc),Mfe=TL(B2);function TL(t){return t&&t.__esModule?t:{default:t}}const Lfe=(0,Ffe.default)("v5",80,Mfe.default);var Bfe=Lfe;L2.default=Bfe;var $2={};Object.defineProperty($2,"__esModule",{value:!0});$2.default=void 0;var $fe="00000000-0000-0000-0000-000000000000";$2.default=$fe;var U2={};Object.defineProperty(U2,"__esModule",{value:!0});U2.default=void 0;var Ufe=qfe(Fl);function qfe(t){return t&&t.__esModule?t:{default:t}}function Vfe(t){if(!(0,Ufe.default)(t))throw TypeError("Invalid UUID");return parseInt(t.slice(14,15),16)}var Hfe=Vfe;U2.default=Hfe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return o.default}});var e=d(I2),r=d(N2),n=d(F2),a=d(L2),s=d($2),o=d(U2),u=d(Fl),c=d(fc),l=d(uy);function d(h){return h&&h.__esModule?h:{default:h}}})(dR);var _h={},F4;function q2(){if(F4)return _h;F4=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.orderTypes=void 0;const t=_s,e=Qf(),r=Cl(),n=li,a=Ze;function s(l,d,h=!1,f,p){if(l===d)return 0;if(l===void 0)return-1;if(d===void 0)return 1;if(l.termType!==d.termType)return c[l.termType]"term"),cache:f||new t.LRUCache({max:1e3})},defaultTimeZone:{zoneHours:0,zoneMinutes:0}},S=new r.TermTransformer(y.superTypeProvider),w=S.transformLiteral(l),I=S.transformLiteral(d);try{return b.apply([w,I],y).typedValue?0:p.apply([w,I],y).typedValue?1:-1}catch{const O=u(w.dataType,I.dataType);return O!==0?O:u(w.str(),I.str())}}function u(l,d){return l===d?0:l_=>(0,y.bool)(!_.coerceEBV())).collect()},T={arity:1,overloads:(0,y.declare)(c.RegularOperator.UPLUS).numericConverter(()=>_=>_).collect()},x={arity:1,overloads:(0,y.declare)(c.RegularOperator.UMINUS).numericConverter(()=>_=>-_).collect()},P={arity:2,overloads:(0,y.declare)(c.RegularOperator.MULTIPLICATION).arithmetic(()=>(_,k)=>new t.BigNumber(_).times(k).toNumber()).collect()},B={arity:2,overloads:(0,y.declare)(c.RegularOperator.DIVISION).arithmetic(()=>(_,k)=>new t.BigNumber(_).div(k).toNumber()).onBinaryTyped([l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(_,k)=>{if(k===0)throw new h.ExpressionError("Integer division by 0");return(0,y.decimal)(new t.BigNumber(_).div(k).toNumber())}).collect()},Q={arity:2,overloads:(0,y.declare)(c.RegularOperator.ADDITION).arithmetic(()=>(_,k)=>new t.BigNumber(_).plus(k).toNumber()).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>new o.DateTimeLiteral((0,p.addDurationToDateTime)(_.typedValue,(0,d.defaultedDurationRepresentation)(k.typedValue)))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>new o.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(_.typedValue),(0,d.defaultedDurationRepresentation)(k.typedValue)))).copy({from:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>new o.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(_.typedValue),(0,d.defaultedDurationRepresentation)(k.typedValue)))).copy({from:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).collect()},N={arity:2,overloads:(0,y.declare)(c.RegularOperator.SUBTRACTION).arithmetic(()=>(_,k)=>new t.BigNumber(_).minus(k).toNumber()).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],({defaultTimeZone:_})=>([k,le])=>new o.DayTimeDurationLiteral((0,p.elapsedDuration)(k.typedValue,le.typedValue,_))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME]}).set([l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>new o.DateTimeLiteral((0,p.addDurationToDateTime)(_.typedValue,(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(k.typedValue))))).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>new o.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(_.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(k.typedValue))))).copy({from:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DAY_TIME_DURATION],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>new o.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(_.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(k.typedValue))))).collect()},D={arity:2,overloads:(0,y.declare)(c.RegularOperator.EQUAL).numberTest(()=>(_,k)=>_===k).stringTest(()=>(_,k)=>_.localeCompare(k)===0).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>([_,k])=>(0,y.bool)(_.str()===k.str()&&_.language===k.language)).set([l.TypeAlias.SPARQL_STRINGLY,l.TypeAlias.SPARQL_STRINGLY],()=>()=>(0,y.bool)(!1)).booleanTest(()=>(_,k)=>_===k).dateTimeTest(({defaultTimeZone:_})=>(k,le)=>(0,d.toUTCDate)(k,_).getTime()===(0,d.toUTCDate)(le,_).getTime()).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).set(["quad","quad"],_=>([k,le])=>{const Te=new b.RegularFunction(l.RegularOperator.EQUAL,D);return(0,y.bool)(Te.apply([k.subject,le.subject],_).coerceEBV()&&Te.apply([k.predicate,le.predicate],_).coerceEBV()&&Te.apply([k.object,le.object],_).coerceEBV())},!1).set(["term","term"],()=>([_,k])=>(0,y.bool)(F(_,k)),!1).set([l.TypeURL.XSD_DURATION,l.TypeURL.XSD_DURATION],()=>([_,k])=>(0,y.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(_.typedValue))===(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(k.typedValue))&&(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(_.typedValue))===(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(k.typedValue)))).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME],({defaultTimeZone:_})=>([k,le])=>(0,y.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(k.typedValue),_).getTime()===(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(le.typedValue),_).getTime())).collect()};function F(_,k){const le=_.toRDF(),Te=k.toRDF(),Se=le.equals(Te);if(!Se&&le.termType==="Literal"&&Te.termType==="Literal")throw new h.RDFEqualTypeError([_,k]);return Se}const W={arity:2,overloads:(0,y.declare)(c.RegularOperator.NOT_EQUAL).set(["term","term"],_=>([k,le])=>(0,y.bool)(!w.regularFunctions[c.RegularOperator.EQUAL].apply([k,le],_).typedValue)).collect()},z={arity:2,overloads:(0,y.declare)(c.RegularOperator.LT).numberTest(()=>(_,k)=>_(_,k)=>_.localeCompare(k)===-1).booleanTest(()=>(_,k)=>_([_,k])=>(0,y.bool)((0,f.orderTypes)(_.toRDF(),k.toRDF(),!0)===-1),!1).dateTimeTest(({defaultTimeZone:_})=>(k,le)=>(0,d.toUTCDate)(k,_).getTime()<(0,d.toUTCDate)(le,_).getTime()).copy({from:[l.TypeURL.XSD_DATE_TIME,l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE,l.TypeURL.XSD_DATE]}).set([l.TypeURL.XSD_YEAR_MONTH_DURATION,l.TypeURL.XSD_YEAR_MONTH_DURATION],()=>([_,k])=>(0,y.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(_.typedValue))<(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(k.typedValue)))).set([l.TypeURL.XSD_DAY_TIME_DURATION,l.TypeURL.XSD_DAY_TIME_DURATION],()=>([_,k])=>(0,y.bool)((0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(_.typedValue))<(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(k.typedValue)))).set([l.TypeURL.XSD_TIME,l.TypeURL.XSD_TIME],({defaultTimeZone:_})=>([k,le])=>(0,y.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(k.typedValue),_).getTime()<(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(le.typedValue),_).getTime())).collect()},M={arity:2,overloads:(0,y.declare)(c.RegularOperator.GT).set(["term","term"],_=>([k,le])=>w.regularFunctions[c.RegularOperator.LT].apply([le,k],_)).collect()},C={arity:2,overloads:(0,y.declare)(c.RegularOperator.LTE).set(["term","term"],_=>([k,le])=>(0,y.bool)(w.regularFunctions[c.RegularOperator.LT].apply([k,le],_).typedValue||w.regularFunctions[c.RegularOperator.EQUAL].apply([k,le],_).typedValue)).collect()},V={arity:2,overloads:(0,y.declare)(c.RegularOperator.GTE).set(["term","term"],_=>([k,le])=>w.regularFunctions[c.RegularOperator.LTE].apply([le,k],_)).collect()},ie={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_IRI).onTerm1(()=>_=>(0,y.bool)(_.termType==="namedNode")).collect()},ne={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_BLANK).onTerm1(()=>_=>(0,y.bool)(_.termType==="blankNode")).collect()},fe={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_LITERAL).onTerm1(()=>_=>(0,y.bool)(_.termType==="literal")).collect()},_e={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_NUMERIC).onNumeric1(()=>()=>(0,y.bool)(!0)).onTerm1(()=>()=>(0,y.bool)(!1)).collect()},we={arity:1,overloads:(0,y.declare)(c.RegularOperator.STR).onTerm1(()=>_=>(0,y.string)(_.str())).collect()},Ce={arity:1,overloads:(0,y.declare)(c.RegularOperator.LANG).onLiteral1(()=>_=>(0,y.string)(_.language||"")).collect()},oe={arity:1,overloads:(0,y.declare)(c.RegularOperator.DATATYPE).onLiteral1(()=>_=>new o.NamedNode(_.dataType)).collect()},ae={arity:1,overloads:(0,y.declare)(c.RegularOperator.IRI).set(["namedNode"],_=>k=>{const le=k[0],Te=(0,n.resolve)(le.str(),_.baseIRI||"");return new o.NamedNode(Te)}).onString1(_=>k=>{const le=(0,n.resolve)(k.str(),_.baseIRI||"");return new o.NamedNode(le)}).collect()},Ae={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRDT).set([l.TypeURL.XSD_STRING,"namedNode"],({superTypeProvider:_})=>([k,le])=>{const Te=I.literal(k.typedValue,I.namedNode(le.value));return new u.TermTransformer(_).transformLiteral(Te)}).collect()},Ie={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRLANG).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(_,k)=>new o.LangStringLiteral(_,k.toLowerCase())).collect()},he={arity:0,overloads:(0,y.declare)(c.RegularOperator.UUID).set([],()=>()=>new o.NamedNode(`urn:uuid:${s.v4()}`)).collect()},ve={arity:0,overloads:(0,y.declare)(c.RegularOperator.STRUUID).set([],()=>()=>(0,y.string)(s.v4())).collect()},me={arity:1,overloads:(0,y.declare)(c.RegularOperator.STRLEN).onStringly1(()=>_=>(0,y.integer)([..._.typedValue].length)).collect()},L={arity:[2,3],overloads:(0,y.declare)(c.RegularOperator.SUBSTR).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_INTEGER],()=>(_,k)=>(0,y.string)([..._].slice(k-1).join(""))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_INTEGER],()=>(_,k)=>{const le=[..._.typedValue].slice(k.typedValue-1).join("");return(0,y.langString)(le,_.language)}).onTernaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(_,k,le)=>(0,y.string)([..._].slice(k-1,le+k-1).join(""))).onTernary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_INTEGER,l.TypeURL.XSD_INTEGER],()=>(_,k,le)=>{const Te=[..._.typedValue].slice(k.typedValue-1,le.typedValue+k.typedValue-1).join("");return(0,y.langString)(Te,_.language)}).collect()},H={arity:1,overloads:(0,y.declare)(c.RegularOperator.UCASE).onString1Typed(()=>_=>(0,y.string)(_.toUpperCase())).onLangString1(()=>_=>(0,y.langString)(_.typedValue.toUpperCase(),_.language)).collect()},A={arity:1,overloads:(0,y.declare)(c.RegularOperator.LCASE).onString1Typed(()=>_=>(0,y.string)(_.toLowerCase())).onLangString1(()=>_=>(0,y.langString)(_.typedValue.toLowerCase(),_.language)).collect()},m={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRSTARTS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(_,k)=>(0,y.bool)(_.startsWith(k))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(_,k)=>{if(_.language!==k.language)throw new h.IncompatibleLanguageOperation(_,k);return(0,y.bool)(_.typedValue.startsWith(k.typedValue))}).collect()},v={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRENDS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(_,k)=>(0,y.bool)(_.endsWith(k))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(_,k)=>{if(_.language!==k.language)throw new h.IncompatibleLanguageOperation(_,k);return(0,y.bool)(_.typedValue.endsWith(k.typedValue))}).collect()},j={arity:2,overloads:(0,y.declare)(c.RegularOperator.CONTAINS).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],()=>(_,k)=>(0,y.bool)(_.includes(k))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(_,k)=>{if(_.language!==k.language)throw new h.IncompatibleLanguageOperation(_,k);return(0,y.bool)(_.typedValue.includes(k.typedValue))}).collect()},q={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRBEFORE).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(_,k)=>(0,y.string)(_.slice(0,Math.max(0,_.indexOf(k))))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING],()=>(_,k)=>{const[le,Te]=[_.typedValue,k.typedValue],Se=_.typedValue.slice(0,Math.max(0,le.indexOf(Te)));return Se||!Te?(0,y.langString)(Se,_.language):(0,y.string)(Se)}).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(_,k)=>{if(_.language!==k.language)throw new h.IncompatibleLanguageOperation(_,k);const[le,Te]=[_.typedValue,k.typedValue],Se=_.typedValue.slice(0,Math.max(0,le.indexOf(Te)));return Se||!Te?(0,y.langString)(Se,_.language):(0,y.string)(Se)}).collect()},$={arity:2,overloads:(0,y.declare)(c.RegularOperator.STRAFTER).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(_,k)=>(0,y.string)(_.slice(_.indexOf(k)).slice(k.length))).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING],()=>(_,k)=>{const[le,Te]=[_.typedValue,k.typedValue],Se=le.slice(le.indexOf(Te)).slice(Te.length);return Se||!Te?(0,y.langString)(Se,_.language):(0,y.string)(Se)}).onBinary([l.TypeURL.RDF_LANG_STRING,l.TypeURL.RDF_LANG_STRING],()=>(_,k)=>{if(_.language!==k.language)throw new h.IncompatibleLanguageOperation(_,k);const[le,Te]=[_.typedValue,k.typedValue],Se=le.slice(le.indexOf(Te)).slice(Te.length);return Se||!Te?(0,y.langString)(Se,_.language):(0,y.string)(Se)}).collect()},G={arity:1,overloads:(0,y.declare)(c.RegularOperator.ENCODE_FOR_URI).onStringly1Typed(()=>_=>(0,y.string)(encodeURI(_))).collect()},Y={arity:2,overloads:(0,y.declare)(c.RegularOperator.LANG_MATCHES).onBinaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(_,k)=>(0,y.bool)(S.langMatches(_,k))).collect()},J=()=>(_,k)=>(0,y.bool)(S.matches(_,k)),re=()=>(_,k,le)=>(0,y.bool)(S.matches(_,k,le)),de={arity:[2,3],overloads:(0,y.declare)(c.RegularOperator.REGEX).onBinaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING],J).onTernaryTyped([l.TypeAlias.SPARQL_STRINGLY,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],re).collect()},be={arity:[3,4],overloads:(0,y.declare)(c.RegularOperator.REPLACE).onTernaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(_,k,le)=>(0,y.string)(S.replace(_,k,le))).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>([_,k,le])=>{const Te=S.replace(_.typedValue,k.typedValue,le.typedValue);return(0,y.langString)(Te,_.language)}).onQuaternaryTyped([l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>(_,k,le,Te)=>(0,y.string)(S.replace(_,k,le,Te))).set([l.TypeURL.RDF_LANG_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING,l.TypeURL.XSD_STRING],()=>([_,k,le,Te])=>{const Se=S.replace(_.typedValue,k.typedValue,le.typedValue,Te.typedValue);return(0,y.langString)(Se,_.language)}).collect()},Ee={arity:1,overloads:(0,y.declare)(c.RegularOperator.ABS).numericConverter(()=>_=>Math.abs(_)).collect()},xe={arity:1,overloads:(0,y.declare)(c.RegularOperator.ROUND).numericConverter(()=>_=>Math.round(_)).collect()},Pe={arity:1,overloads:(0,y.declare)(c.RegularOperator.CEIL).numericConverter(()=>_=>Math.ceil(_)).collect()},U={arity:1,overloads:(0,y.declare)(c.RegularOperator.FLOOR).numericConverter(()=>_=>Math.floor(_)).collect()},E={arity:0,overloads:(0,y.declare)(c.RegularOperator.RAND).set([],()=>()=>(0,y.double)(Math.random())).collect()},R={arity:0,overloads:(0,y.declare)(c.RegularOperator.NOW).set([],_=>()=>new o.DateTimeLiteral((0,d.toDateTimeRepresentation)({date:_.now,timeZone:_.defaultTimeZone}))).collect()},K={arity:1,overloads:(0,y.declare)(c.RegularOperator.YEAR).onDateTime1(()=>_=>(0,y.integer)(_.typedValue.year)).set([l.TypeURL.XSD_DATE],()=>([_])=>(0,y.integer)(_.typedValue.year)).collect()},ce={arity:1,overloads:(0,y.declare)(c.RegularOperator.MONTH).onDateTime1(()=>_=>(0,y.integer)(_.typedValue.month)).set([l.TypeURL.XSD_DATE],()=>([_])=>(0,y.integer)(_.typedValue.month)).collect()},ye={arity:1,overloads:(0,y.declare)(c.RegularOperator.DAY).onDateTime1(()=>_=>(0,y.integer)(_.typedValue.day)).set([l.TypeURL.XSD_DATE],()=>([_])=>(0,y.integer)(_.typedValue.day)).collect()},ge={arity:1,overloads:(0,y.declare)(c.RegularOperator.HOURS).onDateTime1(()=>_=>(0,y.integer)(_.typedValue.hours)).set([l.TypeURL.XSD_TIME],()=>([_])=>(0,y.integer)(_.typedValue.hours)).collect()},$e={arity:1,overloads:(0,y.declare)(c.RegularOperator.MINUTES).onDateTime1(()=>_=>(0,y.integer)(_.typedValue.minutes)).set([l.TypeURL.XSD_TIME],()=>([_])=>(0,y.integer)(_.typedValue.minutes)).collect()},ke={arity:1,overloads:(0,y.declare)(c.RegularOperator.SECONDS).onDateTime1(()=>_=>(0,y.decimal)(_.typedValue.seconds)).set([l.TypeURL.XSD_TIME],()=>([_])=>(0,y.integer)(_.typedValue.seconds)).collect()},Xe={arity:1,overloads:(0,y.declare)(c.RegularOperator.TIMEZONE).onDateTime1(()=>_=>{const k={hours:_.typedValue.zoneHours,minutes:_.typedValue.zoneMinutes};if(k.hours===void 0&&k.minutes===void 0)throw new h.InvalidTimezoneCall(_.str());return new o.DayTimeDurationLiteral(k)}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME]}).collect()},Ke={arity:1,overloads:(0,y.declare)(c.RegularOperator.TZ).onDateTime1(()=>_=>(0,y.string)((0,d.extractRawTimeZone)(_.str()))).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_DATE]}).copy({from:[l.TypeURL.XSD_DATE_TIME],to:[l.TypeURL.XSD_TIME]}).collect()},ht={arity:1,overloads:(0,y.declare)(c.RegularOperator.MD5).onString1Typed(()=>_=>(0,y.string)((0,a.hash)(_))).collect()},rn={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA1).onString1Typed(()=>_=>(0,y.string)((0,e.sha1)().update(_).digest("hex"))).collect()},Vr={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA256).onString1Typed(()=>_=>(0,y.string)((0,e.sha256)().update(_).digest("hex"))).collect()},nn={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA384).onString1Typed(()=>_=>(0,y.string)((0,e.sha384)().update(_).digest("hex"))).collect()},br={arity:1,overloads:(0,y.declare)(c.RegularOperator.SHA512).onString1Typed(()=>_=>(0,y.string)((0,e.sha512)().update(_).digest("hex"))).collect()},Pn={arity:3,overloads:(0,y.declare)(c.RegularOperator.TRIPLE).onTerm3(_=>(...k)=>new o.Quad(I.quad(k[0].toRDF(),k[1].toRDF(),k[2].toRDF()),_.superTypeProvider)).collect()},vr={arity:1,overloads:(0,y.declare)(c.RegularOperator.SUBJECT).onQuad1(()=>_=>_.subject).collect()},wr={arity:1,overloads:(0,y.declare)(c.RegularOperator.PREDICATE).onQuad1(()=>_=>_.predicate).collect()},an={arity:1,overloads:(0,y.declare)(c.RegularOperator.OBJECT).onQuad1(()=>_=>_.object).collect()},te={arity:1,overloads:(0,y.declare)(c.RegularOperator.IS_TRIPLE).onTerm1(()=>_=>(0,y.bool)(_.termType==="quad")).collect()};return gh.definitions={"!":O,uplus:T,uminus:x,"*":P,"/":B,"+":Q,"-":N,"=":D,"!=":W,"<":z,">":M,"<=":C,">=":V,isiri:ie,isuri:ie,isblank:ne,isliteral:fe,isnumeric:_e,str:we,lang:Ce,datatype:oe,iri:ae,uri:ae,strdt:Ae,strlang:Ie,uuid:he,struuid:ve,strlen:me,substr:L,ucase:H,lcase:A,strstarts:m,strends:v,contains:j,strbefore:q,strafter:$,encode_for_uri:G,langmatches:Y,regex:de,replace:be,abs:Ee,round:xe,ceil:Pe,floor:U,rand:E,now:R,year:K,month:ce,day:ye,hours:ge,minutes:$e,seconds:ke,timezone:Xe,tz:Ke,md5:ht,sha1:rn,sha256:Vr,sha384:nn,sha512:br,triple:Pn,subject:vr,predicate:wr,object:an,istriple:te},gh}var vh={},$4;function Wfe(){if($4)return vh;$4=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.specialDefinitions=void 0;const t=dR,e=ha(),r=li,n=Ze,a=co(),s=Qf(),o={arity:1,async applyAsync({args:B,mapping:Q}){return u({args:B,mapping:Q})},applySynchronously({args:B,mapping:Q}){return u({args:B,mapping:Q})}};function u({args:B,mapping:Q}){const N=B[0];if(N.expressionType!==e.ExpressionType.Variable)throw new n.InvalidArgumentTypes(B,r.SpecialOperator.BOUND);const D=Q.has((0,a.expressionToVar)(N));return(0,a.bool)(D)}const c={arity:3,async applyAsync({args:B,mapping:Q,evaluate:N}){const F=(await N(B[0],Q)).coerceEBV();return N(F?B[1]:B[2],Q)},applySynchronously({args:B,mapping:Q,evaluate:N}){const F=N(B[0],Q).coerceEBV();return N(F?B[1]:B[2],Q)}},l={arity:Number.POSITIVE_INFINITY,async applyAsync({args:B,mapping:Q,evaluate:N}){const D=[];for(const F of B)try{return await N(F,Q)}catch(W){D.push(W)}throw new n.CoalesceError(D)},applySynchronously({args:B,mapping:Q,evaluate:N}){const D=[];for(const F of B)try{return N(F,Q)}catch(W){D.push(W)}throw new n.CoalesceError(D)}},d={arity:2,async applyAsync({args:B,mapping:Q,evaluate:N}){const[D,F]=B;try{if((await N(D,Q)).coerceEBV())return(0,a.bool)(!0);const C=(await N(F,Q)).coerceEBV();return(0,a.bool)(C)}catch(W){if(!(await N(F,Q)).coerceEBV())throw W;return(0,a.bool)(!0)}},applySynchronously({args:B,mapping:Q,evaluate:N}){const[D,F]=B;try{if(N(D,Q).coerceEBV())return(0,a.bool)(!0);const C=N(F,Q).coerceEBV();return(0,a.bool)(C)}catch(W){if(!N(F,Q).coerceEBV())throw W;return(0,a.bool)(!0)}}},h={arity:2,async applyAsync({args:B,mapping:Q,evaluate:N}){const[D,F]=B;try{if(!(await N(D,Q)).coerceEBV())return(0,a.bool)(!1);const C=(await N(F,Q)).coerceEBV();return(0,a.bool)(C)}catch(W){if((await N(F,Q)).coerceEBV())throw W;return(0,a.bool)(!1)}},applySynchronously({args:B,mapping:Q,evaluate:N}){const[D,F]=B;try{if(!N(D,Q).coerceEBV())return(0,a.bool)(!1);const C=N(F,Q).coerceEBV();return(0,a.bool)(C)}catch(W){if(N(F,Q).coerceEBV())throw W;return(0,a.bool)(!1)}}},f={arity:2,async applyAsync({args:B,mapping:Q,evaluate:N}){const[D,F]=B.map(M=>N(M,Q)),[W,z]=await Promise.all([D,F]);return(0,a.bool)(W.toRDF().equals(z.toRDF()))},applySynchronously({args:B,mapping:Q,evaluate:N}){const[D,F]=B.map(W=>N(W,Q));return(0,a.bool)(D.toRDF().equals(F.toRDF()))}},p={arity:Number.POSITIVE_INFINITY,checkArity(B){return B.length>0},async applyAsync(B){const{args:Q,mapping:N,evaluate:D}=B,[F,...W]=Q,z=await D(F,N);return b(z,{...B,args:W},[])},applySynchronously(B){const{args:Q,mapping:N,evaluate:D}=B,[F,...W]=Q,z=D(F,N);return y(z,{...B,args:W},[])}};async function b(B,Q,N){const{args:D,mapping:F,evaluate:W}=Q;if(D.length===0)return N.every(M=>!M)?(0,a.bool)(!1):Promise.reject(new n.InError(N));try{const z=D.shift(),M=await W(z,F);return s.regularFunctions[r.RegularOperator.EQUAL].apply([B,M],Q).typedValue?(0,a.bool)(!0):b(B,Q,[...N,!1])}catch(z){return b(B,Q,[...N,z])}}function y(B,Q,N){const{args:D,mapping:F,evaluate:W}=Q;if(D.length===0){if(N.every(M=>!M))return(0,a.bool)(!1);throw new n.InError(N)}try{const z=D.shift(),M=W(z,F);return s.regularFunctions[r.RegularOperator.EQUAL].apply([B,M],Q).typedValue?(0,a.bool)(!0):y(B,Q,[...N,!1])}catch(z){return y(B,Q,[...N,z])}}const S={arity:Number.POSITIVE_INFINITY,checkArity(B){return B.length>0},async applyAsync(B){const N=await s.specialFunctions[r.SpecialOperator.IN].applyAsync(B);return(0,a.bool)(!N.typedValue)},applySynchronously(B){const N=s.specialFunctions[r.SpecialOperator.IN].applySynchronously(B);return(0,a.bool)(!N.typedValue)}},w=(0,a.declare)(r.SpecialOperator.CONCAT).onStringly1(()=>B=>B).collect(),I={arity:Number.POSITIVE_INFINITY,async applyAsync(B){const{args:Q,mapping:N,evaluate:D,functionArgumentsCache:F,superTypeProvider:W}=B,z=Q.map(async ne=>D(ne,N)).map(async ne=>{const fe=w.search([await ne],W,F);if(!fe)throw new n.InvalidArgumentTypes(Q,r.SpecialOperator.CONCAT);return fe(B)([await ne])}),M=await Promise.all(z),V=M.map(ne=>ne.typedValue).join(""),ie=O(M)?M[0].language:void 0;return ie?(0,a.langString)(V,ie):(0,a.string)(V)},applySynchronously(B){const{args:Q,mapping:N,evaluate:D,superTypeProvider:F,functionArgumentsCache:W}=B,z=Q.map(ie=>D(ie,N)).map(ie=>{const ne=w.search([ie],F,W);if(!ne)throw new n.InvalidArgumentTypes(Q,r.SpecialOperator.CONCAT);return ne(B)([ie])}),C=z.map(ie=>ie.typedValue).join(""),V=O(z)?z[0].language:void 0;return V?(0,a.langString)(C,V):(0,a.string)(C)}};function O(B){return B.length>0&&B.every(Q=>Q.language===B[0].language)}const T=(0,a.declare)(r.SpecialOperator.BNODE).onString1(()=>B=>B).collect(),x={arity:Number.POSITIVE_INFINITY,checkArity(B){return B.length===0||B.length===1},async applyAsync(B){const{args:Q,mapping:N,evaluate:D,superTypeProvider:F,functionArgumentsCache:W}=B,z=Q.length===1?await D(Q[0],N):void 0;let M;if(z){const C=T.search([z],F,W);if(!C)throw new n.InvalidArgumentTypes(Q,r.SpecialOperator.BNODE);M=C(B)([z]).str()}if(B.bnode){const C=await B.bnode(M);return new e.BlankNode(C)}return P(M)},applySynchronously(B){const{args:Q,mapping:N,evaluate:D,superTypeProvider:F,functionArgumentsCache:W}=B,z=Q.length===1?D(Q[0],N):void 0;let M;if(z){const C=T.search([z],F,W);if(!C)throw new n.InvalidArgumentTypes(Q,r.SpecialOperator.BNODE);M=C(B)([z]).str()}if(B.bnode){const C=B.bnode(M);return new e.BlankNode(C)}return P(M)}};function P(B){return new e.BlankNode(B||t.v4())}return vh.specialDefinitions={bound:o,if:c,coalesce:l,"&&":h,"||":d,sameterm:f,in:p,notin:S,concat:I,bnode:x},vh}var U4;function Qf(){return U4||(U4=1,function(t){var e=g&&g.__createBinding||(Object.create?function(c,l,d,h){h===void 0&&(h=d);var f=Object.getOwnPropertyDescriptor(l,d);(!f||("get"in f?!l.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(c,h,f)}:function(c,l,d,h){h===void 0&&(h=d),c[h]=l[d]}),r=g&&g.__exportStar||function(c,l){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(l,d)&&e(l,c,d)};Object.defineProperty(t,"__esModule",{value:!0}),t.OverloadTree=t.namedFunctions=t.specialFunctions=t.regularFunctions=void 0;const n=Aa,a=R2,s=zfe(),o=Wfe();r(Aa,t),t.regularFunctions=Object.fromEntries(Object.entries(s.definitions).map(([c,l])=>[c,new n.RegularFunction(c,l)])),t.specialFunctions=Object.fromEntries(Object.entries(o.specialDefinitions).map(([c,l])=>[c,new n.SpecialFunction(c,l)])),t.namedFunctions=Object.fromEntries(Object.entries(a.namedDefinitions).map(([c,l])=>[c,new n.NamedFunction(c,l)]));var u=cL();Object.defineProperty(t,"OverloadTree",{enumerable:!0,get:function(){return u.OverloadTree}})}(UT)),UT}Object.defineProperty(oy,"__esModule",{value:!0});oy.AlgebraTransformer=void 0;const Xfe=Tt,yu=ha(),QT=Qf(),GT=li,R1=Ze,q4=Ze,Kfe=Cl();class Ad extends Kfe.TermTransformer{constructor(e){super(e.superTypeProvider),this.algebraConfig=e,this.creatorConfig={type:e.type,creator:e.creator}}transformAlgebra(e){const r=Xfe.Algebra.expressionTypes;switch(e.expressionType){case r.TERM:return this.transformTerm(e);case r.OPERATOR:return this.transformOperator(e);case r.NAMED:return this.transformNamed(e);case r.EXISTENCE:return Ad.transformExistence(e);case r.AGGREGATE:return Ad.transformAggregate(e);case r.WILDCARD:return Ad.transformWildcard(e)}}static transformWildcard(e){return new yu.NamedNode(e.wildcard.value)}transformOperator(e){const r=e.operator.toLowerCase();if(GT.SpecialOperators.has(r)){const o=r,u=e.args.map(l=>this.transformAlgebra(l)),c=QT.specialFunctions[o];if(!c.checkArity(u))throw new R1.InvalidArity(u,o);return new yu.SpecialOperator(u,c.applyAsync,c.applySynchronously)}if(!GT.Operators.has(r))throw new R1.UnknownOperator(e.operator);const n=r,a=e.args.map(o=>this.transformAlgebra(o)),s=QT.regularFunctions[n];if(!Ad.hasCorrectArity(a,s.arity))throw new R1.InvalidArity(a,n);return new yu.Operator(a,o=>s.apply(o,this.algebraConfig))}wrapSyncFunction(e,r){return n=>{try{const a=e(n.map(s=>s.toRDF()));return this.transformRDFTermUnsafe(a)}catch(a){throw new q4.ExtensionFunctionError(r,a)}}}wrapAsyncFunction(e,r){return async n=>{try{const a=await e(n.map(s=>s.toRDF()));return this.transformRDFTermUnsafe(a)}catch(a){throw new q4.ExtensionFunctionError(r,a)}}}transformNamed(e){const r=e.name.value,n=e.args.map(a=>this.transformAlgebra(a));if(GT.NamedOperators.has(r)){const a=e.name.value,s=QT.namedFunctions[a];return new yu.Named(e.name,n,o=>s.apply(o,this.algebraConfig))}if(this.creatorConfig.type==="sync"){const a=this.creatorConfig.creator(e.name);if(a){const s=this.wrapSyncFunction(a,e.name.value);return new yu.SyncExtension(e.name,n,s)}}else{const a=this.creatorConfig.creator(e.name);if(a){const s=this.wrapAsyncFunction(a,e.name.value);return new yu.AsyncExtension(e.name,n,s)}}throw new R1.UnknownNamedOperator(e.name.value)}static hasCorrectArity(e,r){return Array.isArray(r)?r.includes(e.length):e.length===r}static transformAggregate(e){const r=e.aggregator;return new yu.Aggregate(r,e)}static transformExistence(e){return new yu.Existence(e)}}oy.AlgebraTransformer=Ad;var V2={},cy={};Object.defineProperty(cy,"__esModule",{value:!0});cy.BaseExpressionEvaluator=void 0;const Jfe=co(),Yfe=Ze;class Zfe{constructor(e){this.termTransformer=e}term(e,r){return e}variable(e,r){const n=r.get((0,Jfe.expressionToVar)(e));if(!n)throw new Yfe.UnboundVariableError(e.name,r);return this.termTransformer.transformRDFTermUnsafe(n)}}cy.BaseExpressionEvaluator=Zfe;Object.defineProperty(V2,"__esModule",{value:!0});V2.AsyncRecursiveEvaluator=void 0;const Oo=ha(),ehe=Cl(),zT=Ze,the=cy;class rhe extends the.BaseExpressionEvaluator{constructor(e,r){super(r||new ehe.TermTransformer(e.superTypeProvider)),this.context=e,this.subEvaluators={[Oo.ExpressionType.Term]:this.term.bind(this),[Oo.ExpressionType.Variable]:this.variable.bind(this),[Oo.ExpressionType.Operator]:this.evalOperator.bind(this),[Oo.ExpressionType.SpecialOperator]:this.evalSpecialOperator.bind(this),[Oo.ExpressionType.Named]:this.evalNamed.bind(this),[Oo.ExpressionType.Existence]:this.evalExistence.bind(this),[Oo.ExpressionType.Aggregate]:this.evalAggregate.bind(this),[Oo.ExpressionType.AsyncExtension]:this.evalAsyncExtension.bind(this)}}async evaluate(e,r){const n=this.subEvaluators[e.expressionType];if(!n)throw new zT.InvalidExpressionType(e);return n.bind(this)(e,r)}async evalOperator(e,r){const n=e.args.map(s=>this.evaluate(s,r)),a=await Promise.all(n);return e.apply(a)}async evalSpecialOperator(e,r){const n=this.evaluate.bind(this),a={args:e.args,mapping:r,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:n,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return e.applyAsync(a)}async _evalAsyncArgs(e,r){const n=e.map(a=>this.evaluate(a,r));return await Promise.all(n)}async evalNamed(e,r){return e.apply(await this._evalAsyncArgs(e.args,r))}async evalAsyncExtension(e,r){return await e.apply(await this._evalAsyncArgs(e.args,r))}async evalExistence(e,r){if(!this.context.exists)throw new zT.NoExistenceHook;return new Oo.BooleanLiteral(await this.context.exists(e.expression,r))}async evalAggregate(e,r){if(!this.context.aggregate)throw new zT.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(await this.context.aggregate(e.expression))}}V2.AsyncRecursiveEvaluator=rhe;Object.defineProperty(sy,"__esModule",{value:!0});sy.AsyncEvaluator=void 0;const nhe=_s,ihe=oy,ahe=Mt,she=V2;class fR{static completeContext(e){const r=e.now||new Date(Date.now());return{now:r,baseIRI:e.baseIRI||void 0,functionArgumentsCache:e.functionArgumentsCache||{},superTypeProvider:{cache:e.typeCache||new nhe.LRUCache({max:1e3}),discoverer:e.getSuperType||(()=>"term")},extensionFunctionCreator:e.extensionFunctionCreator,exists:e.exists,aggregate:e.aggregate,bnode:e.bnode,defaultTimeZone:e.defaultTimeZone||(0,ahe.extractTimeZone)(r)}}constructor(e,r={}){this.algExpr=e;const n=r.extensionFunctionCreator||(()=>{}),a=fR.completeContext(r),s=new ihe.AlgebraTransformer({type:"async",creator:n,...a});this.expr=s.transformAlgebra(e),this.evaluator=new she.AsyncRecursiveEvaluator(a,s)}async evaluate(e){return(await this.evaluator.evaluate(this.expr,e)).toRDF()}async evaluateAsEBV(e){return(await this.evaluator.evaluate(this.expr,e)).coerceEBV()}async evaluateAsInternal(e){return await this.evaluator.evaluate(this.expr,e)}}sy.AsyncEvaluator=fR;var ly={},H2={};Object.defineProperty(H2,"__esModule",{value:!0});H2.SyncRecursiveEvaluator=void 0;const Ao=ha(),ohe=Cl(),WT=Ze,uhe=cy;class che extends uhe.BaseExpressionEvaluator{constructor(e,r){super(r||new ohe.TermTransformer(e.superTypeProvider)),this.context=e,this.subEvaluators={[Ao.ExpressionType.Term]:this.term.bind(this),[Ao.ExpressionType.Variable]:this.variable.bind(this),[Ao.ExpressionType.Operator]:this.evalOperator.bind(this),[Ao.ExpressionType.SpecialOperator]:this.evalSpecialOperator.bind(this),[Ao.ExpressionType.Named]:this.evalNamed.bind(this),[Ao.ExpressionType.Existence]:this.evalExistence.bind(this),[Ao.ExpressionType.Aggregate]:this.evalAggregate.bind(this),[Ao.ExpressionType.SyncExtension]:this.evalSyncExtension.bind(this)}}evaluate(e,r){const n=this.subEvaluators[e.expressionType];if(!n)throw new WT.InvalidExpressionType(e);return n.bind(this)(e,r)}evalOperator(e,r){const n=e.args.map(a=>this.evaluate(a,r));return e.apply(n)}evalSpecialOperator(e,r){const n=this.evaluate.bind(this),a={args:e.args,mapping:r,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:n,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return e.applySynchronously(a)}evalNamed(e,r){const n=e.args.map(a=>this.evaluate(a,r));return e.apply(n)}evalSyncExtension(e,r){const n=e.args.map(a=>this.evaluate(a,r));return e.apply(n)}evalExistence(e,r){if(!this.context.exists)throw new WT.NoExistenceHook;return new Ao.BooleanLiteral(this.context.exists(e.expression,r))}evalAggregate(e,r){if(!this.context.aggregate)throw new WT.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(this.context.aggregate(e.expression))}}H2.SyncRecursiveEvaluator=che;Object.defineProperty(ly,"__esModule",{value:!0});ly.SyncEvaluator=void 0;const lhe=_s,dhe=oy,fhe=Mt,hhe=H2;class hR{static completeContext(e){const r=e.now||new Date(Date.now());return{now:r,baseIRI:e.baseIRI||void 0,functionArgumentsCache:e.functionArgumentsCache||{},superTypeProvider:{cache:e.typeCache||new lhe.LRUCache({max:1e3}),discoverer:e.getSuperType||(()=>"term")},extensionFunctionCreator:e.extensionFunctionCreator,exists:e.exists,aggregate:e.aggregate,bnode:e.bnode,defaultTimeZone:e.defaultTimeZone||(0,fhe.extractTimeZone)(r)}}constructor(e,r={}){this.algExpr=e,this.context=r;const n=r.extensionFunctionCreator||(()=>{}),a=hR.completeContext(r),s=new dhe.AlgebraTransformer({type:"sync",creator:n,...a});this.expr=s.transformAlgebra(e),this.evaluator=new hhe.SyncRecursiveEvaluator(a,s)}evaluate(e){return this.evaluator.evaluate(this.expr,e).toRDF()}evaluateAsEBV(e){return this.evaluator.evaluate(this.expr,e).coerceEBV()}evaluateAsInternal(e){return this.evaluator.evaluate(this.expr,e)}}ly.SyncEvaluator=hR;var k2={},dy={},Q2={},G2={},pa={};Object.defineProperty(pa,"__esModule",{value:!0});pa.Aggregator=pa.AggregatorComponent=void 0;const V4=sr,phe=Cl(),yhe=li,bhe=v2();class mhe{static emptyValue(){}constructor(e,r){this.sharedContext=r,this.separator=e.separator||" ",this.termTransformer=new phe.TermTransformer(r.superTypeProvider)}termToNumericOrError(e){if(e.termType!=="Literal")throw new Error(`Term with value ${e.value} has type ${e.termType} and is not a numeric literal`);if(!(0,bhe.isSubTypeOf)(e.datatype.value,yhe.TypeAlias.SPARQL_NUMERIC,this.sharedContext.superTypeProvider))throw new Error(`Term datatype ${e.datatype.value} with value ${e.value} has type ${e.termType} and is not a numeric literal`);return this.termTransformer.transformLiteral(e)}}pa.AggregatorComponent=mhe;class ghe{constructor(e,r){this.aggregatorComponent=r,this.variableValues=new Map,this.distinct=e.distinct}static emptyValue(e){return e.emptyValue()}result(){return this.aggregatorComponent.result()}put(e,r=""){this.canSkip(e,r)||(this.aggregatorComponent.put(e),this.addSeen(e,r))}canSkip(e,r){const n=this.variableValues.get(r);return this.distinct&&n!==void 0&&n.has(V4.termToString(e))}addSeen(e,r){this.distinct&&(this.variableValues.has(r)||this.variableValues.set(r,new Set),this.variableValues.get(r).add(V4.termToString(e)))}}pa.Aggregator=ghe;Object.defineProperty(G2,"__esModule",{value:!0});G2.Average=void 0;const _he=ha(),H4=Qf(),vhe=co(),k4=li,whe=pa;class pR extends whe.AggregatorComponent{constructor(){super(...arguments),this.summer=H4.regularFunctions[k4.RegularOperator.ADDITION],this.divider=H4.regularFunctions[k4.RegularOperator.DIVISION],this.state=void 0}static emptyValue(){return(0,vhe.integer)(0).toRDF()}put(e){if(this.state===void 0){const r=this.termToNumericOrError(e);this.state={sum:r,count:1}}else{const r=this.termToNumericOrError(e);this.state.sum=this.summer.apply([this.state.sum,r],this.sharedContext),this.state.count++}}result(){if(this.state===void 0)return pR.emptyValue();const e=new _he.IntegerLiteral(this.state.count);return this.divider.apply([this.state.sum,e],this.sharedContext).toRDF()}}G2.Average=pR;var z2={};Object.defineProperty(z2,"__esModule",{value:!0});z2.Count=void 0;const Q4=co(),She=pa;class yR extends She.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}static emptyValue(){return(0,Q4.integer)(0).toRDF()}put(e){this.state===void 0&&(this.state=0),this.state++}result(){return this.state===void 0?yR.emptyValue():(0,Q4.integer)(this.state).toRDF()}}z2.Count=yR;var W2={};Object.defineProperty(W2,"__esModule",{value:!0});W2.GroupConcat=void 0;const G4=co(),The=pa;class bR extends The.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}static emptyValue(){return(0,G4.string)("").toRDF()}put(e){this.state===void 0?this.state=e.value:this.state+=this.separator+e.value}result(){return this.state===void 0?bR.emptyValue():(0,G4.string)(this.state).toRDF()}}W2.GroupConcat=bR;var X2={};Object.defineProperty(X2,"__esModule",{value:!0});X2.Max=void 0;const Ehe=q2(),Ohe=pa;class mR extends Ohe.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(e){if(e.termType!=="Literal")throw new Error(`Term with value ${e.value} has type ${e.termType} and is not a literal`);this.state===void 0?this.state=e:(0,Ehe.orderTypes)(this.state,e)===-1&&(this.state=e)}result(){return this.state===void 0?mR.emptyValue():this.state}}X2.Max=mR;var K2={};Object.defineProperty(K2,"__esModule",{value:!0});K2.Min=void 0;const Ahe=q2(),xhe=pa;class gR extends xhe.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(e){if(e.termType!=="Literal")throw new Error(`Term with value ${e.value} has type ${e.termType} and is not a literal`);this.state===void 0?this.state=e:(0,Ahe.orderTypes)(this.state,e)===1&&(this.state=e)}result(){return this.state===void 0?gR.emptyValue():this.state}}K2.Min=gR;var J2={};Object.defineProperty(J2,"__esModule",{value:!0});J2.Sample=void 0;const Rhe=pa;class _R extends Rhe.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(e){this.state===void 0&&(this.state=e)}result(){return this.state===void 0?_R.emptyValue():this.state}}J2.Sample=_R;var Y2={};Object.defineProperty(Y2,"__esModule",{value:!0});Y2.Sum=void 0;const Ihe=Qf(),Phe=co(),Dhe=li,Nhe=pa;class vR extends Nhe.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.summer=Ihe.regularFunctions[Dhe.RegularOperator.ADDITION]}static emptyValue(){return(0,Phe.integer)(0).toRDF()}put(e){if(this.state===void 0)this.state=this.termToNumericOrError(e);else{const r=this.termToNumericOrError(e);this.state=this.summer.apply([this.state,r],this.sharedContext)}}result(){return this.state===void 0?vR.emptyValue():this.state.toRDF()}}Y2.Sum=vR;Object.defineProperty(Q2,"__esModule",{value:!0});Q2.aggregators=void 0;const jhe=G2,Che=z2,Fhe=W2,Mhe=X2,Lhe=K2,Bhe=J2,$he=Y2;Q2.aggregators={count:Che.Count,sum:$he.Sum,min:Lhe.Min,max:Mhe.Max,avg:jhe.Average,group_concat:Fhe.GroupConcat,sample:Bhe.Sample};var Z2={};Object.defineProperty(Z2,"__esModule",{value:!0});Z2.WildcardCountAggregator=void 0;const Uhe=sr,z4=co();class qhe{constructor(e){this.bindingValues=new Map,this.counter=0,this.distinct=e.distinct}putBindings(e){this.handleDistinct(e)||(this.counter+=1)}static emptyValue(){return(0,z4.integer)(0).toRDF()}result(){return(0,z4.integer)(this.counter).toRDF()}handleDistinct(e){if(this.distinct){const r=[...e];r.sort((u,c)=>u[0].value.localeCompare(c[0].value));const n=r.map(([u])=>u.value).join(","),a=r.map(([,u])=>Uhe.termToString(u)).join(","),s=this.bindingValues.get(n),o=s!==void 0&&s.has(a);return s||this.bindingValues.set(n,new Set),this.bindingValues.get(n).add(a),o}return!1}}Z2.WildcardCountAggregator=qhe;Object.defineProperty(dy,"__esModule",{value:!0});dy.BaseAggregateEvaluator=void 0;const W4=Tt,X4=Q2,K4=pa,J4=Z2,Vhe=Ze;class Hhe{constructor(e,r,n){this.throwError=!1,this.isWildcard=!1,this.errorOccurred=!1,this.expression=e,this.aggregator=new K4.Aggregator(e,new X4.aggregators[e.aggregator](e,r)),this.throwError=n||!1,this.isWildcard=e.expression.expressionType===W4.Algebra.expressionTypes.WILDCARD,this.isWildcard&&(this.wildcardAggregator=new J4.WildcardCountAggregator(e))}static emptyValue(e,r=!1){let n;if(e.expression.expressionType===W4.Algebra.expressionTypes.WILDCARD?n=J4.WildcardCountAggregator.emptyValue():n=K4.Aggregator.emptyValue(X4.aggregators[e.aggregator]),n===void 0&&r)throw new Vhe.EmptyAggregateError;return n}result(){if(!this.errorOccurred)return this.isWildcard?this.wildcardAggregator.result():this.aggregator.result()}}dy.BaseAggregateEvaluator=Hhe;Object.defineProperty(k2,"__esModule",{value:!0});k2.AggregateEvaluator=void 0;const khe=dy,Y4=ly;class Qhe extends khe.BaseAggregateEvaluator{constructor(e,r,n){super(e,Y4.SyncEvaluator.completeContext(r||{}),n),this.evaluator=new Y4.SyncEvaluator(e.expression,r)}put(e){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(e);else try{const r=this.evaluator.evaluate(e);this.aggregator.put(r)}catch(r){this.safeThrow(r)}}safeThrow(e){if(this.throwError)throw e;this.errorOccurred=!0}}k2.AggregateEvaluator=Qhe;var ew={};Object.defineProperty(ew,"__esModule",{value:!0});ew.AsyncAggregateEvaluator=void 0;const Z4=sy,Ghe=dy;class zhe extends Ghe.BaseAggregateEvaluator{constructor(e,r,n){super(e,Z4.AsyncEvaluator.completeContext(r||{}),n),this.evaluator=new Z4.AsyncEvaluator(e.expression,r),this.errorOccurred=!1}async put(e){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(e);else try{const r=await this.evaluator.evaluate(e);if(!r||this.errorOccurred)return;this.aggregator.put(r)}catch(r){this.safeThrow(r)}}safeThrow(e){if(this.throwError)throw e;this.errorOccurred=!0}}ew.AsyncAggregateEvaluator=zhe;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAggregateEvaluator=t.orderTypes=t.isExpressionError=t.ExpressionError=t.AggregateEvaluator=t.SyncEvaluator=t.AsyncEvaluator=void 0;var e=sy;Object.defineProperty(t,"AsyncEvaluator",{enumerable:!0,get:function(){return e.AsyncEvaluator}});var r=ly;Object.defineProperty(t,"SyncEvaluator",{enumerable:!0,get:function(){return r.SyncEvaluator}});var n=k2;Object.defineProperty(t,"AggregateEvaluator",{enumerable:!0,get:function(){return n.AggregateEvaluator}});var a=Ze;Object.defineProperty(t,"ExpressionError",{enumerable:!0,get:function(){return a.ExpressionError}}),Object.defineProperty(t,"isExpressionError",{enumerable:!0,get:function(){return a.isExpressionError}});var s=q2();Object.defineProperty(t,"orderTypes",{enumerable:!0,get:function(){return s.orderTypes}});var o=ew;Object.defineProperty(t,"AsyncAggregateEvaluator",{enumerable:!0,get:function(){return o.AsyncAggregateEvaluator}})})(jl);Object.defineProperty(g2,"__esModule",{value:!0});g2.ActorQueryOperationExtend=void 0;const Whe=Hn,I1=ft,XT=jl;class Xhe extends I1.ActorQueryOperationTypedMediated{constructor(e){super(e,"extend")}async testOperation(e,r){return new XT.AsyncEvaluator(e.expression,I1.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation)),!0}async runOperation(e,r){const{expression:n,input:a,variable:s}=e,o=I1.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:a,context:r}));if((await o.metadata()).variables.some(h=>h.equals(s)))throw new Error(`Illegal binding to variable '${s.value}' that has already been bound`);const u={...I1.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation)},c=new XT.AsyncEvaluator(n,u),l=async(h,f,p)=>{try{const b=await c.evaluate(h),y=h.set(s,b);p(y)}catch(b){(0,XT.isExpressionError)(b)?(p(h),this.logWarn(r,`Expression error for extend operation (${b.message})with bindings '${(0,Whe.bindingsToString)(h)}'`)):d.emit("error",b)}f()},d=o.bindingsStream.transform({autoStart:!1,transform:l});return{type:"bindings",bindingsStream:d,async metadata(){const h=await o.metadata();return{...h,variables:[...h.variables,s]}}}}}g2.ActorQueryOperationExtend=Xhe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(g2,t)})(K7);var EL={},tw={};Object.defineProperty(tw,"__esModule",{value:!0});tw.ActorQueryOperationFilterSparqlee=void 0;const Khe=Hn,wh=ft,KT=jl;class Jhe extends wh.ActorQueryOperationTypedMediated{constructor(e){super(e,"filter")}async testOperation(e,r){const n={...wh.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation)};return new KT.AsyncEvaluator(e.expression,n),!0}async runOperation(e,r){const n=await this.mediatorQueryOperation.mediate({operation:e.input,context:r}),a=wh.ActorQueryOperation.getSafeBindings(n);wh.ActorQueryOperation.validateQueryOutput(a,"bindings");const s={...wh.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation)},o=new KT.AsyncEvaluator(e.expression,s),u=async(l,d,h)=>{try{await o.evaluateAsEBV(l)&&h(l)}catch(f){(0,KT.isExpressionError)(f)?this.logWarn(r,"Error occurred while filtering.",()=>({error:f,bindings:(0,Khe.bindingsToString)(l)})):c.emit("error",f)}d()},c=a.bindingsStream.transform({transform:u,autoStart:!1});return{type:"bindings",bindingsStream:c,metadata:a.metadata}}}tw.ActorQueryOperationFilterSparqlee=Jhe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(tw,t)})(EL);var OL={},rw={};Object.defineProperty(rw,"__esModule",{value:!0});rw.ActorQueryOperationFromQuad=void 0;const Yhe=ft,Up=Tt;class pr extends Yhe.ActorQueryOperationTypedMediated{constructor(e){super(e,"from")}static copyOperation(e,r){const n={};for(const a of Object.keys(e))Array.isArray(e[a])&&a!=="template"?a==="variables"?n[a]=e[a]:n[a]=e[a].map(r):pr.ALGEBRA_TYPES.includes(e[a].type)?n[a]=r(e[a]):n[a]=e[a];return n}static applyOperationDefaultGraph(e,r){if(e.type==="bgp"&&e.patterns.length>0||e.type==="path"||e.type==="pattern"){if(e.type==="bgp")return pr.joinOperations(e.patterns.map(a=>{if(a.graph.termType!=="DefaultGraph")return pr.FACTORY.createBgp([a]);const s=r.map(o=>pr.FACTORY.createBgp([pr.FACTORY.createPattern(a.subject,a.predicate,a.object,o)]));return pr.unionOperations(s)}));if(e.graph.termType!=="DefaultGraph")return e;const n=r.map(a=>e.type==="path"?pr.FACTORY.createPath(e.subject,e.predicate,e.object,a):pr.FACTORY.createPattern(e.subject,e.predicate,e.object,a));return pr.unionOperations(n)}return pr.copyOperation(e,n=>this.applyOperationDefaultGraph(n,r))}static applyOperationNamedGraph(e,r,n){if(e.type==="bgp"&&e.patterns.length>0||e.type==="path"||e.type==="pattern"){const a=e.type==="bgp"?e.patterns[0].graph:e.graph;if(a.termType==="DefaultGraph")return{type:Up.Algebra.types.BGP,patterns:[]};if(a.termType==="Variable"){if(r.length===1){const o=r[0],u={};u[`?${a.value}`]=o;const c=pr.FACTORY.createValues([a],[u]);let l;return e.type==="bgp"?l=pr.FACTORY.createBgp(e.patterns.map(d=>pr.FACTORY.createPattern(d.subject,d.predicate,d.object,o))):e.type==="path"?l=pr.FACTORY.createPath(e.subject,e.predicate,e.object,o):l=pr.FACTORY.createPattern(e.subject,e.predicate,e.object,o),pr.FACTORY.createJoin([c,l])}return pr.unionOperations(r.map(o=>pr.applyOperationNamedGraph(e,[o],n)))}return[...r,...n].some(o=>o.equals(a))?e:{type:Up.Algebra.types.BGP,patterns:[]}}return pr.copyOperation(e,a=>this.applyOperationNamedGraph(a,r,n))}static joinOperations(e){if(e.length===1)return e[0];if(e.length>1)return pr.FACTORY.createJoin(e);throw new Error("A join can only be applied on at least one operation")}static unionOperations(e){if(e.length===1)return e[0];if(e.length>1)return pr.FACTORY.createUnion(e);throw new Error("A union can only be applied on at least one operation")}static createOperation(e){let r=e.input;return e.default.length>0&&(r=pr.applyOperationDefaultGraph(r,e.default)),(e.named.length>0||e.default.length>0)&&(r=pr.applyOperationNamedGraph(r,e.named,e.default)),r}async testOperation(e,r){return!0}async runOperation(e,r){const n=pr.createOperation(e);return this.mediatorQueryOperation.mediate({operation:n,context:r})}}rw.ActorQueryOperationFromQuad=pr;pr.FACTORY=new Up.Factory;pr.ALGEBRA_TYPES=Object.keys(Up.Algebra.types).map(t=>Up.Algebra.types[t]);(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(rw,t)})(OL);var AL={},nw={};Object.defineProperty(nw,"__esModule",{value:!0});nw.ActorQueryOperationNop=void 0;const Zhe=Hn,epe=ft,tpe=ba,rpe=Wt,npe=new Zhe.BindingsFactory;class ipe extends epe.ActorQueryOperationTypedMediated{constructor(e){super(e,"nop")}async testOperation(e,r){return!0}async runOperation(e,r){return{bindingsStream:new rpe.SingletonIterator(npe.bindings()),metadata:()=>Promise.resolve({state:new tpe.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}}nw.ActorQueryOperationNop=ipe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(nw,t)})(AL);var xL={},iw={},aw={};Object.defineProperty(aw,"__esModule",{value:!0});aw.SortIterator=void 0;const ape=Wt;class spe extends ape.TransformIterator{constructor(e,r,n){super(e,n);const a=n&&n.window;this.windowLength=Number.isFinite(a)&&a>0?a:Number.POSITIVE_INFINITY,this.sort=r,this.sorted=[]}_read(e,r){let n,{length:a}=this.sorted;for(;a!==this.windowLength&&(n=this.source.read(),n!==null);){let s=0,o=a-1,u,c;for(;s<=o;)u=Math.trunc((s+o)/2),c=this.sort(n,this.sorted[u]),c<0?s=u+1:c>0?o=u-1:(s=u,o=-1);this.sorted.splice(s,0,n),a++}a===this.windowLength&&this._push(this.sorted.pop()),r()}_flush(e){let{length:r}=this.sorted;for(;r--;)this._push(this.sorted.pop());e()}}aw.SortIterator=spe;Object.defineProperty(iw,"__esModule",{value:!0});iw.ActorQueryOperationOrderBySparqlee=void 0;const P1=ft,D1=jl,e6=Tt,ope=aw;class upe extends P1.ActorQueryOperationTypedMediated{constructor(e){super(e,"orderby"),this.window=e.window??Number.POSITIVE_INFINITY}async testOperation(e,r){for(let n of e.expressions)n=this.extractSortExpression(n),new D1.AsyncEvaluator(n,P1.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation));return!0}async runOperation(e,r){const n=await this.mediatorQueryOperation.mediate({operation:e.input,context:r}),a=P1.ActorQueryOperation.getSafeBindings(n),s={window:this.window},o={...P1.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation)};let{bindingsStream:u}=a;for(let c=e.expressions.length-1;c>=0;c--){let l=e.expressions[c];const d=this.isAscending(l);l=this.extractSortExpression(l);const h=new D1.AsyncEvaluator(l,o),f=async(y,S,w)=>{try{const I=await h.evaluate(y);w({bindings:y,result:I})}catch(I){(0,D1.isExpressionError)(I)||u.emit("error",I),w({bindings:y,result:void 0})}S()},p=u.transform({transform:f});u=new ope.SortIterator(p,(y,S)=>{let w=(0,D1.orderTypes)(y.result,S.result);return d||(w*=-1),w},s).map(({bindings:y,result:S})=>y)}return{type:"bindings",bindingsStream:u,metadata:a.metadata}}extractSortExpression(e){const{expressionType:r,operator:n}=e;return r!==e6.Algebra.expressionTypes.OPERATOR?e:n==="desc"?e.args[0]:e}isAscending(e){const{expressionType:r,operator:n}=e;return r!==e6.Algebra.expressionTypes.OPERATOR?!0:n!=="desc"}}iw.ActorQueryOperationOrderBySparqlee=upe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(iw,t)})(xL);var RL={},sw={};Object.defineProperty(sw,"__esModule",{value:!0});sw.ActorQueryOperationProject=void 0;const t6=ft,cpe=qm,lpe=yt,dpe=new lpe.DataFactory;class fpe extends t6.ActorQueryOperationTypedMediated{constructor(e){super(e,"project")}async testOperation(e,r){return!0}async runOperation(e,r){const n=t6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:r})),a=await n.metadata(),s=e.variables,o=a.variables.filter(d=>!s.some(h=>d.value===h.value)),u=s.filter(d=>!a.variables.some(h=>d.value===h.value));if(u.length>0)throw new Error(`Variables '${u.map(d=>`?${d.value}`)}' are used in the projection result, but are not assigned.`);let c=o.length===0?n.bindingsStream:n.bindingsStream.transform({map(d){for(const h of o)d=d.delete(h);return d},autoStart:!1}),l=0;return c=c.transform({map(d){l++;const h=new Map;return d.map(f=>{if(f instanceof cpe.BlankNodeBindingsScoped){let p=h.get(f.value);return p||(p=dpe.blankNode(`${f.value}${l}`),h.set(f.value,p)),p}return f})},autoStart:!1}),{type:"bindings",bindingsStream:c,metadata:async()=>({...a,variables:s})}}}sw.ActorQueryOperationProject=fpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(sw,t)})(RL);var IL={},ow={};Object.defineProperty(ow,"__esModule",{value:!0});ow.ActorQueryOperationService=void 0;const hpe=Hn,r6=ft,N1=Ht,ppe=ba,ype=Wt,bpe=new hpe.BindingsFactory;class mpe extends r6.ActorQueryOperationTypedMediated{constructor(e){super(e,"service")}async testOperation(e,r){if(e.name.termType!=="NamedNode")throw new Error(`${this.name} can only query services by IRI, while a ${e.name.termType} was given.`);return!0}async runOperation(e,r){const n=e.name.value;let a=r.delete(N1.KeysRdfResolveQuadPattern.source).delete(N1.KeysRdfResolveQuadPattern.sources).delete(N1.KeysInitQuery.queryString);const s=this.forceSparqlEndpoint?"sparql":void 0;a=a.set(N1.KeysRdfResolveQuadPattern.sources,[{type:s,value:n}]);let o;try{o=r6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:a}))}catch(u){if(e.silent)o={bindingsStream:new ype.SingletonIterator(bpe.bindings()),type:"bindings",metadata:async()=>({state:new ppe.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})};else throw u}return o}}ow.ActorQueryOperationService=mpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ow,t)})(IL);var PL={},uw={};Object.defineProperty(uw,"__esModule",{value:!0});uw.ActorQueryOperationSlice=void 0;const gpe=ft,_pe=Ht;class vpe extends gpe.ActorQueryOperationTypedMediated{constructor(e){super(e,"slice")}async testOperation(e,r){return!0}async runOperation(e,r){e.length&&(r=r.set(_pe.KeysQueryOperation.limitIndicator,e.length));const n=await this.mediatorQueryOperation.mediate({operation:e.input,context:r});if(n.type==="bindings")return{type:"bindings",bindingsStream:this.sliceStream(n.bindingsStream,e),metadata:this.sliceMetadata(n,e)};if(n.type==="quads")return{type:"quads",quadStream:this.sliceStream(n.quadStream,e),metadata:this.sliceMetadata(n,e)};throw new Error(`Invalid query output type: Expected 'bindings' or 'quads' but got '${n.type}'`)}sliceStream(e,r){const n=!!r.length||r.length===0,{start:a}=r,s=n?r.start+r.length-1:Number.POSITIVE_INFINITY;return e.transform({offset:a,limit:Math.max(s-a+1,0),autoStart:!1})}sliceMetadata(e,r){const n=!!r.length||r.length===0;return()=>e.metadata().then(a=>{const s={...a.cardinality};return Number.isFinite(s.value)&&(s.value=Math.max(0,s.value-r.start),n&&(s.value=Math.min(s.value,r.length))),{...a,cardinality:s}})}}uw.ActorQueryOperationSlice=vpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(uw,t)})(PL);var DL={},cw={},su={},lw={},fy={};Object.defineProperty(fy,"__esModule",{value:!0});fy.PathVariableObjectIterator=void 0;const wpe=ft,Spe=Wt,Tpe=yt,Epe=sr,Ope=Tt,Ape=new Tpe.DataFactory,xpe=new Ope.Factory;class Rpe extends Spe.BufferedIterator{constructor(e,r,n,a,s,o,u=16){super({autoStart:!0}),this.subject=e,this.predicate=r,this.graph=n,this.context=a,this.mediatorQueryOperation=s,this.maxRunningOperations=u,this.termHashes=new Map,this.runningOperations=[],this.pendingOperations=[],this._push(this.subject,o)}_end(e){for(const r of this.runningOperations)r.destroy();super._end(e)}_push(e,r=!0){let n;if(r&&(n=(0,Epe.termToString)(e),this.termHashes.has(n)))return;const a=Ape.variable("b");this.pendingOperations.push({variable:a,operation:xpe.createPath(e,this.predicate,a,this.graph)}),n&&(this.termHashes.set(n,e),super._push(e))}_read(e,r){const n=this;(async function(){for(;n.runningOperations.lengthn.destroy(l)),c.on("readable",()=>{n.readable=!0,n._fillBufferAsync()}),c.on("end",()=>{n.runningOperations.splice(n.runningOperations.indexOf(c),1),n.readable=!0,n._fillBufferAsync()})),n.setProperty("metadata",u.metadata)}let a=0,s;for(;a!==(a=e);)for(let o=0;o0;o++)(s=n.runningOperations[o].read())!==null&&(e--,n._push(s));n.runningOperations.length===0&&n.pendingOperations.length===0&&n.close()})().then(()=>{r()},a=>this.destroy(a))}}fy.PathVariableObjectIterator=Rpe;Object.defineProperty(lw,"__esModule",{value:!0});lw.ActorAbstractPath=void 0;const Ipe=Hn,Sh=ft,JT=Ht,j1=Wt,Ppe=yt,YT=sr,Dpe=Tt,Npe=fy,jpe=new Ppe.DataFactory,ZT=new Ipe.BindingsFactory;class Ns extends Sh.ActorQueryOperationTypedMediated{constructor(e,r){super(e,"path"),this.predicateType=r}async testOperation(e,r){if(e.predicate.type!==this.predicateType)throw new Error(`This Actor only supports ${this.predicateType} Path operations.`);return!0}generateVariable(e,r){return r?e&&(e.subject.value===r||e.object.value===r)?this.generateVariable(e,`${r}b`):jpe.variable(r):this.generateVariable(e,"b")}async isPathArbitraryLengthDistinct(e,r){return e.get(JT.KeysQueryOperation.isPathArbitraryLengthDistinctKey)?(e=e.set(JT.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!1),{context:e,operation:void 0}):(e=e.set(JT.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!0),{context:e,operation:Sh.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:Ns.FACTORY.createDistinct(r),context:e}))})}async predicateStarGraphVariable(e,r,n,a,s){const o=this.generateVariable(Ns.FACTORY.createPath(e,n,r,a)),u=Ns.FACTORY.createUnion([Ns.FACTORY.createPattern(e,o,r,a),Ns.FACTORY.createPattern(r,o,e,a)]),c=Sh.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:s,operation:u})),l=new Set;return{bindingsStream:new j1.MultiTransformIterator(c.bindingsStream,{multiTransform:h=>{const f=h.get(a);return l.has(f.value)?new j1.EmptyIterator:(l.add(f.value),new j1.TransformIterator(async()=>{const p=new j1.BufferedIterator;return await this.getObjectsPredicateStar(e,n,f,s,{},p,{count:0}),p.transform({transform(b,y,S){S(ZT.bindings([[r,b],[a,f]])),y()}})},{maxBufferSize:128}))},autoStart:!1}),metadata:c.metadata}}async getObjectsPredicateStarEval(e,r,n,a,s,o){if(a.termType==="Variable")return this.predicateStarGraphVariable(e,n,r,a,s);const u=new Npe.PathVariableObjectIterator(e,r,a,s,this.mediatorQueryOperation,o);return{bindingsStream:u.transform({autoStart:!1,transform(l,d,h){h(ZT.bindings([[n,l]])),d()}}),async metadata(){const l=await new Promise(d=>{u.getProperty("metadata",h=>d(h()))});return l.cardinality.value++,l}}}async getObjectsPredicateStar(e,r,n,a,s,o,u){const c=(0,YT.termToString)(e);if(s[c])return;o._push(e),s[c]=e,u.count++;const l=this.generateVariable(),d=Ns.FACTORY.createPath(e,r,l,n),h=Sh.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:d,context:a}));return h.bindingsStream.on("data",async f=>{const p=f.get(l);await this.getObjectsPredicateStar(p,r,n,a,s,o,u)}),h.bindingsStream.on("end",()=>{--u.count===0&&o.close()}),h.metadata}async getSubjectAndObjectBindingsPredicateStar(e,r,n,a,s,o,u,c,l,d,h){const f=(0,YT.termToString)(a)+(0,YT.termToString)(o);if(l[f])return;if(h.count++,l[f]=!0,d._push(ZT.bindings([[e,n],[r,a]])),f in c){const b=await c[f];for(const y of b)await this.getSubjectAndObjectBindingsPredicateStar(e,r,n,y,s,o,u,c,l,d,h);--h.count===0&&d.close();return}const p=new Promise(async(b,y)=>{const S=[],w=this.generateVariable(),I=Ns.FACTORY.createPath(a,s,w,o),O=Sh.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:I,context:u}));O.bindingsStream.on("data",async T=>{const x=T.get(w);S.push(x),await this.getSubjectAndObjectBindingsPredicateStar(e,r,n,x,s,o,u,c,l,d,h)}),O.bindingsStream.on("error",y),O.bindingsStream.on("end",()=>{--h.count===0&&d.close(),b(S)})});c[f]=p}}lw.ActorAbstractPath=Ns;Ns.FACTORY=new Dpe.Factory;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(lw,t),r(fy,t)})(su);Object.defineProperty(cw,"__esModule",{value:!0});cw.ActorQueryOperationPathAlt=void 0;const n6=su,Cpe=y2,Fpe=ft,Mpe=Wt,Lpe=Tt;class Bpe extends n6.ActorAbstractPath{constructor(e){super(e,Lpe.Algebra.types.ALT)}async runOperation(e,r){const n=e.predicate,a=(await Promise.all(n.input.map(u=>this.mediatorQueryOperation.mediate({context:r,operation:n6.ActorAbstractPath.FACTORY.createPath(e.subject,u,e.object,e.graph)})))).map(Fpe.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new Mpe.UnionIterator(a.map(u=>u.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(a.map(u=>u.metadata())).then(u=>Cpe.ActorQueryOperationUnion.unionMetadata(u,!0))}}}cw.ActorQueryOperationPathAlt=Bpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(cw,t)})(DL);var NL={},dw={};Object.defineProperty(dw,"__esModule",{value:!0});dw.ActorQueryOperationPathInv=void 0;const i6=su,$pe=Tt;class Upe extends i6.ActorAbstractPath{constructor(e){super(e,$pe.Algebra.types.INV)}async runOperation(e,r){const n=e.predicate,a=i6.ActorAbstractPath.FACTORY.createPath(e.object,n.path,e.subject,e.graph);return this.mediatorQueryOperation.mediate({operation:a,context:r})}}dw.ActorQueryOperationPathInv=Upe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(dw,t)})(NL);var jL={},fw={};Object.defineProperty(fw,"__esModule",{value:!0});fw.ActorQueryOperationPathLink=void 0;const a6=su,qpe=Tt;class Vpe extends a6.ActorAbstractPath{constructor(e){super(e,qpe.Algebra.types.LINK)}async runOperation(e,r){const n=e.predicate,a=a6.ActorAbstractPath.FACTORY.createPattern(e.subject,n.iri,e.object,e.graph);return this.mediatorQueryOperation.mediate({operation:a,context:r})}}fw.ActorQueryOperationPathLink=Vpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(fw,t)})(jL);var CL={},hw={};Object.defineProperty(hw,"__esModule",{value:!0});hw.ActorQueryOperationPathNps=void 0;const s6=su,Hpe=ft,kpe=Tt;class Qpe extends s6.ActorAbstractPath{constructor(e){super(e,kpe.Algebra.types.NPS)}async runOperation(e,r){const n=e.predicate,a=this.generateVariable(e),s=s6.ActorAbstractPath.FACTORY.createPattern(e.subject,a,e.object,e.graph),o=Hpe.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:s,context:r}));return{type:"bindings",bindingsStream:o.bindingsStream.transform({filter(c){return!n.iris.some(l=>l.equals(c.get(a)))},transform(c,l,d){d(c.delete(a)),l()}}),metadata:o.metadata}}}hw.ActorQueryOperationPathNps=Qpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(hw,t)})(CL);var FL={},pw={};Object.defineProperty(pw,"__esModule",{value:!0});pw.ActorQueryOperationPathOneOrMore=void 0;const Ac=su,Gpe=Hn,o6=ft,eE=Wt,zpe=Tt,u6=new Gpe.BindingsFactory;class Wpe extends Ac.ActorAbstractPath{constructor(e){super(e,zpe.Algebra.types.ONE_OR_MORE_PATH)}async runOperation(e,r){const n=await this.isPathArbitraryLengthDistinct(r,e);if(n.operation)return n.operation;r=n.context;const a=e.predicate;if(e.subject.termType!=="Variable"&&e.object.termType==="Variable"){const c=e.object,l=await this.getObjectsPredicateStarEval(e.subject,a.path,c,e.graph,r,!1),d=e.graph.termType==="Variable"?[c,e.graph]:[c];return{type:"bindings",bindingsStream:l.bindingsStream,metadata:async()=>({...await l.metadata(),variables:d})}}if(e.subject.termType==="Variable"&&e.object.termType==="Variable"){const c=Ac.ActorAbstractPath.FACTORY.createDistinct(Ac.ActorAbstractPath.FACTORY.createPath(e.subject,e.predicate.path,e.object,e.graph)),l=o6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:r,operation:c})),d=e.subject,h=e.object,f={},p=new eE.MultiTransformIterator(l.bindingsStream,{multiTransform:y=>{const S=y.get(d),w=y.get(h),I=e.graph.termType==="Variable"?y.get(e.graph):e.graph;return new eE.TransformIterator(async()=>{const O=new eE.BufferedIterator;return await this.getSubjectAndObjectBindingsPredicateStar(d,h,S,w,a.path,I,r,f,{},O,{count:0}),O.transform({transform(T,x,P){e.graph.termType==="Variable"&&(T=T.set(e.graph,I)),P(T),x()}})},{maxBufferSize:128})},autoStart:!1}),b=e.graph.termType==="Variable"?[d,h,e.graph]:[d,h];return{type:"bindings",bindingsStream:p,metadata:async()=>({...await l.metadata(),variables:b})}}if(e.subject.termType==="Variable"&&e.object.termType!=="Variable")return this.mediatorQueryOperation.mediate({context:r,operation:Ac.ActorAbstractPath.FACTORY.createPath(e.object,Ac.ActorAbstractPath.FACTORY.createOneOrMorePath(Ac.ActorAbstractPath.FACTORY.createInv(a.path)),e.subject,e.graph)});const s=this.generateVariable(),o=o6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:r,operation:Ac.ActorAbstractPath.FACTORY.createPath(e.subject,a,s,e.graph)}));return{type:"bindings",bindingsStream:o.bindingsStream.transform({filter:c=>e.object.equals(c.get(s)),transform(c,l,d){const h=e.graph.termType==="Variable"?u6.bindings([[e.graph,c.get(e.graph)]]):u6.bindings();d(h),l()}}),metadata:async()=>({...await o.metadata(),variables:e.graph.termType==="Variable"?[e.graph]:[]})}}}pw.ActorQueryOperationPathOneOrMore=Wpe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(pw,t)})(FL);var ML={},yw={};Object.defineProperty(yw,"__esModule",{value:!0});yw.ActorQueryOperationPathZeroOrMore=void 0;const tE=su,Xpe=Hn,Kpe=ft,C1=Wt,F1=sr,Jpe=Tt,c6=new Xpe.BindingsFactory;class Ype extends tE.ActorAbstractPath{constructor(e){super(e,Jpe.Algebra.types.ZERO_OR_MORE_PATH)}async runOperation(e,r){const n=await this.isPathArbitraryLengthDistinct(r,e);if(n.operation)return n.operation;r=n.context;const a=e.predicate,s=e.subject.termType==="Variable",o=e.object.termType==="Variable";if(e.subject.termType==="Variable"&&e.object.termType==="Variable"){const f=this.generateVariable(e),p=tE.ActorAbstractPath.FACTORY.createPattern(e.subject,f,e.object,e.graph),b=Kpe.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:r,operation:p})),y=e.subject,S=e.object,w=new Set,I={},O=new C1.MultiTransformIterator(b.bindingsStream,{multiTransform:x=>{const P=x.get(y),B=x.get(S),Q=e.graph.termType==="Variable"?x.get(e.graph):e.graph,N=(0,F1.termToString)(P)+(0,F1.termToString)(Q),D=(0,F1.termToString)(B)+(0,F1.termToString)(Q);return new C1.TransformIterator(async()=>{if(w.has(N)&&w.has(D))return new C1.EmptyIterator;const F=new C1.BufferedIterator,W={count:0};return w.has(N)||(w.add(N),await this.getSubjectAndObjectBindingsPredicateStar(y,S,P,P,a.path,Q,r,I,{},F,W)),w.has(D)||(w.add(D),await this.getSubjectAndObjectBindingsPredicateStar(y,S,B,B,a.path,Q,r,I,{},F,W)),F.transform({transform(z,M,C){e.graph.termType==="Variable"&&(z=z.set(e.graph,Q)),C(z),M()}})})}}),T=e.graph.termType==="Variable"?[y,e.object,e.graph]:[y,e.object];return{type:"bindings",bindingsStream:O,metadata:async()=>({...await b.metadata(),variables:T})}}if(!s&&!o){const f=this.generateVariable(),p=await this.getObjectsPredicateStarEval(e.subject,a.path,f,e.graph,r,!0);return{type:"bindings",bindingsStream:p.bindingsStream.transform({filter:y=>e.object.equals(y.get(f)),transform(y,S,w){const I=e.graph.termType==="Variable"?c6.bindings([[e.graph,y.get(e.graph)]]):c6.bindings();w(I),S()}}),metadata:async()=>({...await p.metadata(),variables:e.graph.termType==="Variable"?[e.graph]:[]})}}const u=s?e.object:e.subject,c=s?e.subject:e.object,l=s?tE.ActorAbstractPath.FACTORY.createInv(a.path):a.path,d=await this.getObjectsPredicateStarEval(u,l,c,e.graph,r,!0),h=e.graph.termType==="Variable"?[c,e.graph]:[c];return{type:"bindings",bindingsStream:d.bindingsStream,metadata:async()=>({...await d.metadata(),variables:h})}}}yw.ActorQueryOperationPathZeroOrMore=Ype;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(yw,t)})(ML);var LL={},bw={};Object.defineProperty(bw,"__esModule",{value:!0});bw.ActorQueryOperationPathZeroOrOne=void 0;const xc=su,Zpe=Hn,l6=ft,e0e=ba,d6=Wt,t0e=Tt,rE=new Zpe.BindingsFactory;class r0e extends xc.ActorAbstractPath{constructor(e){super(e,t0e.Algebra.types.ZERO_OR_ONE_PATH)}async runOperation(e,r){const n=e.predicate,a=[];if(e.subject.termType!=="Variable"&&e.object.termType!=="Variable"&&e.subject.equals(e.object))return{type:"bindings",bindingsStream:new d6.SingletonIterator(rE.bindings()),metadata:()=>Promise.resolve({state:new e0e.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})};const s=await this.isPathArbitraryLengthDistinct(r,e);if(s.operation)return s.operation;r=s.context;const o=l6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:r,operation:xc.ActorAbstractPath.FACTORY.createPath(e.subject,n.path,e.object,e.graph)}));let u;if(e.subject.termType==="Variable"&&e.object.termType==="Variable"){const c=this.generateVariable(e),l=l6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:r,operation:xc.ActorAbstractPath.FACTORY.createFilter(xc.ActorAbstractPath.FACTORY.createPattern(e.subject,c,e.object,e.graph),xc.ActorAbstractPath.FACTORY.createOperatorExpression("=",[xc.ActorAbstractPath.FACTORY.createTermExpression(e.subject),xc.ActorAbstractPath.FACTORY.createTermExpression(e.object)]))})).bindingsStream.transform({map(d){return d.delete(c)},autoStart:!1});u=new d6.UnionIterator([l,o.bindingsStream],{autoStart:!1})}else e.subject.termType==="Variable"&&a.push(rE.bindings([[e.subject,e.object]])),e.object.termType==="Variable"&&a.push(rE.bindings([[e.object,e.subject]])),u=o.bindingsStream.prepend(a);return{type:"bindings",bindingsStream:u,metadata:o.metadata}}}bw.ActorQueryOperationPathZeroOrOne=r0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(bw,t)})(LL);var BL={},mw={};Object.defineProperty(mw,"__esModule",{value:!0});mw.ActorQueryOperationAddRewrite=void 0;const f6=ft,n0e=yt,i0e=Tt,bu=new n0e.DataFactory;class a0e extends f6.ActorQueryOperationTypedMediated{constructor(e){super(e,"add"),this.factory=new i0e.Factory}async testOperation(e,r){return f6.ActorQueryOperation.throwOnReadOnly(r),!0}runOperation(e,r){const n=e.destination==="DEFAULT"?bu.defaultGraph():e.destination,a=e.source==="DEFAULT"?bu.defaultGraph():e.source,s=this.factory.createDeleteInsert(void 0,[this.factory.createPattern(bu.variable("s"),bu.variable("p"),bu.variable("o"),n)],this.factory.createPattern(bu.variable("s"),bu.variable("p"),bu.variable("o"),a));return this.mediatorQueryOperation.mediate({operation:s,context:r})}}mw.ActorQueryOperationAddRewrite=a0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(mw,t)})(BL);var $L={},gw={};Object.defineProperty(gw,"__esModule",{value:!0});gw.ActorQueryOperationUpdateCompositeUpdate=void 0;const nE=ft;class s0e extends nE.ActorQueryOperationTypedMediated{constructor(e){super(e,"compositeupdate")}async testOperation(e,r){return nE.ActorQueryOperation.throwOnReadOnly(r),!0}async runOperation(e,r){return{type:"void",execute:()=>(async()=>{for(const a of e.updates)await nE.ActorQueryOperation.getSafeVoid(await this.mediatorQueryOperation.mediate({operation:a,context:r})).execute()})()}}}gw.ActorQueryOperationUpdateCompositeUpdate=s0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gw,t)})($L);var UL={},_w={};Object.defineProperty(_w,"__esModule",{value:!0});_w.ActorQueryOperationCopyRewrite=void 0;const h6=ft,o0e=Tt;class u0e extends h6.ActorQueryOperationTypedMediated{constructor(e){super(e,"copy"),this.factory=new o0e.Factory}async testOperation(e,r){return h6.ActorQueryOperation.throwOnReadOnly(r),!0}runOperation(e,r){if(typeof e.destination=="string"&&typeof e.source=="string"&&e.destination===e.source||typeof e.destination!="string"&&typeof e.source!="string"&&e.destination.equals(e.source))return Promise.resolve({type:"void",execute:()=>Promise.resolve()});const n=this.factory.createCompositeUpdate([this.factory.createDrop(e.destination,!0),this.factory.createAdd(e.source,e.destination,e.silent)]);return this.mediatorQueryOperation.mediate({operation:n,context:r})}}_w.ActorQueryOperationCopyRewrite=u0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_w,t)})(UL);var qL={},vw={};Object.defineProperty(vw,"__esModule",{value:!0});vw.ActorQueryOperationMoveRewrite=void 0;const p6=ft,c0e=Tt;class l0e extends p6.ActorQueryOperationTypedMediated{constructor(e){super(e,"move"),this.factory=new c0e.Factory}async testOperation(e,r){return p6.ActorQueryOperation.throwOnReadOnly(r),!0}runOperation(e,r){if(typeof e.destination=="string"&&typeof e.source=="string"&&e.destination===e.source||typeof e.destination!="string"&&typeof e.source!="string"&&e.destination.equals(e.source))return Promise.resolve({type:"void",execute:()=>Promise.resolve()});const n=[this.factory.createDrop(e.destination,!0),this.factory.createAdd(e.source,e.destination,e.silent),this.factory.createDrop(e.source)],a=this.factory.createCompositeUpdate(n);return this.mediatorQueryOperation.mediate({operation:a,context:r})}}vw.ActorQueryOperationMoveRewrite=l0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(vw,t)})(qL);var wR={},ww={};Object.defineProperty(ww,"__esModule",{value:!0});ww.ActionObserverHttp=void 0;const d0e=et;let f0e=class extends d0e.ActionObserver{constructor(e){super(e),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(e,r,n){this.requests++}};ww.ActionObserverHttp=f0e;var Sw={};Object.defineProperty(Sw,"__esModule",{value:!0});Sw.ActorQueryResultSerializeSparqlJson=void 0;const h0e=bs,p0e=Kt;class xd extends h0e.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToJsonBindings(e){if(e.termType==="Literal"){const r=e,n={value:r.value,type:"literal"},{language:a}=r,{datatype:s}=r;return a?n["xml:lang"]=a:s&&s.value!=="http://www.w3.org/2001/XMLSchema#string"&&(n.datatype=s.value),n}return e.termType==="BlankNode"?{value:e.value,type:"bnode"}:e.termType==="Quad"?{value:{subject:xd.bindingToJsonBindings(e.subject),predicate:xd.bindingToJsonBindings(e.predicate),object:xd.bindingToJsonBindings(e.object)},type:"triple"}:{value:e.value,type:"uri"}}async testHandleChecked(e,r){if(!["bindings","boolean"].includes(e.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(e,r,n){const a=new p0e.Readable;a._read=()=>{};const s={};if(e.type==="bindings"){const u=await e.metadata();u.variables.length>0&&(s.vars=u.variables.map(c=>c.value))}a.push(`{"head": ${JSON.stringify(s)}, -`);let o=!0;if(e.type==="bindings"){const u=e.bindingsStream;u.on("error",c=>{a.emit("error",c)}),u.on("data",c=>{o?a.push(`"results": { "bindings": [ -`):a.push(`, -`);const l=Object.fromEntries([...c].map(([d,h])=>[d.value,xd.bindingToJsonBindings(h)]));a.push(JSON.stringify(l)),o=!1}),u.on("end",()=>{o&&a.push(`"results": { "bindings": [ -`),a.push(` -]}`),this.emitMetadata&&a.push(`, -"metadata": { "httpRequests": ${this.httpObserver.requests} }`),a.push(`} -`),a.push(null)})}else try{a.push(`"boolean":${await e.execute()} -} -`),a.push(null)}catch(u){a.once("newListener",()=>a.emit("error",u))}return{data:a}}}Sw.ActorQueryResultSerializeSparqlJson=xd;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(ww,t),r(Sw,t)})(wR);var SR={},Tw={};Object.defineProperty(Tw,"__esModule",{value:!0});Tw.ActionObserverHttp=void 0;const y0e=et;class b0e extends y0e.ActionObserver{constructor(e){super(e),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(e,r,n){this.requests++}}Tw.ActionObserverHttp=b0e;var Ew={};Object.defineProperty(Ew,"__esModule",{value:!0});Ew.ActorQueryResultSerializeStats=void 0;const m0e=bs,g0e=Kt,_0e=ru();class v0e extends m0e.ActorQueryResultSerializeFixedMediaTypes{constructor(e){super(e)}async testHandleChecked(e,r){if(!["bindings","quads"].includes(e.type))throw new Error("This actor can only handle bindings streams or quad streams.");return!0}pushHeader(e){const r=["Result","Delay (ms)","HTTP requests"].join(",");e.push(`${r} -`)}pushStat(e,r,n){const a=[n,this.delay(r),this.httpObserver.requests].join(",");e.push(`${a} -`)}pushFooter(e,r){const n=["TOTAL",this.delay(r),this.httpObserver.requests].join(",");e.push(`${n} -`),e.push(null)}async runHandle(e,r,n){const a=new g0e.Readable;a._read=()=>{};const s=e.type==="bindings"?e.bindingsStream:e.quadStream,o=this.now();let u=1;return this.pushHeader(a),s.on("error",c=>a.emit("error",c)),s.on("data",()=>this.pushStat(a,o,u++)),s.on("end",()=>this.pushFooter(a,o)),{data:a}}now(){if(typeof performance>"u"){const e=_0e.hrtime();return e[0]*1e3+e[1]/1e6}return performance.now()}delay(e){return this.now()-e}}Ew.ActorQueryResultSerializeStats=v0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Tw,t),r(Ew,t)})(SR);var VL={},Ow={};Object.defineProperty(Ow,"__esModule",{value:!0});Ow.ActorQueryOperationDistinctHash=void 0;const y6=ft;class w0e extends y6.ActorQueryOperationTypedMediated{constructor(e){super(e,"distinct")}async testOperation(e,r){return!0}async runOperation(e,r){const n=y6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:r}));return{type:"bindings",bindingsStream:n.bindingsStream.filter(await this.newHashFilter(r)),metadata:n.metadata}}async newHashFilter(e){const{hashFunction:r}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:e}),n={};return a=>{const s=r(a);return!(s in n)&&(n[s]=!0)}}}Ow.ActorQueryOperationDistinctHash=w0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ow,t)})(VL);var HL={},Aw={},xw={};Object.defineProperty(xw,"__esModule",{value:!0});xw.GroupsState=void 0;const S0e=Hn,b6=jl,T0e=yt,E0e=new T0e.DataFactory,O0e=new S0e.BindingsFactory;class A0e{constructor(e,r,n){this.hashFunction=e,this.pattern=r,this.sparqleeConfig=n,this.groups=new Map,this.groupsInitializer=new Map,this.groupVariables=new Set(this.pattern.variables.map(a=>a.value)),this.distinctHashes=r.aggregates.some(({distinct:a})=>a)?new Map:null,this.waitCounter=1,this.resultHasBeenCalled=!1}consumeBindings(e){const r=this.resultCheck();if(r)return r;this.waitCounter++;const n=e.filter((u,c)=>this.groupVariables.has(c.value)),a=this.hashBindings(n);let s=this.groupsInitializer.get(a),o;if(!s)s=(async()=>{const u={};if(await Promise.all(this.pattern.aggregates.map(async l=>{const d=l.variable.value;u[d]=new b6.AsyncAggregateEvaluator(l,this.sparqleeConfig),await u[d].put(e)})),this.distinctHashes){const l=this.hashBindings(e);this.distinctHashes.set(a,new Set([l]))}const c={aggregators:u,bindings:n};return this.groups.set(a,c),this.subtractWaitCounterAndCollect(),c})(),this.groupsInitializer.set(a,s),o=s;else{const u=s;o=(async()=>{const c=await u;await Promise.all(this.pattern.aggregates.map(async l=>{if(l.distinct){const h=this.hashBindings(e);if(this.distinctHashes.get(a).has(h))return;this.distinctHashes.get(a).add(h)}const d=l.variable.value;await c.aggregators[d].put(e)}))})().then(()=>{this.subtractWaitCounterAndCollect()})}return o}subtractWaitCounterAndCollect(){--this.waitCounter===0&&this.handleResultCollection()}handleResultCollection(){let e=[...this.groups].map(([r,n])=>{const{bindings:a,aggregators:s}=n;let o=a;for(const u in s){const c=s[u].result();c&&(o=o.set(E0e.variable(u),c))}return o});if(e.length===0&&this.groupVariables.size===0){const r=[];for(const n of this.pattern.aggregates){const a=n.variable,s=b6.AsyncAggregateEvaluator.emptyValue(n);s!==void 0&&r.push([a,s])}e=[O0e.bindings(r)]}this.waitResolver(e)}resultCheck(){if(this.resultHasBeenCalled)return Promise.reject(new Error("Calling any function after calling collectResult is invalid."))}collectResults(){const e=this.resultCheck();if(e)return e;this.resultHasBeenCalled=!0;const r=new Promise(n=>{this.waitResolver=n});return this.subtractWaitCounterAndCollect(),r}hashBindings(e){return this.hashFunction(e)}}xw.GroupsState=A0e;Object.defineProperty(Aw,"__esModule",{value:!0});Aw.ActorQueryOperationGroup=void 0;const M1=ft,x0e=jl,m6=Wt,R0e=xw;class I0e extends M1.ActorQueryOperationTypedMediated{constructor(e){super(e,"group")}async testOperation(e,r){for(const n of e.aggregates)new x0e.AsyncEvaluator(n.expression,M1.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation));return!0}async runOperation(e,r){const{hashFunction:n}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:r}),{input:a,aggregates:s}=e,o=await this.mediatorQueryOperation.mediate({operation:a,context:r}),u=M1.ActorQueryOperation.getSafeBindings(o),c=[...e.variables,...s.map(h=>h.variable)],l=M1.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation);return{type:"bindings",bindingsStream:new m6.TransformIterator(()=>new Promise((h,f)=>{const p=new R0e.GroupsState(n,e,l);u.bindingsStream.on("end",async()=>{try{const b=new m6.ArrayIterator(await p.collectResults(),{autoStart:!1});h(b)}catch(b){f(b)}}),u.bindingsStream.on("error",f),u.bindingsStream.on("data",b=>{p.consumeBindings(b).catch(f)})}),{autoStart:!1}),metadata:async()=>({...await u.metadata(),variables:c})}}}Aw.ActorQueryOperationGroup=I0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Aw,t)})(HL);var kL={},Rw={};Object.defineProperty(Rw,"__esModule",{value:!0});Rw.ActorQueryOperationReducedHash=void 0;const g6=ft,P0e=_s;class D0e extends g6.ActorQueryOperationTypedMediated{constructor(e){super(e,"reduced")}async testOperation(e,r){return!0}async runOperation(e,r){const n=g6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:r}));return{type:"bindings",bindingsStream:n.bindingsStream.filter(await this.newHashFilter(r)),metadata:n.metadata}}async newHashFilter(e){const{hashFunction:r}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:e}),n=new P0e.LRUCache({max:this.cacheSize});return a=>{const s=r(a);return n.has(s)?!1:(n.set(s,!0),!0)}}}Rw.ActorQueryOperationReducedHash=D0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Rw,t)})(kL);var QL={},Iw={};Object.defineProperty(Iw,"__esModule",{value:!0});Iw.ActorQueryResultSerializeRdf=void 0;const N0e=bs;class j0e extends N0e.ActorQueryResultSerialize{constructor(e){super(e)}async testHandle(e,r,n){if(e.type!=="quads")throw new Error(`Actor ${this.name} can only handle quad streams`);const{mediaTypes:a}=await this.mediatorMediaTypeCombiner.mediate({context:n,mediaTypes:!0});if(!(r in a))throw new Error(`Actor ${this.name} can not handle media type ${r}. All available types: ${Object.keys(a)}`);return!0}async runHandle(e,r,n){return(await this.mediatorRdfSerialize.mediate({context:n,handle:{context:n,quadStream:e.quadStream},handleMediaType:r})).handle}async testMediaType(e){return!0}async getMediaTypes(e){return(await this.mediatorMediaTypeCombiner.mediate({context:e,mediaTypes:!0})).mediaTypes}async testMediaTypeFormats(e){return!0}async getMediaTypeFormats(e){return(await this.mediatorMediaTypeFormatCombiner.mediate({context:e,mediaTypeFormats:!0})).mediaTypeFormats}}Iw.ActorQueryResultSerializeRdf=j0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Iw,t)})(QL);var GL={},Pw={};Object.defineProperty(Pw,"__esModule",{value:!0});Pw.ActorHttpWayback=void 0;const _6=ms,Sb=Ht,C0e=Pl,F0e="http://wayback.archive-it.org/";function v6(t){const e=new Request(t.input,t.init);return{input:new Request(new URL(`/${e.url}`,F0e),e)}}function M0e(t){const e=t.get(Sb.KeysHttpProxy.httpProxyHandler);return e?r=>e.getProxy(v6(r)):r=>Promise.resolve(v6(r))}class L0e extends _6.ActorHttp{constructor(e){super(e)}async test(e){return!0}async run(e){let r=await this.mediatorHttp.mediate(e);if(r.status===404&&e.context.get(Sb.KeysHttpWayback.recoverBrokenLinks)){let n=await this.mediatorHttp.mediate({...e,context:e.context.set(Sb.KeysHttpWayback.recoverBrokenLinks,!1).set(Sb.KeysHttpProxy.httpProxyHandler,{getProxy:M0e(e.context)})});n.status===200&&([r,n]=[n,r]);const{body:a}=n;a&&("destroy"in a&&typeof a.destroy=="function"?a.destroy():await C0e(_6.ActorHttp.toNodeReadable(n.body)))}return r}}Pw.ActorHttpWayback=L0e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Pw,t)})(GL);var zL={},Dw={},WL={},Th={},Nw={},Eh={},Oh={},jw={};Object.defineProperty(jw,"__esModule",{value:!0});jw.ContainerHandlerIdentifier=void 0;class B0e{canCombineWithGraph(){return!0}async handle(e,r,n,a,s,o){let u;if(r.emittedStack[o+1]&&r.idStack[o+1])u=r.idStack[o+1][0];else{const d=await n.getContainerKey(a[o],a,o)!==null?await n.resourceToTerm(await r.getContext(a),a[o]):n.dataFactory.blankNode();if(!d){r.emittedStack[o]=!1;return}u=d,r.idStack[o+1]=[u]}let c=r.idStack[o];c||(c=r.idStack[o]=[]),c.some(l=>l.equals(u))||c.push(u),await r.handlePendingContainerFlushBuffers()||(r.emittedStack[o]=!1)}}jw.ContainerHandlerIdentifier=B0e;var Ah={},xh={},w6;function Cw(){if(w6)return xh;w6=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.EntryHandlerPredicate=void 0;const t=vn,e=Ml();let r=class XL{static async handlePredicateObject(a,s,o,u,c,l,d,h,f){const p=await s.getPropertiesDepth(o,u),b=await s.getDepthOffsetGraph(u,o),y=u-b,S=a.idStack[p];if(S&&!f)for(const w of S)if(b>=0){const O=a.idStack[y-1];if(O)for(const T of O)s.emitQuadChecked(u,w,c,l,T,d,h);else d?(s.validateReverseSubject(l),a.getUnidentifiedGraphBufferSafe(y-1).push({subject:l,predicate:c,object:w,isEmbedded:h})):a.getUnidentifiedGraphBufferSafe(y-1).push({subject:w,predicate:c,object:l,isEmbedded:h})}else{const O=await s.getGraphContainerValue(o,p);s.emitQuadChecked(u,w,c,l,O,d,h)}else if(d&&s.validateReverseSubject(l),f){if(a.rdfstar){a.idStack[u]&&a.emitError(new t.ErrorCoded(`Found an illegal @id inside an annotation: ${a.idStack[u][0].value}`,t.ERROR_CODES.INVALID_ANNOTATION));for(let O=0;O=0;O--){const T=w[O];T.depth>p&&(I.nestedAnnotations.push(T),w.splice(O,1))}}}else a.getUnidentifiedValueBufferSafe(p).push({predicate:c,object:l,reverse:d,isEmbedded:h})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(a,s,o,u,c){const l=o[u];if(l){const d=await a.getContext(o);if(!a.jsonLiteralStack[u]&&await s.predicateToTerm(d,o[u]))return e.Util.getContextValueType(d,l)==="@json"&&(a.jsonLiteralStack[u+1]=!0),!0}return!1}async test(a,s,o,u,c){return u[c]}async handle(a,s,o,u,c,l,d){const h=u[l],f=await a.getContext(u),p=await s.predicateToTerm(f,o);if(p){const b=await s.valueToTerm(f,o,c,l,u);if(b.length)for(let y of b){let S=await s.unaliasKeywordParent(u,l);const w=e.Util.isPropertyReverse(f,h,S);let I=0;for(;S==="@reverse"||typeof S=="number";)typeof S=="number"?I++:l--,S=await s.unaliasKeywordParent(u,l-I);const O=e.Util.isPropertyInEmbeddedNode(S);s.validateReverseInEmbeddedNode(o,w,O);const T=e.Util.isPropertyInAnnotationObject(S);if(c){const x="@list"in e.Util.getContextValueContainer(f,o);if(x||c["@list"]){if((x&&!Array.isArray(c)&&!c["@list"]||c["@list"]&&!Array.isArray(c["@list"]))&&y!==s.rdfNil){const P=s.dataFactory.blankNode();a.emitQuad(l,s.dataFactory.quad(P,s.rdfRest,s.rdfNil,s.getDefaultGraph())),a.emitQuad(l,s.dataFactory.quad(P,s.rdfFirst,y,s.getDefaultGraph())),y=P}if(w&&!a.allowSubjectList)throw new t.ErrorCoded(`Found illegal list value in subject position at ${o}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await XL.handlePredicateObject(a,s,u,l,p,y,w,O,T)}}}};return xh.EntryHandlerPredicate=r,xh}var S6;function $0e(){if(S6)return Ah;S6=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.ContainerHandlerIndex=void 0;const t=vn,e=Cw(),r=Ml();let n=class{canCombineWithGraph(){return!0}async handle(s,o,u,c,l,d){if(!Array.isArray(l)){const h="@graph"in s,f=await o.getContext(c),p=c[d-1],b=r.Util.getContextValueIndex(f,p);if(b){if(t.Util.isPotentialKeyword(b))throw new t.ErrorCoded(`Keywords can not be used as @index value, got: ${b}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof b!="string")throw new t.ErrorCoded(`@index values must be strings, got: ${b}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof l!="object"){if(r.Util.getContextValueType(f,p)!=="@id")throw new t.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${l}`,t.ERROR_CODES.INVALID_VALUE_OBJECT);const w=u.resourceToTerm(f,l);w&&(o.idStack[d+1]=[w])}const S=u.createVocabOrBaseTerm(f,b);if(S){const w=await u.valueToTerm(f,b,await u.getContainerKey(c[d],c,d),d,c);if(h){const I=await u.getGraphContainerValue(c,d+1);for(const O of w)o.emitQuad(d,u.dataFactory.quad(I,S,O,u.getDefaultGraph()))}else for(const I of w)await e.EntryHandlerPredicate.handlePredicateObject(o,u,c,d+1,S,I,!1,!1,!1)}}const y=h?2:1;await o.newOnValueJob(c.slice(0,c.length-y),l,d-y,!0),await o.handlePendingContainerFlushBuffers()}o.emittedStack[d]=!1}};return Ah.ContainerHandlerIndex=n,Ah}var Fw={};Object.defineProperty(Fw,"__esModule",{value:!0});Fw.ContainerHandlerLanguage=void 0;const T6=vn;class U0e{canCombineWithGraph(){return!1}async handle(e,r,n,a,s,o){const u=await n.getContainerKey(a[o],a,o);if(Array.isArray(s))s=s.map(c=>({"@value":c,"@language":u}));else{if(typeof s!="string")throw new T6.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(s)}', but expected string`,T6.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);s={"@value":s,"@language":u}}await r.newOnValueJob(a.slice(0,a.length-1),s,o-1,!0),r.emittedStack[o]=!1}}Fw.ContainerHandlerLanguage=U0e;var Rh={},E6;function q0e(){if(E6)return Rh;E6=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.ContainerHandlerType=void 0;const t=Cw(),e=Ml();let r=class{canCombineWithGraph(){return!1}async handle(a,s,o,u,c,l){if(!Array.isArray(c)){if(typeof c=="string"){const f=await s.getContext(u),b=e.Util.getContextValueType(f,u[l-1])==="@vocab"?await o.createVocabOrBaseTerm(f,c):await o.resourceToTerm(f,c);if(b){const y={"@id":b.termType==="NamedNode"?b.value:c};await s.newOnValueJob(u.slice(0,u.length-1),y,l-1,!0),s.idStack[l+1]=[b]}}else{const f=!!s.idStack[l+1];f||delete s.idStack[l],await s.newOnValueJob(u.slice(0,u.length-1),c,l-1,!0),f||(s.idStack[l+1]=s.idStack[l])}const d=await o.getContainerKey(u[l],u,l),h=d!==null?o.createVocabOrBaseTerm(await s.getContext(u),d):null;h&&await t.EntryHandlerPredicate.handlePredicateObject(s,o,u,l+1,o.rdfType,h,!1,!1,!1),await s.handlePendingContainerFlushBuffers()}s.emittedStack[l]=!1}};return Rh.ContainerHandlerType=r,Rh}var O6;function KL(){if(O6)return Oh;O6=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.EntryHandlerContainer=void 0;const t=jw,e=$0e(),r=Fw,n=q0e(),a=Ml();let s=class Tu{static isSimpleGraphContainer(u){return"@graph"in u&&("@set"in u&&Object.keys(u).length===2||Object.keys(u).length===1)}static isComplexGraphContainer(u){return"@graph"in u&&("@set"in u&&Object.keys(u).length>2||!("@set"in u)&&Object.keys(u).length>1)}static getContainerGraphIndex(u,c,l){let d=Tu.isSimpleGraphContainer(u),h="";for(let f=c;f=0;p--)if(typeof c[p]!="number"){const b=a.Util.getContextValue(f,"@container",c[p],!1);if(b&&Tu.isSimpleGraphContainer(b))return{containers:b,depth:p+1,fallback:!1};const y=a.Util.getContextValue(f,"@container",c[p-1],!1);if(y){const S="@graph"in y;for(const w in Tu.CONTAINER_HANDLERS)if(y[w])return S?Tu.CONTAINER_HANDLERS[w].canCombineWithGraph()?{containers:y,depth:p,fallback:!1}:d:h?d:{containers:y,depth:p,fallback:!1};return d}else{if(h)return d;h=!0}}return d}static async isBufferableContainerHandler(u,c,l){const d=await Tu.getContainerHandler(u,c,l);return!d.fallback&&!("@graph"in d.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(u,c,l,d,h){return!!await this.test(u,c,null,l,d)}async test(u,c,l,d,h){const f=a.Util.getContextValueContainer(await u.getContext(d,2),d[h-1]);for(const p in Tu.CONTAINER_HANDLERS)if(f[p])return{containers:f,handler:Tu.CONTAINER_HANDLERS[p]};return null}async handle(u,c,l,d,h,f,p){return p.handler.handle(p.containers,u,c,d,h,f)}};return s.CONTAINER_HANDLERS={"@id":new t.ContainerHandlerIdentifier,"@index":new e.ContainerHandlerIndex,"@language":new r.ContainerHandlerLanguage,"@type":new n.ContainerHandlerType},Oh.EntryHandlerContainer=s,Oh}var V0e=function t(e){return e===null||typeof e!="object"||e.toJSON!=null?JSON.stringify(e):Array.isArray(e)?"["+e.reduce((r,n,a)=>{const s=a===0?"":",",o=n===void 0||typeof n=="symbol"?null:n;return r+s+t(o)},"")+"]":"{"+Object.keys(e).sort().reduce((r,n,a)=>{if(e[n]===void 0||typeof e[n]=="symbol")return r;const s=r.length===0?"":",";return r+s+t(n)+":"+t(e[n])},"")+"}"},A6;function Ml(){if(A6)return Eh;A6=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.Util=void 0;const t=vn,e=yt,r=KL(),n=V0e;let a=class ur{constructor(o){this.parsingContext=o.parsingContext,this.dataFactory=o.dataFactory||new e.DataFactory,this.rdfFirst=this.dataFactory.namedNode(ur.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(ur.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(ur.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(ur.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(ur.RDF+"JSON")}static getContextValue(o,u,c,l){const d=o.getContextRaw()[c];if(!d)return l;const h=d[u];return h===void 0?l:h}static getContextValueContainer(o,u){return ur.getContextValue(o,"@container",u,{"@set":!0})}static getContextValueType(o,u){const c=ur.getContextValue(o,"@type",u,null);return c==="@none"?null:c}static getContextValueLanguage(o,u){return ur.getContextValue(o,"@language",u,o.getContextRaw()["@language"]||null)}static getContextValueDirection(o,u){return ur.getContextValue(o,"@direction",u,o.getContextRaw()["@direction"]||null)}static isContextValueReverse(o,u){return!!ur.getContextValue(o,"@reverse",u,null)}static getContextValueIndex(o,u){return ur.getContextValue(o,"@index",u,o.getContextRaw()["@index"]||null)}static isPropertyReverse(o,u,c){return c==="@reverse"!==ur.isContextValueReverse(o,u)}static isPropertyInEmbeddedNode(o){return o==="@id"}static isPropertyInAnnotationObject(o){return o==="@annotation"}static isValidIri(o){return o!==null&&t.Util.isValidIri(o)}static isPrefixArray(o,u){if(o.length>u.length)return!1;for(let c=0;c1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${u}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in c){if(Object.keys(c).length>1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${u}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const f=c["@list"];return Array.isArray(f)?f.length===0?[this.rdfNil]:this.parsingContext.idStack[l+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(d),u,f,l-1,d.slice(0,-1))}else{if("@reverse"in c&&typeof c["@reverse"]=="boolean")return[];if("@graph"in ur.getContextValueContainer(await this.parsingContext.getContext(d),u)){const f=this.parsingContext.graphContainerTermStack[l+1];return f?Object.values(f):[this.dataFactory.blankNode()]}else if("@id"in c){if(Object.keys(c).length>1&&(o=await this.parsingContext.getContext(d,0)),"@context"in c&&(o=await this.parsingContext.parseContext(c["@context"],o.getContextRaw())),c["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(o,c["@id"]));{const f=c["@id"];let p;if(typeof f=="object")if(this.parsingContext.rdfstar)p=this.parsingContext.idStack[l+1][0];else throw new t.ErrorCoded(`Found illegal @id '${c}'`,t.ERROR_CODES.INVALID_ID_VALUE);else p=this.resourceToTerm(o,f);return this.nullableTermToArray(p)}}else return this.parsingContext.emittedStack[l+1]||c&&typeof c=="object"&&Object.keys(c).length===0?this.parsingContext.idStack[l+1]||(this.parsingContext.idStack[l+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,c,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,(!!c).toString(),this.dataFactory.namedNode(ur.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(l,await this.getContextSelfOrPropertyScoped(o,u),u,c,this.dataFactory.namedNode(c%1===0&&c<1e21?ur.XSD_INTEGER:ur.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${h}`)),[]}}async getContextSelfOrPropertyScoped(o,u){const c=o.getContextRaw()[u];return c&&typeof c=="object"&&"@context"in c&&(o=await this.parsingContext.parseContext(c,o.getContextRaw(),!0)),o}nullableTermToArray(o){return o?[o]:[]}predicateToTerm(o,u){const c=o.expandTerm(u,!0,this.parsingContext.getExpandOptions());if(!c)return null;if(c[0]==="_"&&c[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(c.substr(2)):null;if(ur.isValidIri(c))return this.dataFactory.namedNode(c);if(c&&this.parsingContext.strictValues)this.parsingContext.emitError(new t.ErrorCoded(`Invalid predicate IRI: ${c}`,t.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(o,u){if(u.startsWith("_:"))return this.dataFactory.blankNode(u.substr(2));const c=o.expandTerm(u,!1,this.parsingContext.getExpandOptions());if(!ur.isValidIri(c))if(c&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${c}`));else return null;return this.dataFactory.namedNode(c)}createVocabOrBaseTerm(o,u){if(u.startsWith("_:"))return this.dataFactory.blankNode(u.substr(2));const c=this.parsingContext.getExpandOptions();let l=o.expandTerm(u,!0,c);if(l===u&&(l=o.expandTerm(u,!1,c)),!ur.isValidIri(l))if(l&&this.parsingContext.strictValues&&!l.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${l}`));else return null;return this.dataFactory.namedNode(l)}intToString(o,u){return typeof o=="number"?Number.isFinite(o)?o%1===0&&(!u||u.value!==ur.XSD_DOUBLE)?Number(o).toString():o.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):o>0?"INF":"-INF":o}stringValueToTerm(o,u,c,l,d){const h=ur.getContextValueType(u,c);if(h)if(h==="@id"){if(!d)return this.resourceToTerm(u,this.intToString(l,d))}else if(h==="@vocab"){if(!d)return this.createVocabOrBaseTerm(u,this.intToString(l,d))}else d=this.dataFactory.namedNode(h);if(!d){const f=ur.getContextValueLanguage(u,c),p=ur.getContextValueDirection(u,c);return p&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(o,this.intToString(l,d),f,p):this.dataFactory.literal(this.intToString(l,d),f)}return this.dataFactory.literal(this.intToString(l,d),d)}createLanguageDirectionLiteral(o,u,c,l){if(this.parsingContext.rdfDirection==="i18n-datatype")return c||(c=""),this.dataFactory.literal(u,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${c}_${l}`));{const d=this.dataFactory.blankNode(),h=this.getDefaultGraph();return this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(ur.RDF+"value"),this.dataFactory.literal(u),h)),c&&this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(ur.RDF+"language"),this.dataFactory.literal(c),h)),this.parsingContext.emitQuad(o,this.dataFactory.quad(d,this.dataFactory.namedNode(ur.RDF+"direction"),this.dataFactory.literal(l),h)),d}}valueToJsonString(o){return n(o)}async unaliasKeyword(o,u,c,l,d){if(Number.isInteger(o))return o;if(!l){const h=this.parsingContext.unaliasedKeywordCacheStack[c];if(h)return h}if(!t.Util.isPotentialKeyword(o)){d=d||await this.parsingContext.getContext(u);let h=d.getContextRaw()[o];h&&typeof h=="object"&&(h=h["@id"]),t.Util.isValidKeyword(h)&&(o=h)}return l?o:this.parsingContext.unaliasedKeywordCacheStack[c]=o}async unaliasKeywordParent(o,u){return await this.unaliasKeyword(u>0&&o[u-1],o,u-1)}async unaliasKeywords(o,u,c,l){const d={};for(const h in o)d[await this.unaliasKeyword(h,u,c+1,!0,l)]=o[h];return d}async isLiteral(o,u){for(let c=u;c>=0;c--){if(await this.unaliasKeyword(o[c],o,c)==="@annotation")return!1;if(this.parsingContext.literalStack[c]||this.parsingContext.jsonLiteralStack[c])return!0}return!1}async getDepthOffsetGraph(o,u){for(let c=o-1;c>0;c--)if(await this.unaliasKeyword(u[c],u,c)==="@graph"){const l=(await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,u,c)).containers;return r.EntryHandlerContainer.isComplexGraphContainer(l)?-1:o-c-1}return-1}validateReverseSubject(o){if(o.termType==="Literal")throw new t.ErrorCoded(`Found illegal literal in subject position: ${o.value}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(o,u){let c=this.getDefaultGraph();const{containers:l,depth:d}=await r.EntryHandlerContainer.getContainerHandler(this.parsingContext,o,u);if("@graph"in l){const h=r.EntryHandlerContainer.getContainerGraphIndex(l,d,o),f=this.parsingContext.graphContainerTermStack[d];if(c=f?f[h]:null,!c){let p=null;if("@id"in l){const b=await this.getContainerKey(o[d],o,d);b!==null&&(p=await this.resourceToTerm(await this.parsingContext.getContext(o),b))}p||(p=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[d]||(this.parsingContext.graphContainerTermStack[d]={}),c=this.parsingContext.graphContainerTermStack[d][h]=p}}return c}async getPropertiesDepth(o,u){let c=u;for(let l=u-1;l>0;l--)if(typeof o[l]!="number"){const d=await this.unaliasKeyword(o[l],o,l);if(d==="@reverse")return l;if(d==="@nest")c=l;else return c}return c}async getContainerKey(o,u,c){const l=await this.unaliasKeyword(o,u,c);return l==="@none"?null:l}validateReverseInEmbeddedNode(o,u,c){if(c&&u&&!this.parsingContext.rdfstarReverseInEmbedded)throw new t.ErrorCoded(`Illegal reverse property in embedded node in ${o}`,t.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(o,u,c,l,d,h,f){let p;if(h?(this.validateReverseSubject(l),p=this.dataFactory.quad(l,c,u,d)):p=this.dataFactory.quad(u,c,l,d),f){if(p.graph.termType!=="DefaultGraph"&&(p=this.dataFactory.quad(p.subject,p.predicate,p.object)),this.parsingContext.idStack[o-1])throw new t.ErrorCoded("Illegal multiple properties in an embedded node",t.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[o-1]=[p]}else this.parsingContext.emitQuad(o,p);const b=this.parsingContext.annotationsBuffer[o];if(b){for(const y of b)this.emitAnnotation(o,p,y);delete this.parsingContext.annotationsBuffer[o]}}emitAnnotation(o,u,c){let l;c.reverse?(this.validateReverseSubject(c.object),l=this.dataFactory.quad(c.object,c.predicate,u)):l=this.dataFactory.quad(u,c.predicate,c.object),this.parsingContext.emitQuad(o,l);for(const d of c.nestedAnnotations)this.emitAnnotation(o,l,d)}};return a.XSD="http://www.w3.org/2001/XMLSchema#",a.XSD_BOOLEAN=a.XSD+"boolean",a.XSD_INTEGER=a.XSD+"integer",a.XSD_DOUBLE=a.XSD+"double",a.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Eh.Util=a,Eh}Object.defineProperty(Nw,"__esModule",{value:!0});Nw.EntryHandlerArrayValue=void 0;const H0e=Ml(),x6=vn;class k0e{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return this.test(e,r,null,n,a)}async test(e,r,n,a,s){return typeof a[s]=="number"}async handle(e,r,n,a,s,o){let u=await r.unaliasKeywordParent(a,o);if(u==="@list"){let c=null,l=0;for(let d=o-2;d>0;d--){const h=a[d];if(typeof h=="string"||typeof h=="number"){l=d,c=h;break}}if(c!==null){const d=await r.valueToTerm(await e.getContext(a),c,s,o,a);for(const h of d)await this.handleListElement(e,r,h,s,o,a.slice(0,l),l);d.length===0&&await this.handleListElement(e,r,null,s,o,a.slice(0,l),l)}}else if(u==="@set")await e.newOnValueJob(a.slice(0,-2),s,o-2,!1);else if(u!==void 0&&u!=="@type"){for(let l=o-1;l>0;l--)if(typeof a[l]!="number"){u=await r.unaliasKeyword(a[l],a,l);break}const c=await e.getContext(a.slice(0,-1));if("@list"in H0e.Util.getContextValueContainer(c,u)){e.emittedStack[o+1]=!0;const l=await r.valueToTerm(await e.getContext(a),u,s,o,a);for(const d of l)await this.handleListElement(e,r,d,s,o,a.slice(0,-1),o-1);l.length===0&&await this.handleListElement(e,r,null,s,o,a.slice(0,-1),o-1)}else e.shiftStack(o,1),await e.newOnValueJob(a.slice(0,-1),s,o-1,!1),e.contextTree.removeContext(a.slice(0,-1))}}async handleListElement(e,r,n,a,s,o,u){let c=e.listPointerStack[s];if(a!==null&&(await r.unaliasKeywords(a,o,s))["@value"]!==null){if(!c||!c.value){const l=r.dataFactory.blankNode();c={value:l,listRootDepth:u,listId:l}}else{const l=r.dataFactory.blankNode();e.emitQuad(s,r.dataFactory.quad(c.value,r.rdfRest,l,r.getDefaultGraph())),c.value=l}n&&e.emitQuad(s,r.dataFactory.quad(c.value,r.rdfFirst,n,r.getDefaultGraph()))}else c||(c={listRootDepth:u,listId:r.rdfNil});e.listPointerStack[s]=c,e.rdfstar&&e.annotationsBuffer[s]&&e.emitError(new x6.ErrorCoded("Found an illegal annotation inside a list",x6.ERROR_CODES.INVALID_ANNOTATION))}}Nw.EntryHandlerArrayValue=k0e;var Mw={};Object.defineProperty(Mw,"__esModule",{value:!0});Mw.EntryHandlerInvalidFallback=void 0;class Q0e{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return!1}async test(e,r,n,a,s){return!0}async handle(e,r,n,a,s,o){e.emittedStack[o]=!1}}Mw.EntryHandlerInvalidFallback=Q0e;var Lw={},vs={};Object.defineProperty(vs,"__esModule",{value:!0});vs.EntryHandlerKeyword=void 0;class G0e{constructor(e){this.keyword=e}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){return!1}async test(e,r,n,a,s){return n===this.keyword}}vs.EntryHandlerKeyword=G0e;Object.defineProperty(Lw,"__esModule",{value:!0});Lw.EntryHandlerKeywordContext=void 0;const R6=vn,z0e=vs;class W0e extends z0e.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){e.streamingProfile&&(e.processingStack[o]||e.processingType[o]||e.idStack[o]!==void 0)&&e.emitError(new R6.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",R6.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const u=e.getContext(a),c=e.parseContext(s,(await u).getContextRaw());e.contextTree.setContext(a.slice(0,-1),c),e.emitContext(s),await e.validateContext(await c)}}Lw.EntryHandlerKeywordContext=W0e;var Bw={};Object.defineProperty(Bw,"__esModule",{value:!0});Bw.EntryHandlerKeywordGraph=void 0;const X0e=vs;class K0e extends X0e.EntryHandlerKeyword{constructor(){super("@graph")}async handle(e,r,n,a,s,o){e.graphStack[o+1]=!0}}Bw.EntryHandlerKeywordGraph=K0e;var $w={};Object.defineProperty($w,"__esModule",{value:!0});$w.EntryHandlerKeywordId=void 0;const Rs=vn,J0e=vs;class Y0e extends J0e.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){if(typeof s!="string"){if(e.rdfstar&&typeof s=="object"){const c=Object.keys(s);c.length===1&&c[0]==="@id"&&e.emitError(new Rs.ErrorCoded(`Invalid embedded node without property with @id ${s["@id"]}`,Rs.ERROR_CODES.INVALID_EMBEDDED_NODE))}else e.emitError(new Rs.ErrorCoded(`Found illegal @id '${s}'`,Rs.ERROR_CODES.INVALID_ID_VALUE));return}const u=await r.getPropertiesDepth(a,o);if(e.idStack[u]!==void 0&&(e.idStack[u][0].listHead?e.emitError(new Rs.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${a[o-1]}'`,Rs.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):e.emitError(new Rs.ErrorCoded(`Found duplicate @ids '${e.idStack[u][0].value}' and '${s}'`,Rs.ERROR_CODES.COLLIDING_KEYWORDS))),e.rdfstar&&e.annotationsBuffer[o])for(const c of e.annotationsBuffer[o])c.depth===o&&e.emitError(new Rs.ErrorCoded(`Found an illegal @id inside an annotation: ${s}`,Rs.ERROR_CODES.INVALID_ANNOTATION));e.idStack[u]=r.nullableTermToArray(await r.resourceToTerm(await e.getContext(a),s))}}$w.EntryHandlerKeywordId=Y0e;var Uw={};Object.defineProperty(Uw,"__esModule",{value:!0});Uw.EntryHandlerKeywordIncluded=void 0;const ud=vn,Z0e=vs;class eye extends Z0e.EntryHandlerKeyword{constructor(){super("@included")}async handle(e,r,n,a,s,o){typeof s!="object"&&e.emitError(new ud.ErrorCoded(`Found illegal @included '${s}'`,ud.ERROR_CODES.INVALID_INCLUDED_VALUE));const u=await r.unaliasKeywords(s,a,o,await e.getContext(a));"@value"in u&&e.emitError(new ud.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(s)}'`,ud.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in u&&e.emitError(new ud.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(s)}'`,ud.ERROR_CODES.INVALID_INCLUDED_VALUE)),e.emittedStack[o]=!1}}Uw.EntryHandlerKeywordIncluded=eye;var qw={};Object.defineProperty(qw,"__esModule",{value:!0});qw.EntryHandlerKeywordNest=void 0;const L1=vn,tye=vs;class rye extends tye.EntryHandlerKeyword{constructor(){super("@nest")}async handle(e,r,n,a,s,o){typeof s!="object"&&e.emitError(new L1.ErrorCoded(`Found invalid @nest entry for '${n}': '${s}'`,L1.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await r.unaliasKeywords(s,a,o,await e.getContext(a))&&e.emitError(new L1.ErrorCoded(`Found an invalid @value node for '${n}'`,L1.ERROR_CODES.INVALID_NEST_VALUE)),e.emittedStack[o]=!1}}qw.EntryHandlerKeywordNest=rye;var Vw={};Object.defineProperty(Vw,"__esModule",{value:!0});Vw.EntryHandlerKeywordType=void 0;const Ih=vn,B1=Ml(),nye=Cw(),iye=vs;class aye extends iye.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(e,r,n,a,s,o){const u=a[o],c=await e.getContext(a),l=r.rdfType,d=await r.unaliasKeywordParent(a,o),h=B1.Util.isPropertyReverse(c,u,d),f=B1.Util.isPropertyInEmbeddedNode(d);r.validateReverseInEmbeddedNode(n,h,f);const p=B1.Util.isPropertyInAnnotationObject(d),b=Array.isArray(s)?s:[s];for(const w of b){typeof w!="string"&&e.emitError(new Ih.ErrorCoded(`Found illegal @type '${w}'`,Ih.ERROR_CODES.INVALID_TYPE_VALUE));const I=r.createVocabOrBaseTerm(c,w);I&&await nye.EntryHandlerPredicate.handlePredicateObject(e,r,a,o,l,I,h,f,p)}let y=Promise.resolve(c),S=!1;for(const w of b.sort()){const I=B1.Util.getContextValue(c,"@context",w,null);I&&(S=!0,y=y.then(O=>e.parseContext(I,O.getContextRaw())))}e.streamingProfile&&(S||!e.streamingProfileAllowOutOfOrderPlainType)&&(e.processingStack[o]||e.idStack[o])&&e.emitError(new Ih.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",Ih.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),S&&(y=y.then(w=>w.getContextRaw()["@propagate"]!==!0?new Ih.JsonLdContextNormalized(Object.assign(Object.assign({},w.getContextRaw()),{"@propagate":!1,"@__propagateFallback":c.getContextRaw()})):w),e.contextTree.setContext(a.slice(0,a.length-1),y)),e.processingType[o]=!0}}Vw.EntryHandlerKeywordType=aye;var Hw={};Object.defineProperty(Hw,"__esModule",{value:!0});Hw.EntryHandlerKeywordUnknownFallback=void 0;const yp=vn;class kw{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,r,n,a,s){const o=await r.unaliasKeyword(n[a],n,a);return yp.Util.isPotentialKeyword(o)?!(!s&&o==="@list"):!1}async test(e,r,n,a,s){return yp.Util.isPotentialKeyword(n)}async handle(e,r,n,a,s,o){const u=kw.VALID_KEYWORDS_TYPES[n];u!==void 0?u&&typeof s!==u.type&&e.emitError(new yp.ErrorCoded(`Invalid value type for '${n}' with value '${s}'`,u.errorCode)):e.strictValues&&e.emitError(new Error(`Unknown keyword '${n}' with value '${s}'`)),e.emittedStack[o]=!1}}kw.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:yp.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:yp.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null};Hw.EntryHandlerKeywordUnknownFallback=kw;var Qw={};Object.defineProperty(Qw,"__esModule",{value:!0});Qw.EntryHandlerKeywordValue=void 0;const sye=vs;class oye extends sye.EntryHandlerKeyword{constructor(){super("@value")}async validate(e,r,n,a,s){const o=n[a];return o&&!e.literalStack[a]&&await this.test(e,r,o,n,a)&&(e.literalStack[a]=!0),super.validate(e,r,n,a,s)}async test(e,r,n,a,s){return await r.unaliasKeyword(a[s],a.slice(0,a.length-1),s-1,!0)==="@value"}async handle(e,r,n,a,s,o){e.literalStack[o]=!0,delete e.unidentifiedValuesBuffer[o],delete e.unidentifiedGraphsBuffer[o],e.emittedStack[o]=!1}}Qw.EntryHandlerKeywordValue=oye;var Ph={},Gw={};Object.defineProperty(Gw,"__esModule",{value:!0});Gw.ContextTree=void 0;class TR{constructor(){this.subTrees={}}getContext(e){if(e.length>0){const[r,...n]=e,a=this.subTrees[r];if(a){const s=a.getContext(n);if(s)return s.then(({context:o,depth:u})=>({context:o,depth:u+1}))}}return this.context?this.context.then(r=>({context:r,depth:0})):null}setContext(e,r){if(e.length===0)this.context=r;else{const[n,...a]=e;let s=this.subTrees[n];s||(s=this.subTrees[n]=new TR),s.setContext(a,r)}}removeContext(e){this.setContext(e,null)}}Gw.ContextTree=TR;var I6;function uye(){if(I6)return Ph;I6=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.ParsingContext=void 0;const t=vn,e=Mf,r=Gw,n=YL();let a=class JL{constructor(o){this.contextParser=new t.ContextParser({documentLoader:o.documentLoader,skipValidation:o.skipContextValidation}),this.streamingProfile=!!o.streamingProfile,this.baseIRI=o.baseIRI,this.produceGeneralizedRdf=!!o.produceGeneralizedRdf,this.allowSubjectList=!!o.allowSubjectList,this.processingMode=o.processingMode||n.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!o.strictValues,this.validateValueIndexes=!!o.validateValueIndexes,this.defaultGraph=o.defaultGraph,this.rdfDirection=o.rdfDirection,this.normalizeLanguageTags=o.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=o.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=o.rdfstar!==!1,this.rdfstarReverseInEmbedded=o.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new r.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=o.parser,o.context?(this.rootContext=this.parseContext(o.context),this.rootContext.then(u=>this.validateContext(u))):this.rootContext=Promise.resolve(new t.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(o,u,c){return this.contextParser.parse(o,{baseIRI:this.baseIRI,ignoreProtection:c,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:u,processingMode:this.activeProcessingMode})}validateContext(o){const u=o.getContextRaw()["@version"];if(u){if(this.activeProcessingMode&&u>this.activeProcessingMode)throw new e.ErrorCoded(`Unsupported JSON-LD version '${u}' under active processing mode ${this.activeProcessingMode}.`,e.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&u0&&c.context.getContextRaw()["@propagate"]===!1&&c.depth!==u&&!l);return c.depth===0&&c.context.getContextRaw()["@propagate"]===!1&&c.depth!==u&&(c.context=new t.JsonLdContextNormalized({})),c}async newOnValueJob(o,u,c,l){await this.parser.newOnValueJob(o,u,c,l)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const o of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(o.depth,o.keys),this.parser.flushStacks(o.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(o,u){o===1&&(this.topLevelProperties=!0),this.parser.push(u)}emitError(o){this.parser.emit("error",o)}emitContext(o){this.parser.emit("context",o)}getUnidentifiedValueBufferSafe(o){let u=this.unidentifiedValuesBuffer[o];return u||(u=[],this.unidentifiedValuesBuffer[o]=u),u}getUnidentifiedGraphBufferSafe(o){let u=this.unidentifiedGraphsBuffer[o];return u||(u=[],this.unidentifiedGraphsBuffer[o]=u),u}getAnnotationsBufferSafe(o){let u=this.annotationsBuffer[o];return u||(u=[],this.annotationsBuffer[o]=u),u}getExpandOptions(){return JL.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(o,u){const c=this.idStack[o+u];if(c&&(this.idStack[o]=c,this.emittedStack[o]=!0,delete this.idStack[o+u]),this.pendingContainerFlushBuffers.length)for(const l of this.pendingContainerFlushBuffers)l.depth>=o+u&&(l.depth-=u,l.keys.splice(o,u));this.unidentifiedValuesBuffer[o+u]&&(this.unidentifiedValuesBuffer[o]=this.unidentifiedValuesBuffer[o+u],delete this.unidentifiedValuesBuffer[o+u]),this.annotationsBuffer[o+u-1]&&(this.annotationsBuffer[o-1]||(this.annotationsBuffer[o-1]=[]),this.annotationsBuffer[o-1]=[...this.annotationsBuffer[o-1],...this.annotationsBuffer[o+u-1]],delete this.annotationsBuffer[o+u-1])}};return a.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},Ph.ParsingContext=a,Ph}var zw={};Object.defineProperty(zw,"__esModule",{value:!0});zw.EntryHandlerKeywordAnnotation=void 0;const cye=vs,P6=vn;class lye extends cye.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(e,r,n,a,s,o){(typeof s=="string"||typeof s=="object"&&s["@value"])&&e.emitError(new P6.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(s)}`,P6.ERROR_CODES.INVALID_ANNOTATION))}}zw.EntryHandlerKeywordAnnotation=lye;var D6;function YL(){if(D6)return Th;D6=1,Object.defineProperty(Th,"__esModule",{value:!0}),Th.JsonLdParser=void 0;const t=DF,e=vn,r=Kt,n=Nw,a=KL(),s=Mw,o=Cw(),u=Lw,c=Bw,l=$w,d=Uw,h=qw,f=Vw,p=Hw,b=Qw,y=uye(),S=Ml(),w=l9,I=zw;let O=class bd extends r.Transform{constructor(x){super({readableObjectMode:!0}),x=x||{},this.options=x,this.parsingContext=new y.ParsingContext(Object.assign({parser:this},x)),this.util=new S.Util({dataFactory:x.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new t,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(x,P,B,Q){let N;if(P!=="application/ld+json"){if(P!=="application/json"&&!P.endsWith("+json"))throw new e.ErrorCoded(`Unsupported JSON-LD media type ${P}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(B&&B.has("Link")&&B.forEach((F,W)=>{if(W==="link"){const z=(0,w.parse)(F);for(const M of z.get("rel","http://www.w3.org/ns/json-ld#context")){if(N)throw new e.ErrorCoded("Multiple JSON-LD context link headers were found on "+x,e.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);N=M.uri}}}),!N&&!(Q!=null&&Q.ignoreMissingContextLinkHeader))throw new e.ErrorCoded(`Missing context link header for media type ${P} on ${x}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let D;if(B&&B.has("Content-Type")){const F=B.get("Content-Type"),W=/; *profile=([^"]*)/.exec(F);W&&W[1]==="http://www.w3.org/ns/json-ld#streaming"&&(D=!0)}return new bd(Object.assign({baseIRI:x,context:N,streamingProfile:D},Q||{}))}import(x){if("pipe"in x){x.on("error",B=>P.emit("error",B));const P=x.pipe(new bd(this.options));return P}else{const P=new r.PassThrough({readableObjectMode:!0});x.on("error",Q=>B.emit("error",Q)),x.on("data",Q=>P.push(Q)),x.on("end",()=>P.push(null));const B=P.pipe(new bd(this.options));return B}}_transform(x,P,B){this.jsonParser.write(x),this.lastOnValueJob.then(()=>B(),Q=>B(Q))}async newOnValueJob(x,P,B,Q){let N=!0;if(Q&&B1&&(z=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let M=Math.max(1,this.parsingContext.validationStack.length-1);M=0?this.parsingContext.idStack[x-z-1]:[await this.util.getGraphContainerValue(P,x)];if(M)for(const C of M){this.parsingContext.emittedStack[x]=!0;for(const V of N)this.util.emitQuadChecked(x,W,V.predicate,V.object,C,V.reverse,V.isEmbedded)}else{const C=this.parsingContext.getUnidentifiedGraphBufferSafe(x-await this.util.getDepthOffsetGraph(x,P)-1);for(const V of N)V.reverse?C.push({object:W,predicate:V.predicate,subject:V.object,isEmbedded:V.isEmbedded}):C.push({object:V.object,predicate:V.predicate,subject:W,isEmbedded:V.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(x,1),this.parsingContext.literalStack.splice(x,1),this.parsingContext.jsonLiteralStack.splice(x,1)}const D=this.parsingContext.unidentifiedGraphsBuffer[x];if(D){for(const W of B){const z=x===1&&W.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():W;this.parsingContext.emittedStack[x]=!0;for(const M of D)this.parsingContext.emitQuad(x,this.util.dataFactory.quad(M.subject,M.predicate,M.object,z))}this.parsingContext.unidentifiedGraphsBuffer.splice(x,1)}const F=this.parsingContext.annotationsBuffer[x];if(F){F.length>0&&x===1&&this.parsingContext.emitError(new e.ErrorCoded("Annotations can not be made on top-level nodes",e.ERROR_CODES.INVALID_ANNOTATION));const W=this.parsingContext.getAnnotationsBufferSafe(x-1);for(const z of F)W.push(z);delete this.parsingContext.annotationsBuffer[x]}}async validateKey(x,P,B){for(const Q of bd.ENTRY_HANDLERS)if(await Q.validate(this.parsingContext,this.util,x,P,B))return{valid:!0,property:B||Q.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=x=>{const P=this.jsonParser.stack.length,B=new Array(P+1).fill(0).map((Q,N)=>N===P?this.jsonParser.key:this.jsonParser.stack[N].key);if(!this.isParsingContextInner(P)){const Q=()=>this.newOnValueJob(B,x,P,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(B.slice(0,-1)))if(B[P]==="@context"){let N=this.contextJobs[P];N||(N=this.contextJobs[P]=[]),N.push(Q)}else this.contextAwaitingJobs.push({job:Q,keys:B,depth:P});else this.lastOnValueJob=this.lastOnValueJob.then(Q);!this.parsingContext.streamingProfile&&P===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=x=>{this.emit("error",x)}}isParsingContextInner(x){for(let P=x;P>0;P--)if(this.jsonParser.stack[P-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const P of this.contextJobs)if(P)for(const B of P)await B();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const x=[];for(const P of this.contextAwaitingJobs)await this.util.unaliasKeyword(P.keys[P.depth],P.keys,P.depth,!0)==="@type"||typeof P.keys[P.depth]=="number"&&await this.util.unaliasKeyword(P.keys[P.depth-1],P.keys,P.depth-1,!0)==="@type"?this.typeJobs.push({job:P.job,keys:P.keys.slice(0,P.keys.length-1)}):x.push(P);for(const P of x){if(this.typeJobs.length>0){const B=[],Q=[];for(let F=0;FF.keys.length-W.keys.length);for(const F of N)await F.job();const D=Q.sort().reverse();for(const F of D)this.typeJobs.splice(F,1)}await P.job()}}};return O.DEFAULT_PROCESSING_MODE="1.1",O.ENTRY_HANDLERS=[new n.EntryHandlerArrayValue,new u.EntryHandlerKeywordContext,new l.EntryHandlerKeywordId,new d.EntryHandlerKeywordIncluded,new c.EntryHandlerKeywordGraph,new h.EntryHandlerKeywordNest,new f.EntryHandlerKeywordType,new b.EntryHandlerKeywordValue,new I.EntryHandlerKeywordAnnotation,new a.EntryHandlerContainer,new p.EntryHandlerKeywordUnknownFallback,new o.EntryHandlerPredicate,new s.EntryHandlerInvalidFallback],Th.JsonLdParser=O,Th}(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(YL(),t)})(WL);var hy={};Object.defineProperty(hy,"__esModule",{value:!0});hy.DocumentLoaderMediated=void 0;const dye=ms,fye=vn,hye=Pl;class ER extends fye.FetchDocumentLoader{constructor(e,r){super(ER.createFetcher(e,r)),this.mediatorHttp=e,this.context=r}static createFetcher(e,r){return async(n,a)=>{const s=await e.mediate({input:n,init:a,context:r});return s.json=async()=>JSON.parse(await hye(dye.ActorHttp.toNodeReadable(s.body))),s}}}hy.DocumentLoaderMediated=ER;Object.defineProperty(Dw,"__esModule",{value:!0});Dw.ActorRdfParseJsonLd=void 0;const pye=Rl,$1=Ht,yye=WL,bye=hy;class mye extends pye.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async testHandle(e,r,n){if(n.has($1.KeysRdfParseHtmlScript.processingHtmlScript)&&r!=="application/ld+json")throw new Error("JSON-LD in script tags can only have media type 'application/ld+json'");if(!r||!(r in this.mediaTypePriorities||r.endsWith("+json")))throw new Error(`Unrecognized media type: ${r}`);return await this.testHandleChecked(e)}async runHandle(e,r,n){var o;return{data:yye.JsonLdParser.fromHttpResponse(((o=e.metadata)==null?void 0:o.baseIRI)??"",r,e.headers,{documentLoader:n.get($1.KeysRdfParseJsonLd.documentLoader)||new bye.DocumentLoaderMediated(this.mediatorHttp,n),strictValues:n.get($1.KeysRdfParseJsonLd.strictValues),...n.get($1.KeysRdfParseJsonLd.parserOptions)}).import(e.data)}}}Dw.ActorRdfParseJsonLd=mye;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Dw,t),r(hy,t)})(zL);var ZL={},Ww={},Xw={},Kw={},Jw={};(function(){(function(t){(function(e){var r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(N){return N&&DataView.prototype.isPrototypeOf(N)}if(r.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(N){return N&&a.indexOf(Object.prototype.toString.call(N))>-1};function o(N){if(typeof N!="string"&&(N=String(N)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(N))throw new TypeError("Invalid character in header field name");return N.toLowerCase()}function u(N){return typeof N!="string"&&(N=String(N)),N}function c(N){var D={next:function(){var F=N.shift();return{done:F===void 0,value:F}}};return r.iterable&&(D[Symbol.iterator]=function(){return D}),D}function l(N){this.map={},N instanceof l?N.forEach(function(D,F){this.append(F,D)},this):Array.isArray(N)?N.forEach(function(D){this.append(D[0],D[1])},this):N&&Object.getOwnPropertyNames(N).forEach(function(D){this.append(D,N[D])},this)}l.prototype.append=function(N,D){N=o(N),D=u(D);var F=this.map[N];this.map[N]=F?F+", "+D:D},l.prototype.delete=function(N){delete this.map[o(N)]},l.prototype.get=function(N){return N=o(N),this.has(N)?this.map[N]:null},l.prototype.has=function(N){return this.map.hasOwnProperty(o(N))},l.prototype.set=function(N,D){this.map[o(N)]=u(D)},l.prototype.forEach=function(N,D){for(var F in this.map)this.map.hasOwnProperty(F)&&N.call(D,this.map[F],F,this)},l.prototype.keys=function(){var N=[];return this.forEach(function(D,F){N.push(F)}),c(N)},l.prototype.values=function(){var N=[];return this.forEach(function(D){N.push(D)}),c(N)},l.prototype.entries=function(){var N=[];return this.forEach(function(D,F){N.push([F,D])}),c(N)},r.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function d(N){if(N.bodyUsed)return Promise.reject(new TypeError("Already read"));N.bodyUsed=!0}function h(N){return new Promise(function(D,F){N.onload=function(){D(N.result)},N.onerror=function(){F(N.error)}})}function f(N){var D=new FileReader,F=h(D);return D.readAsArrayBuffer(N),F}function p(N){var D=new FileReader,F=h(D);return D.readAsText(N),F}function b(N){for(var D=new Uint8Array(N),F=new Array(D.length),W=0;W-1?D:N}function O(N,D){D=D||{};var F=D.body;if(N instanceof O){if(N.bodyUsed)throw new TypeError("Already read");this.url=N.url,this.credentials=N.credentials,D.headers||(this.headers=new l(N.headers)),this.method=N.method,this.mode=N.mode,this.signal=N.signal,!F&&N._bodyInit!=null&&(F=N._bodyInit,N.bodyUsed=!0)}else this.url=String(N);if(this.credentials=D.credentials||this.credentials||"same-origin",(D.headers||!this.headers)&&(this.headers=new l(D.headers)),this.method=I(D.method||this.method||"GET"),this.mode=D.mode||this.mode||null,this.signal=D.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}O.prototype.clone=function(){return new O(this,{body:this._bodyInit})};function T(N){var D=new FormData;return N.trim().split("&").forEach(function(F){if(F){var W=F.split("="),z=W.shift().replace(/\+/g," "),M=W.join("=").replace(/\+/g," ");D.append(decodeURIComponent(z),decodeURIComponent(M))}}),D}function x(N){var D=new l,F=N.replace(/\r?\n[\t ]+/g," ");return F.split(/\r?\n/).forEach(function(W){var z=W.split(":"),M=z.shift().trim();if(M){var C=z.join(":").trim();D.append(M,C)}}),D}S.call(O.prototype);function P(N,D){D||(D={}),this.type="default",this.status=D.status===void 0?200:D.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in D?D.statusText:"OK",this.headers=new l(D.headers),this.url=D.url||"",this._initBody(N)}S.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},P.error=function(){var N=new P(null,{status:0,statusText:""});return N.type="error",N};var B=[301,302,303,307,308];P.redirect=function(N,D){if(B.indexOf(D)===-1)throw new RangeError("Invalid status code");return new P(null,{status:D,headers:{location:N}})},e.DOMException=t.DOMException;try{new e.DOMException}catch{e.DOMException=function(D,F){this.message=D,this.name=F;var W=Error(D);this.stack=W.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Q(N,D){return new Promise(function(F,W){var z=new O(N,D);if(z.signal&&z.signal.aborted)return W(new e.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function C(){M.abort()}M.onload=function(){var V={status:M.status,statusText:M.statusText,headers:x(M.getAllResponseHeaders()||"")};V.url="responseURL"in M?M.responseURL:V.headers.get("X-Request-URL");var ie="response"in M?M.response:M.responseText;F(new P(ie,V))},M.onerror=function(){W(new TypeError("Network request failed"))},M.ontimeout=function(){W(new TypeError("Network request failed"))},M.onabort=function(){W(new e.DOMException("Aborted","AbortError"))},M.open(z.method,z.url,!0),z.credentials==="include"?M.withCredentials=!0:z.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&r.blob&&(M.responseType="blob"),z.headers.forEach(function(V,ie){M.setRequestHeader(ie,V)}),z.signal&&(z.signal.addEventListener("abort",C),M.onreadystatechange=function(){M.readyState===4&&z.signal.removeEventListener("abort",C)}),M.send(typeof z._bodyInit>"u"?null:z._bodyInit)})}return Q.polyfill=!0,t.fetch||(t.fetch=Q,t.Headers=l,t.Request=O,t.Response=P),e.Headers=l,e.Request=O,e.Response=P,e.fetch=Q,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})(typeof self<"u"?self:g)})();var eB={},Yw={};Object.defineProperty(Yw,"__esModule",{value:!0});Yw.SparqlXmlParser=void 0;const gye=yt,N6=hl,_ye=Kt;class vye{constructor(e){e=e||{},this.dataFactory=e.dataFactory||new gye.DataFactory,this.prefixVariableQuestionMark=!!e.prefixVariableQuestionMark}parseXmlResultsStream(e){const r=y=>b.emit("error",y);e.on("error",r);const n=new N6.SaxesParser,a=[];let s=!1,o=!1;const u=[];let c={},l="",d="",h,f="",p=[];n.on("error",r),n.on("opentag",y=>{y.name==="variable"&&this.stackEquals(a,["sparql","head"])?u.push(this.dataFactory.variable(y.attributes.name)):y.name==="results"&&this.stackEquals(a,["sparql"])?o=!0:y.name==="result"&&this.stackEquals(a,["sparql","results"])?c={}:y.name==="binding"&&this.stackEquals(a,["sparql","results","result"])?(l=y.attributes.name||"",d="",h="",f="",p=[]):y.name==="triple"&&this.stackBeginsWith(a,["sparql","results","result"])?p.push({components:{}}):a[a.length-1]==="triple"&&this.stackBeginsWith(a,["sparql","results","result","binding"])?(d="",h="",f="",["subject","predicate","object"].includes(y.name)?p[p.length-1].currentComponent=y.name:r(new Error(`Illegal quoted triple component '${y.name}' found on line ${n.line+1}`))):this.stackBeginsWith(a,["sparql","results","result","binding"])&&(d=y.name,"xml:lang"in y.attributes?h=y.attributes["xml:lang"]:"datatype"in y.attributes?h=this.dataFactory.namedNode(y.attributes.datatype):h=void 0),a.push(y.name)}),n.on("closetag",y=>{if(this.stackEquals(a,["sparql","head"])&&(b.emit("variables",u),s=!0),this.stackEquals(a,["sparql","results","result"])&&b.push(c),this.stackBeginsWith(a,["sparql","results","result","binding"])){let S;if(!l&&d)r(new Error(`Terms should have a name on line ${n.line+1}`));else if(d==="uri")S=this.dataFactory.namedNode(f);else if(d==="bnode")S=this.dataFactory.blankNode(f);else if(d==="literal")S=this.dataFactory.literal(f,h);else if(a[a.length-1]==="triple"){const w=p.pop();w&&w.components.subject&&w.components.predicate&&w.components.object?S=this.dataFactory.quad(w.components.subject,w.components.predicate,w.components.object):r(new Error(`Incomplete quoted triple on line ${n.line+1}`))}else d&&r(new Error(`Invalid term type '${d}' on line ${n.line+1}`));if(S)if(p.length>0){const w=p[p.length-1];w.components[w.currentComponent]&&r(new Error(`The ${w.currentComponent} in a quoted triple on line ${n.line+1} was already defined before`)),w.components[w.currentComponent]=S}else{const w=this.prefixVariableQuestionMark?"?"+l:l;c[w]=S}d=void 0}a.pop()}),n.on("text",y=>{this.stackBeginsWith(a,["sparql","results","result","binding"])&&a[a.length-1]===d&&(f=y)});const b=e.on("end",y=>{o?s||b.emit("variables",[]):b.emit("error",new Error("No valid SPARQL query results were found."))}).pipe(new _ye.Transform({objectMode:!0,transform(y,S,w){n.write(y),w()}}));return b}parseXmlBooleanStream(e){return new Promise((r,n)=>{const a=new N6.SaxesParser,s=[];a.on("error",n),a.on("opentag",o=>{s.push(o.name)}),a.on("closetag",o=>{s.pop()}),a.on("text",o=>{this.stackEquals(s,["sparql","boolean"])&&r(o==="true")}),e.on("error",n).on("data",o=>a.write(o)).on("end",()=>n(new Error("No valid ASK response was found.")))})}stackEquals(e,r){return e.length===r.length&&e.every((n,a)=>r[a]===n)}stackBeginsWith(e,r){return e.length>=r.length&&r.every((n,a)=>e[a]===n)}}Yw.SparqlXmlParser=vye;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Yw,t)})(eB);Object.defineProperty(Jw,"__esModule",{value:!0});Jw.SparqlEndpointFetcher=void 0;const j6=w0,wye=Sx,Sye=eB,Tye=Pl,Eye=B0,Oye=au,Aye=JF;class ki{constructor(e){e=e||{},this.method=e.method||"POST",this.additionalUrlParams=e.additionalUrlParams||new URLSearchParams,this.defaultHeaders=e.defaultHeaders||new Headers,this.fetchCb=e.fetch,this.sparqlJsonParser=new wye.SparqlJsonParser(e),this.sparqlXmlParser=new Sye.SparqlXmlParser(e),this.sparqlParsers={[ki.CONTENTTYPE_SPARQL_JSON]:{parseBooleanStream:r=>this.sparqlJsonParser.parseJsonBooleanStream(r),parseResultsStream:r=>this.sparqlJsonParser.parseJsonResultsStream(r)},[ki.CONTENTTYPE_SPARQL_XML]:{parseBooleanStream:r=>this.sparqlXmlParser.parseXmlBooleanStream(r),parseResultsStream:r=>this.sparqlXmlParser.parseXmlResultsStream(r)}},this.timeout=e.timeout}getQueryType(e){const r=new j6.Parser({sparqlStar:!0}).parse(e);return r.type==="query"?r.queryType==="DESCRIBE"?"CONSTRUCT":r.queryType:"UNKNOWN"}getUpdateTypes(e){const r=new j6.Parser({sparqlStar:!0}).parse(e);if(r.type==="update"){const n={};for(const a of r.updates)"type"in a?n[a.type]=!0:n[a.updateType]=!0;return n}else return"UNKNOWN"}async fetchBindings(e,r){const[n,a]=await this.fetchRawStream(e,r,ki.CONTENTTYPE_SPARQL),s=this.sparqlParsers[n];if(!s)throw new Error("Unknown SPARQL results content type: "+n);return s.parseResultsStream(a)}async fetchAsk(e,r){const[n,a]=await this.fetchRawStream(e,r,ki.CONTENTTYPE_SPARQL),s=this.sparqlParsers[n];if(!s)throw new Error("Unknown SPARQL results content type: "+n);return s.parseBooleanStream(a)}async fetchTriples(e,r){return(await this.fetchRawStream(e,r,ki.CONTENTTYPE_TURTLE))[1].pipe(new Oye.StreamParser({format:ki.CONTENTTYPE_TURTLE}))}async fetchUpdate(e,r){const n=globalThis.AbortController||await Promise.resolve().then(()=>af()),a=new n,s={};this.defaultHeaders.forEach((u,c)=>{s[c]=u});const o={method:"POST",headers:Object.assign(Object.assign({},s),{"content-type":"application/sparql-update"}),body:r,signal:a.signal};await this.handleFetchCall(e,o,{ignoreBody:!0}),a.abort()}async fetchRawStream(e,r,n){let a=this.method==="POST"?e:e+"?query="+encodeURIComponent(r);const s=new Headers(this.defaultHeaders);let o;return s.append("Accept",n),this.method==="POST"?(s.append("Content-Type","application/x-www-form-urlencoded"),o=new URLSearchParams,o.set("query",r),this.additionalUrlParams.forEach((u,c)=>{o.set(c,u)}),s.append("Content-Length",o.toString().length.toString())):this.additionalUrlParams.toString()!==""&&(a+=`&${this.additionalUrlParams.toString()}`),this.handleFetchCall(a,{headers:s,method:this.method,body:o})}async handleFetchCall(e,r,n={}){let a;if(this.timeout){const c=new AbortController;r.signal=c.signal,a=setTimeout(()=>c.abort(),this.timeout)}const s=await(this.fetchCb||fetch)(e,r);clearTimeout(a);let o;n.ignoreBody||(o=Aye(s.body)?s.body:new Eye.ReadableWebToNodeStream(s.body));let u=s.headers.get("Content-Type")||"";if(u.indexOf(";")>0&&(u=u.substr(0,u.indexOf(";"))),!s.ok){const c=/^[^?]*/u.exec(e)[0];let l="empty response";throw o&&(l=await Tye(o)),new Error(`Invalid SPARQL endpoint response from ${c} (HTTP status ${s.status}): -${l}`)}return[u,o]}}ki.CONTENTTYPE_SPARQL_JSON="application/sparql-results+json";ki.CONTENTTYPE_SPARQL_XML="application/sparql-results+xml";ki.CONTENTTYPE_SPARQL=`${ki.CONTENTTYPE_SPARQL_JSON};q=1.0,${ki.CONTENTTYPE_SPARQL_XML};q=0.7`;ki.CONTENTTYPE_TURTLE="text/turtle";Jw.SparqlEndpointFetcher=ki;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Jw,t)})(Kw);Object.defineProperty(Xw,"__esModule",{value:!0});Xw.RdfSourceSparql=void 0;const xye=Hn,C6=Wt,Rye=Kw,Iye=_s,Pye=yt,cd=hn,NO=Tt,Lc=new Pye.DataFactory,Dye=new xye.BindingsFactory,Nye=Lc.variable("count");class En{constructor(e,r,n,a,s){this.url=e,this.context=r,this.mediatorHttp=n,this.endpointFetcher=new Rye.SparqlEndpointFetcher({method:a?"GET":"POST",fetch:(o,u)=>this.mediatorHttp.mediate({input:o,init:u,context:this.context}),prefixVariableQuestionMark:!0}),this.cache=s>0?new Iye.LRUCache({max:s}):void 0}static replaceBlankNodes(e){const r=(0,cd.getVariables)((0,cd.getTerms)(e)).map(o=>o.value),n={};let a=!1;const s=(0,cd.mapTermsNested)(e,o=>{if(o.termType==="BlankNode"){let u=o.value;if(n[u])u=n[u];else{if(r.includes(u)){let c=0;for(;r.includes(`${u}${c}`);)++c;u+=c}n[o.value]=u,r.push(u)}return a=!0,Lc.variable(u)}return o});return a?s:e}static patternToBgp(e){return En.FACTORY.createBgp([En.FACTORY.createPattern(e.subject,e.predicate,e.object,e.graph)])}static patternToSelectQuery(e){const r=(0,cd.getVariables)((0,cd.getTerms)(e));return(0,NO.toSparql)(En.FACTORY.createProject(En.patternToBgp(e),r),{sparqlStar:!0})}static patternToCountQuery(e){return(0,NO.toSparql)(En.FACTORY.createProject(En.FACTORY.createExtend(En.FACTORY.createGroup(En.patternToBgp(e),[],[En.FACTORY.createBoundAggregate(Lc.variable("var0"),"count",En.FACTORY.createWildcardExpression(),!1)]),Lc.variable("count"),En.FACTORY.createTermExpression(Lc.variable("var0"))),[Lc.variable("count")]),{sparqlStar:!0})}async queryBindings(e,r){const n=await this.endpointFetcher.fetchBindings(e,r);return(0,C6.wrap)(n,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY}).map(a=>Dye.bindings(Object.entries(a).map(([s,o])=>[Lc.variable(s.slice(1)),o])))}match(e,r,n,a){const s=En.replaceBlankNodes(En.FACTORY.createPattern(e,r,n,a)),o=En.patternToCountQuery(s),u=En.patternToSelectQuery(s);new Promise(async(l,d)=>{var h;try{const f=(h=this.cache)==null?void 0:h.get(o);if(f!==void 0)return l(f);const p=await this.queryBindings(this.url,o);p.on("data",b=>{var w;const y=b.get(Nye),S={type:"estimate",value:Number.POSITIVE_INFINITY};if(y){const I=Number.parseInt(y.value,10);Number.isNaN(I)||(S.type="exact",S.value=I,(w=this.cache)==null||w.set(o,S))}return l(S)}),p.on("error",()=>l({type:"estimate",value:Number.POSITIVE_INFINITY})),p.on("end",()=>l({type:"estimate",value:Number.POSITIVE_INFINITY}))}catch(f){d(f)}}).then(l=>c.setProperty("metadata",{cardinality:l,canContainUndefs:!1})).catch(()=>c.setProperty("metadata",{cardinality:{type:"estimate",value:Number.POSITIVE_INFINITY},canContainUndefs:!1}));const c=new C6.TransformIterator(async()=>this.queryBindings(this.url,u),{autoStart:!1}).transform({map:l=>(0,cd.mapTermsNested)(s,d=>{if(d.termType==="Variable"){const h=l.get(d);return h||c.destroy(new Error(`The endpoint ${this.url} failed to provide a binding for ${d.value}.`)),h}return d}),autoStart:!1});return c}}Xw.RdfSourceSparql=En;En.FACTORY=new NO.Factory;Object.defineProperty(Ww,"__esModule",{value:!0});Ww.ActorRdfResolveHypermediaSparql=void 0;const jye=Hv,Cye=Xw;class Fye extends jye.ActorRdfResolveHypermedia{constructor(e){super(e,"sparql")}async testMetadata(e){if(!e.forceSourceType&&!e.metadata.sparqlService&&!(this.checkUrlSuffix&&e.url.endsWith("/sparql")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql.`);return{filterFactor:1}}async run(e){return this.logInfo(e.context,`Identified ${e.url} as sparql source with service URL: ${e.metadata.sparqlService||e.url}`),{source:new Cye.RdfSourceSparql(e.metadata.sparqlService||e.url,e.context,this.mediatorHttp,this.forceHttpGet,this.cacheSize)}}}Ww.ActorRdfResolveHypermediaSparql=Fye;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ww,t)})(ZL);var tB={},Zw={},e3={},t3={};Object.defineProperty(t3,"__esModule",{value:!0});t3.ActorRdfUpdateHypermedia=void 0;const Mye=et;class Lye extends Mye.Actor{constructor(e,r){super(e),this.destinationType=r}async test(e){if(e.forceDestinationType&&this.destinationType!==e.forceDestinationType)throw new Error(`Actor ${this.name} is not able to handle destination type ${e.forceDestinationType}.`);return this.testMetadata(e)}}t3.ActorRdfUpdateHypermedia=Lye;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(t3,t)})(e3);var py={},jO={exports:{}};(function(t,e){var r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof g<"u"&&g,n=function(){function s(){this.fetch=!1,this.DOMException=r.DOMException}return s.prototype=r,new s}();(function(s){(function(o){var u=typeof s<"u"&&s||typeof self<"u"&&self||typeof u<"u"&&u,c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function l(C){return C&&DataView.prototype.isPrototypeOf(C)}if(c.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(C){return C&&d.indexOf(Object.prototype.toString.call(C))>-1};function f(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(C)||C==="")throw new TypeError('Invalid character in header field name: "'+C+'"');return C.toLowerCase()}function p(C){return typeof C!="string"&&(C=String(C)),C}function b(C){var V={next:function(){var ie=C.shift();return{done:ie===void 0,value:ie}}};return c.iterable&&(V[Symbol.iterator]=function(){return V}),V}function y(C){this.map={},C instanceof y?C.forEach(function(V,ie){this.append(ie,V)},this):Array.isArray(C)?C.forEach(function(V){this.append(V[0],V[1])},this):C&&Object.getOwnPropertyNames(C).forEach(function(V){this.append(V,C[V])},this)}y.prototype.append=function(C,V){C=f(C),V=p(V);var ie=this.map[C];this.map[C]=ie?ie+", "+V:V},y.prototype.delete=function(C){delete this.map[f(C)]},y.prototype.get=function(C){return C=f(C),this.has(C)?this.map[C]:null},y.prototype.has=function(C){return this.map.hasOwnProperty(f(C))},y.prototype.set=function(C,V){this.map[f(C)]=p(V)},y.prototype.forEach=function(C,V){for(var ie in this.map)this.map.hasOwnProperty(ie)&&C.call(V,this.map[ie],ie,this)},y.prototype.keys=function(){var C=[];return this.forEach(function(V,ie){C.push(ie)}),b(C)},y.prototype.values=function(){var C=[];return this.forEach(function(V){C.push(V)}),b(C)},y.prototype.entries=function(){var C=[];return this.forEach(function(V,ie){C.push([ie,V])}),b(C)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function w(C){return new Promise(function(V,ie){C.onload=function(){V(C.result)},C.onerror=function(){ie(C.error)}})}function I(C){var V=new FileReader,ie=w(V);return V.readAsArrayBuffer(C),ie}function O(C){var V=new FileReader,ie=w(V);return V.readAsText(C),ie}function T(C){for(var V=new Uint8Array(C),ie=new Array(V.length),ne=0;ne-1?V:C}function N(C,V){if(!(this instanceof N))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V=V||{};var ie=V.body;if(C instanceof N){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,V.headers||(this.headers=new y(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!ie&&C._bodyInit!=null&&(ie=C._bodyInit,C.bodyUsed=!0)}else this.url=String(C);if(this.credentials=V.credentials||this.credentials||"same-origin",(V.headers||!this.headers)&&(this.headers=new y(V.headers)),this.method=Q(V.method||this.method||"GET"),this.mode=V.mode||this.mode||null,this.signal=V.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ie)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(ie),(this.method==="GET"||this.method==="HEAD")&&(V.cache==="no-store"||V.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var fe=/\?/;this.url+=(fe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}N.prototype.clone=function(){return new N(this,{body:this._bodyInit})};function D(C){var V=new FormData;return C.trim().split("&").forEach(function(ie){if(ie){var ne=ie.split("="),fe=ne.shift().replace(/\+/g," "),_e=ne.join("=").replace(/\+/g," ");V.append(decodeURIComponent(fe),decodeURIComponent(_e))}}),V}function F(C){var V=new y,ie=C.replace(/\r?\n[\t ]+/g," ");return ie.split("\r").map(function(ne){return ne.indexOf(` -`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var fe=ne.split(":"),_e=fe.shift().trim();if(_e){var we=fe.join(":").trim();V.append(_e,we)}}),V}P.call(N.prototype);function W(C,V){if(!(this instanceof W))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');V||(V={}),this.type="default",this.status=V.status===void 0?200:V.status,this.ok=this.status>=200&&this.status<300,this.statusText=V.statusText===void 0?"":""+V.statusText,this.headers=new y(V.headers),this.url=V.url||"",this._initBody(C)}P.call(W.prototype),W.prototype.clone=function(){return new W(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},W.error=function(){var C=new W(null,{status:0,statusText:""});return C.type="error",C};var z=[301,302,303,307,308];W.redirect=function(C,V){if(z.indexOf(V)===-1)throw new RangeError("Invalid status code");return new W(null,{status:V,headers:{location:C}})},o.DOMException=u.DOMException;try{new o.DOMException}catch{o.DOMException=function(V,ie){this.message=V,this.name=ie;var ne=Error(V);this.stack=ne.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function M(C,V){return new Promise(function(ie,ne){var fe=new N(C,V);if(fe.signal&&fe.signal.aborted)return ne(new o.DOMException("Aborted","AbortError"));var _e=new XMLHttpRequest;function we(){_e.abort()}_e.onload=function(){var oe={status:_e.status,statusText:_e.statusText,headers:F(_e.getAllResponseHeaders()||"")};oe.url="responseURL"in _e?_e.responseURL:oe.headers.get("X-Request-URL");var ae="response"in _e?_e.response:_e.responseText;setTimeout(function(){ie(new W(ae,oe))},0)},_e.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},_e.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},_e.onabort=function(){setTimeout(function(){ne(new o.DOMException("Aborted","AbortError"))},0)};function Ce(oe){try{return oe===""&&u.location.href?u.location.href:oe}catch{return oe}}_e.open(fe.method,Ce(fe.url),!0),fe.credentials==="include"?_e.withCredentials=!0:fe.credentials==="omit"&&(_e.withCredentials=!1),"responseType"in _e&&(c.blob?_e.responseType="blob":c.arrayBuffer&&fe.headers.get("Content-Type")&&fe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(_e.responseType="arraybuffer")),V&&typeof V.headers=="object"&&!(V.headers instanceof y)?Object.getOwnPropertyNames(V.headers).forEach(function(oe){_e.setRequestHeader(oe,p(V.headers[oe]))}):fe.headers.forEach(function(oe,ae){_e.setRequestHeader(ae,oe)}),fe.signal&&(fe.signal.addEventListener("abort",we),_e.onreadystatechange=function(){_e.readyState===4&&fe.signal.removeEventListener("abort",we)}),_e.send(typeof fe._bodyInit>"u"?null:fe._bodyInit)})}return M.polyfill=!0,u.fetch||(u.fetch=M,u.Headers=y,u.Request=N,u.Response=W),o.Headers=y,o.Request=N,o.Response=W,o.fetch=M,o})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=r.fetch?r:n;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e})(jO,jO.exports);var OR=jO.exports;Object.defineProperty(py,"__esModule",{value:!0});py.QuadDestinationPatchSparqlUpdate=void 0;const Bye=ms,$ye=kf,Uye=OR,U1=j0,qye=Kt;class Vye{constructor(e,r,n){this.url=e,this.context=r,this.mediatorHttp=n}insert(e){return this.wrapSparqlUpdateRequest("INSERT",e)}async delete(e){return this.wrapSparqlUpdateRequest("DELETE",e)}async wrapSparqlUpdateRequest(e,r){const n=r.map(u=>{let c=`${(0,U1.termToString)(u.subject)} ${(0,U1.termToString)(u.predicate)} ${(0,U1.termToString)(u.object)} .`;return u.graph.termType!=="DefaultGraph"?c=` GRAPH ${(0,U1.termToString)(u.graph)} { ${c} } -`:c=` ${c} -`,c}).prepend([`${e} DATA { -`]).append(["}"]),a=new qye.Readable;a._read=()=>!0,n.on("data",u=>a.push(u)),n.on("end",()=>a.push(null));const s=new Uye.Headers({"content-type":"application/sparql-update"}),o=await this.mediatorHttp.mediate({context:this.context,init:{headers:s,method:"PATCH",body:Bye.ActorHttp.toWebReadableStream(a)},input:this.url});await(0,$ye.validateHttpResponse)(this.url,o)}async deleteGraphs(e,r,n){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}async createGraphs(e,r){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}}py.QuadDestinationPatchSparqlUpdate=Vye;Object.defineProperty(Zw,"__esModule",{value:!0});Zw.ActorRdfUpdateHypermediaPatchSparqlUpdate=void 0;const Hye=e3,kye=py;class Qye extends Hye.ActorRdfUpdateHypermedia{constructor(e){super(e,"patchSparqlUpdate")}async testMetadata(e){if(!e.forceDestinationType&&!e.metadata.patchSparqlUpdate)throw new Error(`Actor ${this.name} could not detect a destination with 'application/sparql-update' as 'Accept-Patch' header.`);if(!e.forceDestinationType&&!e.exists)throw new Error(`Actor ${this.name} can only patch a destination that already exists.`);return!0}async run(e){return this.logInfo(e.context,`Identified as patchSparqlUpdate destination: ${e.url}`),{destination:new kye.QuadDestinationPatchSparqlUpdate(e.url,e.context,this.mediatorHttp)}}}Zw.ActorRdfUpdateHypermediaPatchSparqlUpdate=Qye;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Zw,t),r(py,t)})(tB);var rB={},r3={},yy={};Object.defineProperty(yy,"__esModule",{value:!0});yy.QuadDestinationPutLdp=void 0;const Gye=ms,zye=kf,Wye=OR;class Xye{constructor(e,r,n,a,s,o){this.url=e,this.context=r,this.mediaTypes=n,this.mediatorHttp=a,this.mediatorRdfSerializeMediatypes=s,this.mediatorRdfSerialize=o}insert(e){return this.wrapRdfUpdateRequest("INSERT",e)}async delete(e){throw new Error("Put-based LDP destinations don't support deletions")}async wrapRdfUpdateRequest(e,r){const{mediaTypes:n}=await this.mediatorRdfSerializeMediatypes.mediate({context:this.context,mediaTypes:!0}),a=this.mediaTypes.filter(l=>l in n),s=a.length>0?a[0]:Object.keys(n).sort((l,d)=>n[d]-n[l])[0],{handle:{data:o}}=await this.mediatorRdfSerialize.mediate({context:this.context,handle:{quadStream:r,context:this.context},handleMediaType:s}),u=new Wye.Headers({"content-type":s}),c=await this.mediatorHttp.mediate({context:this.context,init:{headers:u,method:"PUT",body:Gye.ActorHttp.toWebReadableStream(o)},input:this.url});await(0,zye.validateHttpResponse)(this.url,c)}async deleteGraphs(e,r,n){throw new Error("Put-based LDP destinations don't support named graphs")}async createGraphs(e,r){throw new Error("Put-based LDP destinations don't support named graphs")}}yy.QuadDestinationPutLdp=Xye;Object.defineProperty(r3,"__esModule",{value:!0});r3.ActorRdfUpdateHypermediaPutLdp=void 0;const Kye=e3,Jye=yy;class Yye extends Kye.ActorRdfUpdateHypermedia{constructor(e){super(e,"putLdp")}async testMetadata(e){if(!e.forceDestinationType){if(!e.metadata.allowHttpMethods||!e.metadata.allowHttpMethods.includes("PUT"))throw new Error(`Actor ${this.name} could not detect a destination with 'Allow: PUT' header.`);if(e.exists)throw new Error(`Actor ${this.name} can only put on a destination that does not already exists.`)}return!0}async run(e){return this.logInfo(e.context,`Identified as putLdp destination: ${e.url}`),{destination:new Jye.QuadDestinationPutLdp(e.url,e.context,e.metadata.putAccepted||[],this.mediatorHttp,this.mediatorRdfSerializeMediatypes,this.mediatorRdfSerialize)}}}r3.ActorRdfUpdateHypermediaPutLdp=Yye;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(r3,t),r(yy,t)})(rB);var nB={},n3={},by={};Object.defineProperty(by,"__esModule",{value:!0});by.QuadDestinationSparql=void 0;const Zye=Kw,q1=j0,e1e=Pl;class t1e{constructor(e,r,n){this.url=e,this.context=r,this.mediatorHttp=n,this.endpointFetcher=new Zye.SparqlEndpointFetcher({fetch:(a,s)=>this.mediatorHttp.mediate({input:a,init:s,context:this.context}),prefixVariableQuestionMark:!0})}insert(e){return this.wrapSparqlUpdateRequest("INSERT",e)}async delete(e){return this.wrapSparqlUpdateRequest("DELETE",e)}async wrapSparqlUpdateRequest(e,r){const n=r.map(s=>{let o=`${(0,q1.termToString)(s.subject)} ${(0,q1.termToString)(s.predicate)} ${(0,q1.termToString)(s.object)} .`;return s.graph.termType!=="DefaultGraph"?o=` GRAPH ${(0,q1.termToString)(s.graph)} { ${o} } -`:o=` ${o} -`,o}).prepend([`${e} DATA { -`]).append(["}"]),a=await e1e(n);await this.endpointFetcher.fetchUpdate(this.url,a)}async deleteGraphs(e,r,n){const a=Array.isArray(e)?e:[e],s=[];for(const o of a){let u;typeof o=="string"?u=o:o.termType==="DefaultGraph"?u="DEFAULT":u=`GRAPH <${o.value}>`,s.push(`${n?"DROP":"CLEAR"} ${r?"":"SILENT "}${u}`)}await this.endpointFetcher.fetchUpdate(this.url,s.join("; "))}async createGraphs(e,r){const n=[];for(const a of e)n.push(`CREATE${r?"":" SILENT"} GRAPH <${a.value}>`);await this.endpointFetcher.fetchUpdate(this.url,n.join("; "))}}by.QuadDestinationSparql=t1e;Object.defineProperty(n3,"__esModule",{value:!0});n3.ActorRdfUpdateHypermediaSparql=void 0;const r1e=e3,n1e=by;class i1e extends r1e.ActorRdfUpdateHypermedia{constructor(e){super(e,"sparql")}async testMetadata(e){if(!e.forceDestinationType&&!e.metadata.sparqlService&&!(this.checkUrlSuffixSparql&&e.url.endsWith("/sparql"))&&!(this.checkUrlSuffixUpdate&&e.url.endsWith("/update")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql or /update.`);return!0}async run(e){return this.logInfo(e.context,`Identified as sparql destination: ${e.url}`),{destination:new n1e.QuadDestinationSparql(e.metadata.sparqlService||e.url,e.context,this.mediatorHttp)}}}n3.ActorRdfUpdateHypermediaSparql=i1e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(n3,t),r(by,t)})(nB);var iB={},i3={},a3={};Object.defineProperty(a3,"__esModule",{value:!0});a3.LazyCardinalityIterator=void 0;const Yc=Wt;class a1e extends Yc.AsyncIterator{constructor(e){super(),this._source=e,this._count=0,this._buffering=!0,e[Yc.DESTINATION]=this,e.on("readable",ld),e.on("end",ld),e.on("error",F6),this.readable=e.readable}read(){if(this._buffer)return this._buffer.empty?(this._buffering||this.close(),this.readable=!1,null):this._buffer.shift();let e=null;return this._source.readable&&(e=this._source.read())!==null?this._count+=1:(this.readable=!1,this._source.done&&this.close()),e}getCardinality(){return this._cardinality?this._cardinality:this._error?Promise.reject(this._error):(this._source.done&&this.close(),this.done?this._cardinality=Promise.resolve(this._count):(this._buffer=new Yc.LinkedList,this._cardinality=new Promise((e,r)=>{this._source.removeListener("readable",ld),this._source.removeListener("end",ld);const n=()=>{this._source.removeListener("data",a),this._source.removeListener("end",s),this._source.removeListener("error",o)},a=u=>{this._buffer.push(u),this._count+=1,this.readable=!0},s=()=>{this._buffering=!1,n(),e(this._count)},o=u=>{this._buffering=!1,n(),r(u)};this._source.on("data",a),this._source.on("end",s),this._source.on("error",o)})),this._cardinality)}close(){this._source.removeListener("readable",ld),this._source.removeListener("end",ld),this._source.removeListener("error",F6),delete this._source[Yc.DESTINATION],this._source.destroy(),super.close()}}a3.LazyCardinalityIterator=a1e;function ld(){this[Yc.DESTINATION].readable=!0}function F6(t){this[Yc.DESTINATION]._error=t,this[Yc.DESTINATION].emit("error",t)}Object.defineProperty(i3,"__esModule",{value:!0});i3.ActorQueryOperationSparqlEndpoint=void 0;const s1e=Hn,o1e=ft,Dh=Dl,iE=kf,u1e=Ht,c1e=ba,l1e=Wt,d1e=Kw,f1e=yt,Eu=Tt,h1e=a3,p1e=new s1e.BindingsFactory,y1e=new f1e.DataFactory;class qp extends o1e.ActorQueryOperation{constructor(e){super(e),this.endpointFetcher=new d1e.SparqlEndpointFetcher({method:e.forceHttpGet?"GET":"POST",fetch:(r,n)=>this.mediatorHttp.mediate({input:r,init:n,context:this.lastContext}),prefixVariableQuestionMark:!0})}async test(e){if(!e.operation)throw new Error("Missing field 'operation' in a query operation action.");const r=(0,Dh.getContextSourceFirst)(e.context),n=(0,iE.getContextDestinationFirst)(e.context),a=r?(0,Dh.getDataSourceType)(r):void 0,s=n?(0,iE.getDataDestinationType)(n):void 0,o=r?(0,Dh.getDataSourceValue)(r):void 0,u=n?(0,iE.getDataDestinationValue)(n):void 0;if(r&&a==="sparql"&&(!n||s==="sparql"&&u===o)||r&&!a&&(!n||!s&&u===o)&&typeof o=="string"&&(this.checkUrlSuffixSparql&&o.endsWith("/sparql")||this.checkUrlSuffixUpdate&&o.endsWith("/update")))return{httpRequests:1};throw new Error(`${this.name} requires a single source with a 'sparql' endpoint to be present in the context or URL ending on /sparql or /update.`)}async run(e){const r=(0,Dh.getContextSourceFirst)(e.context);if(!r)throw new Error("Illegal state: undefined sparql endpoint source.");const n=(0,Dh.getDataSourceValue)(r);this.lastContext=e.context;let a,s,o;try{a=e.context.get(u1e.KeysInitQuery.queryString)??(0,Eu.toSparql)(e.operation,{sparqlStar:!0}),s=this.endpointFetcher.getQueryType(a),s==="UNKNOWN"&&(s=this.endpointFetcher.getUpdateTypes(a))}catch{}(!s||s==="UNKNOWN")&&(o=Eu.Util.inScopeVariables(e.operation),a=(0,Eu.toSparql)(qp.FACTORY.createProject(e.operation,o)),s="SELECT");const u=this.canOperationContainUndefs(e.operation);switch(s){case"SELECT":return o||(o=Eu.Util.inScopeVariables(e.operation)),this.executeQuery(n,a,!1,o,u);case"CONSTRUCT":return this.executeQuery(n,a,!0,void 0,!1);case"ASK":return{type:"boolean",execute:()=>this.endpointFetcher.fetchAsk(n,a)};default:return{type:"void",execute:()=>this.endpointFetcher.fetchUpdate(n,a)}}}executeQuery(e,r,n,a,s){const o=n?this.endpointFetcher.fetchTriples(e,r):this.endpointFetcher.fetchBindings(e,r),u=(0,l1e.wrap)(o,{autoStart:!1}).map(d=>n?d:p1e.bindings(Object.entries(d).map(([h,f])=>[y1e.variable(h.slice(1)),f]))),c=new h1e.LazyCardinalityIterator(u),l=qp.cachifyMetadata(async()=>({state:new c1e.MetadataValidationState,cardinality:{type:"exact",value:await c.getCardinality()},canContainUndefs:s,variables:a}));return n?{type:"quads",quadStream:c,metadata:l}:{type:"bindings",bindingsStream:c,metadata:l}}canOperationContainUndefs(e){let r=!1;return Eu.Util.recurseOperation(e,{[Eu.Algebra.types.LEFT_JOIN](){return r=!0,!1},[Eu.Algebra.types.VALUES](n){for(const a of n.bindings){const s=Object.keys(a);n.variables.every(o=>s.includes(`?${o.value}`))||(r=!0)}return!1}}),r}}i3.ActorQueryOperationSparqlEndpoint=qp;qp.FACTORY=new Eu.Factory;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(i3,t)})(iB);var aB={},s3={},sB={},o3={};Object.defineProperty(o3,"__esModule",{value:!0});o3.ActorDereferenceRdf=void 0;const b1e=X_;class m1e extends b1e.ActorDereferenceParse{constructor(e){super(e)}}o3.ActorDereferenceRdf=m1e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(o3,t)})(sB);Object.defineProperty(s3,"__esModule",{value:!0});s3.ActorDereferenceRdfParse=void 0;const g1e=sB;class _1e extends g1e.ActorDereferenceRdf{constructor(e){super(e)}async getMetadata(e){return{baseIRI:e.url}}}s3.ActorDereferenceRdfParse=_1e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(s3,t)})(aB);var oB={},u3={},c3={};Object.defineProperty(c3,"__esModule",{value:!0});c3.HtmlScriptListener=void 0;const M6=Ht,v1e=Kt,w1e=Na;class Rd{constructor(e,r,n,a,s,o,u,c){this.textChunksJsonLd=[],this.endBarrier=1,this.passedScripts=0,this.isFinalJsonLdProcessing=!1,this.mediatorRdfParseHandle=e,this.cbQuad=r,this.cbError=n,this.cbEnd=a,this.supportedTypes=s,this.context=o.set(M6.KeysRdfParseHtmlScript.processingHtmlScript,!0),this.baseIRI=u,this.headers=c,this.onlyFirstScript=o.get(M6.KeysRdfParseHtmlScript.extractAllScripts)===!1;const l=this.baseIRI.indexOf("#");this.targetScriptId=l>0?this.baseIRI.slice(l+1,this.baseIRI.length):null}static newErrorCoded(e,r){const n=new Error(e);return n.code=r,n}onEnd(){--this.endBarrier===0&&(this.textChunksJsonLd.length>0?(this.handleMediaType="application/ld+json",this.textChunks=this.textChunksJsonLd,this.textChunks.push("]"),this.textChunksJsonLd=[],this.isFinalJsonLdProcessing=!0,this.endBarrier++,this.onTagClose()):(this.passedScripts===0&&this.targetScriptId&&this.cbError(Rd.newErrorCoded(`Failed to find targeted script id "${this.targetScriptId}"`,"loading document failed")),this.cbEnd()),this.isFinalJsonLdProcessing=!1)}onTagClose(){if(this.handleMediaType)if(this.requiresCustomJsonLdHandling(this.handleMediaType)&&!this.isFinalJsonLdProcessing)this.handleMediaType=void 0,this.textChunks=void 0,this.onEnd();else{const e=new v1e.Readable({objectMode:!0});e._read=()=>{};const r=this.textChunks,n={context:this.context,handle:{metadata:{baseIRI:this.baseIRI},data:e,headers:this.headers,context:this.context},handleMediaType:this.handleMediaType};this.mediatorRdfParseHandle.mediate(n).then(({handle:a})=>{a.data.on("error",s=>this.cbError(Rd.newErrorCoded(s.message,"invalid script element"))).on("data",this.cbQuad).on("end",()=>this.onEnd());for(const s of r)e.push(s);e.push(null)}).catch(a=>{this.targetScriptId?this.cbError(Rd.newErrorCoded(a.message,"loading document failed")):this.onEnd()}),this.handleMediaType=void 0,this.textChunks=void 0}}onTagOpen(e,r){e==="base"&&r.href&&(this.baseIRI=(0,w1e.resolve)(r.href,this.baseIRI)),e==="script"&&(!this.targetScriptId||r.id===this.targetScriptId)?this.supportedTypes[r.type]?this.onlyFirstScript&&this.passedScripts>0?this.handleMediaType=void 0:(this.passedScripts++,this.handleMediaType=r.type,this.endBarrier++,this.requiresCustomJsonLdHandling(this.handleMediaType)?(this.textChunks=this.textChunksJsonLd,this.textChunks.push(this.textChunks.length===0?"[":",")):this.textChunks=[]):this.targetScriptId&&this.cbError(Rd.newErrorCoded(`Targeted script "${this.targetScriptId}" does not have a supported type`,"loading document failed")):this.handleMediaType=void 0}onText(e){this.handleMediaType&&this.textChunks.push(e)}requiresCustomJsonLdHandling(e){return!this.onlyFirstScript&&!this.targetScriptId&&e==="application/ld+json"}}c3.HtmlScriptListener=Rd;Object.defineProperty(u3,"__esModule",{value:!0});u3.ActorRdfParseHtmlScript=void 0;const S1e=Mv,T1e=c3;class E1e extends S1e.ActorRdfParseHtml{constructor(e){super(e)}async test(e){return!0}async run(e){const r=(await this.mediatorRdfParseMediatypes.mediate({context:e.context,mediaTypes:!0})).mediaTypes;return{htmlParseListener:new T1e.HtmlScriptListener(this.mediatorRdfParseHandle,e.emit,e.error,e.end,r,e.context,e.baseIRI,e.headers)}}}u3.ActorRdfParseHtmlScript=E1e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(u3,t)})(oB);var uB={},l3={},Ca={},d3={};Object.defineProperty(d3,"__esModule",{value:!0});d3.ActorRdfJoin=void 0;const O1e=ft,V1=Ht,A1e=et,x1e=ba,R1e=yt,I1e=sr,P1e=new R1e.DataFactory;class Nu extends A1e.Actor{constructor(e,r){super(e),this.includeInLogs=!0,this.logicalType=r.logicalType,this.physicalName=r.physicalName,this.limitEntries=r.limitEntries??Number.POSITIVE_INFINITY,this.limitEntriesMin=r.limitEntriesMin??!1,this.canHandleUndefs=r.canHandleUndefs??!1}static hash(e,r){return r.filter(n=>e.has(n)).map(n=>(0,I1e.termToString)(e.get(n))).join("")}static overlappingVariables(e){const r=e.map(a=>a.variables);let n=r[0];for(const a of r.slice(1))n=n.filter(s=>a.some(o=>o.value===s.value));return n}static joinVariables(e){return[...new Set(e.flatMap(r=>r.variables.map(n=>n.value)))].map(r=>P1e.variable(r))}static joinBindings(...e){if(e.length===0)return null;if(e.length===1)return e[0];let r=e[0];for(const n of e.slice(1)){const a=r.merge(n);if(!a)return null;r=a}return r}static getCardinality(e){return e.cardinality}static async getMetadatas(e){return await Promise.all(e.map(r=>r.output.metadata()))}static async getEntriesWithMetadatas(e){const r=await Nu.getMetadatas(e);return e.map((n,a)=>({...n,metadata:r[a]}))}static getRequestInitialTimes(e){return e.map(r=>r.pageSize?0:r.requestTime||0)}static getRequestItemTimes(e){return e.map(r=>r.pageSize?(r.requestTime||0)/r.pageSize:0)}async constructResultMetadata(e,r,n,a={}){let s;a.cardinality?s=a.cardinality:(s=r.reduce((c,l)=>{const d=Nu.getCardinality(l);return{type:d.type==="estimate"?"estimate":c.type,value:c.value*d.value}},{type:"exact",value:1}),s.value*=(await this.mediatorJoinSelectivity.mediate({entries:e,context:n})).selectivity);const o=new x1e.MetadataValidationState,u=()=>o.invalidate();for(const c of r)c.state.addInvalidateListener(u);return{state:o,...a,cardinality:{type:s.type,value:s.value},canContainUndefs:a.canContainUndefs??r.some(c=>c.canContainUndefs),variables:Nu.joinVariables(r)}}async test(e){if(e.type!==this.logicalType)throw new Error(`${this.name} can only handle logical joins of type '${this.logicalType}', while '${e.type}' was given.`);if(e.entries.length<=1)throw new Error(`${this.name} requires at least two join entries.`);if(this.limitEntriesMin?e.entries.lengththis.limitEntries)throw new Error(`${this.name} requires ${this.limitEntries} join entries at ${this.limitEntriesMin?"least":"most"}. The input contained ${e.entries.length}.`);for(const n of e.entries)if(n.output.type!=="bindings")throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${n.output.type}'`);const r=await Nu.getMetadatas(e.entries);if(!this.canHandleUndefs){for(const n of r)if(n.canContainUndefs)throw new Error(`Actor ${this.name} can not join streams containing undefs`)}return await this.getJoinCoefficients(e,r)}async run(e){let r;e.context.has(V1.KeysInitQuery.physicalQueryPlanLogger)&&(r=e.context.get(V1.KeysInitQuery.physicalQueryPlanNode),e.context=e.context.set(V1.KeysInitQuery.physicalQueryPlanNode,e));const n=e.context.get(V1.KeysInitQuery.physicalQueryPlanLogger);let a;this.includeInLogs&&n&&(a={},n.logOperation(`join-${this.logicalType}`,this.physicalName,e,r,this.name,a));const{result:s,physicalPlanMetadata:o}=await this.getOutput(e),u=await Nu.getMetadatas(e.entries);return a&&(Object.assign(a,o),a.cardinalities=u.map(Nu.getCardinality),a.joinCoefficients=await this.getJoinCoefficients(e,u)),s.metadata=O1e.ActorQueryOperation.cachifyMetadata(s.metadata),s}}d3.ActorRdfJoin=Nu;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(d3,t)})(Ca);Object.defineProperty(l3,"__esModule",{value:!0});l3.ActorRdfJoinNone=void 0;const D1e=Hn,N1e=Ca,j1e=ba,C1e=Wt,F1e=new D1e.BindingsFactory;class M1e extends N1e.ActorRdfJoin{constructor(e){super(e,{logicalType:"inner",physicalName:"none",limitEntries:0})}async test(e){if(e.entries.length>0)throw new Error(`Actor ${this.name} can only join zero entries`);return await this.getJoinCoefficients()}async getOutput(e){return{result:{bindingsStream:new C1e.ArrayIterator([F1e.bindings()],{autoStart:!1}),metadata:()=>Promise.resolve({state:new j1e.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}}l3.ActorRdfJoinNone=M1e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(l3,t)})(uB);var cB={},f3={};Object.defineProperty(f3,"__esModule",{value:!0});f3.ActorRdfJoinSingle=void 0;const L1e=Ca;class B1e extends L1e.ActorRdfJoin{constructor(e){super(e,{logicalType:"inner",physicalName:"single",limitEntries:1}),this.includeInLogs=!1}async test(e){if(e.entries.length!==1)throw new Error(`Actor ${this.name} can only join a single entry`);return await this.getJoinCoefficients()}async getOutput(e){return{result:e.entries[0].output}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}}f3.ActorRdfJoinSingle=B1e;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(f3,t)})(cB);var AR={},h3={};Object.defineProperty(h3,"__esModule",{value:!0});h3.ActorRdfJoinMultiBind=void 0;const L6=ft,H1=Ca,aE=Ht,sE=Wt,np=Tt;class Vp extends H1.ActorRdfJoin{constructor(e){super(e,{logicalType:"inner",physicalName:"bind",canHandleUndefs:!0})}static createBindStream(e,r,n,a,s){const o=u=>{const c=n.map(d=>(0,L6.materializeOperation)(d,u,{bindFilter:!1})),l=d=>d.merge(u);return new sE.TransformIterator(async()=>(await a(c,u)).transform({map:l}),{maxBufferSize:128,autoStart:!1})};switch(e){case"depth-first":return new sE.MultiTransformIterator(r,{autoStart:!1,multiTransform:o,optional:s});case"breadth-first":return new sE.UnionIterator(r.transform({map:o,optional:s}),{autoStart:!1});default:throw new Error(`Received request for unknown bind order: ${e}`)}}async sortJoinEntries(e,r){if(e.some(u=>u.metadata.canContainUndefs))return e;const a={};for(const u of e)for(const c of u.metadata.variables){let l=a[c.value];l||(l=0),a[c.value]=++l}const s=[];for(const[u,c]of Object.entries(a))c>=2&&s.push(u);if(s.length===0)throw new Error("Bind join can only join entries with at least one common variable");const o=[];for(const u of e){let c=!1;for(const l of u.metadata.variables)if(s.includes(l.value)){c=!0;break}c||o.push(u)}return(await this.mediatorJoinEntriesSort.mediate({entries:e,context:r})).entries.sort((u,c)=>{const l=o.includes(u),d=o.includes(c);return l===d?0:l?1:-1})}async getOutput(e){const r=await H1.ActorRdfJoin.getEntriesWithMetadatas(e.entries),n=await this.sortJoinEntries(r,e.context);this.logDebug(e.context,"First entry for Bind Join: ",()=>({entry:n[0].operation,metadata:n[0].metadata}));for(const[c,l]of n.entries())c!==0&&l.output.bindingsStream.close();const a=n[0].output,s=[...n];s.splice(0,1);const o=e.context.set(aE.KeysQueryOperation.joinLeftMetadata,n[0].metadata).set(aE.KeysQueryOperation.joinRightMetadatas,s.map(c=>c.metadata));return{result:{type:"bindings",bindingsStream:Vp.createBindStream(this.bindOrder,a.bindingsStream,s.map(c=>c.operation),async(c,l)=>{const d=c.length===1?c[0]:Vp.FACTORY.createJoin(c);return L6.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:d,context:o==null?void 0:o.set(aE.KeysQueryOperation.joinBindings,l)})).bindingsStream},!1),metadata:()=>this.constructResultMetadata(n,n.map(c=>c.metadata),e.context)},physicalPlanMetadata:{bindIndex:r.indexOf(n[0]),bindOrder:this.bindOrder}}}canBindWithOperation(e){let r=!0;return np.Util.recurseOperation(e,{[np.Algebra.types.EXTEND](){return r=!1,!1},[np.Algebra.types.GROUP](){return r=!1,!1},[np.Algebra.types.FILTER](){return r=!1,!1}}),r}async getJoinCoefficients(e,r){const n=await this.sortJoinEntries(e.entries.map((p,b)=>({...p,metadata:r[b]})),e.context);r=n.map(p=>p.metadata);const a=H1.ActorRdfJoin.getRequestInitialTimes(r),s=H1.ActorRdfJoin.getRequestItemTimes(r),o=[...n],u=[...a],c=[...s];if(o.splice(0,1),u.splice(0,1),c.splice(0,1),o.some(p=>!this.canBindWithOperation(p.operation)))throw new Error(`Actor ${this.name} can not bind on Extend, Group, and Filter operations`);const l=await Promise.all(o.map(async p=>(await this.mediatorJoinSelectivity.mediate({entries:[n[0],p],context:e.context})).selectivity*this.selectivityModifier)),d=o.map((p,b)=>p.metadata.cardinality.value*l[b]).reduce((p,b)=>p+b,0),h=u.reduce((p,b,y)=>p+b*l[y],0),f=c.reduce((p,b,y)=>p+b*l[y],0);return{iterations:r[0].cardinality.value*d,persistedItems:0,blockingItems:0,requestTime:a[0]+r[0].cardinality.value*(s[0]+h+d*f)}}}h3.ActorRdfJoinMultiBind=Vp;Vp.FACTORY=new np.Factory;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(h3,t)})(AR);var lB={},p3={};let dB=Wt,$1e=dB.MultiTransformIterator,U1e=dB.SimpleTransformIterator,q1e=class extends $1e{constructor(e,r,n,a){super(e,a),this.funRight=r,this.funJoin=n}_createTransformer(e){return new U1e(this.funRight(e),{transform:(r,n,a)=>{let s=this.funJoin(e,r);s!==null&&a(s),n()}})}};var V1e=q1e;let H1e=Wt.AsyncIterator,k1e=class extends H1e{constructor(e,r,n,a){super(),this.addedDataListener=!1,this.left=e,this.right=r,this.funHash=n,this.funJoin=a,this.leftMap=new Map,this.match=null,this.matches=[],this.matchIdx=0,this.left.on("error",o=>this.destroy(o)),this.right.on("error",o=>this.destroy(o)),this.readable=!1,this.left.on("end",s.bind(this));function s(){if(this.leftMap.size<=0)return this.close();this.readable=!0,this.right.on("readable",()=>this.readable=!0),this.right.on("end",()=>{this.hasResults()||this._end()})}this.on("newListener",o=>{o==="data"&&!this.addedDataListener&&(this.addedDataListener=!0,this._addDataListener())})}hasResults(){return!this.right.ended||this.matchIdxthis.right.close())}_end(){super._end(),W1e(()=>this.right.destroy())}_createTransformer(e){return new z1e(this.right.clone(),{transform:(r,n,a)=>{let s=this.funJoin(e,r);s!==null&&a(s),n()}})}};var K1e=X1e;let J1e=Wt.AsyncIterator,Y1e=class extends J1e{constructor(e,r,n,a){super(),this.left=e,this.right=r,this.funHash=n,this.funJoin=a,this.usedLeft=!1,this.leftMap=new Map,this.rightMap=new Map,this.on("end",()=>this._cleanup()),this.match=null,this.matches=[],this.matchIdx=0,(this.left.readable||this.right.readable)&&(this.readable=!0),this.left.on("error",s=>this.destroy(s)),this.right.on("error",s=>this.destroy(s)),this.left.on("readable",()=>this.readable=!0),this.right.on("readable",()=>this.readable=!0),this.left.on("end",()=>{this.hasResults()||this._end()}),this.right.on("end",()=>{this.hasResults()||this._end()})}hasResults(){return!this.left.ended||!this.right.ended||!!this.matches&&this.matchIdxthis.emit("readable")),r.on("end",()=>this._removeStream(r));this.streams.length===0&&this.close(),this.idx=this.streams.length-1}_removeStream(e){let r=this.streams.indexOf(e);r<0||(this.streams.splice(r,1),this.idx>=this.streams.length&&--this.idx,this.streams.length===0&&this._end())}close(){super.close();for(let e of this.streams)e.close()}read(){for(let e=0;eRc.ActorRdfJoin.hash(s,n),Rc.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(e.entries,r,e.context)}}}async getJoinCoefficients(e,r){const n=Rc.ActorRdfJoin.getRequestInitialTimes(r),a=Rc.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value+r[1].cardinality.value,persistedItems:r[0].cardinality.value,blockingItems:r[0].cardinality.value,requestTime:n[0]+r[0].cardinality.value*a[0]+n[1]+r[1].cardinality.value*a[1]}}}p3.ActorRdfJoinHash=cbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(p3,t)})(lB);var fB={},b3={};Object.defineProperty(b3,"__esModule",{value:!0});b3.ActorRdfJoinSymmetricHash=void 0;const dd=Ca,lbe=y3;class xR extends dd.ActorRdfJoin{constructor(e){super(e,{logicalType:"inner",physicalName:"symmetric-hash",limitEntries:2})}async getOutput(e){const r=await dd.ActorRdfJoin.getMetadatas(e.entries),n=dd.ActorRdfJoin.overlappingVariables(r);return{result:{type:"bindings",bindingsStream:new lbe.SymmetricHashJoin(e.entries[0].output.bindingsStream,e.entries[1].output.bindingsStream,s=>xR.hash(s,n),dd.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(e.entries,r,e.context)}}}async getJoinCoefficients(e,r){const n=dd.ActorRdfJoin.getRequestInitialTimes(r),a=dd.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value+r[1].cardinality.value,persistedItems:r[0].cardinality.value+r[1].cardinality.value,blockingItems:0,requestTime:n[0]+r[0].cardinality.value*a[0]+n[1]+r[1].cardinality.value*a[1]}}}b3.ActorRdfJoinSymmetricHash=xR;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(b3,t)})(fB);var hB={},m3={};Object.defineProperty(m3,"__esModule",{value:!0});m3.ActorRdfJoinNestedLoop=void 0;const Nh=Ca,dbe=y3;class fbe extends Nh.ActorRdfJoin{constructor(e){super(e,{logicalType:"inner",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(e){return{result:{type:"bindings",bindingsStream:new dbe.NestedLoopJoin(e.entries[0].output.bindingsStream,e.entries[1].output.bindingsStream,Nh.ActorRdfJoin.joinBindings,{autoStart:!1}),metadata:async()=>await this.constructResultMetadata(e.entries,await Nh.ActorRdfJoin.getMetadatas(e.entries),e.context)}}}async getJoinCoefficients(e,r){const n=Nh.ActorRdfJoin.getRequestInitialTimes(r),a=Nh.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value*r[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:n[0]+r[0].cardinality.value*a[0]+n[1]+r[1].cardinality.value*a[1]}}}m3.ActorRdfJoinNestedLoop=fbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(m3,t)})(hB);var pB={},g3={};Object.defineProperty(g3,"__esModule",{value:!0});g3.ActorRdfJoinMinusHash=void 0;const hbe=ft,Ic=Ca;class pbe extends Ic.ActorRdfJoin{constructor(e){super(e,{logicalType:"minus",physicalName:"hash",limitEntries:2})}async getOutput(e){const r=e.entries[1].output,n=e.entries[0].output,a=await Ic.ActorRdfJoin.getMetadatas(e.entries),s=Ic.ActorRdfJoin.overlappingVariables(a);if(s.length>0){const o={};return{result:{type:"bindings",bindingsStream:new hbe.ClosableTransformIterator(async()=>(await new Promise(c=>{r.bindingsStream.on("data",l=>{o[Ic.ActorRdfJoin.hash(l,s)]=!0}),r.bindingsStream.on("end",c)}),n.bindingsStream.filter(c=>!o[Ic.ActorRdfJoin.hash(c,s)])),{autoStart:!1,onClose(){r.bindingsStream.destroy(),n.bindingsStream.destroy()}}),metadata:n.metadata}}}return r.bindingsStream.destroy(),{result:n}}async getJoinCoefficients(e,r){const n=Ic.ActorRdfJoin.getRequestInitialTimes(r),a=Ic.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value+r[1].cardinality.value,persistedItems:r[0].cardinality.value,blockingItems:r[0].cardinality.value,requestTime:n[0]+r[0].cardinality.value*a[0]+n[1]+r[1].cardinality.value*a[1]}}}g3.ActorRdfJoinMinusHash=pbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(g3,t)})(pB);var yB={},_3={},v3={};Object.defineProperty(v3,"__esModule",{value:!0});v3.BindingsIndex=void 0;const ybe=sr;class rm{constructor(e){this.data={},this.keys=e}static hashTerm(e){return e&&e.termType!=="Variable"?(0,ybe.termToString)(e):""}add(e){if(this.isBindingsValid(e)){let r=this.data;for(const n of this.keys){const a=rm.hashTerm(e.get(n));let s=r[a];s||(s=r[a]={}),r=s}}}contains(e){return this.isBindingsValid(e)?this.containsRecursive(e,this.keys,[this.data]):!1}isBindingsValid(e){let r=!1;for(const n of this.keys)if(e.get(n)){r=!0;break}return r}containsRecursive(e,r,n){if(r.length===0)return!0;let a;[a,...r]=r;for(const s of n){const o=rm.hashTerm(e.get(a));if(o){const u=[s[o],s[""]].filter(Boolean);if(u.length===0)continue;if(this.containsRecursive(e,r,u))return!0}else{let u=Object.keys(s).map(c=>s[c]);if(u.length===0&&(u=[{}]),this.containsRecursive(e,r,u))return!0}}return!1}}v3.BindingsIndex=rm;Object.defineProperty(_3,"__esModule",{value:!0});_3.ActorRdfJoinMinusHashUndef=void 0;const bbe=ft,jh=Ca,mbe=v3;class gbe extends jh.ActorRdfJoin{constructor(e){super(e,{logicalType:"minus",physicalName:"hash-undef",limitEntries:2,canHandleUndefs:!0})}async getOutput(e){const r=e.entries[1].output,n=e.entries[0].output,a=await jh.ActorRdfJoin.getMetadatas(e.entries),s=jh.ActorRdfJoin.overlappingVariables(a);if(s.length>0){const o=new mbe.BindingsIndex(s);return{result:{type:"bindings",bindingsStream:new bbe.ClosableTransformIterator(async()=>(await new Promise(c=>{r.bindingsStream.on("data",l=>o.add(l)),r.bindingsStream.on("end",c)}),n.bindingsStream.filter(c=>!o.contains(c))),{autoStart:!1,onClose(){r.bindingsStream.destroy(),n.bindingsStream.destroy()}}),async metadata(){const c=await n.metadata(),l=await n.metadata();return{...l,canContainUndefs:c.canContainUndefs||l.canContainUndefs}}}}}return r.bindingsStream.destroy(),{result:n}}async getJoinCoefficients(e,r){const n=jh.ActorRdfJoin.getRequestInitialTimes(r),a=jh.ActorRdfJoin.getRequestItemTimes(r);return{iterations:(r[0].cardinality.value+r[1].cardinality.value)*1.01,persistedItems:r[0].cardinality.value,blockingItems:r[0].cardinality.value,requestTime:n[0]+r[0].cardinality.value*a[0]+n[1]+r[1].cardinality.value*a[1]}}}_3.ActorRdfJoinMinusHashUndef=gbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_3,t)})(yB);var bB={},w3={};Object.defineProperty(w3,"__esModule",{value:!0});w3.ActorRdfJoinOptionalBind=void 0;const _be=AR,vbe=ft,k1=Ca,oE=Ht,B6=Tt;class wbe extends k1.ActorRdfJoin{constructor(e){super(e,{logicalType:"optional",physicalName:"bind",limitEntries:2,canHandleUndefs:!0})}async getOutput(e){e.entries[1].output.bindingsStream.close();const r=e.context.set(oE.KeysQueryOperation.joinLeftMetadata,await e.entries[0].output.metadata()).set(oE.KeysQueryOperation.joinRightMetadatas,[await e.entries[1].output.metadata()]);return{result:{type:"bindings",bindingsStream:_be.ActorRdfJoinMultiBind.createBindStream(this.bindOrder,e.entries[0].output.bindingsStream,[e.entries[1].operation],async(a,s)=>{const o=a[0];return vbe.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:o,context:r==null?void 0:r.set(oE.KeysQueryOperation.joinBindings,s)})).bindingsStream},!0),metadata:async()=>await this.constructResultMetadata(e.entries,await k1.ActorRdfJoin.getMetadatas(e.entries),e.context,{canContainUndefs:!0})}}}async getJoinCoefficients(e,r){const n=k1.ActorRdfJoin.getRequestInitialTimes(r),a=k1.ActorRdfJoin.getRequestItemTimes(r);if(e.entries[1].operation.type===B6.Algebra.types.EXTEND||e.entries[1].operation.type===B6.Algebra.types.GROUP)throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);const s=(await this.mediatorJoinSelectivity.mediate({entries:e.entries,context:e.context})).selectivity*this.selectivityModifier;return{iterations:r[0].cardinality.value*r[1].cardinality.value*s,persistedItems:0,blockingItems:0,requestTime:n[0]+r[0].cardinality.value*s*(a[0]+n[1]+r[1].cardinality.value*a[1])}}}w3.ActorRdfJoinOptionalBind=wbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(w3,t)})(bB);var mB={},S3={};Object.defineProperty(S3,"__esModule",{value:!0});S3.ActorRdfJoinOptionalNestedLoop=void 0;const Ch=Ca,Sbe=y3;class Tbe extends Ch.ActorRdfJoin{constructor(e){super(e,{logicalType:"optional",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(e){return{result:{type:"bindings",bindingsStream:new Sbe.NestedLoopJoin(e.entries[0].output.bindingsStream,e.entries[1].output.bindingsStream,Ch.ActorRdfJoin.joinBindings,{optional:!0,autoStart:!1}),metadata:async()=>await this.constructResultMetadata(e.entries,await Ch.ActorRdfJoin.getMetadatas(e.entries),e.context,{canContainUndefs:!0})}}}async getJoinCoefficients(e,r){const n=Ch.ActorRdfJoin.getRequestInitialTimes(r),a=Ch.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value*r[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:n[0]+r[0].cardinality.value*a[0]+n[1]+r[1].cardinality.value*a[1]}}}S3.ActorRdfJoinOptionalNestedLoop=Tbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(S3,t)})(mB);var gB={},T3={},E3={};Object.defineProperty(E3,"__esModule",{value:!0});E3.RdfSourceQpf=void 0;const Q1=Wt,Ebe=yt,_B=sr,G1=hn,Pc=new Ebe.DataFactory;class Obe{constructor(e,r,n,a,s,o,u,c,l,d,h){this.mediatorMetadata=e,this.mediatorMetadataExtract=r,this.mediatorDereferenceRdf=n,this.subjectUri=a,this.predicateUri=s,this.objectUri=o,this.graphUri=u,this.url=c,this.context=d,this.cachedQuads={};const f=this.getSearchForm(l);if(!f)throw new Error("Illegal state: found no TPF/QPF search form anymore in metadata.");if(this.searchForm=f,this.defaultGraph=l.defaultGraph?Pc.namedNode(l.defaultGraph):void 0,h){let p=(0,Q1.wrap)(h);this.defaultGraph&&(p=this.reverseMapQuadsToDefaultGraph(p)),p.setProperty("metadata",l),this.cacheQuads(p,Pc.variable(""),Pc.variable(""),Pc.variable(""),Pc.variable(""))}}getSearchForm(e){if(!e.searchForms||!e.searchForms.values)return;const{searchForms:r}=e;for(const n of r.values)if(this.graphUri&&this.subjectUri in n.mappings&&this.predicateUri in n.mappings&&this.objectUri in n.mappings&&this.graphUri in n.mappings&&Object.keys(n.mappings).length===4||this.subjectUri in n.mappings&&this.predicateUri in n.mappings&&this.objectUri in n.mappings&&Object.keys(n.mappings).length===3)return n}createFragmentUri(e,r,n,a,s){const o={},u=[{uri:this.subjectUri,term:r},{uri:this.predicateUri,term:n},{uri:this.objectUri,term:a},{uri:this.graphUri,term:s}];for(const c of u)c.uri&&c.term.termType!=="Variable"&&(c.term.termType!=="Quad"||(0,G1.everyTermsNested)(c.term,l=>l.termType!=="Variable"))&&(o[c.uri]=(0,_B.termToString)(c.term));return e.getUri(o)}match(e,r,n,a){let s=!1;if(a.termType==="DefaultGraph"){if(this.defaultGraph)s=!0,a=this.defaultGraph;else if(Object.keys(this.searchForm.mappings).length===4&&!this.defaultGraph){const c=new Q1.ArrayIterator([],{autoStart:!1});return c.setProperty("metadata",{requestTime:0,cardinality:{type:"exact",value:0},first:null,next:null,last:null,canContainUndefs:!1}),c}}const o=this.getCachedQuads(e,r,n,a);if(o)return o;const u=new Q1.TransformIterator(async()=>{var b;let c=this.createFragmentUri(this.searchForm,e,r,n,a);const l=await this.mediatorDereferenceRdf.mediate({context:this.context,url:c});c=l.url;const d=await this.mediatorMetadata.mediate({context:this.context,url:c,quads:l.data,triples:(b=l.metadata)==null?void 0:b.triples}),h=this.mediatorMetadataExtract.mediate({context:this.context,url:c,metadata:d.metadata,requestTime:l.requestTime}).then(({metadata:y})=>u.setProperty("metadata",{...y,canContainUndefs:!1,subsetOf:this.url})),f=Pc.defaultGraph();let p=(0,Q1.wrap)(d.data).transform({filter(y){return(0,G1.matchPattern)(y,e,r,n,a)?!0:s&&(0,G1.matchPattern)(y,e,r,n,f)}});return(s||a.termType==="Variable")&&(p=this.reverseMapQuadsToDefaultGraph(p)),p.on("error",()=>{}),await h,p},{autoStart:!1});return this.cacheQuads(u,e,r,n,a),this.getCachedQuads(e,r,n,a)}reverseMapQuadsToDefaultGraph(e){const r=Pc.defaultGraph();return e.map(n=>(0,G1.mapTerms)(n,(a,s)=>s==="graph"&&a.equals(this.defaultGraph)?r:a))}getPatternId(e,r,n,a){return JSON.stringify({s:e.termType==="Variable"?"":z1(e),p:r.termType==="Variable"?"":z1(r),o:n.termType==="Variable"?"":z1(n),g:a.termType==="Variable"?"":z1(a)})}cacheQuads(e,r,n,a,s){const o=this.getPatternId(r,n,a,s);this.cachedQuads[o]=e.clone()}getCachedQuads(e,r,n,a){const s=this.getPatternId(e,r,n,a),o=this.cachedQuads[s];if(o)return o.clone()}}E3.RdfSourceQpf=Obe;function z1(t){return t.termType==="DefaultGraph"?"|":(0,_B.termToString)(t)}Object.defineProperty(T3,"__esModule",{value:!0});T3.ActorRdfResolveHypermediaQpf=void 0;const Abe=Hv,xbe=E3;class Rbe extends Abe.ActorRdfResolveHypermedia{constructor(e){super(e,"qpf")}async testMetadata(e){const{searchForm:r}=this.createSource(e.url,e.metadata,e.context);if(e.handledDatasets&&e.handledDatasets[r.dataset])throw new Error(`Actor ${this.name} can only be applied for the first page of a QPF dataset.`);return{filterFactor:1}}async run(e){this.logInfo(e.context,`Identified as qpf source: ${e.url}`);const r=this.createSource(e.url,e.metadata,e.context,e.quads);return{source:r,dataset:r.searchForm.dataset}}createSource(e,r,n,a){return new xbe.RdfSourceQpf(this.mediatorMetadata,this.mediatorMetadataExtract,this.mediatorDereferenceRdf,this.subjectUri,this.predicateUri,this.objectUri,this.graphUri,e,r,n,a)}}T3.ActorRdfResolveHypermediaQpf=Rbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(T3,t)})(gB);var vB={},O3={},my={},A3={},x3={};Object.defineProperty(x3,"__esModule",{value:!0});x3.LinkedRdfSourcesAsyncRdfIterator=void 0;const Ibe=ba,Pbe=Wt,Dbe=_s;class Nbe extends Pbe.BufferedIterator{constructor(e,r,n,a,s,o,u,c){if(super({autoStart:!0,...c}),this.started=!1,this.currentIterators=[],this.iteratorsPendingCreation=0,this.accumulatedMetadata=Promise.resolve(void 0),this.cacheSize=e,this.subject=r,this.predicate=n,this.object=a,this.graph=s,this.firstUrl=o,this.maxIterators=u,this.maxIterators<=0)throw new Error(`LinkedRdfSourcesAsyncRdfIterator.maxIterators must be larger than zero, but got ${this.maxIterators}`)}_end(e){for(const r of this.currentIterators)r.destroy();super._end(e)}setSourcesState(e){e?this.sourcesState=e:(this.sourcesState={sources:new Dbe.LRUCache({max:this.cacheSize})},this.getSourceCached({url:this.firstUrl},{}).catch(r=>this.destroy(r)))}getSourceCached(e,r){let n=this.sourcesState.sources.get(e.url);return n||(n=this.getSource(e,r),(e.url===this.firstUrl||this.shouldStoreSourcesStates())&&this.sourcesState.sources.set(e.url,n),n)}shouldStoreSourcesStates(){return!0}_read(e,r){if(!this.started)this.started=!0,this.sourcesState||this.setSourcesState(),this.getSourceCached({url:this.firstUrl},{}).then(n=>{this.startIterator(n,!0),r()}).catch(n=>setTimeout(()=>this.destroy(n)));else{for(const n of this.currentIterators){for(;e>0;){const a=n.read();if(a!==null)e--,this._push(a);else break}if(e<=0)break}e>=0&&this.canStartNewIterator()?this.getSourceCached({url:this.firstUrl},{}).then(n=>{this.startIteratorsForNextUrls(n.handledDatasets,!1),r()}).catch(n=>this.destroy(n)):r()}}canStartNewIterator(){return this.currentIterators.length+this.iteratorsPendingCreation0}startIterator(e,r){const n=e.source.match(this.subject,this.predicate,this.object,this.graph);this.currentIterators.push(n);let a=!1;n._destination=this,n.on("error",s=>this.destroy(s)),n.on("readable",()=>this._fillBuffer()),n.on("end",()=>{this.currentIterators.splice(this.currentIterators.indexOf(n),1),a&&this.startIteratorsForNextUrls(e.handledDatasets,!0)}),n.getProperty("metadata",s=>{this.accumulatedMetadata=this.accumulatedMetadata.then(o=>(async()=>(o||(o=e.metadata),this.accumulateMetadata(o,s)))().then(u=>{const c={...e.metadata,...s,...u};return c.state=new Ibe.MetadataValidationState,this.updateMetadata(c),this.getSourceLinks(c).then(l=>Promise.all(l)).then(async l=>{const d=await this.getLinkQueue();for(const h of l)d.push(h,e.link);a=!0,this.startIteratorsForNextUrls(e.handledDatasets,!0)}).catch(l=>this.destroy(l)),c})).catch(o=>(this.destroy(o),{}))})}updateMetadata(e){const r=this.getProperty("metadata");this.setProperty("metadata",e),r==null||r.state.invalidate()}isRunning(){return!this.done}startIteratorsForNextUrls(e,r){this.getLinkQueue().then(n=>{for(;this.canStartNewIterator()&&this.isRunning();){const a=n.pop();if(a)this.iteratorsPendingCreation++,this.getSourceCached(a,e).then(s=>{this.iteratorsPendingCreation--,this.startIterator(s,!1)}).catch(s=>this.destroy(s));else break}r&&this.isCloseable(n)&&this.close()}).catch(n=>this.destroy(n))}isCloseable(e){return e.isEmpty()&&!this.areIteratorsRunning()}}x3.LinkedRdfSourcesAsyncRdfIterator=Nbe;Object.defineProperty(A3,"__esModule",{value:!0});A3.MediatedLinkedRdfSourcesAsyncRdfIterator=void 0;const jbe=yt,Cbe=Kt,Fbe=x3,W1=new jbe.DataFactory;class Mbe extends Fbe.LinkedRdfSourcesAsyncRdfIterator{constructor(e,r,n,a,s,o,u,c,l,d,h){super(e,a,s,o,u,c,l,d?{maxBufferSize:Number.POSITIVE_INFINITY}:void 0),this.wasForcefullyClosed=!1,this.context=r,this.forceSourceType=n,this.mediatorDereferenceRdf=h.mediatorDereferenceRdf,this.mediatorMetadata=h.mediatorMetadata,this.mediatorMetadataExtract=h.mediatorMetadataExtract,this.mediatorMetadataAccumulate=h.mediatorMetadataAccumulate,this.mediatorRdfResolveHypermedia=h.mediatorRdfResolveHypermedia,this.mediatorRdfResolveHypermediaLinks=h.mediatorRdfResolveHypermediaLinks,this.mediatorRdfResolveHypermediaLinksQueue=h.mediatorRdfResolveHypermediaLinksQueue,this.handledUrls={[c]:!0},this.aggregatedStore=d}close(){if(!this.aggregatedStore){super.close();return}this.getLinkQueue().then(e=>{var r;this.isCloseable(e)?((r=this.aggregatedStore)==null||r.end(),super.close()):this.wasForcefullyClosed=!0}).catch(e=>super.destroy(e))}destroy(e){if(!this.aggregatedStore){super.destroy(e);return}this.getLinkQueue().then(r=>{var n;e||this.isCloseable(r)?((n=this.aggregatedStore)==null||n.end(),super.destroy(e)):this.wasForcefullyClosed=!0}).catch(r=>super.destroy(r))}isCloseable(e){return(this.wasForcefullyClosed||e.isEmpty())&&!this.areIteratorsRunning()}canStartNewIterator(){return!this.wasForcefullyClosed&&this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||super.canStartNewIterator()}isRunning(){return this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||!this.done}shouldStoreSourcesStates(){return this.aggregatedStore===void 0}getLinkQueue(){return this.linkQueue||(this.linkQueue=this.mediatorRdfResolveHypermediaLinksQueue.mediate({firstUrl:this.firstUrl,context:this.context}).then(e=>e.linkQueue)),this.linkQueue}async getSourceLinks(e){try{const{links:r}=await this.mediatorRdfResolveHypermediaLinks.mediate({context:this.context,metadata:e});return r.filter(n=>this.handledUrls[n.url]?!1:(this.handledUrls[n.url]=!0,!0))}catch{return[]}}async getSource(e,r){var l,d,h,f;let n=this.context;e.context&&(n=n.merge(e.context));let a=e.url,s,o;try{const p=await this.mediatorDereferenceRdf.mediate({context:n,url:a});a=p.url;const b=await this.mediatorMetadata.mediate({context:n,url:a,quads:p.data,triples:(l=p.metadata)==null?void 0:l.triples});b.data.on("error",()=>{}),o=(await this.mediatorMetadataExtract.mediate({context:n,url:a,metadata:b.metadata,headers:p.headers,requestTime:p.requestTime})).metadata,s=b.data,e.transform&&(s=await e.transform(s))}catch(p){s=new Cbe.Readable,s.read=()=>(setTimeout(()=>s.emit("error",p)),null),o={}}(d=this.aggregatedStore)==null||d.setBaseMetadata(o,!1),(h=this.aggregatedStore)==null||h.containedSources.add(e.url),(f=this.aggregatedStore)==null||f.import(s);const{source:u,dataset:c}=await this.mediatorRdfResolveHypermedia.mediate({context:n,forceSourceType:this.forceSourceType,handledDatasets:r,metadata:o,quads:s,url:a});return c&&(r[c]=!0),{link:e,source:u,metadata:o,handledDatasets:r}}startIterator(e,r){var n;if(this.aggregatedStore&&!this.aggregatedStore.containedSources.has(e.link.url)){(n=this.aggregatedStore)==null||n.containedSources.add(e.link.url);const a=e.source.match(W1.variable("s"),W1.variable("p"),W1.variable("o"),W1.variable("g"),this.context);this.aggregatedStore.import(a).on("end",()=>{super.startIterator(e,r)})}else super.startIterator(e,r)}async accumulateMetadata(e,r){return(await this.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:e,appendingMetadata:r,context:this.context})).metadata}updateMetadata(e){var r;super.updateMetadata(e),(r=this.aggregatedStore)==null||r.setBaseMetadata(e,!0)}}A3.MediatedLinkedRdfSourcesAsyncRdfIterator=Mbe;var R3={},wB={},gy={};Object.defineProperty(gy,"__esModule",{value:!0});gy.PendingStreamsIndex=void 0;const $6=sr,U6=hn;class Ms{constructor(){this.indexedStreams=new Map,this.allStreams=[]}termToString(e){return e&&e.termType!=="Variable"?(0,$6.termToString)(e):Ms.ID_VARIABLE}addPatternListener(e,r,n,a,s){this.allStreams.push(e);const o=`${this.termToString(r)}${Ms.ID_SEPARATOR}${this.termToString(n)}${Ms.ID_SEPARATOR}${this.termToString(a)}${Ms.ID_SEPARATOR}${this.termToString(s)}`;let u=this.indexedStreams.get(o);u||(u=[],this.indexedStreams.set(o,u)),u.push(e)}getPendingStreamsForQuad(e){let r=[(0,U6.getTerms)(e).map(a=>(0,$6.termToString)(a))];for(let a=0;a{if(!this.ended&&!this.store.countQuads(r.subject,r.predicate,r.object,r.graph))for(const n of this.pendingStreams.getPendingStreamsForQuad(r))n.isInitialized&&(n.push(r),n.emit("quad",r))})}import(e){if(this.ended)throw new Error("Attempted to import into an ended StreamingStore");return this.importToListeners(e),this.store.import(e)}match(e,r,n,a){const s=this.store.match(e,r,n,a);let o=s;if(!this.ended){const u=new Bbe.PassThrough({objectMode:!0});this.pendingStreams.addPatternListener(u,e,r,n,a),o=s.pipe(u,{end:!1}),o._pipeSource=s;const c=s._read;s._read=l=>{u.isInitialized=!0,c.call(s,l)}}return o}getStore(){return this.store}}I3.StreamingStore=Ube;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(gy,t),r(I3,t)})(wB);Object.defineProperty(R3,"__esModule",{value:!0});R3.StreamingStoreMetadata=void 0;const qbe=ft,X1=ba,Vbe=wB;class Hbe extends Vbe.StreamingStore{constructor(e,r){super(e),this.started=!1,this.containedSources=new Set,this.runningIterators=new Set,this.baseMetadata={state:new X1.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1},this.metadataAccumulator=r}import(e){return this.ended||super.import(e),e}hasRunningIterators(){return this.runningIterators.size>0}match(e,r,n,a){const s=super.match(e,r,n,a),o=new qbe.ClosableTransformIterator(s,{autoStart:!1,onClose:()=>{this.runningIterators.delete(o)}});let u=this.getStore().countQuads(e,r,n,a);const c={state:new X1.MetadataValidationState,cardinality:{type:"estimate",value:u},canContainUndefs:!1};return o.setProperty("metadata",c),o.setProperty("lastCount",u),s.on("quad",()=>{o.setProperty("lastCount",++u),this.updateMetadataState(o,u)}),this.runningIterators.add(o),o}setBaseMetadata(e,r){if(this.baseMetadata={...e},this.baseMetadata.cardinality={type:"exact",value:0},r)for(const n of this.runningIterators){const a=n.getProperty("lastCount");this.updateMetadataState(n,a)}}updateMetadataState(e,r){const n={state:new X1.MetadataValidationState,cardinality:{type:"estimate",value:r},canContainUndefs:!1};this.metadataAccumulator(this.baseMetadata,n).then(a=>{a.state=new X1.MetadataValidationState;const s=e.getProperty("metadata");e.setProperty("metadata",a),s==null||s.state.invalidate()}).catch(()=>{})}}R3.StreamingStoreMetadata=Hbe;Object.defineProperty(my,"__esModule",{value:!0});my.MediatedQuadSource=void 0;const kbe=Ht,Qbe=A3,Gbe=R3;class Id{constructor(e,r,n,a,s,o){this.cacheSize=e,this.firstUrl=r,this.forceSourceType=n,this.maxIterators=a,this.aggregateStore=s,this.mediators=o}static nullifyVariables(e){return!e||e.termType==="Variable"?void 0:e}match(e,r,n,a,s){let o;if(this.aggregateStore){const c=s.get(kbe.KeysRdfResolveQuadPattern.hypermediaSourcesAggregatedStores);if(c&&(o=c.get(this.firstUrl),o||(o=new Gbe.StreamingStoreMetadata(void 0,(l,d)=>u.accumulateMetadata(l,d)),c.set(this.firstUrl,o)),o.started))return o.match(Id.nullifyVariables(e),Id.nullifyVariables(r),Id.nullifyVariables(n),Id.nullifyVariables(a))}const u=new Qbe.MediatedLinkedRdfSourcesAsyncRdfIterator(this.cacheSize,s,this.forceSourceType,e,r,n,a,this.firstUrl,this.maxIterators,o,this.mediators);return this.sourcesState?u.setSourcesState(this.sourcesState):(u.setSourcesState(),this.sourcesState=u.sourcesState),o&&(o.started=!0),u}}my.MediatedQuadSource=Id;Object.defineProperty(O3,"__esModule",{value:!0});O3.ActorRdfResolveQuadPatternHypermedia=void 0;const Fh=Dl,zbe=_s,Wbe=my;class Xbe extends Fh.ActorRdfResolveQuadPatternSource{constructor(e){super(e),this.cache=this.cacheSize?new zbe.LRUCache({max:this.cacheSize}):void 0;const r=this.cache;r&&this.httpInvalidator.addInvalidateListener(({url:n})=>n?r.delete(n):r.clear()),e.mediatorMetadataAccumulate||(this.mediatorMetadataAccumulate={async mediate(n){return{metadata:{...n.accumulatedMetadata,...n.appendingMetadata}}}})}async test(e){if(!(0,Fh.hasContextSingleSource)(e.context))throw new Error(`Actor ${this.name} can only resolve quad pattern queries against a single source.`);return!0}getSource(e,r){const n=(0,Fh.getContextSource)(e),a=(0,Fh.getContextSourceUrl)(n);let s;return this.cache&&this.cache.has(a)?s=this.cache.get(a):(s=new Wbe.MediatedQuadSource(this.cacheSize,a,(0,Fh.getDataSourceType)(n),this.maxIterators,this.aggregateStore,{mediatorMetadata:this.mediatorMetadata,mediatorMetadataExtract:this.mediatorMetadataExtract,mediatorMetadataAccumulate:this.mediatorMetadataAccumulate,mediatorDereferenceRdf:this.mediatorDereferenceRdf,mediatorRdfResolveHypermedia:this.mediatorRdfResolveHypermedia,mediatorRdfResolveHypermediaLinks:this.mediatorRdfResolveHypermediaLinks,mediatorRdfResolveHypermediaLinksQueue:this.mediatorRdfResolveHypermediaLinksQueue}),this.cache&&this.cache.set(a,s)),Promise.resolve(s)}}O3.ActorRdfResolveQuadPatternHypermedia=Xbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(O3,t),r(my,t)})(vB);var SB={},P3={};Object.defineProperty(P3,"__esModule",{value:!0});P3.ActorRdfUpdateQuadsHypermedia=void 0;const fd=kf,Kbe=_s;class Jbe extends fd.ActorRdfUpdateQuadsDestination{constructor(e){super(e),this.cache=this.cacheSize?new Kbe.LRUCache({max:this.cacheSize}):void 0;const r=this.cache;r&&this.httpInvalidator.addInvalidateListener(({url:n})=>n?r.delete(n):r.clear())}async test(e){if(!(0,fd.getContextDestinationUrl)((0,fd.getContextDestination)(e.context)))throw new Error(`Actor ${this.name} can only update quads against a single destination URL.`);return!0}getDestination(e){const r=(0,fd.getContextDestination)(e);let n=(0,fd.getContextDestinationUrl)(r);if(this.cache&&this.cache.has(n))return this.cache.get(n);const a=(async()=>{var c;let s,o;try{const l=await this.mediatorDereferenceRdf.mediate({context:e,url:n,acceptErrors:!0});o=l.exists,n=l.url;const d=await this.mediatorMetadata.mediate({context:e,url:n,quads:l.data,triples:(c=l.metadata)==null?void 0:c.triples});s=(await this.mediatorMetadataExtract.mediate({context:e,url:n,metadata:d.metadata,headers:l.headers,requestTime:l.requestTime})).metadata}catch{s={},o=!1}const{destination:u}=await this.mediatorRdfUpdateHypermedia.mediate({context:e,url:n,metadata:s,exists:o,forceDestinationType:(0,fd.getDataDestinationType)(r)});return u})();return this.cache&&this.cache.set(n,a),a}}P3.ActorRdfUpdateQuadsHypermedia=Jbe;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(P3,t)})(SB);var TB={},D3={};Object.defineProperty(D3,"__esModule",{value:!0});D3.ActorQueryOperationClear=void 0;const q6=ft,Ybe=yt,Zbe=new Ybe.DataFactory;class eme extends q6.ActorQueryOperationTypedMediated{constructor(e){super(e,"clear")}async testOperation(e,r){return q6.ActorQueryOperation.throwOnReadOnly(r),!0}async runOperation(e,r){let n;e.source==="DEFAULT"?n=Zbe.defaultGraph():typeof e.source=="string"?n=e.source:n=[e.source];const{execute:a}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:n,requireExistence:!e.silent,dropGraphs:!1},context:r});return{type:"void",execute:a}}}D3.ActorQueryOperationClear=eme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(D3,t)})(TB);var EB={},N3={};Object.defineProperty(N3,"__esModule",{value:!0});N3.ActorQueryOperationCreate=void 0;const V6=ft;class tme extends V6.ActorQueryOperationTypedMediated{constructor(e){super(e,"create")}async testOperation(e,r){return V6.ActorQueryOperation.throwOnReadOnly(r),!0}async runOperation(e,r){const{execute:n}=await this.mediatorUpdateQuads.mediate({createGraphs:{graphs:[e.source],requireNonExistence:!e.silent},context:r});return{type:"void",execute:n}}}N3.ActorQueryOperationCreate=tme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(N3,t)})(EB);var OB={},j3={};Object.defineProperty(j3,"__esModule",{value:!0});j3.ActorQueryOperationUpdateDeleteInsert=void 0;const K1=oR,rme=Hn,uE=ft,nme=Wt,ime=new rme.BindingsFactory;class ame extends uE.ActorQueryOperationTypedMediated{constructor(e){super(e,"deleteinsert"),this.blankNodeCounter=0}async testOperation(e,r){return uE.ActorQueryOperation.throwOnReadOnly(r),!0}async runOperation(e,r){const n=e.where?uE.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.where,context:r})).bindingsStream:new nme.ArrayIterator([ime.bindings()],{autoStart:!1});let a,s;e.insert&&(a=new K1.BindingsToQuadsIterator(e.insert.map(K1.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),n.clone()),this.blankNodeCounter++),e.delete&&(s=new K1.BindingsToQuadsIterator(e.delete.map(K1.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),n.clone()),this.blankNodeCounter++);const{execute:o}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:a,quadStreamDelete:s,context:r});return{type:"void",execute:o}}}j3.ActorQueryOperationUpdateDeleteInsert=ame;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(j3,t)})(OB);var AB={},C3={};Object.defineProperty(C3,"__esModule",{value:!0});C3.ActorQueryOperationDrop=void 0;const H6=ft,sme=yt,ome=new sme.DataFactory;class ume extends H6.ActorQueryOperationTypedMediated{constructor(e){super(e,"drop")}async testOperation(e,r){return H6.ActorQueryOperation.throwOnReadOnly(r),!0}async runOperation(e,r){let n;e.source==="DEFAULT"?n=ome.defaultGraph():typeof e.source=="string"?n=e.source:n=[e.source];const{execute:a}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:n,requireExistence:!e.silent,dropGraphs:!0},context:r});return{type:"void",execute:a}}}C3.ActorQueryOperationDrop=ume;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(C3,t)})(AB);var xB={},F3={};Object.defineProperty(F3,"__esModule",{value:!0});F3.ActorQueryOperationLoad=void 0;const k6=ft,Q6=Ht,cme=yt,lme=Tt,Dc=new cme.DataFactory;class RR extends k6.ActorQueryOperationTypedMediated{constructor(e){super(e,"load"),this.factory=new lme.Factory,this.constructOperation=this.factory.createConstruct(this.factory.createPattern(Dc.variable("s"),Dc.variable("p"),Dc.variable("o")),[this.factory.createPattern(Dc.variable("s"),Dc.variable("p"),Dc.variable("o"))])}async testOperation(e,r){return k6.ActorQueryOperation.throwOnReadOnly(r),!0}async runOperation(e,r){let n=r.set(Q6.KeysRdfResolveQuadPattern.sources,[e.source.value]);e.silent&&(n=n.set(Q6.KeysInitQuery.lenient,!0));let s=RR.getSafeQuads(await this.mediatorQueryOperation.mediate({operation:this.constructOperation,context:n})).quadStream;e.destination&&(s=s.map(u=>Dc.quad(u.subject,u.predicate,u.object,e.destination)));const{execute:o}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:s,context:r});return{type:"void",execute:o}}}F3.ActorQueryOperationLoad=RR;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(F3,t)})(xB);var RB={},M3={};Object.defineProperty(M3,"__esModule",{value:!0});M3.ActorQueryOperationJoin=void 0;const G6=ft;class dme extends G6.ActorQueryOperationTypedMediated{constructor(e){super(e,"join")}async testOperation(e,r){return!0}async runOperation(e,r){const n=(await Promise.all(e.input.map(async a=>({output:await this.mediatorQueryOperation.mediate({operation:a,context:r}),operation:a})))).map(({output:a,operation:s})=>({output:G6.ActorQueryOperation.getSafeBindings(a),operation:s}));return this.mediatorJoin.mediate({type:"inner",entries:n,context:r})}}M3.ActorQueryOperationJoin=dme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(M3,t)})(RB);var IB={},L3={};Object.defineProperty(L3,"__esModule",{value:!0});L3.ActorQueryOperationLeftJoin=void 0;const cE=ft,z6=jl;class fme extends cE.ActorQueryOperationTypedMediated{constructor(e){super(e,"leftjoin")}async testOperation(e,r){return!0}async runOperation(e,r){const n=(await Promise.all(e.input.map(async s=>({output:await this.mediatorQueryOperation.mediate({operation:s,context:r}),operation:s})))).map(({output:s,operation:o})=>({output:cE.ActorQueryOperation.getSafeBindings(s),operation:o})),a=await this.mediatorJoin.mediate({type:"optional",entries:n,context:r});if(e.expression){const o=(await n[1].output.metadata()).variables,u={...cE.ActorQueryOperation.getAsyncExpressionContext(r,this.mediatorQueryOperation)},c=new z6.AsyncEvaluator(e.expression,u),l=a.bindingsStream.transform({autoStart:!1,transform:async(d,h,f)=>{if(!o.every(p=>d.has(p.value)))return f(d),h();try{await c.evaluateAsEBV(d)&&f(d)}catch(p){(0,z6.isExpressionError)(p)?this.logWarn(r,"Error occurred while filtering.",()=>({error:p,bindings:d})):l.emit("error",p)}h()}});a.bindingsStream=l}return a}}L3.ActorQueryOperationLeftJoin=fme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(L3,t)})(IB);var PB={},B3={};Object.defineProperty(B3,"__esModule",{value:!0});B3.ActorQueryOperationMinus=void 0;const W6=ft;class hme extends W6.ActorQueryOperationTypedMediated{constructor(e){super(e,"minus")}async testOperation(e,r){return!0}async runOperation(e,r){const n=(await Promise.all(e.input.map(async a=>({output:await this.mediatorQueryOperation.mediate({operation:a,context:r}),operation:a})))).map(({output:a,operation:s})=>({output:W6.ActorQueryOperation.getSafeBindings(a),operation:s}));return this.mediatorJoin.mediate({type:"minus",entries:n,context:r})}}B3.ActorQueryOperationMinus=hme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(B3,t)})(PB);var DB={},$3={};Object.defineProperty($3,"__esModule",{value:!0});$3.ActorQueryOperationPathSeq=void 0;const X6=su,K6=ft,pme=Tt;class yme extends X6.ActorAbstractPath{constructor(e){super(e,pme.Algebra.types.SEQ)}async runOperation(e,r){const n=e.predicate;let a=e.subject;const s=[],o=await Promise.all(n.input.map((l,d)=>{const h=d===n.input.length-1?e.object:this.generateVariable(e,`b${d}`),f=X6.ActorAbstractPath.FACTORY.createPath(a,l,h,e.graph),p=this.mediatorQueryOperation.mediate({context:r,operation:f});return a=h,d({output:K6.ActorQueryOperation.getSafeBindings(await l),operation:d}))),u=K6.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:"inner",entries:o,context:r}));return{type:"bindings",bindingsStream:u.bindingsStream.transform({transform(l,d,h){for(const f of s)l=l.delete(f);h(l),d()}}),async metadata(){const l=await u.metadata(),d=l.variables.filter(h=>!s.some(f=>f.value===h.value));return{...l,variables:d}}}}}$3.ActorQueryOperationPathSeq=yme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r($3,t)})(DB);var NB={},U3={};Object.defineProperty(U3,"__esModule",{value:!0});U3.ActorRdfJoinMultiSmallest=void 0;const bme=ft,J1=Ca,mme=Tt;class q3 extends J1.ActorRdfJoin{constructor(e){super(e,{logicalType:"inner",physicalName:"multi-smallest",limitEntries:3,limitEntriesMin:!0,canHandleUndefs:!0})}async sortJoinEntries(e,r){return(await this.mediatorJoinEntriesSort.mediate({entries:e,context:r})).entries}async getOutput(e){const r=await this.sortJoinEntries(await J1.ActorRdfJoin.getEntriesWithMetadatas([...e.entries]),e.context),n=r[0],a=r[1];r.splice(0,2);const s={output:bme.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:e.type,entries:[n,a],context:e.context})),operation:q3.FACTORY.createJoin([n.operation,a.operation],!1)};return r.push(s),{result:await this.mediatorJoin.mediate({type:e.type,entries:r,context:e.context})}}async getJoinCoefficients(e,r){r=[...r],r=(await this.sortJoinEntries(e.entries.map((o,u)=>({...o,metadata:r[u]})),e.context)).map(o=>o.metadata);const a=J1.ActorRdfJoin.getRequestInitialTimes(r),s=J1.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value*r[1].cardinality.value*r.slice(2).reduce((o,u)=>o*u.cardinality.value,1),persistedItems:0,blockingItems:0,requestTime:a[0]+r[0].cardinality.value*s[0]+a[1]+r[1].cardinality.value*s[1]+r.slice(2).reduce((o,u,c)=>o+a.slice(2)[c]+u.cardinality.value*s.slice(2)[c],0)}}}U3.ActorRdfJoinMultiSmallest=q3;q3.FACTORY=new mme.Factory;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(U3,t)})(NB);var jB={},V3={};Object.defineProperty(V3,"__esModule",{value:!0});V3.ActorQueryOperationQuadpattern=void 0;const gme=Hn,J6=ft,_me=Ht,vme=yt,wme=sr,Nc=hn,Sme=Tt,Tme=new gme.BindingsFactory,lE=new vme.DataFactory,Eme=new Sme.Factory;class Ds extends J6.ActorQueryOperationTyped{constructor(e){super(e,"pattern")}static isTermVariable(e){return e.termType==="Variable"}static getVariables(e){return(0,Nc.uniqTerms)((0,Nc.getTermsNested)(e).filter(Ds.isTermVariable))}static getDuplicateElementLinks(e){const r={};let n=!1;if((0,Nc.forEachTermsNested)(e,(s,o)=>{if(s.termType==="Variable"){const u=(0,wme.termToString)(s),c=(r[u]||(r[u]=[])).push(o);n=n||c>1}}),!n)return;const a={};for(const s in r){const o=r[s],u=o.slice(1);u.length>0&&(a[o[0].join("_")]=u)}return a}static validateMetadata(e){for(const r of["cardinality","canContainUndefs"])if(!(r in e))throw new Error(`Invalid metadata: missing ${r} in ${JSON.stringify(e)}`);return e}static getMetadata(e,r,n){return()=>new Promise((a,s)=>{e.getProperty("metadata",o=>a(o)),e.on("error",s)}).then(a=>("canContainUndefs"in a||(a.canContainUndefs=!1),Ds.quadsMetadataToBindingsMetadata(Ds.validateMetadata(a),r,n)))}static quadsMetadataToBindingsMetadata(e,r,n){return{...e,order:e.order?Ds.quadsOrderToBindingsOrder(e.order,r):void 0,availableOrders:e.availableOrders?e.availableOrders.map(a=>({cost:a.cost,terms:Ds.quadsOrderToBindingsOrder(a.terms,r)})):void 0,variables:n}}static quadsOrderToBindingsOrder(e,r){const n={};return e.map(a=>{const s=r[a.term];if(s&&!n[s])return n[s]=!0,{term:lE.variable(s),direction:a.direction}}).filter(a=>!!a)}async testOperation(e,r){return!0}async runOperation(e,r){e.context&&(r=r.merge(e.context));let n=e;const a=this.unionDefaultGraph||r.get(_me.KeysQueryOperation.unionDefaultGraph);e.graph.termType==="DefaultGraph"&&a&&(n=Eme.createPattern(e.subject,e.predicate,e.object,lE.variable("__comunica:defaultGraph")));const s=await this.mediatorResolveQuadPattern.mediate({pattern:n,context:r}),o=Ds.getVariables(e),u=(0,Nc.reduceTermsNested)(e,(d,h,f)=>(h.termType==="Variable"&&(d[f.join("_")]=h.value),d),{}),c=Ds.getMetadata(s.data,u,o);return{type:"bindings",bindingsStream:new J6.ClosableTransformIterator(async()=>{let d=s.data;const h=Ds.getDuplicateElementLinks(e);return e.graph.termType==="Variable"&&!a&&(d=d.filter(f=>f.graph.termType!=="DefaultGraph")),h&&(d=d.filter(f=>{for(const p in h){const b=p.split("_"),y=(0,Nc.getValueNestedPath)(f,b);for(const S of h[p])if(!y.equals((0,Nc.getValueNestedPath)(f,S)))return!1}return!0})),d.map(f=>Tme.bindings(Object.keys(u).map(p=>{const b=p.split("_"),y=u[p],S=(0,Nc.getValueNestedPath)(f,b);return[lE.variable(y),S]})))},{autoStart:!1,onClose:()=>s.data.destroy()}),metadata:c}}}V3.ActorQueryOperationQuadpattern=Ds;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(V3,t)})(jB);var CB={},H3={};Object.defineProperty(H3,"__esModule",{value:!0});H3.ActorHttpInruptSolidClientAuthn=void 0;const Ome=ms,Y6=Ht,Ame=et;class Mu extends Ome.ActorHttp{constructor(e){super(e)}async test(e){if(!e.context||!e.context.has(Mu.CONTEXT_KEY_SESSION))throw new Error(`Unable to find Solid authn session in context with key '${Mu.CONTEXT_KEY_SESSION.name}'`);if(e.context.has(Y6.KeysHttp.fetch))throw new Error("Unable to run when a custom fetch function has been configured");if(!e.context.get(Mu.CONTEXT_KEY_SESSION).info.isLoggedIn)throw new Error("The provided Solid authn session is not in a logged in state, make sure to call session.login() first");return!0}async run(e){const r=e.context.get(Mu.CONTEXT_KEY_SESSION);return this.logInfo(e.context,`Handling request to ${typeof e.input=="string"?e.input:e.input.url} as authenticated request for ${r.info.webId}`),this.mediatorHttp.mediate({...e,context:e.context.delete(Mu.CONTEXT_KEY_SESSION).set(Y6.KeysHttp.fetch,r.fetch)})}}H3.ActorHttpInruptSolidClientAuthn=Mu;Mu.CONTEXT_KEY_SESSION=new Ame.ActionContextKey("@comunica/actor-http-inrupt-solid-client-authn:session");(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(H3,t)})(CB);var FB={},k3={},bl={};Object.defineProperty(bl,"__esModule",{value:!0});bl.ActorDereferenceHttpBase=bl.mediaTypesToAcceptString=void 0;const Z6=X_,e8=ms,xme=OR,Rme=Na,Ime=Pl,Pme=/^[^ ;]*/u;function MB(t,e){const r="*/*;q=0.1",n=[],a=Object.entries(t).map(([o,u])=>({mediaType:o,priority:u})).sort((o,u)=>u.priority===o.priority?o.mediaType.localeCompare(u.mediaType):u.priority-o.priority);let s=a.length-1;for(const{mediaType:o,priority:u}of a){const c=o+(u!==1?`;q=${u.toFixed(3).replace(/0*$/u,"")}`:"");if(s+c.length>e){for(;s+r.length>e;){const l=n.pop()||"";s-=l.length+1}n.push(r);break}n.push(c),s+=c.length}return n.length===0?"*/*":n.join(",")}bl.mediaTypesToAcceptString=MB;class Dme extends Z6.ActorDereference{constructor(e){super(e)}async test({url:e}){if(!/^https?:/u.test(e))throw new Error(`Cannot retrieve ${e} because it is not an HTTP(S) URL.`);return!0}async run(e){var l,d;let r=!0;const n=new xme.Headers(e.headers);n.append("Accept",MB(await((l=e.mediaTypes)==null?void 0:l.call(e))??{},this.getMaxAcceptHeaderLength()));let a;const s=Date.now();try{a=await this.mediatorHttp.mediate({context:e.context,init:{headers:n,method:e.method},input:e.url})}catch(h){return this.handleDereferenceErrors(e,h)}const o=(0,Rme.resolve)(a.url,e.url),u=Date.now()-s;if(a.status!==200){r=!1;const h=a.body?await Ime(e8.ActorHttp.toNodeReadable(a.body)):"empty response";if(!e.acceptErrors){const f=new Error(`Could not retrieve ${e.url} (HTTP status ${a.status}): -${h}`);return this.handleDereferenceErrors(e,f,a.headers,u)}}const c=(d=Pme.exec(a.headers.get("content-type")??""))==null?void 0:d[0];return{url:o,data:r?e8.ActorHttp.toNodeReadable(a.body):(0,Z6.emptyReadable)(),exists:r,requestTime:u,headers:a.headers,mediaType:c!=="text/plain"?c:void 0}}}bl.ActorDereferenceHttpBase=Dme;Object.defineProperty(k3,"__esModule",{value:!0});k3.ActorDereferenceHttp=void 0;const Nme=bl;class jme extends Nme.ActorDereferenceHttpBase{getMaxAcceptHeaderLength(){return this.maxAcceptHeaderLengthBrowser}}k3.ActorDereferenceHttp=jme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(k3,t),r(bl,t)})(FB);var LB={},Q3={},G3={};Object.defineProperty(G3,"__esModule",{value:!0});G3.storeStream=void 0;const Cme=au;function Fme(t){const e=new Cme.Store;return new Promise((r,n)=>e.import(t).on("error",n).once("end",()=>r(e)))}G3.storeStream=Fme;Object.defineProperty(Q3,"__esModule",{value:!0});Q3.ActorExtractLinksSolidTypeIndex=void 0;const Mme=vm,Lme=ag,Y1=Ht,Z1=aR,Bme=G3,t8=sr,r8=Tt;class Hp extends Lme.ActorExtractLinks{constructor(e){super(e),this.queryEngine=new Mme.QueryEngineBase(e.actorInitQuery)}async test(e){if(!e.context.get(Y1.KeysInitQuery.query))throw new Error(`Actor ${this.name} can only work in the context of a query.`);if(!e.context.get(Y1.KeysQueryOperation.operation))throw new Error(`Actor ${this.name} can only work in the context of a query operation.`);return!0}async run(e){const r=[...await this.extractTypeIndexLinks(e.metadata)],n=(await Promise.all(r.map(s=>this.dereferenceTypeIndex(s,e.context)))).reduce((s,o)=>{for(const[u,c]of Object.entries(o))s[u]||(s[u]=[]),s[u].push(...c);return s},{});if(Object.keys(n).length===0)return{links:[]};if(this.onlyMatchingTypes)return{links:await this.getLinksMatchingQuery(n,e.context.get(Y1.KeysInitQuery.query),e.context.get(Y1.KeysQueryOperation.operation))};const a=[];for(const s of Object.values(n))a.push(...s);return{links:a}}extractTypeIndexLinks(e){return new Promise((r,n)=>{const a=new Set;e.on("error",n),e.on("data",s=>{this.typeIndexPredicates.includes(s.predicate.value)&&a.add(s.object.value)}),e.on("end",()=>{r(a)})})}async dereferenceTypeIndex(e,r){const n=await this.mediatorDereferenceRdf.mediate({url:e,context:r}),a=await(0,Bme.storeStream)(n.data),s=await(await this.queryEngine.queryBindings(` - PREFIX solid: - SELECT ?class ?instance WHERE { - _:registration a solid:TypeRegistration; - solid:forClass ?class; - (solid:instance|solid:instanceContainer) ?instance. - }`,{sources:[a],[Z1.KeysRdfResolveHypermediaLinks.traverse.name]:!1,[Z1.KeysRdfJoin.skipAdaptiveJoin.name]:!0,lenient:!0})).toArray(),o={};for(const u of s){const c=u.get("class").value;o[c]||(o[c]=[]),o[c].push({url:u.get("instance").value})}return o}async linkPredicateDomains(e,r){if(Object.keys(e).length>0){const n=await Promise.all(Object.keys(e).map(async s=>[s,await this.fetchPredicateDomains(s)])),a=Object.fromEntries(n);for(const[s,o]of Object.entries(e)){const u=a[s];if(u)for(const c of u)r[c]||(r[c]=[]),r[c].push(o)}}}async fetchPredicateDomains(e){const n=await(await this.queryEngine.queryBindings(` - PREFIX rdfs: - SELECT * WHERE { - <${e}> rdfs:domain ?domain. - }`,{sources:[e],[Z1.KeysRdfResolveHypermediaLinks.traverse.name]:!1,[Z1.KeysRdfJoin.skipAdaptiveJoin.name]:!0,lenient:!0})).toArray(),a=[];for(const s of n)a.push(s.get("domain").value);return a}async getLinksMatchingQuery(e,r,n){const a=new Set,s={},o={};function u(l,d,h){if(a.add((0,t8.termToString)(l)),d.value===Hp.RDF_TYPE&&h.termType==="NamedNode"){const f=h.value;s[f]||(s[f]=[]),s[f].push(l)}d.value!==Hp.RDF_TYPE&&(o[d.value]=l)}r8.Util.recurseOperation(r,{pattern(l){return u(l.subject,l.predicate,l.object),!1},path(l){return r8.Util.recurseOperation(l,{link(d){return u(l.subject,d.iri,l.object),!1},nps(d){for(const h of d.iris)u(l.subject,h,l.object);return!1}}),!1}}),this.inference&&await this.linkPredicateDomains(o,s);const c=[];for(const[l,d]of Object.entries(s)){const h=e[l];h&&d.some(f=>f.equals(n.subject))&&c.push(...h);for(const f of d)a.delete((0,t8.termToString)(f))}return a.size>0?Object.values(e).flat():c}}Q3.ActorExtractLinksSolidTypeIndex=Hp;Hp.RDF_TYPE="http://www.w3.org/1999/02/22-rdf-syntax-ns#type";(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(Q3,t)})(LB);var BB={},z3={};Object.defineProperty(z3,"__esModule",{value:!0});z3.ActorHttpProxy=void 0;const $me=ms,dE=Ht;class Ume extends $me.ActorHttp{constructor(e){super(e)}async test(e){const r=e.context.get(dE.KeysHttpProxy.httpProxyHandler);if(!r)throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`);if(!await r.getProxy(e))throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`);return{time:Number.POSITIVE_INFINITY}}async run(e){const r=typeof e.input=="string"?e.input:e.input.url,n=e.context.get(dE.KeysHttpProxy.httpProxyHandler),a=await this.mediatorHttp.mediate({...await n.getProxy(e),context:e.context.delete(dE.KeysHttpProxy.httpProxyHandler)});return Object.defineProperty(a,"url",{configurable:!0,enumerable:!0,get:()=>a.headers.get("x-final-url")??r}),a}}z3.ActorHttpProxy=Ume;var W3={};Object.defineProperty(W3,"__esModule",{value:!0});W3.ProxyHandlerStatic=void 0;class qme{constructor(e){this.prefixUrl=e}async getProxy(e){return{init:e.init,input:this.modifyInput(e.input)}}modifyInput(e){return typeof e=="string"?this.prefixUrl+e:new Request(this.prefixUrl+e.url,e)}}W3.ProxyHandlerStatic=qme;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(z3,t),r(W3,t)})(BB);const Vme=new MC.LoggerVoid,Hme=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^2.0.0/components/ActorInit.jsonld#ActorInit_default_bus"}),Gf=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-extract-links/^0.0.0/components/ActorExtractLinks.jsonld#ActorExtractLinks_default_bus"}),_y=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-optimize-query-operation/^2.0.0/components/ActorOptimizeQueryOperation.jsonld#ActorOptimizeQueryOperation_default_bus"}),Dt=new ft.BusQueryOperation({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-operation/^2.0.0/components/ActorQueryOperation.jsonld#ActorQueryOperation_default_bus"}),IR=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-parse/^2.0.0/components/ActorQueryParse.jsonld#ActorQueryParse_default_bus"}),va=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^2.0.0/components/ActorQueryResultSerialize.jsonld#ActorQueryResultSerialize_default_bus"}),$B=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-context-preprocess/^2.0.0/components/ActorContextPreprocess.jsonld#ActorContextPreprocess_default_bus"}),vy=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/^2.0.0/components/ActorHttpInvalidate.jsonld#ActorHttpInvalidate_default_bus"}),UB=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference-rdf/^2.0.0/components/ActorDereferenceRdf.jsonld#ActorDereferenceRdf_default_bus"}),qB=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-hash-bindings/^2.0.0/components/ActorHashBindings.jsonld#ActorHashBindings_default_bus"}),zf=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/^2.0.0/components/ActorRdfSerialize.jsonld#ActorRdfSerialize_default_bus"}),Wf=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^2.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus"}),VB=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^2.0.0/components/ActorHttp.jsonld#ActorHttp_fallback_bus"}),PR=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference/^2.0.0/components/ActorDereference.jsonld#ActorDereference_default_bus"}),hc=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse/^2.0.0/components/ActorRdfParse.jsonld#ActorRdfParse_default_bus"}),HB=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-entries-sort/^2.0.0/components/ActorRdfJoinEntriesSort.jsonld#ActorRdfJoinEntriesSort_default_bus"}),kB=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-selectivity/^2.0.0/components/ActorRdfJoinSelectivity.jsonld#ActorRdfJoinSelectivity_default_bus"}),DR=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata/^2.0.0/components/ActorRdfMetadata.jsonld#ActorRdfMetadata_default_bus"}),wy=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-accumulate/^2.0.0/components/ActorRdfMetadataAccumulate.jsonld#ActorRdfMetadataAccumulate_default_bus"}),lo=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-extract/^2.0.0/components/ActorRdfMetadataExtract.jsonld#ActorRdfMetadataExtract_default_bus"}),X3=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-html/^2.0.0/components/ActorRdfParseHtml.jsonld#ActorRdfParseHtml_default_bus"}),K3=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia/^2.0.0/components/ActorRdfResolveHypermedia.jsonld#ActorRdfResolveHypermedia_default_bus"}),NR=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links/^2.0.0/components/ActorRdfResolveHypermediaLinks.jsonld#ActorRdfResolveHypermediaLinks_default_bus"}),QB=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links-queue/^2.0.0/components/ActorRdfResolveHypermediaLinksQueue.jsonld#ActorRdfResolveHypermediaLinksQueue_default_bus"}),J3=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^2.0.0/components/ActorRdfUpdateHypermedia.jsonld#ActorRdfUpdateHypermedia_default_bus"}),jR=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-quads/^2.0.0/components/ActorRdfUpdateQuads.jsonld#ActorRdfUpdateQuads_default_bus"}),Fa=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join/^2.0.0/components/ActorRdfJoin.jsonld#ActorRdfJoin_default_bus"}),Y3=new et.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-quad-pattern/^2.0.0/components/ActorRdfResolveQuadPattern.jsonld#ActorRdfResolveQuadPattern_default_bus"});new ng.ActorExtractLinksPredicates({checkSubject:!1,predicateRegexes:["http://www.w3.org/2000/01/rdf-schema#seeAlso","http://www.w3.org/2002/07/owl##sameAs","http://xmlns.com/foaf/0.1/isPrimaryTopicOf"],name:"urn:comunica:default:extract-links/actors#predicates-common",bus:Gf});new ng.ActorExtractLinksPredicates({checkSubject:!0,predicateRegexes:["http://www.w3.org/ns/ldp#contains"],name:"urn:comunica:default:extract-links/actors#predicates-ldp",bus:Gf});new ng.ActorExtractLinksPredicates({checkSubject:!0,predicateRegexes:["http://www.w3.org/ns/pim/space#storage"],name:"urn:comunica:default:extract-links/actors#predicates-solid",bus:Gf});new LC.ActorExtractLinksQuadPatternQuery({onlyVariables:!0,name:"urn:comunica:default:extract-links/actors#quad-pattern-query",bus:Gf});const kme=new BC.MediatorCombineArray({fields:["links","linksConditional"],name:"urn:comunica:default:extract-links/mediators#main",bus:Gf}),Qme=new YA.MediatorCombinePipeline({name:"urn:comunica:default:optimize-query-operation/mediators#main",bus:_y});new $C.ActorOptimizeQueryOperationSetSeedSourcesQuadpatternIris({extractSubjects:!0,extractPredicates:!1,extractObjects:!0,extractGraphs:!0,extractVocabIris:!1,name:"urn:comunica:default:optimize-query-operation/actors#set-seed-sources-quadpattern-iris",bus:_y});new UC.ActorOptimizeQueryOperationJoinBgp({name:"urn:comunica:default:optimize-query-operation/actors#join-bgp",bus:_y});new qC.ActorOptimizeQueryOperationBgpToJoin({name:"urn:comunica:default:optimize-query-operation/actors#bgp-to-join",bus:_y});new VC.ActorOptimizeQueryOperationJoinConnected({name:"urn:comunica:default:optimize-query-operation/actors#join-connected",bus:_y});const jt=new jf.MediatorNumber({field:"httpRequests",type:"min",ignoreErrors:!0,name:"urn:comunica:default:query-operation/mediators#main",bus:Dt});new HC.ActorQueryOperationValues({name:"urn:comunica:default:query-operation/actors#values",bus:Dt});const Gme=new Ci.MediatorRace({name:"urn:comunica:default:query-parse/mediators#main",bus:IR});new kC.ActorQueryParseSparql({prefixes:{dbpedia:"http://dbpedia.org/resource/","dbpedia-owl":"http://dbpedia.org/ontology/",dbpprop:"http://dbpedia.org/property/",dc:"http://purl.org/dc/terms/",dc11:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",schema:"http://schema.org/",skos:"http://www.w3.org/2008/05/skos#",xsd:"http://www.w3.org/2001/XMLSchema#"},name:"urn:comunica:default:query-parse/actors#sparql",bus:IR});new QC.ActorQueryParseGraphql({name:"urn:comunica:default:query-parse/actors#graphql",bus:IR});const zme=new Ci.MediatorRace({name:"urn:comunica:default:query-result-serialize/mediators#serialize",bus:va}),Wme=new uc.MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:query-result-serialize/mediators#mediaType",bus:va}),Xme=new uc.MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:query-result-serialize/mediators#mediaTypeFormat",bus:va});new p9.ActorQueryResultSerializeJson({mediaTypePriorities:{"application/json":1},mediaTypeFormats:{"application/json":"https://comunica.linkeddatafragments.org/#results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#json",bus:va});new uF.ActorQueryResultSerializeSimple({mediaTypePriorities:{simple:.9},mediaTypeFormats:{simple:"https://comunica.linkeddatafragments.org/#results_simple"},name:"urn:comunica:default:query-result-serialize/actors#simple",bus:va});new cF.ActorQueryResultSerializeSparqlCsv({mediaTypePriorities:{"text/csv":.75},mediaTypeFormats:{"text/csv":"http://www.w3.org/ns/formats/SPARQL_Results_CSV"},name:"urn:comunica:default:query-result-serialize/actors#csv",bus:va});new lF.ActorQueryResultSerializeSparqlTsv({mediaTypePriorities:{"text/tab-separated-values":.75},mediaTypeFormats:{"text/tab-separated-values":"http://www.w3.org/ns/formats/SPARQL_Results_TSV"},name:"urn:comunica:default:query-result-serialize/actors#sparql-tsv",bus:va});new bF.ActorQueryResultSerializeSparqlXml({mediaTypePriorities:{"application/sparql-results+xml":.8},mediaTypeFormats:{"application/sparql-results+xml":"http://www.w3.org/ns/formats/SPARQL_Results_XML"},name:"urn:comunica:default:query-result-serialize/actors#sparql-xml",bus:va});new mF.ActorQueryResultSerializeTable({columnWidth:50,mediaTypePriorities:{table:.6},mediaTypeFormats:{table:"https://comunica.linkeddatafragments.org/#results_table"},name:"urn:comunica:default:query-result-serialize/actors#table",bus:va});new _F.ActorQueryResultSerializeTree({mediaTypePriorities:{tree:.5},mediaTypeFormats:{tree:"https://comunica.linkeddatafragments.org/#results_tree"},name:"urn:comunica:default:query-result-serialize/actors#tree",bus:va});const Kme=new YA.MediatorCombinePipeline({name:"urn:comunica:default:context-preprocess/mediators#main",bus:$B});new NF.ActorContextPreprocessSourceToDestination({name:"urn:comunica:default:context-preprocess/actors#source-to-destination",bus:$B});const Jme=new CF.MediatorAll({name:"urn:comunica:default:http-invalidate/mediators#main",bus:vy}),Yme=new C0.ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^2.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:vy}),Zme=new C0.ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^2.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:vy}),ege=new C0.ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-update-quads-hypermedia/^2.0.0/components/ActorRdfUpdateQuadsHypermedia.jsonld#IActorRdfUpdateQuadsHypermediaArgs_default_invalidator",bus:vy}),tge=new C0.ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-resolve-quad-pattern-hypermedia/^2.0.0/components/ActorRdfResolveQuadPatternHypermedia.jsonld#IActorRdfResolveQuadPatternHypermediaArgs_default_invalidator",bus:vy}),Z3=new Ci.MediatorRace({name:"urn:comunica:default:dereference-rdf/mediators#main",bus:UB});new FF.ActorHashBindingsSha1({name:"urn:comunica:default:hash-bindings/actors#sha1",bus:qB});const CR=new Ci.MediatorRace({name:"urn:comunica:default:hash-bindings/mediators#main",bus:qB}),GB=new Ci.MediatorRace({name:"urn:comunica:default:rdf-serialize/mediators#serialize",bus:zf}),zB=new uc.MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-serialize/mediators#mediaType",bus:zf}),rge=new uc.MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:rdf-serialize/mediators#mediaTypeFormat",bus:zf});new LF.ActorRdfSerializeN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},name:"urn:comunica:default:rdf-serialize/actors#n3",bus:zf});new kF.ActorRdfSerializeJsonLd({jsonStringifyIndentSpaces:2,mediaTypePriorities:{"application/ld+json":1},mediaTypeFormats:{"application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-serialize/actors#jsonld",bus:zf});new GF.ActorRdfSerializeShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-serialize/actors#shaclc",bus:zf});const nge=new jf.MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#no-fallback",bus:Wf}),WB=new KF.ActorHttpFetch({agentOptions:{keepAlive:!0,maxSockets:5},name:"urn:comunica:default:http/actors#fetch",bus:Wf}),ou=new jf.MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#main",bus:VB}),ige=new ZF.ActorDereferenceFallback({name:"urn:comunica:default:dereference/actors#fallback",bus:PR}),age=new Ci.MediatorRace({name:"urn:comunica:default:dereference/mediators#main",bus:PR}),XB=new Ci.MediatorRace({name:"urn:comunica:default:rdf-parse/mediators#parse",bus:hc}),KB=new uc.MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-parse/mediators#mediaType",bus:hc});new nM.ActorRdfParseN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},priorityScale:1,name:"urn:comunica:default:rdf-parse/actors#n3",bus:hc});new iM.ActorRdfParseRdfXml({mediaTypePriorities:{"application/rdf+xml":1},mediaTypeFormats:{"application/rdf+xml":"http://www.w3.org/ns/formats/RDF_XML"},priorityScale:.5,name:"urn:comunica:default:rdf-parse/actors#rdfxml",bus:hc});new bM.ActorRdfParseXmlRdfa({mediaTypePriorities:{"application/xml":1,"image/svg+xml":1,"text/xml":1},mediaTypeFormats:{"application/xml":"http://www.w3.org/ns/formats/RDFa","image/svg+xml":"http://www.w3.org/ns/formats/RDFa","text/xml":"http://www.w3.org/ns/formats/RDFa"},priorityScale:.3,name:"urn:comunica:default:rdf-parse/actors#xmlrdfa",bus:hc});new zM.ActorRdfParseShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-parse/actors#shaclc",bus:hc});new KM.ActorRdfJoinEntriesSortTraversalZeroKnowledge({name:"urn:comunica:default:rdf-join-entries-sort/actors#traversal-zero-knowledge",bus:HB});const JB=new Ci.MediatorRace({name:"urn:comunica:default:rdf-join-entries-sort/mediators#main",bus:HB});new ZM.ActorRdfJoinSelectivityVariableCounting({name:"urn:comunica:default:rdf-join-selectivity/actors#variable-counting",bus:kB});const ws=new jf.MediatorNumber({field:"accuracy",type:"max",ignoreErrors:!0,name:"urn:comunica:default:rdf-join-selectivity/mediators#main",bus:kB});new t7.ActorRdfMetadataPrimaryTopic({metadataToData:!1,dataToMetadataOnInvalidMetadataGraph:!0,name:"urn:comunica:default:rdf-metadata/actors#primary-topic",bus:DR});new r7.ActorRdfMetadataAll({name:"urn:comunica:default:rdf-metadata/actors#all",bus:DR});const FR=new Ci.MediatorRace({name:"urn:comunica:default:rdf-metadata/mediators#main",bus:DR});new n7.ActorRdfMetadataAccumulateCanContainUndefs({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cancontainundefs",bus:wy});new i7.ActorRdfMetadataAccumulateCardinality({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cardinality",bus:wy});new a7.ActorRdfMetadataAccumulatePageSize({name:"urn:comunica:default:rdf-metadata-accumulate/actors#pagesize",bus:wy});new s7.ActorRdfMetadataAccumulateRequestTime({name:"urn:comunica:default:rdf-metadata-accumulate/actors#requesttime",bus:wy});const YB=new uc.MediatorCombineUnion({field:"metadata",name:"urn:comunica:default:rdf-metadata-accumulate/mediators#main",bus:wy});new o7.ActorRdfMetadataExtractHydraControls({name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-controls",bus:lo});new c7.ActorRdfMetadataExtractHydraCount({predicates:["http://www.w3.org/ns/hydra/core#totalItems","http://rdfs.org/ns/void#triples"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-count",bus:lo});new l7.ActorRdfMetadataExtractHydraPagesize({predicates:["http://www.w3.org/ns/hydra/core#itemsPerPage"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-pagesize",bus:lo});new d7.ActorRdfMetadataExtractRequestTime({name:"urn:comunica:default:rdf-metadata-extract/actors#request-time",bus:lo});new f7.ActorRdfMetadataExtractAllowHttpMethods({name:"urn:comunica:default:rdf-metadata-extract/actors#allow-http-methods",bus:lo});new h7.ActorRdfMetadataExtractPutAccepted({name:"urn:comunica:default:rdf-metadata-extract/actors#put-accepted",bus:lo});new p7.ActorRdfMetadataExtractPatchSparqlUpdate({name:"urn:comunica:default:rdf-metadata-extract/actors#patch-sparql-update",bus:lo});new y7.ActorRdfMetadataExtractSparqlService({inferHttpsEndpoint:!0,name:"urn:comunica:default:rdf-metadata-extract/actors#sparql-service",bus:lo});const MR=new uc.MediatorCombineUnion({field:"metadata",name:"urn:comunica:default:rdf-metadata-extract/mediators#main",bus:lo});new b7.ActorRdfParseHtml({busRdfParseHtml:X3,mediaTypePriorities:{"application/xhtml+xml":.9,"text/html":1},mediaTypeFormats:{"application/xhtml+xml":"http://www.w3.org/ns/formats/HTML","text/html":"http://www.w3.org/ns/formats/HTML"},priorityScale:.2,name:"urn:comunica:default:rdf-parse/actors#html",bus:hc});new g7.ActorRdfParseHtmlMicrodata({name:"urn:comunica:default:rdf-parse-html/actors#microdata",bus:X3});new O7.ActorRdfParseHtmlRdfa({name:"urn:comunica:default:rdf-parse-html/actors#rdfa",bus:X3});new A7.ActorRdfResolveHypermediaNone({name:"urn:comunica:default:rdf-resolve-hypermedia/actors#none",bus:K3});const sge=new jf.MediatorNumber({field:"filterFactor",type:"max",ignoreErrors:!0,name:"urn:comunica:default:rdf-resolve-hypermedia/mediators#main",bus:K3});new M7.ActorRdfResolveHypermediaLinksNext({name:"urn:comunica:default:rdf-resolve-hypermedia-links/actors#next",bus:NR});new L7.ActorRdfResolveHypermediaLinksTraverse({name:"urn:comunica:default:rdf-resolve-hypermedia-links/actors#traverse",bus:NR});const oge=new Ci.MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links/mediators#main",bus:NR});new B7.ActorRdfResolveHypermediaLinksQueueFifo({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/actors#fifo",bus:QB});const uge=new Ci.MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/mediators#main",bus:QB}),cge=new Ci.MediatorRace({name:"urn:comunica:default:rdf-update-hypermedia/mediators#main",bus:J3});new q7.ActorRdfUpdateQuadsRdfJsStore({name:"urn:comunica:default:rdf-update-quads/actors#rdfjs-store",bus:jR});const Sy=new Ci.MediatorRace({name:"urn:comunica:default:rdf-update-quads/mediators#main",bus:jR}),Ty=new Q7.MediatorJoinCoefficientsFixed({cpuWeight:1,memoryWeight:1,timeWeight:10,ioWeight:100,name:"urn:comunica:default:rdf-join/mediators#main",bus:Fa}),ZB=new Ci.MediatorRace({name:"urn:comunica:default:rdf-resolve-quad-pattern/mediators#main",bus:Y3});new nR.ActorRdfResolveQuadPatternRdfJsSource({name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#rdfjs-source",bus:Y3});new G7.ActorRdfMetadataExtractTraverse({mediatorExtractLinks:kme,name:"urn:comunica:default:rdf-metadata-extract/actors#traverse",bus:lo});new z7.ActorQueryOperationAsk({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#ask",bus:Dt});new W7.ActorQueryOperationBgpJoin({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#bgp",bus:Dt});new X7.ActorQueryOperationDescribeSubject({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#describe",bus:Dt});new oR.ActorQueryOperationConstruct({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#construct",bus:Dt});new K7.ActorQueryOperationExtend({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#extend",bus:Dt});new EL.ActorQueryOperationFilterSparqlee({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#filter",bus:Dt});new OL.ActorQueryOperationFromQuad({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#from",bus:Dt});new AL.ActorQueryOperationNop({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#nop",bus:Dt});new xL.ActorQueryOperationOrderBySparqlee({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#orderby",bus:Dt});new RL.ActorQueryOperationProject({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#project",bus:Dt});new IL.ActorQueryOperationService({forceSparqlEndpoint:!1,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#service",bus:Dt});new PL.ActorQueryOperationSlice({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#slice",bus:Dt});new y2.ActorQueryOperationUnion({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#union",bus:Dt});new DL.ActorQueryOperationPathAlt({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-alt",bus:Dt});new NL.ActorQueryOperationPathInv({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-inv",bus:Dt});new jL.ActorQueryOperationPathLink({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-link",bus:Dt});new CL.ActorQueryOperationPathNps({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-nps",bus:Dt});new FL.ActorQueryOperationPathOneOrMore({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-one-or-more",bus:Dt});new ML.ActorQueryOperationPathZeroOrMore({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-zero-or-more",bus:Dt});new LL.ActorQueryOperationPathZeroOrOne({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-zero-or-one",bus:Dt});new BL.ActorQueryOperationAddRewrite({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-add",bus:Dt});new $L.ActorQueryOperationUpdateCompositeUpdate({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-composite",bus:Dt});new UL.ActorQueryOperationCopyRewrite({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-copy",bus:Dt});new qL.ActorQueryOperationMoveRewrite({mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-move",bus:Dt});const e$=new vm.ActorInitQuery({mediatorOptimizeQueryOperation:Qme,mediatorQueryOperation:jt,mediatorQueryParse:Gme,mediatorQueryResultSerialize:zme,mediatorQueryResultSerializeMediaTypeCombiner:Wme,mediatorQueryResultSerializeMediaTypeFormatCombiner:Xme,mediatorContextPreprocess:Kme,mediatorHttpInvalidate:Jme,logger:Vme,defaultQueryInputFormat:"sparql",allowNoSources:!0,contextKeyShortcuts:{baseIRI:"@comunica/actor-init-query:baseIRI",datetime:"@comunica/actor-http-memento:datetime",destination:"@comunica/bus-rdf-update-quads:destination",explain:"@comunica/actor-init-query:explain",extensionFunctionCreator:"@comunica/actor-init-query:extensionFunctionCreator",extensionFunctions:"@comunica/actor-init-query:extensionFunctions",fetch:"@comunica/bus-http:fetch",functionArgumentsCache:"@comunica/actor-init-query:functionArgumentsCache",httpAuth:"@comunica/bus-http:auth",httpBodyTimeout:"@comunica/bus-http:http-body-timeout",httpIncludeCredentials:"@comunica/bus-http:include-credentials",httpProxyHandler:"@comunica/actor-http-proxy:httpProxyHandler",httpRetryCount:"@comunica/bus-http:http-retry-count",httpRetryDelay:"@comunica/bus-http:http-retry-delay",httpRetryOnServerError:"@comunica/bus-http:http-retry-on-server-error",httpTimeout:"@comunica/bus-http:http-timeout",initialBindings:"@comunica/actor-init-query:initialBindings",lenient:"@comunica/actor-init-query:lenient",log:"@comunica/core:log",queryFormat:"@comunica/actor-init-query:queryFormat",queryTimestamp:"@comunica/actor-init-query:queryTimestamp",readOnly:"@comunica/bus-query-operation:readOnly",recoverBrokenLinks:"@comunica/bus-http-wayback:recover-broken-links",source:"@comunica/bus-rdf-resolve-quad-pattern:source",sources:"@comunica/bus-rdf-resolve-quad-pattern:sources",unionDefaultGraph:"@comunica/bus-query-operation:unionDefaultGraph"},name:"urn:comunica:default:init/actors#query",bus:Hme}),lge=new wR.ActionObserverHttp({httpInvalidator:Yme,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^2.0.0/components/ActorQueryResultSerializeSparqlJson.jsonld#ActorQueryResultSerializeSparqlJson_default_observer",bus:Wf}),dge=new SR.ActionObserverHttp({httpInvalidator:Zme,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^2.0.0/components/ActorQueryResultSerializeStats.jsonld#ActorQueryResultSerializeStats_default_observer",bus:Wf});new VL.ActorQueryOperationDistinctHash({mediatorHashBindings:CR,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#distinct",bus:Dt});new HL.ActorQueryOperationGroup({mediatorHashBindings:CR,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#group",bus:Dt});new kL.ActorQueryOperationReducedHash({mediatorHashBindings:CR,cacheSize:100,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#reduced",bus:Dt});new QL.ActorQueryResultSerializeRdf({mediatorRdfSerialize:GB,mediatorMediaTypeCombiner:zB,mediatorMediaTypeFormatCombiner:rge,name:"urn:comunica:default:query-result-serialize/actors#rdf",bus:va});new GL.ActorHttpWayback({mediatorHttp:nge,name:"urn:comunica:default:http/actors#wayback",bus:VB});new zL.ActorRdfParseJsonLd({mediatorHttp:ou,mediaTypePriorities:{"application/json":.5,"application/ld+json":1},mediaTypeFormats:{"application/json":"http://www.w3.org/ns/formats/JSON-LD","application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-parse/actors#jsonld",bus:hc});new ZL.ActorRdfResolveHypermediaSparql({mediatorHttp:ou,checkUrlSuffix:!0,forceHttpGet:!1,cacheSize:1024,name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#sparql",bus:K3});new tB.ActorRdfUpdateHypermediaPatchSparqlUpdate({mediatorHttp:ou,name:"urn:comunica:default:rdf-update-hypermedia/actors#patch-sparql-update",bus:J3});new rB.ActorRdfUpdateHypermediaPutLdp({mediatorHttp:ou,mediatorRdfSerializeMediatypes:zB,mediatorRdfSerialize:GB,name:"urn:comunica:default:rdf-update-hypermedia/actors#put-ldp",bus:J3});new nB.ActorRdfUpdateHypermediaSparql({mediatorHttp:ou,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,name:"urn:comunica:default:rdf-update-hypermedia/actors#sparql",bus:J3});new iB.ActorQueryOperationSparqlEndpoint({mediatorHttp:ou,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,forceHttpGet:!1,name:"urn:comunica:default:query-operation/actors#sparql-endpoint",bus:Dt});new aB.ActorDereferenceRdfParse({mediatorDereference:age,mediatorParse:XB,mediatorParseMediatypes:KB,mediaMappings:{htm:"text/html",html:"text/html",json:"application/json",jsonld:"application/ld+json",n3:"text/n3",nq:"application/n-quads",nquads:"application/n-quads",nt:"application/n-triples",ntriples:"application/n-triples",owl:"application/rdf+xml",rdf:"application/rdf+xml",rdfxml:"application/rdf+xml",shaclc:"text/shaclc",shaclce:"text/shaclc-ext",shc:"text/shaclc",shce:"text/shaclc-ext",svg:"image/svg+xml",svgz:"image/svg+xml",trig:"application/trig",ttl:"text/turtle",turtle:"text/turtle",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xml:"application/xml"},name:"urn:comunica:default:dereference-rdf/actors#parse",bus:UB});new oB.ActorRdfParseHtmlScript({mediatorRdfParseMediatypes:KB,mediatorRdfParseHandle:XB,name:"urn:comunica:default:rdf-parse-html/actors#script",bus:X3});new uB.ActorRdfJoinNone({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-none",bus:Fa});new cB.ActorRdfJoinSingle({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-single",bus:Fa});new AR.ActorRdfJoinMultiBind({bindOrder:"breadth-first",selectivityModifier:1e-4,mediatorJoinEntriesSort:JB,mediatorQueryOperation:jt,mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind",bus:Fa});new lB.ActorRdfJoinHash({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-hash",bus:Fa});new fB.ActorRdfJoinSymmetricHash({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-symmetric-hash",bus:Fa});new hB.ActorRdfJoinNestedLoop({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-nested-loop",bus:Fa});new pB.ActorRdfJoinMinusHash({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#minus-hash",bus:Fa});new yB.ActorRdfJoinMinusHashUndef({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#minus-hash-undef",bus:Fa});new bB.ActorRdfJoinOptionalBind({bindOrder:"depth-first",selectivityModifier:1e-4,mediatorQueryOperation:jt,mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#optional-bind",bus:Fa});new mB.ActorRdfJoinOptionalNestedLoop({mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#optional-nested-loop",bus:Fa});new gB.ActorRdfResolveHypermediaQpf({mediatorMetadata:FR,mediatorMetadataExtract:MR,mediatorDereferenceRdf:Z3,subjectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject",predicateUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate",objectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#object",graphUri:"http://www.w3.org/ns/sparql-service-description#graph",name:"urn:comunica:default:rdf-resolve-hypermedia/actors#qpf",bus:K3});new vB.ActorRdfResolveQuadPatternHypermedia({cacheSize:2048,httpInvalidator:tge,maxIterators:64,aggregateStore:!0,mediatorDereferenceRdf:Z3,mediatorMetadata:FR,mediatorMetadataExtract:MR,mediatorMetadataAccumulate:YB,mediatorRdfResolveHypermedia:sge,mediatorRdfResolveHypermediaLinks:oge,mediatorRdfResolveHypermediaLinksQueue:uge,name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#hypermedia",bus:Y3});new SB.ActorRdfUpdateQuadsHypermedia({cacheSize:100,httpInvalidator:ege,mediatorDereferenceRdf:Z3,mediatorMetadata:FR,mediatorMetadataExtract:MR,mediatorRdfUpdateHypermedia:cge,name:"urn:comunica:default:rdf-update-quads/actors#hypermedia",bus:jR});new TB.ActorQueryOperationClear({mediatorUpdateQuads:Sy,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-clear",bus:Dt});new EB.ActorQueryOperationCreate({mediatorUpdateQuads:Sy,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-create",bus:Dt});new OB.ActorQueryOperationUpdateDeleteInsert({mediatorUpdateQuads:Sy,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-delete-insert",bus:Dt});new AB.ActorQueryOperationDrop({mediatorUpdateQuads:Sy,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-drop",bus:Dt});new xB.ActorQueryOperationLoad({mediatorUpdateQuads:Sy,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#update-load",bus:Dt});new RB.ActorQueryOperationJoin({mediatorJoin:Ty,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#join",bus:Dt});new IB.ActorQueryOperationLeftJoin({mediatorJoin:Ty,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#leftjoin",bus:Dt});new PB.ActorQueryOperationMinus({mediatorJoin:Ty,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#minus",bus:Dt});new DB.ActorQueryOperationPathSeq({mediatorJoin:Ty,mediatorQueryOperation:jt,name:"urn:comunica:default:query-operation/actors#path-seq",bus:Dt});new NB.ActorRdfJoinMultiSmallest({mediatorJoinEntriesSort:JB,mediatorJoin:Ty,mediatorJoinSelectivity:ws,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest",bus:Fa});new jB.ActorQueryOperationQuadpattern({mediatorResolveQuadPattern:ZB,unionDefaultGraph:!1,name:"urn:comunica:default:query-operation/actors#quadpattern",bus:Dt});new sR.ActorRdfResolveQuadPatternFederated({mediatorResolveQuadPattern:ZB,mediatorRdfMetadataAccumulate:YB,skipEmptyPatterns:!1,name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#federated",bus:Y3});const fge=new CB.ActorHttpInruptSolidClientAuthn({mediatorHttp:ou,name:"urn:comunica:default:http/actors#inrupt-solid-client-authn",bus:Wf,beforeActors:[WB]});new FB.ActorDereferenceHttp({mediatorHttp:ou,maxAcceptHeaderLength:1024,maxAcceptHeaderLengthBrowser:128,name:"urn:comunica:default:dereference/actors#http",bus:PR,beforeActors:[ige]});new LB.ActorExtractLinksSolidTypeIndex({typeIndexPredicates:["http://www.w3.org/ns/solid/terms#publicTypeIndex","http://www.w3.org/ns/solid/terms#privateTypeIndex"],onlyMatchingTypes:!0,inference:!0,actorInitQuery:e$,mediatorDereferenceRdf:Z3,name:"urn:comunica:default:extract-links/actors#solid-type-index",bus:Gf});new wR.ActorQueryResultSerializeSparqlJson({emitMetadata:!0,httpObserver:lge,mediaTypePriorities:{"application/sparql-results+json":.8},mediaTypeFormats:{"application/sparql-results+json":"http://www.w3.org/ns/formats/SPARQL_Results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#sparql-json",bus:va});new SR.ActorQueryResultSerializeStats({httpObserver:dge,mediaTypePriorities:{stats:.5},mediaTypeFormats:{stats:"https://comunica.linkeddatafragments.org/#results_stats"},name:"urn:comunica:default:query-result-serialize/actors#stats",bus:va});new BB.ActorHttpProxy({mediatorHttp:ou,name:"urn:comunica:default:http/actors#proxy",bus:Wf,beforeActors:[WB,fge]});var hge=e$;Object.defineProperty(_m,"__esModule",{value:!0});_m.QueryEngine=void 0;const pge=vm,yge=hge;class bge extends pge.QueryEngineBase{constructor(e=yge){super(e)}}_m.QueryEngine=bge;(function(t){var e=g&&g.__createBinding||(Object.create?function(n,a,s,o){o===void 0&&(o=s);var u=Object.getOwnPropertyDescriptor(a,s);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(n,o,u)}:function(n,a,s,o){o===void 0&&(o=s),n[o]=a[s]}),r=g&&g.__exportStar||function(n,a){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&e(a,n,s)};Object.defineProperty(t,"__esModule",{value:!0}),r(_m,t)})(E5);var ls=globalThis&&globalThis.__awaiter||function(t,e,r,n){function a(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function u(d){try{l(n.next(d))}catch(h){o(h)}}function c(d){try{l(n.throw(d))}catch(h){o(h)}}function l(d){d.done?s(d.value):a(d.value).then(u,c)}l((n=n.apply(t,e||[])).next())})};const nc=new E5.QueryEngine;function mge(t){return ls(this,void 0,void 0,function*(){const e=yield gge(t),r=yield _ge(e);if(r==="LDESinLDP"){console.log("LDES in LDP");const n=yield vge(e);return console.log(n),{pages:n.transform({map:a=>({uri:a.node,sort:a.value})}),url:e,type:"LDESinLDP"}}else{if(r==="LDES")return console.log("LDES"),{pages:(yield wge(e)).transform({map:a=>({uri:a.view,sort:a.view})}),url:e,type:"LDES"};throw new Error("Only LDESinLDP and LDES are supported at the moment")}})}function gge(t){return ls(this,void 0,void 0,function*(){var e,r;const a=(e=(yield fetch(t,{method:"HEAD"})).headers.get("Link"))===null||e===void 0?void 0:e.split(",").map(o=>{const u=o.trim().split(";"),c=u[0].slice(1,-1),l=u[1].trim().split("=")[1].slice(1,-1);return{url:c,rel:l}}),s=(r=a==null?void 0:a.find(o=>o.rel==="https://w3id.org/ldes#EventStream"))===null||r===void 0?void 0:r.url;if(!s)throw new Error("No LDES found");return console.log("Found LDES: "+s),s})}function _ge(t){return ls(this,void 0,void 0,function*(){var e,r;if(!t)return!1;const n=` - PREFIX ldes: - PREFIX tree: - - SELECT * WHERE { - { - SELECT ("LDES" AS ?type) WHERE { - <${t}> a ldes:EventStream; - tree:view ?view. - <${t}> tree:member ?member. - } - } - UNION - { - SELECT ("LDESinLDP" AS ?type) WHERE { - <${t}> a ldes:EventStream; - tree:view ?view. - ?view a tree:Node; - tree:viewDescription ?viewDescription. - ?viewDescription a tree:ViewDescription; - ldes:managedBy ?ldesInLdp. - ?ldesInLdp a ldes:LDESinLDPClient. - } - } - } LIMIT 1`;return(r=(e=(yield(yield nc.queryBindings(n,{sources:[t],lenient:!0})).toArray())[0])===null||e===void 0?void 0:e.get("type"))===null||r===void 0?void 0:r.value})}function vge(t){return ls(this,void 0,void 0,function*(){const e=` - PREFIX ldes: - PREFIX tree: - - SELECT ?relation ?relationType ?node ?value ?path - WHERE { - <${t}> a ldes:EventStream; - tree:view ?view. - ?view a tree:Node; - tree:relation ?relation. - ?relation a ?relationType; - tree:node ?node. - OPTIONAL { ?relation tree:value ?value. } - OPTIONAL { ?relation tree:path ?path. } - }`;return(yield nc.queryBindings(e,{sources:[t],lenient:!0})).transform({map:n=>{var a,s;return{relation:n.get("relation").value,relationType:n.get("relationType").value,node:n.get("node").value,value:(a=n.get("value"))===null||a===void 0?void 0:a.value,path:(s=n.get("path"))===null||s===void 0?void 0:s.value}}})})}function wge(t){return ls(this,void 0,void 0,function*(){const e=` - PREFIX ldes: - PREFIX tree: - - SELECT ?view - WHERE { - <${t}> a ldes:EventStream; - tree:view ?view. - }`;return(yield nc.queryBindings(e,{sources:[t],lenient:!0,"@comunica/actor-rdf-resolve-hypermedia-links-traverse:traverse":!1})).transform({map:n=>({view:n.get("view").value})})})}function Sge(t,e,r){return ls(this,void 0,void 0,function*(){if(r==="LDESinLDP"){const n=` - PREFIX ldes: - PREFIX tree: - PREFIX ldp: - PREFIX dc: - - SELECT ?member ?dateTime - WHERE { - <${t}> a ldes:EventStream; - tree:view ?view. - ?view a tree:Node; - tree:relation ?relation. - ?relation a ?relationType; - tree:node ?node. - ?node a ldp:BasicContainer; - ldp:contains ?member. - ?member a ldp:Resource; - dc:modified ?dateTime. - FILTER (?node = <${e}>). - }`,a=(o,u)=>fetch(o,Object.assign(Object.assign({},u),{headers:Object.assign(Object.assign({},u==null?void 0:u.headers),{"Cache-Control":"no-cache"})}));return(yield nc.queryBindings(n,{sources:[t],fetch:a,lenient:!1})).transform({map:o=>ls(this,void 0,void 0,function*(){return{content:yield Tge(o.get("member").value),metadata:{dateTime:o.get("dateTime").value}}})})}else if(r==="LDES"){const n=` - PREFIX ldes: - PREFIX tree: - PREFIX as: - - SELECT ?member ?actorUrl ?actorName ?object ?targetUrl ?targetName ?context - WHERE { - <${t}> a ldes:EventStream; - tree:view <${e}>; - tree:member ?member. - ?member as:actor ?actorUrl; - as:object ?object. - OPTIONAL { ?id as:target ?targetUrl. } - OPTIONAL { ?actorUrl as:name ?actorName. } - OPTIONAL { ?targetUrl as:name ?targetName. } - OPTIONAL { ?id as:context ?context. } - }`;return(yield nc.queryBindings(n,{sources:[t],lenient:!0})).transform({map:s=>ls(this,void 0,void 0,function*(){var o,u,c,l;const d=yield nm(s.get("object").value,e);let h={};return d.includes("https://www.w3.org/ns/activitystreams#Relationship")&&(h=yield t$(s.get("object").value,e)),{content:{id:s.get("member").value,actorUrl:s.get("actorUrl").value,actorName:(o=s.get("actorName"))===null||o===void 0?void 0:o.value,object:s.get("object").value,targetUrl:(u=s.get("targetUrl"))===null||u===void 0?void 0:u.value,targetName:(c=s.get("targetName"))===null||c===void 0?void 0:c.value,context:(l=s.get("context"))===null||l===void 0?void 0:l.value,types:yield nm(s.get("member").value,e),objectTypes:d,objectRelationship:h},metadata:{}}})})}else throw new Error("Only LDESinLDP and LDES are supported at the moment")})}function Tge(t){return ls(this,void 0,void 0,function*(){const e=` - PREFIX as: - - SELECT ?id ?actorUrl ?actorName ?object ?targetUrl ?targetName ?context - WHERE { - ?id as:actor ?actorUrl; - as:object ?object. - OPTIONAL { ?id as:target ?targetUrl. } - OPTIONAL { ?actorUrl as:name ?actorName. } - OPTIONAL { ?targetUrl as:name ?targetName. } - OPTIONAL { ?id as:context ?context. } - } LIMIT 1`,r=yield(yield nc.queryBindings(e,{sources:[t],lenient:!0,"@comunica/actor-rdf-resolve-hypermedia-links-traverse:traverse":!1})).toArray();r.length!==1&&console.warn(`Found ${r.length} results for content, expected 1.`);const n=r.map(a=>{var s,o,u,c;return{id:a.get("id").value,actorUrl:a.get("actorUrl").value,actorName:(s=a.get("actorName"))===null||s===void 0?void 0:s.value,object:a.get("object").value,targetUrl:(o=a.get("targetUrl"))===null||o===void 0?void 0:o.value,targetName:(u=a.get("targetName"))===null||u===void 0?void 0:u.value,context:(c=a.get("context"))===null||c===void 0?void 0:c.value,types:[],objectTypes:[],objectRelationship:{}}})[0];return n.types=yield nm(n.id,t),n.objectTypes=yield nm(n.object,t),n.objectTypes.includes("https://www.w3.org/ns/activitystreams#Relationship")&&(n.objectRelationship=yield t$(n.object,t)),n})}function nm(t,e){return ls(this,void 0,void 0,function*(){const r=` - SELECT ?type - WHERE { - <${t}> a ?type. - }`;return(yield(yield nc.queryBindings(r,{sources:[e],lenient:!0,"@comunica/actor-rdf-resolve-hypermedia-links-traverse:traverse":!1})).toArray()).map(a=>a.get("type").value)})}function t$(t,e){return ls(this,void 0,void 0,function*(){const r=` - PREFIX as: - - SELECT ?subject ?relationship ?object - WHERE { - <${t}> as:subject ?subject; - as:relationship ?relationship; - as:object ?object. - } LIMIT 1`;return(yield(yield nc.queryBindings(r,{sources:[e],lenient:!0,"@comunica/actor-rdf-resolve-hypermedia-links-traverse:traverse":!1})).toArray()).map(a=>({subject:a.get("subject").value,relationship:a.get("relationship").value,object:a.get("object").value}))[0]||{}})}const Ege=ji({name:"PagesPagination",components:{MDBCardText:S5,MDBCardBody:w5,MDBCard:v5,MDBPageItem:DV,MDBPagination:AV},props:["pages","loadPage"]}),r$=(t,e)=>{const r=t.__vccOpts||t;for(const[n,a]of e)r[n]=a;return r};function Oge(t,e,r,n,a,s){var h;const o=ia("MDBPageItem"),u=ia("MDBPagination"),c=ia("MDBCardText"),l=ia("MDBCardBody"),d=ia("MDBCard");return(h=t.pages)!=null&&h.length?(mt(),si(d,{key:0},{default:ar(()=>[Qt(l,{class:"w-100"},{default:ar(()=>[Qt(c,null,{default:ar(()=>[Lt("nav",null,[Qt(u,{style:{"margin-bottom":"0"}},{default:ar(()=>[(mt(!0),er(ri,null,wE(t.pages,(f,p)=>(mt(),si(o,{key:p,active:f.active,onClick:b=>t.loadPage(f)},{default:ar(()=>[$c(Sr(f.uri),1)]),_:2},1032,["active","onClick"]))),128))]),_:1})])]),_:1})]),_:1})]),_:1})):en("",!0)}const Age=r$(Ege,[["render",Oge]]),xge={name:"ScholarlyBrowser",components:{PagesPagination:Age,MDBContainer:jV,MDBCard:v5,MDBCardBody:w5,MDBCardText:S5,MDBInput:WV,MDBCardFooter:hV,MDBCardTitle:lV},data(){return{url:"",members:[],pages:[],loading:!1,noEventLog:!1,artifact:void 0}},created(){this.$watch("$route.query.url",()=>{this.url=this.$route.query.url||"",this.urlUpdated()})},methods:{async urlUpdated(){if(this.noEventLog=!1,this.loading=!1,this.artifact=void 0,this.pages=[],this.members=[],this.$router.push({query:{url:this.url}}),!this.url)return;this.loading=!0;try{this.artifact=await mge(this.url)}catch{this.noEventLog=!0,this.loading=!1;return}let t=!0;this.artifact.pages.on("data",async e=>{e.active=!1,this.pages.push(e),t&&(t=!1,await this.loadPage(e))})},async getMainTypes(t){return await Promise.all(t.filter(e=>e.startsWith("https://www.w3.org/ns/activitystreams#")).map(async e=>await this.getPrefixedProperty(e)))},async getSecondaryTypes(t){return await Promise.all(t.filter(e=>!e.startsWith("https://www.w3.org/ns/activitystreams#")).map(async e=>await this.getPrefixedProperty(e)))},async getPrefixedProperty(t){const e=await fetch(`https://prefixcc-proxy.smessie.com/?q=${encodeURIComponent(t)}`,{method:"HEAD"});return e.url.includes(`/?q=${encodeURIComponent(t)}`)?t:e.url.split("prefixcc-proxy.smessie.com/")[1]},getStyleByMainType(t){switch(t){case"as:Create":return"success";case"as:Remove":return"dark";case"as:Announce":return"warning";case"as:Offer":return"primary";case"as:Accept":return"info";case"as:Reject":return"danger";case"as:Undo":return"secondary";case"as:Update":default:return"light"}},async loadPage(t){this.pages.forEach(r=>r.active=!1),t.active=!0,this.members=[],this.loading=!0;const e=await Sge(this.artifact.url,t.uri,this.artifact.type);e.on("data",async r=>{var n;if(r=await r,r.content.mainTypes=await this.getMainTypes(r.content.types),r.content.secondaryTypes=await this.getSecondaryTypes(r.content.types),r.content.objectTypes=await Promise.all(await((n=r.content)==null?void 0:n.objectTypes.map(async a=>await this.getPrefixedProperty(a))))??[],r.metadata.dateTime){const a=r.metadata.dateTime.split(/\D+/);r.metadata.dateTime=new Date(Date.UTC(a[0],--a[1],a[2],a[3],a[4],a[5],a[6])).toLocaleString()}this.members.push(r),this.loading=!1}),e.on("end",()=>{this.loading=!1})}}},Rge=""+new URL("../forkme_right_gray.png",import.meta.url).href;const fo=t=>(PU("data-v-9ca25a9c"),t=t(),DU(),t),Ige=fo(()=>Lt("a",{href:"https://github.com/MellonScholarlyCommunication/scholarly-browser"},[Lt("img",{loading:"lazy",width:"149",height:"149",src:Rge,class:"attachment-full size-full fork",alt:"Fork me on GitHub","data-recalc-dims":"1"})],-1)),Pge=fo(()=>Lt("h1",null,"Scholarly Browser",-1)),Dge={key:0,class:"status-message"},Nge={key:1,class:"status-message"},jge=fo(()=>Lt("b",null,"No event log found.",-1)),Cge=fo(()=>Lt("b",null,"Actor: ",-1)),Fge=["href"],Mge=fo(()=>Lt("b",null,"Target: ",-1)),Lge=["href"],Bge={key:1},$ge=fo(()=>Lt("b",null,"Context: ",-1)),Uge=["href"],qge={key:1},Vge=fo(()=>Lt("b",null,"Object: ",-1)),Hge=["href"],kge={key:0},Qge=fo(()=>Lt("b",null,"Subject: ",-1)),Gge=["href"],zge=fo(()=>Lt("b",null,"Relationship: ",-1)),Wge=["href"],Xge=fo(()=>Lt("b",null,"Object: ",-1)),Kge=["href"];function Jge(t,e,r,n,a,s){const o=ia("MDBInput"),u=ia("MDBCardText"),c=ia("MDBCardBody"),l=ia("MDBCard"),d=ia("PagesPagination"),h=ia("MDBCardTitle"),f=ia("MDBCardFooter"),p=ia("MDBContainer");return mt(),er(ri,null,[Ige,Qt(p,null,{default:ar(()=>[Pge,Qt(l,null,{default:ar(()=>[Qt(c,{class:"w-100"},{default:ar(()=>[Qt(u,null,{default:ar(()=>[Qt(o,{label:"URL",modelValue:a.url,"onUpdate:modelValue":e[0]||(e[0]=b=>a.url=b),onChange:s.urlUpdated},null,8,["modelValue","onChange"])]),_:1})]),_:1})]),_:1}),Qt(d,{"load-page":s.loadPage,pages:a.pages.sort((b,y)=>b.sort[Qt(c,{class:"w-100"},{default:ar(()=>[Qt(u,null,{default:ar(()=>[a.loading?(mt(),er("p",Dge,"Loading notifications...")):en("",!0),a.noEventLog?(mt(),er("p",Nge,[jge,$c(" Make sure the provided URL contains a ldes:EventStream Link header.")])):en("",!0),(mt(!0),er(ri,null,wE(a.members,(b,y)=>(mt(),si(l,{key:y,border:s.getStyleByMainType(b.content.mainTypes[0])},{default:ar(()=>[Qt(c,{class:"w-100",style:{"padding-bottom":"0"}},{default:ar(()=>[Qt(h,null,{default:ar(()=>[$c(Sr(b.content.mainTypes.join(", ")),1)]),_:2},1024),Qt(h,{subtitle:"",class:"mb-2 text-muted"},{default:ar(()=>[$c(Sr(b.content.secondaryTypes.join(", ")),1)]),_:2},1024),Qt(u,null,{default:ar(()=>[Lt("p",null,[Cge,Lt("a",{href:b.content.actorUrl},Sr(b.content.actorName??b.content.actorUrl),9,Fge)]),Lt("p",null,[Mge,b.content.targetUrl?(mt(),er("a",{key:0,href:b.content.targetUrl},Sr(b.content.targetName??b.content.targetUrl),9,Lge)):(mt(),er("i",Bge,""))]),Lt("p",null,[$ge,b.content.context?(mt(),er("a",{key:0,href:"?url="+b.content.context},Sr(b.content.context),9,Uge)):(mt(),er("i",qge,""))]),Lt("p",null,[Vge,Lt("a",{href:"?url="+b.content.object},Sr(b.content.object),9,Hge)]),Lt("ul",null,[(mt(!0),er(ri,null,wE(b.content.objectTypes,(S,w)=>(mt(),er("li",{key:w},[$c(Sr(S)+" ",1),S==="as:Relationship"?(mt(),er("ul",kge,[Lt("li",null,[Qge,Lt("a",{href:b.content.objectRelationship.subject},Sr(b.content.objectRelationship.subject),9,Gge)]),Lt("li",null,[zge,Lt("a",{href:b.content.objectRelationship.relationship},Sr(b.content.objectRelationship.relationship),9,Wge)]),Lt("li",null,[Xge,Lt("a",{href:b.content.objectRelationship.object},Sr(b.content.objectRelationship.object),9,Kge)])])):en("",!0)]))),128))])]),_:2},1024)]),_:2},1024),Qt(f,{class:"text-muted"},{default:ar(()=>[$c(Sr(b.metadata.dateTime),1)]),_:2},1024)]),_:2},1032,["border"]))),128))]),_:1})]),_:1})]),_:1}),Qt(d,{"load-page":s.loadPage,pages:a.pages.sort((b,y)=>b.sort(mt(),er("main",null,[Qt(Yge)]))}});/*! - * vue-router v4.2.5 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */const md=typeof window<"u";function Zge(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const cr=Object.assign;function fE(t,e){const r={};for(const n in e){const a=e[n];r[n]=ps(a)?a.map(t):t(a)}return r}const bp=()=>{},ps=Array.isArray,e_e=/\/$/,t_e=t=>t.replace(e_e,"");function hE(t,e,r="/"){let n,a={},s="",o="";const u=e.indexOf("#");let c=e.indexOf("?");return u=0&&(c=-1),c>-1&&(n=e.slice(0,c),s=e.slice(c+1,u>-1?u:e.length),a=t(s)),u>-1&&(n=n||e.slice(0,u),o=e.slice(u,e.length)),n=a_e(n??e,r),{fullPath:n+(s&&"?")+s+o,path:n,query:a,hash:o}}function r_e(t,e){const r=e.query?t(e.query):"";return e.path+(r&&"?")+r+(e.hash||"")}function n8(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function n_e(t,e,r){const n=e.matched.length-1,a=r.matched.length-1;return n>-1&&n===a&&hf(e.matched[n],r.matched[a])&&i$(e.params,r.params)&&t(e.query)===t(r.query)&&e.hash===r.hash}function hf(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function i$(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!i_e(t[r],e[r]))return!1;return!0}function i_e(t,e){return ps(t)?i8(t,e):ps(e)?i8(e,t):t===e}function i8(t,e){return ps(e)?t.length===e.length&&t.every((r,n)=>r===e[n]):t.length===1&&t[0]===e}function a_e(t,e){if(t.startsWith("/"))return t;if(!t)return e;const r=e.split("/"),n=t.split("/"),a=n[n.length-1];(a===".."||a===".")&&n.push("");let s=r.length-1,o,u;for(o=0;o1&&s--;else break;return r.slice(0,s).join("/")+"/"+n.slice(o-(o===n.length?1:0)).join("/")}var kp;(function(t){t.pop="pop",t.push="push"})(kp||(kp={}));var mp;(function(t){t.back="back",t.forward="forward",t.unknown=""})(mp||(mp={}));function s_e(t){if(!t)if(md){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),t_e(t)}const o_e=/^[^#]+#/;function u_e(t,e){return t.replace(o_e,"#")+e}function c_e(t,e){const r=document.documentElement.getBoundingClientRect(),n=t.getBoundingClientRect();return{behavior:e.behavior,left:n.left-r.left-(e.left||0),top:n.top-r.top-(e.top||0)}}const eS=()=>({left:window.pageXOffset,top:window.pageYOffset});function l_e(t){let e;if("el"in t){const r=t.el,n=typeof r=="string"&&r.startsWith("#"),a=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a)return;e=c_e(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function a8(t,e){return(history.state?history.state.position-e:-1)+t}const CO=new Map;function d_e(t,e){CO.set(t,e)}function f_e(t){const e=CO.get(t);return CO.delete(t),e}let h_e=()=>location.protocol+"//"+location.host;function a$(t,e){const{pathname:r,search:n,hash:a}=e,s=t.indexOf("#");if(s>-1){let u=a.includes(t.slice(s))?t.slice(s).length:1,c=a.slice(u);return c[0]!=="/"&&(c="/"+c),n8(c,"")}return n8(r,t)+n+a}function p_e(t,e,r,n){let a=[],s=[],o=null;const u=({state:f})=>{const p=a$(t,location),b=r.value,y=e.value;let S=0;if(f){if(r.value=p,e.value=f,o&&o===b){o=null;return}S=y?f.position-y.position:0}else n(p);a.forEach(w=>{w(r.value,b,{delta:S,type:kp.pop,direction:S?S>0?mp.forward:mp.back:mp.unknown})})};function c(){o=r.value}function l(f){a.push(f);const p=()=>{const b=a.indexOf(f);b>-1&&a.splice(b,1)};return s.push(p),p}function d(){const{history:f}=window;f.state&&f.replaceState(cr({},f.state,{scroll:eS()}),"")}function h(){for(const f of s)f();s=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:l,destroy:h}}function s8(t,e,r,n=!1,a=!1){return{back:t,current:e,forward:r,replaced:n,position:window.history.length,scroll:a?eS():null}}function y_e(t){const{history:e,location:r}=window,n={value:a$(t,r)},a={value:e.state};a.value||s(n.value,{back:null,current:n.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function s(c,l,d){const h=t.indexOf("#"),f=h>-1?(r.host&&document.querySelector("base")?t:t.slice(h))+c:h_e()+t+c;try{e[d?"replaceState":"pushState"](l,"",f),a.value=l}catch(p){console.error(p),r[d?"replace":"assign"](f)}}function o(c,l){const d=cr({},e.state,s8(a.value.back,c,a.value.forward,!0),l,{position:a.value.position});s(c,d,!0),n.value=c}function u(c,l){const d=cr({},a.value,e.state,{forward:c,scroll:eS()});s(d.current,d,!0);const h=cr({},s8(n.value,c,null),{position:d.position+1},l);s(c,h,!1),n.value=c}return{location:n,state:a,push:u,replace:o}}function b_e(t){t=s_e(t);const e=y_e(t),r=p_e(t,e.state,e.location,e.replace);function n(s,o=!0){o||r.pauseListeners(),history.go(s)}const a=cr({location:"",base:t,go:n,createHref:u_e.bind(null,t)},e,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function m_e(t){return typeof t=="string"||t&&typeof t=="object"}function s$(t){return typeof t=="string"||typeof t=="symbol"}const mu={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},o$=Symbol("");var o8;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(o8||(o8={}));function pf(t,e){return cr(new Error,{type:t,[o$]:!0},e)}function xo(t,e){return t instanceof Error&&o$ in t&&(e==null||!!(t.type&e))}const u8="[^/]+?",g_e={sensitive:!1,strict:!1,start:!0,end:!0},__e=/[.+*?^${}()[\]/\\]/g;function v_e(t,e){const r=cr({},g_e,e),n=[];let a=r.start?"^":"";const s=[];for(const l of t){const d=l.length?[]:[90];r.strict&&!l.length&&(a+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function S_e(t,e){let r=0;const n=t.score,a=e.score;for(;r0&&e[e.length-1]<0}const T_e={type:0,value:""},E_e=/[a-zA-Z0-9_]/;function O_e(t){if(!t)return[[]];if(t==="/")return[[T_e]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${r})/"${l}": ${p}`)}let r=0,n=r;const a=[];let s;function o(){s&&a.push(s),s=[]}let u=0,c,l="",d="";function h(){l&&(r===0?s.push({type:0,value:l}):r===1||r===2||r===3?(s.length>1&&(c==="*"||c==="+")&&e(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:l,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):e("Invalid state to consume buffer"),l="")}function f(){l+=c}for(;u{o(I)}:bp}function o(d){if(s$(d)){const h=n.get(d);h&&(n.delete(d),r.splice(r.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=r.indexOf(d);h>-1&&(r.splice(h,1),d.record.name&&n.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function u(){return r}function c(d){let h=0;for(;h=0&&(d.record.path!==r[h].record.path||!u$(d,r[h]));)h++;r.splice(h,0,d),d.record.name&&!d8(d)&&n.set(d.record.name,d)}function l(d,h){let f,p={},b,y;if("name"in d&&d.name){if(f=n.get(d.name),!f)throw pf(1,{location:d});y=f.record.name,p=cr(l8(h.params,f.keys.filter(I=>!I.optional).map(I=>I.name)),d.params&&l8(d.params,f.keys.map(I=>I.name))),b=f.stringify(p)}else if("path"in d)b=d.path,f=r.find(I=>I.re.test(b)),f&&(p=f.parse(b),y=f.record.name);else{if(f=h.name?n.get(h.name):r.find(I=>I.re.test(h.path)),!f)throw pf(1,{location:d,currentLocation:h});y=f.record.name,p=cr({},h.params,d.params),b=f.stringify(p)}const S=[];let w=f;for(;w;)S.unshift(w.record),w=w.parent;return{name:y,path:b,params:p,matched:S,meta:P_e(S)}}return t.forEach(d=>s(d)),{addRoute:s,resolve:l,removeRoute:o,getRoutes:u,getRecordMatcher:a}}function l8(t,e){const r={};for(const n of e)n in t&&(r[n]=t[n]);return r}function R_e(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:I_e(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function I_e(t){const e={},r=t.props||!1;if("component"in t)e.default=r;else for(const n in t.components)e[n]=typeof r=="object"?r[n]:r;return e}function d8(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function P_e(t){return t.reduce((e,r)=>cr(e,r.meta),{})}function f8(t,e){const r={};for(const n in t)r[n]=n in e?e[n]:t[n];return r}function u$(t,e){return e.children.some(r=>r===t||u$(t,r))}const c$=/#/g,D_e=/&/g,N_e=/\//g,j_e=/=/g,C_e=/\?/g,l$=/\+/g,F_e=/%5B/g,M_e=/%5D/g,d$=/%5E/g,L_e=/%60/g,f$=/%7B/g,B_e=/%7C/g,h$=/%7D/g,$_e=/%20/g;function LR(t){return encodeURI(""+t).replace(B_e,"|").replace(F_e,"[").replace(M_e,"]")}function U_e(t){return LR(t).replace(f$,"{").replace(h$,"}").replace(d$,"^")}function FO(t){return LR(t).replace(l$,"%2B").replace($_e,"+").replace(c$,"%23").replace(D_e,"%26").replace(L_e,"`").replace(f$,"{").replace(h$,"}").replace(d$,"^")}function q_e(t){return FO(t).replace(j_e,"%3D")}function V_e(t){return LR(t).replace(c$,"%23").replace(C_e,"%3F")}function H_e(t){return t==null?"":V_e(t).replace(N_e,"%2F")}function im(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function k_e(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;as&&FO(s)):[n&&FO(n)]).forEach(s=>{s!==void 0&&(e+=(e.length?"&":"")+r,s!=null&&(e+="="+s))})}return e}function Q_e(t){const e={};for(const r in t){const n=t[r];n!==void 0&&(e[r]=ps(n)?n.map(a=>a==null?null:""+a):n==null?n:""+n)}return e}const G_e=Symbol(""),p8=Symbol(""),BR=Symbol(""),p$=Symbol(""),MO=Symbol("");function Mh(){let t=[];function e(n){return t.push(n),()=>{const a=t.indexOf(n);a>-1&&t.splice(a,1)}}function r(){t=[]}return{add:e,list:()=>t.slice(),reset:r}}function ju(t,e,r,n,a){const s=n&&(n.enterCallbacks[a]=n.enterCallbacks[a]||[]);return()=>new Promise((o,u)=>{const c=h=>{h===!1?u(pf(4,{from:r,to:e})):h instanceof Error?u(h):m_e(h)?u(pf(2,{from:e,to:h})):(s&&n.enterCallbacks[a]===s&&typeof h=="function"&&s.push(h),o())},l=t.call(n&&n.instances[a],e,r,c);let d=Promise.resolve(l);t.length<3&&(d=d.then(c)),d.catch(h=>u(h))})}function pE(t,e,r,n){const a=[];for(const s of t)for(const o in s.components){let u=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(z_e(u)){const l=(u.__vccOpts||u)[e];l&&a.push(ju(l,r,n,s,o))}else{let c=u();a.push(()=>c.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const d=Zge(l)?l.default:l;s.components[o]=d;const f=(d.__vccOpts||d)[e];return f&&ju(f,r,n,s,o)()}))}}return a}function z_e(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function y8(t){const e=cs(BR),r=cs(p$),n=zt(()=>e.resolve(St(t.to))),a=zt(()=>{const{matched:c}=n.value,{length:l}=c,d=c[l-1],h=r.matched;if(!d||!h.length)return-1;const f=h.findIndex(hf.bind(null,d));if(f>-1)return f;const p=b8(c[l-2]);return l>1&&b8(d)===p&&h[h.length-1].path!==p?h.findIndex(hf.bind(null,c[l-2])):f}),s=zt(()=>a.value>-1&&J_e(r.params,n.value.params)),o=zt(()=>a.value>-1&&a.value===r.matched.length-1&&i$(r.params,n.value.params));function u(c={}){return K_e(c)?e[St(t.replace)?"replace":"push"](St(t.to)).catch(bp):Promise.resolve()}return{route:n,href:zt(()=>n.value.href),isActive:s,isExactActive:o,navigate:u}}const W_e=ji({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:y8,setup(t,{slots:e}){const r=dm(y8(t)),{options:n}=cs(BR),a=zt(()=>({[m8(t.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[m8(t.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const s=e.default&&e.default(r);return t.custom?s:g5("a",{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},s)}}}),X_e=W_e;function K_e(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function J_e(t,e){for(const r in e){const n=e[r],a=t[r];if(typeof n=="string"){if(n!==a)return!1}else if(!ps(a)||a.length!==n.length||n.some((s,o)=>s!==a[o]))return!1}return!0}function b8(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const m8=(t,e,r)=>t??e??r,Y_e=ji({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:r}){const n=cs(MO),a=zt(()=>t.route||n.value),s=cs(p8,0),o=zt(()=>{let l=St(s);const{matched:d}=a.value;let h;for(;(h=d[l])&&!h.components;)l++;return l}),u=zt(()=>a.value.matched[o.value]);tb(p8,zt(()=>o.value+1)),tb(G_e,u),tb(MO,a);const c=Si();return Cd(()=>[c.value,u.value,t.name],([l,d,h],[f,p,b])=>{d&&(d.instances[h]=l,p&&p!==d&&l&&l===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),l&&d&&(!p||!hf(d,p)||!f)&&(d.enterCallbacks[h]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=a.value,d=t.name,h=u.value,f=h&&h.components[d];if(!f)return g8(r.default,{Component:f,route:l});const p=h.props[d],b=p?p===!0?l.params:typeof p=="function"?p(l):p:null,S=g5(f,cr({},b,e,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return g8(r.default,{Component:S,route:l})||S}}});function g8(t,e){if(!t)return null;const r=t(e);return r.length===1?r[0]:r}const Z_e=Y_e;function eve(t){const e=x_e(t.routes,t),r=t.parseQuery||k_e,n=t.stringifyQuery||h8,a=t.history,s=Mh(),o=Mh(),u=Mh(),c=_U(mu);let l=mu;md&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=fE.bind(null,he=>""+he),h=fE.bind(null,H_e),f=fE.bind(null,im);function p(he,ve){let me,L;return s$(he)?(me=e.getRecordMatcher(he),L=ve):L=he,e.addRoute(L,me)}function b(he){const ve=e.getRecordMatcher(he);ve&&e.removeRoute(ve)}function y(){return e.getRoutes().map(he=>he.record)}function S(he){return!!e.getRecordMatcher(he)}function w(he,ve){if(ve=cr({},ve||c.value),typeof he=="string"){const v=hE(r,he,ve.path),j=e.resolve({path:v.path},ve),q=a.createHref(v.fullPath);return cr(v,j,{params:f(j.params),hash:im(v.hash),redirectedFrom:void 0,href:q})}let me;if("path"in he)me=cr({},he,{path:hE(r,he.path,ve.path).path});else{const v=cr({},he.params);for(const j in v)v[j]==null&&delete v[j];me=cr({},he,{params:h(v)}),ve.params=h(ve.params)}const L=e.resolve(me,ve),H=he.hash||"";L.params=d(f(L.params));const A=r_e(n,cr({},he,{hash:U_e(H),path:L.path})),m=a.createHref(A);return cr({fullPath:A,hash:H,query:n===h8?Q_e(he.query):he.query||{}},L,{redirectedFrom:void 0,href:m})}function I(he){return typeof he=="string"?hE(r,he,c.value.path):cr({},he)}function O(he,ve){if(l!==he)return pf(8,{from:ve,to:he})}function T(he){return B(he)}function x(he){return T(cr(I(he),{replace:!0}))}function P(he){const ve=he.matched[he.matched.length-1];if(ve&&ve.redirect){const{redirect:me}=ve;let L=typeof me=="function"?me(he):me;return typeof L=="string"&&(L=L.includes("?")||L.includes("#")?L=I(L):{path:L},L.params={}),cr({query:he.query,hash:he.hash,params:"path"in L?{}:he.params},L)}}function B(he,ve){const me=l=w(he),L=c.value,H=he.state,A=he.force,m=he.replace===!0,v=P(me);if(v)return B(cr(I(v),{state:typeof v=="object"?cr({},H,v.state):H,force:A,replace:m}),ve||me);const j=me;j.redirectedFrom=ve;let q;return!A&&n_e(n,L,me)&&(q=pf(16,{to:j,from:L}),we(L,L,!0,!1)),(q?Promise.resolve(q):D(j,L)).catch($=>xo($)?xo($,2)?$:_e($):ne($,j,L)).then($=>{if($){if(xo($,2))return B(cr({replace:m},I($.to),{state:typeof $.to=="object"?cr({},H,$.to.state):H,force:A}),ve||j)}else $=W(j,L,!0,m,H);return F(j,L,$),$})}function Q(he,ve){const me=O(he,ve);return me?Promise.reject(me):Promise.resolve()}function N(he){const ve=ae.values().next().value;return ve&&typeof ve.runWithContext=="function"?ve.runWithContext(he):he()}function D(he,ve){let me;const[L,H,A]=tve(he,ve);me=pE(L.reverse(),"beforeRouteLeave",he,ve);for(const v of L)v.leaveGuards.forEach(j=>{me.push(ju(j,he,ve))});const m=Q.bind(null,he,ve);return me.push(m),Ie(me).then(()=>{me=[];for(const v of s.list())me.push(ju(v,he,ve));return me.push(m),Ie(me)}).then(()=>{me=pE(H,"beforeRouteUpdate",he,ve);for(const v of H)v.updateGuards.forEach(j=>{me.push(ju(j,he,ve))});return me.push(m),Ie(me)}).then(()=>{me=[];for(const v of A)if(v.beforeEnter)if(ps(v.beforeEnter))for(const j of v.beforeEnter)me.push(ju(j,he,ve));else me.push(ju(v.beforeEnter,he,ve));return me.push(m),Ie(me)}).then(()=>(he.matched.forEach(v=>v.enterCallbacks={}),me=pE(A,"beforeRouteEnter",he,ve),me.push(m),Ie(me))).then(()=>{me=[];for(const v of o.list())me.push(ju(v,he,ve));return me.push(m),Ie(me)}).catch(v=>xo(v,8)?v:Promise.reject(v))}function F(he,ve,me){u.list().forEach(L=>N(()=>L(he,ve,me)))}function W(he,ve,me,L,H){const A=O(he,ve);if(A)return A;const m=ve===mu,v=md?history.state:{};me&&(L||m?a.replace(he.fullPath,cr({scroll:m&&v&&v.scroll},H)):a.push(he.fullPath,H)),c.value=he,we(he,ve,me,m),_e()}let z;function M(){z||(z=a.listen((he,ve,me)=>{if(!Ae.listening)return;const L=w(he),H=P(L);if(H){B(cr(H,{replace:!0}),L).catch(bp);return}l=L;const A=c.value;md&&d_e(a8(A.fullPath,me.delta),eS()),D(L,A).catch(m=>xo(m,12)?m:xo(m,2)?(B(m.to,L).then(v=>{xo(v,20)&&!me.delta&&me.type===kp.pop&&a.go(-1,!1)}).catch(bp),Promise.reject()):(me.delta&&a.go(-me.delta,!1),ne(m,L,A))).then(m=>{m=m||W(L,A,!1),m&&(me.delta&&!xo(m,8)?a.go(-me.delta,!1):me.type===kp.pop&&xo(m,20)&&a.go(-1,!1)),F(L,A,m)}).catch(bp)}))}let C=Mh(),V=Mh(),ie;function ne(he,ve,me){_e(he);const L=V.list();return L.length?L.forEach(H=>H(he,ve,me)):console.error(he),Promise.reject(he)}function fe(){return ie&&c.value!==mu?Promise.resolve():new Promise((he,ve)=>{C.add([he,ve])})}function _e(he){return ie||(ie=!he,M(),C.list().forEach(([ve,me])=>he?me(he):ve()),C.reset()),he}function we(he,ve,me,L){const{scrollBehavior:H}=t;if(!md||!H)return Promise.resolve();const A=!me&&f_e(a8(he.fullPath,0))||(L||!me)&&history.state&&history.state.scroll||null;return Q8().then(()=>H(he,ve,A)).then(m=>m&&l_e(m)).catch(m=>ne(m,he,ve))}const Ce=he=>a.go(he);let oe;const ae=new Set,Ae={currentRoute:c,listening:!0,addRoute:p,removeRoute:b,hasRoute:S,getRoutes:y,resolve:w,options:t,push:T,replace:x,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:o.add,afterEach:u.add,onError:V.add,isReady:fe,install(he){const ve=this;he.component("RouterLink",X_e),he.component("RouterView",Z_e),he.config.globalProperties.$router=ve,Object.defineProperty(he.config.globalProperties,"$route",{enumerable:!0,get:()=>St(c)}),md&&!oe&&c.value===mu&&(oe=!0,T(a.location).catch(H=>{}));const me={};for(const H in mu)Object.defineProperty(me,H,{get:()=>c.value[H],enumerable:!0});he.provide(BR,ve),he.provide(p$,M8(me)),he.provide(MO,c);const L=he.unmount;ae.add(he),he.unmount=function(){ae.delete(he),ae.size<1&&(l=mu,z&&z(),z=null,c.value=mu,oe=!1,ie=!1),L()}}};function Ie(he){return he.reduce((ve,me)=>ve.then(()=>N(me)),Promise.resolve())}return Ae}function tve(t,e){const r=[],n=[],a=[],s=Math.max(e.matched.length,t.matched.length);for(let o=0;ohf(l,u))?n.push(u):r.push(u));const c=t.matched[o];c&&(e.matched.find(l=>hf(l,c))||a.push(c))}return[r,n,a]}const rve=eve({history:b_e("/scholarly-browser/"),routes:[{path:"/",component:n$,props:!0}]}),y$=Wq(n$);y$.use(rve);y$.mount("#app"); diff --git a/assets/index-b307798a.css b/assets/index-9c895cd1.css similarity index 99% rename from assets/index-b307798a.css rename to assets/index-9c895cd1.css index 20d805a..512e2e9 100644 --- a/assets/index-b307798a.css +++ b/assets/index-9c895cd1.css @@ -20,4 +20,4 @@ * Released under the MIT license * http://opensource.org/licenses/MIT * -*/#mdb-table-flag tr{cursor:pointer}.mdb-flag-selected{border-top-left-radius:5px;border-top-right-radius:5px;text-align:center;max-width:150px;margin:10px auto 0}.mdb-selected-flag-text{margin:0 auto;max-width:150px}i.flag:not(.icon){display:inline-block;width:16px;height:11px;margin:0 .5em 0 0;line-height:11px;text-decoration:inherit;vertical-align:baseline;backface-visibility:hidden}i.flag:before{display:inline-block;width:16px;height:11px;content:"";background:url(https://mdbootstrap.com/img/svg/flags.png) no-repeat -108px -1976px}i.flag-ad:before,i.flag-andorra:before{background-position:0 0!important}i.flag-ae:before,i.flag-united-arab-emirates:before,i.flag-uae:before{background-position:0 -26px!important}i.flag-af:before,i.flag-afghanistan:before{background-position:0 -52px!important}i.flag-ag:before,i.flag-antigua:before{background-position:0 -78px!important}i.flag-ai:before,i.flag-anguilla:before{background-position:0 -104px!important}i.flag-al:before,i.flag-albania:before{background-position:0 -130px!important}i.flag-am:before,i.flag-armenia:before{background-position:0 -156px!important}i.flag-an:before,i.flag-netherlands-antilles:before{background-position:0 -182px!important}i.flag-ao:before,i.flag-angola:before{background-position:0 -208px!important}i.flag-ar:before,i.flag-argentina:before{background-position:0 -234px!important}i.flag-as:before,i.flag-american-samoa:before{background-position:0 -260px!important}i.flag-at:before,i.flag-austria:before{background-position:0 -286px!important}i.flag-au:before,i.flag-australia:before{background-position:0 -312px!important}i.flag-aw:before,i.flag-aruba:before{background-position:0 -338px!important}i.flag-ax:before,i.flag-aland-islands:before{background-position:0 -364px!important}i.flag-az:before,i.flag-azerbaijan:before{background-position:0 -390px!important}i.flag-ba:before,i.flag-bosnia:before{background-position:0 -416px!important}i.flag-bb:before,i.flag-barbados:before{background-position:0 -442px!important}i.flag-bd:before,i.flag-bangladesh:before{background-position:0 -468px!important}i.flag-be:before,i.flag-belgium:before{background-position:0 -494px!important}i.flag-bf:before,i.flag-burkina-faso:before{background-position:0 -520px!important}i.flag-bg:before,i.flag-bulgaria:before{background-position:0 -546px!important}i.flag-bh:before,i.flag-bahrain:before{background-position:0 -572px!important}i.flag-bi:before,i.flag-burundi:before{background-position:0 -598px!important}i.flag-bj:before,i.flag-benin:before{background-position:0 -624px!important}i.flag-bm:before,i.flag-bermuda:before{background-position:0 -650px!important}i.flag-bn:before,i.flag-brunei:before{background-position:0 -676px!important}i.flag-bo:before,i.flag-bolivia:before{background-position:0 -702px!important}i.flag-br:before,i.flag-brazil:before{background-position:0 -728px!important}i.flag-bs:before,i.flag-bahamas:before{background-position:0 -754px!important}i.flag-bt:before,i.flag-bhutan:before{background-position:0 -780px!important}i.flag-bv:before,i.flag-bouvet-island:before{background-position:0 -806px!important}i.flag-bw:before,i.flag-botswana:before{background-position:0 -832px!important}i.flag-by:before,i.flag-belarus:before{background-position:0 -858px!important}i.flag-bz:before,i.flag-belize:before{background-position:0 -884px!important}i.flag-ca:before,i.flag-canada:before{background-position:0 -910px!important}i.flag-cc:before,i.flag-cocos-islands:before{background-position:0 -962px!important}i.flag-cd:before,i.flag-congo:before{background-position:0 -988px!important}i.flag-cf:before,i.flag-central-african-republic:before{background-position:0 -1014px!important}i.flag-cg:before,i.flag-congo-brazzaville:before{background-position:0 -1040px!important}i.flag-ch:before,i.flag-switzerland:before{background-position:0 -1066px!important}i.flag-ci:before,i.flag-cote-divoire:before{background-position:0 -1092px!important}i.flag-ck:before,i.flag-cook-islands:before{background-position:0 -1118px!important}i.flag-cl:before,i.flag-chile:before{background-position:0 -1144px!important}i.flag-cm:before,i.flag-cameroon:before{background-position:0 -1170px!important}i.flag-cn:before,i.flag-china:before{background-position:0 -1196px!important}i.flag-co:before,i.flag-colombia:before{background-position:0 -1222px!important}i.flag-cr:before,i.flag-costa-rica:before{background-position:0 -1248px!important}i.flag-cs:before,i.flag-serbia:before{background-position:0 -1274px!important}i.flag-cu:before,i.flag-cuba:before{background-position:0 -1300px!important}i.flag-cv:before,i.flag-cape-verde:before{background-position:0 -1326px!important}i.flag-cx:before,i.flag-christmas-island:before{background-position:0 -1352px!important}i.flag-cy:before,i.flag-cyprus:before{background-position:0 -1378px!important}i.flag-cz:before,i.flag-czech-republic:before{background-position:0 -1404px!important}i.flag-de:before,i.flag-germany:before{background-position:0 -1430px!important}i.flag-dj:before,i.flag-djibouti:before{background-position:0 -1456px!important}i.flag-dk:before,i.flag-denmark:before{background-position:0 -1482px!important}i.flag-dm:before,i.flag-dominica:before{background-position:0 -1508px!important}i.flag-do:before,i.flag-dominican-republic:before{background-position:0 -1534px!important}i.flag-dz:before,i.flag-algeria:before{background-position:0 -1560px!important}i.flag-ec:before,i.flag-ecuador:before{background-position:0 -1586px!important}i.flag-ee:before,i.flag-estonia:before{background-position:0 -1612px!important}i.flag-eg:before,i.flag-egypt:before{background-position:0 -1638px!important}i.flag-eh:before,i.flag-western-sahara:before{background-position:0 -1664px!important}i.flag-gb-eng:before,i.flag-england:before{background-position:0 -1690px!important}i.flag-er:before,i.flag-eritrea:before{background-position:0 -1716px!important}i.flag-es:before,i.flag-spain:before{background-position:0 -1742px!important}i.flag-et:before,i.flag-ethiopia:before{background-position:0 -1768px!important}i.flag-eu:before,i.flag-european-union:before{background-position:0 -1794px!important}i.flag-fi:before,i.flag-finland:before{background-position:0 -1846px!important}i.flag-fj:before,i.flag-fiji:before{background-position:0 -1872px!important}i.flag-fk:before,i.flag-falkland-islands:before{background-position:0 -1898px!important}i.flag-fm:before,i.flag-micronesia:before{background-position:0 -1924px!important}i.flag-fo:before,i.flag-faroe-islands:before{background-position:0 -1950px!important}i.flag-fr:before,i.flag-france:before{background-position:0 -1976px!important}i.flag-ga:before,i.flag-gabon:before{background-position:-36px 0!important}i.flag-gb:before,i.flag-uk:before,i.flag-united-kingdom:before{background-position:-36px -26px!important}i.flag-gd:before,i.flag-grenada:before{background-position:-36px -52px!important}i.flag-ge:before,i.flag-georgia:before{background-position:-36px -78px!important}i.flag-gf:before,i.flag-french-guiana:before{background-position:-36px -104px!important}i.flag-gh:before,i.flag-ghana:before{background-position:-36px -130px!important}i.flag-gi:before,i.flag-gibraltar:before{background-position:-36px -156px!important}i.flag-gl:before,i.flag-greenland:before{background-position:-36px -182px!important}i.flag-gm:before,i.flag-gambia:before{background-position:-36px -208px!important}i.flag-gn:before,i.flag-guinea:before{background-position:-36px -234px!important}i.flag-gp:before,i.flag-guadeloupe:before{background-position:-36px -260px!important}i.flag-gq:before,i.flag-equatorial-guinea:before{background-position:-36px -286px!important}i.flag-gr:before,i.flag-greece:before{background-position:-36px -312px!important}i.flag-gs:before,i.flag-sandwich-islands:before{background-position:-36px -338px!important}i.flag-gt:before,i.flag-guatemala:before{background-position:-36px -364px!important}i.flag-gu:before,i.flag-guam:before{background-position:-36px -390px!important}i.flag-gw:before,i.flag-guinea-bissau:before{background-position:-36px -416px!important}i.flag-gy:before,i.flag-guyana:before{background-position:-36px -442px!important}i.flag-hk:before,i.flag-hong-kong:before{background-position:-36px -468px!important}i.flag-hm:before,i.flag-heard-island:before{background-position:-36px -494px!important}i.flag-hn:before,i.flag-honduras:before{background-position:-36px -520px!important}i.flag-hr:before,i.flag-croatia:before{background-position:-36px -546px!important}i.flag-ht:before,i.flag-haiti:before{background-position:-36px -572px!important}i.flag-hu:before,i.flag-hungary:before{background-position:-36px -598px!important}i.flag-id:before,i.flag-indonesia:before{background-position:-36px -624px!important}i.flag-ie:before,i.flag-ireland:before{background-position:-36px -650px!important}i.flag-il:before,i.flag-israel:before{background-position:-36px -676px!important}i.flag-in:before,i.flag-india:before{background-position:-36px -702px!important}i.flag-io:before,i.flag-indian-ocean-territory:before{background-position:-36px -728px!important}i.flag-iq:before,i.flag-iraq:before{background-position:-36px -754px!important}i.flag-ir:before,i.flag-iran:before{background-position:-36px -780px!important}i.flag-is:before,i.flag-iceland:before{background-position:-36px -806px!important}i.flag-it:before,i.flag-italy:before{background-position:-36px -832px!important}i.flag-jm:before,i.flag-jamaica:before{background-position:-36px -858px!important}i.flag-jo:before,i.flag-jordan:before{background-position:-36px -884px!important}i.flag-jp:before,i.flag-japan:before{background-position:-36px -910px!important}i.flag-ke:before,i.flag-kenya:before{background-position:-36px -936px!important}i.flag-kg:before,i.flag-kyrgyzstan:before{background-position:-36px -962px!important}i.flag-kh:before,i.flag-cambodia:before{background-position:-36px -988px!important}i.flag-ki:before,i.flag-kiribati:before{background-position:-36px -1014px!important}i.flag-km:before,i.flag-comoros:before{background-position:-36px -1040px!important}i.flag-kn:before,i.flag-saint-kitts-and-nevis:before{background-position:-36px -1066px!important}i.flag-kp:before,i.flag-north-korea:before{background-position:-36px -1092px!important}i.flag-kr:before,i.flag-south-korea:before{background-position:-36px -1118px!important}i.flag-kw:before,i.flag-kuwait:before{background-position:-36px -1144px!important}i.flag-ky:before,i.flag-cayman-islands:before{background-position:-36px -1170px!important}i.flag-kz:before,i.flag-kazakhstan:before{background-position:-36px -1196px!important}i.flag-la:before,i.flag-laos:before{background-position:-36px -1222px!important}i.flag-lb:before,i.flag-lebanon:before{background-position:-36px -1248px!important}i.flag-lc:before,i.flag-saint-lucia:before{background-position:-36px -1274px!important}i.flag-li:before,i.flag-liechtenstein:before{background-position:-36px -1300px!important}i.flag-lk:before,i.flag-sri-lanka:before{background-position:-36px -1326px!important}i.flag-lr:before,i.flag-liberia:before{background-position:-36px -1352px!important}i.flag-ls:before,i.flag-lesotho:before{background-position:-36px -1378px!important}i.flag-lt:before,i.flag-lithuania:before{background-position:-36px -1404px!important}i.flag-lu:before,i.flag-luxembourg:before{background-position:-36px -1430px!important}i.flag-lv:before,i.flag-latvia:before{background-position:-36px -1456px!important}i.flag-ly:before,i.flag-libya:before{background-position:-36px -1482px!important}i.flag-ma:before,i.flag-morocco:before{background-position:-36px -1508px!important}i.flag-mc:before,i.flag-monaco:before{background-position:-36px -1534px!important}i.flag-md:before,i.flag-moldova:before{background-position:-36px -1560px!important}i.flag-me:before,i.flag-montenegro:before{background-position:-36px -1586px!important}i.flag-mg:before,i.flag-madagascar:before{background-position:-36px -1613px!important}i.flag-mh:before,i.flag-marshall-islands:before{background-position:-36px -1639px!important}i.flag-mk:before,i.flag-macedonia:before{background-position:-36px -1665px!important}i.flag-ml:before,i.flag-mali:before{background-position:-36px -1691px!important}i.flag-mm:before,i.flag-myanmar:before,i.flag-burma:before{background-position:-73px -1821px!important}i.flag-mn:before,i.flag-mongolia:before{background-position:-36px -1743px!important}i.flag-mo:before,i.flag-macau:before{background-position:-36px -1769px!important}i.flag-mp:before,i.flag-northern-mariana-islands:before{background-position:-36px -1795px!important}i.flag-mq:before,i.flag-martinique:before{background-position:-36px -1821px!important}i.flag-mr:before,i.flag-mauritania:before{background-position:-36px -1847px!important}i.flag-ms:before,i.flag-montserrat:before{background-position:-36px -1873px!important}i.flag-mt:before,i.flag-malta:before{background-position:-36px -1899px!important}i.flag-mu:before,i.flag-mauritius:before{background-position:-36px -1925px!important}i.flag-mv:before,i.flag-maldives:before{background-position:-36px -1951px!important}i.flag-mw:before,i.flag-malawi:before{background-position:-36px -1977px!important}i.flag-mx:before,i.flag-mexico:before{background-position:-72px 0!important}i.flag-my:before,i.flag-malaysia:before{background-position:-72px -26px!important}i.flag-mz:before,i.flag-mozambique:before{background-position:-72px -52px!important}i.flag-na:before,i.flag-namibia:before{background-position:-72px -78px!important}i.flag-nc:before,i.flag-new-caledonia:before{background-position:-72px -104px!important}i.flag-ne:before,i.flag-niger:before{background-position:-72px -130px!important}i.flag-nf:before,i.flag-norfolk-island:before{background-position:-72px -156px!important}i.flag-ng:before,i.flag-nigeria:before{background-position:-72px -182px!important}i.flag-ni:before,i.flag-nicaragua:before{background-position:-72px -208px!important}i.flag-nl:before,i.flag-netherlands:before{background-position:-72px -234px!important}i.flag-no:before,i.flag-norway:before{background-position:-72px -260px!important}i.flag-np:before,i.flag-nepal:before{background-position:-72px -286px!important}i.flag-nr:before,i.flag-nauru:before{background-position:-72px -312px!important}i.flag-nu:before,i.flag-niue:before{background-position:-72px -338px!important}i.flag-nz:before,i.flag-new-zealand:before{background-position:-72px -364px!important}i.flag-om:before,i.flag-oman:before{background-position:-72px -390px!important}i.flag-pa:before,i.flag-panama:before{background-position:-72px -416px!important}i.flag-pe:before,i.flag-peru:before{background-position:-72px -442px!important}i.flag-pf:before,i.flag-french-polynesia:before{background-position:-72px -468px!important}i.flag-pg:before,i.flag-new-guinea:before{background-position:-72px -494px!important}i.flag-ph:before,i.flag-philippines:before{background-position:-72px -520px!important}i.flag-pk:before,i.flag-pakistan:before{background-position:-72px -546px!important}i.flag-pl:before,i.flag-poland:before{background-position:-72px -572px!important}i.flag-pm:before,i.flag-saint-pierre:before{background-position:-72px -598px!important}i.flag-pn:before,i.flag-pitcairn-islands:before{background-position:-72px -624px!important}i.flag-pr:before,i.flag-puerto-rico:before{background-position:-72px -650px!important}i.flag-ps:before,i.flag-palestine:before{background-position:-72px -676px!important}i.flag-pt:before,i.flag-portugal:before{background-position:-72px -702px!important}i.flag-pw:before,i.flag-palau:before{background-position:-72px -728px!important}i.flag-py:before,i.flag-paraguay:before{background-position:-72px -754px!important}i.flag-qa:before,i.flag-qatar:before{background-position:-72px -780px!important}i.flag-re:before,i.flag-reunion:before{background-position:-72px -806px!important}i.flag-ro:before,i.flag-romania:before{background-position:-72px -832px!important}i.flag-rs:before,i.flag-serbia:before{background-position:-72px -858px!important}i.flag-ru:before,i.flag-russia:before{background-position:-72px -884px!important}i.flag-rw:before,i.flag-rwanda:before{background-position:-72px -910px!important}i.flag-sa:before,i.flag-saudi-arabia:before{background-position:-72px -936px!important}i.flag-sb:before,i.flag-solomon-islands:before{background-position:-72px -962px!important}i.flag-sc:before,i.flag-seychelles:before{background-position:-72px -988px!important}i.flag-gb-sct:before,i.flag-scotland:before{background-position:-72px -1014px!important}i.flag-sd:before,i.flag-sudan:before{background-position:-72px -1040px!important}i.flag-se:before,i.flag-sweden:before{background-position:-72px -1066px!important}i.flag-sg:before,i.flag-singapore:before{background-position:-72px -1092px!important}i.flag-sh:before,i.flag-saint-helena:before{background-position:-72px -1118px!important}i.flag-si:before,i.flag-slovenia:before{background-position:-72px -1144px!important}i.flag-sj:before,i.flag-svalbard:before,i.flag-jan-mayen:before{background-position:-72px -1170px!important}i.flag-sk:before,i.flag-slovakia:before{background-position:-72px -1196px!important}i.flag-sl:before,i.flag-sierra-leone:before{background-position:-72px -1222px!important}i.flag-sm:before,i.flag-san-marino:before{background-position:-72px -1248px!important}i.flag-sn:before,i.flag-senegal:before{background-position:-72px -1274px!important}i.flag-so:before,i.flag-somalia:before{background-position:-72px -1300px!important}i.flag-sr:before,i.flag-suriname:before{background-position:-72px -1326px!important}i.flag-st:before,i.flag-sao-tome:before{background-position:-72px -1352px!important}i.flag-sv:before,i.flag-el-salvador:before{background-position:-72px -1378px!important}i.flag-sy:before,i.flag-syria:before{background-position:-72px -1404px!important}i.flag-sz:before,i.flag-swaziland:before{background-position:-72px -1430px!important}i.flag-tc:before,i.flag-caicos-islands:before{background-position:-72px -1456px!important}i.flag-td:before,i.flag-chad:before{background-position:-72px -1482px!important}i.flag-tf:before,i.flag-french-territories:before{background-position:-72px -1508px!important}i.flag-tg:before,i.flag-togo:before{background-position:-72px -1534px!important}i.flag-th:before,i.flag-thailand:before{background-position:-72px -1560px!important}i.flag-tj:before,i.flag-tajikistan:before{background-position:-72px -1586px!important}i.flag-tk:before,i.flag-tokelau:before{background-position:-72px -1612px!important}i.flag-tl:before,i.flag-timorleste:before{background-position:-72px -1638px!important}i.flag-tm:before,i.flag-turkmenistan:before{background-position:-72px -1664px!important}i.flag-tn:before,i.flag-tunisia:before{background-position:-72px -1690px!important}i.flag-to:before,i.flag-tonga:before{background-position:-72px -1716px!important}i.flag-tr:before,i.flag-turkey:before{background-position:-72px -1742px!important}i.flag-tt:before,i.flag-trinidad:before{background-position:-72px -1768px!important}i.flag-tv:before,i.flag-tuvalu:before{background-position:-72px -1794px!important}i.flag-tw:before,i.flag-taiwan:before{background-position:-72px -1820px!important}i.flag-tz:before,i.flag-tanzania:before{background-position:-72px -1846px!important}i.flag-ua:before,i.flag-ukraine:before{background-position:-72px -1872px!important}i.flag-ug:before,i.flag-uganda:before{background-position:-72px -1898px!important}i.flag-um:before,i.flag-us-minor-islands:before{background-position:-72px -1924px!important}i.flag-us:before,i.flag-america:before,i.flag-united-states:before{background-position:-72px -1950px!important}i.flag-uy:before,i.flag-uruguay:before{background-position:-72px -1976px!important}i.flag-uz:before,i.flag-uzbekistan:before{background-position:-108px 0!important}i.flag-va:before,i.flag-vatican-city:before{background-position:-108px -26px!important}i.flag-vc:before,i.flag-saint-vincent:before{background-position:-108px -52px!important}i.flag-ve:before,i.flag-venezuela:before{background-position:-108px -78px!important}i.flag-vg:before,i.flag-british-virgin-islands:before{background-position:-108px -104px!important}i.flag-vi:before,i.flag-us-virgin-islands:before{background-position:-108px -130px!important}i.flag-vn:before,i.flag-vietnam:before{background-position:-108px -156px!important}i.flag-vu:before,i.flag-vanuatu:before{background-position:-108px -182px!important}i.flag-gb-wls:before,i.flag-wales:before{background-position:-108px -208px!important}i.flag-wf:before,i.flag-wallis-and-futuna:before{background-position:-108px -234px!important}i.flag-ws:before,i.flag-samoa:before{background-position:-108px -260px!important}i.flag-ye:before,i.flag-yemen:before{background-position:-108px -286px!important}i.flag-yt:before,i.flag-mayotte:before{background-position:-108px -312px!important}i.flag-za:before,i.flag-south-africa:before{background-position:-108px -338px!important}i.flag-zm:before,i.flag-zambia:before{background-position:-108px -364px!important}i.flag-zw:before,i.flag-zimbabwe:before{background-position:-108px -390px!important}.bg-fixed{background-attachment:fixed}.bg-image{position:relative;overflow:hidden;background-repeat:no-repeat;background-size:cover;background-position:center center}.mask{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:hidden;background-attachment:fixed}.hover-overlay .mask{--mdb-image-hover-transition: all .3s ease-in-out;opacity:0;transition:var(--mdb-image-hover-transition)}.hover-overlay .mask:hover{opacity:1}.hover-zoom{--mdb-image-hover-zoom-transition: all .3s linear;--mdb-image-hover-zoom-transform: scale(1.1)}.hover-zoom img,.hover-zoom video{transition:var(--mdb-image-hover-zoom-transition)}.hover-zoom:hover img,.hover-zoom:hover video{transform:var(--mdb-image-hover-zoom-transform)}.hover-shadow,.card.hover-shadow,.hover-shadow-soft,.card.hover-shadow-soft{--mdb-image-hover-shadow-transition: all .3s ease-in-out;transition:var(--mdb-image-hover-shadow-transition)}.hover-shadow:hover,.card.hover-shadow:hover,.hover-shadow-soft:hover,.card.hover-shadow-soft:hover{transition:var(--mdb-image-hover-shadow-transition)}.hover-shadow,.card.hover-shadow{--mdb-image-hover-shadow-box-shadow: 0 2px 15px -3px rgba(0, 0, 0, .16), 0 10px 20px -2px rgba(0, 0, 0, .1);box-shadow:none}.hover-shadow:hover,.card.hover-shadow:hover{box-shadow:var(--mdb-image-hover-shadow-box-shadow)}.hover-shadow-soft,.card.hover-shadow-soft{--mdb-image-hover-shadow-box-shadow-soft: 0 2px 25px -5px rgba(0, 0, 0, .07), 0 25px 21px -5px rgba(0, 0, 0, .04);box-shadow:none}.hover-shadow-soft:hover,.card.hover-shadow-soft:hover{box-shadow:var(--mdb-image-hover-shadow-box-shadow-soft)}.form-control{min-height:auto;padding:4.5px 12px 3.68px;transition:all .1s linear;box-shadow:none}.form-control:focus{box-shadow:none;transition:all .1s linear;border-color:#3b71ca;box-shadow:inset 0 0 0 1px #3b71ca}.form-control.form-control-sm{font-size:.775rem;line-height:1.5}.form-control.form-control-lg{line-height:2.15;border-radius:.25rem}.form-outline{position:relative;width:100%}.form-outline .form-helper{width:100%;position:absolute;font-size:.875em;color:#757575}.form-outline .form-helper .form-counter{text-align:right}.form-outline .trailing{position:absolute;right:10px;left:initial;top:50%;transform:translateY(-50%);pointer-events:none}.form-outline .form-icon-trailing{padding-right:2rem!important}.form-outline .form-control{min-height:auto;padding:.32rem .75rem;border:0;background:rgba(0,0,0,0);transition:all .2s linear}.form-outline .form-control~.form-label{position:absolute;top:0;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;left:.75rem;padding-top:.37rem;pointer-events:none;transform-origin:0 0;transition:all .2s ease-out;color:#0009;margin-bottom:0}.form-outline .form-control~.form-notch{display:flex;position:absolute;left:0;top:0;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}.form-outline .form-control~.form-notch div{pointer-events:none;border:1px solid;border-color:#bdbdbd;box-sizing:border-box;background:rgba(0,0,0,0);transition:all .2s linear}.form-outline .form-control~.form-notch .form-notch-leading{left:0;top:0;height:100%;width:.5rem;border-right:none;border-radius:.25rem 0 0 .25rem}.form-outline .form-control~.form-notch .form-notch-middle{flex:0 0 auto;width:auto;max-width:calc(100% - 1rem);height:100%;border-right:none;border-left:none}.form-outline .form-control~.form-notch .form-notch-trailing{flex-grow:1;height:100%;border-left:none;border-radius:0 .25rem .25rem 0}.form-outline .form-control:not(.placeholder-active)::placeholder{opacity:0}.form-outline .form-control:focus::placeholder,.form-outline .form-control.active::placeholder{opacity:1}.form-outline .form-control:focus{box-shadow:none!important}.form-outline .form-control:focus~.form-label,.form-outline .form-control.active~.form-label{transform:translateY(-1rem) translateY(.1rem) scale(.8)}.form-outline .form-control:focus~.form-label{color:#3b71ca}.form-outline .form-control:focus~.form-notch .form-notch-middle,.form-outline .form-control.active~.form-notch .form-notch-middle{border-right:none;border-left:none;border-top:1px solid rgba(0,0,0,0)}.form-outline .form-control:focus~.form-notch .form-notch-middle{border-color:#3b71ca;box-shadow:0 1px #3b71ca;border-top:1px solid rgba(0,0,0,0)}.form-outline .form-control:focus~.form-notch .form-notch-leading,.form-outline .form-control.active~.form-notch .form-notch-leading{border-right:none}.form-outline .form-control:focus~.form-notch .form-notch-leading{border-color:#3b71ca;box-shadow:-1px 0 #3b71ca,0 1px #3b71ca,0 -1px #3b71ca}.form-outline .form-control:focus~.form-notch .form-notch-trailing,.form-outline .form-control.active~.form-notch .form-notch-trailing{border-left:none}.form-outline .form-control:focus~.form-notch .form-notch-trailing{border-color:#3b71ca;box-shadow:1px 0 #3b71ca,0 -1px #3b71ca,0 1px #3b71ca}.form-outline .form-control:disabled,.form-outline .form-control.disabled,.form-outline .form-control[readonly]{background-color:#e9ecef}.form-outline .form-control.form-control-lg{font-size:1rem;line-height:2.15}.form-outline .form-control.form-control-lg~.form-label{padding-top:.7rem}.form-outline .form-control.form-control-lg:focus~.form-label,.form-outline .form-control.form-control-lg.active~.form-label{transform:translateY(-1.25rem) translateY(.1rem) scale(.8)}.form-outline .form-control.form-control-sm{padding-top:.32rem;padding-bottom:.32rem;font-size:.775rem;line-height:1.5}.form-outline .form-control.form-control-sm~.form-label{padding-top:.33rem;font-size:.775rem}.form-outline .form-control.form-control-sm:focus~.form-label,.form-outline .form-control.form-control-sm.active~.form-label{transform:translateY(-.85rem) translateY(.1rem) scale(.8)}.form-outline.form-white .form-control{color:#fff}.form-outline.form-white .form-control~.form-label{color:#fbfbfb}.form-outline.form-white .form-control~.form-notch div{border-color:#fbfbfb}.form-outline.form-white .form-control:focus~.form-label{color:#fff}.form-outline.form-white .form-control:focus~.form-notch .form-notch-middle{border-color:#fff;box-shadow:0 1px #fff;border-top:1px solid rgba(0,0,0,0)}.form-outline.form-white .form-control:focus~.form-notch .form-notch-leading{border-color:#fff;box-shadow:-1px 0 #fff,0 1px #fff,0 -1px #fff}.form-outline.form-white .form-control:focus~.form-notch .form-notch-trailing{border-color:#fff;box-shadow:1px 0 #fff,0 -1px #fff,0 1px #fff}.form-outline.form-white .form-control::placeholder{color:#ffffffb3}.form-outline.form-white .form-control:disabled,.form-outline.form-white .form-control.disabled,.form-outline.form-white .form-control[readonly]{background-color:#ffffff73}.select-input.form-control[readonly]:not([disabled]){background-color:#0000}.form-select{transition:all .2s linear}.form-select:focus{border-color:#3b71ca;outline:0;box-shadow:inset 0 0 0 1px #3b71ca}.form-check{min-height:1.5rem}.form-check-input{position:relative;width:1.125rem;height:1.125rem;background-color:#fff;border:.125rem solid rgba(0,0,0,.25)}.form-check-input:before{content:"";position:absolute;box-shadow:0 0 0 13px #0000;border-radius:50%;width:.875rem;height:.875rem;background-color:#0000;opacity:0;pointer-events:none;transform:scale(0)}.form-check-input:hover{cursor:pointer}.form-check-input:hover:before{opacity:.04;box-shadow:0 0 0 13px #0009}.form-check-input:focus{box-shadow:none;border-color:#00000040;transition:border-color .2s}.form-check-input:focus:before{opacity:.12;box-shadow:0 0 0 13px #0009;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-check-input:checked{border-color:#3b71ca}.form-check-input:checked:before{opacity:.16}.form-check-input:checked:after{content:"";position:absolute}.form-check-input:checked:focus{border-color:#3b71ca}.form-check-input:checked:focus:before{box-shadow:0 0 0 13px #3b71ca;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-check-input:indeterminate:focus:before{box-shadow:0 0 0 13px #3b71ca}.form-check-input[type=checkbox]{border-radius:.25rem;margin-top:.19em;margin-right:6px}.form-check-input[type=checkbox]:focus:after{content:"";position:absolute;width:.875rem;height:.875rem;z-index:1;display:block;border-radius:0;background-color:#fff}.form-check-input[type=checkbox]:checked{background-image:none;background-color:#3b71ca}.form-check-input[type=checkbox]:checked:after{display:block;transform:rotate(45deg);border-width:.125rem;border-color:#fff;width:.375rem;height:.8125rem;border-style:solid;border-top:0;border-left:0;margin-left:.25rem;margin-top:-1px;background-color:#0000}.form-check-input[type=checkbox]:checked:focus{background-color:#3b71ca}.form-check-input[type=checkbox]:indeterminate{border-color:#3b71ca}.form-check-input[type=radio]{border-radius:50%;width:1.25rem;height:1.25rem;margin-top:.125em;margin-right:4px}.form-check-input[type=radio]:before{width:1rem;height:1rem}.form-check-input[type=radio]:after{content:"";position:absolute;width:1rem;height:1rem;z-index:1;display:block;border-radius:50%;background-color:#fff}.form-check-input[type=radio]:checked{background-image:none;background-color:#fff}.form-check-input[type=radio]:checked:after{border-radius:50%;width:.625rem;height:.625rem;border-color:#3b71ca;background-color:#3b71ca;transition:border-color;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.form-check-input[type=radio]:checked:focus{background-color:#fff}.form-check-label:hover{cursor:pointer}.form-switch .form-check-input{background-image:none;border-width:0;border-radius:.4375rem;width:2rem;height:.875rem;background-color:#00000040;margin-top:.3em;margin-right:8px}.form-switch .form-check-input:after{content:"";position:absolute;border:none;z-index:2;border-radius:50%;width:1.25rem;height:1.25rem;background-color:#fff;margin-top:-.1875rem;box-shadow:0 0 3px #00000012,0 2px 2px #0000000a;transition:background-color .2s,transform .2s}.form-switch .form-check-input:focus{background-image:none}.form-switch .form-check-input:focus:before{box-shadow:3px -1px 0 13px #0009;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-switch .form-check-input:focus:after{border-radius:50%;width:1.25rem;height:1.25rem}.form-switch .form-check-input:checked{background-image:none}.form-switch .form-check-input:checked:focus{background-image:none}.form-switch .form-check-input:checked:focus:before{margin-left:1.0625rem;box-shadow:3px -1px 0 13px #3b71ca;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-switch .form-check-input:checked[type=checkbox]{background-image:none}.form-switch .form-check-input:checked[type=checkbox]:after{content:"";position:absolute;border:none;z-index:2;border-radius:50%;width:1.25rem;height:1.25rem;background-color:#3b71ca;margin-top:-3px;margin-left:1.0625rem;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}.form-control[type=file]::-webkit-file-upload-button{background-color:#0000}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#0000}.input-group{flex-wrap:nowrap}.input-group>.form-control{min-height:calc(2.08rem + 2px);height:calc(2.08rem + 2px);padding-top:.27rem;padding-bottom:.27rem;transition:all .2s linear}.input-group>.form-control:focus{transition:all .2s linear;border-color:#3b71ca;outline:0;box-shadow:inset 0 0 0 1px #3b71ca}.input-group-text{background-color:#0000;padding-top:.26rem;padding-bottom:.26rem}.input-group-text>.form-check-input[type=checkbox]{margin-left:1px;margin-right:1px}.input-group-text>.form-check-input[type=radio]{margin-right:0}.input-group-lg>.form-control{height:calc(2.645rem + 2px);font-size:1rem;padding-top:.33rem;padding-bottom:.33rem}.input-group-lg .input-group-text{font-size:1rem}.input-group-sm>.form-control{min-height:calc(1.66rem + 2px);height:calc(1.66rem + 2px);font-size:.775rem;padding-top:.33rem;padding-bottom:.33rem}.input-group-sm .input-group-text{font-size:.775rem;line-height:1.5}.input-group.form-outline .input-group-text{border-left:0}.input-group.form-outline input+.input-group-text{border:0;border-left:1px solid #bdbdbd}.input-group .form-outline:not(:first-child),.input-group .select-wrapper:not(:first-child),.input-group .form-outline:not(:first-child) .form-notch-leading,.input-group .select-wrapper:not(:first-child) .form-notch-leading{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.input-group .form-outline:not(:last-child),.input-group .select-wrapper:not(:last-child),.input-group .form-outline:not(:last-child) .form-notch-trailing,.input-group .select-wrapper:not(:last-child) .form-notch-trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>[class*=btn-outline-]+[class*=btn-outline-]{border-left:0}.input-group>.btn[class*=btn-outline-]{padding-top:.47rem}.input-group>.btn{padding-top:.59rem}.input-group.input-group-lg .input-group-text{height:calc(2.645rem + 2px)}.input-group .input-group-text{height:calc(2.08rem + 2px)}.input-group .btn{line-height:1}.input-group.input-group-sm .input-group-text{height:calc(1.66rem + 2px)}.was-validated .input-group .invalid-feedback,.was-validated .input-group .valid-feedback,.input-group .invalid-feedback,.input-group .valid-feedback{margin-top:2.5rem}.valid-feedback{position:absolute;display:none;width:auto;margin-top:.25rem;font-size:.875rem;color:#14a44d;margin-top:-.75rem}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:6px 16px;margin-top:.1rem;font-size:.875rem;background-color:#14a44de6;border-radius:.25rem!important;color:#fff}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{margin-bottom:1rem;background-image:none;border-color:#14a44d}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#14a44d;box-shadow:0 0 0 .25rem #14a44d40}.was-validated .form-outline .form-control:valid~.form-label,.form-outline .form-control.is-valid~.form-label{color:#14a44d}.was-validated .form-outline .form-control:valid~.form-notch .form-notch-leading,.was-validated .form-outline .form-control:valid~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:valid~.form-notch .form-notch-trailing,.form-outline .form-control.is-valid~.form-notch .form-notch-leading,.form-outline .form-control.is-valid~.form-notch .form-notch-middle,.form-outline .form-control.is-valid~.form-notch .form-notch-trailing{border-color:#14a44d}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:valid.active~.form-notch .form-notch-middle,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-valid.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-middle{box-shadow:0 1px #14a44d}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-leading,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #14a44d,0 1px #14a44d,0 -1px #14a44d}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-trailing,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #14a44d,0 -1px #14a44d,0 1px #14a44d}.was-validated .form-outline .form-control:valid.select-input.focused~.form-notch .form-notch-leading,.form-outline .form-control.is-valid.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #14a44d,0 1px #14a44d,0 -1px #14a44d}.was-validated .form-outline .form-control:valid.select-input.focused~.form-notch .form-notch-middle,.form-outline .form-control.is-valid.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #14a44d;border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:valid.select-input.focused~.form-notch .form-notch-trailing,.form-outline .form-control.is-valid.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #14a44d,0 -1px #14a44d,0 1px #14a44d}.was-validated .form-select:valid,.form-select.is-valid{border-color:#14a44d}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#14a44d;box-shadow:0 0 0 .25rem #14a44d40}.was-validated .form-select:valid~.valid-feedback,.form-select.is-valid~.valid-feedback{margin-top:0}.was-validated .input-group .form-control:valid,.input-group .form-control.is-valid{margin-bottom:0}.was-validated input[type=file].form-control:valid .valid-feedback,input[type=file].form-control.is-valid .valid-feedback{margin-top:0}.was-validated input[type=file].form-control:valid:focus,input[type=file].form-control.is-valid:focus{box-shadow:inset 0 0 0 1px #14a44d;border-color:#14a44d}.was-validated input[type=file].form-control:valid:focus~.form-file-label,input[type=file].form-control.is-valid:focus~.form-file-label{box-shadow:none}.was-validated input[type=file].form-control:valid:focus-within~.form-file-label .form-file-text,.was-validated input[type=file].form-control:valid:focus-within~.form-file-label .form-file-button,input[type=file].form-control.is-valid:focus-within~.form-file-label .form-file-text,input[type=file].form-control.is-valid:focus-within~.form-file-label .form-file-button{border-color:#14a44d}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#14a44d}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#14a44d}.was-validated .form-check-input:valid:checked:focus:before,.form-check-input.is-valid:checked:focus:before{box-shadow:0 0 0 13px #14a44d}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:none}.was-validated .form-check-input:valid:focus:before,.form-check-input.is-valid:focus:before{box-shadow:0 0 0 13px #14a44d}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#14a44d;margin-bottom:1rem}.was-validated .form-check-input:valid[type=checkbox]:checked:focus,.form-check-input.is-valid[type=checkbox]:checked:focus{background-color:#14a44d;border-color:#14a44d}.was-validated .form-check-input:valid[type=radio]:checked,.form-check-input.is-valid[type=radio]:checked{border-color:#14a44d;background-color:#fff}.was-validated .form-check-input:valid[type=radio]:checked:focus:before,.form-check-input.is-valid[type=radio]:checked:focus:before{box-shadow:0 0 0 13px #14a44d}.was-validated .form-check-input:valid[type=radio]:checked:after,.form-check-input.is-valid[type=radio]:checked:after{border-color:#14a44d;background-color:#14a44d}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .form-switch .form-check-input:valid:focus:before,.form-switch .form-check-input.is-valid:focus:before{box-shadow:3px -1px 0 13px #0009}.was-validated .form-switch .form-check-input:valid:checked[type=checkbox]:after,.form-switch .form-check-input.is-valid:checked[type=checkbox]:after{background-color:#14a44d;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.was-validated .form-switch .form-check-input:valid:checked:focus:before,.form-switch .form-check-input.is-valid:checked:focus:before{box-shadow:3px -1px 0 13px #14a44d}.invalid-feedback{position:absolute;display:none;width:auto;margin-top:.25rem;font-size:.875rem;color:#dc4c64;margin-top:-.75rem}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:6px 16px;margin-top:.1rem;font-size:.875rem;background-color:#dc4c64e6;border-radius:.25rem!important;color:#fff}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{margin-bottom:1rem;background-image:none;border-color:#dc4c64}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc4c64;box-shadow:0 0 0 .25rem #dc4c6440}.was-validated .form-outline .form-control:invalid~.form-label,.form-outline .form-control.is-invalid~.form-label{color:#dc4c64}.was-validated .form-outline .form-control:invalid~.form-notch .form-notch-leading,.was-validated .form-outline .form-control:invalid~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:invalid~.form-notch .form-notch-trailing,.form-outline .form-control.is-invalid~.form-notch .form-notch-leading,.form-outline .form-control.is-invalid~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid~.form-notch .form-notch-trailing{border-color:#dc4c64}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:invalid.active~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-middle{box-shadow:0 1px #dc4c64}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-leading,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #dc4c64,0 1px #dc4c64,0 -1px #dc4c64}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-trailing,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #dc4c64,0 -1px #dc4c64,0 1px #dc4c64}.was-validated .form-outline .form-control:invalid.select-input.focused~.form-notch .form-notch-leading,.form-outline .form-control.is-invalid.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #dc4c64,0 1px #dc4c64,0 -1px #dc4c64}.was-validated .form-outline .form-control:invalid.select-input.focused~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #dc4c64;border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:invalid.select-input.focused~.form-notch .form-notch-trailing,.form-outline .form-control.is-invalid.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #dc4c64,0 -1px #dc4c64,0 1px #dc4c64}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc4c64}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc4c64;box-shadow:0 0 0 .25rem #dc4c6440}.was-validated .form-select:invalid~.invalid-feedback,.form-select.is-invalid~.invalid-feedback{margin-top:0}.was-validated .input-group .form-control:invalid,.input-group .form-control.is-invalid{margin-bottom:0}.was-validated input[type=file].form-control:invalid .invalid-feedback,input[type=file].form-control.is-invalid .invalid-feedback{margin-top:0}.was-validated input[type=file].form-control:invalid:focus,input[type=file].form-control.is-invalid:focus{box-shadow:inset 0 0 0 1px #dc4c64;border-color:#dc4c64}.was-validated input[type=file].form-control:invalid:focus~.form-file-label,input[type=file].form-control.is-invalid:focus~.form-file-label{box-shadow:none}.was-validated input[type=file].form-control:invalid:focus-within~.form-file-label .form-file-text,.was-validated input[type=file].form-control:invalid:focus-within~.form-file-label .form-file-button,input[type=file].form-control.is-invalid:focus-within~.form-file-label .form-file-text,input[type=file].form-control.is-invalid:focus-within~.form-file-label .form-file-button{border-color:#dc4c64}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc4c64}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc4c64}.was-validated .form-check-input:invalid:checked:focus:before,.form-check-input.is-invalid:checked:focus:before{box-shadow:0 0 0 13px #dc4c64}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:none}.was-validated .form-check-input:invalid:focus:before,.form-check-input.is-invalid:focus:before{box-shadow:0 0 0 13px #dc4c64}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc4c64;margin-bottom:1rem}.was-validated .form-check-input:invalid[type=checkbox]:checked:focus,.form-check-input.is-invalid[type=checkbox]:checked:focus{background-color:#dc4c64;border-color:#dc4c64}.was-validated .form-check-input:invalid[type=radio]:checked,.form-check-input.is-invalid[type=radio]:checked{border-color:#dc4c64;background-color:#fff}.was-validated .form-check-input:invalid[type=radio]:checked:focus:before,.form-check-input.is-invalid[type=radio]:checked:focus:before{box-shadow:0 0 0 13px #dc4c64}.was-validated .form-check-input:invalid[type=radio]:checked:after,.form-check-input.is-invalid[type=radio]:checked:after{border-color:#dc4c64;background-color:#dc4c64}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .form-switch .form-check-input:invalid:focus:before,.form-switch .form-check-input.is-invalid:focus:before{box-shadow:3px -1px 0 13px #0009}.was-validated .form-switch .form-check-input:invalid:checked[type=checkbox]:after,.form-switch .form-check-input.is-invalid:checked[type=checkbox]:after{background-color:#dc4c64;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.was-validated .form-switch .form-check-input:invalid:checked:focus:before,.form-switch .form-check-input.is-invalid:checked:focus:before{box-shadow:3px -1px 0 13px #dc4c64}.form-range:focus{box-shadow:none}.form-range:focus::-webkit-slider-thumb{box-shadow:none}.form-range:focus::-moz-range-thumb{box-shadow:none}.form-range:focus::-ms-thumb{box-shadow:none}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{margin-top:-6px;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range::-webkit-slider-runnable-track{height:4px;border-radius:0;box-shadow:none}.form-range::-moz-range-thumb{box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range::-moz-range-track{box-shadow:none}.table{--mdb-table-font-size: .9rem;--mdb-table-divider-color: rgba(0, 0, 0, .1);font-size:var(--mdb-table-font-size)}.table th{font-weight:500}.table tbody{font-weight:400}.table>:not(:last-child)>:last-child>*{border-bottom-color:inherit}.table-primary{--mdb-table-color: #000;--mdb-table-bg: #d8e3f4;--mdb-table-border-color: #c2ccdc;--mdb-table-striped-bg: #cdd8e8;--mdb-table-striped-color: #000;--mdb-table-active-bg: #c2ccdc;--mdb-table-active-color: #000;--mdb-table-hover-bg: #c8d2e2;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-secondary{--mdb-table-color: #000;--mdb-table-bg: #ecedf0;--mdb-table-border-color: #d4d5d8;--mdb-table-striped-bg: #e0e1e4;--mdb-table-striped-color: #000;--mdb-table-active-bg: #d4d5d8;--mdb-table-active-color: #000;--mdb-table-hover-bg: #dadbde;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-success{--mdb-table-color: #000;--mdb-table-bg: #d0eddb;--mdb-table-border-color: #bbd5c5;--mdb-table-striped-bg: #c6e1d0;--mdb-table-striped-color: #000;--mdb-table-active-bg: #bbd5c5;--mdb-table-active-color: #000;--mdb-table-hover-bg: #c0dbcb;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-info{--mdb-table-color: #000;--mdb-table-bg: #ddf0f6;--mdb-table-border-color: #c7d8dd;--mdb-table-striped-bg: #d2e4ea;--mdb-table-striped-color: #000;--mdb-table-active-bg: #c7d8dd;--mdb-table-active-color: #000;--mdb-table-hover-bg: #ccdee4;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-warning{--mdb-table-color: #000;--mdb-table-bg: #faecd1;--mdb-table-border-color: #e1d4bc;--mdb-table-striped-bg: #eee0c7;--mdb-table-striped-color: #000;--mdb-table-active-bg: #e1d4bc;--mdb-table-active-color: #000;--mdb-table-hover-bg: #e7dac1;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-danger{--mdb-table-color: #000;--mdb-table-bg: #f8dbe0;--mdb-table-border-color: #dfc5ca;--mdb-table-striped-bg: #ecd0d5;--mdb-table-striped-color: #000;--mdb-table-active-bg: #dfc5ca;--mdb-table-active-color: #000;--mdb-table-hover-bg: #e5cbcf;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-light{--mdb-table-color: #000;--mdb-table-bg: #fbfbfb;--mdb-table-border-color: #e2e2e2;--mdb-table-striped-bg: #eeeeee;--mdb-table-striped-color: #000;--mdb-table-active-bg: #e2e2e2;--mdb-table-active-color: #000;--mdb-table-hover-bg: #e8e8e8;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-dark{--mdb-table-color: #fff;--mdb-table-bg: #332d2d;--mdb-table-border-color: #474242;--mdb-table-striped-bg: #3d3838;--mdb-table-striped-color: #fff;--mdb-table-active-bg: #474242;--mdb-table-active-color: #fff;--mdb-table-hover-bg: #423d3d;--mdb-table-hover-color: #fff;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-hover>tbody>tr{transition:.5s}.table-hover>tbody>tr:hover{--mdb-table-accent-bg: transparent;background-color:var(--mdb-table-hover-bg)}.table-group-divider{border-top:2px solid;border-top-color:inherit}.table-divider-color{border-top-color:var(--mdb-table-divider-color)}.btn{--mdb-btn-padding-top: .625rem;--mdb-btn-padding-bottom: .5rem;--mdb-btn-border-width: 0;--mdb-btn-border-color: none;--mdb-btn-border-radius: .25rem;--mdb-btn-box-shadow: 0 4px 9px -4px rgba(0, 0, 0, .35);--mdb-btn-hover-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-focus-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-active-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);padding-top:var(--mdb-btn-padding-top);padding-bottom:var(--mdb-btn-padding-bottom);text-transform:uppercase;vertical-align:bottom;border:0;border-radius:var(--mdb-btn-border-radius);box-shadow:var(--mdb-btn-box-shadow)}:not(.btn-check)+.btn:hover,.btn:first-child:hover,.btn:focus-visible,.btn:hover{box-shadow:var(--mdb-btn-hover-box-shadow)}.btn-check:focus-visible+.btn,.btn-check:focus+.btn,.btn:focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn-check:active+.btn,.btn:active,.btn.active,.btn.show{box-shadow:var(--mdb-btn-active-box-shadow)}.btn-check:checked+.btn:focus,.btn-check:active+.btn:focus,.btn:active:focus,.btn.active:focus,.btn.show:focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{box-shadow:var(--mdb-btn-box-shadow)}[class*=btn-outline-]{--mdb-btn-padding-top: .5rem;--mdb-btn-padding-bottom: .375rem;--mdb-btn-padding-x: 1.375rem;--mdb-btn-border-width: 2px;--mdb-btn-line-height: 1.5;padding:var(--mdb-btn-padding-top) var(--mdb-btn-padding-x) var(--mdb-btn-padding-bottom);border-width:var(--mdb-btn-border-width);border-style:solid;box-shadow:none}:not(.btn-check)+[class*=btn-outline-]:hover,[class*=btn-outline-]:first-child:hover,[class*=btn-outline-]:focus-visible,[class*=btn-outline-]:hover{box-shadow:none}.btn-check:focus-visible+[class*=btn-outline-],.btn-check:focus+[class*=btn-outline-],[class*=btn-outline-]:focus{box-shadow:none}.btn-check:checked+[class*=btn-outline-],.btn-check:active+[class*=btn-outline-],[class*=btn-outline-]:active,[class*=btn-outline-].active,[class*=btn-outline-].show{box-shadow:none}.btn-check:checked+[class*=btn-outline-]:focus,.btn-check:active+[class*=btn-outline-]:focus,[class*=btn-outline-]:active:focus,[class*=btn-outline-].active:focus,[class*=btn-outline-].show:focus{box-shadow:none}[class*=btn-outline-]:disabled,[class*=btn-outline-].disabled,fieldset:disabled [class*=btn-outline-]{box-shadow:none}[class*=btn-outline-].btn-lg,.btn-group-lg>[class*=btn-outline-].btn{--mdb-btn-padding-top: .625rem;--mdb-btn-padding-bottom: .5625rem;--mdb-btn-padding-x: 1.5625rem;--mdb-btn-font-size:.875rem;--mdb-btn-line-height: 1.6}[class*=btn-outline-].btn-sm,.btn-group-sm>[class*=btn-outline-].btn{--mdb-btn-padding-top: .25rem;--mdb-btn-padding-bottom: .1875rem;--mdb-btn-padding-x: .875rem;--mdb-btn-font-size:.75rem;--mdb-btn-line-height: 1.5}.btn-secondary{box-shadow:none}:not(.btn-check)+.btn-secondary:hover,.btn-secondary:first-child:hover,.btn-secondary:focus-visible,.btn-secondary:hover{box-shadow:none!important}.btn-check:focus-visible+.btn-secondary,.btn-check:focus+.btn-secondary,.btn-secondary:focus{box-shadow:none}.btn-check:checked+.btn-secondary,.btn-check:active+.btn-secondary,.btn-secondary:active,.btn-secondary.active,.btn-secondary.show{box-shadow:none}.btn-check:checked+.btn-secondary:focus,.btn-check:active+.btn-secondary:focus,.btn-secondary:active:focus,.btn-secondary.active:focus,.btn-secondary.show:focus{box-shadow:none}.btn-secondary:disabled,.btn-secondary.disabled,fieldset:disabled .btn-secondary{box-shadow:none}.btn-primary{--mdb-btn-bg: #3b71ca;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #3b71ca;--mdb-btn-hover-bg: #386bc0;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #386bc0;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #3566b6;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-primary:hover,.btn-primary:first-child:hover,.btn-primary:focus-visible,.btn-primary:hover{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33}.btn-check:focus-visible+.btn-primary,.btn-check:focus+.btn-primary,.btn-primary:focus{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33;background-color:#386bc0}.btn-check:checked+.btn-primary,.btn-check:active+.btn-primary,.btn-primary:active,.btn-primary.active,.btn-primary.show{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33}.btn-check:checked+.btn-primary:focus,.btn-check:active+.btn-primary:focus,.btn-primary:active:focus,.btn-primary.active:focus,.btn-primary.show:focus{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33}.btn-check:checked+.btn-primary:hover,.btn-check:active+.btn-primary:hover,.btn-primary:active:hover,.btn-primary.active:hover,.btn-primary.show:hover{background-color:#3566b6}.btn-primary:disabled,.btn-primary.disabled,fieldset:disabled .btn-primary{box-shadow:0 4px 9px -4px #3b71ca}.btn-secondary{--mdb-btn-bg: #e3ebf7;--mdb-btn-color: #285192;--mdb-btn-box-shadow: 0 4px 9px -4px #e3ebf7;--mdb-btn-hover-bg: #d8dfeb;--mdb-btn-hover-color: #285192;--mdb-btn-focus-bg: #d8dfeb;--mdb-btn-focus-color: #285192;--mdb-btn-active-bg: #ccd4de;--mdb-btn-active-color: #285192}:not(.btn-check)+.btn-secondary:hover,.btn-secondary:first-child:hover,.btn-secondary:focus-visible,.btn-secondary:hover{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733}.btn-check:focus-visible+.btn-secondary,.btn-check:focus+.btn-secondary,.btn-secondary:focus{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733;background-color:#d8dfeb}.btn-check:checked+.btn-secondary,.btn-check:active+.btn-secondary,.btn-secondary:active,.btn-secondary.active,.btn-secondary.show{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733}.btn-check:checked+.btn-secondary:focus,.btn-check:active+.btn-secondary:focus,.btn-secondary:active:focus,.btn-secondary.active:focus,.btn-secondary.show:focus{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733}.btn-check:checked+.btn-secondary:hover,.btn-check:active+.btn-secondary:hover,.btn-secondary:active:hover,.btn-secondary.active:hover,.btn-secondary.show:hover{background-color:#ccd4de}.btn-secondary:disabled,.btn-secondary.disabled,fieldset:disabled .btn-secondary{box-shadow:0 4px 9px -4px #e3ebf7}.btn-success{--mdb-btn-bg: #14a44d;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #14a44d;--mdb-btn-hover-bg: #139c49;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #139c49;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #129445;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-success:hover,.btn-success:first-child:hover,.btn-success:focus-visible,.btn-success:hover{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33}.btn-check:focus-visible+.btn-success,.btn-check:focus+.btn-success,.btn-success:focus{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33;background-color:#139c49}.btn-check:checked+.btn-success,.btn-check:active+.btn-success,.btn-success:active,.btn-success.active,.btn-success.show{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33}.btn-check:checked+.btn-success:focus,.btn-check:active+.btn-success:focus,.btn-success:active:focus,.btn-success.active:focus,.btn-success.show:focus{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33}.btn-check:checked+.btn-success:hover,.btn-check:active+.btn-success:hover,.btn-success:active:hover,.btn-success.active:hover,.btn-success.show:hover{background-color:#129445}.btn-success:disabled,.btn-success.disabled,fieldset:disabled .btn-success{box-shadow:0 4px 9px -4px #14a44d}.btn-danger{--mdb-btn-bg: #dc4c64;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #dc4c64;--mdb-btn-hover-bg: #d1485f;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #d1485f;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #c6445a;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-danger:hover,.btn-danger:first-child:hover,.btn-danger:focus-visible,.btn-danger:hover{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433}.btn-check:focus-visible+.btn-danger,.btn-check:focus+.btn-danger,.btn-danger:focus{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433;background-color:#d1485f}.btn-check:checked+.btn-danger,.btn-check:active+.btn-danger,.btn-danger:active,.btn-danger.active,.btn-danger.show{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433}.btn-check:checked+.btn-danger:focus,.btn-check:active+.btn-danger:focus,.btn-danger:active:focus,.btn-danger.active:focus,.btn-danger.show:focus{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433}.btn-check:checked+.btn-danger:hover,.btn-check:active+.btn-danger:hover,.btn-danger:active:hover,.btn-danger.active:hover,.btn-danger.show:hover{background-color:#c6445a}.btn-danger:disabled,.btn-danger.disabled,fieldset:disabled .btn-danger{box-shadow:0 4px 9px -4px #dc4c64}.btn-warning{--mdb-btn-bg: #e4a11b;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #e4a11b;--mdb-btn-hover-bg: #d9991a;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #d9991a;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #cd9118;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-warning:hover,.btn-warning:first-child:hover,.btn-warning:focus-visible,.btn-warning:hover{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33}.btn-check:focus-visible+.btn-warning,.btn-check:focus+.btn-warning,.btn-warning:focus{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33;background-color:#d9991a}.btn-check:checked+.btn-warning,.btn-check:active+.btn-warning,.btn-warning:active,.btn-warning.active,.btn-warning.show{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33}.btn-check:checked+.btn-warning:focus,.btn-check:active+.btn-warning:focus,.btn-warning:active:focus,.btn-warning.active:focus,.btn-warning.show:focus{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33}.btn-check:checked+.btn-warning:hover,.btn-check:active+.btn-warning:hover,.btn-warning:active:hover,.btn-warning.active:hover,.btn-warning.show:hover{background-color:#cd9118}.btn-warning:disabled,.btn-warning.disabled,fieldset:disabled .btn-warning{box-shadow:0 4px 9px -4px #e4a11b}.btn-info{--mdb-btn-bg: #54b4d3;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #54b4d3;--mdb-btn-hover-bg: #50abc8;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #50abc8;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #4ca2be;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-info:hover,.btn-info:first-child:hover,.btn-info:focus-visible,.btn-info:hover{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333}.btn-check:focus-visible+.btn-info,.btn-check:focus+.btn-info,.btn-info:focus{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333;background-color:#50abc8}.btn-check:checked+.btn-info,.btn-check:active+.btn-info,.btn-info:active,.btn-info.active,.btn-info.show{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333}.btn-check:checked+.btn-info:focus,.btn-check:active+.btn-info:focus,.btn-info:active:focus,.btn-info.active:focus,.btn-info.show:focus{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333}.btn-check:checked+.btn-info:hover,.btn-check:active+.btn-info:hover,.btn-info:active:hover,.btn-info.active:hover,.btn-info.show:hover{background-color:#4ca2be}.btn-info:disabled,.btn-info.disabled,fieldset:disabled .btn-info{box-shadow:0 4px 9px -4px #54b4d3}.btn-light{--mdb-btn-bg: #fbfbfb;--mdb-btn-color: #4f4f4f;--mdb-btn-box-shadow: 0 4px 9px -4px #fbfbfb;--mdb-btn-hover-bg: #eeeeee;--mdb-btn-hover-color: #4f4f4f;--mdb-btn-focus-bg: #eeeeee;--mdb-btn-focus-color: #4f4f4f;--mdb-btn-active-bg: #e2e2e2;--mdb-btn-active-color: #4f4f4f}:not(.btn-check)+.btn-light:hover,.btn-light:first-child:hover,.btn-light:focus-visible,.btn-light:hover{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33}.btn-check:focus-visible+.btn-light,.btn-check:focus+.btn-light,.btn-light:focus{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33;background-color:#eee}.btn-check:checked+.btn-light,.btn-check:active+.btn-light,.btn-light:active,.btn-light.active,.btn-light.show{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33}.btn-check:checked+.btn-light:focus,.btn-check:active+.btn-light:focus,.btn-light:active:focus,.btn-light.active:focus,.btn-light.show:focus{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33}.btn-check:checked+.btn-light:hover,.btn-check:active+.btn-light:hover,.btn-light:active:hover,.btn-light.active:hover,.btn-light.show:hover{background-color:#e2e2e2}.btn-light:disabled,.btn-light.disabled,fieldset:disabled .btn-light{box-shadow:0 4px 9px -4px #fbfbfb}.btn-dark{--mdb-btn-bg: #332d2d;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #332d2d;--mdb-btn-hover-bg: #302b2b;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #302b2b;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #2e2929;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-dark:hover,.btn-dark:first-child:hover,.btn-dark:focus-visible,.btn-dark:hover{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33}.btn-check:focus-visible+.btn-dark,.btn-check:focus+.btn-dark,.btn-dark:focus{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33;background-color:#302b2b}.btn-check:checked+.btn-dark,.btn-check:active+.btn-dark,.btn-dark:active,.btn-dark.active,.btn-dark.show{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33}.btn-check:checked+.btn-dark:focus,.btn-check:active+.btn-dark:focus,.btn-dark:active:focus,.btn-dark.active:focus,.btn-dark.show:focus{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33}.btn-check:checked+.btn-dark:hover,.btn-check:active+.btn-dark:hover,.btn-dark:active:hover,.btn-dark.active:hover,.btn-dark.show:hover{background-color:#2e2929}.btn-dark:disabled,.btn-dark.disabled,fieldset:disabled .btn-dark{box-shadow:0 4px 9px -4px #332d2d}.btn-white{--mdb-btn-bg: #fff;--mdb-btn-color: #000;--mdb-btn-box-shadow: 0 4px 9px -4px #fff;--mdb-btn-hover-bg: #f2f2f2;--mdb-btn-hover-color: #000;--mdb-btn-focus-bg: #f2f2f2;--mdb-btn-focus-color: #000;--mdb-btn-active-bg: #e6e6e6;--mdb-btn-active-color: #000}:not(.btn-check)+.btn-white:hover,.btn-white:first-child:hover,.btn-white:focus-visible,.btn-white:hover{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3}.btn-check:focus-visible+.btn-white,.btn-check:focus+.btn-white,.btn-white:focus{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3;background-color:#f2f2f2}.btn-check:checked+.btn-white,.btn-check:active+.btn-white,.btn-white:active,.btn-white.active,.btn-white.show{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3}.btn-check:checked+.btn-white:focus,.btn-check:active+.btn-white:focus,.btn-white:active:focus,.btn-white.active:focus,.btn-white.show:focus{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3}.btn-check:checked+.btn-white:hover,.btn-check:active+.btn-white:hover,.btn-white:active:hover,.btn-white.active:hover,.btn-white.show:hover{background-color:#e6e6e6}.btn-white:disabled,.btn-white.disabled,fieldset:disabled .btn-white{box-shadow:0 4px 9px -4px #fff}.btn-black{--mdb-btn-bg: #000;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #000;--mdb-btn-hover-bg: black;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: black;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: black;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-black:hover,.btn-black:first-child:hover,.btn-black:focus-visible,.btn-black:hover{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003}.btn-check:focus-visible+.btn-black,.btn-check:focus+.btn-black,.btn-black:focus{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003;background-color:#000}.btn-check:checked+.btn-black,.btn-check:active+.btn-black,.btn-black:active,.btn-black.active,.btn-black.show{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003}.btn-check:checked+.btn-black:focus,.btn-check:active+.btn-black:focus,.btn-black:active:focus,.btn-black.active:focus,.btn-black.show:focus{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003}.btn-check:checked+.btn-black:hover,.btn-check:active+.btn-black:hover,.btn-black:active:hover,.btn-black.active:hover,.btn-black.show:hover{background-color:#000}.btn-black:disabled,.btn-black.disabled,fieldset:disabled .btn-black{box-shadow:0 4px 9px -4px #000}.btn-outline-primary{--mdb-btn-bg: transparent;--mdb-btn-color: #3b71ca;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #386bc0;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #386bc0;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #3566b6;border-color:#3b71ca}:not(.btn-check)+.btn-outline-primary:hover,.btn-outline-primary:first-child:hover,.btn-outline-primary:focus-visible,.btn-outline-primary:hover{border-color:#386bc0}.btn-check:focus-visible+.btn-outline-primary,.btn-check:focus+.btn-outline-primary,.btn-outline-primary:focus{border-color:#386bc0}.btn-check:checked+.btn-outline-primary,.btn-check:active+.btn-outline-primary,.btn-outline-primary:active,.btn-outline-primary.active,.btn-outline-primary.show{border-color:#3566b6}.btn-check:checked+.btn-outline-primary:focus,.btn-check:active+.btn-outline-primary:focus,.btn-outline-primary:active:focus,.btn-outline-primary.active:focus,.btn-outline-primary.show:focus{border-color:#386bc0}.btn-outline-primary:disabled,.btn-outline-primary.disabled,fieldset:disabled .btn-outline-primary{border-color:#3b71ca}.btn-outline-secondary{--mdb-btn-bg: transparent;--mdb-btn-color: #285192;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #264d8b;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #264d8b;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #244983;border-color:#e3ebf7}:not(.btn-check)+.btn-outline-secondary:hover,.btn-outline-secondary:first-child:hover,.btn-outline-secondary:focus-visible,.btn-outline-secondary:hover{border-color:#d8dfeb}.btn-check:focus-visible+.btn-outline-secondary,.btn-check:focus+.btn-outline-secondary,.btn-outline-secondary:focus{border-color:#d8dfeb}.btn-check:checked+.btn-outline-secondary,.btn-check:active+.btn-outline-secondary,.btn-outline-secondary:active,.btn-outline-secondary.active,.btn-outline-secondary.show{border-color:#ccd4de}.btn-check:checked+.btn-outline-secondary:focus,.btn-check:active+.btn-outline-secondary:focus,.btn-outline-secondary:active:focus,.btn-outline-secondary.active:focus,.btn-outline-secondary.show:focus{border-color:#d8dfeb}.btn-outline-secondary:disabled,.btn-outline-secondary.disabled,fieldset:disabled .btn-outline-secondary{border-color:#e3ebf7}.btn-outline-success{--mdb-btn-bg: transparent;--mdb-btn-color: #14a44d;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #139c49;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #139c49;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #129445;border-color:#14a44d}:not(.btn-check)+.btn-outline-success:hover,.btn-outline-success:first-child:hover,.btn-outline-success:focus-visible,.btn-outline-success:hover{border-color:#139c49}.btn-check:focus-visible+.btn-outline-success,.btn-check:focus+.btn-outline-success,.btn-outline-success:focus{border-color:#139c49}.btn-check:checked+.btn-outline-success,.btn-check:active+.btn-outline-success,.btn-outline-success:active,.btn-outline-success.active,.btn-outline-success.show{border-color:#129445}.btn-check:checked+.btn-outline-success:focus,.btn-check:active+.btn-outline-success:focus,.btn-outline-success:active:focus,.btn-outline-success.active:focus,.btn-outline-success.show:focus{border-color:#139c49}.btn-outline-success:disabled,.btn-outline-success.disabled,fieldset:disabled .btn-outline-success{border-color:#14a44d}.btn-outline-danger{--mdb-btn-bg: transparent;--mdb-btn-color: #dc4c64;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #d1485f;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #d1485f;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #c6445a;border-color:#dc4c64}:not(.btn-check)+.btn-outline-danger:hover,.btn-outline-danger:first-child:hover,.btn-outline-danger:focus-visible,.btn-outline-danger:hover{border-color:#d1485f}.btn-check:focus-visible+.btn-outline-danger,.btn-check:focus+.btn-outline-danger,.btn-outline-danger:focus{border-color:#d1485f}.btn-check:checked+.btn-outline-danger,.btn-check:active+.btn-outline-danger,.btn-outline-danger:active,.btn-outline-danger.active,.btn-outline-danger.show{border-color:#c6445a}.btn-check:checked+.btn-outline-danger:focus,.btn-check:active+.btn-outline-danger:focus,.btn-outline-danger:active:focus,.btn-outline-danger.active:focus,.btn-outline-danger.show:focus{border-color:#d1485f}.btn-outline-danger:disabled,.btn-outline-danger.disabled,fieldset:disabled .btn-outline-danger{border-color:#dc4c64}.btn-outline-warning{--mdb-btn-bg: transparent;--mdb-btn-color: #e4a11b;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #d9991a;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #d9991a;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #cd9118;border-color:#e4a11b}:not(.btn-check)+.btn-outline-warning:hover,.btn-outline-warning:first-child:hover,.btn-outline-warning:focus-visible,.btn-outline-warning:hover{border-color:#d9991a}.btn-check:focus-visible+.btn-outline-warning,.btn-check:focus+.btn-outline-warning,.btn-outline-warning:focus{border-color:#d9991a}.btn-check:checked+.btn-outline-warning,.btn-check:active+.btn-outline-warning,.btn-outline-warning:active,.btn-outline-warning.active,.btn-outline-warning.show{border-color:#cd9118}.btn-check:checked+.btn-outline-warning:focus,.btn-check:active+.btn-outline-warning:focus,.btn-outline-warning:active:focus,.btn-outline-warning.active:focus,.btn-outline-warning.show:focus{border-color:#d9991a}.btn-outline-warning:disabled,.btn-outline-warning.disabled,fieldset:disabled .btn-outline-warning{border-color:#e4a11b}.btn-outline-info{--mdb-btn-bg: transparent;--mdb-btn-color: #54b4d3;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #50abc8;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #50abc8;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #4ca2be;border-color:#54b4d3}:not(.btn-check)+.btn-outline-info:hover,.btn-outline-info:first-child:hover,.btn-outline-info:focus-visible,.btn-outline-info:hover{border-color:#50abc8}.btn-check:focus-visible+.btn-outline-info,.btn-check:focus+.btn-outline-info,.btn-outline-info:focus{border-color:#50abc8}.btn-check:checked+.btn-outline-info,.btn-check:active+.btn-outline-info,.btn-outline-info:active,.btn-outline-info.active,.btn-outline-info.show{border-color:#4ca2be}.btn-check:checked+.btn-outline-info:focus,.btn-check:active+.btn-outline-info:focus,.btn-outline-info:active:focus,.btn-outline-info.active:focus,.btn-outline-info.show:focus{border-color:#50abc8}.btn-outline-info:disabled,.btn-outline-info.disabled,fieldset:disabled .btn-outline-info{border-color:#54b4d3}.btn-outline-light{--mdb-btn-bg: transparent;--mdb-btn-color: #fbfbfb;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #eeeeee;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #eeeeee;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #e2e2e2;border-color:#fbfbfb}:not(.btn-check)+.btn-outline-light:hover,.btn-outline-light:first-child:hover,.btn-outline-light:focus-visible,.btn-outline-light:hover{border-color:#eee}.btn-check:focus-visible+.btn-outline-light,.btn-check:focus+.btn-outline-light,.btn-outline-light:focus{border-color:#eee}.btn-check:checked+.btn-outline-light,.btn-check:active+.btn-outline-light,.btn-outline-light:active,.btn-outline-light.active,.btn-outline-light.show{border-color:#e2e2e2}.btn-check:checked+.btn-outline-light:focus,.btn-check:active+.btn-outline-light:focus,.btn-outline-light:active:focus,.btn-outline-light.active:focus,.btn-outline-light.show:focus{border-color:#eee}.btn-outline-light:disabled,.btn-outline-light.disabled,fieldset:disabled .btn-outline-light{border-color:#fbfbfb}.btn-outline-dark{--mdb-btn-bg: transparent;--mdb-btn-color: #332d2d;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #302b2b;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #302b2b;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #2e2929;border-color:#332d2d}:not(.btn-check)+.btn-outline-dark:hover,.btn-outline-dark:first-child:hover,.btn-outline-dark:focus-visible,.btn-outline-dark:hover{border-color:#302b2b}.btn-check:focus-visible+.btn-outline-dark,.btn-check:focus+.btn-outline-dark,.btn-outline-dark:focus{border-color:#302b2b}.btn-check:checked+.btn-outline-dark,.btn-check:active+.btn-outline-dark,.btn-outline-dark:active,.btn-outline-dark.active,.btn-outline-dark.show{border-color:#2e2929}.btn-check:checked+.btn-outline-dark:focus,.btn-check:active+.btn-outline-dark:focus,.btn-outline-dark:active:focus,.btn-outline-dark.active:focus,.btn-outline-dark.show:focus{border-color:#302b2b}.btn-outline-dark:disabled,.btn-outline-dark.disabled,fieldset:disabled .btn-outline-dark{border-color:#332d2d}.btn-outline-white{--mdb-btn-bg: transparent;--mdb-btn-color: #fff;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #f2f2f2;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #f2f2f2;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #e6e6e6;border-color:#fff}:not(.btn-check)+.btn-outline-white:hover,.btn-outline-white:first-child:hover,.btn-outline-white:focus-visible,.btn-outline-white:hover{border-color:#f2f2f2}.btn-check:focus-visible+.btn-outline-white,.btn-check:focus+.btn-outline-white,.btn-outline-white:focus{border-color:#f2f2f2}.btn-check:checked+.btn-outline-white,.btn-check:active+.btn-outline-white,.btn-outline-white:active,.btn-outline-white.active,.btn-outline-white.show{border-color:#e6e6e6}.btn-check:checked+.btn-outline-white:focus,.btn-check:active+.btn-outline-white:focus,.btn-outline-white:active:focus,.btn-outline-white.active:focus,.btn-outline-white.show:focus{border-color:#f2f2f2}.btn-outline-white:disabled,.btn-outline-white.disabled,fieldset:disabled .btn-outline-white{border-color:#fff}.btn-outline-black{--mdb-btn-bg: transparent;--mdb-btn-color: #000;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: black;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: black;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: black;border-color:#000}:not(.btn-check)+.btn-outline-black:hover,.btn-outline-black:first-child:hover,.btn-outline-black:focus-visible,.btn-outline-black:hover{border-color:#000}.btn-check:focus-visible+.btn-outline-black,.btn-check:focus+.btn-outline-black,.btn-outline-black:focus{border-color:#000}.btn-check:checked+.btn-outline-black,.btn-check:active+.btn-outline-black,.btn-outline-black:active,.btn-outline-black.active,.btn-outline-black.show{border-color:#000}.btn-check:checked+.btn-outline-black:focus,.btn-check:active+.btn-outline-black:focus,.btn-outline-black:active:focus,.btn-outline-black.active:focus,.btn-outline-black.show:focus{border-color:#000}.btn-outline-black:disabled,.btn-outline-black.disabled,fieldset:disabled .btn-outline-black{border-color:#000}.btn-link{--mdb-btn-font-weight: 500;--mdb-btn-color: #3b71ca;--mdb-btn-hover-color: #386bc0;--mdb-btn-hover-bg: hsl(0, 0%, 96%);--mdb-btn-focus-color: #3566b6;--mdb-btn-active-color: #3260ac;--mdb-btn-disabled-color: #9e9e9e;--mdb-btn-box-shadow: none;text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}:not(.btn-check)+.btn-link:hover,.btn-link:first-child:hover,.btn-link:focus-visible,.btn-link:hover{text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}.btn-check:focus-visible+.btn-link,.btn-check:focus+.btn-link,.btn-link:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-link,.btn-check:active+.btn-link,.btn-link:active,.btn-link.active,.btn-link.show{color:var(--mdb-btn-active-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-link:focus,.btn-check:active+.btn-link:focus,.btn-link:active:focus,.btn-link.active:focus,.btn-link.show:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-link:disabled,.btn-link.disabled,fieldset:disabled .btn-link{box-shadow:var(--mdb-btn-box-shadow)}.btn-tertiary{--mdb-btn-font-weight: 500;--mdb-btn-color: #3b71ca;--mdb-btn-hover-color: #386bc0;--mdb-btn-hover-bg: transparent;--mdb-btn-focus-color: #3566b6;--mdb-btn-active-color: #3260ac;--mdb-btn-disabled-color: #9e9e9e;--mdb-btn-box-shadow: none;padding-left:0;padding-right:0;text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}:not(.btn-check)+.btn-tertiary:hover,.btn-tertiary:first-child:hover,.btn-tertiary:focus-visible,.btn-tertiary:hover{text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}.btn-check:focus-visible+.btn-tertiary,.btn-check:focus+.btn-tertiary,.btn-tertiary:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-tertiary,.btn-check:active+.btn-tertiary,.btn-tertiary:active,.btn-tertiary.active,.btn-tertiary.show{color:var(--mdb-btn-active-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-tertiary:focus,.btn-check:active+.btn-tertiary:focus,.btn-tertiary:active:focus,.btn-tertiary.active:focus,.btn-tertiary.show:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-tertiary:disabled,.btn-tertiary.disabled,fieldset:disabled .btn-tertiary{box-shadow:var(--mdb-btn-box-shadow)}.btn-lg,.btn-group-lg>.btn{--mdb-btn-padding-top: .75rem;--mdb-btn-padding-bottom: .6875rem;--mdb-btn-padding-x: 1.6875rem;--mdb-btn-font-size:.875rem;--mdb-btn-line-height: 1.6}.btn-sm,.btn-group-sm>.btn{--mdb-btn-padding-top: .375rem;--mdb-btn-padding-bottom: .3125rem;--mdb-btn-padding-x: 1rem;--mdb-btn-font-size:.75rem;--mdb-btn-line-height: 1.5}.btn-rounded{--mdb-btn-border-radius: 10rem;border-radius:var(--mdb-btn-border-radius)}.btn-floating,[class*=btn-outline-].btn-floating{--mdb-btn-border-radius: 50%;border-radius:var(--mdb-btn-border-radius);padding:0;position:relative}.btn-floating{--mdb-btn-width: 2.3125rem;--mdb-btn-height: 2.3125rem;--mdb-btn-icon-width: 2.3125rem;--mdb-btn-icon-line-height: 2.3125rem;--mdb-btn-width-lg: 2.8125rem;--mdb-btn-height-lg: 2.8125rem;--mdb-btn-icon-width-lg: 2.8125rem;--mdb-btn-icon-line-height-lg: 2.8125rem;--mdb-btn-width-sm: 1.8125rem;--mdb-btn-height-sm: 1.8125rem;--mdb-btn-icon-width-sm: 1.8125rem;--mdb-btn-icon-line-height-sm: 1.8125rem;width:var(--mdb-btn-width);height:var(--mdb-btn-height)}.btn-floating .fas,.btn-floating .far,.btn-floating .fab{width:var(--mdb-btn-icon-width);line-height:var(--mdb-btn-icon-line-height)}.btn-floating.btn-lg,.btn-group-lg>.btn-floating.btn{width:var(--mdb-btn-width-lg);height:var(--mdb-btn-height-lg)}.btn-floating.btn-lg .fas,.btn-group-lg>.btn-floating.btn .fas,.btn-floating.btn-lg .far,.btn-group-lg>.btn-floating.btn .far,.btn-floating.btn-lg .fab,.btn-group-lg>.btn-floating.btn .fab{width:var(--mdb-btn-icon-width-lg);line-height:var(--mdb-btn-icon-line-height-lg)}.btn-floating.btn-sm,.btn-group-sm>.btn-floating.btn{width:var(--mdb-btn-width-sm);height:var(--mdb-btn-height-sm)}.btn-floating.btn-sm .fas,.btn-group-sm>.btn-floating.btn .fas,.btn-floating.btn-sm .far,.btn-group-sm>.btn-floating.btn .far,.btn-floating.btn-sm .fab,.btn-group-sm>.btn-floating.btn .fab{width:var(--mdb-btn-icon-width-sm);line-height:var(--mdb-btn-icon-line-height-sm)}[class*=btn-outline-].btn-floating{--mdb-btn-icon-width: 2.0625rem;--mdb-btn-icon-width-lg: 2.5625rem;--mdb-btn-icon-width-sm: 1.5625rem;--mdb-btn-icon-line-height: 2.0625rem;--mdb-btn-icon-line-height-lg: 2.5625rem;--mdb-btn-icon-line-height-sm: 1.5625rem}[class*=btn-outline-].btn-floating .fas,[class*=btn-outline-].btn-floating .far,[class*=btn-outline-].btn-floating .fab{width:var(--mdb-btn-icon-width);line-height:var(--mdb-btn-icon-line-height)}[class*=btn-outline-].btn-floating.btn-lg .fas,.btn-group-lg>[class*=btn-outline-].btn-floating.btn .fas,[class*=btn-outline-].btn-floating.btn-lg .far,.btn-group-lg>[class*=btn-outline-].btn-floating.btn .far,[class*=btn-outline-].btn-floating.btn-lg .fab,.btn-group-lg>[class*=btn-outline-].btn-floating.btn .fab{width:var(--mdb-btn-icon-width-lg);line-height:var(--mdb-btn-icon-line-height-lg)}[class*=btn-outline-].btn-floating.btn-sm .fas,.btn-group-sm>[class*=btn-outline-].btn-floating.btn .fas,[class*=btn-outline-].btn-floating.btn-sm .far,.btn-group-sm>[class*=btn-outline-].btn-floating.btn .far,[class*=btn-outline-].btn-floating.btn-sm .fab,.btn-group-sm>[class*=btn-outline-].btn-floating.btn .fab{width:var(--mdb-btn-icon-width-sm);line-height:var(--mdb-btn-icon-line-height-sm)}.fixed-action-btn{--mdb-btn-right: 2.1875rem;--mdb-btn-bottom: 2.1875rem;--mdb-btn-zindex: 1030;--mdb-btn-padding-top: .9375rem;--mdb-btn-padding-bottom: 1.25rem;--mdb-btn-padding-x: 1.25rem;--mdb-btn-margin-bottom: 1.5rem;position:fixed;right:var(--mdb-btn-right);bottom:var(--mdb-btn-bottom);z-index:var(--mdb-btn-zindex);display:flex;flex-flow:column-reverse nowrap;align-items:center;padding:var(--mdb-btn-padding-top) var(--mdb-btn-padding-x) var(--mdb-btn-padding-bottom);margin-bottom:0;height:auto;overflow:hidden}.fixed-action-btn>.btn-floating{position:relative;transform:scale(1.2);z-index:10}.fixed-action-btn ul{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:0;margin:0;text-align:center;opacity:0;transition:transform .4s,opacity .4s;z-index:-1}.fixed-action-btn ul li{z-index:0;display:flex;margin-right:auto;margin-bottom:var(--mdb-btn-margin-bottom);margin-left:auto}.fixed-action-btn ul li:first-of-type{margin-top:calc(var(--mdb-btn-margin-bottom)*.5)}.fixed-action-btn ul a.btn{opacity:0;transition:opacity .4s ease-in}.fixed-action-btn ul a.btn.shown,.fixed-action-btn.active ul{opacity:1}.btn-block{--mdb-btn-margin-top: .5rem;display:block;width:100%}.btn-block+.btn-block{margin-top:var(--mdb-btn-margin-top)}hr.divider-horizontal:not([size]){height:2px}.divider-horizontal{opacity:1;background-color:#f5f5f5;height:2px}.divider-vertical{opacity:1;background-color:#f5f5f5;display:inline-block;width:2px;margin:0 1rem}hr.divider-horizontal-blurry{background-image:linear-gradient(90deg,transparent,hsl(0,0%,40%),transparent);background-color:#0000}hr.divider-vertical-blurry{background-image:linear-gradient(180deg,transparent,hsl(0,0%,40%),transparent);background-color:#0000;width:1px;top:0;right:0}.dropdown-menu{--mdb-dropdown-item-border-radius: .5rem;color:var(--mdb-dropdown-color);margin:0;padding-top:0;padding-bottom:0;border:0;box-shadow:var(--mdb-dropdown-box-shadow);font-size:var(--mdb-dropdown-font-size);top:100%;left:0;margin-top:var(--mdb-dropdown-spacer)}.dropdown-menu>li{border-radius:0}.dropdown-menu>li:first-child{border-top-left-radius:var(--mdb-dropdown-item-border-radius);border-top-right-radius:var(--mdb-dropdown-item-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.dropdown-menu>li:first-child .dropdown-item{border-top-left-radius:var(--mdb-dropdown-item-border-radius);border-top-right-radius:var(--mdb-dropdown-item-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.dropdown-menu>li:not(:first-child):not(:last-child) .dropdown-item{border-radius:0}.dropdown-menu>li:last-child{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--mdb-dropdown-item-border-radius);border-bottom-right-radius:var(--mdb-dropdown-item-border-radius)}.dropdown-menu>li:last-child .dropdown-item{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--mdb-dropdown-item-border-radius);border-bottom-right-radius:var(--mdb-dropdown-item-border-radius)}.dropdown-menu.animation{--mdb-dropdown-menu-animated-animation-duration: .55s;--mdb-dropdown-menu-animated-animation-timing-function: ease;display:block;animation-duration:var(--mdb-dropdown-menu-animated-animation-duration);animation-timing-function:var(--mdb-dropdown-menu-animated-animation-timing-function)}.dropdown-item{--mdb-dropdown-state-color: #16181b;--mdb-dropdown-state-background-color: #eee;padding:var(--mdb-dropdown-item-padding-y) var(--mdb-dropdown-item-padding-x);color:var(--mdb-dropdown-color);border-radius:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--mdb-dropdown-state-color);background-color:var(--mdb-dropdown-state-background-color)}.dropdown-item.active,.dropdown-item:active{color:var(--mdb-dropdown-state-color);background-color:var(--mdb-dropdown-state-background-color)}.hidden-arrow.dropdown-toggle:after{display:none}.animation{animation-duration:1s;animation-fill-mode:both;padding:auto}@media (prefers-reduced-motion){.animation{transition:none!important;animation:unset!important}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.fade-in{animation-name:fade-in}@keyframes fade-out{0%{opacity:1}to{opacity:0}}.fade-out{animation-name:fade-out}.dropdown-divider{--mdb-dropdown-divider-border-top-width: 2px;--mdb-dropdown-divider-border-top-bg: hsl(0, 0%, 96%);border-top:var(--mdb-dropdown-divider-border-top-width) solid var(--mdb-dropdown-divider-border-top-bg);opacity:1}.dropdown-menu INPUT:not(:-webkit-autofill),.dropdown-menu SELECT:not(:-webkit-autofill),.dropdown-menu TEXTAREA:not(:-webkit-autofill){animation-name:none!important}.btn-group,.btn-group-vertical{--mdb-btn-box-shadow: 0 4px 9px -4px rgba(0, 0, 0, .35);--mdb-btn-hover-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-focus-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-active-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-group-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;box-shadow:var(--mdb-btn-box-shadow);transition:var(--mdb-btn-group-transition)}.btn-group:hover,.btn-group-vertical:hover{box-shadow:var(--mdb-btn-hover-box-shadow)}.btn-group:focus,.btn-group.focus,.btn-group-vertical:focus,.btn-group-vertical.focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn-group:active,.btn-group.active,.btn-group-vertical:active,.btn-group-vertical.active{box-shadow:var(--mdb-btn-active-box-shadow)}.btn-group:active:focus,.btn-group.active:focus,.btn-group-vertical:active:focus,.btn-group-vertical.active:focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn-group:disabled,.btn-group.disabled,fieldset:disabled .btn-group,.btn-group-vertical:disabled,.btn-group-vertical.disabled,fieldset:disabled .btn-group-vertical{box-shadow:var(--mdb-btn-box-shadow);border:0}.btn-group>.btn,.btn-group-vertical>.btn{box-shadow:none}:not(.btn-check)+.btn-group>.btn:hover,.btn-group>.btn:first-child:hover,.btn-group>.btn:focus-visible,.btn-group>.btn:hover,:not(.btn-check)+.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:first-child:hover,.btn-group-vertical>.btn:focus-visible,.btn-group-vertical>.btn:hover{box-shadow:none!important}.btn-check:focus-visible+.btn-group>.btn,.btn-check:focus+.btn-group>.btn,.btn-group>.btn:focus,.btn-check:focus-visible+.btn-group-vertical>.btn,.btn-check:focus+.btn-group-vertical>.btn,.btn-group-vertical>.btn:focus{box-shadow:none}.btn-check:checked+.btn-group>.btn,.btn-check:active+.btn-group>.btn,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group>.btn.show,.btn-check:checked+.btn-group-vertical>.btn,.btn-check:active+.btn-group-vertical>.btn,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn.show{box-shadow:none}.btn-check:checked+.btn-group>.btn:focus,.btn-check:active+.btn-group>.btn:focus,.btn-group>.btn:active:focus,.btn-group>.btn.active:focus,.btn-group>.btn.show:focus,.btn-check:checked+.btn-group-vertical>.btn:focus,.btn-check:active+.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active:focus,.btn-group-vertical>.btn.active:focus,.btn-group-vertical>.btn.show:focus{box-shadow:none}.btn-group>.btn:disabled,.btn-group>.btn.disabled,fieldset:disabled .btn-group>.btn,.btn-group-vertical>.btn:disabled,.btn-group-vertical>.btn.disabled,fieldset:disabled .btn-group-vertical>.btn{box-shadow:none}.btn-group>.btn-group,.btn-group-vertical>.btn-group{box-shadow:none}.btn-group>.btn-link:first-child,.btn-group>.btn-tertiary:first-child,.btn-group-vertical>.btn-link:first-child,.btn-group-vertical>.btn-tertiary:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-link:last-child,.btn-group>.btn-tertiary:last-child,.btn-group-vertical>.btn-link:last-child,.btn-group-vertical>.btn-tertiary:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group,.btn-group-lg>.btn,.btn-group-sm>.btn{--mdb-btn-border-radius: .25rem;border-radius:var(--mdb-btn-border-radius)}.nav-tabs{border-bottom:0}.nav-tabs .nav-link{--mdb-nav-tabs-link-font-weight: 500;--mdb-nav-tabs-link-font-size: 12px;--mdb-nav-tabs-link-color: rgba(0, 0, 0, .55);--mdb-nav-tabs-link-padding-top: 17px;--mdb-nav-tabs-link-padding-bottom: 16px;--mdb-nav-tabs-link-padding-x: 29px;--mdb-nav-tabs-link-hover-bgc: #f7f7f7;--mdb-nav-tabs-link-border-bottom-width: 2px;--mdb-nav-tabs-link-active-color: #3b71ca;--mdb-nav-tabs-link-active-border-color: #3b71ca;border-width:0;border-bottom:var(--mdb-nav-tabs-link-border-bottom-width) solid rgba(0,0,0,0);border-radius:0;text-transform:uppercase;line-height:1;font-weight:var(--mdb-nav-tabs-link-font-weight);font-size:var(--mdb-nav-tabs-link-font-size);color:var(--mdb-nav-tabs-link-color);padding:var(--mdb-nav-tabs-link-padding-top) var(--mdb-nav-tabs-link-padding-x) var(--mdb-nav-tabs-link-padding-bottom) var(--mdb-nav-tabs-link-padding-x)}.nav-tabs .nav-link:hover{background-color:var(--mdb-nav-tabs-link-hover-bgc);border-color:#0000}.nav-tabs .nav-link:focus{border-color:#0000}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--mdb-nav-tabs-link-active-color);border-color:var(--mdb-nav-tabs-link-active-border-color)}.nav-pills{margin-left:-.5rem}.nav-pills .nav-link{--mdb-nav-pills-link-border-radius: .25rem;--mdb-nav-pills-link-font-size: 12px;--mdb-nav-pills-link-padding-top: 17px;--mdb-nav-pills-link-padding-bottom: 16px;--mdb-nav-pills-link-padding-x: 29px;--mdb-nav-pills-link-line-height: 1;--mdb-nav-pills-link-hover-bg: #f7f7f7;--mdb-nav-pills-link-font-weight: 500;--mdb-nav-pills-link-color: rgba(0, 0, 0, .55);--mdb-nav-pills-margin: .5rem;border-radius:var(--mdb-nav-pills-link-border-radius);font-size:var(--mdb-nav-pills-link-font-size);text-transform:uppercase;padding:var(--mdb-nav-pills-link-padding-top) var(--mdb-nav-pills-link-padding-x) var(--mdb-nav-pills-link-padding-bottom) var(--mdb-nav-pills-link-padding-x);line-height:var(--mdb-nav-pills-link-line-height);background-color:var(--mdb-nav-pills-link-hover-bg);font-weight:var(--mdb-nav-pills-link-font-weight);color:var(--mdb-nav-pills-link-color);margin:var(--mdb-nav-pills-margin)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{--mdb-nav-pills-link-active-bg: #e3ebf7;--mdb-nav-pills-link-active-color: #285192;background-color:var(--mdb-nav-pills-link-active-bg);color:var(--mdb-nav-pills-link-active-color)}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:auto}.navbar{--mdb-navbar-box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .05);--mdb-navbar-padding-top: .5625rem;--mdb-navbar-brand-img-margin-right: .25rem;box-shadow:var(--mdb-navbar-box-shadow);padding-top:var(--mdb-navbar-padding-top)}.navbar-toggler{border:0}.navbar-toggler:focus{box-shadow:none}.navbar-dark .navbar-toggler,.navbar-light .navbar-toggler{border:0}.navbar-brand{display:flex;align-items:center}.navbar-brand img{margin-right:var(--mdb-navbar-brand-img-margin-right)}.navbar-nav .dropdown-menu{position:absolute}.navbar-light .navbar-toggler-icon,.navbar-dark .navbar-toggler-icon{background-image:none}.card{border:0}.card .bg-image{border-top-left-radius:var(--mdb-card-border-radius);border-top-right-radius:var(--mdb-card-border-radius)}.card[class*=bg-] .card-header{--mdb-card-header-border-bottom-color: var(--mdb-border-color-translucent);border-bottom-color:var(--mdb-card-header-border-bottom-color)}.card[class*=bg-] .card-footer{--mdb-card-footer-border-top-color: var(--mdb-border-color-translucent);border-top-color:var(--mdb-card-footer-border-top-color)}.card-header{--mdb-card-header-border-width: 2px;--mdb-card-header-border-color: hsl(0, 0%, 96%);border-bottom:var(--mdb-card-header-border-width) solid var(--mdb-card-header-border-color)}.card-body[class*=bg-]{border-bottom-left-radius:var(--mdb-card-border-radius);border-bottom-right-radius:var(--mdb-card-border-radius)}.card-footer{--mdb-card-footer-border-color: hsl(0, 0%, 96%);--mdb-card-footer-border-width: 2px;border-top:var(--mdb-card-footer-border-width) solid var(--mdb-card-footer-border-color)}.card-img-left{border-top-left-radius:var(--mdb-card-border-radius);border-bottom-left-radius:var(--mdb-card-border-radius)}.navbar .breadcrumb{--mdb-breadcrumb-item-color: rgba(0, 0, 0, .55);--mdb-breadcrumb-item-hover-color: rgba(0, 0, 0, .7);--mdb-breadcrumb-item-before-color: rgba(0, 0, 0, .55);--mdb-breadcrumb-item-transition: color .15s ease-in-out;background-color:#0000;margin-bottom:0}.navbar .breadcrumb .breadcrumb-item a{color:var(--mdb-breadcrumb-item-color);transition:var(--mdb-breadcrumb-item-transition)}.navbar .breadcrumb .breadcrumb-item a:hover,.navbar .breadcrumb .breadcrumb-item a:focus{color:var(--mdb-breadcrumb-item-hover-color)}.navbar .breadcrumb .breadcrumb-item+.breadcrumb-item:before{color:var(--mdb-breadcrumb-item-before-color)}.pagination{--mdb-pagination-border-radius: .25rem;--mdb-pagination-active-box-shadow: 0 4px 9px -4px #e3ebf7;--mdb-pagination-active-transition: all .2s linear;--mdb-pagination-active-font-weight: 500;--mdb-pagination-circle-border-radius: 50%;--mdb-pagination-circle-padding-x: .841rem;--mdb-pagination-circle-padding-l-lg: 1.399414rem;--mdb-pagination-circle-padding-r-lg: 1.399415rem;--mdb-pagination-circle-padding-l-sm: .696rem;--mdb-pagination-circle-padding-r-sm: .688rem}.page-link{background-color:#0000;border:0;outline:0;border-radius:var(--mdb-pagination-border-radius)}.page-link:focus{box-shadow:none}.page-link.active,.active>.page-link{border:0;box-shadow:var(--mdb-pagination-active-box-shadow);transition:var(--mdb-pagination-active-transition);font-weight:var(--mdb-pagination-active-font-weight)}.page-item:not(:first-child) .page-link{margin-left:0}.page-item:first-child .page-link{border-top-left-radius:var(--mdb-pagination-border-radius);border-bottom-left-radius:var(--mdb-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--mdb-pagination-border-radius);border-bottom-right-radius:var(--mdb-pagination-border-radius)}.pagination-circle .page-item:first-child .page-link{border-radius:var(--mdb-pagination-circle-border-radius)}.pagination-circle .page-item:last-child .page-link{border-radius:var(--mdb-pagination-circle-border-radius)}.pagination-circle .page-link{border-radius:var(--mdb-pagination-circle-border-radius);padding-left:var(--mdb-pagination-circle-padding-x);padding-right:var(--mdb-pagination-circle-padding-x)}.pagination-circle.pagination-lg .page-link{padding-left:var(--mdb-pagination-circle-padding-l-lg);padding-right:var(--mdb-pagination-circle-padding-r-lg)}.pagination-circle.pagination-sm .page-link{padding-left:var(--mdb-pagination-circle-padding-l-sm);padding-right:var(--mdb-pagination-circle-padding-r-sm)}.badge-dot{--mdb-badge-border-radius: 4.5px;--mdb-badge-height: 9px;--mdb-badge-width: 9px;--mdb-badge-margin-left: -.3125rem;position:absolute;min-width:0;width:var(--mdb-badge-width);height:var(--mdb-badge-height);border-radius:var(--mdb-badge-border-radius);padding:0;margin-left:var(--mdb-badge-margin-left)}.badge-dot:empty{display:inline-block}.badge-notification{--mdb-badge-font-size: .6rem;--mdb-badge-padding-x: .45em;--mdb-badge-padding-y: .2em;--mdb-badge-margin-top: -.1rem;--mdb-badge-margin-left: -.5rem;position:absolute;font-size:var(--mdb-badge-font-size);padding:var(--mdb-badge-padding-y) var(--mdb-badge-padding-x);margin-top:var(--mdb-badge-margin-top);margin-left:var(--mdb-badge-margin-left)}.badge-primary{background-color:#dfe7f6;color:#2c58a0}.badge-primary i{color:#376fc8}.badge-secondary{background-color:#ebedef;color:#40464f}.badge-secondary i{color:#565e6c}.badge-success{background-color:#d6f0e0;color:#0d6832}.badge-success i{color:#139647}.badge-danger{background-color:#f9e1e5;color:#af233a}.badge-danger i{color:#d62e4a}.badge-warning{background-color:#fbf0da;color:#73510d}.badge-warning i{color:#a17112}.badge-info{background-color:#def1f7;color:#1c657d}.badge-info i{color:#2686a6}.badge-light{background-color:#f5f5f5;color:#4f4f4f}.badge-light i{color:#8c8c8c}.badge-dark{background-color:#332e2e;color:#f5f5f5}.badge-dark i{color:#e8e8e8}.alert{border:0}.alert-absolute{position:absolute}.alert-fixed{--mdb-alert-fixed-z-index: 1070;position:fixed;z-index:var(--mdb-alert-fixed-z-index)}.parent-alert-relative{position:relative}.alert-primary{background-color:#dfe7f6;color:#2c58a0}.alert-primary i{color:#376fc8}.alert-primary .alert-link{color:#2c58a0}.alert-primary .alert-link:hover{color:#234680}.alert-secondary{background-color:#ebedef;color:#40464f}.alert-secondary i{color:#565e6c}.alert-secondary .alert-link{color:#40464f}.alert-secondary .alert-link:hover{color:#33383f}.alert-success{background-color:#d6f0e0;color:#0d6832}.alert-success i{color:#139647}.alert-success .alert-link{color:#0d6832}.alert-success .alert-link:hover{color:#0a5328}.alert-danger{background-color:#f9e1e5;color:#af233a}.alert-danger i{color:#d62e4a}.alert-danger .alert-link{color:#af233a}.alert-danger .alert-link:hover{color:#8c1c2e}.alert-warning{background-color:#fbf0da;color:#73510d}.alert-warning i{color:#a17112}.alert-warning .alert-link{color:#73510d}.alert-warning .alert-link:hover{color:#5c410a}.alert-info{background-color:#def1f7;color:#1c657d}.alert-info i{color:#2686a6}.alert-info .alert-link{color:#1c657d}.alert-info .alert-link:hover{color:#165164}.alert-light{background-color:#f5f5f5;color:#4f4f4f}.alert-light i{color:#8c8c8c}.alert-light .alert-link{color:#4f4f4f}.alert-light .alert-link:hover{color:#3f3f3f}.alert-dark{background-color:#332e2e;color:#f5f5f5}.alert-dark i{color:#e8e8e8}.alert-dark .alert-link{color:#f5f5f5}.alert-dark .alert-link:hover{color:#c4c4c4}.progress{border-radius:0;box-shadow:none}.list-group{--mdb-list-group-item-transition-time: .5s}.list-group-item-action,.list-group-item-action:hover{transition:var(--mdb-list-group-item-transition-time)}.list-group-light{--mdb-list-group-light-item-py: 1rem;--mdb-list-group-light-item-border: 2px solid hsl(0, 0%, 96%);--mdb-list-group-light-item-border-width: 2px;--mdb-list-group-light-active-border-radius: .5rem;--mdb-list-group-light-active-bg: rgb(223, 231, 246);--mdb-list-group-light-active-color: rgb(44, 88, 160)}.list-group-light .list-group-item{padding:var(--mdb-list-group-light-item-py) 0;border:var(--mdb-list-group-light-item-border)}.list-group-light>.list-group-item{border-width:0 0 var(--mdb-list-group-light-item-border-width)}.list-group-light>.list-group-item:last-of-type{border:none}.list-group-light .active{border:none;border-radius:var(--mdb-list-group-light-active-border-radius);background-color:var(--mdb-list-group-light-active-bg);color:var(--mdb-list-group-light-active-color)}.list-group-light .list-group-item-action:hover{border-radius:var(--mdb-list-group-light-active-border-radius)}.list-group-light .list-group-item-action:focus{border-radius:var(--mdb-list-group-light-active-border-radius)}.list-group-small{--mdb-list-group-small-item-py: .5rem}.list-group-small .list-group-item{padding:var(--mdb-list-group-small-item-py) 0}.list-group-item-primary{background-color:#dfe7f6;color:#2c58a0}.list-group-item-primary i{color:#376fc8}.list-group-item-secondary{background-color:#ebedef;color:#40464f}.list-group-item-secondary i{color:#565e6c}.list-group-item-success{background-color:#d6f0e0;color:#0d6832}.list-group-item-success i{color:#139647}.list-group-item-danger{background-color:#f9e1e5;color:#af233a}.list-group-item-danger i{color:#d62e4a}.list-group-item-warning{background-color:#fbf0da;color:#73510d}.list-group-item-warning i{color:#a17112}.list-group-item-info{background-color:#def1f7;color:#1c657d}.list-group-item-info i{color:#2686a6}.list-group-item-light{background-color:#f5f5f5;color:#4f4f4f}.list-group-item-light i{color:#8c8c8c}.list-group-item-dark{background-color:#332e2e;color:#f5f5f5}.list-group-item-dark i{color:#e8e8e8}.btn-close:focus{box-shadow:none}.modal-content{--mdb-modal-box-shadow: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);border:0;box-shadow:var(--mdb-modal-box-shadow)}.toast{--mdb-toast-border-bottom-width: 2px;--mdb-toast-btn-close-width: 1.3em;--mdb-toast-btn-close-mr: -.375rem;--mdb-toast-btn-close-ml: .75rem;border:0}.toast .btn-close{width:var(--mdb-toast-btn-close-width)}.toast-header{border-bottom-width:var(--mdb-toast-border-bottom-width)}.toast-header .btn-close{margin-right:var(--mdb-toast-btn-close-mr);margin-left:var(--mdb-toast-btn-close-ml)}.parent-toast-relative{position:relative}.toast-absolute{position:absolute}.toast-fixed{position:fixed;z-index:var(--mdb-toast-zindex)}.toast-primary{background-color:#dfe7f6;color:#2c58a0;border-color:#c7d6f0}.toast-primary i{color:#376fc8}.toast-secondary{background-color:#ebedef;color:#40464f;border-color:#dadee1}.toast-secondary i{color:#565e6c}.toast-success{background-color:#d6f0e0;color:#0d6831;border-color:#c0e7d0}.toast-success i{color:#139647}.toast-danger{background-color:#f9e1e5;color:#af233a;border-color:#f4c8cf}.toast-danger i{color:#d62e4a}.toast-warning{background-color:#fbf0da;color:#73510d;border-color:#f9e4be}.toast-warning i{color:#a17112}.toast-info{background-color:#def1f7;color:#1c657d;border-color:#c6e6f1}.toast-info i{color:#2686a6}.toast-light{background-color:#f5f5f5;color:#4f4f4f;border-color:#e6e6e6}.toast-light i{color:#8c8c8c}.toast-dark{background-color:#332e2e;color:#f5f5f5;border-color:#443c3c}.toast-dark i{color:#e8e8e8}.tooltip{--mdb-tooltip-font-size: 14px}.tooltip.show{opacity:1}.tooltip .tooltip-arrow{display:none}.tooltip-inner{font-size:var(--mdb-tooltip-font-size)}.popover{--mdb-popover-border-bottom-width: 2px}.popover .popover-arrow{display:none}.popover-header{border-bottom:var(--mdb-popover-border-bottom-width) solid var(--mdb-popover-border-color)}.nav-pills.menu-sidebar .nav-link{--mdb-scrollspy-menu-sidebar-font-size: .8rem;--mdb-scrollspy-menu-sidebar-color: #262626;--mdb-scrollspy-menu-sidebar-line-height: 1.1rem;--mdb-scrollspy-menu-sidebar-padding-x: 5px;--mdb-scrollspy-menu-sidebar-font-weight: 400;--mdb-scrollspy-menu-sidebar-transition: all .2s ease-in-out;--mdb-scrollspy-menu-sidebar-margin-y: 3px;font-size:var(--mdb-scrollspy-menu-sidebar-font-size);background-color:#0000;color:var(--mdb-scrollspy-menu-sidebar-color);line-height:var(--mdb-scrollspy-menu-sidebar-line-height);padding:0 var(--mdb-scrollspy-menu-sidebar-padding-x);font-weight:var(--mdb-scrollspy-menu-sidebar-font-weight);transition:var(--mdb-scrollspy-menu-sidebar-transition);text-transform:initial;margin-top:var(--mdb-scrollspy-menu-sidebar-margin-y);margin-bottom:var(--mdb-scrollspy-menu-sidebar-margin-y)}.nav-pills.menu-sidebar .nav-link.active,.nav-pills.menu-sidebar .show>.nav-link{--mdb-scrollspy-menu-sidebar-active-color: #3b71ca;--mdb-scrollspy-menu-sidebar-active-font-weight: 600;--mdb-scrollspy-menu-sidebar-active-border-width: .125rem;--mdb-scrollspy-menu-sidebar-active-border-color: #3b71ca;background-color:#0000;box-shadow:none;color:var(--mdb-scrollspy-menu-sidebar-active-color);font-weight:var(--mdb-scrollspy-menu-sidebar-active-font-weight);border-left:var(--mdb-scrollspy-menu-sidebar-active-border-width) solid var(--mdb-scrollspy-menu-sidebar-active-border-color);border-radius:0}.nav-pills.menu-sidebar .collapsible-scrollspy~.nav{--mdb-scrollspy-collapsible-nav-transition-time: .5s;transition:height var(--mdb-scrollspy-collapsible-nav-transition-time) ease;flex-wrap:nowrap}.ripple-surface{position:relative;overflow:hidden;display:inline-block;vertical-align:bottom}.ripple-surface-unbound{overflow:visible}.ripple-wave{--mdb-ripple-wave-cubicBezier: cubic-bezier(0, 0, .15, 1);--mdb-ripple-wave-border-radius: 50%;--mdb-ripple-wave-opacity: .5;--mdb-ripple-wave-transform: scale(0);--mdb-ripple-wave-z-index: 999;--mdb-ripple-wave-active-transform: scale(1);background-image:radial-gradient(circle,rgba(0,0,0,.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(0,0,0,0) 70%);border-radius:var(--mdb-ripple-wave-border-radius);opacity:var(--mdb-ripple-wave-opacity);pointer-events:none;position:absolute;touch-action:none;transform:var(--mdb-ripple-wave-transform);transition-property:transform,opacity;transition-timing-function:var(--mdb-ripple-wave-cubicBezier),var(--mdb-ripple-wave-cubicBezier);z-index:var(--mdb-ripple-wave-z-index)}.ripple-wave.active{transform:var(--mdb-ripple-wave-active-transform);opacity:0}.btn .ripple-wave,.input-wrapper .ripple-wave{background-image:radial-gradient(circle,rgba(255,255,255,.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%)}.ripple-surface-primary .ripple-wave{background-image:radial-gradient(circle,rgba(59,113,202,.2) 0,rgba(59,113,202,.3) 40%,rgba(59,113,202,.4) 50%,rgba(59,113,202,.5) 60%,rgba(59,113,202,0) 70%)}.ripple-surface-secondary .ripple-wave{background-image:radial-gradient(circle,rgba(227,235,247,.2) 0,rgba(227,235,247,.3) 40%,rgba(227,235,247,.4) 50%,rgba(227,235,247,.5) 60%,rgba(227,235,247,0) 70%)}.ripple-surface-success .ripple-wave{background-image:radial-gradient(circle,rgba(20,164,77,.2) 0,rgba(20,164,77,.3) 40%,rgba(20,164,77,.4) 50%,rgba(20,164,77,.5) 60%,rgba(20,164,77,0) 70%)}.ripple-surface-danger .ripple-wave{background-image:radial-gradient(circle,rgba(220,76,100,.2) 0,rgba(220,76,100,.3) 40%,rgba(220,76,100,.4) 50%,rgba(220,76,100,.5) 60%,rgba(220,76,100,0) 70%)}.ripple-surface-warning .ripple-wave{background-image:radial-gradient(circle,rgba(228,161,27,.2) 0,rgba(228,161,27,.3) 40%,rgba(228,161,27,.4) 50%,rgba(228,161,27,.5) 60%,rgba(228,161,27,0) 70%)}.ripple-surface-info .ripple-wave{background-image:radial-gradient(circle,rgba(84,180,211,.2) 0,rgba(84,180,211,.3) 40%,rgba(84,180,211,.4) 50%,rgba(84,180,211,.5) 60%,rgba(84,180,211,0) 70%)}.ripple-surface-light .ripple-wave{background-image:radial-gradient(circle,rgba(251,251,251,.2) 0,rgba(251,251,251,.3) 40%,rgba(251,251,251,.4) 50%,rgba(251,251,251,.5) 60%,rgba(251,251,251,0) 70%)}.ripple-surface-dark .ripple-wave{background-image:radial-gradient(circle,rgba(51,45,45,.2) 0,rgba(51,45,45,.3) 40%,rgba(51,45,45,.4) 50%,rgba(51,45,45,.5) 60%,rgba(51,45,45,0) 70%)}.range{--mdb-range-thumb-height: 30px;--mdb-range-thumb-width: 30px;--mdb-range-thumb-top: -35px;--mdb-range-thumb-margin-left: -15px;--mdb-range-thumb-border-radius: 50% 50% 50% 0;--mdb-range-thumb-transform: scale(0);--mdb-range-thumb-transition: transform .2s ease-in-out;--mdb-range-thumb-value-font-size: 12px;--mdb-range-thumb-value-line-height: 30px;--mdb-range-thumb-value-color: rgb(255, 255, 255);--mdb-range-thumb-value-font-weight: 500;--mdb-range-thumb-background: #3b71ca;position:relative}.range .thumb{position:absolute;display:block;height:var(--mdb-range-thumb-height);width:var(--mdb-range-thumb-width);top:var(--mdb-range-thumb-top);margin-left:var(--mdb-range-thumb-margin-left);text-align:center;border-radius:var(--mdb-range-thumb-border-radius);transform:var(--mdb-range-thumb-transform);transform-origin:bottom;transition:var(--mdb-range-thumb-transition)}.range .thumb:after{position:absolute;display:block;content:"";transform:translate(-50%);width:100%;height:100%;top:0;border-radius:var(--mdb-range-thumb-border-radius);transform:rotate(-45deg);background:var(--mdb-range-thumb-background);z-index:-1}.range .thumb .thumb-value{display:block;font-size:var(--mdb-range-thumb-value-font-size);line-height:var(--mdb-range-thumb-value-line-height);color:var(--mdb-range-thumb-value-color);font-weight:var(--mdb-range-thumb-value-font-weight);z-index:2}.range .thumb.thumb-active{transform:scale(1)}.accordion-button:not(.collapsed):focus{box-shadow:var(--mdb-accordion-btn-focus-box-shadow)}.accordion-button:focus{border-color:var(--mdb-accordion-btn-focus-border-color);outline:0;box-shadow:none}.accordion-flush{--mdb-accordion-flush-btn-box-shadow: inset 0 -2px 0 hsl(0, 0%, 96%);--mdb-accordion-flush-border-bottom: 2px solid hsl(0, 0%, 96%)}.accordion-flush .accordion-button:not(.collapsed){box-shadow:var(--mdb-accordion-flush-btn-box-shadow)}.accordion-flush .accordion-item{border-bottom:var(--mdb-accordion-flush-border-bottom)}.accordion.accordion-borderless,.accordion.accordion-flush{--mdb-accordion-bg: transparent;background-color:var(--mdb-accordion-bg)}.accordion-borderless{--mdb-accordion-borderless-btn-border-radius: .5rem;--mdb-accordion-borderless-btn-bg: rgb(223, 231, 246);--mdb-accordion-borderless-btn-color: rgb(44, 88, 160)}.accordion-borderless .accordion-item{border:0}.accordion-borderless .accordion-item .accordion-button{border-radius:var(--mdb-accordion-borderless-btn-border-radius)}.accordion-borderless .accordion-item .accordion-button:not(.collapsed){background-color:var(--mdb-accordion-borderless-btn-bg);color:var(--mdb-accordion-borderless-btn-color);box-shadow:none}.carousel-control-prev-icon:after{content:"";--mdb-carousel-control-icon-font-size: 1.7rem;--mdb-carousel-control-icon-font-weight: 700;font-weight:var(--mdb-carousel-control-icon-font-weight);font-size:var(--mdb-carousel-control-icon-font-size);font-family:"Font Awesome 6 Pro","Font Awesome 6 Free"}.carousel-control-next-icon:after{content:"";--mdb-carousel-control-icon-font-size: 1.7rem;--mdb-carousel-control-icon-font-weight: 700;font-weight:var(--mdb-carousel-control-icon-font-weight);font-size:var(--mdb-carousel-control-icon-font-size);font-family:"Font Awesome 6 Pro","Font Awesome 6 Free"}.form-check-input[type=checkbox]{margin-right:0}.form-check-label{padding-left:.15rem}.badge:not(.badge-dot):not(.badge-notification){margin:0 .12rem}.btn{margin:0 .12rem}.input-group .btn{margin:0}.btn-group>.btn,.btn-group-vertical>.btn{margin:0}.carousel-indicators button{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid rgba(0,0,0,0);border-bottom:10px solid rgba(0,0,0,0);opacity:.5;transition:opacity .6s ease}.carousel-dark .carousel-indicators button{background-color:#000}@media (max-width: 575.98px){.navbar-expand-sm .navbar-collapse{display:none!important}.navbar-expand-sm .navbar-collapse.show{display:block!important}}@media (min-width: 576px){.navbar-expand-sm .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 767.98px){.navbar-expand-md .navbar-collapse{display:none!important}.navbar-expand-md .navbar-collapse.show{display:block!important}}@media (min-width: 768px){.navbar-expand-md .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 991.98px){.navbar-expand-lg .navbar-collapse{display:none!important}.navbar-expand-lg .navbar-collapse.show{display:block!important}}@media (min-width: 992px){.navbar-expand-lg .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 1199.98px){.navbar-expand-xl .navbar-collapse{display:none!important}.navbar-expand-xl .navbar-collapse.show{display:block!important}}@media (min-width: 1200px){.navbar-expand-xl .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 1399.98px){.navbar-expand-xxl .navbar-collapse{display:none!important}.navbar-expand-xxl .navbar-collapse.show{display:block!important}}@media (min-width: 1400px){.navbar-expand-xxl .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}.navbar-expand .navbar-collapse{display:none!important}.navbar-expand .navbar-collapse.show{display:block!important}.navbar-expand .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}.tooltip .tooltip_arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.tooltip[data-popper-placement^=top] .tooltip_arrow{border-width:5px 5px 0 5px;border-color:#6d6d6d rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0;left:-5px!important}.tooltip[data-popper-placement^=bottom] .tooltip_arrow{border-width:0 5px 5px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #6d6d6d rgba(0,0,0,0);top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0;left:-5px!important}.tooltip[data-popper-placement^=right] .tooltip_arrow{border-width:5px 5px 5px 0;border-color:rgba(0,0,0,0) #6d6d6d rgba(0,0,0,0) rgba(0,0,0,0);left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0;top:-5px!important}.tooltip[data-popper-placement^=left] .tooltip_arrow{border-width:5px 0 5px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #6d6d6d;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0;top:-5px!important}.fade-leave-active,.fade-enter-active{transition:opacity .2s linear}.fade-enter-to,.fade-leave-from{opacity:1}.tooltip{position:absolute}.popover .popover_arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px;color:#0000}.popover[data-popper-placement^=top] .popover_arrow{border-width:10px 10px 0 10px;border-color:#d6d6d6 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);bottom:-10px;margin-bottom:0;left:-10px!important}.popover[data-popper-placement^=top] .popover_arrow:before{content:"";display:inline-block;position:absolute;left:-10px;bottom:1.5px;border:solid;border-width:10px 10px 0 10px;border-color:#fff rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.popover[data-popper-placement^=bottom] .popover_arrow{border-width:0 10px 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #d6d6d6 rgba(0,0,0,0);top:-10px;margin-top:0;left:-10px!important}.popover[data-popper-placement^=bottom] .popover_arrow:before{content:"";display:inline-block;position:absolute;left:-10px;top:1.45px;border:solid;border-width:0 10px 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #fff rgba(0,0,0,0)}.popover[data-popper-placement^=right] .popover_arrow{border-width:10px 10px 10px 0;border-color:rgba(0,0,0,0) #d6d6d6 rgba(0,0,0,0) rgba(0,0,0,0);left:-10px;margin-left:0;top:-10px!important}.popover[data-popper-placement^=right] .popover_arrow:before{content:"";display:inline-block;position:absolute;top:-10px;left:1.45px;border:solid;border-width:10px 10px 10px 0;border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}.popover[data-popper-placement^=left] .popover_arrow{border-width:10px 0 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #d6d6d6;right:-10px;margin-right:0;top:-10px!important}.popover[data-popper-placement^=left] .popover_arrow:before{content:"";display:inline-block;position:absolute;top:-10px;right:1.45px;border:solid;border-width:10px 0 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #fff}.popover{position:absolute}.nav-pills.menu-sidebar .nav-link{border-left:0 solid rgba(0,0,0,0)}.valid-feedback{width:auto}.is-valid .form-outline .form-control~.form-label{color:#00b74a}.is-valid .form-outline .form-control~.form-notch .form-notch-leading,.is-valid .form-outline .form-control~.form-notch .form-notch-middle,.is-valid .form-outline .form-control~.form-notch .form-notch-trailing{border-color:#00b74a}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-middle,.is-valid .form-outline .form-control.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-middle{box-shadow:0 1px #00b74a}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #00b74a,0 1px #00b74a,0 -1px #00b74a}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #00b74a,0 -1px #00b74a,0 1px #00b74a}.is-valid .form-outline .form-control.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #00b74a,0 1px #00b74a,0 -1px #00b74a}.is-valid .form-outline .form-control.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #00b74a;border-top:1px solid rgba(0,0,0,0)}.is-valid .form-outline .form-control.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #00b74a,0 -1px #00b74a,0 1px #00b74a}.is-invalid .form-outline .form-control~.form-label{color:#f93154}.is-invalid .form-outline .form-control~.form-notch .form-notch-leading,.is-invalid .form-outline .form-control~.form-notch .form-notch-middle,.is-invalid .form-outline .form-control~.form-notch .form-notch-trailing{border-color:#f93154}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-middle,.is-invalid .form-outline .form-control.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-middle{box-shadow:0 1px #f93154}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #f93154,0 1px #f93154,0 -1px #f93154}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #f93154,0 -1px #f93154,0 1px #f93154}.is-invalid .form-outline .form-control.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #f93154,0 1px #f93154,0 -1px #f93154}.is-invalid .form-outline .form-control.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #f93154;border-top:1px solid rgba(0,0,0,0)}.is-invalid .form-outline .form-control.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #f93154,0 -1px #f93154,0 1px #f93154}.nav-tabs .nav-link,.nav-pills .nav-link{cursor:pointer}.input-group .btn-group{box-shadow:none}.input-group:not(.has-validation)>.btn-group:not(:last-child)>:not(:last-child):not(.dropdown-menu),.input-group:not(.has-validation)>.btn-group:not(:last-child)>.dropdown-toggle:last-child,.input-group:not(.has-validation)>.btn-group:not(:last-child) .dropdown-toggle:nth-last-child(n+1){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.btn-group>:last-child:not(.dropdown-toggle):not(.dropdown-menu),.input-group.has-validation>.btn-group>.dropdown-toggle:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.btn-group:last-child>:first-child:not(.dropdown-menu){border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text{min-height:calc(2.08rem + 2px);height:calc(2.08rem + 2px)}.input-group-lg .input-group-text{height:calc(2.645rem + 2px);font-size:1rem}.input-group-sm .input-group-text{min-height:calc(1.66rem + 2px);height:calc(1.66rem + 2px);font-size:.775rem;line-height:1.5}.form-outline .form-control:focus~.form-label~.form-label{transform:none;color:#0009}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}h1[data-v-9ca25a9c]{margin-top:2rem}.card[data-v-9ca25a9c]{margin-bottom:2rem}.status-message[data-v-9ca25a9c]{font-style:italic}.fork[data-v-9ca25a9c]{float:right;margin-top:-3em} +*/#mdb-table-flag tr{cursor:pointer}.mdb-flag-selected{border-top-left-radius:5px;border-top-right-radius:5px;text-align:center;max-width:150px;margin:10px auto 0}.mdb-selected-flag-text{margin:0 auto;max-width:150px}i.flag:not(.icon){display:inline-block;width:16px;height:11px;margin:0 .5em 0 0;line-height:11px;text-decoration:inherit;vertical-align:baseline;backface-visibility:hidden}i.flag:before{display:inline-block;width:16px;height:11px;content:"";background:url(https://mdbootstrap.com/img/svg/flags.png) no-repeat -108px -1976px}i.flag-ad:before,i.flag-andorra:before{background-position:0 0!important}i.flag-ae:before,i.flag-united-arab-emirates:before,i.flag-uae:before{background-position:0 -26px!important}i.flag-af:before,i.flag-afghanistan:before{background-position:0 -52px!important}i.flag-ag:before,i.flag-antigua:before{background-position:0 -78px!important}i.flag-ai:before,i.flag-anguilla:before{background-position:0 -104px!important}i.flag-al:before,i.flag-albania:before{background-position:0 -130px!important}i.flag-am:before,i.flag-armenia:before{background-position:0 -156px!important}i.flag-an:before,i.flag-netherlands-antilles:before{background-position:0 -182px!important}i.flag-ao:before,i.flag-angola:before{background-position:0 -208px!important}i.flag-ar:before,i.flag-argentina:before{background-position:0 -234px!important}i.flag-as:before,i.flag-american-samoa:before{background-position:0 -260px!important}i.flag-at:before,i.flag-austria:before{background-position:0 -286px!important}i.flag-au:before,i.flag-australia:before{background-position:0 -312px!important}i.flag-aw:before,i.flag-aruba:before{background-position:0 -338px!important}i.flag-ax:before,i.flag-aland-islands:before{background-position:0 -364px!important}i.flag-az:before,i.flag-azerbaijan:before{background-position:0 -390px!important}i.flag-ba:before,i.flag-bosnia:before{background-position:0 -416px!important}i.flag-bb:before,i.flag-barbados:before{background-position:0 -442px!important}i.flag-bd:before,i.flag-bangladesh:before{background-position:0 -468px!important}i.flag-be:before,i.flag-belgium:before{background-position:0 -494px!important}i.flag-bf:before,i.flag-burkina-faso:before{background-position:0 -520px!important}i.flag-bg:before,i.flag-bulgaria:before{background-position:0 -546px!important}i.flag-bh:before,i.flag-bahrain:before{background-position:0 -572px!important}i.flag-bi:before,i.flag-burundi:before{background-position:0 -598px!important}i.flag-bj:before,i.flag-benin:before{background-position:0 -624px!important}i.flag-bm:before,i.flag-bermuda:before{background-position:0 -650px!important}i.flag-bn:before,i.flag-brunei:before{background-position:0 -676px!important}i.flag-bo:before,i.flag-bolivia:before{background-position:0 -702px!important}i.flag-br:before,i.flag-brazil:before{background-position:0 -728px!important}i.flag-bs:before,i.flag-bahamas:before{background-position:0 -754px!important}i.flag-bt:before,i.flag-bhutan:before{background-position:0 -780px!important}i.flag-bv:before,i.flag-bouvet-island:before{background-position:0 -806px!important}i.flag-bw:before,i.flag-botswana:before{background-position:0 -832px!important}i.flag-by:before,i.flag-belarus:before{background-position:0 -858px!important}i.flag-bz:before,i.flag-belize:before{background-position:0 -884px!important}i.flag-ca:before,i.flag-canada:before{background-position:0 -910px!important}i.flag-cc:before,i.flag-cocos-islands:before{background-position:0 -962px!important}i.flag-cd:before,i.flag-congo:before{background-position:0 -988px!important}i.flag-cf:before,i.flag-central-african-republic:before{background-position:0 -1014px!important}i.flag-cg:before,i.flag-congo-brazzaville:before{background-position:0 -1040px!important}i.flag-ch:before,i.flag-switzerland:before{background-position:0 -1066px!important}i.flag-ci:before,i.flag-cote-divoire:before{background-position:0 -1092px!important}i.flag-ck:before,i.flag-cook-islands:before{background-position:0 -1118px!important}i.flag-cl:before,i.flag-chile:before{background-position:0 -1144px!important}i.flag-cm:before,i.flag-cameroon:before{background-position:0 -1170px!important}i.flag-cn:before,i.flag-china:before{background-position:0 -1196px!important}i.flag-co:before,i.flag-colombia:before{background-position:0 -1222px!important}i.flag-cr:before,i.flag-costa-rica:before{background-position:0 -1248px!important}i.flag-cs:before,i.flag-serbia:before{background-position:0 -1274px!important}i.flag-cu:before,i.flag-cuba:before{background-position:0 -1300px!important}i.flag-cv:before,i.flag-cape-verde:before{background-position:0 -1326px!important}i.flag-cx:before,i.flag-christmas-island:before{background-position:0 -1352px!important}i.flag-cy:before,i.flag-cyprus:before{background-position:0 -1378px!important}i.flag-cz:before,i.flag-czech-republic:before{background-position:0 -1404px!important}i.flag-de:before,i.flag-germany:before{background-position:0 -1430px!important}i.flag-dj:before,i.flag-djibouti:before{background-position:0 -1456px!important}i.flag-dk:before,i.flag-denmark:before{background-position:0 -1482px!important}i.flag-dm:before,i.flag-dominica:before{background-position:0 -1508px!important}i.flag-do:before,i.flag-dominican-republic:before{background-position:0 -1534px!important}i.flag-dz:before,i.flag-algeria:before{background-position:0 -1560px!important}i.flag-ec:before,i.flag-ecuador:before{background-position:0 -1586px!important}i.flag-ee:before,i.flag-estonia:before{background-position:0 -1612px!important}i.flag-eg:before,i.flag-egypt:before{background-position:0 -1638px!important}i.flag-eh:before,i.flag-western-sahara:before{background-position:0 -1664px!important}i.flag-gb-eng:before,i.flag-england:before{background-position:0 -1690px!important}i.flag-er:before,i.flag-eritrea:before{background-position:0 -1716px!important}i.flag-es:before,i.flag-spain:before{background-position:0 -1742px!important}i.flag-et:before,i.flag-ethiopia:before{background-position:0 -1768px!important}i.flag-eu:before,i.flag-european-union:before{background-position:0 -1794px!important}i.flag-fi:before,i.flag-finland:before{background-position:0 -1846px!important}i.flag-fj:before,i.flag-fiji:before{background-position:0 -1872px!important}i.flag-fk:before,i.flag-falkland-islands:before{background-position:0 -1898px!important}i.flag-fm:before,i.flag-micronesia:before{background-position:0 -1924px!important}i.flag-fo:before,i.flag-faroe-islands:before{background-position:0 -1950px!important}i.flag-fr:before,i.flag-france:before{background-position:0 -1976px!important}i.flag-ga:before,i.flag-gabon:before{background-position:-36px 0!important}i.flag-gb:before,i.flag-uk:before,i.flag-united-kingdom:before{background-position:-36px -26px!important}i.flag-gd:before,i.flag-grenada:before{background-position:-36px -52px!important}i.flag-ge:before,i.flag-georgia:before{background-position:-36px -78px!important}i.flag-gf:before,i.flag-french-guiana:before{background-position:-36px -104px!important}i.flag-gh:before,i.flag-ghana:before{background-position:-36px -130px!important}i.flag-gi:before,i.flag-gibraltar:before{background-position:-36px -156px!important}i.flag-gl:before,i.flag-greenland:before{background-position:-36px -182px!important}i.flag-gm:before,i.flag-gambia:before{background-position:-36px -208px!important}i.flag-gn:before,i.flag-guinea:before{background-position:-36px -234px!important}i.flag-gp:before,i.flag-guadeloupe:before{background-position:-36px -260px!important}i.flag-gq:before,i.flag-equatorial-guinea:before{background-position:-36px -286px!important}i.flag-gr:before,i.flag-greece:before{background-position:-36px -312px!important}i.flag-gs:before,i.flag-sandwich-islands:before{background-position:-36px -338px!important}i.flag-gt:before,i.flag-guatemala:before{background-position:-36px -364px!important}i.flag-gu:before,i.flag-guam:before{background-position:-36px -390px!important}i.flag-gw:before,i.flag-guinea-bissau:before{background-position:-36px -416px!important}i.flag-gy:before,i.flag-guyana:before{background-position:-36px -442px!important}i.flag-hk:before,i.flag-hong-kong:before{background-position:-36px -468px!important}i.flag-hm:before,i.flag-heard-island:before{background-position:-36px -494px!important}i.flag-hn:before,i.flag-honduras:before{background-position:-36px -520px!important}i.flag-hr:before,i.flag-croatia:before{background-position:-36px -546px!important}i.flag-ht:before,i.flag-haiti:before{background-position:-36px -572px!important}i.flag-hu:before,i.flag-hungary:before{background-position:-36px -598px!important}i.flag-id:before,i.flag-indonesia:before{background-position:-36px -624px!important}i.flag-ie:before,i.flag-ireland:before{background-position:-36px -650px!important}i.flag-il:before,i.flag-israel:before{background-position:-36px -676px!important}i.flag-in:before,i.flag-india:before{background-position:-36px -702px!important}i.flag-io:before,i.flag-indian-ocean-territory:before{background-position:-36px -728px!important}i.flag-iq:before,i.flag-iraq:before{background-position:-36px -754px!important}i.flag-ir:before,i.flag-iran:before{background-position:-36px -780px!important}i.flag-is:before,i.flag-iceland:before{background-position:-36px -806px!important}i.flag-it:before,i.flag-italy:before{background-position:-36px -832px!important}i.flag-jm:before,i.flag-jamaica:before{background-position:-36px -858px!important}i.flag-jo:before,i.flag-jordan:before{background-position:-36px -884px!important}i.flag-jp:before,i.flag-japan:before{background-position:-36px -910px!important}i.flag-ke:before,i.flag-kenya:before{background-position:-36px -936px!important}i.flag-kg:before,i.flag-kyrgyzstan:before{background-position:-36px -962px!important}i.flag-kh:before,i.flag-cambodia:before{background-position:-36px -988px!important}i.flag-ki:before,i.flag-kiribati:before{background-position:-36px -1014px!important}i.flag-km:before,i.flag-comoros:before{background-position:-36px -1040px!important}i.flag-kn:before,i.flag-saint-kitts-and-nevis:before{background-position:-36px -1066px!important}i.flag-kp:before,i.flag-north-korea:before{background-position:-36px -1092px!important}i.flag-kr:before,i.flag-south-korea:before{background-position:-36px -1118px!important}i.flag-kw:before,i.flag-kuwait:before{background-position:-36px -1144px!important}i.flag-ky:before,i.flag-cayman-islands:before{background-position:-36px -1170px!important}i.flag-kz:before,i.flag-kazakhstan:before{background-position:-36px -1196px!important}i.flag-la:before,i.flag-laos:before{background-position:-36px -1222px!important}i.flag-lb:before,i.flag-lebanon:before{background-position:-36px -1248px!important}i.flag-lc:before,i.flag-saint-lucia:before{background-position:-36px -1274px!important}i.flag-li:before,i.flag-liechtenstein:before{background-position:-36px -1300px!important}i.flag-lk:before,i.flag-sri-lanka:before{background-position:-36px -1326px!important}i.flag-lr:before,i.flag-liberia:before{background-position:-36px -1352px!important}i.flag-ls:before,i.flag-lesotho:before{background-position:-36px -1378px!important}i.flag-lt:before,i.flag-lithuania:before{background-position:-36px -1404px!important}i.flag-lu:before,i.flag-luxembourg:before{background-position:-36px -1430px!important}i.flag-lv:before,i.flag-latvia:before{background-position:-36px -1456px!important}i.flag-ly:before,i.flag-libya:before{background-position:-36px -1482px!important}i.flag-ma:before,i.flag-morocco:before{background-position:-36px -1508px!important}i.flag-mc:before,i.flag-monaco:before{background-position:-36px -1534px!important}i.flag-md:before,i.flag-moldova:before{background-position:-36px -1560px!important}i.flag-me:before,i.flag-montenegro:before{background-position:-36px -1586px!important}i.flag-mg:before,i.flag-madagascar:before{background-position:-36px -1613px!important}i.flag-mh:before,i.flag-marshall-islands:before{background-position:-36px -1639px!important}i.flag-mk:before,i.flag-macedonia:before{background-position:-36px -1665px!important}i.flag-ml:before,i.flag-mali:before{background-position:-36px -1691px!important}i.flag-mm:before,i.flag-myanmar:before,i.flag-burma:before{background-position:-73px -1821px!important}i.flag-mn:before,i.flag-mongolia:before{background-position:-36px -1743px!important}i.flag-mo:before,i.flag-macau:before{background-position:-36px -1769px!important}i.flag-mp:before,i.flag-northern-mariana-islands:before{background-position:-36px -1795px!important}i.flag-mq:before,i.flag-martinique:before{background-position:-36px -1821px!important}i.flag-mr:before,i.flag-mauritania:before{background-position:-36px -1847px!important}i.flag-ms:before,i.flag-montserrat:before{background-position:-36px -1873px!important}i.flag-mt:before,i.flag-malta:before{background-position:-36px -1899px!important}i.flag-mu:before,i.flag-mauritius:before{background-position:-36px -1925px!important}i.flag-mv:before,i.flag-maldives:before{background-position:-36px -1951px!important}i.flag-mw:before,i.flag-malawi:before{background-position:-36px -1977px!important}i.flag-mx:before,i.flag-mexico:before{background-position:-72px 0!important}i.flag-my:before,i.flag-malaysia:before{background-position:-72px -26px!important}i.flag-mz:before,i.flag-mozambique:before{background-position:-72px -52px!important}i.flag-na:before,i.flag-namibia:before{background-position:-72px -78px!important}i.flag-nc:before,i.flag-new-caledonia:before{background-position:-72px -104px!important}i.flag-ne:before,i.flag-niger:before{background-position:-72px -130px!important}i.flag-nf:before,i.flag-norfolk-island:before{background-position:-72px -156px!important}i.flag-ng:before,i.flag-nigeria:before{background-position:-72px -182px!important}i.flag-ni:before,i.flag-nicaragua:before{background-position:-72px -208px!important}i.flag-nl:before,i.flag-netherlands:before{background-position:-72px -234px!important}i.flag-no:before,i.flag-norway:before{background-position:-72px -260px!important}i.flag-np:before,i.flag-nepal:before{background-position:-72px -286px!important}i.flag-nr:before,i.flag-nauru:before{background-position:-72px -312px!important}i.flag-nu:before,i.flag-niue:before{background-position:-72px -338px!important}i.flag-nz:before,i.flag-new-zealand:before{background-position:-72px -364px!important}i.flag-om:before,i.flag-oman:before{background-position:-72px -390px!important}i.flag-pa:before,i.flag-panama:before{background-position:-72px -416px!important}i.flag-pe:before,i.flag-peru:before{background-position:-72px -442px!important}i.flag-pf:before,i.flag-french-polynesia:before{background-position:-72px -468px!important}i.flag-pg:before,i.flag-new-guinea:before{background-position:-72px -494px!important}i.flag-ph:before,i.flag-philippines:before{background-position:-72px -520px!important}i.flag-pk:before,i.flag-pakistan:before{background-position:-72px -546px!important}i.flag-pl:before,i.flag-poland:before{background-position:-72px -572px!important}i.flag-pm:before,i.flag-saint-pierre:before{background-position:-72px -598px!important}i.flag-pn:before,i.flag-pitcairn-islands:before{background-position:-72px -624px!important}i.flag-pr:before,i.flag-puerto-rico:before{background-position:-72px -650px!important}i.flag-ps:before,i.flag-palestine:before{background-position:-72px -676px!important}i.flag-pt:before,i.flag-portugal:before{background-position:-72px -702px!important}i.flag-pw:before,i.flag-palau:before{background-position:-72px -728px!important}i.flag-py:before,i.flag-paraguay:before{background-position:-72px -754px!important}i.flag-qa:before,i.flag-qatar:before{background-position:-72px -780px!important}i.flag-re:before,i.flag-reunion:before{background-position:-72px -806px!important}i.flag-ro:before,i.flag-romania:before{background-position:-72px -832px!important}i.flag-rs:before,i.flag-serbia:before{background-position:-72px -858px!important}i.flag-ru:before,i.flag-russia:before{background-position:-72px -884px!important}i.flag-rw:before,i.flag-rwanda:before{background-position:-72px -910px!important}i.flag-sa:before,i.flag-saudi-arabia:before{background-position:-72px -936px!important}i.flag-sb:before,i.flag-solomon-islands:before{background-position:-72px -962px!important}i.flag-sc:before,i.flag-seychelles:before{background-position:-72px -988px!important}i.flag-gb-sct:before,i.flag-scotland:before{background-position:-72px -1014px!important}i.flag-sd:before,i.flag-sudan:before{background-position:-72px -1040px!important}i.flag-se:before,i.flag-sweden:before{background-position:-72px -1066px!important}i.flag-sg:before,i.flag-singapore:before{background-position:-72px -1092px!important}i.flag-sh:before,i.flag-saint-helena:before{background-position:-72px -1118px!important}i.flag-si:before,i.flag-slovenia:before{background-position:-72px -1144px!important}i.flag-sj:before,i.flag-svalbard:before,i.flag-jan-mayen:before{background-position:-72px -1170px!important}i.flag-sk:before,i.flag-slovakia:before{background-position:-72px -1196px!important}i.flag-sl:before,i.flag-sierra-leone:before{background-position:-72px -1222px!important}i.flag-sm:before,i.flag-san-marino:before{background-position:-72px -1248px!important}i.flag-sn:before,i.flag-senegal:before{background-position:-72px -1274px!important}i.flag-so:before,i.flag-somalia:before{background-position:-72px -1300px!important}i.flag-sr:before,i.flag-suriname:before{background-position:-72px -1326px!important}i.flag-st:before,i.flag-sao-tome:before{background-position:-72px -1352px!important}i.flag-sv:before,i.flag-el-salvador:before{background-position:-72px -1378px!important}i.flag-sy:before,i.flag-syria:before{background-position:-72px -1404px!important}i.flag-sz:before,i.flag-swaziland:before{background-position:-72px -1430px!important}i.flag-tc:before,i.flag-caicos-islands:before{background-position:-72px -1456px!important}i.flag-td:before,i.flag-chad:before{background-position:-72px -1482px!important}i.flag-tf:before,i.flag-french-territories:before{background-position:-72px -1508px!important}i.flag-tg:before,i.flag-togo:before{background-position:-72px -1534px!important}i.flag-th:before,i.flag-thailand:before{background-position:-72px -1560px!important}i.flag-tj:before,i.flag-tajikistan:before{background-position:-72px -1586px!important}i.flag-tk:before,i.flag-tokelau:before{background-position:-72px -1612px!important}i.flag-tl:before,i.flag-timorleste:before{background-position:-72px -1638px!important}i.flag-tm:before,i.flag-turkmenistan:before{background-position:-72px -1664px!important}i.flag-tn:before,i.flag-tunisia:before{background-position:-72px -1690px!important}i.flag-to:before,i.flag-tonga:before{background-position:-72px -1716px!important}i.flag-tr:before,i.flag-turkey:before{background-position:-72px -1742px!important}i.flag-tt:before,i.flag-trinidad:before{background-position:-72px -1768px!important}i.flag-tv:before,i.flag-tuvalu:before{background-position:-72px -1794px!important}i.flag-tw:before,i.flag-taiwan:before{background-position:-72px -1820px!important}i.flag-tz:before,i.flag-tanzania:before{background-position:-72px -1846px!important}i.flag-ua:before,i.flag-ukraine:before{background-position:-72px -1872px!important}i.flag-ug:before,i.flag-uganda:before{background-position:-72px -1898px!important}i.flag-um:before,i.flag-us-minor-islands:before{background-position:-72px -1924px!important}i.flag-us:before,i.flag-america:before,i.flag-united-states:before{background-position:-72px -1950px!important}i.flag-uy:before,i.flag-uruguay:before{background-position:-72px -1976px!important}i.flag-uz:before,i.flag-uzbekistan:before{background-position:-108px 0!important}i.flag-va:before,i.flag-vatican-city:before{background-position:-108px -26px!important}i.flag-vc:before,i.flag-saint-vincent:before{background-position:-108px -52px!important}i.flag-ve:before,i.flag-venezuela:before{background-position:-108px -78px!important}i.flag-vg:before,i.flag-british-virgin-islands:before{background-position:-108px -104px!important}i.flag-vi:before,i.flag-us-virgin-islands:before{background-position:-108px -130px!important}i.flag-vn:before,i.flag-vietnam:before{background-position:-108px -156px!important}i.flag-vu:before,i.flag-vanuatu:before{background-position:-108px -182px!important}i.flag-gb-wls:before,i.flag-wales:before{background-position:-108px -208px!important}i.flag-wf:before,i.flag-wallis-and-futuna:before{background-position:-108px -234px!important}i.flag-ws:before,i.flag-samoa:before{background-position:-108px -260px!important}i.flag-ye:before,i.flag-yemen:before{background-position:-108px -286px!important}i.flag-yt:before,i.flag-mayotte:before{background-position:-108px -312px!important}i.flag-za:before,i.flag-south-africa:before{background-position:-108px -338px!important}i.flag-zm:before,i.flag-zambia:before{background-position:-108px -364px!important}i.flag-zw:before,i.flag-zimbabwe:before{background-position:-108px -390px!important}.bg-fixed{background-attachment:fixed}.bg-image{position:relative;overflow:hidden;background-repeat:no-repeat;background-size:cover;background-position:center center}.mask{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:hidden;background-attachment:fixed}.hover-overlay .mask{--mdb-image-hover-transition: all .3s ease-in-out;opacity:0;transition:var(--mdb-image-hover-transition)}.hover-overlay .mask:hover{opacity:1}.hover-zoom{--mdb-image-hover-zoom-transition: all .3s linear;--mdb-image-hover-zoom-transform: scale(1.1)}.hover-zoom img,.hover-zoom video{transition:var(--mdb-image-hover-zoom-transition)}.hover-zoom:hover img,.hover-zoom:hover video{transform:var(--mdb-image-hover-zoom-transform)}.hover-shadow,.card.hover-shadow,.hover-shadow-soft,.card.hover-shadow-soft{--mdb-image-hover-shadow-transition: all .3s ease-in-out;transition:var(--mdb-image-hover-shadow-transition)}.hover-shadow:hover,.card.hover-shadow:hover,.hover-shadow-soft:hover,.card.hover-shadow-soft:hover{transition:var(--mdb-image-hover-shadow-transition)}.hover-shadow,.card.hover-shadow{--mdb-image-hover-shadow-box-shadow: 0 2px 15px -3px rgba(0, 0, 0, .16), 0 10px 20px -2px rgba(0, 0, 0, .1);box-shadow:none}.hover-shadow:hover,.card.hover-shadow:hover{box-shadow:var(--mdb-image-hover-shadow-box-shadow)}.hover-shadow-soft,.card.hover-shadow-soft{--mdb-image-hover-shadow-box-shadow-soft: 0 2px 25px -5px rgba(0, 0, 0, .07), 0 25px 21px -5px rgba(0, 0, 0, .04);box-shadow:none}.hover-shadow-soft:hover,.card.hover-shadow-soft:hover{box-shadow:var(--mdb-image-hover-shadow-box-shadow-soft)}.form-control{min-height:auto;padding:4.5px 12px 3.68px;transition:all .1s linear;box-shadow:none}.form-control:focus{box-shadow:none;transition:all .1s linear;border-color:#3b71ca;box-shadow:inset 0 0 0 1px #3b71ca}.form-control.form-control-sm{font-size:.775rem;line-height:1.5}.form-control.form-control-lg{line-height:2.15;border-radius:.25rem}.form-outline{position:relative;width:100%}.form-outline .form-helper{width:100%;position:absolute;font-size:.875em;color:#757575}.form-outline .form-helper .form-counter{text-align:right}.form-outline .trailing{position:absolute;right:10px;left:initial;top:50%;transform:translateY(-50%);pointer-events:none}.form-outline .form-icon-trailing{padding-right:2rem!important}.form-outline .form-control{min-height:auto;padding:.32rem .75rem;border:0;background:rgba(0,0,0,0);transition:all .2s linear}.form-outline .form-control~.form-label{position:absolute;top:0;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;left:.75rem;padding-top:.37rem;pointer-events:none;transform-origin:0 0;transition:all .2s ease-out;color:#0009;margin-bottom:0}.form-outline .form-control~.form-notch{display:flex;position:absolute;left:0;top:0;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}.form-outline .form-control~.form-notch div{pointer-events:none;border:1px solid;border-color:#bdbdbd;box-sizing:border-box;background:rgba(0,0,0,0);transition:all .2s linear}.form-outline .form-control~.form-notch .form-notch-leading{left:0;top:0;height:100%;width:.5rem;border-right:none;border-radius:.25rem 0 0 .25rem}.form-outline .form-control~.form-notch .form-notch-middle{flex:0 0 auto;width:auto;max-width:calc(100% - 1rem);height:100%;border-right:none;border-left:none}.form-outline .form-control~.form-notch .form-notch-trailing{flex-grow:1;height:100%;border-left:none;border-radius:0 .25rem .25rem 0}.form-outline .form-control:not(.placeholder-active)::placeholder{opacity:0}.form-outline .form-control:focus::placeholder,.form-outline .form-control.active::placeholder{opacity:1}.form-outline .form-control:focus{box-shadow:none!important}.form-outline .form-control:focus~.form-label,.form-outline .form-control.active~.form-label{transform:translateY(-1rem) translateY(.1rem) scale(.8)}.form-outline .form-control:focus~.form-label{color:#3b71ca}.form-outline .form-control:focus~.form-notch .form-notch-middle,.form-outline .form-control.active~.form-notch .form-notch-middle{border-right:none;border-left:none;border-top:1px solid rgba(0,0,0,0)}.form-outline .form-control:focus~.form-notch .form-notch-middle{border-color:#3b71ca;box-shadow:0 1px #3b71ca;border-top:1px solid rgba(0,0,0,0)}.form-outline .form-control:focus~.form-notch .form-notch-leading,.form-outline .form-control.active~.form-notch .form-notch-leading{border-right:none}.form-outline .form-control:focus~.form-notch .form-notch-leading{border-color:#3b71ca;box-shadow:-1px 0 #3b71ca,0 1px #3b71ca,0 -1px #3b71ca}.form-outline .form-control:focus~.form-notch .form-notch-trailing,.form-outline .form-control.active~.form-notch .form-notch-trailing{border-left:none}.form-outline .form-control:focus~.form-notch .form-notch-trailing{border-color:#3b71ca;box-shadow:1px 0 #3b71ca,0 -1px #3b71ca,0 1px #3b71ca}.form-outline .form-control:disabled,.form-outline .form-control.disabled,.form-outline .form-control[readonly]{background-color:#e9ecef}.form-outline .form-control.form-control-lg{font-size:1rem;line-height:2.15}.form-outline .form-control.form-control-lg~.form-label{padding-top:.7rem}.form-outline .form-control.form-control-lg:focus~.form-label,.form-outline .form-control.form-control-lg.active~.form-label{transform:translateY(-1.25rem) translateY(.1rem) scale(.8)}.form-outline .form-control.form-control-sm{padding-top:.32rem;padding-bottom:.32rem;font-size:.775rem;line-height:1.5}.form-outline .form-control.form-control-sm~.form-label{padding-top:.33rem;font-size:.775rem}.form-outline .form-control.form-control-sm:focus~.form-label,.form-outline .form-control.form-control-sm.active~.form-label{transform:translateY(-.85rem) translateY(.1rem) scale(.8)}.form-outline.form-white .form-control{color:#fff}.form-outline.form-white .form-control~.form-label{color:#fbfbfb}.form-outline.form-white .form-control~.form-notch div{border-color:#fbfbfb}.form-outline.form-white .form-control:focus~.form-label{color:#fff}.form-outline.form-white .form-control:focus~.form-notch .form-notch-middle{border-color:#fff;box-shadow:0 1px #fff;border-top:1px solid rgba(0,0,0,0)}.form-outline.form-white .form-control:focus~.form-notch .form-notch-leading{border-color:#fff;box-shadow:-1px 0 #fff,0 1px #fff,0 -1px #fff}.form-outline.form-white .form-control:focus~.form-notch .form-notch-trailing{border-color:#fff;box-shadow:1px 0 #fff,0 -1px #fff,0 1px #fff}.form-outline.form-white .form-control::placeholder{color:#ffffffb3}.form-outline.form-white .form-control:disabled,.form-outline.form-white .form-control.disabled,.form-outline.form-white .form-control[readonly]{background-color:#ffffff73}.select-input.form-control[readonly]:not([disabled]){background-color:#0000}.form-select{transition:all .2s linear}.form-select:focus{border-color:#3b71ca;outline:0;box-shadow:inset 0 0 0 1px #3b71ca}.form-check{min-height:1.5rem}.form-check-input{position:relative;width:1.125rem;height:1.125rem;background-color:#fff;border:.125rem solid rgba(0,0,0,.25)}.form-check-input:before{content:"";position:absolute;box-shadow:0 0 0 13px #0000;border-radius:50%;width:.875rem;height:.875rem;background-color:#0000;opacity:0;pointer-events:none;transform:scale(0)}.form-check-input:hover{cursor:pointer}.form-check-input:hover:before{opacity:.04;box-shadow:0 0 0 13px #0009}.form-check-input:focus{box-shadow:none;border-color:#00000040;transition:border-color .2s}.form-check-input:focus:before{opacity:.12;box-shadow:0 0 0 13px #0009;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-check-input:checked{border-color:#3b71ca}.form-check-input:checked:before{opacity:.16}.form-check-input:checked:after{content:"";position:absolute}.form-check-input:checked:focus{border-color:#3b71ca}.form-check-input:checked:focus:before{box-shadow:0 0 0 13px #3b71ca;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-check-input:indeterminate:focus:before{box-shadow:0 0 0 13px #3b71ca}.form-check-input[type=checkbox]{border-radius:.25rem;margin-top:.19em;margin-right:6px}.form-check-input[type=checkbox]:focus:after{content:"";position:absolute;width:.875rem;height:.875rem;z-index:1;display:block;border-radius:0;background-color:#fff}.form-check-input[type=checkbox]:checked{background-image:none;background-color:#3b71ca}.form-check-input[type=checkbox]:checked:after{display:block;transform:rotate(45deg);border-width:.125rem;border-color:#fff;width:.375rem;height:.8125rem;border-style:solid;border-top:0;border-left:0;margin-left:.25rem;margin-top:-1px;background-color:#0000}.form-check-input[type=checkbox]:checked:focus{background-color:#3b71ca}.form-check-input[type=checkbox]:indeterminate{border-color:#3b71ca}.form-check-input[type=radio]{border-radius:50%;width:1.25rem;height:1.25rem;margin-top:.125em;margin-right:4px}.form-check-input[type=radio]:before{width:1rem;height:1rem}.form-check-input[type=radio]:after{content:"";position:absolute;width:1rem;height:1rem;z-index:1;display:block;border-radius:50%;background-color:#fff}.form-check-input[type=radio]:checked{background-image:none;background-color:#fff}.form-check-input[type=radio]:checked:after{border-radius:50%;width:.625rem;height:.625rem;border-color:#3b71ca;background-color:#3b71ca;transition:border-color;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.form-check-input[type=radio]:checked:focus{background-color:#fff}.form-check-label:hover{cursor:pointer}.form-switch .form-check-input{background-image:none;border-width:0;border-radius:.4375rem;width:2rem;height:.875rem;background-color:#00000040;margin-top:.3em;margin-right:8px}.form-switch .form-check-input:after{content:"";position:absolute;border:none;z-index:2;border-radius:50%;width:1.25rem;height:1.25rem;background-color:#fff;margin-top:-.1875rem;box-shadow:0 0 3px #00000012,0 2px 2px #0000000a;transition:background-color .2s,transform .2s}.form-switch .form-check-input:focus{background-image:none}.form-switch .form-check-input:focus:before{box-shadow:3px -1px 0 13px #0009;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-switch .form-check-input:focus:after{border-radius:50%;width:1.25rem;height:1.25rem}.form-switch .form-check-input:checked{background-image:none}.form-switch .form-check-input:checked:focus{background-image:none}.form-switch .form-check-input:checked:focus:before{margin-left:1.0625rem;box-shadow:3px -1px 0 13px #3b71ca;transform:scale(1);transition:box-shadow .2s,transform .2s}.form-switch .form-check-input:checked[type=checkbox]{background-image:none}.form-switch .form-check-input:checked[type=checkbox]:after{content:"";position:absolute;border:none;z-index:2;border-radius:50%;width:1.25rem;height:1.25rem;background-color:#3b71ca;margin-top:-3px;margin-left:1.0625rem;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}.form-control[type=file]::-webkit-file-upload-button{background-color:#0000}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#0000}.input-group{flex-wrap:nowrap}.input-group>.form-control{min-height:calc(2.08rem + 2px);height:calc(2.08rem + 2px);padding-top:.27rem;padding-bottom:.27rem;transition:all .2s linear}.input-group>.form-control:focus{transition:all .2s linear;border-color:#3b71ca;outline:0;box-shadow:inset 0 0 0 1px #3b71ca}.input-group-text{background-color:#0000;padding-top:.26rem;padding-bottom:.26rem}.input-group-text>.form-check-input[type=checkbox]{margin-left:1px;margin-right:1px}.input-group-text>.form-check-input[type=radio]{margin-right:0}.input-group-lg>.form-control{height:calc(2.645rem + 2px);font-size:1rem;padding-top:.33rem;padding-bottom:.33rem}.input-group-lg .input-group-text{font-size:1rem}.input-group-sm>.form-control{min-height:calc(1.66rem + 2px);height:calc(1.66rem + 2px);font-size:.775rem;padding-top:.33rem;padding-bottom:.33rem}.input-group-sm .input-group-text{font-size:.775rem;line-height:1.5}.input-group.form-outline .input-group-text{border-left:0}.input-group.form-outline input+.input-group-text{border:0;border-left:1px solid #bdbdbd}.input-group .form-outline:not(:first-child),.input-group .select-wrapper:not(:first-child),.input-group .form-outline:not(:first-child) .form-notch-leading,.input-group .select-wrapper:not(:first-child) .form-notch-leading{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.input-group .form-outline:not(:last-child),.input-group .select-wrapper:not(:last-child),.input-group .form-outline:not(:last-child) .form-notch-trailing,.input-group .select-wrapper:not(:last-child) .form-notch-trailing{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>[class*=btn-outline-]+[class*=btn-outline-]{border-left:0}.input-group>.btn[class*=btn-outline-]{padding-top:.47rem}.input-group>.btn{padding-top:.59rem}.input-group.input-group-lg .input-group-text{height:calc(2.645rem + 2px)}.input-group .input-group-text{height:calc(2.08rem + 2px)}.input-group .btn{line-height:1}.input-group.input-group-sm .input-group-text{height:calc(1.66rem + 2px)}.was-validated .input-group .invalid-feedback,.was-validated .input-group .valid-feedback,.input-group .invalid-feedback,.input-group .valid-feedback{margin-top:2.5rem}.valid-feedback{position:absolute;display:none;width:auto;margin-top:.25rem;font-size:.875rem;color:#14a44d;margin-top:-.75rem}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:6px 16px;margin-top:.1rem;font-size:.875rem;background-color:#14a44de6;border-radius:.25rem!important;color:#fff}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{margin-bottom:1rem;background-image:none;border-color:#14a44d}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#14a44d;box-shadow:0 0 0 .25rem #14a44d40}.was-validated .form-outline .form-control:valid~.form-label,.form-outline .form-control.is-valid~.form-label{color:#14a44d}.was-validated .form-outline .form-control:valid~.form-notch .form-notch-leading,.was-validated .form-outline .form-control:valid~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:valid~.form-notch .form-notch-trailing,.form-outline .form-control.is-valid~.form-notch .form-notch-leading,.form-outline .form-control.is-valid~.form-notch .form-notch-middle,.form-outline .form-control.is-valid~.form-notch .form-notch-trailing{border-color:#14a44d}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:valid.active~.form-notch .form-notch-middle,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-valid.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-middle{box-shadow:0 1px #14a44d}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-leading,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #14a44d,0 1px #14a44d,0 -1px #14a44d}.was-validated .form-outline .form-control:valid:focus~.form-notch .form-notch-trailing,.form-outline .form-control.is-valid:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #14a44d,0 -1px #14a44d,0 1px #14a44d}.was-validated .form-outline .form-control:valid.select-input.focused~.form-notch .form-notch-leading,.form-outline .form-control.is-valid.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #14a44d,0 1px #14a44d,0 -1px #14a44d}.was-validated .form-outline .form-control:valid.select-input.focused~.form-notch .form-notch-middle,.form-outline .form-control.is-valid.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #14a44d;border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:valid.select-input.focused~.form-notch .form-notch-trailing,.form-outline .form-control.is-valid.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #14a44d,0 -1px #14a44d,0 1px #14a44d}.was-validated .form-select:valid,.form-select.is-valid{border-color:#14a44d}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:#14a44d;box-shadow:0 0 0 .25rem #14a44d40}.was-validated .form-select:valid~.valid-feedback,.form-select.is-valid~.valid-feedback{margin-top:0}.was-validated .input-group .form-control:valid,.input-group .form-control.is-valid{margin-bottom:0}.was-validated input[type=file].form-control:valid .valid-feedback,input[type=file].form-control.is-valid .valid-feedback{margin-top:0}.was-validated input[type=file].form-control:valid:focus,input[type=file].form-control.is-valid:focus{box-shadow:inset 0 0 0 1px #14a44d;border-color:#14a44d}.was-validated input[type=file].form-control:valid:focus~.form-file-label,input[type=file].form-control.is-valid:focus~.form-file-label{box-shadow:none}.was-validated input[type=file].form-control:valid:focus-within~.form-file-label .form-file-text,.was-validated input[type=file].form-control:valid:focus-within~.form-file-label .form-file-button,input[type=file].form-control.is-valid:focus-within~.form-file-label .form-file-text,input[type=file].form-control.is-valid:focus-within~.form-file-label .form-file-button{border-color:#14a44d}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:#14a44d}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:#14a44d}.was-validated .form-check-input:valid:checked:focus:before,.form-check-input.is-valid:checked:focus:before{box-shadow:0 0 0 13px #14a44d}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:none}.was-validated .form-check-input:valid:focus:before,.form-check-input.is-valid:focus:before{box-shadow:0 0 0 13px #14a44d}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:#14a44d;margin-bottom:1rem}.was-validated .form-check-input:valid[type=checkbox]:checked:focus,.form-check-input.is-valid[type=checkbox]:checked:focus{background-color:#14a44d;border-color:#14a44d}.was-validated .form-check-input:valid[type=radio]:checked,.form-check-input.is-valid[type=radio]:checked{border-color:#14a44d;background-color:#fff}.was-validated .form-check-input:valid[type=radio]:checked:focus:before,.form-check-input.is-valid[type=radio]:checked:focus:before{box-shadow:0 0 0 13px #14a44d}.was-validated .form-check-input:valid[type=radio]:checked:after,.form-check-input.is-valid[type=radio]:checked:after{border-color:#14a44d;background-color:#14a44d}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .form-switch .form-check-input:valid:focus:before,.form-switch .form-check-input.is-valid:focus:before{box-shadow:3px -1px 0 13px #0009}.was-validated .form-switch .form-check-input:valid:checked[type=checkbox]:after,.form-switch .form-check-input.is-valid:checked[type=checkbox]:after{background-color:#14a44d;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.was-validated .form-switch .form-check-input:valid:checked:focus:before,.form-switch .form-check-input.is-valid:checked:focus:before{box-shadow:3px -1px 0 13px #14a44d}.invalid-feedback{position:absolute;display:none;width:auto;margin-top:.25rem;font-size:.875rem;color:#dc4c64;margin-top:-.75rem}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:6px 16px;margin-top:.1rem;font-size:.875rem;background-color:#dc4c64e6;border-radius:.25rem!important;color:#fff}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{margin-bottom:1rem;background-image:none;border-color:#dc4c64}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#dc4c64;box-shadow:0 0 0 .25rem #dc4c6440}.was-validated .form-outline .form-control:invalid~.form-label,.form-outline .form-control.is-invalid~.form-label{color:#dc4c64}.was-validated .form-outline .form-control:invalid~.form-notch .form-notch-leading,.was-validated .form-outline .form-control:invalid~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:invalid~.form-notch .form-notch-trailing,.form-outline .form-control.is-invalid~.form-notch .form-notch-leading,.form-outline .form-control.is-invalid~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid~.form-notch .form-notch-trailing{border-color:#dc4c64}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-middle,.was-validated .form-outline .form-control:invalid.active~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-middle{box-shadow:0 1px #dc4c64}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-leading,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #dc4c64,0 1px #dc4c64,0 -1px #dc4c64}.was-validated .form-outline .form-control:invalid:focus~.form-notch .form-notch-trailing,.form-outline .form-control.is-invalid:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #dc4c64,0 -1px #dc4c64,0 1px #dc4c64}.was-validated .form-outline .form-control:invalid.select-input.focused~.form-notch .form-notch-leading,.form-outline .form-control.is-invalid.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #dc4c64,0 1px #dc4c64,0 -1px #dc4c64}.was-validated .form-outline .form-control:invalid.select-input.focused~.form-notch .form-notch-middle,.form-outline .form-control.is-invalid.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #dc4c64;border-top:1px solid rgba(0,0,0,0)}.was-validated .form-outline .form-control:invalid.select-input.focused~.form-notch .form-notch-trailing,.form-outline .form-control.is-invalid.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #dc4c64,0 -1px #dc4c64,0 1px #dc4c64}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:#dc4c64}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:#dc4c64;box-shadow:0 0 0 .25rem #dc4c6440}.was-validated .form-select:invalid~.invalid-feedback,.form-select.is-invalid~.invalid-feedback{margin-top:0}.was-validated .input-group .form-control:invalid,.input-group .form-control.is-invalid{margin-bottom:0}.was-validated input[type=file].form-control:invalid .invalid-feedback,input[type=file].form-control.is-invalid .invalid-feedback{margin-top:0}.was-validated input[type=file].form-control:invalid:focus,input[type=file].form-control.is-invalid:focus{box-shadow:inset 0 0 0 1px #dc4c64;border-color:#dc4c64}.was-validated input[type=file].form-control:invalid:focus~.form-file-label,input[type=file].form-control.is-invalid:focus~.form-file-label{box-shadow:none}.was-validated input[type=file].form-control:invalid:focus-within~.form-file-label .form-file-text,.was-validated input[type=file].form-control:invalid:focus-within~.form-file-label .form-file-button,input[type=file].form-control.is-invalid:focus-within~.form-file-label .form-file-text,input[type=file].form-control.is-invalid:focus-within~.form-file-label .form-file-button{border-color:#dc4c64}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:#dc4c64}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:#dc4c64}.was-validated .form-check-input:invalid:checked:focus:before,.form-check-input.is-invalid:checked:focus:before{box-shadow:0 0 0 13px #dc4c64}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:none}.was-validated .form-check-input:invalid:focus:before,.form-check-input.is-invalid:focus:before{box-shadow:0 0 0 13px #dc4c64}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:#dc4c64;margin-bottom:1rem}.was-validated .form-check-input:invalid[type=checkbox]:checked:focus,.form-check-input.is-invalid[type=checkbox]:checked:focus{background-color:#dc4c64;border-color:#dc4c64}.was-validated .form-check-input:invalid[type=radio]:checked,.form-check-input.is-invalid[type=radio]:checked{border-color:#dc4c64;background-color:#fff}.was-validated .form-check-input:invalid[type=radio]:checked:focus:before,.form-check-input.is-invalid[type=radio]:checked:focus:before{box-shadow:0 0 0 13px #dc4c64}.was-validated .form-check-input:invalid[type=radio]:checked:after,.form-check-input.is-invalid[type=radio]:checked:after{border-color:#dc4c64;background-color:#dc4c64}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .form-switch .form-check-input:invalid:focus:before,.form-switch .form-check-input.is-invalid:focus:before{box-shadow:3px -1px 0 13px #0009}.was-validated .form-switch .form-check-input:invalid:checked[type=checkbox]:after,.form-switch .form-check-input.is-invalid:checked[type=checkbox]:after{background-color:#dc4c64;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}.was-validated .form-switch .form-check-input:invalid:checked:focus:before,.form-switch .form-check-input.is-invalid:checked:focus:before{box-shadow:3px -1px 0 13px #dc4c64}.form-range:focus{box-shadow:none}.form-range:focus::-webkit-slider-thumb{box-shadow:none}.form-range:focus::-moz-range-thumb{box-shadow:none}.form-range:focus::-ms-thumb{box-shadow:none}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{margin-top:-6px;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range::-webkit-slider-runnable-track{height:4px;border-radius:0;box-shadow:none}.form-range::-moz-range-thumb{box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range::-moz-range-track{box-shadow:none}.table{--mdb-table-font-size: .9rem;--mdb-table-divider-color: rgba(0, 0, 0, .1);font-size:var(--mdb-table-font-size)}.table th{font-weight:500}.table tbody{font-weight:400}.table>:not(:last-child)>:last-child>*{border-bottom-color:inherit}.table-primary{--mdb-table-color: #000;--mdb-table-bg: #d8e3f4;--mdb-table-border-color: #c2ccdc;--mdb-table-striped-bg: #cdd8e8;--mdb-table-striped-color: #000;--mdb-table-active-bg: #c2ccdc;--mdb-table-active-color: #000;--mdb-table-hover-bg: #c8d2e2;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-secondary{--mdb-table-color: #000;--mdb-table-bg: #ecedf0;--mdb-table-border-color: #d4d5d8;--mdb-table-striped-bg: #e0e1e4;--mdb-table-striped-color: #000;--mdb-table-active-bg: #d4d5d8;--mdb-table-active-color: #000;--mdb-table-hover-bg: #dadbde;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-success{--mdb-table-color: #000;--mdb-table-bg: #d0eddb;--mdb-table-border-color: #bbd5c5;--mdb-table-striped-bg: #c6e1d0;--mdb-table-striped-color: #000;--mdb-table-active-bg: #bbd5c5;--mdb-table-active-color: #000;--mdb-table-hover-bg: #c0dbcb;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-info{--mdb-table-color: #000;--mdb-table-bg: #ddf0f6;--mdb-table-border-color: #c7d8dd;--mdb-table-striped-bg: #d2e4ea;--mdb-table-striped-color: #000;--mdb-table-active-bg: #c7d8dd;--mdb-table-active-color: #000;--mdb-table-hover-bg: #ccdee4;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-warning{--mdb-table-color: #000;--mdb-table-bg: #faecd1;--mdb-table-border-color: #e1d4bc;--mdb-table-striped-bg: #eee0c7;--mdb-table-striped-color: #000;--mdb-table-active-bg: #e1d4bc;--mdb-table-active-color: #000;--mdb-table-hover-bg: #e7dac1;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-danger{--mdb-table-color: #000;--mdb-table-bg: #f8dbe0;--mdb-table-border-color: #dfc5ca;--mdb-table-striped-bg: #ecd0d5;--mdb-table-striped-color: #000;--mdb-table-active-bg: #dfc5ca;--mdb-table-active-color: #000;--mdb-table-hover-bg: #e5cbcf;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-light{--mdb-table-color: #000;--mdb-table-bg: #fbfbfb;--mdb-table-border-color: #e2e2e2;--mdb-table-striped-bg: #eeeeee;--mdb-table-striped-color: #000;--mdb-table-active-bg: #e2e2e2;--mdb-table-active-color: #000;--mdb-table-hover-bg: #e8e8e8;--mdb-table-hover-color: #000;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-dark{--mdb-table-color: #fff;--mdb-table-bg: #332d2d;--mdb-table-border-color: #474242;--mdb-table-striped-bg: #3d3838;--mdb-table-striped-color: #fff;--mdb-table-active-bg: #474242;--mdb-table-active-color: #fff;--mdb-table-hover-bg: #423d3d;--mdb-table-hover-color: #fff;color:var(--mdb-table-color);border-color:var(--mdb-table-border-color)}.table-hover>tbody>tr{transition:.5s}.table-hover>tbody>tr:hover{--mdb-table-accent-bg: transparent;background-color:var(--mdb-table-hover-bg)}.table-group-divider{border-top:2px solid;border-top-color:inherit}.table-divider-color{border-top-color:var(--mdb-table-divider-color)}.btn{--mdb-btn-padding-top: .625rem;--mdb-btn-padding-bottom: .5rem;--mdb-btn-border-width: 0;--mdb-btn-border-color: none;--mdb-btn-border-radius: .25rem;--mdb-btn-box-shadow: 0 4px 9px -4px rgba(0, 0, 0, .35);--mdb-btn-hover-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-focus-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-active-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);padding-top:var(--mdb-btn-padding-top);padding-bottom:var(--mdb-btn-padding-bottom);text-transform:uppercase;vertical-align:bottom;border:0;border-radius:var(--mdb-btn-border-radius);box-shadow:var(--mdb-btn-box-shadow)}:not(.btn-check)+.btn:hover,.btn:first-child:hover,.btn:focus-visible,.btn:hover{box-shadow:var(--mdb-btn-hover-box-shadow)}.btn-check:focus-visible+.btn,.btn-check:focus+.btn,.btn:focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn-check:active+.btn,.btn:active,.btn.active,.btn.show{box-shadow:var(--mdb-btn-active-box-shadow)}.btn-check:checked+.btn:focus,.btn-check:active+.btn:focus,.btn:active:focus,.btn.active:focus,.btn.show:focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{box-shadow:var(--mdb-btn-box-shadow)}[class*=btn-outline-]{--mdb-btn-padding-top: .5rem;--mdb-btn-padding-bottom: .375rem;--mdb-btn-padding-x: 1.375rem;--mdb-btn-border-width: 2px;--mdb-btn-line-height: 1.5;padding:var(--mdb-btn-padding-top) var(--mdb-btn-padding-x) var(--mdb-btn-padding-bottom);border-width:var(--mdb-btn-border-width);border-style:solid;box-shadow:none}:not(.btn-check)+[class*=btn-outline-]:hover,[class*=btn-outline-]:first-child:hover,[class*=btn-outline-]:focus-visible,[class*=btn-outline-]:hover{box-shadow:none}.btn-check:focus-visible+[class*=btn-outline-],.btn-check:focus+[class*=btn-outline-],[class*=btn-outline-]:focus{box-shadow:none}.btn-check:checked+[class*=btn-outline-],.btn-check:active+[class*=btn-outline-],[class*=btn-outline-]:active,[class*=btn-outline-].active,[class*=btn-outline-].show{box-shadow:none}.btn-check:checked+[class*=btn-outline-]:focus,.btn-check:active+[class*=btn-outline-]:focus,[class*=btn-outline-]:active:focus,[class*=btn-outline-].active:focus,[class*=btn-outline-].show:focus{box-shadow:none}[class*=btn-outline-]:disabled,[class*=btn-outline-].disabled,fieldset:disabled [class*=btn-outline-]{box-shadow:none}[class*=btn-outline-].btn-lg,.btn-group-lg>[class*=btn-outline-].btn{--mdb-btn-padding-top: .625rem;--mdb-btn-padding-bottom: .5625rem;--mdb-btn-padding-x: 1.5625rem;--mdb-btn-font-size:.875rem;--mdb-btn-line-height: 1.6}[class*=btn-outline-].btn-sm,.btn-group-sm>[class*=btn-outline-].btn{--mdb-btn-padding-top: .25rem;--mdb-btn-padding-bottom: .1875rem;--mdb-btn-padding-x: .875rem;--mdb-btn-font-size:.75rem;--mdb-btn-line-height: 1.5}.btn-secondary{box-shadow:none}:not(.btn-check)+.btn-secondary:hover,.btn-secondary:first-child:hover,.btn-secondary:focus-visible,.btn-secondary:hover{box-shadow:none!important}.btn-check:focus-visible+.btn-secondary,.btn-check:focus+.btn-secondary,.btn-secondary:focus{box-shadow:none}.btn-check:checked+.btn-secondary,.btn-check:active+.btn-secondary,.btn-secondary:active,.btn-secondary.active,.btn-secondary.show{box-shadow:none}.btn-check:checked+.btn-secondary:focus,.btn-check:active+.btn-secondary:focus,.btn-secondary:active:focus,.btn-secondary.active:focus,.btn-secondary.show:focus{box-shadow:none}.btn-secondary:disabled,.btn-secondary.disabled,fieldset:disabled .btn-secondary{box-shadow:none}.btn-primary{--mdb-btn-bg: #3b71ca;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #3b71ca;--mdb-btn-hover-bg: #386bc0;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #386bc0;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #3566b6;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-primary:hover,.btn-primary:first-child:hover,.btn-primary:focus-visible,.btn-primary:hover{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33}.btn-check:focus-visible+.btn-primary,.btn-check:focus+.btn-primary,.btn-primary:focus{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33;background-color:#386bc0}.btn-check:checked+.btn-primary,.btn-check:active+.btn-primary,.btn-primary:active,.btn-primary.active,.btn-primary.show{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33}.btn-check:checked+.btn-primary:focus,.btn-check:active+.btn-primary:focus,.btn-primary:active:focus,.btn-primary.active:focus,.btn-primary.show:focus{box-shadow:0 8px 9px -4px #3b71ca4d,0 4px 18px #3b71ca33}.btn-check:checked+.btn-primary:hover,.btn-check:active+.btn-primary:hover,.btn-primary:active:hover,.btn-primary.active:hover,.btn-primary.show:hover{background-color:#3566b6}.btn-primary:disabled,.btn-primary.disabled,fieldset:disabled .btn-primary{box-shadow:0 4px 9px -4px #3b71ca}.btn-secondary{--mdb-btn-bg: #e3ebf7;--mdb-btn-color: #285192;--mdb-btn-box-shadow: 0 4px 9px -4px #e3ebf7;--mdb-btn-hover-bg: #d8dfeb;--mdb-btn-hover-color: #285192;--mdb-btn-focus-bg: #d8dfeb;--mdb-btn-focus-color: #285192;--mdb-btn-active-bg: #ccd4de;--mdb-btn-active-color: #285192}:not(.btn-check)+.btn-secondary:hover,.btn-secondary:first-child:hover,.btn-secondary:focus-visible,.btn-secondary:hover{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733}.btn-check:focus-visible+.btn-secondary,.btn-check:focus+.btn-secondary,.btn-secondary:focus{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733;background-color:#d8dfeb}.btn-check:checked+.btn-secondary,.btn-check:active+.btn-secondary,.btn-secondary:active,.btn-secondary.active,.btn-secondary.show{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733}.btn-check:checked+.btn-secondary:focus,.btn-check:active+.btn-secondary:focus,.btn-secondary:active:focus,.btn-secondary.active:focus,.btn-secondary.show:focus{box-shadow:0 8px 9px -4px #e3ebf74d,0 4px 18px #e3ebf733}.btn-check:checked+.btn-secondary:hover,.btn-check:active+.btn-secondary:hover,.btn-secondary:active:hover,.btn-secondary.active:hover,.btn-secondary.show:hover{background-color:#ccd4de}.btn-secondary:disabled,.btn-secondary.disabled,fieldset:disabled .btn-secondary{box-shadow:0 4px 9px -4px #e3ebf7}.btn-success{--mdb-btn-bg: #14a44d;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #14a44d;--mdb-btn-hover-bg: #139c49;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #139c49;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #129445;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-success:hover,.btn-success:first-child:hover,.btn-success:focus-visible,.btn-success:hover{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33}.btn-check:focus-visible+.btn-success,.btn-check:focus+.btn-success,.btn-success:focus{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33;background-color:#139c49}.btn-check:checked+.btn-success,.btn-check:active+.btn-success,.btn-success:active,.btn-success.active,.btn-success.show{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33}.btn-check:checked+.btn-success:focus,.btn-check:active+.btn-success:focus,.btn-success:active:focus,.btn-success.active:focus,.btn-success.show:focus{box-shadow:0 8px 9px -4px #14a44d4d,0 4px 18px #14a44d33}.btn-check:checked+.btn-success:hover,.btn-check:active+.btn-success:hover,.btn-success:active:hover,.btn-success.active:hover,.btn-success.show:hover{background-color:#129445}.btn-success:disabled,.btn-success.disabled,fieldset:disabled .btn-success{box-shadow:0 4px 9px -4px #14a44d}.btn-danger{--mdb-btn-bg: #dc4c64;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #dc4c64;--mdb-btn-hover-bg: #d1485f;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #d1485f;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #c6445a;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-danger:hover,.btn-danger:first-child:hover,.btn-danger:focus-visible,.btn-danger:hover{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433}.btn-check:focus-visible+.btn-danger,.btn-check:focus+.btn-danger,.btn-danger:focus{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433;background-color:#d1485f}.btn-check:checked+.btn-danger,.btn-check:active+.btn-danger,.btn-danger:active,.btn-danger.active,.btn-danger.show{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433}.btn-check:checked+.btn-danger:focus,.btn-check:active+.btn-danger:focus,.btn-danger:active:focus,.btn-danger.active:focus,.btn-danger.show:focus{box-shadow:0 8px 9px -4px #dc4c644d,0 4px 18px #dc4c6433}.btn-check:checked+.btn-danger:hover,.btn-check:active+.btn-danger:hover,.btn-danger:active:hover,.btn-danger.active:hover,.btn-danger.show:hover{background-color:#c6445a}.btn-danger:disabled,.btn-danger.disabled,fieldset:disabled .btn-danger{box-shadow:0 4px 9px -4px #dc4c64}.btn-warning{--mdb-btn-bg: #e4a11b;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #e4a11b;--mdb-btn-hover-bg: #d9991a;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #d9991a;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #cd9118;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-warning:hover,.btn-warning:first-child:hover,.btn-warning:focus-visible,.btn-warning:hover{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33}.btn-check:focus-visible+.btn-warning,.btn-check:focus+.btn-warning,.btn-warning:focus{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33;background-color:#d9991a}.btn-check:checked+.btn-warning,.btn-check:active+.btn-warning,.btn-warning:active,.btn-warning.active,.btn-warning.show{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33}.btn-check:checked+.btn-warning:focus,.btn-check:active+.btn-warning:focus,.btn-warning:active:focus,.btn-warning.active:focus,.btn-warning.show:focus{box-shadow:0 8px 9px -4px #e4a11b4d,0 4px 18px #e4a11b33}.btn-check:checked+.btn-warning:hover,.btn-check:active+.btn-warning:hover,.btn-warning:active:hover,.btn-warning.active:hover,.btn-warning.show:hover{background-color:#cd9118}.btn-warning:disabled,.btn-warning.disabled,fieldset:disabled .btn-warning{box-shadow:0 4px 9px -4px #e4a11b}.btn-info{--mdb-btn-bg: #54b4d3;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #54b4d3;--mdb-btn-hover-bg: #50abc8;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #50abc8;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #4ca2be;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-info:hover,.btn-info:first-child:hover,.btn-info:focus-visible,.btn-info:hover{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333}.btn-check:focus-visible+.btn-info,.btn-check:focus+.btn-info,.btn-info:focus{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333;background-color:#50abc8}.btn-check:checked+.btn-info,.btn-check:active+.btn-info,.btn-info:active,.btn-info.active,.btn-info.show{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333}.btn-check:checked+.btn-info:focus,.btn-check:active+.btn-info:focus,.btn-info:active:focus,.btn-info.active:focus,.btn-info.show:focus{box-shadow:0 8px 9px -4px #54b4d34d,0 4px 18px #54b4d333}.btn-check:checked+.btn-info:hover,.btn-check:active+.btn-info:hover,.btn-info:active:hover,.btn-info.active:hover,.btn-info.show:hover{background-color:#4ca2be}.btn-info:disabled,.btn-info.disabled,fieldset:disabled .btn-info{box-shadow:0 4px 9px -4px #54b4d3}.btn-light{--mdb-btn-bg: #fbfbfb;--mdb-btn-color: #4f4f4f;--mdb-btn-box-shadow: 0 4px 9px -4px #fbfbfb;--mdb-btn-hover-bg: #eeeeee;--mdb-btn-hover-color: #4f4f4f;--mdb-btn-focus-bg: #eeeeee;--mdb-btn-focus-color: #4f4f4f;--mdb-btn-active-bg: #e2e2e2;--mdb-btn-active-color: #4f4f4f}:not(.btn-check)+.btn-light:hover,.btn-light:first-child:hover,.btn-light:focus-visible,.btn-light:hover{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33}.btn-check:focus-visible+.btn-light,.btn-check:focus+.btn-light,.btn-light:focus{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33;background-color:#eee}.btn-check:checked+.btn-light,.btn-check:active+.btn-light,.btn-light:active,.btn-light.active,.btn-light.show{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33}.btn-check:checked+.btn-light:focus,.btn-check:active+.btn-light:focus,.btn-light:active:focus,.btn-light.active:focus,.btn-light.show:focus{box-shadow:0 8px 9px -4px #fbfbfb4d,0 4px 18px #fbfbfb33}.btn-check:checked+.btn-light:hover,.btn-check:active+.btn-light:hover,.btn-light:active:hover,.btn-light.active:hover,.btn-light.show:hover{background-color:#e2e2e2}.btn-light:disabled,.btn-light.disabled,fieldset:disabled .btn-light{box-shadow:0 4px 9px -4px #fbfbfb}.btn-dark{--mdb-btn-bg: #332d2d;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #332d2d;--mdb-btn-hover-bg: #302b2b;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: #302b2b;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: #2e2929;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-dark:hover,.btn-dark:first-child:hover,.btn-dark:focus-visible,.btn-dark:hover{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33}.btn-check:focus-visible+.btn-dark,.btn-check:focus+.btn-dark,.btn-dark:focus{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33;background-color:#302b2b}.btn-check:checked+.btn-dark,.btn-check:active+.btn-dark,.btn-dark:active,.btn-dark.active,.btn-dark.show{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33}.btn-check:checked+.btn-dark:focus,.btn-check:active+.btn-dark:focus,.btn-dark:active:focus,.btn-dark.active:focus,.btn-dark.show:focus{box-shadow:0 8px 9px -4px #332d2d4d,0 4px 18px #332d2d33}.btn-check:checked+.btn-dark:hover,.btn-check:active+.btn-dark:hover,.btn-dark:active:hover,.btn-dark.active:hover,.btn-dark.show:hover{background-color:#2e2929}.btn-dark:disabled,.btn-dark.disabled,fieldset:disabled .btn-dark{box-shadow:0 4px 9px -4px #332d2d}.btn-white{--mdb-btn-bg: #fff;--mdb-btn-color: #000;--mdb-btn-box-shadow: 0 4px 9px -4px #fff;--mdb-btn-hover-bg: #f2f2f2;--mdb-btn-hover-color: #000;--mdb-btn-focus-bg: #f2f2f2;--mdb-btn-focus-color: #000;--mdb-btn-active-bg: #e6e6e6;--mdb-btn-active-color: #000}:not(.btn-check)+.btn-white:hover,.btn-white:first-child:hover,.btn-white:focus-visible,.btn-white:hover{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3}.btn-check:focus-visible+.btn-white,.btn-check:focus+.btn-white,.btn-white:focus{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3;background-color:#f2f2f2}.btn-check:checked+.btn-white,.btn-check:active+.btn-white,.btn-white:active,.btn-white.active,.btn-white.show{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3}.btn-check:checked+.btn-white:focus,.btn-check:active+.btn-white:focus,.btn-white:active:focus,.btn-white.active:focus,.btn-white.show:focus{box-shadow:0 8px 9px -4px #ffffff4d,0 4px 18px #fff3}.btn-check:checked+.btn-white:hover,.btn-check:active+.btn-white:hover,.btn-white:active:hover,.btn-white.active:hover,.btn-white.show:hover{background-color:#e6e6e6}.btn-white:disabled,.btn-white.disabled,fieldset:disabled .btn-white{box-shadow:0 4px 9px -4px #fff}.btn-black{--mdb-btn-bg: #000;--mdb-btn-color: #fff;--mdb-btn-box-shadow: 0 4px 9px -4px #000;--mdb-btn-hover-bg: black;--mdb-btn-hover-color: #fff;--mdb-btn-focus-bg: black;--mdb-btn-focus-color: #fff;--mdb-btn-active-bg: black;--mdb-btn-active-color: #fff}:not(.btn-check)+.btn-black:hover,.btn-black:first-child:hover,.btn-black:focus-visible,.btn-black:hover{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003}.btn-check:focus-visible+.btn-black,.btn-check:focus+.btn-black,.btn-black:focus{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003;background-color:#000}.btn-check:checked+.btn-black,.btn-check:active+.btn-black,.btn-black:active,.btn-black.active,.btn-black.show{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003}.btn-check:checked+.btn-black:focus,.btn-check:active+.btn-black:focus,.btn-black:active:focus,.btn-black.active:focus,.btn-black.show:focus{box-shadow:0 8px 9px -4px #0000004d,0 4px 18px #0003}.btn-check:checked+.btn-black:hover,.btn-check:active+.btn-black:hover,.btn-black:active:hover,.btn-black.active:hover,.btn-black.show:hover{background-color:#000}.btn-black:disabled,.btn-black.disabled,fieldset:disabled .btn-black{box-shadow:0 4px 9px -4px #000}.btn-outline-primary{--mdb-btn-bg: transparent;--mdb-btn-color: #3b71ca;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #386bc0;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #386bc0;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #3566b6;border-color:#3b71ca}:not(.btn-check)+.btn-outline-primary:hover,.btn-outline-primary:first-child:hover,.btn-outline-primary:focus-visible,.btn-outline-primary:hover{border-color:#386bc0}.btn-check:focus-visible+.btn-outline-primary,.btn-check:focus+.btn-outline-primary,.btn-outline-primary:focus{border-color:#386bc0}.btn-check:checked+.btn-outline-primary,.btn-check:active+.btn-outline-primary,.btn-outline-primary:active,.btn-outline-primary.active,.btn-outline-primary.show{border-color:#3566b6}.btn-check:checked+.btn-outline-primary:focus,.btn-check:active+.btn-outline-primary:focus,.btn-outline-primary:active:focus,.btn-outline-primary.active:focus,.btn-outline-primary.show:focus{border-color:#386bc0}.btn-outline-primary:disabled,.btn-outline-primary.disabled,fieldset:disabled .btn-outline-primary{border-color:#3b71ca}.btn-outline-secondary{--mdb-btn-bg: transparent;--mdb-btn-color: #285192;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #264d8b;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #264d8b;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #244983;border-color:#e3ebf7}:not(.btn-check)+.btn-outline-secondary:hover,.btn-outline-secondary:first-child:hover,.btn-outline-secondary:focus-visible,.btn-outline-secondary:hover{border-color:#d8dfeb}.btn-check:focus-visible+.btn-outline-secondary,.btn-check:focus+.btn-outline-secondary,.btn-outline-secondary:focus{border-color:#d8dfeb}.btn-check:checked+.btn-outline-secondary,.btn-check:active+.btn-outline-secondary,.btn-outline-secondary:active,.btn-outline-secondary.active,.btn-outline-secondary.show{border-color:#ccd4de}.btn-check:checked+.btn-outline-secondary:focus,.btn-check:active+.btn-outline-secondary:focus,.btn-outline-secondary:active:focus,.btn-outline-secondary.active:focus,.btn-outline-secondary.show:focus{border-color:#d8dfeb}.btn-outline-secondary:disabled,.btn-outline-secondary.disabled,fieldset:disabled .btn-outline-secondary{border-color:#e3ebf7}.btn-outline-success{--mdb-btn-bg: transparent;--mdb-btn-color: #14a44d;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #139c49;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #139c49;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #129445;border-color:#14a44d}:not(.btn-check)+.btn-outline-success:hover,.btn-outline-success:first-child:hover,.btn-outline-success:focus-visible,.btn-outline-success:hover{border-color:#139c49}.btn-check:focus-visible+.btn-outline-success,.btn-check:focus+.btn-outline-success,.btn-outline-success:focus{border-color:#139c49}.btn-check:checked+.btn-outline-success,.btn-check:active+.btn-outline-success,.btn-outline-success:active,.btn-outline-success.active,.btn-outline-success.show{border-color:#129445}.btn-check:checked+.btn-outline-success:focus,.btn-check:active+.btn-outline-success:focus,.btn-outline-success:active:focus,.btn-outline-success.active:focus,.btn-outline-success.show:focus{border-color:#139c49}.btn-outline-success:disabled,.btn-outline-success.disabled,fieldset:disabled .btn-outline-success{border-color:#14a44d}.btn-outline-danger{--mdb-btn-bg: transparent;--mdb-btn-color: #dc4c64;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #d1485f;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #d1485f;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #c6445a;border-color:#dc4c64}:not(.btn-check)+.btn-outline-danger:hover,.btn-outline-danger:first-child:hover,.btn-outline-danger:focus-visible,.btn-outline-danger:hover{border-color:#d1485f}.btn-check:focus-visible+.btn-outline-danger,.btn-check:focus+.btn-outline-danger,.btn-outline-danger:focus{border-color:#d1485f}.btn-check:checked+.btn-outline-danger,.btn-check:active+.btn-outline-danger,.btn-outline-danger:active,.btn-outline-danger.active,.btn-outline-danger.show{border-color:#c6445a}.btn-check:checked+.btn-outline-danger:focus,.btn-check:active+.btn-outline-danger:focus,.btn-outline-danger:active:focus,.btn-outline-danger.active:focus,.btn-outline-danger.show:focus{border-color:#d1485f}.btn-outline-danger:disabled,.btn-outline-danger.disabled,fieldset:disabled .btn-outline-danger{border-color:#dc4c64}.btn-outline-warning{--mdb-btn-bg: transparent;--mdb-btn-color: #e4a11b;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #d9991a;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #d9991a;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #cd9118;border-color:#e4a11b}:not(.btn-check)+.btn-outline-warning:hover,.btn-outline-warning:first-child:hover,.btn-outline-warning:focus-visible,.btn-outline-warning:hover{border-color:#d9991a}.btn-check:focus-visible+.btn-outline-warning,.btn-check:focus+.btn-outline-warning,.btn-outline-warning:focus{border-color:#d9991a}.btn-check:checked+.btn-outline-warning,.btn-check:active+.btn-outline-warning,.btn-outline-warning:active,.btn-outline-warning.active,.btn-outline-warning.show{border-color:#cd9118}.btn-check:checked+.btn-outline-warning:focus,.btn-check:active+.btn-outline-warning:focus,.btn-outline-warning:active:focus,.btn-outline-warning.active:focus,.btn-outline-warning.show:focus{border-color:#d9991a}.btn-outline-warning:disabled,.btn-outline-warning.disabled,fieldset:disabled .btn-outline-warning{border-color:#e4a11b}.btn-outline-info{--mdb-btn-bg: transparent;--mdb-btn-color: #54b4d3;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #50abc8;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #50abc8;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #4ca2be;border-color:#54b4d3}:not(.btn-check)+.btn-outline-info:hover,.btn-outline-info:first-child:hover,.btn-outline-info:focus-visible,.btn-outline-info:hover{border-color:#50abc8}.btn-check:focus-visible+.btn-outline-info,.btn-check:focus+.btn-outline-info,.btn-outline-info:focus{border-color:#50abc8}.btn-check:checked+.btn-outline-info,.btn-check:active+.btn-outline-info,.btn-outline-info:active,.btn-outline-info.active,.btn-outline-info.show{border-color:#4ca2be}.btn-check:checked+.btn-outline-info:focus,.btn-check:active+.btn-outline-info:focus,.btn-outline-info:active:focus,.btn-outline-info.active:focus,.btn-outline-info.show:focus{border-color:#50abc8}.btn-outline-info:disabled,.btn-outline-info.disabled,fieldset:disabled .btn-outline-info{border-color:#54b4d3}.btn-outline-light{--mdb-btn-bg: transparent;--mdb-btn-color: #fbfbfb;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #eeeeee;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #eeeeee;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #e2e2e2;border-color:#fbfbfb}:not(.btn-check)+.btn-outline-light:hover,.btn-outline-light:first-child:hover,.btn-outline-light:focus-visible,.btn-outline-light:hover{border-color:#eee}.btn-check:focus-visible+.btn-outline-light,.btn-check:focus+.btn-outline-light,.btn-outline-light:focus{border-color:#eee}.btn-check:checked+.btn-outline-light,.btn-check:active+.btn-outline-light,.btn-outline-light:active,.btn-outline-light.active,.btn-outline-light.show{border-color:#e2e2e2}.btn-check:checked+.btn-outline-light:focus,.btn-check:active+.btn-outline-light:focus,.btn-outline-light:active:focus,.btn-outline-light.active:focus,.btn-outline-light.show:focus{border-color:#eee}.btn-outline-light:disabled,.btn-outline-light.disabled,fieldset:disabled .btn-outline-light{border-color:#fbfbfb}.btn-outline-dark{--mdb-btn-bg: transparent;--mdb-btn-color: #332d2d;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #302b2b;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #302b2b;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #2e2929;border-color:#332d2d}:not(.btn-check)+.btn-outline-dark:hover,.btn-outline-dark:first-child:hover,.btn-outline-dark:focus-visible,.btn-outline-dark:hover{border-color:#302b2b}.btn-check:focus-visible+.btn-outline-dark,.btn-check:focus+.btn-outline-dark,.btn-outline-dark:focus{border-color:#302b2b}.btn-check:checked+.btn-outline-dark,.btn-check:active+.btn-outline-dark,.btn-outline-dark:active,.btn-outline-dark.active,.btn-outline-dark.show{border-color:#2e2929}.btn-check:checked+.btn-outline-dark:focus,.btn-check:active+.btn-outline-dark:focus,.btn-outline-dark:active:focus,.btn-outline-dark.active:focus,.btn-outline-dark.show:focus{border-color:#302b2b}.btn-outline-dark:disabled,.btn-outline-dark.disabled,fieldset:disabled .btn-outline-dark{border-color:#332d2d}.btn-outline-white{--mdb-btn-bg: transparent;--mdb-btn-color: #fff;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: #f2f2f2;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: #f2f2f2;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: #e6e6e6;border-color:#fff}:not(.btn-check)+.btn-outline-white:hover,.btn-outline-white:first-child:hover,.btn-outline-white:focus-visible,.btn-outline-white:hover{border-color:#f2f2f2}.btn-check:focus-visible+.btn-outline-white,.btn-check:focus+.btn-outline-white,.btn-outline-white:focus{border-color:#f2f2f2}.btn-check:checked+.btn-outline-white,.btn-check:active+.btn-outline-white,.btn-outline-white:active,.btn-outline-white.active,.btn-outline-white.show{border-color:#e6e6e6}.btn-check:checked+.btn-outline-white:focus,.btn-check:active+.btn-outline-white:focus,.btn-outline-white:active:focus,.btn-outline-white.active:focus,.btn-outline-white.show:focus{border-color:#f2f2f2}.btn-outline-white:disabled,.btn-outline-white.disabled,fieldset:disabled .btn-outline-white{border-color:#fff}.btn-outline-black{--mdb-btn-bg: transparent;--mdb-btn-color: #000;--mdb-btn-hover-bg: transparent;--mdb-btn-hover-color: black;--mdb-btn-focus-bg: transparent;--mdb-btn-focus-color: black;--mdb-btn-active-bg: transparent;--mdb-btn-active-color: black;border-color:#000}:not(.btn-check)+.btn-outline-black:hover,.btn-outline-black:first-child:hover,.btn-outline-black:focus-visible,.btn-outline-black:hover{border-color:#000}.btn-check:focus-visible+.btn-outline-black,.btn-check:focus+.btn-outline-black,.btn-outline-black:focus{border-color:#000}.btn-check:checked+.btn-outline-black,.btn-check:active+.btn-outline-black,.btn-outline-black:active,.btn-outline-black.active,.btn-outline-black.show{border-color:#000}.btn-check:checked+.btn-outline-black:focus,.btn-check:active+.btn-outline-black:focus,.btn-outline-black:active:focus,.btn-outline-black.active:focus,.btn-outline-black.show:focus{border-color:#000}.btn-outline-black:disabled,.btn-outline-black.disabled,fieldset:disabled .btn-outline-black{border-color:#000}.btn-link{--mdb-btn-font-weight: 500;--mdb-btn-color: #3b71ca;--mdb-btn-hover-color: #386bc0;--mdb-btn-hover-bg: hsl(0, 0%, 96%);--mdb-btn-focus-color: #3566b6;--mdb-btn-active-color: #3260ac;--mdb-btn-disabled-color: #9e9e9e;--mdb-btn-box-shadow: none;text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}:not(.btn-check)+.btn-link:hover,.btn-link:first-child:hover,.btn-link:focus-visible,.btn-link:hover{text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}.btn-check:focus-visible+.btn-link,.btn-check:focus+.btn-link,.btn-link:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-link,.btn-check:active+.btn-link,.btn-link:active,.btn-link.active,.btn-link.show{color:var(--mdb-btn-active-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-link:focus,.btn-check:active+.btn-link:focus,.btn-link:active:focus,.btn-link.active:focus,.btn-link.show:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-link:disabled,.btn-link.disabled,fieldset:disabled .btn-link{box-shadow:var(--mdb-btn-box-shadow)}.btn-tertiary{--mdb-btn-font-weight: 500;--mdb-btn-color: #3b71ca;--mdb-btn-hover-color: #386bc0;--mdb-btn-hover-bg: transparent;--mdb-btn-focus-color: #3566b6;--mdb-btn-active-color: #3260ac;--mdb-btn-disabled-color: #9e9e9e;--mdb-btn-box-shadow: none;padding-left:0;padding-right:0;text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}:not(.btn-check)+.btn-tertiary:hover,.btn-tertiary:first-child:hover,.btn-tertiary:focus-visible,.btn-tertiary:hover{text-decoration:none;box-shadow:var(--mdb-btn-box-shadow)}.btn-check:focus-visible+.btn-tertiary,.btn-check:focus+.btn-tertiary,.btn-tertiary:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-tertiary,.btn-check:active+.btn-tertiary,.btn-tertiary:active,.btn-tertiary.active,.btn-tertiary.show{color:var(--mdb-btn-active-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-check:checked+.btn-tertiary:focus,.btn-check:active+.btn-tertiary:focus,.btn-tertiary:active:focus,.btn-tertiary.active:focus,.btn-tertiary.show:focus{color:var(--mdb-btn-focus-color);box-shadow:var(--mdb-btn-box-shadow)}.btn-tertiary:disabled,.btn-tertiary.disabled,fieldset:disabled .btn-tertiary{box-shadow:var(--mdb-btn-box-shadow)}.btn-lg,.btn-group-lg>.btn{--mdb-btn-padding-top: .75rem;--mdb-btn-padding-bottom: .6875rem;--mdb-btn-padding-x: 1.6875rem;--mdb-btn-font-size:.875rem;--mdb-btn-line-height: 1.6}.btn-sm,.btn-group-sm>.btn{--mdb-btn-padding-top: .375rem;--mdb-btn-padding-bottom: .3125rem;--mdb-btn-padding-x: 1rem;--mdb-btn-font-size:.75rem;--mdb-btn-line-height: 1.5}.btn-rounded{--mdb-btn-border-radius: 10rem;border-radius:var(--mdb-btn-border-radius)}.btn-floating,[class*=btn-outline-].btn-floating{--mdb-btn-border-radius: 50%;border-radius:var(--mdb-btn-border-radius);padding:0;position:relative}.btn-floating{--mdb-btn-width: 2.3125rem;--mdb-btn-height: 2.3125rem;--mdb-btn-icon-width: 2.3125rem;--mdb-btn-icon-line-height: 2.3125rem;--mdb-btn-width-lg: 2.8125rem;--mdb-btn-height-lg: 2.8125rem;--mdb-btn-icon-width-lg: 2.8125rem;--mdb-btn-icon-line-height-lg: 2.8125rem;--mdb-btn-width-sm: 1.8125rem;--mdb-btn-height-sm: 1.8125rem;--mdb-btn-icon-width-sm: 1.8125rem;--mdb-btn-icon-line-height-sm: 1.8125rem;width:var(--mdb-btn-width);height:var(--mdb-btn-height)}.btn-floating .fas,.btn-floating .far,.btn-floating .fab{width:var(--mdb-btn-icon-width);line-height:var(--mdb-btn-icon-line-height)}.btn-floating.btn-lg,.btn-group-lg>.btn-floating.btn{width:var(--mdb-btn-width-lg);height:var(--mdb-btn-height-lg)}.btn-floating.btn-lg .fas,.btn-group-lg>.btn-floating.btn .fas,.btn-floating.btn-lg .far,.btn-group-lg>.btn-floating.btn .far,.btn-floating.btn-lg .fab,.btn-group-lg>.btn-floating.btn .fab{width:var(--mdb-btn-icon-width-lg);line-height:var(--mdb-btn-icon-line-height-lg)}.btn-floating.btn-sm,.btn-group-sm>.btn-floating.btn{width:var(--mdb-btn-width-sm);height:var(--mdb-btn-height-sm)}.btn-floating.btn-sm .fas,.btn-group-sm>.btn-floating.btn .fas,.btn-floating.btn-sm .far,.btn-group-sm>.btn-floating.btn .far,.btn-floating.btn-sm .fab,.btn-group-sm>.btn-floating.btn .fab{width:var(--mdb-btn-icon-width-sm);line-height:var(--mdb-btn-icon-line-height-sm)}[class*=btn-outline-].btn-floating{--mdb-btn-icon-width: 2.0625rem;--mdb-btn-icon-width-lg: 2.5625rem;--mdb-btn-icon-width-sm: 1.5625rem;--mdb-btn-icon-line-height: 2.0625rem;--mdb-btn-icon-line-height-lg: 2.5625rem;--mdb-btn-icon-line-height-sm: 1.5625rem}[class*=btn-outline-].btn-floating .fas,[class*=btn-outline-].btn-floating .far,[class*=btn-outline-].btn-floating .fab{width:var(--mdb-btn-icon-width);line-height:var(--mdb-btn-icon-line-height)}[class*=btn-outline-].btn-floating.btn-lg .fas,.btn-group-lg>[class*=btn-outline-].btn-floating.btn .fas,[class*=btn-outline-].btn-floating.btn-lg .far,.btn-group-lg>[class*=btn-outline-].btn-floating.btn .far,[class*=btn-outline-].btn-floating.btn-lg .fab,.btn-group-lg>[class*=btn-outline-].btn-floating.btn .fab{width:var(--mdb-btn-icon-width-lg);line-height:var(--mdb-btn-icon-line-height-lg)}[class*=btn-outline-].btn-floating.btn-sm .fas,.btn-group-sm>[class*=btn-outline-].btn-floating.btn .fas,[class*=btn-outline-].btn-floating.btn-sm .far,.btn-group-sm>[class*=btn-outline-].btn-floating.btn .far,[class*=btn-outline-].btn-floating.btn-sm .fab,.btn-group-sm>[class*=btn-outline-].btn-floating.btn .fab{width:var(--mdb-btn-icon-width-sm);line-height:var(--mdb-btn-icon-line-height-sm)}.fixed-action-btn{--mdb-btn-right: 2.1875rem;--mdb-btn-bottom: 2.1875rem;--mdb-btn-zindex: 1030;--mdb-btn-padding-top: .9375rem;--mdb-btn-padding-bottom: 1.25rem;--mdb-btn-padding-x: 1.25rem;--mdb-btn-margin-bottom: 1.5rem;position:fixed;right:var(--mdb-btn-right);bottom:var(--mdb-btn-bottom);z-index:var(--mdb-btn-zindex);display:flex;flex-flow:column-reverse nowrap;align-items:center;padding:var(--mdb-btn-padding-top) var(--mdb-btn-padding-x) var(--mdb-btn-padding-bottom);margin-bottom:0;height:auto;overflow:hidden}.fixed-action-btn>.btn-floating{position:relative;transform:scale(1.2);z-index:10}.fixed-action-btn ul{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:0;margin:0;text-align:center;opacity:0;transition:transform .4s,opacity .4s;z-index:-1}.fixed-action-btn ul li{z-index:0;display:flex;margin-right:auto;margin-bottom:var(--mdb-btn-margin-bottom);margin-left:auto}.fixed-action-btn ul li:first-of-type{margin-top:calc(var(--mdb-btn-margin-bottom)*.5)}.fixed-action-btn ul a.btn{opacity:0;transition:opacity .4s ease-in}.fixed-action-btn ul a.btn.shown,.fixed-action-btn.active ul{opacity:1}.btn-block{--mdb-btn-margin-top: .5rem;display:block;width:100%}.btn-block+.btn-block{margin-top:var(--mdb-btn-margin-top)}hr.divider-horizontal:not([size]){height:2px}.divider-horizontal{opacity:1;background-color:#f5f5f5;height:2px}.divider-vertical{opacity:1;background-color:#f5f5f5;display:inline-block;width:2px;margin:0 1rem}hr.divider-horizontal-blurry{background-image:linear-gradient(90deg,transparent,hsl(0,0%,40%),transparent);background-color:#0000}hr.divider-vertical-blurry{background-image:linear-gradient(180deg,transparent,hsl(0,0%,40%),transparent);background-color:#0000;width:1px;top:0;right:0}.dropdown-menu{--mdb-dropdown-item-border-radius: .5rem;color:var(--mdb-dropdown-color);margin:0;padding-top:0;padding-bottom:0;border:0;box-shadow:var(--mdb-dropdown-box-shadow);font-size:var(--mdb-dropdown-font-size);top:100%;left:0;margin-top:var(--mdb-dropdown-spacer)}.dropdown-menu>li{border-radius:0}.dropdown-menu>li:first-child{border-top-left-radius:var(--mdb-dropdown-item-border-radius);border-top-right-radius:var(--mdb-dropdown-item-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.dropdown-menu>li:first-child .dropdown-item{border-top-left-radius:var(--mdb-dropdown-item-border-radius);border-top-right-radius:var(--mdb-dropdown-item-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.dropdown-menu>li:not(:first-child):not(:last-child) .dropdown-item{border-radius:0}.dropdown-menu>li:last-child{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--mdb-dropdown-item-border-radius);border-bottom-right-radius:var(--mdb-dropdown-item-border-radius)}.dropdown-menu>li:last-child .dropdown-item{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--mdb-dropdown-item-border-radius);border-bottom-right-radius:var(--mdb-dropdown-item-border-radius)}.dropdown-menu.animation{--mdb-dropdown-menu-animated-animation-duration: .55s;--mdb-dropdown-menu-animated-animation-timing-function: ease;display:block;animation-duration:var(--mdb-dropdown-menu-animated-animation-duration);animation-timing-function:var(--mdb-dropdown-menu-animated-animation-timing-function)}.dropdown-item{--mdb-dropdown-state-color: #16181b;--mdb-dropdown-state-background-color: #eee;padding:var(--mdb-dropdown-item-padding-y) var(--mdb-dropdown-item-padding-x);color:var(--mdb-dropdown-color);border-radius:0}.dropdown-item:hover,.dropdown-item:focus{color:var(--mdb-dropdown-state-color);background-color:var(--mdb-dropdown-state-background-color)}.dropdown-item.active,.dropdown-item:active{color:var(--mdb-dropdown-state-color);background-color:var(--mdb-dropdown-state-background-color)}.hidden-arrow.dropdown-toggle:after{display:none}.animation{animation-duration:1s;animation-fill-mode:both;padding:auto}@media (prefers-reduced-motion){.animation{transition:none!important;animation:unset!important}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.fade-in{animation-name:fade-in}@keyframes fade-out{0%{opacity:1}to{opacity:0}}.fade-out{animation-name:fade-out}.dropdown-divider{--mdb-dropdown-divider-border-top-width: 2px;--mdb-dropdown-divider-border-top-bg: hsl(0, 0%, 96%);border-top:var(--mdb-dropdown-divider-border-top-width) solid var(--mdb-dropdown-divider-border-top-bg);opacity:1}.dropdown-menu INPUT:not(:-webkit-autofill),.dropdown-menu SELECT:not(:-webkit-autofill),.dropdown-menu TEXTAREA:not(:-webkit-autofill){animation-name:none!important}.btn-group,.btn-group-vertical{--mdb-btn-box-shadow: 0 4px 9px -4px rgba(0, 0, 0, .35);--mdb-btn-hover-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-focus-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-active-box-shadow: 0 8px 9px -4px rgba(0, 0, 0, .15), 0 4px 18px 0 rgba(0, 0, 0, .1);--mdb-btn-group-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;box-shadow:var(--mdb-btn-box-shadow);transition:var(--mdb-btn-group-transition)}.btn-group:hover,.btn-group-vertical:hover{box-shadow:var(--mdb-btn-hover-box-shadow)}.btn-group:focus,.btn-group.focus,.btn-group-vertical:focus,.btn-group-vertical.focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn-group:active,.btn-group.active,.btn-group-vertical:active,.btn-group-vertical.active{box-shadow:var(--mdb-btn-active-box-shadow)}.btn-group:active:focus,.btn-group.active:focus,.btn-group-vertical:active:focus,.btn-group-vertical.active:focus{box-shadow:var(--mdb-btn-focus-box-shadow)}.btn-group:disabled,.btn-group.disabled,fieldset:disabled .btn-group,.btn-group-vertical:disabled,.btn-group-vertical.disabled,fieldset:disabled .btn-group-vertical{box-shadow:var(--mdb-btn-box-shadow);border:0}.btn-group>.btn,.btn-group-vertical>.btn{box-shadow:none}:not(.btn-check)+.btn-group>.btn:hover,.btn-group>.btn:first-child:hover,.btn-group>.btn:focus-visible,.btn-group>.btn:hover,:not(.btn-check)+.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:first-child:hover,.btn-group-vertical>.btn:focus-visible,.btn-group-vertical>.btn:hover{box-shadow:none!important}.btn-check:focus-visible+.btn-group>.btn,.btn-check:focus+.btn-group>.btn,.btn-group>.btn:focus,.btn-check:focus-visible+.btn-group-vertical>.btn,.btn-check:focus+.btn-group-vertical>.btn,.btn-group-vertical>.btn:focus{box-shadow:none}.btn-check:checked+.btn-group>.btn,.btn-check:active+.btn-group>.btn,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group>.btn.show,.btn-check:checked+.btn-group-vertical>.btn,.btn-check:active+.btn-group-vertical>.btn,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn.show{box-shadow:none}.btn-check:checked+.btn-group>.btn:focus,.btn-check:active+.btn-group>.btn:focus,.btn-group>.btn:active:focus,.btn-group>.btn.active:focus,.btn-group>.btn.show:focus,.btn-check:checked+.btn-group-vertical>.btn:focus,.btn-check:active+.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active:focus,.btn-group-vertical>.btn.active:focus,.btn-group-vertical>.btn.show:focus{box-shadow:none}.btn-group>.btn:disabled,.btn-group>.btn.disabled,fieldset:disabled .btn-group>.btn,.btn-group-vertical>.btn:disabled,.btn-group-vertical>.btn.disabled,fieldset:disabled .btn-group-vertical>.btn{box-shadow:none}.btn-group>.btn-group,.btn-group-vertical>.btn-group{box-shadow:none}.btn-group>.btn-link:first-child,.btn-group>.btn-tertiary:first-child,.btn-group-vertical>.btn-link:first-child,.btn-group-vertical>.btn-tertiary:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-link:last-child,.btn-group>.btn-tertiary:last-child,.btn-group-vertical>.btn-link:last-child,.btn-group-vertical>.btn-tertiary:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group,.btn-group-lg>.btn,.btn-group-sm>.btn{--mdb-btn-border-radius: .25rem;border-radius:var(--mdb-btn-border-radius)}.nav-tabs{border-bottom:0}.nav-tabs .nav-link{--mdb-nav-tabs-link-font-weight: 500;--mdb-nav-tabs-link-font-size: 12px;--mdb-nav-tabs-link-color: rgba(0, 0, 0, .55);--mdb-nav-tabs-link-padding-top: 17px;--mdb-nav-tabs-link-padding-bottom: 16px;--mdb-nav-tabs-link-padding-x: 29px;--mdb-nav-tabs-link-hover-bgc: #f7f7f7;--mdb-nav-tabs-link-border-bottom-width: 2px;--mdb-nav-tabs-link-active-color: #3b71ca;--mdb-nav-tabs-link-active-border-color: #3b71ca;border-width:0;border-bottom:var(--mdb-nav-tabs-link-border-bottom-width) solid rgba(0,0,0,0);border-radius:0;text-transform:uppercase;line-height:1;font-weight:var(--mdb-nav-tabs-link-font-weight);font-size:var(--mdb-nav-tabs-link-font-size);color:var(--mdb-nav-tabs-link-color);padding:var(--mdb-nav-tabs-link-padding-top) var(--mdb-nav-tabs-link-padding-x) var(--mdb-nav-tabs-link-padding-bottom) var(--mdb-nav-tabs-link-padding-x)}.nav-tabs .nav-link:hover{background-color:var(--mdb-nav-tabs-link-hover-bgc);border-color:#0000}.nav-tabs .nav-link:focus{border-color:#0000}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--mdb-nav-tabs-link-active-color);border-color:var(--mdb-nav-tabs-link-active-border-color)}.nav-pills{margin-left:-.5rem}.nav-pills .nav-link{--mdb-nav-pills-link-border-radius: .25rem;--mdb-nav-pills-link-font-size: 12px;--mdb-nav-pills-link-padding-top: 17px;--mdb-nav-pills-link-padding-bottom: 16px;--mdb-nav-pills-link-padding-x: 29px;--mdb-nav-pills-link-line-height: 1;--mdb-nav-pills-link-hover-bg: #f7f7f7;--mdb-nav-pills-link-font-weight: 500;--mdb-nav-pills-link-color: rgba(0, 0, 0, .55);--mdb-nav-pills-margin: .5rem;border-radius:var(--mdb-nav-pills-link-border-radius);font-size:var(--mdb-nav-pills-link-font-size);text-transform:uppercase;padding:var(--mdb-nav-pills-link-padding-top) var(--mdb-nav-pills-link-padding-x) var(--mdb-nav-pills-link-padding-bottom) var(--mdb-nav-pills-link-padding-x);line-height:var(--mdb-nav-pills-link-line-height);background-color:var(--mdb-nav-pills-link-hover-bg);font-weight:var(--mdb-nav-pills-link-font-weight);color:var(--mdb-nav-pills-link-color);margin:var(--mdb-nav-pills-margin)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{--mdb-nav-pills-link-active-bg: #e3ebf7;--mdb-nav-pills-link-active-color: #285192;background-color:var(--mdb-nav-pills-link-active-bg);color:var(--mdb-nav-pills-link-active-color)}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:auto}.navbar{--mdb-navbar-box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .07), 0 2px 4px rgba(0, 0, 0, .05);--mdb-navbar-padding-top: .5625rem;--mdb-navbar-brand-img-margin-right: .25rem;box-shadow:var(--mdb-navbar-box-shadow);padding-top:var(--mdb-navbar-padding-top)}.navbar-toggler{border:0}.navbar-toggler:focus{box-shadow:none}.navbar-dark .navbar-toggler,.navbar-light .navbar-toggler{border:0}.navbar-brand{display:flex;align-items:center}.navbar-brand img{margin-right:var(--mdb-navbar-brand-img-margin-right)}.navbar-nav .dropdown-menu{position:absolute}.navbar-light .navbar-toggler-icon,.navbar-dark .navbar-toggler-icon{background-image:none}.card{border:0}.card .bg-image{border-top-left-radius:var(--mdb-card-border-radius);border-top-right-radius:var(--mdb-card-border-radius)}.card[class*=bg-] .card-header{--mdb-card-header-border-bottom-color: var(--mdb-border-color-translucent);border-bottom-color:var(--mdb-card-header-border-bottom-color)}.card[class*=bg-] .card-footer{--mdb-card-footer-border-top-color: var(--mdb-border-color-translucent);border-top-color:var(--mdb-card-footer-border-top-color)}.card-header{--mdb-card-header-border-width: 2px;--mdb-card-header-border-color: hsl(0, 0%, 96%);border-bottom:var(--mdb-card-header-border-width) solid var(--mdb-card-header-border-color)}.card-body[class*=bg-]{border-bottom-left-radius:var(--mdb-card-border-radius);border-bottom-right-radius:var(--mdb-card-border-radius)}.card-footer{--mdb-card-footer-border-color: hsl(0, 0%, 96%);--mdb-card-footer-border-width: 2px;border-top:var(--mdb-card-footer-border-width) solid var(--mdb-card-footer-border-color)}.card-img-left{border-top-left-radius:var(--mdb-card-border-radius);border-bottom-left-radius:var(--mdb-card-border-radius)}.navbar .breadcrumb{--mdb-breadcrumb-item-color: rgba(0, 0, 0, .55);--mdb-breadcrumb-item-hover-color: rgba(0, 0, 0, .7);--mdb-breadcrumb-item-before-color: rgba(0, 0, 0, .55);--mdb-breadcrumb-item-transition: color .15s ease-in-out;background-color:#0000;margin-bottom:0}.navbar .breadcrumb .breadcrumb-item a{color:var(--mdb-breadcrumb-item-color);transition:var(--mdb-breadcrumb-item-transition)}.navbar .breadcrumb .breadcrumb-item a:hover,.navbar .breadcrumb .breadcrumb-item a:focus{color:var(--mdb-breadcrumb-item-hover-color)}.navbar .breadcrumb .breadcrumb-item+.breadcrumb-item:before{color:var(--mdb-breadcrumb-item-before-color)}.pagination{--mdb-pagination-border-radius: .25rem;--mdb-pagination-active-box-shadow: 0 4px 9px -4px #e3ebf7;--mdb-pagination-active-transition: all .2s linear;--mdb-pagination-active-font-weight: 500;--mdb-pagination-circle-border-radius: 50%;--mdb-pagination-circle-padding-x: .841rem;--mdb-pagination-circle-padding-l-lg: 1.399414rem;--mdb-pagination-circle-padding-r-lg: 1.399415rem;--mdb-pagination-circle-padding-l-sm: .696rem;--mdb-pagination-circle-padding-r-sm: .688rem}.page-link{background-color:#0000;border:0;outline:0;border-radius:var(--mdb-pagination-border-radius)}.page-link:focus{box-shadow:none}.page-link.active,.active>.page-link{border:0;box-shadow:var(--mdb-pagination-active-box-shadow);transition:var(--mdb-pagination-active-transition);font-weight:var(--mdb-pagination-active-font-weight)}.page-item:not(:first-child) .page-link{margin-left:0}.page-item:first-child .page-link{border-top-left-radius:var(--mdb-pagination-border-radius);border-bottom-left-radius:var(--mdb-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--mdb-pagination-border-radius);border-bottom-right-radius:var(--mdb-pagination-border-radius)}.pagination-circle .page-item:first-child .page-link{border-radius:var(--mdb-pagination-circle-border-radius)}.pagination-circle .page-item:last-child .page-link{border-radius:var(--mdb-pagination-circle-border-radius)}.pagination-circle .page-link{border-radius:var(--mdb-pagination-circle-border-radius);padding-left:var(--mdb-pagination-circle-padding-x);padding-right:var(--mdb-pagination-circle-padding-x)}.pagination-circle.pagination-lg .page-link{padding-left:var(--mdb-pagination-circle-padding-l-lg);padding-right:var(--mdb-pagination-circle-padding-r-lg)}.pagination-circle.pagination-sm .page-link{padding-left:var(--mdb-pagination-circle-padding-l-sm);padding-right:var(--mdb-pagination-circle-padding-r-sm)}.badge-dot{--mdb-badge-border-radius: 4.5px;--mdb-badge-height: 9px;--mdb-badge-width: 9px;--mdb-badge-margin-left: -.3125rem;position:absolute;min-width:0;width:var(--mdb-badge-width);height:var(--mdb-badge-height);border-radius:var(--mdb-badge-border-radius);padding:0;margin-left:var(--mdb-badge-margin-left)}.badge-dot:empty{display:inline-block}.badge-notification{--mdb-badge-font-size: .6rem;--mdb-badge-padding-x: .45em;--mdb-badge-padding-y: .2em;--mdb-badge-margin-top: -.1rem;--mdb-badge-margin-left: -.5rem;position:absolute;font-size:var(--mdb-badge-font-size);padding:var(--mdb-badge-padding-y) var(--mdb-badge-padding-x);margin-top:var(--mdb-badge-margin-top);margin-left:var(--mdb-badge-margin-left)}.badge-primary{background-color:#dfe7f6;color:#2c58a0}.badge-primary i{color:#376fc8}.badge-secondary{background-color:#ebedef;color:#40464f}.badge-secondary i{color:#565e6c}.badge-success{background-color:#d6f0e0;color:#0d6832}.badge-success i{color:#139647}.badge-danger{background-color:#f9e1e5;color:#af233a}.badge-danger i{color:#d62e4a}.badge-warning{background-color:#fbf0da;color:#73510d}.badge-warning i{color:#a17112}.badge-info{background-color:#def1f7;color:#1c657d}.badge-info i{color:#2686a6}.badge-light{background-color:#f5f5f5;color:#4f4f4f}.badge-light i{color:#8c8c8c}.badge-dark{background-color:#332e2e;color:#f5f5f5}.badge-dark i{color:#e8e8e8}.alert{border:0}.alert-absolute{position:absolute}.alert-fixed{--mdb-alert-fixed-z-index: 1070;position:fixed;z-index:var(--mdb-alert-fixed-z-index)}.parent-alert-relative{position:relative}.alert-primary{background-color:#dfe7f6;color:#2c58a0}.alert-primary i{color:#376fc8}.alert-primary .alert-link{color:#2c58a0}.alert-primary .alert-link:hover{color:#234680}.alert-secondary{background-color:#ebedef;color:#40464f}.alert-secondary i{color:#565e6c}.alert-secondary .alert-link{color:#40464f}.alert-secondary .alert-link:hover{color:#33383f}.alert-success{background-color:#d6f0e0;color:#0d6832}.alert-success i{color:#139647}.alert-success .alert-link{color:#0d6832}.alert-success .alert-link:hover{color:#0a5328}.alert-danger{background-color:#f9e1e5;color:#af233a}.alert-danger i{color:#d62e4a}.alert-danger .alert-link{color:#af233a}.alert-danger .alert-link:hover{color:#8c1c2e}.alert-warning{background-color:#fbf0da;color:#73510d}.alert-warning i{color:#a17112}.alert-warning .alert-link{color:#73510d}.alert-warning .alert-link:hover{color:#5c410a}.alert-info{background-color:#def1f7;color:#1c657d}.alert-info i{color:#2686a6}.alert-info .alert-link{color:#1c657d}.alert-info .alert-link:hover{color:#165164}.alert-light{background-color:#f5f5f5;color:#4f4f4f}.alert-light i{color:#8c8c8c}.alert-light .alert-link{color:#4f4f4f}.alert-light .alert-link:hover{color:#3f3f3f}.alert-dark{background-color:#332e2e;color:#f5f5f5}.alert-dark i{color:#e8e8e8}.alert-dark .alert-link{color:#f5f5f5}.alert-dark .alert-link:hover{color:#c4c4c4}.progress{border-radius:0;box-shadow:none}.list-group{--mdb-list-group-item-transition-time: .5s}.list-group-item-action,.list-group-item-action:hover{transition:var(--mdb-list-group-item-transition-time)}.list-group-light{--mdb-list-group-light-item-py: 1rem;--mdb-list-group-light-item-border: 2px solid hsl(0, 0%, 96%);--mdb-list-group-light-item-border-width: 2px;--mdb-list-group-light-active-border-radius: .5rem;--mdb-list-group-light-active-bg: rgb(223, 231, 246);--mdb-list-group-light-active-color: rgb(44, 88, 160)}.list-group-light .list-group-item{padding:var(--mdb-list-group-light-item-py) 0;border:var(--mdb-list-group-light-item-border)}.list-group-light>.list-group-item{border-width:0 0 var(--mdb-list-group-light-item-border-width)}.list-group-light>.list-group-item:last-of-type{border:none}.list-group-light .active{border:none;border-radius:var(--mdb-list-group-light-active-border-radius);background-color:var(--mdb-list-group-light-active-bg);color:var(--mdb-list-group-light-active-color)}.list-group-light .list-group-item-action:hover{border-radius:var(--mdb-list-group-light-active-border-radius)}.list-group-light .list-group-item-action:focus{border-radius:var(--mdb-list-group-light-active-border-radius)}.list-group-small{--mdb-list-group-small-item-py: .5rem}.list-group-small .list-group-item{padding:var(--mdb-list-group-small-item-py) 0}.list-group-item-primary{background-color:#dfe7f6;color:#2c58a0}.list-group-item-primary i{color:#376fc8}.list-group-item-secondary{background-color:#ebedef;color:#40464f}.list-group-item-secondary i{color:#565e6c}.list-group-item-success{background-color:#d6f0e0;color:#0d6832}.list-group-item-success i{color:#139647}.list-group-item-danger{background-color:#f9e1e5;color:#af233a}.list-group-item-danger i{color:#d62e4a}.list-group-item-warning{background-color:#fbf0da;color:#73510d}.list-group-item-warning i{color:#a17112}.list-group-item-info{background-color:#def1f7;color:#1c657d}.list-group-item-info i{color:#2686a6}.list-group-item-light{background-color:#f5f5f5;color:#4f4f4f}.list-group-item-light i{color:#8c8c8c}.list-group-item-dark{background-color:#332e2e;color:#f5f5f5}.list-group-item-dark i{color:#e8e8e8}.btn-close:focus{box-shadow:none}.modal-content{--mdb-modal-box-shadow: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);border:0;box-shadow:var(--mdb-modal-box-shadow)}.toast{--mdb-toast-border-bottom-width: 2px;--mdb-toast-btn-close-width: 1.3em;--mdb-toast-btn-close-mr: -.375rem;--mdb-toast-btn-close-ml: .75rem;border:0}.toast .btn-close{width:var(--mdb-toast-btn-close-width)}.toast-header{border-bottom-width:var(--mdb-toast-border-bottom-width)}.toast-header .btn-close{margin-right:var(--mdb-toast-btn-close-mr);margin-left:var(--mdb-toast-btn-close-ml)}.parent-toast-relative{position:relative}.toast-absolute{position:absolute}.toast-fixed{position:fixed;z-index:var(--mdb-toast-zindex)}.toast-primary{background-color:#dfe7f6;color:#2c58a0;border-color:#c7d6f0}.toast-primary i{color:#376fc8}.toast-secondary{background-color:#ebedef;color:#40464f;border-color:#dadee1}.toast-secondary i{color:#565e6c}.toast-success{background-color:#d6f0e0;color:#0d6831;border-color:#c0e7d0}.toast-success i{color:#139647}.toast-danger{background-color:#f9e1e5;color:#af233a;border-color:#f4c8cf}.toast-danger i{color:#d62e4a}.toast-warning{background-color:#fbf0da;color:#73510d;border-color:#f9e4be}.toast-warning i{color:#a17112}.toast-info{background-color:#def1f7;color:#1c657d;border-color:#c6e6f1}.toast-info i{color:#2686a6}.toast-light{background-color:#f5f5f5;color:#4f4f4f;border-color:#e6e6e6}.toast-light i{color:#8c8c8c}.toast-dark{background-color:#332e2e;color:#f5f5f5;border-color:#443c3c}.toast-dark i{color:#e8e8e8}.tooltip{--mdb-tooltip-font-size: 14px}.tooltip.show{opacity:1}.tooltip .tooltip-arrow{display:none}.tooltip-inner{font-size:var(--mdb-tooltip-font-size)}.popover{--mdb-popover-border-bottom-width: 2px}.popover .popover-arrow{display:none}.popover-header{border-bottom:var(--mdb-popover-border-bottom-width) solid var(--mdb-popover-border-color)}.nav-pills.menu-sidebar .nav-link{--mdb-scrollspy-menu-sidebar-font-size: .8rem;--mdb-scrollspy-menu-sidebar-color: #262626;--mdb-scrollspy-menu-sidebar-line-height: 1.1rem;--mdb-scrollspy-menu-sidebar-padding-x: 5px;--mdb-scrollspy-menu-sidebar-font-weight: 400;--mdb-scrollspy-menu-sidebar-transition: all .2s ease-in-out;--mdb-scrollspy-menu-sidebar-margin-y: 3px;font-size:var(--mdb-scrollspy-menu-sidebar-font-size);background-color:#0000;color:var(--mdb-scrollspy-menu-sidebar-color);line-height:var(--mdb-scrollspy-menu-sidebar-line-height);padding:0 var(--mdb-scrollspy-menu-sidebar-padding-x);font-weight:var(--mdb-scrollspy-menu-sidebar-font-weight);transition:var(--mdb-scrollspy-menu-sidebar-transition);text-transform:initial;margin-top:var(--mdb-scrollspy-menu-sidebar-margin-y);margin-bottom:var(--mdb-scrollspy-menu-sidebar-margin-y)}.nav-pills.menu-sidebar .nav-link.active,.nav-pills.menu-sidebar .show>.nav-link{--mdb-scrollspy-menu-sidebar-active-color: #3b71ca;--mdb-scrollspy-menu-sidebar-active-font-weight: 600;--mdb-scrollspy-menu-sidebar-active-border-width: .125rem;--mdb-scrollspy-menu-sidebar-active-border-color: #3b71ca;background-color:#0000;box-shadow:none;color:var(--mdb-scrollspy-menu-sidebar-active-color);font-weight:var(--mdb-scrollspy-menu-sidebar-active-font-weight);border-left:var(--mdb-scrollspy-menu-sidebar-active-border-width) solid var(--mdb-scrollspy-menu-sidebar-active-border-color);border-radius:0}.nav-pills.menu-sidebar .collapsible-scrollspy~.nav{--mdb-scrollspy-collapsible-nav-transition-time: .5s;transition:height var(--mdb-scrollspy-collapsible-nav-transition-time) ease;flex-wrap:nowrap}.ripple-surface{position:relative;overflow:hidden;display:inline-block;vertical-align:bottom}.ripple-surface-unbound{overflow:visible}.ripple-wave{--mdb-ripple-wave-cubicBezier: cubic-bezier(0, 0, .15, 1);--mdb-ripple-wave-border-radius: 50%;--mdb-ripple-wave-opacity: .5;--mdb-ripple-wave-transform: scale(0);--mdb-ripple-wave-z-index: 999;--mdb-ripple-wave-active-transform: scale(1);background-image:radial-gradient(circle,rgba(0,0,0,.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(0,0,0,0) 70%);border-radius:var(--mdb-ripple-wave-border-radius);opacity:var(--mdb-ripple-wave-opacity);pointer-events:none;position:absolute;touch-action:none;transform:var(--mdb-ripple-wave-transform);transition-property:transform,opacity;transition-timing-function:var(--mdb-ripple-wave-cubicBezier),var(--mdb-ripple-wave-cubicBezier);z-index:var(--mdb-ripple-wave-z-index)}.ripple-wave.active{transform:var(--mdb-ripple-wave-active-transform);opacity:0}.btn .ripple-wave,.input-wrapper .ripple-wave{background-image:radial-gradient(circle,rgba(255,255,255,.2) 0,rgba(255,255,255,.3) 40%,rgba(255,255,255,.4) 50%,rgba(255,255,255,.5) 60%,rgba(255,255,255,0) 70%)}.ripple-surface-primary .ripple-wave{background-image:radial-gradient(circle,rgba(59,113,202,.2) 0,rgba(59,113,202,.3) 40%,rgba(59,113,202,.4) 50%,rgba(59,113,202,.5) 60%,rgba(59,113,202,0) 70%)}.ripple-surface-secondary .ripple-wave{background-image:radial-gradient(circle,rgba(227,235,247,.2) 0,rgba(227,235,247,.3) 40%,rgba(227,235,247,.4) 50%,rgba(227,235,247,.5) 60%,rgba(227,235,247,0) 70%)}.ripple-surface-success .ripple-wave{background-image:radial-gradient(circle,rgba(20,164,77,.2) 0,rgba(20,164,77,.3) 40%,rgba(20,164,77,.4) 50%,rgba(20,164,77,.5) 60%,rgba(20,164,77,0) 70%)}.ripple-surface-danger .ripple-wave{background-image:radial-gradient(circle,rgba(220,76,100,.2) 0,rgba(220,76,100,.3) 40%,rgba(220,76,100,.4) 50%,rgba(220,76,100,.5) 60%,rgba(220,76,100,0) 70%)}.ripple-surface-warning .ripple-wave{background-image:radial-gradient(circle,rgba(228,161,27,.2) 0,rgba(228,161,27,.3) 40%,rgba(228,161,27,.4) 50%,rgba(228,161,27,.5) 60%,rgba(228,161,27,0) 70%)}.ripple-surface-info .ripple-wave{background-image:radial-gradient(circle,rgba(84,180,211,.2) 0,rgba(84,180,211,.3) 40%,rgba(84,180,211,.4) 50%,rgba(84,180,211,.5) 60%,rgba(84,180,211,0) 70%)}.ripple-surface-light .ripple-wave{background-image:radial-gradient(circle,rgba(251,251,251,.2) 0,rgba(251,251,251,.3) 40%,rgba(251,251,251,.4) 50%,rgba(251,251,251,.5) 60%,rgba(251,251,251,0) 70%)}.ripple-surface-dark .ripple-wave{background-image:radial-gradient(circle,rgba(51,45,45,.2) 0,rgba(51,45,45,.3) 40%,rgba(51,45,45,.4) 50%,rgba(51,45,45,.5) 60%,rgba(51,45,45,0) 70%)}.range{--mdb-range-thumb-height: 30px;--mdb-range-thumb-width: 30px;--mdb-range-thumb-top: -35px;--mdb-range-thumb-margin-left: -15px;--mdb-range-thumb-border-radius: 50% 50% 50% 0;--mdb-range-thumb-transform: scale(0);--mdb-range-thumb-transition: transform .2s ease-in-out;--mdb-range-thumb-value-font-size: 12px;--mdb-range-thumb-value-line-height: 30px;--mdb-range-thumb-value-color: rgb(255, 255, 255);--mdb-range-thumb-value-font-weight: 500;--mdb-range-thumb-background: #3b71ca;position:relative}.range .thumb{position:absolute;display:block;height:var(--mdb-range-thumb-height);width:var(--mdb-range-thumb-width);top:var(--mdb-range-thumb-top);margin-left:var(--mdb-range-thumb-margin-left);text-align:center;border-radius:var(--mdb-range-thumb-border-radius);transform:var(--mdb-range-thumb-transform);transform-origin:bottom;transition:var(--mdb-range-thumb-transition)}.range .thumb:after{position:absolute;display:block;content:"";transform:translate(-50%);width:100%;height:100%;top:0;border-radius:var(--mdb-range-thumb-border-radius);transform:rotate(-45deg);background:var(--mdb-range-thumb-background);z-index:-1}.range .thumb .thumb-value{display:block;font-size:var(--mdb-range-thumb-value-font-size);line-height:var(--mdb-range-thumb-value-line-height);color:var(--mdb-range-thumb-value-color);font-weight:var(--mdb-range-thumb-value-font-weight);z-index:2}.range .thumb.thumb-active{transform:scale(1)}.accordion-button:not(.collapsed):focus{box-shadow:var(--mdb-accordion-btn-focus-box-shadow)}.accordion-button:focus{border-color:var(--mdb-accordion-btn-focus-border-color);outline:0;box-shadow:none}.accordion-flush{--mdb-accordion-flush-btn-box-shadow: inset 0 -2px 0 hsl(0, 0%, 96%);--mdb-accordion-flush-border-bottom: 2px solid hsl(0, 0%, 96%)}.accordion-flush .accordion-button:not(.collapsed){box-shadow:var(--mdb-accordion-flush-btn-box-shadow)}.accordion-flush .accordion-item{border-bottom:var(--mdb-accordion-flush-border-bottom)}.accordion.accordion-borderless,.accordion.accordion-flush{--mdb-accordion-bg: transparent;background-color:var(--mdb-accordion-bg)}.accordion-borderless{--mdb-accordion-borderless-btn-border-radius: .5rem;--mdb-accordion-borderless-btn-bg: rgb(223, 231, 246);--mdb-accordion-borderless-btn-color: rgb(44, 88, 160)}.accordion-borderless .accordion-item{border:0}.accordion-borderless .accordion-item .accordion-button{border-radius:var(--mdb-accordion-borderless-btn-border-radius)}.accordion-borderless .accordion-item .accordion-button:not(.collapsed){background-color:var(--mdb-accordion-borderless-btn-bg);color:var(--mdb-accordion-borderless-btn-color);box-shadow:none}.carousel-control-prev-icon:after{content:"";--mdb-carousel-control-icon-font-size: 1.7rem;--mdb-carousel-control-icon-font-weight: 700;font-weight:var(--mdb-carousel-control-icon-font-weight);font-size:var(--mdb-carousel-control-icon-font-size);font-family:"Font Awesome 6 Pro","Font Awesome 6 Free"}.carousel-control-next-icon:after{content:"";--mdb-carousel-control-icon-font-size: 1.7rem;--mdb-carousel-control-icon-font-weight: 700;font-weight:var(--mdb-carousel-control-icon-font-weight);font-size:var(--mdb-carousel-control-icon-font-size);font-family:"Font Awesome 6 Pro","Font Awesome 6 Free"}.form-check-input[type=checkbox]{margin-right:0}.form-check-label{padding-left:.15rem}.badge:not(.badge-dot):not(.badge-notification){margin:0 .12rem}.btn{margin:0 .12rem}.input-group .btn{margin:0}.btn-group>.btn,.btn-group-vertical>.btn{margin:0}.carousel-indicators button{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid rgba(0,0,0,0);border-bottom:10px solid rgba(0,0,0,0);opacity:.5;transition:opacity .6s ease}.carousel-dark .carousel-indicators button{background-color:#000}@media (max-width: 575.98px){.navbar-expand-sm .navbar-collapse{display:none!important}.navbar-expand-sm .navbar-collapse.show{display:block!important}}@media (min-width: 576px){.navbar-expand-sm .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 767.98px){.navbar-expand-md .navbar-collapse{display:none!important}.navbar-expand-md .navbar-collapse.show{display:block!important}}@media (min-width: 768px){.navbar-expand-md .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 991.98px){.navbar-expand-lg .navbar-collapse{display:none!important}.navbar-expand-lg .navbar-collapse.show{display:block!important}}@media (min-width: 992px){.navbar-expand-lg .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 1199.98px){.navbar-expand-xl .navbar-collapse{display:none!important}.navbar-expand-xl .navbar-collapse.show{display:block!important}}@media (min-width: 1200px){.navbar-expand-xl .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}@media (max-width: 1399.98px){.navbar-expand-xxl .navbar-collapse{display:none!important}.navbar-expand-xxl .navbar-collapse.show{display:block!important}}@media (min-width: 1400px){.navbar-expand-xxl .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}}.navbar-expand .navbar-collapse{display:none!important}.navbar-expand .navbar-collapse.show{display:block!important}.navbar-expand .collapse.navbar-collapse:not(.show){display:flex!important;height:auto!important}.tooltip .tooltip_arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.tooltip[data-popper-placement^=top] .tooltip_arrow{border-width:5px 5px 0 5px;border-color:#6d6d6d rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0;left:-5px!important}.tooltip[data-popper-placement^=bottom] .tooltip_arrow{border-width:0 5px 5px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #6d6d6d rgba(0,0,0,0);top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0;left:-5px!important}.tooltip[data-popper-placement^=right] .tooltip_arrow{border-width:5px 5px 5px 0;border-color:rgba(0,0,0,0) #6d6d6d rgba(0,0,0,0) rgba(0,0,0,0);left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0;top:-5px!important}.tooltip[data-popper-placement^=left] .tooltip_arrow{border-width:5px 0 5px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #6d6d6d;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0;top:-5px!important}.fade-leave-active,.fade-enter-active{transition:opacity .2s linear}.fade-enter-to,.fade-leave-from{opacity:1}.tooltip{position:absolute}.popover .popover_arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px;color:#0000}.popover[data-popper-placement^=top] .popover_arrow{border-width:10px 10px 0 10px;border-color:#d6d6d6 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);bottom:-10px;margin-bottom:0;left:-10px!important}.popover[data-popper-placement^=top] .popover_arrow:before{content:"";display:inline-block;position:absolute;left:-10px;bottom:1.5px;border:solid;border-width:10px 10px 0 10px;border-color:#fff rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.popover[data-popper-placement^=bottom] .popover_arrow{border-width:0 10px 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #d6d6d6 rgba(0,0,0,0);top:-10px;margin-top:0;left:-10px!important}.popover[data-popper-placement^=bottom] .popover_arrow:before{content:"";display:inline-block;position:absolute;left:-10px;top:1.45px;border:solid;border-width:0 10px 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #fff rgba(0,0,0,0)}.popover[data-popper-placement^=right] .popover_arrow{border-width:10px 10px 10px 0;border-color:rgba(0,0,0,0) #d6d6d6 rgba(0,0,0,0) rgba(0,0,0,0);left:-10px;margin-left:0;top:-10px!important}.popover[data-popper-placement^=right] .popover_arrow:before{content:"";display:inline-block;position:absolute;top:-10px;left:1.45px;border:solid;border-width:10px 10px 10px 0;border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}.popover[data-popper-placement^=left] .popover_arrow{border-width:10px 0 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #d6d6d6;right:-10px;margin-right:0;top:-10px!important}.popover[data-popper-placement^=left] .popover_arrow:before{content:"";display:inline-block;position:absolute;top:-10px;right:1.45px;border:solid;border-width:10px 0 10px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #fff}.popover{position:absolute}.nav-pills.menu-sidebar .nav-link{border-left:0 solid rgba(0,0,0,0)}.valid-feedback{width:auto}.is-valid .form-outline .form-control~.form-label{color:#00b74a}.is-valid .form-outline .form-control~.form-notch .form-notch-leading,.is-valid .form-outline .form-control~.form-notch .form-notch-middle,.is-valid .form-outline .form-control~.form-notch .form-notch-trailing{border-color:#00b74a}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-middle,.is-valid .form-outline .form-control.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-middle{box-shadow:0 1px #00b74a}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #00b74a,0 1px #00b74a,0 -1px #00b74a}.is-valid .form-outline .form-control:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #00b74a,0 -1px #00b74a,0 1px #00b74a}.is-valid .form-outline .form-control.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #00b74a,0 1px #00b74a,0 -1px #00b74a}.is-valid .form-outline .form-control.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #00b74a;border-top:1px solid rgba(0,0,0,0)}.is-valid .form-outline .form-control.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #00b74a,0 -1px #00b74a,0 1px #00b74a}.is-invalid .form-outline .form-control~.form-label{color:#f93154}.is-invalid .form-outline .form-control~.form-notch .form-notch-leading,.is-invalid .form-outline .form-control~.form-notch .form-notch-middle,.is-invalid .form-outline .form-control~.form-notch .form-notch-trailing{border-color:#f93154}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-middle,.is-invalid .form-outline .form-control.active~.form-notch .form-notch-middle{border-top:1px solid rgba(0,0,0,0)}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-middle{box-shadow:0 1px #f93154}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-leading{box-shadow:-1px 0 #f93154,0 1px #f93154,0 -1px #f93154}.is-invalid .form-outline .form-control:focus~.form-notch .form-notch-trailing{box-shadow:1px 0 #f93154,0 -1px #f93154,0 1px #f93154}.is-invalid .form-outline .form-control.select-input.focused~.form-notch .form-notch-leading{box-shadow:-1px 0 #f93154,0 1px #f93154,0 -1px #f93154}.is-invalid .form-outline .form-control.select-input.focused~.form-notch .form-notch-middle{box-shadow:0 1px #f93154;border-top:1px solid rgba(0,0,0,0)}.is-invalid .form-outline .form-control.select-input.focused~.form-notch .form-notch-trailing{box-shadow:1px 0 #f93154,0 -1px #f93154,0 1px #f93154}.nav-tabs .nav-link,.nav-pills .nav-link{cursor:pointer}.input-group .btn-group{box-shadow:none}.input-group:not(.has-validation)>.btn-group:not(:last-child)>:not(:last-child):not(.dropdown-menu),.input-group:not(.has-validation)>.btn-group:not(:last-child)>.dropdown-toggle:last-child,.input-group:not(.has-validation)>.btn-group:not(:last-child) .dropdown-toggle:nth-last-child(n+1){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.btn-group>:last-child:not(.dropdown-toggle):not(.dropdown-menu),.input-group.has-validation>.btn-group>.dropdown-toggle:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.btn-group:last-child>:first-child:not(.dropdown-menu){border-top-left-radius:0;border-bottom-left-radius:0}.input-group-text{min-height:calc(2.08rem + 2px);height:calc(2.08rem + 2px)}.input-group-lg .input-group-text{height:calc(2.645rem + 2px);font-size:1rem}.input-group-sm .input-group-text{min-height:calc(1.66rem + 2px);height:calc(1.66rem + 2px);font-size:.775rem;line-height:1.5}.form-outline .form-control:focus~.form-label~.form-label{transform:none;color:#0009}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}h1[data-v-e979a9d8]{margin-top:2rem}.card[data-v-e979a9d8]{margin-bottom:2rem}.status-message[data-v-e979a9d8]{font-style:italic}.fork[data-v-e979a9d8]{float:right;margin-top:-3em} diff --git a/assets/index-ea2ef2d8.js b/assets/index-ea2ef2d8.js new file mode 100644 index 0000000..6baf615 --- /dev/null +++ b/assets/index-ea2ef2d8.js @@ -0,0 +1,216 @@ +var BB=Object.defineProperty;var UB=(t,e,u)=>e in t?BB(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u;var wr=(t,e,u)=>(UB(t,typeof e!="symbol"?e+"":e,u),u),bg=(t,e,u)=>{if(!e.has(t))throw TypeError("Cannot "+u)};var _e=(t,e,u)=>(bg(t,e,"read from private field"),u?u.call(t):e.get(t)),xt=(t,e,u)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,u)},_t=(t,e,u,s)=>(bg(t,e,"write to private field"),s?s.call(t,u):e.set(t,u),u);var $y=(t,e,u,s)=>({set _(n){_t(t,e,n,u)},get _(){return _e(t,e,s)}}),ct=(t,e,u)=>(bg(t,e,"access private method"),u);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function u(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(n){if(n.ep)return;n.ep=!0;const r=u(n);fetch(n.href,r)}})();function S3(t,e){const u=Object.create(null),s=t.split(",");for(let n=0;n!!u[n.toLowerCase()]:n=>!!u[n]}const yr={},Eo=[],wi=()=>{},HB=()=>!1,$B=/^on[^a-z]/,rb=t=>$B.test(t),T3=t=>t.startsWith("onUpdate:"),Wr=Object.assign,A3=(t,e)=>{const u=t.indexOf(e);u>-1&&t.splice(u,1)},QB=Object.prototype.hasOwnProperty,Qt=(t,e)=>QB.call(t,e),Rt=Array.isArray,Oo=t=>nb(t)==="[object Map]",PM=t=>nb(t)==="[object Set]",Pt=t=>typeof t=="function",qr=t=>typeof t=="string",E3=t=>typeof t=="symbol",Sr=t=>t!==null&&typeof t=="object",DM=t=>Sr(t)&&Pt(t.then)&&Pt(t.catch),NM=Object.prototype.toString,nb=t=>NM.call(t),VB=t=>nb(t).slice(8,-1),CM=t=>nb(t)==="[object Object]",O3=t=>qr(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,R1=S3(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ib=t=>{const e=Object.create(null);return u=>e[u]||(e[u]=t(u))},kB=/-(\w)/g,Qi=ib(t=>t.replace(kB,(e,u)=>u?u.toUpperCase():"")),zB=/\B([A-Z])/g,Vo=ib(t=>t.replace(zB,"-$1").toLowerCase()),ab=ib(t=>t.charAt(0).toUpperCase()+t.slice(1)),gg=ib(t=>t?`on${ab(t)}`:""),F0=(t,e)=>!Object.is(t,e),mg=(t,e)=>{for(let u=0;u{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:u})},GB=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let RA;const NS=()=>RA||(RA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qa(t){if(Rt(t)){const e={};for(let u=0;u{if(u){const s=u.split(JB);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function rn(t){let e="";if(qr(t))e=t;else if(Rt(t))for(let u=0;uqr(t)?t:t==null?"":Rt(t)||Sr(t)&&(t.toString===NM||!Pt(t.toString))?JSON.stringify(t,LM,2):String(t),LM=(t,e)=>e&&e.__v_isRef?LM(t,e.value):Oo(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((u,[s,n])=>(u[`${s} =>`]=n,u),{})}:PM(e)?{[`Set(${e.size})`]:[...e.values()]}:Sr(e)&&!Rt(e)&&!CM(e)?String(e):e;let gi;class eU{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=gi,!e&&gi&&(this.index=(gi.scopes||(gi.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const u=gi;try{return gi=this,e()}finally{gi=u}}}on(){gi=this}off(){gi=this.parent}stop(e){if(this._active){let u,s;for(u=0,s=this.effects.length;u{const e=new Set(t);return e.w=0,e.n=0,e},MM=t=>(t.w&Qa)>0,FM=t=>(t.n&Qa)>0,nU=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let u=0;for(let s=0;s{(d==="length"||d>=l)&&o.push(c)})}else switch(u!==void 0&&o.push(a.get(u)),e){case"add":Rt(t)?O3(u)&&o.push(a.get("length")):(o.push(a.get(Qs)),Oo(t)&&o.push(a.get(LS)));break;case"delete":Rt(t)||(o.push(a.get(Qs)),Oo(t)&&o.push(a.get(LS)));break;case"set":Oo(t)&&o.push(a.get(Qs));break}if(o.length===1)o[0]&&MS(o[0]);else{const l=[];for(const c of o)c&&l.push(...c);MS(R3(l))}}function MS(t,e){const u=Rt(t)?t:[...t];for(const s of u)s.computed&&IA(s);for(const s of u)s.computed||IA(s)}function IA(t,e){(t!==mi||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const aU=S3("__proto__,__v_isRef,__isVue"),UM=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(E3)),sU=I3(),oU=I3(!1,!0),uU=I3(!0),PA=cU();function cU(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...u){const s=Gt(this);for(let r=0,a=this.length;r{t[e]=function(...u){ko();const s=Gt(this)[e].apply(this,u);return zo(),s}}),t}function lU(t){const e=Gt(this);return Bn(e,"has",t),e.hasOwnProperty(t)}function I3(t=!1,e=!1){return function(s,n,r){if(n==="__v_isReactive")return!t;if(n==="__v_isReadonly")return t;if(n==="__v_isShallow")return e;if(n==="__v_raw"&&r===(t?e?OU:kM:e?VM:QM).get(s))return s;const a=Rt(s);if(!t){if(a&&Qt(PA,n))return Reflect.get(PA,n,r);if(n==="hasOwnProperty")return lU}const o=Reflect.get(s,n,r);return(E3(n)?UM.has(n):aU(n))||(t||Bn(s,"get",n),e)?o:dn(o)?a&&O3(n)?o:o.value:Sr(o)?t?GM(o):ob(o):o}}const dU=HM(),fU=HM(!0);function HM(t=!1){return function(u,s,n,r){let a=u[s];if(Po(a)&&dn(a)&&!dn(n))return!1;if(!t&&(!Q1(n)&&!Po(n)&&(a=Gt(a),n=Gt(n)),!Rt(u)&&dn(a)&&!dn(n)))return a.value=n,!0;const o=Rt(u)&&O3(s)?Number(s)t,sb=t=>Reflect.getPrototypeOf(t);function Qy(t,e,u=!1,s=!1){t=t.__v_raw;const n=Gt(t),r=Gt(e);u||(e!==r&&Bn(n,"get",e),Bn(n,"get",r));const{has:a}=sb(n),o=s?P3:u?C3:q0;if(a.call(n,e))return o(t.get(e));if(a.call(n,r))return o(t.get(r));t!==n&&t.get(e)}function Vy(t,e=!1){const u=this.__v_raw,s=Gt(u),n=Gt(t);return e||(t!==n&&Bn(s,"has",t),Bn(s,"has",n)),t===n?u.has(t):u.has(t)||u.has(n)}function ky(t,e=!1){return t=t.__v_raw,!e&&Bn(Gt(t),"iterate",Qs),Reflect.get(t,"size",t)}function DA(t){t=Gt(t);const e=Gt(this);return sb(e).has.call(e,t)||(e.add(t),ma(e,"add",t,t)),this}function NA(t,e){e=Gt(e);const u=Gt(this),{has:s,get:n}=sb(u);let r=s.call(u,t);r||(t=Gt(t),r=s.call(u,t));const a=n.call(u,t);return u.set(t,e),r?F0(e,a)&&ma(u,"set",t,e):ma(u,"add",t,e),this}function CA(t){const e=Gt(this),{has:u,get:s}=sb(e);let n=u.call(e,t);n||(t=Gt(t),n=u.call(e,t)),s&&s.call(e,t);const r=e.delete(t);return n&&ma(e,"delete",t,void 0),r}function jA(){const t=Gt(this),e=t.size!==0,u=t.clear();return e&&ma(t,"clear",void 0,void 0),u}function zy(t,e){return function(s,n){const r=this,a=r.__v_raw,o=Gt(a),l=e?P3:t?C3:q0;return!t&&Bn(o,"iterate",Qs),a.forEach((c,d)=>s.call(n,l(c),l(d),r))}}function Gy(t,e,u){return function(...s){const n=this.__v_raw,r=Gt(n),a=Oo(r),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=n[t](...s),d=u?P3:e?C3:q0;return!e&&Bn(r,"iterate",l?LS:Qs),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:o?[d(h[0]),d(h[1])]:d(h),done:f}},[Symbol.iterator](){return this}}}}function Oa(t){return function(...e){return t==="delete"?!1:this}}function mU(){const t={get(r){return Qy(this,r)},get size(){return ky(this)},has:Vy,add:DA,set:NA,delete:CA,clear:jA,forEach:zy(!1,!1)},e={get(r){return Qy(this,r,!1,!0)},get size(){return ky(this)},has:Vy,add:DA,set:NA,delete:CA,clear:jA,forEach:zy(!1,!0)},u={get(r){return Qy(this,r,!0)},get size(){return ky(this,!0)},has(r){return Vy.call(this,r,!0)},add:Oa("add"),set:Oa("set"),delete:Oa("delete"),clear:Oa("clear"),forEach:zy(!0,!1)},s={get(r){return Qy(this,r,!0,!0)},get size(){return ky(this,!0)},has(r){return Vy.call(this,r,!0)},add:Oa("add"),set:Oa("set"),delete:Oa("delete"),clear:Oa("clear"),forEach:zy(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{t[r]=Gy(r,!1,!1),u[r]=Gy(r,!0,!1),e[r]=Gy(r,!1,!0),s[r]=Gy(r,!0,!0)}),[t,u,e,s]}const[_U,vU,wU,SU]=mU();function D3(t,e){const u=e?t?SU:wU:t?vU:_U;return(s,n,r)=>n==="__v_isReactive"?!t:n==="__v_isReadonly"?t:n==="__v_raw"?s:Reflect.get(Qt(u,n)&&n in s?u:s,n,r)}const TU={get:D3(!1,!1)},AU={get:D3(!1,!0)},EU={get:D3(!0,!1)},QM=new WeakMap,VM=new WeakMap,kM=new WeakMap,OU=new WeakMap;function RU(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xU(t){return t.__v_skip||!Object.isExtensible(t)?0:RU(VB(t))}function ob(t){return Po(t)?t:N3(t,!1,$M,TU,QM)}function zM(t){return N3(t,!1,gU,AU,VM)}function GM(t){return N3(t,!0,bU,EU,kM)}function N3(t,e,u,s,n){if(!Sr(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=n.get(t);if(r)return r;const a=xU(t);if(a===0)return t;const o=new Proxy(t,a===2?s:u);return n.set(t,o),o}function Ro(t){return Po(t)?Ro(t.__v_raw):!!(t&&t.__v_isReactive)}function Po(t){return!!(t&&t.__v_isReadonly)}function Q1(t){return!!(t&&t.__v_isShallow)}function WM(t){return Ro(t)||Po(t)}function Gt(t){const e=t&&t.__v_raw;return e?Gt(e):t}function JM(t){return $1(t,"__v_skip",!0),t}const q0=t=>Sr(t)?ob(t):t,C3=t=>Sr(t)?GM(t):t;function XM(t){Ba&&mi&&(t=Gt(t),BM(t.dep||(t.dep=R3())))}function KM(t,e){t=Gt(t);const u=t.dep;u&&MS(u)}function dn(t){return!!(t&&t.__v_isRef===!0)}function En(t){return YM(t,!1)}function IU(t){return YM(t,!0)}function YM(t,e){return dn(t)?t:new PU(t,e)}class PU{constructor(e,u){this.__v_isShallow=u,this.dep=void 0,this.__v_isRef=!0,this._rawValue=u?e:Gt(e),this._value=u?e:q0(e)}get value(){return XM(this),this._value}set value(e){const u=this.__v_isShallow||Q1(e)||Po(e);e=u?e:Gt(e),F0(e,this._rawValue)&&(this._rawValue=e,this._value=u?e:q0(e),KM(this))}}function qt(t){return dn(t)?t.value:t}const DU={get:(t,e,u)=>qt(Reflect.get(t,e,u)),set:(t,e,u,s)=>{const n=t[e];return dn(n)&&!dn(u)?(n.value=u,!0):Reflect.set(t,e,u,s)}};function ZM(t){return Ro(t)?t:new Proxy(t,DU)}class NU{constructor(e,u,s,n){this._setter=u,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new x3(e,()=>{this._dirty||(this._dirty=!0,KM(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!n,this.__v_isReadonly=s}get value(){const e=Gt(this);return XM(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function CU(t,e,u=!1){let s,n;const r=Pt(t);return r?(s=t,n=wi):(s=t.get,n=t.set),new NU(s,n,r||!n,u)}function Ua(t,e,u,s){let n;try{n=s?t(...s):t()}catch(r){ub(r,e,u)}return n}function Si(t,e,u,s){if(Pt(t)){const r=Ua(t,e,u,s);return r&&DM(r)&&r.catch(a=>{ub(a,e,u)}),r}const n=[];for(let r=0;r>>1;U0(ln[s])Ui&&ln.splice(e,1)}function FU(t){Rt(t)?xo.push(...t):(!ba||!ba.includes(t,t.allowRecurse?Fs+1:Fs))&&xo.push(t),r9()}function LA(t,e=B0?Ui+1:0){for(;eU0(u)-U0(s)),Fs=0;Fst.id==null?1/0:t.id,qU=(t,e)=>{const u=U0(t)-U0(e);if(u===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return u};function i9(t){FS=!1,B0=!0,ln.sort(qU);const e=wi;try{for(Ui=0;Uiqr(p)?p.trim():p)),h&&(n=u.map(GB))}let o,l=s[o=gg(e)]||s[o=gg(Qi(e))];!l&&r&&(l=s[o=gg(Vo(e))]),l&&Si(l,t,6,n);const c=s[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Si(c,t,6,n)}}function a9(t,e,u=!1){const s=e.emitsCache,n=s.get(t);if(n!==void 0)return n;const r=t.emits;let a={},o=!1;if(!Pt(t)){const l=c=>{const d=a9(c,e,!0);d&&(o=!0,Wr(a,d))};!u&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!o?(Sr(t)&&s.set(t,null),null):(Rt(r)?r.forEach(l=>a[l]=null):Wr(a,r),Sr(t)&&s.set(t,a),a)}function cb(t,e){return!t||!rb(e)?!1:(e=e.slice(2).replace(/Once$/,""),Qt(t,e[0].toLowerCase()+e.slice(1))||Qt(t,Vo(e))||Qt(t,e))}let nn=null,lb=null;function V1(t){const e=nn;return nn=t,lb=t&&t.type.__scopeId||null,e}function UU(t){lb=t}function HU(){lb=null}function Lr(t,e=nn,u){if(!e||t._n)return t;const s=(...n)=>{s._d&&GA(-1);const r=V1(e);let a;try{a=t(...n)}finally{V1(r),s._d&&GA(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function _g(t){const{type:e,vnode:u,proxy:s,withProxy:n,props:r,propsOptions:[a],slots:o,attrs:l,emit:c,render:d,renderCache:h,data:f,setupState:p,ctx:y,inheritAttrs:b}=t;let m,g;const v=V1(t);try{if(u.shapeFlag&4){const w=n||s;m=Bi(d.call(w,w,h,r,p,f,y)),g=l}else{const w=e;m=Bi(w.length>1?w(r,{attrs:l,slots:o,emit:c}):w(r,null)),g=e.props?l:$U(l)}}catch(w){C0.length=0,ub(w,t,1),m=ir(Va)}let _=m;if(g&&b!==!1){const w=Object.keys(g),{shapeFlag:S}=_;w.length&&S&7&&(a&&w.some(T3)&&(g=QU(g,a)),_=Do(_,g))}return u.dirs&&(_=Do(_),_.dirs=_.dirs?_.dirs.concat(u.dirs):u.dirs),u.transition&&(_.transition=u.transition),m=_,V1(v),m}const $U=t=>{let e;for(const u in t)(u==="class"||u==="style"||rb(u))&&((e||(e={}))[u]=t[u]);return e},QU=(t,e)=>{const u={};for(const s in t)(!T3(s)||!(s.slice(9)in e))&&(u[s]=t[s]);return u};function VU(t,e,u){const{props:s,children:n,component:r}=t,{props:a,children:o,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;if(u&&l>=0){if(l&1024)return!0;if(l&16)return s?MA(s,a,c):!!a;if(l&8){const d=e.dynamicProps;for(let h=0;ht.__isSuspense;function GU(t,e){e&&e.pendingBranch?Rt(t)?e.effects.push(...t):e.effects.push(t):FU(t)}function s9(t,e){return M3(t,null,e)}const Wy={};function Io(t,e,u){return M3(t,e,u)}function M3(t,e,{immediate:u,deep:s,flush:n,onTrack:r,onTrigger:a}=yr){var o;const l=rU()===((o=Gr)==null?void 0:o.scope)?Gr:null;let c,d=!1,h=!1;if(dn(t)?(c=()=>t.value,d=Q1(t)):Ro(t)?(c=()=>t,s=!0):Rt(t)?(h=!0,d=t.some(w=>Ro(w)||Q1(w)),c=()=>t.map(w=>{if(dn(w))return w.value;if(Ro(w))return Hs(w);if(Pt(w))return Ua(w,l,2)})):Pt(t)?e?c=()=>Ua(t,l,2):c=()=>{if(!(l&&l.isUnmounted))return f&&f(),Si(t,l,3,[p])}:c=wi,e&&s){const w=c;c=()=>Hs(w())}let f,p=w=>{f=v.onStop=()=>{Ua(w,l,4)}},y;if($0)if(p=wi,e?u&&Si(e,l,3,[c(),h?[]:void 0,p]):c(),n==="sync"){const w=FH();y=w.__watcherHandles||(w.__watcherHandles=[])}else return wi;let b=h?new Array(t.length).fill(Wy):Wy;const m=()=>{if(v.active)if(e){const w=v.run();(s||d||(h?w.some((S,A)=>F0(S,b[A])):F0(w,b)))&&(f&&f(),Si(e,l,3,[w,b===Wy?void 0:h&&b[0]===Wy?[]:b,p]),b=w)}else v.run()};m.allowRecurse=!!e;let g;n==="sync"?g=m:n==="post"?g=()=>qn(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),g=()=>L3(m));const v=new x3(c,g);e?u?m():b=v.run():n==="post"?qn(v.run.bind(v),l&&l.suspense):v.run();const _=()=>{v.stop(),l&&l.scope&&A3(l.scope.effects,v)};return y&&y.push(_),_}function WU(t,e,u){const s=this.proxy,n=qr(t)?t.includes(".")?o9(s,t):()=>s[t]:t.bind(s,s);let r;Pt(e)?r=e:(r=e.handler,u=e);const a=Gr;No(this);const o=M3(n,r.bind(s),u);return a?No(a):Vs(),o}function o9(t,e){const u=e.split(".");return()=>{let s=t;for(let n=0;n{Hs(u,e)});else if(CM(t))for(const u in t)Hs(t[u],e);return t}function k1(t,e){const u=nn;if(u===null)return t;const s=pb(u)||u.proxy,n=t.dirs||(t.dirs=[]);for(let r=0;rWr({name:t.name},e,{setup:t}))():t}const D0=t=>!!t.type.__asyncLoader,u9=t=>t.type.__isKeepAlive;function JU(t,e){c9(t,"a",e)}function XU(t,e){c9(t,"da",e)}function c9(t,e,u=Gr){const s=t.__wdc||(t.__wdc=()=>{let n=u;for(;n;){if(n.isDeactivated)return;n=n.parent}return t()});if(db(e,s,u),u){let n=u.parent;for(;n&&n.parent;)u9(n.parent.vnode)&&KU(s,e,u,n),n=n.parent}}function KU(t,e,u,s){const n=db(e,t,s,!0);F3(()=>{A3(s[e],n)},u)}function db(t,e,u=Gr,s=!1){if(u){const n=u[t]||(u[t]=[]),r=e.__weh||(e.__weh=(...a)=>{if(u.isUnmounted)return;ko(),No(u);const o=Si(e,u,t,a);return Vs(),zo(),o});return s?n.unshift(r):n.push(r),r}}const wa=t=>(e,u=Gr)=>(!$0||t==="sp")&&db(t,(...s)=>e(...s),u),YU=wa("bm"),l9=wa("m"),ZU=wa("bu"),d9=wa("u"),eH=wa("bum"),F3=wa("um"),tH=wa("sp"),rH=wa("rtg"),nH=wa("rtc");function iH(t,e=Gr){db("ec",t,e)}const q3="components";function po(t,e){return h9(q3,t,!0,e)||t}const f9=Symbol.for("v-ndc");function Wa(t){return qr(t)?h9(q3,t,!1)||t:t||f9}function h9(t,e,u=!0,s=!1){const n=nn||Gr;if(n){const r=n.type;if(t===q3){const o=jH(r,!1);if(o&&(o===e||o===Qi(e)||o===ab(Qi(e))))return r}const a=FA(n[t]||r[t],e)||FA(n.appContext[t],e);return!a&&s?r:a}}function FA(t,e){return t&&(t[e]||t[Qi(e)]||t[ab(Qi(e))])}function qA(t,e,u,s){let n;const r=u&&u[s];if(Rt(t)||qr(t)){n=new Array(t.length);for(let a=0,o=t.length;ae(a,o,void 0,r&&r[o]));else{const a=Object.keys(t);n=new Array(a.length);for(let o=0,l=a.length;oW1(e)?!(e.type===Va||e.type===Rn&&!p9(e.children)):!0)?t:null}const qS=t=>t?E9(t)?pb(t)||t.proxy:qS(t.parent):null,N0=Wr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>qS(t.parent),$root:t=>qS(t.root),$emit:t=>t.emit,$options:t=>B3(t),$forceUpdate:t=>t.f||(t.f=()=>L3(t.update)),$nextTick:t=>t.n||(t.n=t9.bind(t.proxy)),$watch:t=>WU.bind(t)}),vg=(t,e)=>t!==yr&&!t.__isScriptSetup&&Qt(t,e),aH={get({_:t},e){const{ctx:u,setupState:s,data:n,props:r,accessCache:a,type:o,appContext:l}=t;let c;if(e[0]!=="$"){const p=a[e];if(p!==void 0)switch(p){case 1:return s[e];case 2:return n[e];case 4:return u[e];case 3:return r[e]}else{if(vg(s,e))return a[e]=1,s[e];if(n!==yr&&Qt(n,e))return a[e]=2,n[e];if((c=t.propsOptions[0])&&Qt(c,e))return a[e]=3,r[e];if(u!==yr&&Qt(u,e))return a[e]=4,u[e];BS&&(a[e]=0)}}const d=N0[e];let h,f;if(d)return e==="$attrs"&&Bn(t,"get",e),d(t);if((h=o.__cssModules)&&(h=h[e]))return h;if(u!==yr&&Qt(u,e))return a[e]=4,u[e];if(f=l.config.globalProperties,Qt(f,e))return f[e]},set({_:t},e,u){const{data:s,setupState:n,ctx:r}=t;return vg(n,e)?(n[e]=u,!0):s!==yr&&Qt(s,e)?(s[e]=u,!0):Qt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=u,!0)},has({_:{data:t,setupState:e,accessCache:u,ctx:s,appContext:n,propsOptions:r}},a){let o;return!!u[a]||t!==yr&&Qt(t,a)||vg(e,a)||(o=r[0])&&Qt(o,a)||Qt(s,a)||Qt(N0,a)||Qt(n.config.globalProperties,a)},defineProperty(t,e,u){return u.get!=null?t._.accessCache[e]=0:Qt(u,"value")&&this.set(t,e,u.value,null),Reflect.defineProperty(t,e,u)}};function sH(){return oH().attrs}function oH(){const t=PH();return t.setupContext||(t.setupContext=R9(t))}function BA(t){return Rt(t)?t.reduce((e,u)=>(e[u]=null,e),{}):t}let BS=!0;function uH(t){const e=B3(t),u=t.proxy,s=t.ctx;BS=!1,e.beforeCreate&&UA(e.beforeCreate,t,"bc");const{data:n,computed:r,methods:a,watch:o,provide:l,inject:c,created:d,beforeMount:h,mounted:f,beforeUpdate:p,updated:y,activated:b,deactivated:m,beforeDestroy:g,beforeUnmount:v,destroyed:_,unmounted:w,render:S,renderTracked:A,renderTriggered:D,errorCaptured:L,serverPrefetch:E,expose:O,inheritAttrs:P,components:j,directives:U,filters:M}=e;if(c&&cH(c,s,null),a)for(const Z in a){const K=a[Z];Pt(K)&&(s[Z]=K.bind(u))}if(n){const Z=n.call(u,u);Sr(Z)&&(t.data=ob(Z))}if(BS=!0,r)for(const Z in r){const K=r[Z],fe=Pt(K)?K.bind(u,u):Pt(K.get)?K.get.bind(u,u):wi,X=!Pt(K)&&Pt(K.set)?K.set.bind(u):wi,he=sr({get:fe,set:X});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>he.value,set:xe=>he.value=xe})}if(o)for(const Z in o)y9(o[Z],s,u,Z);if(l){const Z=Pt(l)?l.call(u):l;Reflect.ownKeys(Z).forEach(K=>{x1(K,Z[K])})}d&&UA(d,t,"c");function Q(Z,K){Rt(K)?K.forEach(fe=>Z(fe.bind(u))):K&&Z(K.bind(u))}if(Q(YU,h),Q(l9,f),Q(ZU,p),Q(d9,y),Q(JU,b),Q(XU,m),Q(iH,L),Q(nH,A),Q(rH,D),Q(eH,v),Q(F3,w),Q(tH,E),Rt(O))if(O.length){const Z=t.exposed||(t.exposed={});O.forEach(K=>{Object.defineProperty(Z,K,{get:()=>u[K],set:fe=>u[K]=fe})})}else t.exposed||(t.exposed={});S&&t.render===wi&&(t.render=S),P!=null&&(t.inheritAttrs=P),j&&(t.components=j),U&&(t.directives=U)}function cH(t,e,u=wi){Rt(t)&&(t=US(t));for(const s in t){const n=t[s];let r;Sr(n)?"default"in n?r=Ti(n.from||s,n.default,!0):r=Ti(n.from||s):r=Ti(n),dn(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):e[s]=r}}function UA(t,e,u){Si(Rt(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,u)}function y9(t,e,u,s){const n=s.includes(".")?o9(u,s):()=>u[s];if(qr(t)){const r=e[t];Pt(r)&&Io(n,r)}else if(Pt(t))Io(n,t.bind(u));else if(Sr(t))if(Rt(t))t.forEach(r=>y9(r,e,u,s));else{const r=Pt(t.handler)?t.handler.bind(u):e[t.handler];Pt(r)&&Io(n,r,t)}}function B3(t){const e=t.type,{mixins:u,extends:s}=e,{mixins:n,optionsCache:r,config:{optionMergeStrategies:a}}=t.appContext,o=r.get(e);let l;return o?l=o:!n.length&&!u&&!s?l=e:(l={},n.length&&n.forEach(c=>z1(l,c,a,!0)),z1(l,e,a)),Sr(e)&&r.set(e,l),l}function z1(t,e,u,s=!1){const{mixins:n,extends:r}=e;r&&z1(t,r,u,!0),n&&n.forEach(a=>z1(t,a,u,!0));for(const a in e)if(!(s&&a==="expose")){const o=lH[a]||u&&u[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const lH={data:HA,props:$A,emits:$A,methods:g0,computed:g0,beforeCreate:Tn,created:Tn,beforeMount:Tn,mounted:Tn,beforeUpdate:Tn,updated:Tn,beforeDestroy:Tn,beforeUnmount:Tn,destroyed:Tn,unmounted:Tn,activated:Tn,deactivated:Tn,errorCaptured:Tn,serverPrefetch:Tn,components:g0,directives:g0,watch:fH,provide:HA,inject:dH};function HA(t,e){return e?t?function(){return Wr(Pt(t)?t.call(this,this):t,Pt(e)?e.call(this,this):e)}:e:t}function dH(t,e){return g0(US(t),US(e))}function US(t){if(Rt(t)){const e={};for(let u=0;u1)return u&&Pt(e)?e.call(s&&s.proxy):e}}function yH(t,e,u,s=!1){const n={},r={};$1(r,hb,1),t.propsDefaults=Object.create(null),g9(t,e,n,r);for(const a in t.propsOptions[0])a in n||(n[a]=void 0);u?t.props=s?n:zM(n):t.type.props?t.props=n:t.props=r,t.attrs=r}function bH(t,e,u,s){const{props:n,attrs:r,vnode:{patchFlag:a}}=t,o=Gt(n),[l]=t.propsOptions;let c=!1;if((s||a>0)&&!(a&16)){if(a&8){const d=t.vnode.dynamicProps;for(let h=0;h{l=!0;const[f,p]=m9(h,e,!0);Wr(a,f),p&&o.push(...p)};!u&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!r&&!l)return Sr(t)&&s.set(t,Eo),Eo;if(Rt(r))for(let d=0;d-1,p[1]=b<0||y-1||Qt(p,"default"))&&o.push(h)}}}const c=[a,o];return Sr(t)&&s.set(t,c),c}function QA(t){return t[0]!=="$"}function VA(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function kA(t,e){return VA(t)===VA(e)}function zA(t,e){return Rt(e)?e.findIndex(u=>kA(u,t)):Pt(e)&&kA(e,t)?0:-1}const _9=t=>t[0]==="_"||t==="$stable",U3=t=>Rt(t)?t.map(Bi):[Bi(t)],gH=(t,e,u)=>{if(e._n)return e;const s=Lr((...n)=>U3(e(...n)),u);return s._c=!1,s},v9=(t,e,u)=>{const s=t._ctx;for(const n in t){if(_9(n))continue;const r=t[n];if(Pt(r))e[n]=gH(n,r,s);else if(r!=null){const a=U3(r);e[n]=()=>a}}},w9=(t,e)=>{const u=U3(e);t.slots.default=()=>u},mH=(t,e)=>{if(t.vnode.shapeFlag&32){const u=e._;u?(t.slots=Gt(e),$1(e,"_",u)):v9(e,t.slots={})}else t.slots={},e&&w9(t,e);$1(t.slots,hb,1)},_H=(t,e,u)=>{const{vnode:s,slots:n}=t;let r=!0,a=yr;if(s.shapeFlag&32){const o=e._;o?u&&o===1?r=!1:(Wr(n,e),!u&&o===1&&delete n._):(r=!e.$stable,v9(e,n)),a=e}else e&&(w9(t,e),a={default:1});if(r)for(const o in n)!_9(o)&&!(o in a)&&delete n[o]};function $S(t,e,u,s,n=!1){if(Rt(t)){t.forEach((f,p)=>$S(f,e&&(Rt(e)?e[p]:e),u,s,n));return}if(D0(s)&&!n)return;const r=s.shapeFlag&4?pb(s.component)||s.component.proxy:s.el,a=n?null:r,{i:o,r:l}=t,c=e&&e.r,d=o.refs===yr?o.refs={}:o.refs,h=o.setupState;if(c!=null&&c!==l&&(qr(c)?(d[c]=null,Qt(h,c)&&(h[c]=null)):dn(c)&&(c.value=null)),Pt(l))Ua(l,o,12,[a,d]);else{const f=qr(l),p=dn(l);if(f||p){const y=()=>{if(t.f){const b=f?Qt(h,l)?h[l]:d[l]:l.value;n?Rt(b)&&A3(b,r):Rt(b)?b.includes(r)||b.push(r):f?(d[l]=[r],Qt(h,l)&&(h[l]=d[l])):(l.value=[r],t.k&&(d[t.k]=l.value))}else f?(d[l]=a,Qt(h,l)&&(h[l]=a)):p&&(l.value=a,t.k&&(d[t.k]=a))};a?(y.id=-1,qn(y,u)):y()}}}const qn=GU;function vH(t){return wH(t)}function wH(t,e){const u=NS();u.__VUE__=!0;const{insert:s,remove:n,patchProp:r,createElement:a,createText:o,createComment:l,setText:c,setElementText:d,parentNode:h,nextSibling:f,setScopeId:p=wi,insertStaticContent:y}=t,b=(R,T,x,B=null,k=null,V=null,J=!1,z=null,Y=!!T.dynamicChildren)=>{if(R===T)return;R&&!hu(R,T)&&(B=ge(R),xe(R,k,V,!0),R=null),T.patchFlag===-2&&(Y=!1,T.dynamicChildren=null);const{type:te,ref:ce,shapeFlag:Ae}=T;switch(te){case fb:m(R,T,x,B);break;case Va:g(R,T,x,B);break;case wg:R==null&&v(T,x,B,J);break;case Rn:j(R,T,x,B,k,V,J,z,Y);break;default:Ae&1?S(R,T,x,B,k,V,J,z,Y):Ae&6?U(R,T,x,B,k,V,J,z,Y):(Ae&64||Ae&128)&&te.process(R,T,x,B,k,V,J,z,Y,oe)}ce!=null&&k&&$S(ce,R&&R.ref,V,T||R,!T)},m=(R,T,x,B)=>{if(R==null)s(T.el=o(T.children),x,B);else{const k=T.el=R.el;T.children!==R.children&&c(k,T.children)}},g=(R,T,x,B)=>{R==null?s(T.el=l(T.children||""),x,B):T.el=R.el},v=(R,T,x,B)=>{[R.el,R.anchor]=y(R.children,T,x,B,R.el,R.anchor)},_=({el:R,anchor:T},x,B)=>{let k;for(;R&&R!==T;)k=f(R),s(R,x,B),R=k;s(T,x,B)},w=({el:R,anchor:T})=>{let x;for(;R&&R!==T;)x=f(R),n(R),R=x;n(T)},S=(R,T,x,B,k,V,J,z,Y)=>{J=J||T.type==="svg",R==null?A(T,x,B,k,V,J,z,Y):E(R,T,k,V,J,z,Y)},A=(R,T,x,B,k,V,J,z)=>{let Y,te;const{type:ce,props:Ae,shapeFlag:Ie,transition:Ee,dirs:qe}=R;if(Y=R.el=a(R.type,V,Ae&&Ae.is,Ae),Ie&8?d(Y,R.children):Ie&16&&L(R.children,Y,null,B,k,V&&ce!=="foreignObject",J,z),qe&&hs(R,null,B,"created"),D(Y,R,R.scopeId,J,B),Ae){for(const F in Ae)F!=="value"&&!R1(F)&&r(Y,F,null,Ae[F],V,R.children,B,k,Ne);"value"in Ae&&r(Y,"value",null,Ae.value),(te=Ae.onVnodeBeforeMount)&&Mi(te,B,R)}qe&&hs(R,null,B,"beforeMount");const G=(!k||k&&!k.pendingBranch)&&Ee&&!Ee.persisted;G&&Ee.beforeEnter(Y),s(Y,T,x),((te=Ae&&Ae.onVnodeMounted)||G||qe)&&qn(()=>{te&&Mi(te,B,R),G&&Ee.enter(Y),qe&&hs(R,null,B,"mounted")},k)},D=(R,T,x,B,k)=>{if(x&&p(R,x),B)for(let V=0;V{for(let te=Y;te{const z=T.el=R.el;let{patchFlag:Y,dynamicChildren:te,dirs:ce}=T;Y|=R.patchFlag&16;const Ae=R.props||yr,Ie=T.props||yr;let Ee;x&&ps(x,!1),(Ee=Ie.onVnodeBeforeUpdate)&&Mi(Ee,x,T,R),ce&&hs(T,R,x,"beforeUpdate"),x&&ps(x,!0);const qe=k&&T.type!=="foreignObject";if(te?O(R.dynamicChildren,te,z,x,B,qe,V):J||K(R,T,z,null,x,B,qe,V,!1),Y>0){if(Y&16)P(z,T,Ae,Ie,x,B,k);else if(Y&2&&Ae.class!==Ie.class&&r(z,"class",null,Ie.class,k),Y&4&&r(z,"style",Ae.style,Ie.style,k),Y&8){const G=T.dynamicProps;for(let F=0;F{Ee&&Mi(Ee,x,T,R),ce&&hs(T,R,x,"updated")},B)},O=(R,T,x,B,k,V,J)=>{for(let z=0;z{if(x!==B){if(x!==yr)for(const z in x)!R1(z)&&!(z in B)&&r(R,z,x[z],null,J,T.children,k,V,Ne);for(const z in B){if(R1(z))continue;const Y=B[z],te=x[z];Y!==te&&z!=="value"&&r(R,z,te,Y,J,T.children,k,V,Ne)}"value"in B&&r(R,"value",x.value,B.value)}},j=(R,T,x,B,k,V,J,z,Y)=>{const te=T.el=R?R.el:o(""),ce=T.anchor=R?R.anchor:o("");let{patchFlag:Ae,dynamicChildren:Ie,slotScopeIds:Ee}=T;Ee&&(z=z?z.concat(Ee):Ee),R==null?(s(te,x,B),s(ce,x,B),L(T.children,x,ce,k,V,J,z,Y)):Ae>0&&Ae&64&&Ie&&R.dynamicChildren?(O(R.dynamicChildren,Ie,x,k,V,J,z),(T.key!=null||k&&T===k.subTree)&&S9(R,T,!0)):K(R,T,x,ce,k,V,J,z,Y)},U=(R,T,x,B,k,V,J,z,Y)=>{T.slotScopeIds=z,R==null?T.shapeFlag&512?k.ctx.activate(T,x,B,J,Y):M(T,x,B,k,V,J,Y):q(R,T,Y)},M=(R,T,x,B,k,V,J)=>{const z=R.component=IH(R,B,k);if(u9(R)&&(z.ctx.renderer=oe),DH(z),z.asyncDep){if(k&&k.registerDep(z,Q),!R.el){const Y=z.subTree=ir(Va);g(null,Y,T,x)}return}Q(z,R,T,x,k,V,J)},q=(R,T,x)=>{const B=T.component=R.component;if(VU(R,T,x))if(B.asyncDep&&!B.asyncResolved){Z(B,T,x);return}else B.next=T,MU(B.update),B.update();else T.el=R.el,B.vnode=T},Q=(R,T,x,B,k,V,J)=>{const z=()=>{if(R.isMounted){let{next:ce,bu:Ae,u:Ie,parent:Ee,vnode:qe}=R,G=ce,F;ps(R,!1),ce?(ce.el=qe.el,Z(R,ce,J)):ce=qe,Ae&&mg(Ae),(F=ce.props&&ce.props.onVnodeBeforeUpdate)&&Mi(F,Ee,ce,qe),ps(R,!0);const H=_g(R),re=R.subTree;R.subTree=H,b(re,H,h(re.el),ge(re),R,k,V),ce.el=H.el,G===null&&kU(R,H.el),Ie&&qn(Ie,k),(F=ce.props&&ce.props.onVnodeUpdated)&&qn(()=>Mi(F,Ee,ce,qe),k)}else{let ce;const{el:Ae,props:Ie}=T,{bm:Ee,m:qe,parent:G}=R,F=D0(T);if(ps(R,!1),Ee&&mg(Ee),!F&&(ce=Ie&&Ie.onVnodeBeforeMount)&&Mi(ce,G,T),ps(R,!0),Ae&&N){const H=()=>{R.subTree=_g(R),N(Ae,R.subTree,R,k,null)};F?T.type.__asyncLoader().then(()=>!R.isUnmounted&&H()):H()}else{const H=R.subTree=_g(R);b(null,H,x,B,R,k,V),T.el=H.el}if(qe&&qn(qe,k),!F&&(ce=Ie&&Ie.onVnodeMounted)){const H=T;qn(()=>Mi(ce,G,H),k)}(T.shapeFlag&256||G&&D0(G.vnode)&&G.vnode.shapeFlag&256)&&R.a&&qn(R.a,k),R.isMounted=!0,T=x=B=null}},Y=R.effect=new x3(z,()=>L3(te),R.scope),te=R.update=()=>Y.run();te.id=R.uid,ps(R,!0),te()},Z=(R,T,x)=>{T.component=R;const B=R.vnode.props;R.vnode=T,R.next=null,bH(R,T.props,B,x),_H(R,T.children,x),ko(),LA(),zo()},K=(R,T,x,B,k,V,J,z,Y=!1)=>{const te=R&&R.children,ce=R?R.shapeFlag:0,Ae=T.children,{patchFlag:Ie,shapeFlag:Ee}=T;if(Ie>0){if(Ie&128){X(te,Ae,x,B,k,V,J,z,Y);return}else if(Ie&256){fe(te,Ae,x,B,k,V,J,z,Y);return}}Ee&8?(ce&16&&Ne(te,k,V),Ae!==te&&d(x,Ae)):ce&16?Ee&16?X(te,Ae,x,B,k,V,J,z,Y):Ne(te,k,V,!0):(ce&8&&d(x,""),Ee&16&&L(Ae,x,B,k,V,J,z,Y))},fe=(R,T,x,B,k,V,J,z,Y)=>{R=R||Eo,T=T||Eo;const te=R.length,ce=T.length,Ae=Math.min(te,ce);let Ie;for(Ie=0;Iece?Ne(R,k,V,!0,!1,Ae):L(T,x,B,k,V,J,z,Y,Ae)},X=(R,T,x,B,k,V,J,z,Y)=>{let te=0;const ce=T.length;let Ae=R.length-1,Ie=ce-1;for(;te<=Ae&&te<=Ie;){const Ee=R[te],qe=T[te]=Y?ja(T[te]):Bi(T[te]);if(hu(Ee,qe))b(Ee,qe,x,null,k,V,J,z,Y);else break;te++}for(;te<=Ae&&te<=Ie;){const Ee=R[Ae],qe=T[Ie]=Y?ja(T[Ie]):Bi(T[Ie]);if(hu(Ee,qe))b(Ee,qe,x,null,k,V,J,z,Y);else break;Ae--,Ie--}if(te>Ae){if(te<=Ie){const Ee=Ie+1,qe=EeIe)for(;te<=Ae;)xe(R[te],k,V,!0),te++;else{const Ee=te,qe=te,G=new Map;for(te=qe;te<=Ie;te++){const ke=T[te]=Y?ja(T[te]):Bi(T[te]);ke.key!=null&&G.set(ke.key,te)}let F,H=0;const re=Ie-qe+1;let be=!1,Re=0;const Ce=new Array(re);for(te=0;te=re){xe(ke,k,V,!0);continue}let me;if(ke.key!=null)me=G.get(ke.key);else for(F=qe;F<=Ie;F++)if(Ce[F-qe]===0&&hu(ke,T[F])){me=F;break}me===void 0?xe(ke,k,V,!0):(Ce[me-qe]=te+1,me>=Re?Re=me:be=!0,b(ke,T[me],x,null,k,V,J,z,Y),H++)}const Qe=be?SH(Ce):Eo;for(F=Qe.length-1,te=re-1;te>=0;te--){const ke=qe+te,me=T[ke],Se=ke+1{const{el:V,type:J,transition:z,children:Y,shapeFlag:te}=R;if(te&6){he(R.component.subTree,T,x,B);return}if(te&128){R.suspense.move(T,x,B);return}if(te&64){J.move(R,T,x,oe);return}if(J===Rn){s(V,T,x);for(let Ae=0;Aez.enter(V),k);else{const{leave:Ae,delayLeave:Ie,afterLeave:Ee}=z,qe=()=>s(V,T,x),G=()=>{Ae(V,()=>{qe(),Ee&&Ee()})};Ie?Ie(V,qe,G):G()}else s(V,T,x)},xe=(R,T,x,B=!1,k=!1)=>{const{type:V,props:J,ref:z,children:Y,dynamicChildren:te,shapeFlag:ce,patchFlag:Ae,dirs:Ie}=R;if(z!=null&&$S(z,null,x,R,!0),ce&256){T.ctx.deactivate(R);return}const Ee=ce&1&&Ie,qe=!D0(R);let G;if(qe&&(G=J&&J.onVnodeBeforeUnmount)&&Mi(G,T,R),ce&6)Oe(R.component,x,B);else{if(ce&128){R.suspense.unmount(x,B);return}Ee&&hs(R,null,T,"beforeUnmount"),ce&64?R.type.remove(R,T,x,k,oe,B):te&&(V!==Rn||Ae>0&&Ae&64)?Ne(te,T,x,!1,!0):(V===Rn&&Ae&384||!k&&ce&16)&&Ne(Y,T,x),B&&ie(R)}(qe&&(G=J&&J.onVnodeUnmounted)||Ee)&&qn(()=>{G&&Mi(G,T,R),Ee&&hs(R,null,T,"unmounted")},x)},ie=R=>{const{type:T,el:x,anchor:B,transition:k}=R;if(T===Rn){ae(x,B);return}if(T===wg){w(R);return}const V=()=>{n(x),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(R.shapeFlag&1&&k&&!k.persisted){const{leave:J,delayLeave:z}=k,Y=()=>J(x,V);z?z(R.el,V,Y):Y()}else V()},ae=(R,T)=>{let x;for(;R!==T;)x=f(R),n(R),R=x;n(T)},Oe=(R,T,x)=>{const{bum:B,scope:k,update:V,subTree:J,um:z}=R;B&&mg(B),k.stop(),V&&(V.active=!1,xe(J,R,T,x)),z&&qn(z,T),qn(()=>{R.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},Ne=(R,T,x,B=!1,k=!1,V=0)=>{for(let J=V;JR.shapeFlag&6?ge(R.component.subTree):R.shapeFlag&128?R.suspense.next():f(R.anchor||R.el),de=(R,T,x)=>{R==null?T._vnode&&xe(T._vnode,null,null,!0):b(T._vnode||null,R,T,null,null,null,x),LA(),n9(),T._vnode=R},oe={p:b,um:xe,m:he,r:ie,mt:M,mc:L,pc:K,pbc:O,n:ge,o:t};let $,N;return e&&([$,N]=e(oe)),{render:de,hydrate:$,createApp:pH(de,$)}}function ps({effect:t,update:e},u){t.allowRecurse=e.allowRecurse=u}function S9(t,e,u=!1){const s=t.children,n=e.children;if(Rt(s)&&Rt(n))for(let r=0;r>1,t[u[o]]0&&(e[s]=u[r-1]),u[r]=s)}}for(r=u.length,a=u[r-1];r-- >0;)u[r]=a,a=e[a];return u}const TH=t=>t.__isTeleport,Rn=Symbol.for("v-fgt"),fb=Symbol.for("v-txt"),Va=Symbol.for("v-cmt"),wg=Symbol.for("v-stc"),C0=[];let vi=null;function jt(t=!1){C0.push(vi=t?null:[])}function AH(){C0.pop(),vi=C0[C0.length-1]||null}let H0=1;function GA(t){H0+=t}function T9(t){return t.dynamicChildren=H0>0?vi||Eo:null,AH(),H0>0&&vi&&vi.push(t),t}function nr(t,e,u,s,n,r){return T9(Bt(t,e,u,s,n,r,!0))}function xi(t,e,u,s,n){return T9(ir(t,e,u,s,n,!0))}function W1(t){return t?t.__v_isVNode===!0:!1}function hu(t,e){return t.type===e.type&&t.key===e.key}const hb="__vInternal",A9=({key:t})=>t??null,I1=({ref:t,ref_key:e,ref_for:u})=>(typeof t=="number"&&(t=""+t),t!=null?qr(t)||dn(t)||Pt(t)?{i:nn,r:t,k:e,f:!!u}:t:null);function Bt(t,e=null,u=null,s=0,n=null,r=t===Rn?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&A9(e),ref:e&&I1(e),scopeId:lb,slotScopeIds:null,children:u,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:nn};return o?(H3(l,u),r&128&&t.normalize(l)):u&&(l.shapeFlag|=qr(u)?8:16),H0>0&&!a&&vi&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&vi.push(l),l}const ir=EH;function EH(t,e=null,u=null,s=0,n=null,r=!1){if((!t||t===f9)&&(t=Va),W1(t)){const o=Do(t,e,!0);return u&&H3(o,u),H0>0&&!r&&vi&&(o.shapeFlag&6?vi[vi.indexOf(t)]=o:vi.push(o)),o.patchFlag|=-2,o}if(LH(t)&&(t=t.__vccOpts),e){e=OH(e);let{class:o,style:l}=e;o&&!qr(o)&&(e.class=rn(o)),Sr(l)&&(WM(l)&&!Rt(l)&&(l=Wr({},l)),e.style=qa(l))}const a=qr(t)?1:zU(t)?128:TH(t)?64:Sr(t)?4:Pt(t)?2:0;return Bt(t,e,u,s,n,a,r,!0)}function OH(t){return t?WM(t)||hb in t?Wr({},t):t:null}function Do(t,e,u=!1){const{props:s,ref:n,patchFlag:r,children:a}=t,o=e?QS(s||{},e):s;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:o,key:o&&A9(o),ref:e&&e.ref?u&&n?Rt(n)?n.concat(I1(e)):[n,I1(e)]:I1(e):n,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Rn?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Do(t.ssContent),ssFallback:t.ssFallback&&Do(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function m0(t=" ",e=0){return ir(fb,null,t,e)}function Vr(t="",e=!1){return e?(jt(),xi(Va,null,t)):ir(Va,null,t)}function Bi(t){return t==null||typeof t=="boolean"?ir(Va):Rt(t)?ir(Rn,null,t.slice()):typeof t=="object"?ja(t):ir(fb,null,String(t))}function ja(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Do(t)}function H3(t,e){let u=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(Rt(e))u=16;else if(typeof e=="object")if(s&65){const n=e.default;n&&(n._c&&(n._d=!1),H3(t,n()),n._c&&(n._d=!0));return}else{u=32;const n=e._;!n&&!(hb in e)?e._ctx=nn:n===3&&nn&&(nn.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Pt(e)?(e={default:e,_ctx:nn},u=32):(e=String(e),s&64?(u=16,e=[m0(e)]):u=8);t.children=e,t.shapeFlag|=u}function QS(...t){const e={};for(let u=0;uGr||nn;let $3,yo,WA="__VUE_INSTANCE_SETTERS__";(yo=NS()[WA])||(yo=NS()[WA]=[]),yo.push(t=>Gr=t),$3=t=>{yo.length>1?yo.forEach(e=>e(t)):yo[0](t)};const No=t=>{$3(t),t.scope.on()},Vs=()=>{Gr&&Gr.scope.off(),$3(null)};function E9(t){return t.vnode.shapeFlag&4}let $0=!1;function DH(t,e=!1){$0=e;const{props:u,children:s}=t.vnode,n=E9(t);yH(t,u,n,e),mH(t,s);const r=n?NH(t,e):void 0;return $0=!1,r}function NH(t,e){const u=t.type;t.accessCache=Object.create(null),t.proxy=JM(new Proxy(t.ctx,aH));const{setup:s}=u;if(s){const n=t.setupContext=s.length>1?R9(t):null;No(t),ko();const r=Ua(s,t,0,[t.props,n]);if(zo(),Vs(),DM(r)){if(r.then(Vs,Vs),e)return r.then(a=>{JA(t,a,e)}).catch(a=>{ub(a,t,0)});t.asyncDep=r}else JA(t,r,e)}else O9(t,e)}function JA(t,e,u){Pt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Sr(e)&&(t.setupState=ZM(e)),O9(t,u)}let XA;function O9(t,e,u){const s=t.type;if(!t.render){if(!e&&XA&&!s.render){const n=s.template||B3(t).template;if(n){const{isCustomElement:r,compilerOptions:a}=t.appContext.config,{delimiters:o,compilerOptions:l}=s,c=Wr(Wr({isCustomElement:r,delimiters:o},a),l);s.render=XA(n,c)}}t.render=s.render||wi}No(t),ko(),uH(t),zo(),Vs()}function CH(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,u){return Bn(t,"get","$attrs"),e[u]}}))}function R9(t){const e=u=>{t.exposed=u||{}};return{get attrs(){return CH(t)},slots:t.slots,emit:t.emit,expose:e}}function pb(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(ZM(JM(t.exposed)),{get(e,u){if(u in e)return e[u];if(u in N0)return N0[u](t)},has(e,u){return u in e||u in N0}}))}function jH(t,e=!0){return Pt(t)?t.displayName||t.name:t.name||e&&t.__name}function LH(t){return Pt(t)&&"__vccOpts"in t}const sr=(t,e)=>CU(t,e,$0);function x9(t,e,u){const s=arguments.length;return s===2?Sr(e)&&!Rt(e)?W1(e)?ir(t,null,[e]):ir(t,e):ir(t,null,e):(s>3?u=Array.prototype.slice.call(arguments,2):s===3&&W1(u)&&(u=[u]),ir(t,e,u))}const MH=Symbol.for("v-scx"),FH=()=>Ti(MH),qH="3.3.4",BH="http://www.w3.org/2000/svg",qs=typeof document<"u"?document:null,KA=qs&&qs.createElement("template"),UH={insert:(t,e,u)=>{e.insertBefore(t,u||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,u,s)=>{const n=e?qs.createElementNS(BH,t):qs.createElement(t,u?{is:u}:void 0);return t==="select"&&s&&s.multiple!=null&&n.setAttribute("multiple",s.multiple),n},createText:t=>qs.createTextNode(t),createComment:t=>qs.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>qs.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,u,s,n,r){const a=u?u.previousSibling:e.lastChild;if(n&&(n===r||n.nextSibling))for(;e.insertBefore(n.cloneNode(!0),u),!(n===r||!(n=n.nextSibling)););else{KA.innerHTML=s?`${t}`:t;const o=KA.content;if(s){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,u)}return[a?a.nextSibling:e.firstChild,u?u.previousSibling:e.lastChild]}};function HH(t,e,u){const s=t._vtc;s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):u?t.setAttribute("class",e):t.className=e}function $H(t,e,u){const s=t.style,n=qr(u);if(u&&!n){if(e&&!qr(e))for(const r in e)u[r]==null&&VS(s,r,"");for(const r in u)VS(s,r,u[r])}else{const r=s.display;n?e!==u&&(s.cssText=u):e&&t.removeAttribute("style"),"_vod"in t&&(s.display=r)}}const YA=/\s*!important$/;function VS(t,e,u){if(Rt(u))u.forEach(s=>VS(t,e,s));else if(u==null&&(u=""),e.startsWith("--"))t.setProperty(e,u);else{const s=QH(t,e);YA.test(u)?t.setProperty(Vo(s),u.replace(YA,""),"important"):t[s]=u}}const ZA=["Webkit","Moz","ms"],Sg={};function QH(t,e){const u=Sg[e];if(u)return u;let s=Qi(e);if(s!=="filter"&&s in t)return Sg[e]=s;s=ab(s);for(let n=0;nTg||(XH.then(()=>Tg=0),Tg=Date.now());function YH(t,e){const u=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=u.attached)return;Si(ZH(s,u.value),e,5,[s])};return u.value=t,u.attached=KH(),u}function ZH(t,e){if(Rt(e)){const u=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{u.call(t),t._stopped=!0},e.map(s=>n=>!n._stopped&&s&&s(n))}else return e}const rE=/^on[a-z]/,e$=(t,e,u,s,n=!1,r,a,o,l)=>{e==="class"?HH(t,s,n):e==="style"?$H(t,u,s):rb(e)?T3(e)||WH(t,e,u,s,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):t$(t,e,s,n))?kH(t,e,s,r,a,o,l):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),VH(t,e,s,n))};function t$(t,e,u,s){return s?!!(e==="innerHTML"||e==="textContent"||e in t&&rE.test(e)&&Pt(u)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||rE.test(e)&&qr(u)?!1:e in t}const r$=Wr({patchProp:e$},UH);let nE;function n$(){return nE||(nE=vH(r$))}const i$=(...t)=>{const e=n$().createApp(...t),{mount:u}=e;return e.mount=s=>{const n=a$(s);if(!n)return;const r=e._component;!Pt(r)&&!r.render&&!r.template&&(r.template=n.innerHTML),n.innerHTML="";const a=u(n,!1,n instanceof SVGElement);return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},e};function a$(t){return qr(t)?document.querySelector(t):t}const s$=["primary","secondary","success","danger","warning","info","light","dark"],o$="rgba({{color}}, 0.2) 0, rgba({{color}}, 0.3) 40%, rgba({{color}}, 0.4) 50%, rgba({{color}}, 0.5) 60%, rgba({{color}}, 0) 70%",u$=[0,0,0],iE=.5,c$=t=>t&&s$.includes(t.toLowerCase()),l$=(t,e)=>{const u=r=>(r.length<7&&(r=`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}`),[parseInt(r.substr(1,2),16),parseInt(r.substr(3,2),16),parseInt(r.substr(5,2),16)]),s=r=>{const a=document.body.appendChild(document.createElement("fictum")),o="rgb(1, 2, 3)";return a.style.color=o,a.style.color!==o||(a.style.color=r,a.style.color===o||a.style.color==="")?e:(r=getComputedStyle(a).color,document.body.removeChild(a),r)},n=r=>{const a=r.match(/[.\d]+/g);if(a===null)return;const o=a.map(l=>+Number(l));return o.length=3,o};return typeof t=="string"&&t.toLowerCase()==="transparent"?e:typeof t=="string"&&t[0]==="#"?u(t):(typeof t=="string"&&t.indexOf("rgb")===-1&&(t=s(t)),typeof t=="string"&&t.indexOf("rgb")===0?n(t):e)},d$=({offsetX:t,offsetY:e,height:u,width:s})=>{const n=e<=u/2,r=t<=s/2,a=(h,f)=>Math.sqrt(h**2+f**2),o=e===u/2&&t===s/2,l={first:n===!0&&r===!1,second:n===!0&&r===!0,third:n===!1&&r===!0,fourth:n===!1&&r===!1},c={topLeft:a(t,e),topRight:a(s-t,e),bottomLeft:a(t,u-e),bottomRight:a(s-t,u-e)};let d=0;return o||l.fourth?d=c.topLeft:l.third?d=c.topRight:l.second?d=c.bottomRight:l.first&&(d=c.bottomLeft),d*2},f$=(t,e)=>{for(const u in e)t.style[u]=e[u]},h$=t=>{const e=l$(t,u$);if(t!==""&&e){const u=e.join(",");return`radial-gradient(circle, ${o$.split("{{color}}").join(`${u}`)})`}},p$=(t,e,u)=>{const s=document.createElement("div");s.classList.add("ripple-wave");const n={offsetX:u.centered?e.height/2:e.left,offsetY:u.centered?e.width/2:e.top,height:e.height,width:e.width},r=d$(n),a=u.radius||r/2,o={delay:u.duration&&u.duration*iE,duration:u.duration&&u.duration-u.duration*iE},l={left:u.centered?`${Math.round(e.width/2-a)}px`:`${Math.round(e.left-a)}px`,top:u.centered?`${Math.round(e.height/2-a)}px`:`${Math.round(e.top-a)}px`,height:`${Math.round(u.radius&&u.radius*2||r)}px`,width:`${Math.round(u.radius&&u.radius*2||r)}px`,transitionDelay:`0s, ${o.delay}ms`,transitionDuration:`${u.duration}ms, ${o.duration}ms`};u.unbound&&t.classList.add("ripple-surface-unbound"),c$(u.color)?t.classList.add(`ripple-surface-${u.color}`):l.backgroundImage=h$(u.color),f$(s,l),t.appendChild(s),setTimeout(()=>{s.classList.add("active")},50),setTimeout(()=>{t.removeChild(s)},u.duration?u.duration+1e3:1e3)},I9={mounted(t,e){if(e.value===!1)return;const u={centered:e.value&&e.value.centered||!1,color:e.value&&e.value.color||"",duration:e.value&&e.value.duration||500,radius:e.value&&e.value.radius||0,unbound:e.value&&e.value.unbound||!1};t.classList.add("ripple-surface"),t.waves=s=>{const n={top:s.layerY,left:s.layerX,height:t.offsetHeight,width:t.offsetWidth};p$(t,n,u)},t.addEventListener("click",s=>t.waves(s))},updated(t){t.classList.contains("ripple-surface")||t.classList.add("ripple-surface")},unmounted(t){t.removeEventListener("click",e=>t.waves(e))}},y$={name:"MDBBtn"},b$=Ri({...y$,props:{color:String,size:String,outline:String,rounded:Boolean,floating:Boolean,toggler:Boolean,toggle:Boolean,role:{type:String,default:"button"},type:{type:String,default:"button"},tag:{type:String,default:"button"},block:{type:Boolean,default:!1},ripple:{type:[Object,Boolean],default:t=>t.outline||t.color==="light"||t.color==="link"?{color:"dark"}:!0},picker:Boolean},emits:["update:toggle"],setup(t,{emit:e}){const u=t,s=En(u.toggle),n=sr(()=>[!u.picker&&"btn",u.color&&`btn-${u.color}`,u.size&&`btn-${u.size}`,u.outline&&`btn-outline-${u.outline}`,u.rounded&&"btn-rounded",u.floating&&"btn-floating",u.block&&"btn-block",s.value&&"active"]),r=()=>{u.toggler&&(s.value=!s.value,e("update:toggle",s.value))};return(a,o)=>k1((jt(),xi(Wa(t.tag),{type:t.type,role:t.role,class:rn(qt(n)),onClick:r},{default:Lr(()=>[$i(a.$slots,"default")]),_:3},8,["type","role","class"])),[[qt(I9),t.ripple]])}}),g$={name:"MDBCard"},m$=Ri({...g$,props:{tag:{type:String,default:"div"},border:String,bg:String,text:[String,Array],shadow:String},setup(t){const e=t,u=sr(()=>{const n=e.text;return["card",e.border&&`border border-${e.border}`,e.bg&&`bg-${e.bg}`,e.shadow&&`shadow-${e.shadow}`,e.text&&s(n)]}),s=n=>typeof n=="string"?`text-${n}`:n.map(r=>`text-${r}`.trim()).join(" ");return(n,r)=>(jt(),xi(Wa(t.tag),{class:rn(qt(u))},{default:Lr(()=>[$i(n.$slots,"default")]),_:3},8,["class"]))}}),_$={name:"MDBCardBody"},v$=Ri({..._$,props:{tag:{type:String,default:"div"},text:{type:[String,Array]}},setup(t){const e=t,u=sr(()=>{const n=e.text;return["card-body",e.text&&s(n)]}),s=n=>typeof n=="string"?`text-${n}`:n.map(r=>`text-${r}`.trim()).join(" ");return(n,r)=>(jt(),xi(Wa(t.tag),{class:rn(qt(u))},{default:Lr(()=>[$i(n.$slots,"default")]),_:3},8,["class"]))}}),w$={name:"MDBCardTitle"},S$=Ri({...w$,props:{tag:{type:String,default:"h5"},subtitle:{type:Boolean,default:!1}},setup(t){const e=t,u=sr(()=>e.subtitle?e.tag!=="h5"?e.tag:"h6":e.tag),s=sr(()=>[e.subtitle?"card-subtitle":"card-title"]);return(n,r)=>(jt(),xi(Wa(qt(u)),{class:rn(qt(s))},{default:Lr(()=>[$i(n.$slots,"default")]),_:3},8,["class"]))}}),T$={name:"MDBCardText"},A$=Ri({...T$,props:{tag:{type:String,default:"p"}},setup(t){const e=sr(()=>["card-text"]);return(u,s)=>(jt(),xi(Wa(t.tag),{class:rn(qt(e))},{default:Lr(()=>[$i(u.$slots,"default")]),_:3},8,["class"]))}}),E$=1e6,O$=t=>{do t+=Math.floor(Math.random()*E$);while(document.getElementById(t));return t},R$=/\..*/,x$={mouseenter:"mouseover",mouseleave:"mouseout"},I$=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function P9(t,e,u){const s=typeof e=="string",n=s?u:e;let r=t.replace(R$,"");const a=x$[r];return a&&(r=a),I$.indexOf(r)>-1||(r=t),[s,n,r]}function P$(t,e,u,s){if(typeof e!="string"||!t)return;u||(u=s,s=null);const[n,r,a]=P9(e,u,s);t.addEventListener(a,r,n)}function D$(t,e,u,s){t.removeEventListener(e,u,!!s)}const N$=function(t,e,u,s=void 0){P$(t,e,u,s)},C$=function(t,e,u,s=void 0){if(typeof e!="string"||!t)return;const[n,r,a]=P9(e,u,s);D$(t,a,r,n?u:null)};var kS={stopProp(t){t.stopPropagation()},mounted(t,e){const u=n=>{const r=n.target;!t.contains(r)&&t!==r&&e.value(n)};t.clickOutside=u;const s=e.modifiers.mousedown?"mousedown":"click";document.addEventListener(s,n=>{var r;return(r=t.clickOutside)==null?void 0:r.call(t,n)}),document.addEventListener("touchstart",n=>{var r;return(r=t.clickOutside)==null?void 0:r.call(t,n)})},unmounted(t,e){if(!t.clickOutside)return;const u=e.modifiers.mousedown?"mousedown":"click";document.removeEventListener(u,s=>{var n;return(n=t.clickOutside)==null?void 0:n.call(t,s)}),document.removeEventListener("touchstart",s=>{var n;return(n=t.clickOutside)==null?void 0:n.call(t,s)}),delete t.clickOutside}};const j$={key:1,class:"visually-hidden"},L$={name:"MDBDropdownToggle"};({...L$,props:{...b$.props}});const M$={name:"MDBContainer"},F$=Ri({...M$,props:{tag:{type:String,default:"div"},sm:{type:Boolean,default:!1},md:{type:Boolean,default:!1},lg:{type:Boolean,default:!1},xl:{type:Boolean,default:!1},xxl:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1}},setup(t){const e=t,u=sr(()=>[e.fluid?"container-fluid":"",e.sm?"container-sm":"",e.md?"container-md":"",e.lg?"container-lg":"",e.xl?"container-xl":"",e.xxl?"container-xxl":"",!e.fluid&&!e.sm&&!e.md&&!e.lg&&!e.xl&&!e.xxl?"container":""]);return(s,n)=>(jt(),xi(Wa(t.tag),{class:rn(qt(u))},{default:Lr(()=>[$i(s.$slots,"default")]),_:3},8,["class"]))}}),q$=["id","value"],B$=["for"],U$={key:2,class:"form-helper"},H$={key:3,class:"form-helper"},$$={class:"form-counter"},Q$=Bt("div",{class:"form-notch-trailing"},null,-1),V$=["id","value"],k$=["for"],z$={key:1,class:"form-helper"},G$={key:2,class:"form-helper"},W$={class:"form-counter"},J$=Bt("div",{class:"form-notch-trailing"},null,-1),X$={key:9,class:"form-text"},K$={name:"MDBInput",inheritAttrs:!1},Y$=Ri({...K$,props:{id:String,label:String,labelClass:String,modelValue:[String,Number,Date],size:String,formOutline:{type:Boolean,default:!0},wrapperClass:String,inputGroup:{type:[Boolean,String],default:!1},wrap:{type:Boolean,default:!0},formText:String,white:Boolean,validationEvent:String,isValidated:Boolean,isValid:Boolean,validFeedback:String,invalidFeedback:String,tooltipFeedback:{type:Boolean,default:!1},tag:{type:String,default:"div"},helper:String,counter:Boolean,maxlength:{type:Number,default:0}},emits:["update:modelValue","click-outside","on-validate"],setup(t,{expose:e,emit:u}){const s=t,n=sH(),r=En(null),a=En(s.modelValue),o=En(null),l=En(!1),c=En(9),d=En(0),h=s.id||O$("MDBInput-"),f=sr(()=>[s.formOutline&&"form-outline",b.value,s.white&&"form-white",s.wrapperClass]),p=sr(()=>["form-control",s.size?`form-control-${s.size}`:s.inputGroup&&s.inputGroup!==!0&&`form-control-${s.inputGroup}`,(a.value||a.value===0)&&"active",l.value&&"placeholder-active",_.value&&w.value&&"is-valid",_.value&&!w.value&&"is-invalid"]),y=sr(()=>["form-label",s.labelClass]),b=sr(()=>{if(s.inputGroup)return s.inputGroup!==!0?`input-group input-group-${s.inputGroup}`:"input-group"}),m=sr(()=>s.inputGroup&&_.value?{marginBottom:"1rem"}:""),g=sr(()=>s.tooltipFeedback?"valid-tooltip":"valid-feedback"),v=sr(()=>s.tooltipFeedback?"invalid-tooltip":"invalid-feedback"),_=En(s.isValidated),w=En(s.isValid),S=En(""),A=sr(()=>_.value&&!w.value&&s.validationEvent?S.value:s.invalidFeedback),D=X=>{const he=X.target;w.value=he.checkValidity(),w.value||(S.value=he.validationMessage),_.value=!0,u("on-validate",w.value)},L=()=>{s.validationEvent!=="submit"&&typeof r.value!="string"&&N$(r.value,s.validationEvent,D)};function E(){o.value&&(d.value=o.value.clientWidth*.8+8)}function O(){n.placeholder&&!o.value?l.value=!0:l.value=!1}const P=En(null);P.value=typeof a.value=="string"&&a.value?a.value.length:0;function j(X){const he=X.target;if(s.counter){if(he.value.length>s.maxlength){typeof a.value=="string"&&(he.value=a.value);return}P.value=he.value.length}a.value=he.value,u("update:modelValue",a.value)}function U(){u("click-outside")}const M=En(null),q=En(),Q=X=>{q.value.forEach(he=>he.style.opacity=X?"0":"1"),X&&(M.value.style.opacity="1")},Z=n.type&&n.type==="date",K=(X=!1)=>{var he;s.label&&s.formOutline&&((he=q.value)==null?void 0:he.length)>1&&Q(X),Z&&typeof r.value!="string"&&(r.value.type=X?"date":"text")},fe=X=>![...X.parentNode.children].findIndex(he=>he===X);return l9(()=>{if(E(),O(),K(),s.label&&s.formOutline&&(q.value=r.value.parentNode.querySelectorAll(".form-notch")),s.label&&s.formOutline&&!fe(r.value)){const X=parseFloat(getComputedStyle(o.value).left);o.value.style.left=`${X+r.value.offsetLeft}px`,c.value+=r.value.offsetLeft}s.validationEvent&&L()}),d9(()=>{E(),O()}),F3(()=>{typeof r.value!="string"&&C$(r.value,s.validationEvent,D)}),s9(()=>{var X,he;if(s.counter&&typeof s.modelValue=="string"){if(((X=s.modelValue)==null?void 0:X.length)>s.maxlength){a.value=s.modelValue.slice(0,s.maxlength),P.value=s.maxlength;return}P.value=((he=s.modelValue)==null?void 0:he.length)||0}a.value=s.modelValue}),Io(()=>s.isValidated,X=>_.value=X),Io(()=>s.isValid,X=>w.value=X),e({inputRef:r}),(X,he)=>(jt(),nr(Rn,null,[t.wrap?Vr("",!0):k1((jt(),nr("input",QS({key:0,class:qt(p),id:qt(h),value:a.value},X.$attrs,{onInput:j,ref_key:"inputRef",ref:r,onFocus:he[0]||(he[0]=xe=>K(!0)),onBlur:he[1]||(he[1]=xe=>K())}),null,16,q$)),[[qt(kS),U]]),t.label&&!t.wrap?(jt(),nr("label",{key:1,ref_key:"labelRef",ref:o,class:rn(qt(y)),for:qt(h)},Or(t.label),11,B$)):Vr("",!0),!t.wrap&&t.helper?(jt(),nr("div",U$,Or(t.helper),1)):Vr("",!0),!t.wrap&&t.counter?(jt(),nr("div",H$,[Bt("div",$$,Or(P.value)+" / "+Or(t.maxlength),1)])):Vr("",!0),t.wrap?Vr("",!0):$i(X.$slots,"default",{key:4}),!t.wrap&&t.validFeedback?(jt(),nr("div",{key:5,class:rn(qt(g))},Or(t.validFeedback),3)):Vr("",!0),!t.wrap&&qt(A)?(jt(),nr("div",{key:6,class:rn(qt(v))},Or(qt(A)),3)):Vr("",!0),!t.wrap&&t.formOutline?(jt(),nr("div",{key:7,class:"form-notch",ref_key:"notchRef",ref:M},[Bt("div",{class:"form-notch-leading",style:qa({width:`${c.value}px`})},null,4),Bt("div",{class:"form-notch-middle",style:qa({width:`${d.value}px`})},null,4),Q$],512)):Vr("",!0),t.wrap?k1((jt(),xi(Wa(t.tag),{key:8,class:rn(qt(f)),style:qa(qt(m))},{default:Lr(()=>[$i(X.$slots,"prepend"),Bt("input",QS({class:qt(p)},X.$attrs,{id:qt(h),value:a.value,onInput:j,ref_key:"inputRef",ref:r,onFocus:he[2]||(he[2]=xe=>K(!0)),onBlur:he[3]||(he[3]=xe=>K())}),null,16,V$),t.label?(jt(),nr("label",{key:0,ref_key:"labelRef",ref:o,class:rn(qt(y)),for:qt(h)},Or(t.label),11,k$)):Vr("",!0),t.helper?(jt(),nr("div",z$,Or(t.helper),1)):Vr("",!0),t.counter?(jt(),nr("div",G$,[Bt("div",W$,Or(P.value)+" / "+Or(t.maxlength),1)])):Vr("",!0),$i(X.$slots,"default"),t.validFeedback?(jt(),nr("div",{key:3,class:rn(qt(g))},Or(t.validFeedback),3)):Vr("",!0),qt(A)?(jt(),nr("div",{key:4,class:rn(qt(v))},Or(qt(A)),3)):Vr("",!0),t.formOutline?(jt(),nr("div",{key:5,class:"form-notch",ref_key:"notchRef",ref:M},[Bt("div",{class:"form-notch-leading",style:qa({width:`${c.value}px`})},null,4),Bt("div",{class:"form-notch-middle",style:qa({width:`${d.value}px`})},null,4),J$],512)):Vr("",!0)]),_:3},8,["class","style"])),[[qt(kS),U]]):Vr("",!0),t.formText?(jt(),nr("div",X$,Or(t.formText),1)):Vr("",!0)],64))}});var I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Q3(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var u=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};u.prototype=e.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(u,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),u}var D9={},yb={},V3={},ey={},N9={},bb={},ot={},ks={},ty="delete",br=5,ai=1<>>0;if(""+u!==e||u===4294967295)return NaN;e=u}return e<0?Co(t)+e:e}function C9(){return!0}function ry(t,e,u){return(t===0&&!L9(t)||u!==void 0&&t<=-u)&&(e===void 0||u!==void 0&&e>=u)}function Go(t,e){return j9(t,e,0)}function ny(t,e){return j9(t,e,e)}function j9(t,e,u){return t===void 0?u:L9(t)?e===1/0?e:Math.max(0,e+t)|0:e===void 0||e===t?t:Math.min(e,t)|0}function L9(t){return t<0||t===0&&1/t===-1/0}var M9="@@__IMMUTABLE_ITERABLE__@@";function fn(t){return!!(t&&t[M9])}var F9="@@__IMMUTABLE_KEYED__@@";function cr(t){return!!(t&&t[F9])}var q9="@@__IMMUTABLE_INDEXED__@@";function an(t){return!!(t&&t[q9])}function Wo(t){return cr(t)||an(t)}var gr=function(e){return fn(e)?e:hn(e)},ci=function(t){function e(u){return cr(u)?u:Xa(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(gr),Xs=function(t){function e(u){return an(u)?u:li(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(gr),Jo=function(t){function e(u){return fn(u)&&!Wo(u)?u:Yo(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(gr);gr.Keyed=ci;gr.Indexed=Xs;gr.Set=Jo;var B9="@@__IMMUTABLE_SEQ__@@";function iy(t){return!!(t&&t[B9])}var U9="@@__IMMUTABLE_RECORD__@@";function Ja(t){return!!(t&&t[U9])}function Yn(t){return fn(t)||Ja(t)}var Xo="@@__IMMUTABLE_ORDERED__@@";function Xn(t){return!!(t&&t[Xo])}var ay=0,Ai=1,oi=2,GS=typeof Symbol=="function"&&Symbol.iterator,H9="@@iterator",gb=GS||H9,kt=function(e){this.next=e};kt.prototype.toString=function(){return"[Iterator]"};kt.KEYS=ay;kt.VALUES=Ai;kt.ENTRIES=oi;kt.prototype.inspect=kt.prototype.toSource=function(){return this.toString()};kt.prototype[gb]=function(){return this};function mr(t,e,u,s){var n=t===0?e:t===1?u:[e,u];return s?s.value=n:s={value:n,done:!1},s}function Dn(){return{value:void 0,done:!0}}function z3(t){return Array.isArray(t)?!0:!!mb(t)}function aE(t){return t&&typeof t.next=="function"}function WS(t){var e=mb(t);return e&&e.call(t)}function mb(t){var e=t&&(GS&&t[GS]||t[H9]);if(typeof e=="function")return e}function eQ(t){var e=mb(t);return e&&e===t.entries}function tQ(t){var e=mb(t);return e&&e===t.keys}var Ko=Object.prototype.hasOwnProperty;function G3(t){return Array.isArray(t)||typeof t=="string"?!0:t&&typeof t=="object"&&Number.isInteger(t.length)&&t.length>=0&&(t.length===0?Object.keys(t).length===1:t.hasOwnProperty(t.length-1))}var hn=function(t){function e(u){return u==null?J3():Yn(u)?u.toSeq():nQ(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(s,n){var r=this._cache;if(r){for(var a=r.length,o=0;o!==a;){var l=r[n?a-++o:o++];if(s(l[1],l[0],this)===!1)break}return o}return this.__iterateUncached(s,n)},e.prototype.__iterator=function(s,n){var r=this._cache;if(r){var a=r.length,o=0;return new kt(function(){if(o===a)return Dn();var l=r[n?a-++o:o++];return mr(s,l[0],l[1])})}return this.__iteratorUncached(s,n)},e}(gr),Xa=function(t){function e(u){return u==null?J3().toKeyedSeq():fn(u)?cr(u)?u.toSeq():u.fromEntrySeq():Ja(u)?u.toSeq():X3(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(hn),li=function(t){function e(u){return u==null?J3():fn(u)?cr(u)?u.entrySeq():u.toIndexedSeq():Ja(u)?u.toSeq().entrySeq():$9(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(hn),Yo=function(t){function e(u){return(fn(u)&&!Wo(u)?u:li(u)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(hn);hn.isSeq=iy;hn.Keyed=Xa;hn.Set=Yo;hn.Indexed=li;hn.prototype[B9]=!0;var zs=function(t){function e(u){this._array=u,this.size=u.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(s,n){return this.has(s)?this._array[ka(this,s)]:n},e.prototype.__iterate=function(s,n){for(var r=this._array,a=r.length,o=0;o!==a;){var l=n?a-++o:o++;if(s(r[l],l,this)===!1)break}return o},e.prototype.__iterator=function(s,n){var r=this._array,a=r.length,o=0;return new kt(function(){if(o===a)return Dn();var l=n?a-++o:o++;return mr(s,l,r[l])})},e}(li),W3=function(t){function e(u){var s=Object.keys(u).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u):[]);this._object=u,this._keys=s,this.size=s.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(s,n){return n!==void 0&&!this.has(s)?n:this._object[s]},e.prototype.has=function(s){return Ko.call(this._object,s)},e.prototype.__iterate=function(s,n){for(var r=this._object,a=this._keys,o=a.length,l=0;l!==o;){var c=a[n?o-++l:l++];if(s(r[c],c,this)===!1)break}return l},e.prototype.__iterator=function(s,n){var r=this._object,a=this._keys,o=a.length,l=0;return new kt(function(){if(l===o)return Dn();var c=a[n?o-++l:l++];return mr(s,c,r[c])})},e}(Xa);W3.prototype[Xo]=!0;var rQ=function(t){function e(u){this._collection=u,this.size=u.length||u.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(s,n){if(n)return this.cacheResult().__iterate(s,n);var r=this._collection,a=WS(r),o=0;if(aE(a))for(var l;!(l=a.next()).done&&s(l.value,o++,this)!==!1;);return o},e.prototype.__iteratorUncached=function(s,n){if(n)return this.cacheResult().__iterator(s,n);var r=this._collection,a=WS(r);if(!aE(a))return new kt(Dn);var o=0;return new kt(function(){var l=a.next();return l.done?l:mr(s,o++,l.value)})},e}(li),sE;function J3(){return sE||(sE=new zs([]))}function X3(t){var e=K3(t);if(e)return e.fromEntrySeq();if(typeof t=="object")return new W3(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function $9(t){var e=K3(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function nQ(t){var e=K3(t);if(e)return eQ(t)?e.fromEntrySeq():tQ(t)?e.toSetSeq():e;if(typeof t=="object")return new W3(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}function K3(t){return G3(t)?new zs(t):z3(t)?new rQ(t):void 0}var Q9="@@__IMMUTABLE_MAP__@@";function sy(t){return!!(t&&t[Q9])}function _b(t){return sy(t)&&Xn(t)}function J1(t){return!!(t&&typeof t.equals=="function"&&typeof t.hashCode=="function")}function kr(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if(typeof t.valueOf=="function"&&typeof e.valueOf=="function"){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!!(J1(t)&&J1(e)&&t.equals(e))}var pu=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(e,u){e|=0,u|=0;var s=e&65535,n=u&65535;return s*n+((e>>>16)*n+s*(u>>>16)<<16>>>0)|0};function vb(t){return t>>>1&1073741824|t&3221225471}var iQ=Object.prototype.valueOf;function xn(t){if(t==null)return oE(t);if(typeof t.hashCode=="function")return vb(t.hashCode(t));var e=lQ(t);if(e==null)return oE(e);switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return aQ(e);case"string":return e.length>dQ?sQ(e):JS(e);case"object":case"function":return uQ(e);case"symbol":return oQ(e);default:if(typeof e.toString=="function")return JS(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function oE(t){return t===null?1108378658:1108378659}function aQ(t){if(t!==t||t===1/0)return 0;var e=t|0;for(e!==t&&(e^=t*4294967295);t>4294967295;)t/=4294967295,e^=t;return vb(e)}function sQ(t){var e=Og[t];return e===void 0&&(e=JS(t),Eg===fQ&&(Eg=0,Og={}),Eg++,Og[t]=e),e}function JS(t){for(var e=0,u=0;u0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function lQ(t){return t.valueOf!==iQ&&typeof t.valueOf=="function"?t.valueOf(t):t}function V9(){var t=++Ag;return Ag&1073741824&&(Ag=0),t}var XS=typeof WeakMap=="function",KS;XS&&(KS=new WeakMap);var lE=Object.create(null),Ag=0,Bs="__immutablehash__";typeof Symbol=="function"&&(Bs=Symbol(Bs));var dQ=16,fQ=255,Eg=0,Og={},wb=function(t){function e(u,s){this._iter=u,this._useKeys=s,this.size=u.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(s,n){return this._iter.get(s,n)},e.prototype.has=function(s){return this._iter.has(s)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var s=this,n=Y3(this,!0);return this._useKeys||(n.valueSeq=function(){return s._iter.toSeq().reverse()}),n},e.prototype.map=function(s,n){var r=this,a=J9(this,s,n);return this._useKeys||(a.valueSeq=function(){return r._iter.toSeq().map(s,n)}),a},e.prototype.__iterate=function(s,n){var r=this;return this._iter.__iterate(function(a,o){return s(a,o,r)},n)},e.prototype.__iterator=function(s,n){return this._iter.__iterator(s,n)},e}(Xa);wb.prototype[Xo]=!0;var k9=function(t){function e(u){this._iter=u,this.size=u.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(s){return this._iter.includes(s)},e.prototype.__iterate=function(s,n){var r=this,a=0;return n&&Co(this),this._iter.__iterate(function(o){return s(o,n?r.size-++a:a++,r)},n)},e.prototype.__iterator=function(s,n){var r=this,a=this._iter.__iterator(Ai,n),o=0;return n&&Co(this),new kt(function(){var l=a.next();return l.done?l:mr(s,n?r.size-++o:o++,l.value,l)})},e}(li),z9=function(t){function e(u){this._iter=u,this.size=u.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(s){return this._iter.includes(s)},e.prototype.__iterate=function(s,n){var r=this;return this._iter.__iterate(function(a){return s(a,a,r)},n)},e.prototype.__iterator=function(s,n){var r=this._iter.__iterator(Ai,n);return new kt(function(){var a=r.next();return a.done?a:mr(s,a.value,a.value,a)})},e}(Yo),G9=function(t){function e(u){this._iter=u,this.size=u.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(s,n){var r=this;return this._iter.__iterate(function(a){if(a){fE(a);var o=fn(a);return s(o?a.get(1):a[1],o?a.get(0):a[0],r)}},n)},e.prototype.__iterator=function(s,n){var r=this._iter.__iterator(Ai,n);return new kt(function(){for(;;){var a=r.next();if(a.done)return a;var o=a.value;if(o){fE(o);var l=fn(o);return mr(s,l?o.get(0):o[0],l?o.get(1):o[1],a)}}})},e}(Xa);k9.prototype.cacheResult=wb.prototype.cacheResult=z9.prototype.cacheResult=G9.prototype.cacheResult=tT;function W9(t){var e=Vi(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var u=t.reverse.apply(this);return u.flip=function(){return t.reverse()},u},e.has=function(u){return t.includes(u)},e.includes=function(u){return t.has(u)},e.cacheResult=tT,e.__iterateUncached=function(u,s){var n=this;return t.__iterate(function(r,a){return u(a,r,n)!==!1},s)},e.__iteratorUncached=function(u,s){if(u===oi){var n=t.__iterator(u,s);return new kt(function(){var r=n.next();if(!r.done){var a=r.value[0];r.value[0]=r.value[1],r.value[1]=a}return r})}return t.__iterator(u===Ai?ay:Ai,s)},e}function J9(t,e,u){var s=Vi(t);return s.size=t.size,s.has=function(n){return t.has(n)},s.get=function(n,r){var a=t.get(n,Ut);return a===Ut?r:e.call(u,a,n,t)},s.__iterateUncached=function(n,r){var a=this;return t.__iterate(function(o,l,c){return n(e.call(u,o,l,c),l,a)!==!1},r)},s.__iteratorUncached=function(n,r){var a=t.__iterator(oi,r);return new kt(function(){var o=a.next();if(o.done)return o;var l=o.value,c=l[0];return mr(n,c,e.call(u,l[1],c,t),o)})},s}function Y3(t,e){var u=this,s=Vi(t);return s._iter=t,s.size=t.size,s.reverse=function(){return t},t.flip&&(s.flip=function(){var n=W9(t);return n.reverse=function(){return t.flip()},n}),s.get=function(n,r){return t.get(e?n:-1-n,r)},s.has=function(n){return t.has(e?n:-1-n)},s.includes=function(n){return t.includes(n)},s.cacheResult=tT,s.__iterate=function(n,r){var a=this,o=0;return r&&Co(t),t.__iterate(function(l,c){return n(l,e?c:r?a.size-++o:o++,a)},!r)},s.__iterator=function(n,r){var a=0;r&&Co(t);var o=t.__iterator(oi,!r);return new kt(function(){var l=o.next();if(l.done)return l;var c=l.value;return mr(n,e?c[0]:r?u.size-++a:a++,c[1],l)})},s}function X9(t,e,u,s){var n=Vi(t);return s&&(n.has=function(r){var a=t.get(r,Ut);return a!==Ut&&!!e.call(u,a,r,t)},n.get=function(r,a){var o=t.get(r,Ut);return o!==Ut&&e.call(u,o,r,t)?o:a}),n.__iterateUncached=function(r,a){var o=this,l=0;return t.__iterate(function(c,d,h){if(e.call(u,c,d,h))return l++,r(c,s?d:l-1,o)},a),l},n.__iteratorUncached=function(r,a){var o=t.__iterator(oi,a),l=0;return new kt(function(){for(;;){var c=o.next();if(c.done)return c;var d=c.value,h=d[0],f=d[1];if(e.call(u,f,h,t))return mr(r,s?h:l++,f,c)}})},n}function hQ(t,e,u){var s=Ya().asMutable();return t.__iterate(function(n,r){s.update(e.call(u,n,r,t),0,function(a){return a+1})}),s.asImmutable()}function pQ(t,e,u){var s=cr(t),n=(Xn(t)?Ei():Ya()).asMutable();t.__iterate(function(a,o){n.update(e.call(u,a,o,t),function(l){return l=l||[],l.push(s?[o,a]:a),l})});var r=eT(t);return n.map(function(a){return ur(t,r(a))}).asImmutable()}function yQ(t,e,u){var s=cr(t),n=[[],[]];t.__iterate(function(a,o){n[e.call(u,a,o,t)?1:0].push(s?[o,a]:a)});var r=eT(t);return n.map(function(a){return ur(t,r(a))})}function Z3(t,e,u,s){var n=t.size;if(ry(e,u,n))return t;var r=Go(e,n),a=ny(u,n);if(r!==r||a!==a)return Z3(t.toSeq().cacheResult(),e,u,s);var o=a-r,l;o===o&&(l=o<0?0:o);var c=Vi(t);return c.size=l===0?l:t.size&&l||void 0,!s&&iy(t)&&l>=0&&(c.get=function(d,h){return d=ka(this,d),d>=0&&dl)return Dn();var b=f.next();return s||d===Ai||b.done?b:d===ay?mr(d,y-1,void 0,b):mr(d,y-1,b.value[1],b)})},c}function bQ(t,e,u){var s=Vi(t);return s.__iterateUncached=function(n,r){var a=this;if(r)return this.cacheResult().__iterate(n,r);var o=0;return t.__iterate(function(l,c,d){return e.call(u,l,c,d)&&++o&&n(l,c,a)}),o},s.__iteratorUncached=function(n,r){var a=this;if(r)return this.cacheResult().__iterator(n,r);var o=t.__iterator(oi,r),l=!0;return new kt(function(){if(!l)return Dn();var c=o.next();if(c.done)return c;var d=c.value,h=d[0],f=d[1];return e.call(u,f,h,a)?n===oi?c:mr(n,h,f,c):(l=!1,Dn())})},s}function K9(t,e,u,s){var n=Vi(t);return n.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var l=!0,c=0;return t.__iterate(function(d,h,f){if(!(l&&(l=e.call(u,d,h,f))))return c++,r(d,s?h:c-1,o)}),c},n.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var l=t.__iterator(oi,a),c=!0,d=0;return new kt(function(){var h,f,p;do{if(h=l.next(),h.done)return s||r===Ai?h:r===ay?mr(r,d++,void 0,h):mr(r,d++,h.value[1],h);var y=h.value;f=y[0],p=y[1],c&&(c=e.call(u,p,f,o))}while(c);return r===oi?h:mr(r,f,p,h)})},n}function gQ(t,e){var u=cr(t),s=[t].concat(e).map(function(a){return fn(a)?u&&(a=ci(a)):a=u?X3(a):$9(Array.isArray(a)?a:[a]),a}).filter(function(a){return a.size!==0});if(s.length===0)return t;if(s.length===1){var n=s[0];if(n===t||u&&cr(n)||an(t)&&an(n))return n}var r=new zs(s);return u?r=r.toKeyedSeq():an(t)||(r=r.toSetSeq()),r=r.flatten(!0),r.size=s.reduce(function(a,o){if(a!==void 0){var l=o.size;if(l!==void 0)return a+l}},0),r}function Y9(t,e,u){var s=Vi(t);return s.__iterateUncached=function(n,r){if(r)return this.cacheResult().__iterate(n,r);var a=0,o=!1;function l(c,d){c.__iterate(function(h,f){return(!e||d0}function Xy(t,e,u,s){var n=Vi(t),r=new zs(u).map(function(a){return a.size});return n.size=s?r.max():r.min(),n.__iterate=function(a,o){for(var l=this.__iterator(Ai,o),c,d=0;!(c=l.next()).done&&a(c.value,d++,this)!==!1;);return d},n.__iteratorUncached=function(a,o){var l=u.map(function(h){return h=gr(h),WS(o?h.reverse():h)}),c=0,d=!1;return new kt(function(){var h;return d||(h=l.map(function(f){return f.next()}),d=s?h.every(function(f){return f.done}):h.some(function(f){return f.done})),d?Dn():mr(a,c++,e.apply(null,h.map(function(f){return f.value})))})},n}function ur(t,e){return t===e?t:iy(t)?e:t.constructor(e)}function fE(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function eT(t){return cr(t)?ci:an(t)?Xs:Jo}function Vi(t){return Object.create((cr(t)?Xa:an(t)?li:Yo).prototype)}function tT(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):hn.prototype.cacheResult.call(this)}function Z9(t,e){return t===void 0&&e===void 0?0:t===void 0?1:e===void 0?-1:t>e?1:t0;)e[u]=arguments[u+1];if(typeof t!="function")throw new TypeError("Invalid merger function: "+t);return iF(this,e,t)}function iF(t,e,u){for(var s=[],n=0;n0;)e[u]=arguments[u+1];return uy(t,e)}function sF(t,e){for(var u=[],s=arguments.length-2;s-- >0;)u[s]=arguments[s+2];return uy(e,u,t)}function oF(t){for(var e=[],u=arguments.length-1;u-- >0;)e[u]=arguments[u+1];return oy(t,e)}function uF(t,e){for(var u=[],s=arguments.length-2;s-- >0;)u[s]=arguments[s+2];return oy(e,u,t)}function oy(t,e,u){return uy(t,e,wQ(u))}function uy(t,e,u){if(!za(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(Yn(t))return typeof u=="function"&&t.mergeWith?t.mergeWith.apply(t,[u].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var s=Array.isArray(t),n=t,r=s?Xs:ci,a=s?function(l){n===t&&(n=X1(n)),n.push(l)}:function(l,c){var d=Ko.call(n,c),h=d&&u?u(n[c],l,c):l;(!d||h!==n[c])&&(n===t&&(n=X1(n)),n[c]=h)},o=0;o0;)e[u]=arguments[u+1];return oy(this,e,t)}function fT(t){for(var e=[],u=arguments.length-1;u-- >0;)e[u]=arguments[u+1];return Ka(this,t,_i(),function(s){return uy(s,e)})}function hT(t){for(var e=[],u=arguments.length-1;u-- >0;)e[u]=arguments[u+1];return Ka(this,t,_i(),function(s){return oy(s,e)})}function cy(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function ly(){return this.__ownerID?this:this.__ensureOwner(new k3)}function dy(){return this.__ensureOwner()}function pT(){return this.__altered}var Ya=function(t){function e(u){return u==null?_i():sy(u)&&!Xn(u)?u:_i().withMutations(function(s){var n=t(u);Wn(n.size),n.forEach(function(r,a){return s.set(a,r)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var s=[],n=arguments.length;n--;)s[n]=arguments[n];return _i().withMutations(function(r){for(var a=0;a=s.length)throw new Error("Missing value for key: "+s[a]);r.set(s[a],s[a+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(s,n){return this._root?this._root.get(0,void 0,s,n):n},e.prototype.set=function(s,n){return yE(this,s,n)},e.prototype.remove=function(s){return yE(this,s,Ut)},e.prototype.deleteAll=function(s){var n=gr(s);return n.size===0?this:this.withMutations(function(r){n.forEach(function(a){return r.remove(a)})})},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):_i()},e.prototype.sort=function(s){return Ei(jo(this,s))},e.prototype.sortBy=function(s,n){return Ei(jo(this,n,s))},e.prototype.map=function(s,n){var r=this;return this.withMutations(function(a){a.forEach(function(o,l){a.set(l,s.call(n,o,l,r))})})},e.prototype.__iterator=function(s,n){return new TQ(this,s,n)},e.prototype.__iterate=function(s,n){var r=this,a=0;return this._root&&this._root.iterate(function(o){return a++,s(o[1],o[0],r)},n),a},e.prototype.__ensureOwner=function(s){return s===this.__ownerID?this:s?yT(this.size,this._root,s,this.__hash):this.size===0?_i():(this.__ownerID=s,this.__altered=!1,this)},e}(ci);Ya.isMap=sy;var _r=Ya.prototype;_r[Q9]=!0;_r[ty]=_r.remove;_r.removeAll=_r.deleteAll;_r.setIn=oT;_r.removeIn=_r.deleteIn=cT;_r.update=lT;_r.updateIn=dT;_r.merge=_r.concat=rF;_r.mergeWith=nF;_r.mergeDeep=cF;_r.mergeDeepWith=lF;_r.mergeIn=fT;_r.mergeDeepIn=hT;_r.withMutations=cy;_r.wasAltered=pT;_r.asImmutable=dy;_r["@@transducer/init"]=_r.asMutable=ly;_r["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])};_r["@@transducer/result"]=function(t){return t.asImmutable()};var V0=function(e,u){this.ownerID=e,this.entries=u};V0.prototype.get=function(e,u,s,n){for(var r=this.entries,a=0,o=r.length;a=IQ)return AQ(e,c,n,r);var p=e&&e===this.ownerID,y=p?c:Hi(c);return f?l?d===h-1?y.pop():y[d]=y.pop():y[d]=[n,r]:y.push([n,r]),p?(this.entries=y,this):new V0(e,y)}};var Lo=function(e,u,s){this.ownerID=e,this.bitmap=u,this.nodes=s};Lo.prototype.get=function(e,u,s,n){u===void 0&&(u=xn(s));var r=1<<((e===0?u:u>>>e)&In),a=this.bitmap;return a&r?this.nodes[dF(a&r-1)].get(e+br,u,s,n):n};Lo.prototype.update=function(e,u,s,n,r,a,o){s===void 0&&(s=xn(n));var l=(u===0?s:s>>>u)&In,c=1<=PQ)return OQ(e,p,d,l,b);if(h&&!b&&p.length===2&&bE(p[f^1]))return p[f^1];if(h&&b&&p.length===1&&bE(b))return b;var m=e&&e===this.ownerID,g=h?b?d:d^c:d|c,v=h?b?fF(p,f,b,m):xQ(p,f,m):RQ(p,f,b,m);return m?(this.bitmap=g,this.nodes=v,this):new Lo(e,g,v)};var k0=function(e,u,s){this.ownerID=e,this.count=u,this.nodes=s};k0.prototype.get=function(e,u,s,n){u===void 0&&(u=xn(s));var r=(e===0?u:u>>>e)&In,a=this.nodes[r];return a?a.get(e+br,u,s,n):n};k0.prototype.update=function(e,u,s,n,r,a,o){s===void 0&&(s=xn(n));var l=(u===0?s:s>>>u)&In,c=r===Ut,d=this.nodes,h=d[l];if(c&&!h)return this;var f=bT(h,e,u+br,s,n,r,a,o);if(f===h)return this;var p=this.count;if(!h)p++;else if(!f&&(p--,p>>u)&In,a=(u===0?s:s>>>u)&In,o,l=r===a?[gT(t,e,u+br,s,n)]:(o=new _a(e,s,n),r>>=1)a[o]=u&1?e[r++]:void 0;return a[s]=n,new k0(t,r+1,a)}function dF(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,t+=t>>16,t&127}function fF(t,e,u,s){var n=s?t:Hi(t);return n[e]=u,n}function RQ(t,e,u,s){var n=t.length+1;if(s&&e+1===n)return t[e]=u,t;for(var r=new Array(n),a=0,o=0;o0&&r=0&&s>>u&In;if(n>=this.array.length)return new Ha([],e);var r=n===0,a;if(u>0){var o=this.array[n];if(a=o&&o.removeBefore(e,u-br,s),a===o&&r)return this}if(r&&!a)return this;var l=Fo(this,e);if(!r)for(var c=0;c>>u&In;if(n>=this.array.length)return this;var r;if(u>0){var a=this.array[n];if(r=a&&a.removeAfter(e,u-br,s),r===a&&n===this.array.length-1)return this}var o=Fo(this,e);return o.array.splice(n+1),r&&(o.array[n]=r),o};var j0={};function gE(t,e){var u=t._origin,s=t._capacity,n=G0(s),r=t._tail;return a(t._root,t._level,0);function a(c,d,h){return d===0?o(c,h):l(c,d,h)}function o(c,d){var h=d===n?r&&r.array:c&&c.array,f=d>u?0:u-d,p=s-d;return p>ai&&(p=ai),function(){if(f===p)return j0;var y=e?--p:f++;return h&&h[y]}}function l(c,d,h){var f,p=c&&c.array,y=h>u?0:u-h>>d,b=(s-h>>d)+1;return b>ai&&(b=ai),function(){for(;;){if(f){var m=f();if(m!==j0)return m;f=null}if(y===b)return j0;var g=e?--b:y++;f=a(p&&p[g],d-br,h+(g<=t.size||e<0)return t.withMutations(function(a){e<0?La(a,e).set(0,u):La(a,0,e+1).set(e,u)});e+=t._origin;var s=t._tail,n=t._root,r=zS();return e>=G0(t._capacity)?s=YS(s,t.__ownerID,0,e,u,r):n=YS(n,t.__ownerID,t._level,e,u,r),r.value?t.__ownerID?(t._root=n,t._tail=s,t.__hash=void 0,t.__altered=!0,t):z0(t._origin,t._capacity,t._level,n,s):t}function YS(t,e,u,s,n,r){var a=s>>>u&In,o=t&&a0){var c=t&&t.array[a],d=YS(c,e,u-br,s,n,r);return d===c?t:(l=Fo(t,e),l.array[a]=d,l)}return o&&t.array[a]===n?t:(r&&si(r),l=Fo(t,e),n===void 0&&a===l.array.length-1?l.array.pop():l.array[a]=n,l)}function Fo(t,e){return e&&t&&e===t.ownerID?t:new Ha(t?t.array.slice():[],e)}function pF(t,e){if(e>=G0(t._capacity))return t._tail;if(e<1<0;)u=u.array[e>>>s&In],s-=br;return u}}function La(t,e,u){e!==void 0&&(e|=0),u!==void 0&&(u|=0);var s=t.__ownerID||new k3,n=t._origin,r=t._capacity,a=n+e,o=u===void 0?r:u<0?r+u:n+u;if(a===n&&o===r)return t;if(a>=o)return t.clear();for(var l=t._level,c=t._root,d=0;a+d<0;)c=new Ha(c&&c.array.length?[void 0,c]:[],s),l+=br,d+=1<=1<h?new Ha([],s):p;if(p&&f>h&&abr;m-=br){var g=h>>>m&In;b=b.array[g]=Fo(b.array[g],s)}b.array[h>>>br&In]=p}if(o=f)a-=f,o-=f,l=br,c=null,y=y&&y.removeBefore(s,0,a);else if(a>n||f>>l&In;if(v!==f>>>l&In)break;v&&(d+=(1<n&&(c=c.removeBefore(s,l,a-d)),c&&f>>br<=ai&&n.size>=s.size*2?(l=n.filter(function(c,d){return c!==void 0&&r!==d}),o=l.toKeyedSeq().map(function(c){return c[0]}).flip().toMap(),t.__ownerID&&(o.__ownerID=l.__ownerID=t.__ownerID)):(o=s.remove(e),l=r===n.size-1?n.pop():n.set(r,void 0))}else if(a){if(u===n.get(r)[1])return t;o=s,l=n.set(r,[e,u])}else o=s.set(e,n.size),l=n.set(n.size,[e,u]);return t.__ownerID?(t.size=o.size,t._map=o,t._list=l,t.__hash=void 0,t.__altered=!0,t):mT(o,l)}var yF="@@__IMMUTABLE_STACK__@@";function W0(t){return!!(t&&t[yF])}var fy=function(t){function e(u){return u==null?Ky():W0(u)?u:Ky().pushAll(u)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(s,n){var r=this._head;for(s=ka(this,s);r&&s--;)r=r.next;return r?r.value:n},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var s=arguments;if(arguments.length===0)return this;for(var n=this.size+arguments.length,r=this._head,a=arguments.length-1;a>=0;a--)r={value:s[a],next:r};return this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):v0(n,r)},e.prototype.pushAll=function(s){if(s=t(s),s.size===0)return this;if(this.size===0&&W0(s))return s;Wn(s.size);var n=this.size,r=this._head;return s.__iterate(function(a){n++,r={value:a,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):v0(n,r)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ky()},e.prototype.slice=function(s,n){if(ry(s,n,this.size))return this;var r=Go(s,this.size),a=ny(n,this.size);if(a!==this.size)return t.prototype.slice.call(this,s,n);for(var o=this.size-r,l=this._head;r--;)l=l.next;return this.__ownerID?(this.size=o,this._head=l,this.__hash=void 0,this.__altered=!0,this):v0(o,l)},e.prototype.__ensureOwner=function(s){return s===this.__ownerID?this:s?v0(this.size,this._head,s,this.__hash):this.size===0?Ky():(this.__ownerID=s,this.__altered=!1,this)},e.prototype.__iterate=function(s,n){var r=this;if(n)return new zs(this.toArray()).__iterate(function(l,c){return s(l,c,r)},n);for(var a=0,o=this._head;o&&s(o.value,a++,this)!==!1;)o=o.next;return a},e.prototype.__iterator=function(s,n){if(n)return new zs(this.toArray()).__iterator(s,n);var r=0,a=this._head;return new kt(function(){if(a){var o=a.value;return a=a.next,mr(s,r++,o)}return Dn()})},e}(Xs);fy.isStack=W0;var Nn=fy.prototype;Nn[yF]=!0;Nn.shift=Nn.pop;Nn.unshift=Nn.push;Nn.unshiftAll=Nn.pushAll;Nn.withMutations=cy;Nn.wasAltered=pT;Nn.asImmutable=dy;Nn["@@transducer/init"]=Nn.asMutable=ly;Nn["@@transducer/step"]=function(t,e){return t.unshift(e)};Nn["@@transducer/result"]=function(t){return t.asImmutable()};function v0(t,e,u,s){var n=Object.create(Nn);return n.size=t,n._head=e,n.__ownerID=u,n.__hash=s,n.__altered=!1,n}var wE;function Ky(){return wE||(wE=v0(0))}var bF="@@__IMMUTABLE_SET__@@";function hy(t){return!!(t&&t[bF])}function Ob(t){return hy(t)&&Xn(t)}function _T(t,e){if(t===e)return!0;if(!fn(e)||t.size!==void 0&&e.size!==void 0&&t.size!==e.size||t.__hash!==void 0&&e.__hash!==void 0&&t.__hash!==e.__hash||cr(t)!==cr(e)||an(t)!==an(e)||Xn(t)!==Xn(e))return!1;if(t.size===0&&e.size===0)return!0;var u=!Wo(t);if(Xn(t)){var s=t.entries();return e.every(function(l,c){var d=s.next().value;return d&&kr(d[1],l)&&(u||kr(d[0],c))})&&s.next().done}var n=!1;if(t.size===void 0)if(e.size===void 0)typeof t.cacheResult=="function"&&t.cacheResult();else{n=!0;var r=t;t=e,e=r}var a=!0,o=e.__iterate(function(l,c){if(u?!t.has(l):n?!kr(l,t.get(c,Ut)):!kr(t.get(c,Ut),l))return a=!1,!1});return a&&t.size===o}function Ks(t,e){var u=function(s){t.prototype[s]=e[s]};return Object.keys(e).forEach(u),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(u),t}function K1(t){if(!t||typeof t!="object")return t;if(!fn(t)){if(!za(t))return t;t=hn(t)}if(cr(t)){var e={};return t.__iterate(function(s,n){e[n]=K1(s)}),e}var u=[];return t.__iterate(function(s){u.push(K1(s))}),u}var eu=function(t){function e(u){return u==null?w0():hy(u)&&!Xn(u)?u:w0().withMutations(function(s){var n=t(u);Wn(n.size),n.forEach(function(r){return s.add(r)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(s){return this(ci(s).keySeq())},e.intersect=function(s){return s=gr(s).toArray(),s.length?sn.intersect.apply(e(s.pop()),s):w0()},e.union=function(s){return s=gr(s).toArray(),s.length?sn.union.apply(e(s.pop()),s):w0()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(s){return this._map.has(s)},e.prototype.add=function(s){return Yy(this,this._map.set(s,s))},e.prototype.remove=function(s){return Yy(this,this._map.remove(s))},e.prototype.clear=function(){return Yy(this,this._map.clear())},e.prototype.map=function(s,n){var r=this,a=!1,o=Yy(this,this._map.mapEntries(function(l){var c=l[1],d=s.call(n,c,c,r);return d!==c&&(a=!0),[d,d]},n));return a?o:this},e.prototype.union=function(){for(var s=[],n=arguments.length;n--;)s[n]=arguments[n];return s=s.filter(function(r){return r.size!==0}),s.length===0?this:this.size===0&&!this.__ownerID&&s.length===1?this.constructor(s[0]):this.withMutations(function(r){for(var a=0;a=0&&n=0&&rthis.size?u:this.find(function(s,n){return n===e},void 0,u)},has:function(e){return e=ka(this,e),e>=0&&(this.size!==void 0?this.size===1/0||ee?-1:0}function MQ(t){if(t.size===1/0)return 0;var e=Xn(t),u=cr(t),s=e?1:0,n=t.__iterate(u?e?function(r,a){s=31*s+RE(xn(r),xn(a))|0}:function(r,a){s=s+RE(xn(r),xn(a))|0}:e?function(r){s=31*s+xn(r)|0}:function(r){s=s+xn(r)|0});return FQ(n,s)}function FQ(t,e){return e=pu(e,3432918353),e=pu(e<<15|e>>>-15,461845907),e=pu(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=pu(e^e>>>16,2246822507),e=pu(e^e>>>13,3266489909),e=vb(e^e>>>16),e}function RE(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var Gs=function(t){function e(u){return u==null?ZS():Ob(u)?u:ZS().withMutations(function(s){var n=Jo(u);Wn(n.size),n.forEach(function(r){return s.add(r)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(s){return this(ci(s).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(eu);Gs.isOrderedSet=Ob;var Ys=Gs.prototype;Ys[Xo]=!0;Ys.zip=tu.zip;Ys.zipWith=tu.zipWith;Ys.zipAll=tu.zipAll;Ys.__empty=ZS;Ys.__make=vF;function vF(t,e){var u=Object.create(Ys);return u.size=t?t.size:0,u._map=t,u.__ownerID=e,u}var xE;function ZS(){return xE||(xE=vF(_0()))}var wF={LeftThenRight:-1,RightThenLeft:1};function qQ(t){if(Ja(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Yn(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(t===null||typeof t!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Ur=function(e,u){var s;qQ(e);var n=function(o){var l=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!s){s=!0;var c=Object.keys(e),d=r._indices={};r._name=u,r._keys=c,r._defaultValues=e;for(var h=0;h2?[]:void 0,{"":t})}function AF(t,e,u,s,n,r){if(typeof u!="string"&&!Yn(u)&&(G3(u)||z3(u)||Sb(u))){if(~t.indexOf(u))throw new TypeError("Cannot convert circular structure to Immutable");t.push(u),n&&s!==""&&n.push(s);var a=e.call(r,s,hn(u).map(function(o,l){return AF(t,e,o,l,n,u)}),n&&n.slice());return t.pop(),n&&n.pop(),a}return u}function UQ(t,e){return an(e)?e.toList():cr(e)?e.toMap():e.toSet()}var EF="4.3.6",HQ={version:EF,Collection:gr,Iterable:gr,Seq:hn,Map:Ya,OrderedMap:Ei,List:Zo,Stack:fy,Set:eu,OrderedSet:Gs,PairSorting:wF,Record:Ur,Range:vT,Repeat:SF,is:kr,fromJS:TF,hash:xn,isImmutable:Yn,isCollection:fn,isKeyed:cr,isIndexed:an,isAssociative:Wo,isOrdered:Xn,isValueObject:J1,isPlainObject:Sb,isSeq:iy,isList:Eb,isMap:sy,isOrderedMap:_b,isStack:W0,isSet:hy,isOrderedSet:Ob,isRecord:Ja,get:Tb,getIn:Rb,has:nT,hasIn:wT,merge:aF,mergeDeep:oF,mergeWith:sF,mergeDeepWith:uF,remove:iT,removeIn:uT,set:aT,setIn:sT,update:Ab,updateIn:Ka},$Q=gr;const QQ=Object.freeze(Object.defineProperty({__proto__:null,Collection:gr,Iterable:$Q,List:Zo,Map:Ya,OrderedMap:Ei,OrderedSet:Gs,PairSorting:wF,Range:vT,Record:Ur,Repeat:SF,Seq:hn,Set:eu,Stack:fy,default:HQ,fromJS:TF,get:Tb,getIn:Rb,has:nT,hasIn:wT,hash:xn,is:kr,isAssociative:Wo,isCollection:fn,isImmutable:Yn,isIndexed:an,isKeyed:cr,isList:Eb,isMap:sy,isOrdered:Xn,isOrderedMap:_b,isOrderedSet:Ob,isPlainObject:Sb,isRecord:Ja,isSeq:iy,isSet:hy,isStack:W0,isValueObject:J1,merge:aF,mergeDeep:oF,mergeDeepWith:uF,mergeWith:sF,remove:iT,removeIn:uT,set:aT,setIn:sT,update:Ab,updateIn:Ka,version:EF},Symbol.toStringTag,{value:"Module"})),AT=Q3(QQ);Object.defineProperty(ks,"__esModule",{value:!0});ks.ActionContextKey=ks.ActionContext=void 0;const IE=AT;class To{constructor(e={}){this.map=(0,IE.Map)(e)}setDefault(e,u){return this.has(e)?this:this.set(e,u)}set(e,u){return this.setRaw(e.name,u)}setRaw(e,u){return new To(this.map.set(e,u))}delete(e){return new To(this.map.delete(e.name))}get(e){return this.getRaw(e.name)}getRaw(e){return this.map.get(e)}getSafe(e){if(!this.has(e))throw new Error(`Context entry ${e.name} is required but not available`);return this.get(e)}has(e){return this.hasRaw(e.name)}hasRaw(e){return this.map.has(e)}merge(...e){let u=this;for(const s of e)for(const n of s.keys())u=u.set(n,s.get(n));return u}keys(){return[...this.map.keys()].map(e=>new OF(e))}toJS(){return this.map.toJS()}toString(){return`ActionContext(${JSON.stringify(this.map.toJS())})`}[Symbol.for("nodejs.util.inspect.custom")](){return`ActionContext(${JSON.stringify(this.map.toJS(),null," ")})`}static ensureActionContext(e){return e instanceof To?e:new To((0,IE.Map)(e??{}))}}ks.ActionContext=To;class OF{constructor(e){this.name=e}}ks.ActionContextKey=OF;var yy={};Object.defineProperty(yy,"__esModule",{value:!0});yy.Bus=void 0;class VQ{constructor(e){this.actors=[],this.observers=[],this.dependencyLinks=new Map,Object.assign(this,e)}subscribe(e){this.actors.push(e),this.reorderForDependencies()}subscribeObserver(e){this.observers.push(e)}unsubscribe(e){const u=this.actors.indexOf(e);return u>=0?(this.actors.splice(u,1),!0):!1}unsubscribeObserver(e){const u=this.observers.indexOf(e);return u>=0?(this.observers.splice(u,1),!0):!1}publish(e){return this.actors.map(u=>({actor:u,reply:u.test(e)}))}onRun(e,u,s){for(const n of this.observers)n.onRun(e,u,s)}addDependencies(e,u){for(const s of u){let n=this.dependencyLinks.get(s);n||(n=[],this.dependencyLinks.set(s,n)),n.push(e)}this.reorderForDependencies()}reorderForDependencies(){if(this.dependencyLinks.size>0){const e=[];for(const u of this.dependencyLinks.keys()){const s=this.actors.indexOf(u);s>=0&&(this.actors.splice(s,1),e.push(u))}for(;e.length>0;){let u=-1;for(let n=0;n=0&&s.splice(n,1),s.length===0&&delete this.actorsIndex[u]}return super.unsubscribe(e)}publish(e){const u=this.getActionIdentifier(e);return u?[...this.actorsIndex[u]||[],...this.actorsIndex._undefined_||[]].map(n=>({actor:n,reply:n.test(e)})):super.publish(e)}getActorIdentifier(e){return this.actorIdentifierFields.reduce((u,s)=>u[s],e)}getActionIdentifier(e){return this.actionIdentifierFields.reduce((u,s)=>u[s],e)}}xb.BusIndexed=zQ;var by={};Object.defineProperty(by,"__esModule",{value:!0});by.CONTEXT_KEY_LOGGER=void 0;const GQ=ks;by.CONTEXT_KEY_LOGGER=new GQ.ActionContextKey("@comunica/core:log");var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0});Ib.ActionObserver=void 0;class WQ{constructor(e){Object.assign(this,e)}}Ib.ActionObserver=WQ;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0});Pb.Actor=void 0;const JQ=by;class Ma{constructor(e){this.beforeActors=[],Object.assign(this,e),this.bus.subscribe(this),this.beforeActors.length>0&&this.bus.addDependencies(this,this.beforeActors)}static getContextLogger(e){return e.get(JQ.CONTEXT_KEY_LOGGER)}runObservable(e){const u=this.run(e);return this.bus.onRun(this,e,u),u}async initialize(){return!0}async deinitialize(){return!0}getDefaultLogData(e,u){const s=u?u():{};return s.actor=this.name,s}logTrace(e,u,s){const n=Ma.getContextLogger(e);n&&n.trace(u,this.getDefaultLogData(e,s))}logDebug(e,u,s){const n=Ma.getContextLogger(e);n&&n.debug(u,this.getDefaultLogData(e,s))}logInfo(e,u,s){const n=Ma.getContextLogger(e);n&&n.info(u,this.getDefaultLogData(e,s))}logWarn(e,u,s){const n=Ma.getContextLogger(e);n&&n.warn(u,this.getDefaultLogData(e,s))}logError(e,u,s){const n=Ma.getContextLogger(e);n&&n.error(u,this.getDefaultLogData(e,s))}logFatal(e,u,s){const n=Ma.getContextLogger(e);n&&n.fatal(u,this.getDefaultLogData(e,s))}}Pb.Actor=Ma;var Db={};Object.defineProperty(Db,"__esModule",{value:!0});Db.Mediator=void 0;class XQ{constructor(e){Object.assign(this,e)}publish(e){const u=this.bus.publish(e);if(u.length===0)throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`);return u}async mediateActor(e){return await this.mediateWith(e,this.publish(e))}async mediate(e){return(await this.mediateActor(e)).runObservable(e)}}Db.Mediator=XQ;(function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ks,t),u(yy,t),u(xb,t),u(by,t),u(Ib,t),u(Pb,t),u(Db,t)})(ot);Object.defineProperty(bb,"__esModule",{value:!0});bb.ActorInit=void 0;const KQ=ot;class YQ extends KQ.Actor{constructor(e){super(e)}}bb.ActorInit=YQ;(function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(bb,t)})(N9);Object.defineProperty(ey,"__esModule",{value:!0});ey.ActorInitQueryBase=void 0;const ZQ=N9;class eV extends ZQ.ActorInit{async test(e){return!0}async run(e){throw new Error("ActorInitSparql#run is not supported in the browser.")}}ey.ActorInitQueryBase=eV;var Nb={},Dg={exports:{}},PE;function Sa(){if(PE)return Dg.exports;PE=1;var t=Dg.exports={},e,u;function s(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=s}catch{e=s}try{typeof clearTimeout=="function"?u=clearTimeout:u=n}catch{u=n}})();function r(b){if(e===setTimeout)return setTimeout(b,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(b,0);try{return e(b,0)}catch{try{return e.call(null,b,0)}catch{return e.call(this,b,0)}}}function a(b){if(u===clearTimeout)return clearTimeout(b);if((u===n||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(b);try{return u(b)}catch{try{return u.call(null,b)}catch{return u.call(this,b)}}}var o=[],l=!1,c,d=-1;function h(){!l||!c||(l=!1,c.length?o=c.concat(o):d=-1,o.length&&f())}function f(){if(!l){var b=r(h);l=!0;for(var m=o.length;m;){for(c=o,o=[];++d1)for(var g=1;g"u"&&(globalThis.process=Sa());class rV extends tV.ActorInitQueryBase{}Nb.ActorInitQuery=rV;var Cb={},Lt={},ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.KeysRdfJoin=ar.KeysMergeBindingsContext=ar.KeysRdfUpdateQuads=ar.KeysQuerySourceIdentify=ar.KeysRdfParseHtmlScript=ar.KeysRdfParseJsonLd=ar.KeysQueryOperation=ar.KeysInitQuery=ar.KeysHttpProxy=ar.KeysHttpMemento=ar.KeysHttpWayback=ar.KeysHttp=ar.KeysCore=void 0;const vt=ot;ar.KeysCore={log:vt.CONTEXT_KEY_LOGGER};ar.KeysHttp={includeCredentials:new vt.ActionContextKey("@comunica/bus-http:include-credentials"),auth:new vt.ActionContextKey("@comunica/bus-http:auth"),fetch:new vt.ActionContextKey("@comunica/bus-http:fetch"),httpTimeout:new vt.ActionContextKey("@comunica/bus-http:http-timeout"),httpBodyTimeout:new vt.ActionContextKey("@comunica/bus-http:http-body-timeout"),httpRetryCount:new vt.ActionContextKey("@comunica/bus-http:http-retry-count"),httpRetryDelay:new vt.ActionContextKey("@comunica/bus-http:http-retry-delay"),httpRetryOnServerError:new vt.ActionContextKey("@comunica/bus-http:http-retry-on-server-error")};ar.KeysHttpWayback={recoverBrokenLinks:new vt.ActionContextKey("@comunica/bus-http:recover-broken-links")};ar.KeysHttpMemento={datetime:new vt.ActionContextKey("@comunica/actor-http-memento:datetime")};ar.KeysHttpProxy={httpProxyHandler:new vt.ActionContextKey("@comunica/actor-http-proxy:httpProxyHandler")};ar.KeysInitQuery={querySourcesUnidentified:new vt.ActionContextKey("@comunica/actor-init-query:querySourcesUnidentified"),initialBindings:new vt.ActionContextKey("@comunica/actor-init-query:initialBindings"),queryFormat:new vt.ActionContextKey("@comunica/actor-init-query:queryFormat"),graphqlSingularizeVariables:new vt.ActionContextKey("@comunica/actor-init-query:singularizeVariables"),lenient:new vt.ActionContextKey("@comunica/actor-init-query:lenient"),queryString:new vt.ActionContextKey("@comunica/actor-init-query:queryString"),query:new vt.ActionContextKey("@comunica/actor-init-query:query"),baseIRI:new vt.ActionContextKey("@comunica/actor-init-query:baseIRI"),functionArgumentsCache:new vt.ActionContextKey("@comunica/actor-init-query:functionArgumentsCache"),queryTimestamp:new vt.ActionContextKey("@comunica/actor-init-query:queryTimestamp"),extensionFunctionCreator:new vt.ActionContextKey("@comunica/actor-init-query:extensionFunctionCreator"),extensionFunctions:new vt.ActionContextKey("@comunica/actor-init-query:extensionFunctions"),cliArgsHandlers:new vt.ActionContextKey("@comunica/actor-init-query:cliArgsHandlers"),explain:new vt.ActionContextKey("@comunica/actor-init-query:explain"),physicalQueryPlanLogger:new vt.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanLogger"),physicalQueryPlanNode:new vt.ActionContextKey("@comunica/actor-init-query:physicalQueryPlanNode"),jsonLdContext:new vt.ActionContextKey("@context"),noCache:new vt.ActionContextKey("@comunica/actor-init-query:noCache")};ar.KeysQueryOperation={operation:new vt.ActionContextKey("@comunica/bus-query-operation:operation"),joinLeftMetadata:new vt.ActionContextKey("@comunica/bus-query-operation:joinLeftMetadata"),joinRightMetadatas:new vt.ActionContextKey("@comunica/bus-query-operation:joinRightMetadatas"),joinBindings:new vt.ActionContextKey("@comunica/bus-query-operation:joinBindings"),readOnly:new vt.ActionContextKey("@comunica/bus-query-operation:readOnly"),isPathArbitraryLengthDistinctKey:new vt.ActionContextKey("@comunica/bus-query-operation:isPathArbitraryLengthDistinct"),limitIndicator:new vt.ActionContextKey("@comunica/bus-query-operation:limitIndicator"),unionDefaultGraph:new vt.ActionContextKey("@comunica/bus-query-operation:unionDefaultGraph"),querySources:new vt.ActionContextKey("@comunica/bus-query-operation:querySources")};ar.KeysRdfParseJsonLd={documentLoader:new vt.ActionContextKey("@comunica/actor-rdf-parse-jsonld:documentLoader"),strictValues:new vt.ActionContextKey("@comunica/actor-rdf-parse-jsonld:strictValues"),parserOptions:new vt.ActionContextKey("@comunica/actor-rdf-parse-jsonld:parserOptions")};ar.KeysRdfParseHtmlScript={processingHtmlScript:new vt.ActionContextKey("@comunica/actor-rdf-parse-html-script:processingHtmlScript"),extractAllScripts:new vt.ActionContextKey("extractAllScripts")};ar.KeysQuerySourceIdentify={sourceIds:new vt.ActionContextKey("@comunica/bus-query-source-identify:sourceIds"),hypermediaSourcesAggregatedStores:new vt.ActionContextKey("@comunica/bus-query-source-identify:hypermediaSourcesAggregatedStores"),traverse:new vt.ActionContextKey("@comunica/bus-query-source-identify:traverse")};ar.KeysRdfUpdateQuads={destination:new vt.ActionContextKey("@comunica/bus-rdf-update-quads:destination")};ar.KeysMergeBindingsContext={sourcesBinding:new vt.ActionContextKey("@comunica/bus-merge-bindings-context:sourcesBinding")};ar.KeysRdfJoin={lastPhysicalJoin:new vt.ActionContextKey("@comunica/bus-rdf-join:lastPhysicalJoin")};(function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ar,t)})(Lt);Object.defineProperty(Cb,"__esModule",{value:!0});Cb.QueryEngineBase=void 0;const nV=Lt,yu=ot;class Y1{constructor(e){this.actorInitQuery=e}async queryBindings(e,u){return this.queryOfType(e,u,"bindings")}async queryQuads(e,u){return this.queryOfType(e,u,"quads")}async queryBoolean(e,u){return this.queryOfType(e,u,"boolean")}async queryVoid(e,u){return this.queryOfType(e,u,"void")}async queryOfType(e,u,s){const n=await this.query(e,u);if(n.resultType===s)return await n.execute();throw new Error(`Query result type '${s}' was expected, while '${n.resultType}' was found.`)}async query(e,u){const s=await this.queryOrExplain(e,u);if("explain"in s)throw new Error("Tried to explain a query when in query-only mode");return s}async explain(e,u,s){return u.explain=s,await this.queryOrExplain(e,u)}async queryOrExplain(e,u){const s=yu.ActionContext.ensureActionContext(u);s.get(nV.KeysInitQuery.noCache)&&await this.invalidateHttpCache();const{result:n}=await this.actorInitQuery.mediatorQueryProcess.mediate({query:e,context:s});return"explain"in n?n:Y1.internalToFinalResult(n)}async getResultMediaTypes(e){return e=yu.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeCombiner.mediate({context:e,mediaTypes:!0})).mediaTypes}async getResultMediaTypeFormats(e){return e=yu.ActionContext.ensureActionContext(e),(await this.actorInitQuery.mediatorQueryResultSerializeMediaTypeFormatCombiner.mediate({context:e,mediaTypeFormats:!0})).mediaTypeFormats}async resultToString(e,u,s){if(s=yu.ActionContext.ensureActionContext(s),!u)switch(e.resultType){case"bindings":u="application/json";break;case"quads":u="application/trig";break;default:u="simple";break}const n={...await Y1.finalToInternalResult(e),context:s};return(await this.actorInitQuery.mediatorQueryResultSerialize.mediate({context:s,handle:n,handleMediaType:u})).handle}invalidateHttpCache(e,u){return u=yu.ActionContext.ensureActionContext(u),this.actorInitQuery.mediatorHttpInvalidate.mediate({url:e,context:u})}static internalToFinalResult(e){switch(e.type){case"bindings":return{resultType:"bindings",execute:async()=>e.bindingsStream,metadata:async()=>await e.metadata(),context:e.context};case"quads":return{resultType:"quads",execute:async()=>e.quadStream,metadata:async()=>await e.metadata(),context:e.context};case"boolean":return{resultType:"boolean",execute:async()=>e.execute(),context:e.context};case"void":return{resultType:"void",execute:async()=>e.execute(),context:e.context}}}static async finalToInternalResult(e){switch(e.resultType){case"bindings":return{type:"bindings",bindingsStream:await e.execute(),metadata:async()=>await e.metadata()};case"quads":return{type:"quads",quadStream:await e.execute(),metadata:async()=>await e.metadata()};case"boolean":return{type:"boolean",execute:()=>e.execute()};case"void":return{type:"void",execute:()=>e.execute()}}}}Cb.QueryEngineBase=Y1;(function(t){var e=I&&I.__createBinding||(Object.create?function(n,r,a,o){o===void 0&&(o=a);var l=Object.getOwnPropertyDescriptor(r,a);(!l||("get"in l?!r.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(n,o,l)}:function(n,r,a,o){o===void 0&&(o=a),n[o]=r[a]}),u=I&&I.__exportStar||function(n,r){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(r,a)&&e(r,n,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.QueryEngineBase=void 0,u(ey,t),u(Nb,t);var s=Cb;Object.defineProperty(t,"QueryEngineBase",{enumerable:!0,get:function(){return s.QueryEngineBase}})})(V3);var Ng={},bu={},Cg={},jg={},DE;function iV(){return DE||(DE=1,Object.defineProperty(jg,"__esModule",{value:!0})),jg}var Lg={},NE;function aV(){return NE||(NE=1,Object.defineProperty(Lg,"__esModule",{value:!0})),Lg}var Mg={},CE;function sV(){return CE||(CE=1,Object.defineProperty(Mg,"__esModule",{value:!0})),Mg}var Fg={},jE;function oV(){return jE||(jE=1,Object.defineProperty(Fg,"__esModule",{value:!0})),Fg}var qg={},LE;function uV(){return LE||(LE=1,Object.defineProperty(qg,"__esModule",{value:!0})),qg}var Bg={},ME;function cV(){return ME||(ME=1,Object.defineProperty(Bg,"__esModule",{value:!0})),Bg}var Ug={},FE;function lV(){return FE||(FE=1,Object.defineProperty(Ug,"__esModule",{value:!0})),Ug}var Hg={},qE;function dV(){return qE||(qE=1,Object.defineProperty(Hg,"__esModule",{value:!0})),Hg}var $g={},BE;function fV(){return BE||(BE=1,Object.defineProperty($g,"__esModule",{value:!0})),$g}var Qg={},UE;function hV(){return UE||(UE=1,Object.defineProperty(Qg,"__esModule",{value:!0})),Qg}var Vg={},HE;function pV(){return HE||(HE=1,Object.defineProperty(Vg,"__esModule",{value:!0})),Vg}var kg={},$E;function yV(){return $E||($E=1,Object.defineProperty(kg,"__esModule",{value:!0})),kg}var zg={},QE;function bV(){return QE||(QE=1,Object.defineProperty(zg,"__esModule",{value:!0})),zg}var gu={},VE;function gV(){if(VE)return gu;VE=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.Logger=void 0;let t=class RF{static getLevelOrdinal(u){return RF.LEVELS[u]}};return gu.Logger=t,t.LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},gu}var kE;function mV(){return kE||(kE=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(iV(),t),u(aV(),t),u(sV(),t),u(oV(),t),u(uV(),t),u(cV(),t),u(lV(),t),u(dV(),t),u(fV(),t),u(hV(),t),u(pV(),t),u(yV(),t),u(bV(),t),u(gV(),t)}(Cg)),Cg}var zE;function _V(){if(zE)return bu;zE=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.LoggerVoid=void 0;const t=mV();let e=class extends t.Logger{debug(){}error(){}fatal(){}info(){}trace(){}warn(){}};return bu.LoggerVoid=e,bu}var GE;function vV(){return GE||(GE=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(_V(),t)}(Ng)),Ng}var Gg={},mu={},Wg={},_u={},WE;function wV(){if(WE)return _u;WE=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.BlankNodeScoped=void 0;let t=class{constructor(u,s){this.termType="BlankNode",this.value=u,this.skolemized=s}equals(u){return!!u&&u.termType==="BlankNode"&&u.value===this.value}};return _u.BlankNodeScoped=t,_u}var vu={},JE;function SV(){if(JE)return vu;JE=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.BlankNodeBindingsScoped=void 0;let t=class{constructor(u){this.termType="BlankNode",this.singleBindingsScope=!0,this.value=u}equals(u){return!!u&&u.termType==="BlankNode"&&u.value===this.value}};return vu.BlankNodeBindingsScoped=t,vu}var XE;function ET(){return XE||(XE=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(wV(),t),u(SV(),t)}(Wg)),Wg}var ys={},Jg={},wu={},KE;function xF(){if(KE)return wu;KE=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.BlankNode=void 0;class t{constructor(u){this.termType="BlankNode",this.value=u}equals(u){return!!u&&u.termType==="BlankNode"&&u.value===this.value}}return wu.BlankNode=t,wu}var Su={},Tu={},YE;function IF(){if(YE)return Tu;YE=1,Object.defineProperty(Tu,"__esModule",{value:!0}),Tu.DefaultGraph=void 0;class t{constructor(){this.termType="DefaultGraph",this.value=""}equals(u){return!!u&&u.termType==="DefaultGraph"}}return Tu.DefaultGraph=t,t.INSTANCE=new t,Tu}var Au={},Eu={},ZE;function OT(){if(ZE)return Eu;ZE=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.NamedNode=void 0;class t{constructor(u){this.termType="NamedNode",this.value=u}equals(u){return!!u&&u.termType==="NamedNode"&&u.value===this.value}}return Eu.NamedNode=t,Eu}var eO;function PF(){if(eO)return Au;eO=1,Object.defineProperty(Au,"__esModule",{value:!0}),Au.Literal=void 0;const t=OT();class e{constructor(s,n){this.termType="Literal",this.value=s,typeof n=="string"?(this.language=n,this.datatype=e.RDF_LANGUAGE_STRING):n?(this.language="",this.datatype=n):(this.language="",this.datatype=e.XSD_STRING)}equals(s){return!!s&&s.termType==="Literal"&&s.value===this.value&&s.language===this.language&&this.datatype.equals(s.datatype)}}return Au.Literal=e,e.RDF_LANGUAGE_STRING=new t.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),e.XSD_STRING=new t.NamedNode("http://www.w3.org/2001/XMLSchema#string"),Au}var Ou={},tO;function DF(){if(tO)return Ou;tO=1,Object.defineProperty(Ou,"__esModule",{value:!0}),Ou.Quad=void 0;class t{constructor(u,s,n,r){this.termType="Quad",this.value="",this.subject=u,this.predicate=s,this.object=n,this.graph=r}equals(u){return!!u&&(u.termType==="Quad"||!u.termType)&&this.subject.equals(u.subject)&&this.predicate.equals(u.predicate)&&this.object.equals(u.object)&&this.graph.equals(u.graph)}}return Ou.Quad=t,Ou}var Ru={},rO;function NF(){if(rO)return Ru;rO=1,Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.Variable=void 0;class t{constructor(u){this.termType="Variable",this.value=u}equals(u){return!!u&&u.termType==="Variable"&&u.value===this.value}}return Ru.Variable=t,Ru}var nO;function TV(){if(nO)return Su;nO=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.DataFactory=void 0;const t=xF(),e=IF(),u=PF(),s=OT(),n=DF(),r=NF();let a=0;class o{constructor(c){this.blankNodeCounter=0,c=c||{},this.blankNodePrefix=c.blankNodePrefix||`df_${a++}_`}namedNode(c){return new s.NamedNode(c)}blankNode(c){return new t.BlankNode(c||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(c,d){return new u.Literal(c,d)}variable(c){return new r.Variable(c)}defaultGraph(){return e.DefaultGraph.INSTANCE}quad(c,d,h,f){return new n.Quad(c,d,h,f||this.defaultGraph())}fromTerm(c){switch(c.termType){case"NamedNode":return this.namedNode(c.value);case"BlankNode":return this.blankNode(c.value);case"Literal":return c.language?this.literal(c.value,c.language):c.datatype.equals(u.Literal.XSD_STRING)?this.literal(c.value):this.literal(c.value,this.fromTerm(c.datatype));case"Variable":return this.variable(c.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(c.subject),this.fromTerm(c.predicate),this.fromTerm(c.object),this.fromTerm(c.graph))}}fromQuad(c){return this.fromTerm(c)}resetBlankNodeCounter(){this.blankNodeCounter=0}}return Su.DataFactory=o,Su}var iO;function Et(){return iO||(iO=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(xF(),t),u(TV(),t),u(IF(),t),u(PF(),t),u(OT(),t),u(DF(),t),u(NF(),t)}(Jg)),Jg}var Xg={},en={},aO;function AV(){if(aO)return en;aO=1,Object.defineProperty(en,"__esModule",{value:!0}),en.stringQuadToQuad=en.quadToStringQuad=en.stringToTerm=en.getLiteralLanguage=en.getLiteralType=en.getLiteralValue=en.termToString=void 0;const t=Et(),e=new t.DataFactory;function u(c){if(c)switch(c.termType){case"NamedNode":return c.value;case"BlankNode":return"_:"+c.value;case"Literal":const d=c;return'"'+d.value+'"'+(d.datatype&&d.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&d.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?"^^"+d.datatype.value:"")+(d.language?"@"+d.language:"");case"Quad":return`<<${u(c.subject)} ${u(c.predicate)} ${u(c.object)}${c.graph.termType==="DefaultGraph"?"":" "+u(c.graph)}>>`;case"Variable":return"?"+c.value;case"DefaultGraph":return c.value}}en.termToString=u;function s(c){const d=/^"([^]*)"/.exec(c);if(!d)throw new Error(c+" is not a literal");return d[1]}en.getLiteralValue=s;function n(c){const d=/^"[^]*"(?:\^\^([^"]+)|(@)[^@"]+)?$/.exec(c);if(!d)throw new Error(c+" is not a literal");return d[1]||(d[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}en.getLiteralType=n;function r(c){const d=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(c);if(!d)throw new Error(c+" is not a literal");return d[1]?d[1].toLowerCase():""}en.getLiteralLanguage=r;function a(c,d){if(d=d||e,!c||!c.length)return d.defaultGraph();switch(c[0]){case"_":return d.blankNode(c.substr(2));case"?":if(!d.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return d.variable(c.substr(1));case'"':const h=r(c),f=d.namedNode(n(c));return d.literal(s(c),h||f);case"<":default:if(c[0]==="<"&&c.length>4&&c[1]==="<"&&c[c.length-1]===">"&&c[c.length-2]===">"){const p=c.slice(2,-2).trim();let y=[],b=0,m=0,g=!1;for(let v=0;v"){if(b===0)throw new Error("Found closing tag without opening tag in "+c);b--}if(_==='"'){let w=!1,S=v;for(;S-- >0&&p[S]==="\\";)w=!w;w||(g=!g)}if(_===" "&&!g&&b===0){for(y.push(p.slice(m,v));p[v+1]===" ";)v+=1;m=v+1}}if(b!==0)throw new Error("Found opening tag without closing tag in "+c);if(y.push(p.slice(m,p.length)),y.length!==3&&y.length!==4)throw new Error("Nested quad syntax error "+c);return y=y.map(v=>v.startsWith("<")&&!v.includes(" ")?v.slice(1,-1):v),d.quad(a(y[0]),a(y[1]),a(y[2]),y[3]?a(y[3]):void 0)}return d.namedNode(c)}}en.stringToTerm=a;function o(c){return{subject:u(c.subject),predicate:u(c.predicate),object:u(c.object),graph:u(c.graph)}}en.quadToStringQuad=o;function l(c,d){return d=d||e,d.quad(a(c.subject,d),a(c.predicate,d),a(c.object,d),a(c.graph,d))}return en.stringQuadToQuad=l,en}var sO;function er(){return sO||(sO=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=AV();Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})}(Xg)),Xg}var Kg={},bt={},oO;function CF(){if(oO)return bt;oO=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.matchPatternMappings=bt.matchPatternComplete=bt.matchPattern=bt.matchTerm=bt.getValueNestedPath=bt.someTermsNested=bt.someTerms=bt.everyTermsNested=bt.everyTerms=bt.reduceTermsNested=bt.reduceTerms=bt.mapTermsNested=bt.mapTerms=bt.filterQuadTermNamesNested=bt.filterQuadTermNames=bt.filterTermsNested=bt.filterTerms=bt.forEachTermsNested=bt.forEachTerms=bt.collectNamedTerms=bt.getNamedTerms=bt.getTermsNested=bt.getTerms=bt.TRIPLE_TERM_NAMES=bt.QUAD_TERM_NAMES=void 0;const t=Et(),e=new t.DataFactory;bt.QUAD_TERM_NAMES=["subject","predicate","object","graph"],bt.TRIPLE_TERM_NAMES=["subject","predicate","object"];function u(E,O){return O&&E.graph.termType==="DefaultGraph"?[E.subject,E.predicate,E.object]:[E.subject,E.predicate,E.object,E.graph]}bt.getTerms=u;function s(E,O){const P=[];for(const j of u(E,O))j.termType==="Quad"?s(j,O).forEach(U=>P.push(U)):P.push(j);return P}bt.getTermsNested=s;function n(E){return[{key:"subject",value:E.subject},{key:"predicate",value:E.predicate},{key:"object",value:E.object},{key:"graph",value:E.graph}]}bt.getNamedTerms=n;function r(E,O,P){const j={};return E.forEach(U=>j[U.key]=U.value),O&&(j.subject=j.subject||O("subject"),j.predicate=j.predicate||O("predicate"),j.object=j.object||O("object"),j.graph=j.graph||O("graph")),(P||e).quad(j.subject,j.predicate,j.object,j.graph)}bt.collectNamedTerms=r;function a(E,O){O(E.subject,"subject"),O(E.predicate,"predicate"),O(E.object,"object"),O(E.graph,"graph")}bt.forEachTerms=a;function o(E,O,P=[]){E.subject.termType==="Quad"?o(E.subject,O,[...P,"subject"]):O(E.subject,[...P,"subject"]),E.predicate.termType==="Quad"?o(E.predicate,O,[...P,"predicate"]):O(E.predicate,[...P,"predicate"]),E.object.termType==="Quad"?o(E.object,O,[...P,"object"]):O(E.object,[...P,"object"]),E.graph.termType==="Quad"?o(E.graph,O,[...P,"graph"]):O(E.graph,[...P,"graph"])}bt.forEachTermsNested=o;function l(E,O){const P=[];return O(E.subject,"subject")&&P.push(E.subject),O(E.predicate,"predicate")&&P.push(E.predicate),O(E.object,"object")&&P.push(E.object),O(E.graph,"graph")&&P.push(E.graph),P}bt.filterTerms=l;function c(E,O,P=[]){let j=[];return E.subject.termType==="Quad"?j=[...j,...c(E.subject,O,[...P,"subject"])]:O(E.subject,[...P,"subject"])&&j.push(E.subject),E.predicate.termType==="Quad"?j=[...j,...c(E.predicate,O,[...P,"predicate"])]:O(E.predicate,[...P,"predicate"])&&j.push(E.predicate),E.object.termType==="Quad"?j=[...j,...c(E.object,O,[...P,"object"])]:O(E.object,[...P,"object"])&&j.push(E.object),E.graph.termType==="Quad"?j=[...j,...c(E.graph,O,[...P,"graph"])]:O(E.graph,[...P,"graph"])&&j.push(E.graph),j}bt.filterTermsNested=c;function d(E,O){const P=[];return O(E.subject,"subject")&&P.push("subject"),O(E.predicate,"predicate")&&P.push("predicate"),O(E.object,"object")&&P.push("object"),O(E.graph,"graph")&&P.push("graph"),P}bt.filterQuadTermNames=d;function h(E,O,P=[]){let j=[];const U=[...P,"subject"];E.subject.termType==="Quad"?j=[...j,...h(E.subject,O,U)]:O(E.subject,U)&&j.push(U);const M=[...P,"predicate"];E.predicate.termType==="Quad"?j=[...j,...h(E.predicate,O,M)]:O(E.predicate,M)&&j.push(M);const q=[...P,"object"];E.object.termType==="Quad"?j=[...j,...h(E.object,O,q)]:O(E.object,q)&&j.push(q);const Q=[...P,"graph"];return E.graph.termType==="Quad"?j=[...j,...h(E.graph,O,Q)]:O(E.graph,Q)&&j.push(Q),j}bt.filterQuadTermNamesNested=h;function f(E,O,P){return(P||e).quad(O(E.subject,"subject"),O(E.predicate,"predicate"),O(E.object,"object"),O(E.graph,"graph"))}bt.mapTerms=f;function p(E,O,P,j=[]){return(P||e).quad(E.subject.termType==="Quad"?p(E.subject,O,P,[...j,"subject"]):O(E.subject,[...j,"subject"]),E.predicate.termType==="Quad"?p(E.predicate,O,P,[...j,"predicate"]):O(E.predicate,[...j,"predicate"]),E.object.termType==="Quad"?p(E.object,O,P,[...j,"object"]):O(E.object,[...j,"object"]),E.graph.termType==="Quad"?p(E.graph,O,P,[...j,"graph"]):O(E.graph,[...j,"graph"]))}bt.mapTermsNested=p;function y(E,O,P){let j=P;return j=O(j,E.subject,"subject"),j=O(j,E.predicate,"predicate"),j=O(j,E.object,"object"),O(j,E.graph,"graph")}bt.reduceTerms=y;function b(E,O,P,j=[]){let U=P;return E.subject.termType==="Quad"?U=b(E.subject,O,U,[...j,"subject"]):U=O(U,E.subject,[...j,"subject"]),E.predicate.termType==="Quad"?U=b(E.predicate,O,U,[...j,"predicate"]):U=O(U,E.predicate,[...j,"predicate"]),E.object.termType==="Quad"?U=b(E.object,O,U,[...j,"object"]):U=O(U,E.object,[...j,"object"]),E.graph.termType==="Quad"?U=b(E.graph,O,U,[...j,"graph"]):U=O(U,E.graph,[...j,"graph"]),U}bt.reduceTermsNested=b;function m(E,O){return O(E.subject,"subject")&&O(E.predicate,"predicate")&&O(E.object,"object")&&O(E.graph,"graph")}bt.everyTerms=m;function g(E,O,P=[]){return(E.subject.termType==="Quad"?g(E.subject,O,[...P,"subject"]):O(E.subject,[...P,"subject"]))&&(E.predicate.termType==="Quad"?g(E.predicate,O,[...P,"predicate"]):O(E.predicate,[...P,"predicate"]))&&(E.object.termType==="Quad"?g(E.object,O,[...P,"object"]):O(E.object,[...P,"object"]))&&(E.graph.termType==="Quad"?g(E.graph,O,[...P,"graph"]):O(E.graph,[...P,"graph"]))}bt.everyTermsNested=g;function v(E,O){return O(E.subject,"subject")||O(E.predicate,"predicate")||O(E.object,"object")||O(E.graph,"graph")}bt.someTerms=v;function _(E,O,P=[]){return(E.subject.termType==="Quad"?_(E.subject,O,[...P,"subject"]):O(E.subject,[...P,"subject"]))||(E.predicate.termType==="Quad"?_(E.predicate,O,[...P,"predicate"]):O(E.predicate,[...P,"predicate"]))||(E.object.termType==="Quad"?_(E.object,O,[...P,"object"]):O(E.object,[...P,"object"]))||(E.graph.termType==="Quad"?_(E.graph,O,[...P,"graph"]):O(E.graph,[...P,"graph"]))}bt.someTermsNested=_;function w(E,O){if(O.length===0)return E;if(E.termType==="Quad")return w(E[O[0]],O.slice(1));throw new Error(`Tried to get ${O[0]} from term of type ${E.termType}`)}bt.getValueNestedPath=w;function S(E,O){return!O||O.termType==="Variable"||O.termType==="Quad"&&E.termType==="Quad"&&D(E,O)||O.equals(E)}bt.matchTerm=S;function A(E,O,P,j,U){return S(E.subject,O)&&S(E.predicate,P)&&S(E.object,j)&&S(E.graph,U)}bt.matchPattern=A;function D(E,O){return A(E,O.subject,O.predicate,O.object,O.graph)}bt.matchPatternComplete=D;function L(E,O,P={}){const j={};function U(M,q){return m(M,(Q,Z)=>{var K,fe;const X=q[Z];switch(Q.termType){case"Variable":return P.skipVarMapping&&X.termType==="Variable"||((fe=(K=j[Q.value])===null||K===void 0?void 0:K.equals(X))!==null&&fe!==void 0?fe:(j[Q.value]=X,!0));case"Quad":return X.termType==="Quad"&&U(Q,X);default:return Q.equals(X)}})}return U(O,E)&&(P.returnMappings?j:!0)}return bt.matchPatternMappings=L,bt}var Cr={},uO;function EV(){if(uO)return Cr;uO=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.getQuads=Cr.getDefaultGraphs=Cr.getVariables=Cr.getLiterals=Cr.getBlankNodes=Cr.getNamedNodes=Cr.getTermsOfType=Cr.uniqTerms=Cr.TERM_TYPES=void 0;const t=er();Cr.TERM_TYPES=["NamedNode","BlankNode","Literal","Variable","DefaultGraph","Quad"];function e(c){const d={};return c.filter(h=>{const f=(0,t.termToString)(h);return!(f in d)&&(d[f]=!0)})}Cr.uniqTerms=e;function u(c,d){return c.filter(h=>h.termType===d)}Cr.getTermsOfType=u;function s(c){return u(c,"NamedNode")}Cr.getNamedNodes=s;function n(c){return u(c,"BlankNode")}Cr.getBlankNodes=n;function r(c){return u(c,"Literal")}Cr.getLiterals=r;function a(c){return u(c,"Variable")}Cr.getVariables=a;function o(c){return u(c,"DefaultGraph")}Cr.getDefaultGraphs=o;function l(c){return u(c,"Quad")}return Cr.getQuads=l,Cr}var cO;function un(){return cO||(cO=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(CF(),t),u(EV(),t)}(Kg)),Kg}var Yg={},Zy={},Zg,lO;function OV(){return lO||(lO=1,Zg=function t(e,u){if(e===u)return!0;if(e&&u&&typeof e=="object"&&typeof u=="object"){if(e.constructor!==u.constructor)return!1;var s,n,r;if(Array.isArray(e)){if(s=e.length,s!=u.length)return!1;for(n=s;n--!==0;)if(!t(e[n],u[n]))return!1;return!0}if(e instanceof Map&&u instanceof Map){if(e.size!==u.size)return!1;for(n of e.entries())if(!u.has(n[0]))return!1;for(n of e.entries())if(!t(n[1],u.get(n[0])))return!1;return!0}if(e instanceof Set&&u instanceof Set){if(e.size!==u.size)return!1;for(n of e.entries())if(!u.has(n[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(u)){if(s=e.length,s!=u.length)return!1;for(n=s;n--!==0;)if(e[n]!==u[n])return!1;return!0}if(e.constructor===RegExp)return e.source===u.source&&e.flags===u.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===u.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===u.toString();if(r=Object.keys(e),s=r.length,s!==Object.keys(u).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(u,r[n]))return!1;for(n=s;n--!==0;){var a=r[n];if(!t(e[a],u[a]))return!1}return!0}return e!==e&&u!==u}),Zg}var em={},dO;function gy(){return dO||(dO=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.expressionTypes=t.types=void 0,function(e){e.ALT="alt",e.ASK="ask",e.BGP="bgp",e.CONSTRUCT="construct",e.DESCRIBE="describe",e.DISTINCT="distinct",e.EXPRESSION="expression",e.EXTEND="extend",e.FILTER="filter",e.FROM="from",e.GRAPH="graph",e.GROUP="group",e.INV="inv",e.JOIN="join",e.LEFT_JOIN="leftjoin",e.LINK="link",e.MINUS="minus",e.NOP="nop",e.NPS="nps",e.ONE_OR_MORE_PATH="OneOrMorePath",e.ORDER_BY="orderby",e.PATH="path",e.PATTERN="pattern",e.PROJECT="project",e.REDUCED="reduced",e.SEQ="seq",e.SERVICE="service",e.SLICE="slice",e.UNION="union",e.VALUES="values",e.ZERO_OR_MORE_PATH="ZeroOrMorePath",e.ZERO_OR_ONE_PATH="ZeroOrOnePath",e.COMPOSITE_UPDATE="compositeupdate",e.DELETE_INSERT="deleteinsert",e.LOAD="load",e.CLEAR="clear",e.CREATE="create",e.DROP="drop",e.ADD="add",e.MOVE="move",e.COPY="copy"}(t.types||(t.types={})),function(e){e.AGGREGATE="aggregate",e.EXISTENCE="existence",e.NAMED="named",e.OPERATOR="operator",e.TERM="term",e.WILDCARD="wildcard"}(t.expressionTypes||(t.expressionTypes={}))}(em)),em}var e1={},tm={},fO;function jF(){if(fO)return tm;fO=1;let t=class{constructor(){return e||this}equals(s){return s&&this.termType===s.termType}};Object.defineProperty(t.prototype,"value",{enumerable:!0,value:"*"}),Object.defineProperty(t.prototype,"termType",{enumerable:!0,value:"Wildcard"});var e=new t;return tm.Wildcard=t,tm}var rm,hO;function RV(){if(hO)return rm;hO=1;var t=function(){var e=function(He,Be,Ge,Ze){for(Ge=Ge||{},Ze=He.length;Ze--;Ge[He[Ze]]=Be);return Ge},u=[6,12,13,15,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],s=[2,247],n=[100,110,113,115,116,123,126,131,329,330,331,332,333],r=[2,409],a=[1,18],o=[1,27],l=[13,16,45,197,224,229,308],c=[28,29,53],d=[28,53],h=[1,42],f=[1,45],p=[1,41],y=[1,44],b=[123,126],m=[1,67],g=[39,45,87],v=[13,16,45,197,224,308],_=[1,87],w=[2,281],S=[1,86],A=[13,16,45,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],D=[6,28,29,53,63,70,73,81,83,85],L=[6,13,16,28,29,53,63,70,73,81,83,85,87,308],E=[6,13,16,28,29,45,53,63,70,73,81,82,83,85,87,89,197,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314],O=[6,13,16,28,29,31,39,45,47,48,53,63,70,73,81,82,83,85,87,89,109,112,121,123,126,128,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,337,338,340,341,342,343,344,345,346],P=[13,16,308],j=[112,132,327,334],U=[13,16,112,132,308],M=[1,111],q=[1,117],Q=[112,132,327,328,334],Z=[13,16,112,132,308,328],K=[28,29,45,53,87],fe=[1,138],X=[1,151],he=[1,128],xe=[1,127],ie=[1,129],ae=[1,140],Oe=[1,141],Ne=[1,142],ge=[1,143],de=[1,144],oe=[1,145],$=[1,147],N=[1,148],R=[2,457],T=[1,158],x=[1,159],B=[1,160],k=[1,152],V=[1,153],J=[1,156],z=[1,171],Y=[1,172],te=[1,173],ce=[1,174],Ae=[1,175],Ie=[1,176],Ee=[1,167],qe=[1,168],G=[1,169],F=[1,170],H=[1,157],re=[1,166],be=[1,161],Re=[1,162],Ce=[1,163],Qe=[1,164],ke=[1,165],me=[6,13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],Se=[1,195],W=[6,31,73,81,83,85],we=[2,285],Te=[1,199],Le=[1,201],$e=[6,31,70,73,81,83,85],We=[2,283],tt=[1,207],lt=[1,218],ut=[1,223],le=[1,219],C=[1,225],ee=[1,226],pe=[1,224],De=[6,63,70,73,81,83,85],Ue=[1,236],Fe=[2,334],Ye=[1,243],Ve=[1,241],Je=[6,193],nt=[2,349],yt=[2,339],ft=[28,128],et=[47,48,193,272],Ir=[47,48,193,242,272],Ke=[47,48,193,242,246,272],ye=[47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,341,342,343,344,345,346],Pe=[39,47,48,193,242,246,250,263,265,272,290,297,298,299,300,301,302,338,341,342,343,344,345,346],Me=[1,271],it=[1,270],at=[6,13,16,29,31,39,45,47,48,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],Tt=[1,281],Vt=[1,280],tr=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],di=[45,89],yn=[13,16,29,31,39,45,47,48,82,85,87,89,112,159,160,161,163,164,174,193,197,224,229,231,232,242,246,250,263,265,272,290,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346],or=[13,16,31,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Mn=[31,89],Hr=[48,87],Hn=[6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338],Pr=[6,13,16,39,45,48,82,87,89,231,263,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337,338,340],fi=[1,313],Mr=[6,85],Ni=[6,31,81,83,85],Zi=[2,361],bn=[2,353],Xr=[1,343],os=[31,112,335],Zn=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],ue=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335],ve=[6,109,193],je=[31,112],Xe=[13,16,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],st=[1,390],ht=[1,391],St=[13,16,87,197,308,314],Ht=[13,16,39,45,82,87,224,263,265,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312,346,347,348,349,350,351],Xt=[1,417],lr=[1,418],vr=[13,16,48,197,229,308],zt=[6,31,85],Fn=[6,13,16,31,45,73,81,83,85,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],ei=[6,13,16,29,31,45,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,231,268,269,270,271,273,274,276,277,279,280,283,285,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,346,347,348,349,350,351],Fr=[29,31,85,112,159,160,161,163,164],gn=[1,443],$n=[1,444],Qn=[1,449],ti=[31,112,193,232,318,335],ea=[13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],no=[13,16,31,45,48,82,87,89,112,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],Kt=[13,16,29,31,45,48,82,85,87,89,112,159,160,161,163,164,193,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],zr=[13,16,31,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],ri=[31,45],Aa=[1,507],Iy=[1,508],sA=[6,13,16,29,31,39,45,47,48,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,336,338,341,342,343,344,345,346,347,348,349,350,351],Py=[29,31,85,112,159,160,161,163,164,335],us=[6,13,16,31,45,70,73,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],oA=[13,16,31,45,48,82,87,89,112,193,197,231,232,272,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,317,318,335],uA=[2,352],tg=[13,16,197,308,314],cA=[1,565],io=[6,13,16,31,45,76,78,81,83,85,87,268,269,270,271,273,274,276,277,279,280,283,285,308,346,347,348,349,350,351],lA=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],ta=[13,16,29,31,45,82,85,87,89,112,159,160,161,163,164,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335],dA=[13,16,87,308],ra=[2,364],ao=[29,31,85,112,159,160,161,163,164,193,232,318,335],Dy=[31,112,193,232,272,318,335],na=[2,359],fA=[13,16,48,82,174,294,295,296,297,298,299,300,301,302,303,304,305,306,308,312],Ny=[29,31,85,112,159,160,161,163,164,193,232,272,318,335],hA=[13,16,31,45,82,87,89,112,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],pA=[2,347],rg={trace:function(){},yy:{},symbols_:{error:2,QueryOrUpdate:3,Prologue:4,QueryOrUpdate_group0:5,EOF:6,Query:7,Qry:8,Query_option0:9,Prologue_repetition0:10,BaseDecl:11,BASE:12,IRIREF:13,PrefixDecl:14,PREFIX:15,PNAME_NS:16,SelectClauseWildcard:17,Qry_repetition0:18,WhereClause:19,SolutionModifierNoGroup:20,SelectClauseVars:21,Qry_repetition1:22,SolutionModifier:23,CONSTRUCT:24,ConstructTemplate:25,Qry_repetition2:26,Qry_repetition3:27,WHERE:28,"{":29,Qry_option0:30,"}":31,DESCRIBE:32,Qry_group0:33,Qry_repetition4:34,Qry_option1:35,ASK:36,Qry_repetition5:37,SelectClauseBase:38,"*":39,SelectClauseVars_repetition_plus0:40,SELECT:41,SelectClauseBase_option0:42,SelectClauseItem:43,Var:44,"(":45,Expression:46,AS:47,")":48,SubSelect:49,SubSelect_option0:50,SubSelect_option1:51,DatasetClause:52,FROM:53,DatasetClause_option0:54,iri:55,WhereClause_option0:56,GroupGraphPattern:57,SolutionModifier_option0:58,SolutionModifierNoGroup_option0:59,SolutionModifierNoGroup_option1:60,SolutionModifierNoGroup_option2:61,GroupClause:62,GROUP:63,BY:64,GroupClause_repetition_plus0:65,GroupCondition:66,BuiltInCall:67,FunctionCall:68,HavingClause:69,HAVING:70,HavingClause_repetition_plus0:71,OrderClause:72,ORDER:73,OrderClause_repetition_plus0:74,OrderCondition:75,ASC:76,BrackettedExpression:77,DESC:78,Constraint:79,LimitOffsetClauses:80,LIMIT:81,INTEGER:82,OFFSET:83,ValuesClause:84,VALUES:85,InlineData:86,VAR:87,InlineData_repetition0:88,NIL:89,InlineData_repetition1:90,InlineData_repetition_plus2:91,InlineData_repetition3:92,DataBlock:93,DataBlockValueList:94,DataBlockValueList_repetition_plus0:95,Update:96,Update_repetition0:97,Update1:98,Update_option0:99,LOAD:100,Update1_option0:101,Update1_option1:102,Update1_group0:103,Update1_option2:104,GraphRefAll:105,Update1_group1:106,Update1_option3:107,GraphOrDefault:108,TO:109,CREATE:110,Update1_option4:111,GRAPH:112,INSERTDATA:113,QuadPattern:114,DELETEDATA:115,DELETEWHERE:116,Update1_option5:117,InsertDeleteClause:118,Update1_repetition0:119,IntoGraphClause:120,INTO:121,GraphRef:122,DELETE:123,InsertDeleteClause_option0:124,InsertClause:125,INSERT:126,UsingClause:127,USING:128,UsingClause_option0:129,WithClause:130,WITH:131,DEFAULT:132,GraphOrDefault_option0:133,GraphRefAll_group0:134,Quads:135,Quads_option0:136,Quads_repetition0:137,QuadsNotTriples:138,VarOrIri:139,QuadsNotTriples_option0:140,QuadsNotTriples_option1:141,QuadsNotTriples_option2:142,TriplesTemplate:143,TriplesTemplate_repetition0:144,TriplesSameSubject:145,TriplesTemplate_option0:146,GroupGraphPatternSub:147,GroupGraphPatternSub_option0:148,GroupGraphPatternSub_repetition0:149,GroupGraphPatternSubTail:150,GraphPatternNotTriples:151,GroupGraphPatternSubTail_option0:152,GroupGraphPatternSubTail_option1:153,TriplesBlock:154,TriplesBlock_repetition0:155,TriplesSameSubjectPath:156,TriplesBlock_option0:157,GroupOrUnionGraphPattern:158,OPTIONAL:159,MINUS:160,SERVICE:161,GraphPatternNotTriples_option0:162,FILTER:163,BIND:164,InlineDataOneVar:165,InlineDataFull:166,InlineDataOneVar_repetition0:167,InlineDataFull_repetition0:168,InlineDataFull_repetition_plus1:169,InlineDataFull_repetition2:170,DataBlockValue:171,Literal:172,QuotedTriple:173,UNDEF:174,GroupOrUnionGraphPattern_repetition0:175,ArgList:176,ArgList_option0:177,ArgList_repetition0:178,ExpressionList:179,ExpressionList_repetition0:180,ConstructTemplate_option0:181,ConstructTriples:182,ConstructTriples_repetition0:183,ConstructTriples_option0:184,VarOrTermOrQuotedTP:185,PropertyListNotEmpty:186,TriplesNode:187,PropertyList:188,PropertyList_option0:189,VerbObjectList:190,PropertyListNotEmpty_repetition0:191,SemiOptionalVerbObjectList:192,";":193,SemiOptionalVerbObjectList_option0:194,Verb:195,ObjectList:196,a:197,ObjectList_repetition0:198,Object:199,GraphNode:200,Object_option0:201,PropertyListPathNotEmpty:202,TriplesNodePath:203,TriplesSameSubjectPath_option0:204,O:205,PropertyListPathNotEmpty_repetition0:206,PropertyListPathNotEmptyTail:207,O_group0:208,ObjectListPath:209,ObjectListPath_repetition0:210,ObjectPath:211,GraphNodePath:212,ObjectPath_option0:213,Path:214,Path_repetition0:215,PathSequence:216,PathSequence_repetition0:217,PathEltOrInverse:218,PathElt:219,PathPrimary:220,PathElt_option0:221,PathEltOrInverse_option0:222,IriOrA:223,"!":224,PathNegatedPropertySet:225,PathOneInPropertySet:226,PathNegatedPropertySet_repetition0:227,PathNegatedPropertySet_option0:228,"^":229,TriplesNode_repetition_plus0:230,"[":231,"]":232,TriplesNodePath_repetition_plus0:233,VarOrTermOrQuotedTPExpr:234,VarOrTerm:235,GraphTerm:236,BlankNode:237,ConditionalOrExpression:238,ConditionalAndExpression:239,ConditionalOrExpression_repetition0:240,ConditionalOrExpressionTail:241,"||":242,RelationalExpression:243,ConditionalAndExpression_repetition0:244,ConditionalAndExpressionTail:245,"&&":246,NumericExpression:247,RelationalExpression_group0:248,RelationalExpression_option0:249,IN:250,MultiplicativeExpression:251,NumericExpression_repetition0:252,AdditiveExpressionTail:253,AdditiveExpressionTail_group0:254,NumericLiteralPositive:255,AdditiveExpressionTail_repetition0:256,NumericLiteralNegative:257,AdditiveExpressionTail_repetition1:258,UnaryExpression:259,MultiplicativeExpression_repetition0:260,MultiplicativeExpressionTail:261,MultiplicativeExpressionTail_group0:262,"+":263,PrimaryExpression:264,"-":265,ExprQuotedTP:266,Aggregate:267,FUNC_ARITY0:268,FUNC_ARITY1:269,FUNC_ARITY1_SPARQL_STAR:270,FUNC_ARITY2:271,",":272,FUNC_ARITY3:273,FUNC_ARITY3_SPARQL_STAR:274,BuiltInCall_group0:275,BOUND:276,BNODE:277,BuiltInCall_option0:278,EXISTS:279,COUNT:280,Aggregate_option0:281,Aggregate_group0:282,FUNC_AGGREGATE:283,Aggregate_option1:284,GROUP_CONCAT:285,Aggregate_option2:286,Aggregate_option3:287,GroupConcatSeparator:288,SEPARATOR:289,"=":290,String:291,LANGTAG:292,"^^":293,DECIMAL:294,DOUBLE:295,BOOLEAN:296,INTEGER_POSITIVE:297,DECIMAL_POSITIVE:298,DOUBLE_POSITIVE:299,INTEGER_NEGATIVE:300,DECIMAL_NEGATIVE:301,DOUBLE_NEGATIVE:302,STRING_LITERAL1:303,STRING_LITERAL2:304,STRING_LITERAL_LONG1:305,STRING_LITERAL_LONG2:306,PrefixedName:307,PNAME_LN:308,BLANK_NODE_LABEL:309,ANON:310,QuotedTP:311,"<<":312,qtSubjectOrObject:313,">>":314,DataValueTerm:315,AnnotationPattern:316,"{|":317,"|}":318,AnnotationPatternPath:319,ExprVarOrTerm:320,QueryOrUpdate_group0_option0:321,Prologue_repetition0_group0:322,Qry_group0_repetition_plus0:323,SelectClauseBase_option0_group0:324,DISTINCT:325,REDUCED:326,NAMED:327,SILENT:328,CLEAR:329,DROP:330,ADD:331,MOVE:332,COPY:333,ALL:334,".":335,UNION:336,"|":337,"/":338,PathElt_option0_group0:339,"?":340,"!=":341,"<":342,">":343,"<=":344,">=":345,NOT:346,CONCAT:347,COALESCE:348,SUBSTR:349,REGEX:350,REPLACE:351,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",12:"BASE",13:"IRIREF",15:"PREFIX",16:"PNAME_NS",24:"CONSTRUCT",28:"WHERE",29:"{",31:"}",32:"DESCRIBE",36:"ASK",39:"*",41:"SELECT",45:"(",47:"AS",48:")",53:"FROM",63:"GROUP",64:"BY",70:"HAVING",73:"ORDER",76:"ASC",78:"DESC",81:"LIMIT",82:"INTEGER",83:"OFFSET",85:"VALUES",87:"VAR",89:"NIL",100:"LOAD",109:"TO",110:"CREATE",112:"GRAPH",113:"INSERTDATA",115:"DELETEDATA",116:"DELETEWHERE",121:"INTO",123:"DELETE",126:"INSERT",128:"USING",131:"WITH",132:"DEFAULT",159:"OPTIONAL",160:"MINUS",161:"SERVICE",163:"FILTER",164:"BIND",174:"UNDEF",193:";",197:"a",224:"!",229:"^",231:"[",232:"]",242:"||",246:"&&",250:"IN",263:"+",265:"-",268:"FUNC_ARITY0",269:"FUNC_ARITY1",270:"FUNC_ARITY1_SPARQL_STAR",271:"FUNC_ARITY2",272:",",273:"FUNC_ARITY3",274:"FUNC_ARITY3_SPARQL_STAR",276:"BOUND",277:"BNODE",279:"EXISTS",280:"COUNT",283:"FUNC_AGGREGATE",285:"GROUP_CONCAT",289:"SEPARATOR",290:"=",292:"LANGTAG",293:"^^",294:"DECIMAL",295:"DOUBLE",296:"BOOLEAN",297:"INTEGER_POSITIVE",298:"DECIMAL_POSITIVE",299:"DOUBLE_POSITIVE",300:"INTEGER_NEGATIVE",301:"DECIMAL_NEGATIVE",302:"DOUBLE_NEGATIVE",303:"STRING_LITERAL1",304:"STRING_LITERAL2",305:"STRING_LITERAL_LONG1",306:"STRING_LITERAL_LONG2",308:"PNAME_LN",309:"BLANK_NODE_LABEL",310:"ANON",312:"<<",314:">>",317:"{|",318:"|}",325:"DISTINCT",326:"REDUCED",327:"NAMED",328:"SILENT",329:"CLEAR",330:"DROP",331:"ADD",332:"MOVE",333:"COPY",334:"ALL",335:".",336:"UNION",337:"|",338:"/",340:"?",341:"!=",342:"<",343:">",344:"<=",345:">=",346:"NOT",347:"CONCAT",348:"COALESCE",349:"SUBSTR",350:"REGEX",351:"REPLACE"},productions_:[0,[3,3],[7,2],[4,1],[11,2],[14,3],[8,4],[8,4],[8,5],[8,7],[8,5],[8,4],[17,2],[21,2],[38,2],[43,1],[43,5],[49,4],[49,4],[52,3],[19,2],[23,2],[20,3],[62,3],[66,1],[66,1],[66,3],[66,5],[66,1],[69,2],[72,3],[75,2],[75,2],[75,1],[75,1],[80,2],[80,2],[80,4],[80,4],[84,2],[86,4],[86,4],[86,6],[86,2],[94,3],[96,3],[98,4],[98,3],[98,5],[98,4],[98,2],[98,2],[98,2],[98,5],[120,2],[118,3],[118,1],[125,2],[127,3],[130,2],[108,1],[108,2],[122,2],[105,1],[105,1],[114,3],[135,2],[138,7],[143,3],[57,3],[57,3],[147,2],[150,3],[154,3],[151,1],[151,2],[151,2],[151,3],[151,4],[151,2],[151,6],[151,1],[93,1],[93,1],[165,4],[166,4],[166,6],[171,1],[171,1],[171,1],[171,1],[158,2],[79,1],[79,1],[79,1],[68,2],[176,1],[176,5],[179,1],[179,4],[25,3],[182,3],[145,2],[145,2],[188,1],[186,2],[192,2],[190,2],[195,1],[195,1],[196,2],[199,2],[156,2],[156,2],[202,2],[207,1],[207,2],[205,2],[209,2],[211,2],[214,2],[216,2],[219,2],[218,2],[220,1],[220,2],[220,3],[225,1],[225,1],[225,4],[226,1],[226,2],[187,3],[187,3],[203,3],[203,3],[200,1],[200,1],[212,1],[212,1],[234,1],[235,1],[235,1],[139,1],[139,1],[44,1],[236,1],[236,1],[236,1],[236,1],[46,1],[238,2],[241,2],[239,2],[245,2],[243,1],[243,3],[243,4],[247,2],[253,2],[253,2],[253,2],[251,2],[261,2],[259,2],[259,2],[259,2],[259,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[264,1],[77,3],[67,1],[67,2],[67,4],[67,4],[67,6],[67,8],[67,8],[67,2],[67,4],[67,2],[67,4],[67,3],[267,5],[267,5],[267,6],[288,4],[172,1],[172,2],[172,3],[172,1],[172,1],[172,1],[172,1],[172,1],[172,1],[255,1],[255,1],[255,1],[257,1],[257,1],[257,1],[291,1],[291,1],[291,1],[291,1],[55,1],[55,1],[307,1],[307,1],[237,1],[237,1],[311,5],[173,5],[313,1],[313,1],[313,1],[313,1],[313,1],[315,1],[315,1],[315,1],[185,1],[185,1],[185,1],[316,3],[319,3],[266,5],[320,1],[320,1],[320,1],[223,1],[223,1],[321,0],[321,1],[5,1],[5,1],[5,1],[9,0],[9,1],[322,1],[322,1],[10,0],[10,2],[18,0],[18,2],[22,0],[22,2],[26,0],[26,2],[27,0],[27,2],[30,0],[30,1],[323,1],[323,2],[33,1],[33,1],[34,0],[34,2],[35,0],[35,1],[37,0],[37,2],[40,1],[40,2],[324,1],[324,1],[42,0],[42,1],[50,0],[50,1],[51,0],[51,1],[54,0],[54,1],[56,0],[56,1],[58,0],[58,1],[59,0],[59,1],[60,0],[60,1],[61,0],[61,1],[65,1],[65,2],[71,1],[71,2],[74,1],[74,2],[88,0],[88,2],[90,0],[90,2],[91,1],[91,2],[92,0],[92,2],[95,1],[95,2],[97,0],[97,4],[99,0],[99,2],[101,0],[101,1],[102,0],[102,1],[103,1],[103,1],[104,0],[104,1],[106,1],[106,1],[106,1],[107,0],[107,1],[111,0],[111,1],[117,0],[117,1],[119,0],[119,2],[124,0],[124,1],[129,0],[129,1],[133,0],[133,1],[134,1],[134,1],[134,1],[136,0],[136,1],[137,0],[137,2],[140,0],[140,1],[141,0],[141,1],[142,0],[142,1],[144,0],[144,3],[146,0],[146,1],[148,0],[148,1],[149,0],[149,2],[152,0],[152,1],[153,0],[153,1],[155,0],[155,3],[157,0],[157,1],[162,0],[162,1],[167,0],[167,2],[168,0],[168,2],[169,1],[169,2],[170,0],[170,2],[175,0],[175,3],[177,0],[177,1],[178,0],[178,3],[180,0],[180,3],[181,0],[181,1],[183,0],[183,3],[184,0],[184,1],[189,0],[189,1],[191,0],[191,2],[194,0],[194,1],[198,0],[198,3],[201,0],[201,1],[204,0],[204,1],[206,0],[206,2],[208,1],[208,1],[210,0],[210,3],[213,0],[213,1],[215,0],[215,3],[217,0],[217,3],[339,1],[339,1],[339,1],[221,0],[221,1],[222,0],[222,1],[227,0],[227,3],[228,0],[228,1],[230,1],[230,2],[233,1],[233,2],[240,0],[240,2],[244,0],[244,2],[248,1],[248,1],[248,1],[248,1],[248,1],[248,1],[249,0],[249,1],[252,0],[252,2],[254,1],[254,1],[256,0],[256,2],[258,0],[258,2],[260,0],[260,2],[262,1],[262,1],[275,1],[275,1],[275,1],[275,1],[275,1],[278,0],[278,1],[281,0],[281,1],[282,1],[282,1],[284,0],[284,1],[286,0],[286,1],[287,0],[287,1]],performAction:function(Be,Ge,Ze,pt,mt,ne,Vn){var se=ne.length-1;switch(mt){case 1:if(ne[se-1]=ne[se-1]||{},Ct.base&&(ne[se-1].base=Ct.base),Ct.base="",ne[se-1].prefixes=Ct.prefixes,Ct.prefixes=null,Ct.pathOnly){if(ne[se-1].type==="path"||"termType"in ne[se-1])return ne[se-1];throw new Error("Received full SPARQL query in path only mode")}else if(ne[se-1].type==="path"||"termType"in ne[se-1])throw new Error("Received only path in full SPARQL mode");if(ne[se-1].type==="update"){const Dt={};for(const Jt of ne[se-1].updates)if(Jt.updateType==="insert"){const It={};for(const Yr of Jt.insert)if(Yr.type==="bgp"||Yr.type==="graph")for(const Zr of Yr.triples)Zr.subject.termType==="BlankNode"&&(It[Zr.subject.value]=!0),Zr.predicate.termType==="BlankNode"&&(It[Zr.predicate.value]=!0),Zr.object.termType==="BlankNode"&&(It[Zr.object.value]=!0);for(const Yr of Object.keys(It)){if(Dt[Yr])throw new Error("Detected reuse blank node across different INSERT DATA clauses");Dt[Yr]=!0}}}return ne[se-1];case 2:this.$={...ne[se-1],...ne[se],type:"query"};break;case 4:Ct.base=lu(ne[se]);break;case 5:Ct.prefixes||(Ct.prefixes={}),ne[se-1]=ne[se-1].substr(0,ne[se-1].length-1),ne[se]=lu(ne[se]),Ct.prefixes[ne[se-1]]=ne[se];break;case 6:this.$={...ne[se-3],...ds(ne[se-2]),...ne[se-1],...ne[se]};break;case 7:if(!Ct.skipValidation&&(lg(ne[se-3].variables.map(Jt=>cg(Jt.expression))).some(Jt=>Jt.aggregation==="count"&&!(Jt.expression instanceof Cy))||ne[se].group)){for(const Jt of ne[se-3].variables)if(Jt.termType==="Variable"){if(!ne[se].group||!ne[se].group.map(It=>lo(It)).includes(lo(Jt)))throw Error("Projection of ungrouped variable (?"+lo(Jt)+")")}else if(cg(Jt.expression).length===0){const It=MB(Jt.expression);for(const Yr of It)if(!ne[se].group||!ne[se].group.map||!ne[se].group.map(Zr=>lo(Zr)).includes(lo(Yr)))throw Error("Use of ungrouped variable in projection of operation (?"+lo(Yr)+")")}}const fo=ne[se-1].where.filter(Dt=>Dt.type==="query");if(fo.length>0){const Dt=ne[se-3].variables.filter(It=>It.variable&&It.variable.value).map(It=>It.variable.value),Jt=lg(fo.map(It=>It.variables)).map(It=>It.value||It.variable.value);for(const It of Dt)if(Jt.indexOf(It)>=0)throw Error("Target id of 'AS' (?"+It+") already used in subquery")}this.$=Dr(ne[se-3],ds(ne[se-2]),ne[se-1],ne[se]);break;case 8:this.$=Dr({queryType:"CONSTRUCT",template:ne[se-3]},ds(ne[se-2]),ne[se-1],ne[se]);break;case 9:this.$=Dr({queryType:"CONSTRUCT",template:ne[se-2]=ne[se-2]?ne[se-2].triples:[]},ds(ne[se-5]),{where:[{type:"bgp",triples:so([],ne[se-2])}]},ne[se]);break;case 10:this.$=Dr({queryType:"DESCRIBE",variables:ne[se-3]==="*"?[new Cy]:ne[se-3]},ds(ne[se-2]),ne[se-1],ne[se]);break;case 11:this.$=Dr({queryType:"ASK"},ds(ne[se-2]),ne[se-1],ne[se]);break;case 12:this.$=Dr(ne[se-1],{variables:[new Cy]});break;case 13:const pg=ne[se].map(Dt=>Dt.value||Dt.variable.value),By=FB(pg);if(By.length>0)throw Error("Two or more of the resulting columns have the same name (?"+By[0]+")");this.$=Dr(ne[se-1],{variables:ne[se]});break;case 14:this.$=Dr({queryType:"SELECT"},ne[se]&&(ne[se-1]=mn(ne[se]),ne[se]={},ne[se][ne[se-1]]=!0,ne[se]));break;case 16:case 27:this.$=oo(ne[se-3],{variable:ne[se-1]});break;case 17:case 18:this.$=Dr(ne[se-3],ne[se-2],ne[se-1],ne[se],{type:"query"});break;case 19:case 58:this.$={iri:ne[se],named:!!ne[se-1]};break;case 20:this.$={where:ne[se].patterns};break;case 21:this.$=Dr(ne[se-1],ne[se]);break;case 22:this.$=Dr(ne[se-2],ne[se-1],ne[se]);break;case 23:this.$={group:ne[se]};break;case 24:case 25:case 28:case 31:case 33:case 34:this.$=oo(ne[se]);break;case 26:this.$=oo(ne[se-1]);break;case 29:this.$={having:ne[se]};break;case 30:this.$={order:ne[se]};break;case 32:this.$=oo(ne[se],{descending:!0});break;case 35:this.$={limit:co(ne[se])};break;case 36:this.$={offset:co(ne[se])};break;case 37:this.$={limit:co(ne[se-2]),offset:co(ne[se])};break;case 38:this.$={limit:co(ne[se]),offset:co(ne[se-2])};break;case 39:case 43:this.$={type:"values",values:ne[se]};break;case 40:case 84:this.$=ne[se-1].map(Dt=>({[ne[se-3]]:Dt}));break;case 41:case 85:this.$=ne[se-1].map(()=>({}));break;case 42:case 86:var Ea=ne[se-4].length;ne[se-4]=ne[se-4].map(ng),this.$=ne[se-1].map(function(Dt){if(Dt.length!==Ea)throw Error("Inconsistent VALUES length");for(var Jt={},It=0;ItJt.type==="bind")){const Jt=ne[se-1].indexOf(Dt),It=new Set;for(const Yr of ne[se-1].slice(0,Jt))(Yr.type==="group"||Yr.type==="bgp")&&TA(Yr).forEach(Zr=>It.add(Zr));if(It.has(Dt.variable.value))throw Error("Variable used to bind is already bound (?"+Dt.variable.value+")")}this.$={type:"group",patterns:ne[se-1]};break;case 71:this.$=ne[se-1]?Ci([ne[se-1]],ne[se]):Ci(ne[se]);break;case 72:this.$=ne[se]?[ne[se-2],ne[se]]:ne[se-2];break;case 75:this.$=Dr(ne[se],{type:"optional"});break;case 76:this.$=Dr(ne[se],{type:"minus"});break;case 77:this.$=Dr(ne[se],{type:"graph",name:ne[se-1]});break;case 78:this.$=Dr(ne[se],{type:"service",name:ne[se-1],silent:!!ne[se-2]});break;case 79:this.$={type:"filter",expression:ne[se]};break;case 80:this.$={type:"bind",variable:ne[se-1],expression:ne[se-3]};break;case 89:this.$=fu(ne[se]);break;case 90:this.$=void 0;break;case 91:this.$=ne[se-1].length?{type:"union",patterns:Ci(ne[se-1].map(ag),[ag(ne[se])])}:ne[se];break;case 95:this.$={...ne[se],function:ne[se-1]};break;case 96:this.$={type:"functionCall",args:[]};break;case 97:this.$={type:"functionCall",args:ls(ne[se-2],ne[se-1]),distinct:!!ne[se-3]};break;case 98:case 115:case 128:case 247:case 249:case 251:case 253:case 255:case 263:case 267:case 297:case 299:case 303:case 307:case 328:case 341:case 349:case 355:case 361:case 367:case 369:case 373:case 375:case 379:case 381:case 385:case 391:case 395:case 401:case 405:case 409:case 411:case 420:case 428:case 430:case 440:case 444:case 446:case 448:this.$=[];break;case 99:this.$=ls(ne[se-2],ne[se-1]);break;case 101:this.$=Ci(ne[se-2],[ne[se-1]]);break;case 102:case 112:this.$=fg(ne[se].map(Dt=>Dr(ia(ne[se-1]),Dt)));break;case 103:this.$=fg(so(ne[se].map(Dt=>Dr(ia(ne[se-1].entity),Dt)),ne[se-1].triples));break;case 105:this.$=Ci([ne[se-1]],ne[se]);break;case 106:this.$=Ci(ne[se]);break;case 107:this.$=ug(ne[se-1],ne[se]);break;case 109:case 237:this.$=Ct.factory.namedNode(OB);break;case 110:case 118:this.$=ls(ne[se-1],ne[se]);break;case 111:this.$=ne[se]?{annotation:ne[se],object:ne[se-1]}:ne[se-1];break;case 113:this.$=ne[se]?fg(so(ne[se].map(Dt=>Dr(ia(ne[se-1].entity),Dt)),ne[se-1].triples)):ne[se-1].triples;break;case 114:this.$=ug(...ne[se-1],ne[se]);break;case 116:this.$=ug(...ne[se]);break;case 117:case 159:case 163:this.$=[ne[se-1],ne[se]];break;case 119:this.$=ne[se]?{object:ne[se-1],annotation:ne[se]}:ne[se-1];break;case 120:this.$=ne[se-1].length?uo("|",ls(ne[se-1],ne[se])):ne[se];break;case 121:this.$=ne[se-1].length?uo("/",ls(ne[se-1],ne[se])):ne[se];break;case 122:this.$=ne[se]?uo(ne[se],[ne[se-1]]):ne[se-1];break;case 123:this.$=ne[se-1]?uo(ne[se-1],[ne[se]]):ne[se];break;case 125:case 131:this.$=uo(ne[se-1],[ne[se]]);break;case 129:this.$=uo("|",ls(ne[se-2],ne[se-1]));break;case 132:case 134:this.$=jB(ne[se-1]);break;case 133:case 135:this.$=LB(ne[se-1]);break;case 140:this.$={entity:ne[se],triples:[]};break;case 145:this.$=ng(ne[se]);break;case 149:this.$=Ct.factory.namedNode(yA);break;case 151:case 153:case 158:case 162:this.$=ig(ne[se-1],ne[se]);break;case 152:this.$=["||",ne[se]];break;case 154:this.$=["&&",ne[se]];break;case 156:this.$=Kr(ne[se-1],[ne[se-2],ne[se]]);break;case 157:this.$=Kr(ne[se-2]?"notin":"in",[ne[se-3],ne[se]]);break;case 160:this.$=["+",ig(ne[se-1],ne[se])];break;case 161:var Fy=ji(ne[se-1].value.replace("-",""),ne[se-1].datatype);this.$=["-",ig(Fy,ne[se])];break;case 164:this.$=Kr("UPLUS",[ne[se]]);break;case 165:this.$=Kr(ne[se-1],[ne[se]]);break;case 166:this.$=Kr("UMINUS",[ne[se]]);break;case 177:this.$=Kr(mn(ne[se-1]));break;case 178:this.$=Kr(mn(ne[se-3]),[ne[se-1]]);break;case 179:this.$=fu(Kr(mn(ne[se-3]),[ne[se-1]]));break;case 180:this.$=Kr(mn(ne[se-5]),[ne[se-3],ne[se-1]]);break;case 181:this.$=Kr(mn(ne[se-7]),[ne[se-5],ne[se-3],ne[se-1]]);break;case 182:this.$=fu(Kr(mn(ne[se-7]),[ne[se-5],ne[se-3],ne[se-1]]));break;case 183:this.$=Kr(mn(ne[se-1]),ne[se]);break;case 184:this.$=Kr("bound",[ng(ne[se-1])]);break;case 185:this.$=Kr(ne[se-1],[]);break;case 186:this.$=Kr(ne[se-3],[ne[se-1]]);break;case 187:this.$=Kr(ne[se-2]?"notexists":"exists",[ag(ne[se])]);break;case 188:case 189:this.$=oo(ne[se-1],{type:"aggregate",aggregation:mn(ne[se-4]),distinct:!!ne[se-2]});break;case 190:this.$=oo(ne[se-2],{type:"aggregate",aggregation:mn(ne[se-5]),distinct:!!ne[se-3],separator:typeof ne[se-1]=="string"?ne[se-1]:" "});break;case 192:this.$=ji(ne[se]);break;case 193:this.$=PB(ne[se-1],mn(ne[se].substr(1)));break;case 194:this.$=ji(ne[se-2],ne[se]);break;case 195:case 204:this.$=ji(ne[se],bA);break;case 196:case 205:this.$=ji(ne[se],gA);break;case 197:case 206:this.$=ji(mn(ne[se]),mA);break;case 200:this.$=ji(ne[se].toLowerCase(),IB);break;case 201:this.$=ji(ne[se].substr(1),bA);break;case 202:this.$=ji(ne[se].substr(1),gA);break;case 203:this.$=ji(ne[se].substr(1).toLowerCase(),mA);break;case 207:case 208:this.$=SA(ne[se],1);break;case 209:case 210:this.$=SA(ne[se],3);break;case 211:this.$=Ct.factory.namedNode(lu(ne[se]));break;case 213:var qy=ne[se].indexOf(":"),Nr=ne[se].substr(0,qy),Li=Ct.prefixes[Nr];if(!Li)throw new Error("Unknown prefix: "+Nr);var fs=lu(Li+ne[se].substr(qy+1));this.$=Ct.factory.namedNode(fs);break;case 214:if(ne[se]=ne[se].substr(0,ne[se].length-1),!(ne[se]in Ct.prefixes))throw new Error("Unknown prefix: "+ne[se]);var fs=lu(Ct.prefixes[ne[se]]);this.$=Ct.factory.namedNode(fs);break;case 215:this.$=du(ne[se].replace(/^(_:)/,""));break;case 216:this.$=du();break;case 217:case 218:case 232:this.$=fu(sg(ne[se-3],ne[se-2],ne[se-1]));break;case 230:case 231:this.$=fu(ne[se-1]);break;case 248:case 250:case 252:case 254:case 256:case 260:case 264:case 268:case 270:case 292:case 294:case 296:case 298:case 300:case 302:case 304:case 306:case 329:case 342:case 356:case 368:case 370:case 372:case 374:case 392:case 402:case 425:case 427:case 429:case 431:case 441:case 445:case 447:case 449:ne[se-1].push(ne[se]);break;case 259:case 269:case 291:case 293:case 295:case 301:case 305:case 371:case 424:case 426:this.$=[ne[se]];break;case 308:ne[se-3].push(ne[se-2]);break;case 350:case 362:case 376:case 380:case 382:case 386:case 396:case 406:case 410:case 412:case 421:ne[se-2].push(ne[se-1]);break}},table:[e(u,s,{3:1,4:2,10:3}),{1:[3]},e(n,[2,307],{5:4,7:5,321:6,214:7,8:8,96:9,215:10,17:11,21:12,97:16,38:17,6:[2,238],13:r,16:r,45:r,197:r,224:r,229:r,308:r,24:[1,13],32:[1,14],36:[1,15],41:a}),e([6,13,16,24,32,36,41,45,100,110,113,115,116,123,126,131,197,224,229,308,329,330,331,332,333],[2,3],{322:19,11:20,14:21,12:[1,22],15:[1,23]}),{6:[1,24]},{6:[2,240]},{6:[2,241]},{6:[2,242]},{6:[2,243],9:25,84:26,85:o},{6:[2,239]},e(l,[2,411],{216:28,217:29}),e(c,[2,249],{18:30}),e(c,[2,251],{22:31}),e(d,[2,255],{25:32,27:33,29:[1,34]}),{13:h,16:f,33:35,39:[1,37],44:39,55:40,87:p,139:38,307:43,308:y,323:36},e(c,[2,267],{37:46}),e(b,[2,326],{98:47,103:49,106:50,117:55,130:61,100:[1,48],110:[1,51],113:[1,52],115:[1,53],116:[1,54],131:[1,62],329:[1,56],330:[1,57],331:[1,58],332:[1,59],333:[1,60]}),{39:[1,63],40:64,43:65,44:66,45:m,87:p},e(g,[2,273],{42:68,324:69,325:[1,70],326:[1,71]}),e(u,[2,248]),e(u,[2,245]),e(u,[2,246]),{13:[1,72]},{16:[1,73]},{1:[2,1]},{6:[2,2]},{6:[2,244]},{45:[1,77],85:[1,78],86:74,87:[1,75],89:[1,76]},e([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312],[2,120],{337:[1,79]}),e(v,[2,418],{218:80,222:81,229:[1,82]}),{19:83,28:_,29:w,52:84,53:S,56:85},{19:88,28:_,29:w,52:89,53:S,56:85},e(c,[2,253],{26:90}),{28:[1,91],52:92,53:S},e(A,[2,385],{181:93,182:94,183:95,31:[2,383]}),e(D,[2,263],{34:96}),e(D,[2,261],{44:39,55:40,307:43,139:97,13:h,16:f,87:p,308:y}),e(D,[2,262]),e(L,[2,259]),e(E,[2,143]),e(E,[2,144]),e([6,13,16,28,29,31,39,45,47,48,53,63,70,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,197,224,229,231,232,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,314,317,318,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,145]),e(O,[2,211]),e(O,[2,212]),e(O,[2,213]),e(O,[2,214]),{19:98,28:_,29:w,52:99,53:S,56:85},{6:[2,309],99:100,193:[1,101]},e(P,[2,311],{101:102,328:[1,103]}),e(j,[2,317],{104:104,328:[1,105]}),e(U,[2,322],{107:106,328:[1,107]}),{111:108,112:[2,324],328:[1,109]},{29:M,114:110},{29:M,114:112},{29:M,114:113},{118:114,123:[1,115],125:116,126:q},e(Q,[2,315]),e(Q,[2,316]),e(Z,[2,319]),e(Z,[2,320]),e(Z,[2,321]),e(b,[2,327]),{13:h,16:f,55:118,307:43,308:y},e(c,[2,12]),e(c,[2,13],{44:66,43:119,45:m,87:p}),e(K,[2,269]),e(K,[2,15]),{13:h,16:f,44:136,45:fe,46:120,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(g,[2,14]),e(g,[2,274]),e(g,[2,271]),e(g,[2,272]),e(u,[2,4]),{13:[1,177]},e(me,[2,39]),{29:[1,178]},{29:[1,179]},{87:[1,181],91:180},{45:[1,187],87:[1,185],89:[1,186],93:182,165:183,166:184},e(l,[2,410]),e([6,13,16,45,48,82,87,89,231,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,337],[2,121],{338:[1,188]}),{13:h,16:f,45:[1,193],55:194,197:Se,219:189,220:190,223:191,224:[1,192],307:43,308:y},e(v,[2,419]),e(W,we,{20:196,59:197,69:198,70:Te}),e(c,[2,250]),{29:Le,57:200},e(P,[2,279],{54:202,327:[1,203]}),{29:[2,282]},e($e,We,{23:204,58:205,62:206,63:tt}),e(c,[2,252]),{19:208,28:_,29:w,52:209,53:S,56:85},{29:[1,210]},e(d,[2,256]),{31:[1,211]},{31:[2,384]},{13:h,16:f,44:215,45:lt,55:220,82:X,87:p,89:ut,145:212,172:221,185:213,187:214,231:le,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(De,[2,265],{56:85,35:227,52:228,19:229,28:_,29:w,53:S}),e(L,[2,260]),e($e,We,{58:205,62:206,23:230,63:tt}),e(c,[2,268]),{6:[2,45]},e(u,s,{10:3,4:231}),{13:h,16:f,55:232,307:43,308:y},e(P,[2,312]),{105:233,112:Ue,122:234,132:[1,237],134:235,327:[1,238],334:[1,239]},e(j,[2,318]),e(P,Fe,{108:240,133:242,112:Ye,132:Ve}),e(U,[2,323]),{112:[1,244]},{112:[2,325]},e(Je,[2,50]),e(A,nt,{135:245,136:246,143:247,144:248,31:yt,112:yt}),e(Je,[2,51]),e(Je,[2,52]),e(ft,[2,328],{119:249}),{29:M,114:250},e(ft,[2,56]),{29:M,114:251},e(b,[2,59]),e(K,[2,270]),{47:[1,252]},e(et,[2,150]),e(Ir,[2,428],{240:253}),e(Ke,[2,430],{244:254}),e(Ke,[2,155],{248:255,249:256,250:[2,438],290:[1,257],341:[1,258],342:[1,259],343:[1,260],344:[1,261],345:[1,262],346:[1,263]}),e(ye,[2,440],{252:264}),e(Pe,[2,448],{260:265}),{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,255:154,257:155,264:266,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,255:154,257:155,264:267,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,255:154,257:155,264:268,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Pe,[2,167]),e(Pe,[2,168]),e(Pe,[2,169]),e(Pe,[2,170],{176:269,45:Me,89:it}),e(Pe,[2,171]),e(Pe,[2,172]),e(Pe,[2,173]),e(Pe,[2,174]),{13:h,16:f,44:136,45:fe,46:272,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(at,[2,176]),{89:[1,273]},{45:[1,274]},{45:[1,275]},{45:[1,276]},{45:[1,277]},{45:[1,278]},{45:Tt,89:Vt,179:279},{45:[1,282]},{45:[1,284],89:[1,283]},{279:[1,285]},e(tr,[2,192],{292:[1,286],293:[1,287]}),e(tr,[2,195]),e(tr,[2,196]),e(tr,[2,197]),e(tr,[2,198]),e(tr,[2,199]),e(tr,[2,200]),{13:h,16:f,44:39,55:40,82:X,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,320:288},{45:[1,292]},{45:[1,293]},{45:[1,294]},e(di,[2,452]),e(di,[2,453]),e(di,[2,454]),e(di,[2,455]),e(di,[2,456]),{279:[2,458]},e(yn,[2,207]),e(yn,[2,208]),e(yn,[2,209]),e(yn,[2,210]),e(tr,[2,201]),e(tr,[2,202]),e(tr,[2,203]),e(tr,[2,204]),e(tr,[2,205]),e(tr,[2,206]),e(u,[2,5]),e(or,[2,297],{88:295}),e(Mn,[2,299],{90:296}),{48:[1,297],87:[1,298]},e(Hr,[2,301]),e(me,[2,43]),e(me,[2,82]),e(me,[2,83]),{29:[1,299]},{29:[1,300]},{87:[1,302],169:301},e(l,[2,412]),e(Hn,[2,123]),e(Hn,[2,416],{221:303,339:304,39:[1,306],263:[1,307],340:[1,305]}),e(Pr,[2,124]),{13:h,16:f,45:[1,311],55:194,89:[1,310],197:Se,223:312,225:308,226:309,229:fi,307:43,308:y},e(l,r,{215:10,214:314}),e(Pr,[2,236]),e(Pr,[2,237]),e(Mr,[2,6]),e(Ni,[2,287],{60:315,72:316,73:[1,317]}),e(W,[2,286]),{13:h,16:f,45:fe,55:323,67:321,68:322,71:318,77:320,79:319,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,307:43,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e([6,31,63,70,73,81,83,85],[2,20]),e(A,Zi,{38:17,49:324,147:325,17:326,21:327,148:328,154:329,155:330,29:bn,31:bn,85:bn,112:bn,159:bn,160:bn,161:bn,163:bn,164:bn,41:a}),{13:h,16:f,55:331,307:43,308:y},e(P,[2,280]),e(Mr,[2,7]),e(W,we,{59:197,69:198,20:332,70:Te}),e($e,[2,284]),{64:[1,333]},e($e,We,{58:205,62:206,23:334,63:tt}),e(c,[2,254]),e(A,nt,{144:248,30:335,143:336,31:[2,257]}),e(c,[2,100]),{31:[2,387],184:337,335:[1,338]},{13:h,16:f,44:39,55:40,87:p,139:342,186:339,190:340,195:341,197:Xr,307:43,308:y},e(os,[2,389],{44:39,55:40,307:43,190:340,195:341,139:342,188:344,189:345,186:346,13:h,16:f,87:p,197:Xr,308:y}),e(Zn,[2,227]),e(Zn,[2,228]),e(Zn,[2,229]),{13:h,16:f,44:215,45:lt,55:220,82:X,87:p,89:ut,172:221,185:351,187:350,200:348,230:347,231:le,234:349,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},{13:h,16:f,44:39,55:40,87:p,139:342,186:352,190:340,195:341,197:Xr,307:43,308:y},e(Zn,[2,146]),e(Zn,[2,147]),e(Zn,[2,148]),e(Zn,[2,149]),{13:h,16:f,44:354,55:355,82:X,87:p,172:357,237:356,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:358,312:pe,313:353},e(ue,[2,215]),e(ue,[2,216]),e($e,We,{58:205,62:206,23:359,63:tt}),e(D,[2,264]),e(De,[2,266]),e(Mr,[2,11]),e(n,[2,308],{6:[2,310]}),e(Je,[2,313],{102:360,120:361,121:[1,362]}),e(Je,[2,47]),e(Je,[2,63]),e(Je,[2,64]),{13:h,16:f,55:363,307:43,308:y},e(Je,[2,336]),e(Je,[2,337]),e(Je,[2,338]),{109:[1,364]},e(ve,[2,60]),{13:h,16:f,55:365,307:43,308:y},e(P,[2,335]),{13:h,16:f,55:366,307:43,308:y},{31:[1,367]},e(je,[2,341],{137:368}),e(je,[2,340]),{13:h,16:f,44:215,45:lt,55:220,82:X,87:p,89:ut,145:369,172:221,185:213,187:214,231:le,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},{28:[1,370],127:371,128:[1,372]},e(ft,[2,330],{124:373,125:374,126:q}),e(ft,[2,57]),{44:375,87:p},e(et,[2,151],{241:376,242:[1,377]}),e(Ir,[2,153],{245:378,246:[1,379]}),{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,247:380,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{250:[1,381]},e(Xe,[2,432]),e(Xe,[2,433]),e(Xe,[2,434]),e(Xe,[2,435]),e(Xe,[2,436]),e(Xe,[2,437]),{250:[2,439]},e([47,48,193,242,246,250,272,290,341,342,343,344,345,346],[2,158],{253:382,254:383,255:384,257:385,263:[1,386],265:[1,387],297:z,298:Y,299:te,300:ce,301:Ae,302:Ie}),e(ye,[2,162],{261:388,262:389,39:st,338:ht}),e(Pe,[2,164]),e(Pe,[2,165]),e(Pe,[2,166]),e(at,[2,95]),e(at,[2,96]),e(Xe,[2,377],{177:392,325:[1,393]}),{48:[1,394]},e(at,[2,177]),{13:h,16:f,44:136,45:fe,46:395,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:396,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:397,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:398,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:399,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(at,[2,183]),e(at,[2,98]),e(Xe,[2,381],{180:400}),{87:[1,401]},e(at,[2,185]),{13:h,16:f,44:136,45:fe,46:402,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{29:Le,57:403},e(tr,[2,193]),{13:h,16:f,55:404,307:43,308:y},{13:h,16:f,44:39,55:40,87:p,139:342,195:405,197:Xr,307:43,308:y},e(St,[2,233]),e(St,[2,234]),e(St,[2,235]),e(Ht,[2,459],{281:406,325:[1,407]}),e(Xe,[2,463],{284:408,325:[1,409]}),e(Xe,[2,465],{286:410,325:[1,411]}),{13:h,16:f,31:[1,412],55:414,82:X,171:413,172:415,173:416,174:Xt,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:lr},{31:[1,419],89:[1,420]},{29:[1,421]},e(Hr,[2,302]),e(or,[2,367],{167:422}),e(Mn,[2,369],{168:423}),{48:[1,424],87:[1,425]},e(Hr,[2,371]),e(Hn,[2,122]),e(Hn,[2,417]),e(Hn,[2,413]),e(Hn,[2,414]),e(Hn,[2,415]),e(Pr,[2,125]),e(Pr,[2,127]),e(Pr,[2,128]),e(vr,[2,420],{227:426}),e(Pr,[2,130]),{13:h,16:f,55:194,197:Se,223:427,307:43,308:y},{48:[1,428]},e(zt,[2,289],{61:429,80:430,81:[1,431],83:[1,432]}),e(Ni,[2,288]),{64:[1,433]},e(W,[2,29],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:434,13:h,16:f,45:fe,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,276:$,277:N,279:R,280:T,283:x,285:B,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke}),e(Fn,[2,293]),e(ei,[2,92]),e(ei,[2,93]),e(ei,[2,94]),{45:Me,89:it,176:269},{31:[1,435]},{31:[1,436]},{19:437,28:_,29:w,56:85},{19:438,28:_,29:w,56:85},e(Fr,[2,355],{149:439}),e(Fr,[2,354]),{13:h,16:f,44:215,45:gn,55:220,82:X,87:p,89:ut,156:440,172:221,185:441,203:442,231:$n,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(D,[2,19]),e(zt,[2,21]),{13:h,16:f,44:450,45:Qn,55:323,65:445,66:446,67:447,68:448,87:p,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,307:43,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Mr,[2,8]),{31:[1,451]},{31:[2,258]},{31:[2,101]},e(A,[2,386],{31:[2,388]}),e(os,[2,102]),e(ti,[2,391],{191:452}),e(A,[2,395],{196:453,198:454}),e(A,[2,108]),e(A,[2,109]),e(os,[2,103]),e(os,[2,104]),e(os,[2,390]),{13:h,16:f,44:215,45:lt,48:[1,455],55:220,82:X,87:p,89:ut,172:221,185:351,187:350,200:456,231:le,234:349,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(ea,[2,424]),e(no,[2,136]),e(no,[2,137]),e(Kt,[2,140]),{232:[1,457]},{13:h,16:f,44:39,55:40,87:p,139:342,195:458,197:Xr,307:43,308:y},e(St,[2,219]),e(St,[2,220]),e(St,[2,221]),e(St,[2,222]),e(St,[2,223]),e(Mr,[2,10]),e(Je,[2,46]),e(Je,[2,314]),{112:Ue,122:459},e(Je,[2,62]),e(P,Fe,{133:242,108:460,112:Ye,132:Ve}),e(ve,[2,61]),e(Je,[2,49]),e([6,28,126,128,193],[2,65]),{31:[2,66],112:[1,462],138:461},e(je,[2,351],{146:463,335:[1,464]}),{29:Le,57:465},e(ft,[2,329]),e(P,[2,332],{129:466,327:[1,467]}),e(ft,[2,55]),e(ft,[2,331]),{48:[1,468]},e(Ir,[2,429]),{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,239:469,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Ke,[2,431]),{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,243:470,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Ke,[2,156]),{45:Tt,89:Vt,179:471},e(ye,[2,441]),{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,251:472,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Pe,[2,444],{256:473}),e(Pe,[2,446],{258:474}),e(Xe,[2,442]),e(Xe,[2,443]),e(Pe,[2,449]),{13:h,16:f,44:136,45:fe,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,255:154,257:155,259:475,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Xe,[2,450]),e(Xe,[2,451]),e(Xe,[2,379],{178:476}),e(Xe,[2,378]),e([6,13,16,29,31,39,45,47,48,73,76,78,81,82,83,85,87,89,112,159,160,161,163,164,193,231,242,246,250,263,265,268,269,270,271,272,273,274,276,277,279,280,283,285,290,294,295,296,297,298,299,300,301,302,303,304,305,306,308,309,310,312,335,338,341,342,343,344,345,346,347,348,349,350,351],[2,175]),{48:[1,477]},{48:[1,478]},{272:[1,479]},{272:[1,480]},{272:[1,481]},{13:h,16:f,44:136,45:fe,46:482,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{48:[1,483]},{48:[1,484]},e(at,[2,187]),e(tr,[2,194]),{13:h,16:f,44:39,55:40,82:X,87:p,139:289,172:291,255:154,257:155,266:290,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,320:485},{13:h,16:f,39:[1,487],44:136,45:fe,46:488,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,282:486,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Ht,[2,460]),{13:h,16:f,44:136,45:fe,46:489,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Xe,[2,464]),{13:h,16:f,44:136,45:fe,46:490,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Xe,[2,466]),e(me,[2,40]),e(or,[2,298]),e(zr,[2,87]),e(zr,[2,88]),e(zr,[2,89]),e(zr,[2,90]),{13:h,16:f,55:492,82:X,172:493,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,311:494,312:pe,315:491},e(me,[2,41]),e(Mn,[2,300]),e(ri,[2,303],{92:495}),{13:h,16:f,31:[1,496],55:414,82:X,171:497,172:415,173:416,174:Xt,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:lr},{31:[1,498],89:[1,499]},{29:[1,500]},e(Hr,[2,372]),{13:h,16:f,48:[2,422],55:194,197:Se,223:312,226:502,228:501,229:fi,307:43,308:y},e(Pr,[2,131]),e(Pr,[2,126]),e(zt,[2,22]),e(zt,[2,290]),{82:[1,503]},{82:[1,504]},{13:h,16:f,44:510,45:fe,55:323,67:321,68:322,74:505,75:506,76:Aa,77:320,78:Iy,79:509,87:p,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,307:43,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(Fn,[2,294]),e(sA,[2,69]),e(sA,[2,70]),e(W,we,{59:197,69:198,20:511,70:Te}),e($e,We,{58:205,62:206,23:512,63:tt}),{29:[2,375],31:[2,71],84:522,85:o,112:[1,518],150:513,151:514,158:515,159:[1,516],160:[1,517],161:[1,519],163:[1,520],164:[1,521],175:523},e(Fr,[2,363],{157:524,335:[1,525]}),e(l,r,{215:10,202:526,205:527,208:528,214:529,44:530,87:p}),e(Py,[2,399],{215:10,205:527,208:528,214:529,44:530,204:531,202:532,13:r,16:r,45:r,197:r,224:r,229:r,308:r,87:p}),{13:h,16:f,44:215,45:gn,55:220,82:X,87:p,89:ut,172:221,185:351,203:536,212:534,231:$n,233:533,234:535,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(l,r,{215:10,205:527,208:528,214:529,44:530,202:537,87:p}),e($e,[2,23],{307:43,267:139,275:146,278:149,55:323,67:447,68:448,44:450,66:538,13:h,16:f,45:Qn,87:p,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,276:$,277:N,279:R,280:T,283:x,285:B,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke}),e(us,[2,291]),e(us,[2,24]),e(us,[2,25]),{13:h,16:f,44:136,45:fe,46:539,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(us,[2,28]),e($e,We,{58:205,62:206,23:540,63:tt}),e([31,112,232,318,335],[2,105],{192:541,193:[1,542]}),e(ti,[2,107]),{13:h,16:f,44:215,45:lt,55:220,82:X,87:p,89:ut,172:221,185:351,187:350,199:543,200:544,231:le,234:349,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(oA,[2,132]),e(ea,[2,425]),e(oA,[2,133]),{13:h,16:f,44:354,55:355,82:X,87:p,172:357,237:356,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:358,312:pe,313:545},e(Je,[2,54]),e(Je,[2,48]),e(je,[2,342]),{13:h,16:f,44:39,55:40,87:p,139:546,307:43,308:y},e(je,[2,68]),e(A,[2,350],{31:uA,112:uA}),e(Je,[2,53]),{13:h,16:f,55:547,307:43,308:y},e(P,[2,333]),e(K,[2,16]),e(Ir,[2,152]),e(Ke,[2,154]),e(Ke,[2,157]),e(ye,[2,159]),e(ye,[2,160],{262:389,261:548,39:st,338:ht}),e(ye,[2,161],{262:389,261:549,39:st,338:ht}),e(Pe,[2,163]),{13:h,16:f,44:136,45:fe,46:550,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(at,[2,178]),e(at,[2,179]),{13:h,16:f,44:136,45:fe,46:551,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:552,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:553,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{48:[1,554],272:[1,555]},e(at,[2,184]),e(at,[2,186]),{314:[1,556]},{48:[1,557]},{48:[2,461]},{48:[2,462]},{48:[1,558]},{48:[2,467],193:[1,561],287:559,288:560},{13:h,16:f,55:194,197:Se,223:562,307:43,308:y},e(tg,[2,224]),e(tg,[2,225]),e(tg,[2,226]),{31:[1,563],45:cA,94:564},e(me,[2,84]),e(or,[2,368]),e(me,[2,85]),e(Mn,[2,370]),e(ri,[2,373],{170:566}),{48:[1,567]},{48:[2,423],337:[1,568]},e(zt,[2,35],{83:[1,569]}),e(zt,[2,36],{81:[1,570]}),e(Ni,[2,30],{307:43,267:139,275:146,278:149,77:320,67:321,68:322,55:323,79:509,44:510,75:571,13:h,16:f,45:fe,76:Aa,78:Iy,87:p,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,276:$,277:N,279:R,280:T,283:x,285:B,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke}),e(io,[2,295]),{45:fe,77:572},{45:fe,77:573},e(io,[2,33]),e(io,[2,34]),{31:[2,275],50:574,84:575,85:o},{31:[2,277],51:576,84:577,85:o},e(Fr,[2,356]),e(lA,[2,357],{152:578,335:[1,579]}),e(ta,[2,74]),{29:Le,57:580},{29:Le,57:581},{13:h,16:f,44:39,55:40,87:p,139:582,307:43,308:y},e(dA,[2,365],{162:583,328:[1,584]}),{13:h,16:f,45:fe,55:323,67:321,68:322,77:320,79:585,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,307:43,308:y,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{45:[1,586]},e(ta,[2,81]),{29:Le,57:587},e(Fr,[2,73]),e(A,[2,362],{29:ra,31:ra,85:ra,112:ra,159:ra,160:ra,161:ra,163:ra,164:ra}),e(Py,[2,112]),e(ao,[2,401],{206:588}),e(A,[2,405],{209:589,210:590}),e(A,[2,403]),e(A,[2,404]),e(Py,[2,113]),e(Py,[2,400]),{13:h,16:f,44:215,45:gn,48:[1,591],55:220,82:X,87:p,89:ut,172:221,185:351,203:536,212:592,231:$n,234:535,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(ea,[2,426]),e(Kt,[2,138]),e(Kt,[2,139]),{232:[1,593]},e(us,[2,292]),{47:[1,595],48:[1,594]},e(Mr,[2,9]),e(ti,[2,392]),e(ti,[2,393],{44:39,55:40,307:43,195:341,139:342,194:596,190:597,13:h,16:f,87:p,197:Xr,308:y}),e(ti,[2,110],{272:[1,598]}),e(Dy,[2,397],{201:599,316:600,317:[1,601]}),{314:[1,602]},{29:[1,603]},e(ft,[2,58]),e(Pe,[2,445]),e(Pe,[2,447]),{48:[1,604],272:[1,605]},{48:[1,606]},{272:[1,607]},{272:[1,608]},e(at,[2,99]),e(Xe,[2,382]),e([13,16,39,47,48,87,193,197,242,246,250,263,265,272,290,297,298,299,300,301,302,308,314,338,341,342,343,344,345,346],[2,232]),e(at,[2,188]),e(at,[2,189]),{48:[1,609]},{48:[2,468]},{289:[1,610]},{13:h,16:f,55:492,82:X,172:493,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,311:494,312:pe,315:611},e(me,[2,42]),e(ri,[2,304]),{13:h,16:f,55:414,82:X,95:612,171:613,172:415,173:416,174:Xt,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:lr},{31:[1,614],45:cA,94:615},e(Pr,[2,129]),e(vr,[2,421]),{82:[1,616]},{82:[1,617]},e(io,[2,296]),e(io,[2,31]),e(io,[2,32]),{31:[2,17]},{31:[2,276]},{31:[2,18]},{31:[2,278]},e(A,Zi,{155:330,153:618,154:619,29:na,31:na,85:na,112:na,159:na,160:na,161:na,163:na,164:na}),e(lA,[2,358]),e(ta,[2,75]),e(ta,[2,76]),{29:Le,57:620},{13:h,16:f,44:39,55:40,87:p,139:621,307:43,308:y},e(dA,[2,366]),e(ta,[2,79]),{13:h,16:f,44:136,45:fe,46:622,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(ta,[2,91],{336:[1,623]}),e([29,31,85,112,159,160,161,163,164,232,318,335],[2,114],{207:624,193:[1,625]}),e(ao,[2,117]),{13:h,16:f,44:215,45:gn,55:220,82:X,87:p,89:ut,172:221,185:351,203:536,211:626,212:627,231:$n,234:535,236:216,237:222,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,309:C,310:ee,311:217,312:pe},e(Zn,[2,134]),e(ea,[2,427]),e(Zn,[2,135]),e(us,[2,26]),{44:628,87:p},e(ti,[2,106]),e(ti,[2,394]),e(A,[2,396]),e(Dy,[2,111]),e(Dy,[2,398]),{13:h,16:f,44:39,55:40,87:p,139:342,186:629,190:340,195:341,197:Xr,307:43,308:y},e(ue,[2,217]),e(A,nt,{144:248,140:630,143:631,31:[2,343]}),e(at,[2,97]),e(Xe,[2,380]),e(at,[2,180]),{13:h,16:f,44:136,45:fe,46:632,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},{13:h,16:f,44:136,45:fe,46:633,55:133,67:132,68:134,77:131,82:X,87:p,172:135,224:he,238:121,239:122,243:123,247:124,251:125,255:154,257:155,259:126,263:xe,264:130,265:ie,266:137,267:139,268:ae,269:Oe,270:Ne,271:ge,273:de,274:oe,275:146,276:$,277:N,278:149,279:R,280:T,283:x,285:B,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:H,346:re,347:be,348:Re,349:Ce,350:Qe,351:ke},e(at,[2,190]),{290:[1,634]},{314:[1,635]},{13:h,16:f,48:[1,636],55:414,82:X,171:637,172:415,173:416,174:Xt,255:154,257:155,291:150,294:k,295:V,296:J,297:z,298:Y,299:te,300:ce,301:Ae,302:Ie,303:Ee,304:qe,305:G,306:F,307:43,308:y,312:lr},e(fA,[2,305]),e(me,[2,86]),e(ri,[2,374]),e(zt,[2,37]),e(zt,[2,38]),e(Fr,[2,72]),e(Fr,[2,360]),e(ta,[2,77]),{29:Le,57:638},{47:[1,639]},{29:[2,376]},e(ao,[2,402]),e(ao,[2,115],{215:10,208:528,214:529,44:530,205:640,13:r,16:r,45:r,197:r,224:r,229:r,308:r,87:p}),e(ao,[2,118],{272:[1,641]}),e(Ny,[2,407],{213:642,319:643,317:[1,644]}),{48:[1,645]},{318:[1,646]},{31:[1,647]},{31:[2,344]},{48:[1,648]},{48:[1,649]},{291:650,303:Ee,304:qe,305:G,306:F},e(zr,[2,218]),e(ri,[2,44]),e(fA,[2,306]),e(ta,[2,78]),{44:651,87:p},e(ao,[2,116]),e(A,[2,406]),e(Ny,[2,119]),e(Ny,[2,408]),e(l,r,{215:10,205:527,208:528,214:529,44:530,202:652,87:p}),e(us,[2,27]),e(Dy,[2,230]),e(hA,[2,345],{141:653,335:[1,654]}),e(at,[2,181]),e(at,[2,182]),{48:[2,191]},{48:[1,655]},{318:[1,656]},e(A,nt,{144:248,142:657,143:658,31:pA,112:pA}),e(hA,[2,346]),e(ta,[2,80]),e(Ny,[2,231]),e(je,[2,67]),e(je,[2,348])],defaultActions:{5:[2,240],6:[2,241],7:[2,242],9:[2,239],24:[2,1],25:[2,2],26:[2,244],87:[2,282],94:[2,384],100:[2,45],109:[2,325],166:[2,458],263:[2,439],336:[2,258],337:[2,101],487:[2,461],488:[2,462],560:[2,468],574:[2,17],575:[2,276],576:[2,18],577:[2,278],623:[2,376],631:[2,344],650:[2,191]},parseError:function(Be,Ge){if(Ge.recoverable)this.trace(Be);else{var Ze=new Error(Be);throw Ze.hash=Ge,Ze}},parse:function(Be){var Ge=this,Ze=[0],pt=[null],mt=[],ne=this.table,Vn="",se=0,Ea=0,My=2,Fy=1,qy=mt.slice.call(arguments,1),Nr=Object.create(this.lexer),Li={yy:{}};for(var fs in this.yy)Object.prototype.hasOwnProperty.call(this.yy,fs)&&(Li.yy[fs]=this.yy[fs]);Nr.setInput(Be,Li.yy),Li.yy.lexer=Nr,Li.yy.parser=this,typeof Nr.yylloc>"u"&&(Nr.yylloc={});var fo=Nr.yylloc;mt.push(fo);var pg=Nr.options&&Nr.options.ranges;typeof Li.yy.parseError=="function"?this.parseError=Li.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var By=function(){var ho;return ho=Nr.lex()||Fy,typeof ho!="number"&&(ho=Ge.symbols_[ho]||ho),ho},Dt,Jt,It,Yr,Zr={},Uy,aa,OA,Hy;;){if(Jt=Ze[Ze.length-1],this.defaultActions[Jt]?It=this.defaultActions[Jt]:((Dt===null||typeof Dt>"u")&&(Dt=By()),It=ne[Jt]&&ne[Jt][Dt]),typeof It>"u"||!It.length||!It[0]){var yg="";Hy=[];for(Uy in ne[Jt])this.terminals_[Uy]&&Uy>My&&Hy.push("'"+this.terminals_[Uy]+"'");Nr.showPosition?yg="Parse error on line "+(se+1)+`: +`+Nr.showPosition()+` +Expecting `+Hy.join(", ")+", got '"+(this.terminals_[Dt]||Dt)+"'":yg="Parse error on line "+(se+1)+": Unexpected "+(Dt==Fy?"end of input":"'"+(this.terminals_[Dt]||Dt)+"'"),this.parseError(yg,{text:Nr.match,token:this.terminals_[Dt]||Dt,line:Nr.yylineno,loc:fo,expected:Hy})}if(It[0]instanceof Array&&It.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Jt+", token: "+Dt);switch(It[0]){case 1:Ze.push(Dt),pt.push(Nr.yytext),mt.push(Nr.yylloc),Ze.push(It[1]),Dt=null,Ea=Nr.yyleng,Vn=Nr.yytext,se=Nr.yylineno,fo=Nr.yylloc;break;case 2:if(aa=this.productions_[It[1]][1],Zr.$=pt[pt.length-aa],Zr._$={first_line:mt[mt.length-(aa||1)].first_line,last_line:mt[mt.length-1].last_line,first_column:mt[mt.length-(aa||1)].first_column,last_column:mt[mt.length-1].last_column},pg&&(Zr._$.range=[mt[mt.length-(aa||1)].range[0],mt[mt.length-1].range[1]]),Yr=this.performAction.apply(Zr,[Vn,Ea,se,Li.yy,It[1],pt,mt].concat(qy)),typeof Yr<"u")return Yr;aa&&(Ze=Ze.slice(0,-1*aa*2),pt=pt.slice(0,-1*aa),mt=mt.slice(0,-1*aa)),Ze.push(this.productions_[It[1]][0]),pt.push(Zr.$),mt.push(Zr._$),OA=ne[Ze[Ze.length-2]][Ze[Ze.length-1]],Ze.push(OA);break;case 3:return!0}}return!0}},Cy=jF().Wildcard,jy="http://www.w3.org/1999/02/22-rdf-syntax-ns#",OB=jy+"type",RB=jy+"first",xB=jy+"rest",yA=jy+"nil",Ly="http://www.w3.org/2001/XMLSchema#",bA=Ly+"integer",gA=Ly+"decimal",mA=Ly+"double",IB=Ly+"boolean",cs="",_A="",vA="";function mn(He){return He.toLowerCase()}function ls(He,Be){return He.push(Be),He}function so(He,Be){return He.push.apply(He,Be),He}function Dr(He){He||(He={});for(var Be=1,Ge=arguments.length,Ze;Be>10),56320+(ne&1023))}else{var Vn=NB[mt];if(!Vn)throw new Error;return Vn}})}catch{return""}if(CB.exec(He))throw new Error("Invalid unicode codepoint of surrogate pair without corresponding codepoint in "+He);return He}function jB(He){var Be=du(),Ge=Be,Ze=[],pt,mt=[];He.forEach(function(Ea){Ze.push(Ea.entity),so(mt,Ea.triples)});for(var ne=0,Vn=0,se=Ze.length,pt=Array(se*2);ne0&&Ze instanceof Array?lg(Ze,Be-1,Ge):Ge.push(Ze);return Ge}function dg(He){return He.termType==="Variable"}function TA(He){if(He.triples){const Be=[];for(const Ge of He.triples)dg(Ge.subject)&&Be.push(Ge.subject.value),dg(Ge.predicate)&&Be.push(Ge.predicate.value),dg(Ge.object)&&Be.push(Ge.object.value);return Be}else if(He.patterns){const Be=[];for(const Ge of He.patterns)Be.push(...TA(Ge));return Be}return[]}function FB(He){const Be=He.slice().sort(),Ge=[];for(let Ze=0;Ze{const Ze=ia(Ge.subject,Ge.predicate,Ge.object);Be.push(Ze),Ge.annotations&&AA(sg(Ge.subject,Ge.predicate,Ge.object),Ge.annotations,Be)}),Be}return He}function EA(He){for(const Be of He){if(Be.type==="graph"&&Be.name.termType==="Variable")throw new Error("Detected illegal variable in GRAPH");if(Be.type==="bgp"||Be.type==="graph"){for(const Ge of Be.triples)if(Ge.subject.termType==="Variable"||Ge.predicate.termType==="Variable"||Ge.object.termType==="Variable")throw new Error("Detected illegal variable in BGP")}}return He}function hg(He){for(const Be of He)if(Be.type==="bgp"){for(const Ge of Be.triples)if(Ge.subject.termType==="BlankNode"||Ge.predicate.termType==="BlankNode"||Ge.object.termType==="BlankNode")throw new Error("Detected illegal blank node in BGP")}return He}var qB=function(){var He={EOF:1,parseError:function(Ge,Ze){if(this.yy.parser)this.yy.parser.parseError(Ge,Ze);else throw new Error(Ge)},setInput:function(Be,Ge){return this.yy=Ge||this.yy||{},this._input=Be,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 Be=this._input[0];this.yytext+=Be,this.yyleng++,this.offset++,this.match+=Be,this.matched+=Be;var Ge=Be.match(/(?:\r\n?|\n).*/g);return Ge?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Be},unput:function(Be){var Ge=Be.length,Ze=Be.split(/(?:\r\n?|\n)/g);this._input=Be+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ge),this.offset-=Ge;var pt=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),Ze.length-1&&(this.yylineno-=Ze.length-1);var mt=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:Ze?(Ze.length===pt.length?this.yylloc.first_column:0)+pt[pt.length-Ze.length].length-Ze[0].length:this.yylloc.first_column-Ge},this.options.ranges&&(this.yylloc.range=[mt[0],mt[0]+this.yyleng-Ge]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return 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). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Be){this.unput(this.match.slice(Be))},pastInput:function(){var Be=this.matched.substr(0,this.matched.length-this.match.length);return(Be.length>20?"...":"")+Be.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Be=this.match;return Be.length<20&&(Be+=this._input.substr(0,20-Be.length)),(Be.substr(0,20)+(Be.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Be=this.pastInput(),Ge=new Array(Be.length+1).join("-");return Be+this.upcomingInput()+` +`+Ge+"^"},test_match:function(Be,Ge){var Ze,pt,mt;if(this.options.backtrack_lexer&&(mt={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&&(mt.yylloc.range=this.yylloc.range.slice(0))),pt=Be[0].match(/(?:\r\n?|\n).*/g),pt&&(this.yylineno+=pt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:pt?pt[pt.length-1].length-pt[pt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Be[0].length},this.yytext+=Be[0],this.match+=Be[0],this.matches=Be,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(Be[0].length),this.matched+=Be[0],Ze=this.performAction.call(this,this.yy,this,Ge,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ze)return Ze;if(this._backtrack){for(var ne in mt)this[ne]=mt[ne];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Be,Ge,Ze,pt;this._more||(this.yytext="",this.match="");for(var mt=this._currentRules(),ne=0;neGe[0].length)){if(Ge=Ze,pt=ne,this.options.backtrack_lexer){if(Be=this.test_match(Ze,mt[ne]),Be!==!1)return Be;if(this._backtrack){Ge=!1;continue}else return!1}else if(!this.options.flex)break}return Ge?(Be=this.test_match(Ge,mt[pt]),Be!==!1?Be:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Ge=this.next();return Ge||this.lex()},begin:function(Ge){this.conditionStack.push(Ge)},popState:function(){var Ge=this.conditionStack.length-1;return Ge>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(Ge){return Ge=this.conditionStack.length-1-Math.abs(Ge||0),Ge>=0?this.conditionStack[Ge]:"INITIAL"},pushState:function(Ge){this.begin(Ge)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(Ge,Ze,pt,mt){switch(pt){case 0:break;case 1:return 12;case 2:return 15;case 3:return 41;case 4:return 325;case 5:return 326;case 6:return 45;case 7:return 47;case 8:return 48;case 9:return 39;case 10:return 24;case 11:return 28;case 12:return 29;case 13:return 31;case 14:return 32;case 15:return 36;case 16:return 53;case 17:return 327;case 18:return 63;case 19:return 64;case 20:return 70;case 21:return 73;case 22:return 76;case 23:return 78;case 24:return 81;case 25:return 83;case 26:return 85;case 27:return 193;case 28:return 100;case 29:return 328;case 30:return 121;case 31:return 329;case 32:return 330;case 33:return 110;case 34:return 331;case 35:return 109;case 36:return 332;case 37:return 333;case 38:return 113;case 39:return 115;case 40:return 116;case 41:return 131;case 42:return 123;case 43:return 126;case 44:return 128;case 45:return 132;case 46:return 112;case 47:return 334;case 48:return 335;case 49:return 159;case 50:return 161;case 51:return 164;case 52:return 174;case 53:return 160;case 54:return 336;case 55:return 163;case 56:return 312;case 57:return 314;case 58:return 317;case 59:return 318;case 60:return 272;case 61:return 197;case 62:return 337;case 63:return 338;case 64:return 229;case 65:return 340;case 66:return 263;case 67:return 224;case 68:return 231;case 69:return 232;case 70:return 242;case 71:return 246;case 72:return 290;case 73:return 341;case 74:return 342;case 75:return 343;case 76:return 344;case 77:return 345;case 78:return 250;case 79:return 346;case 80:return 265;case 81:return 276;case 82:return 277;case 83:return 268;case 84:return 269;case 85:return 270;case 86:return 271;case 87:return 347;case 88:return 348;case 89:return 273;case 90:return 274;case 91:return 350;case 92:return 349;case 93:return 351;case 94:return 279;case 95:return 280;case 96:return 283;case 97:return 285;case 98:return 289;case 99:return 293;case 100:return 296;case 101:return 13;case 102:return 16;case 103:return 308;case 104:return 309;case 105:return 87;case 106:return 292;case 107:return 82;case 108:return 294;case 109:return 295;case 110:return 297;case 111:return 298;case 112:return 299;case 113:return 300;case 114:return 301;case 115:return 302;case 116:return"EXPONENT";case 117:return 303;case 118:return 304;case 119:return 305;case 120:return 306;case 121:return 89;case 122:return 310;case 123:return 6;case 124:return"INVALID";case 125:console.log(Ze.yytext);break}},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+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)DATA)/i,/^(?:DELETE((\s+|(#[^\n\r]*)\n\r?)+)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,/^(?:>>)/i,/^(?:\{\|)/i,/^(?:\|\})/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,/^(?:(SUBJECT|PREDICATE|OBJECT|isTRIPLE))/i,/^(?:(LANGMATCHES|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|STRLANG|STRDT|sameTerm))/i,/^(?:CONCAT)/i,/^(?:COALESCE)/i,/^(?:IF)/i,/^(?:TRIPLE)/i,/^(?:REGEX)/i,/^(?:SUBSTR)/i,/^(?:REPLACE)/i,/^(?:EXISTS)/i,/^(?:COUNT)/i,/^(?:SUM|MIN|MAX|AVG|SAMPLE)/i,/^(?:GROUP_CONCAT)/i,/^(?:SEPARATOR)/i,/^(?:\^\^)/i,/^(?:true|false)/i,/^(?:(<(?:[^<>\"\{\}\|\^`\\\u0000-\u0020])*>))/i,/^(?:((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:))/i,/^(?:(((([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?)?:)((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|:|[0-9]|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%))))*(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|:|((%([0-9A-Fa-f])([0-9A-Fa-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/i,/^(?:(_:(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:(?:(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040])|\.)*(((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|-|[0-9]|\u00B7|[\u0300-\u036F\u203F-\u2040]))?))/i,/^(?:([\?\$]((?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])|_))|[0-9])(?:((?:([A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\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-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f]))))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"']|\\u([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])|\\U([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-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,121,122,123,124,125],inclusive:!0}}};return He}();rg.lexer=qB;function Ct(){this.yy={}}return Ct.prototype=rg,rg.Parser=Ct,new Ct}();return rm=t,rm}var nm,pO;function xV(){if(pO)return nm;pO=1;var t="http://www.w3.org/2001/XMLSchema#integer",e="http://www.w3.org/2001/XMLSchema#string";function u(h){this._options=h=h||{};var f=h.prefixes||{};this._prefixByIri={};var p=[];for(var y in f){var b=f[y];o(b)&&(this._prefixByIri[b]=y,p.push(b))}var m=p.join("|").replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&");this._prefixRegex=new RegExp("^("+m+")([a-zA-Z][\\-_a-zA-Z0-9]*)$"),this._usedPrefixes={},this._sparqlStar=h.sparqlStar,this._indent=o(h.indent)?h.indent:" ",this._newline=o(h.newline)?h.newline:` +`,this._explicitDatatype=!!h.explicitDatatype}u.prototype.toQuery=function(h){var f="";return h.queryType&&(f+=h.queryType.toUpperCase()+" "),h.reduced&&(f+="REDUCED "),h.distinct&&(f+="DISTINCT "),h.variables?f+=d(h.variables,void 0,function(p){return l(p)?this.toEntity(p):"("+this.toExpression(p.expression)+" AS "+a(p.variable)+")"},this)+" ":h.template&&(f+=this.group(h.template,!0)+this._newline),h.from&&(f+=this.graphs("FROM ",h.from.default)+this.graphs("FROM NAMED ",h.from.named)),h.where&&(f+="WHERE "+this.group(h.where,!0)+this._newline),h.updates&&(f+=d(h.updates,";"+this._newline,this.toUpdate,this)),h.group&&(f+="GROUP BY "+d(h.group,void 0,function(p){var y=l(p.expression)?this.toEntity(p.expression):"("+this.toExpression(p.expression)+")";return p.variable?"("+y+" AS "+a(p.variable)+")":y},this)+this._newline),h.having&&(f+="HAVING ("+d(h.having,void 0,this.toExpression,this)+")"+this._newline),h.order&&(f+="ORDER BY "+d(h.order,void 0,function(p){var y="("+this.toExpression(p.expression)+")";return p.descending?"DESC "+y:y},this)+this._newline),h.offset&&(f+="OFFSET "+h.offset+this._newline),h.limit&&(f+="LIMIT "+h.limit+this._newline),h.values&&(f+=this.values(h)),f=this.baseAndPrefixes(h)+f,f.trim()},u.prototype.baseAndPrefixes=function(h){var f=h.base?"BASE <"+h.base+">"+this._newline:"",p="";for(var y in h.prefixes)(this._options.allPrefixes||this._usedPrefixes[y])&&(p+="PREFIX "+y+": <"+h.prefixes[y]+">"+this._newline);return f+p},u.prototype.toPattern=function(h){var f=h.type||h instanceof Array&&"array"||(h.subject&&h.predicate&&h.object?"triple":"");if(!(f in this))throw new Error("Unknown entry type: "+f);return this[f](h)},u.prototype.triple=function(h){return this.toEntity(h.subject)+" "+this.toEntity(h.predicate)+" "+this.toEntity(h.object)+"."},u.prototype.array=function(h){return d(h,this._newline,this.toPattern,this)},u.prototype.bgp=function(h){return this.encodeTriples(h.triples)},u.prototype.encodeTriples=function(h){if(!h.length)return"";for(var f=[],p=void 0,y=void 0,b=0;b":case">=":case"<=":case"&&":case"||":case"=":case"!=":case"+":case"-":case"*":case"/":return(l(p[0])?this.toEntity(p[0]):"("+this.toExpression(p[0])+")")+" "+f+" "+(l(p[1])?this.toEntity(p[1]):"("+this.toExpression(p[1])+")");case"!":return"!("+this.toExpression(p[0])+")";case"uplus":return"+("+this.toExpression(p[0])+")";case"uminus":return"-("+this.toExpression(p[0])+")";case"notin":f="NOT IN";case"in":return this.toExpression(p[0])+" "+f+"("+(o(p[1])?p[1]:d(p[1],", ",this.toExpression,this))+")";case"notexists":f="NOT EXISTS";case"exists":return f+" "+this.group(p[0],!0);default:return f+"("+d(p,", ",this.toExpression,this)+")"}default:throw new Error("Unknown expression type: "+h.type)}},u.prototype.toEntity=function(h){if(l(h))switch(h.termType){case"Wildcard":return"*";case"Variable":return a(h);case"BlankNode":return"_:"+h.value;case"Literal":var f=h.value||"",p=h.language||"",y=h.datatype;if(h='"'+f.replace(s,n)+'"',p)h+="@"+p;else if(y){if(!this._explicitDatatype)switch(y.value){case e:return h;case t:if(/^\d+$/.test(f))return f+" "}h+="^^"+this.encodeIRI(y.value)}return h;case"Quad":if(!this._sparqlStar)throw new Error("SPARQL* support is not enabled");return h.graph&&h.graph.termType!=="DefaultGraph"?"<< GRAPH "+this.toEntity(h.graph)+" { "+this.toEntity(h.subject)+" "+this.toEntity(h.predicate)+" "+this.toEntity(h.object)+" } >>":"<< "+this.toEntity(h.subject)+" "+this.toEntity(h.predicate)+" "+this.toEntity(h.object)+" >>";default:return this.encodeIRI(h.value)}else{var b=h.items.map(this.toEntity,this),m=h.pathType;switch(m){case"^":case"!":return m+b[0];case"*":case"+":case"?":return"("+b[0]+m+")";default:return"("+b.join(m)+")"}}};var s=/["\\\t\n\r\b\f]/g,n=function(h){return r[h]},r={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};u.prototype.encodeIRI=function(h){var f=this._prefixRegex.exec(h);if(f){var p=this._prefixByIri[f[1]];return this._usedPrefixes[p]=!0,p+":"+f[2]}return"<"+h+">"},u.prototype.toUpdate=function(h){switch(h.type||h.updateType){case"load":return"LOAD"+(h.source?" "+this.toEntity(h.source):"")+(h.destination?" INTO GRAPH "+this.toEntity(h.destination):"");case"insert":return"INSERT DATA "+this.group(h.insert,!0);case"delete":return"DELETE DATA "+this.group(h.delete,!0);case"deletewhere":return"DELETE WHERE "+this.group(h.delete,!0);case"insertdelete":return(h.graph?"WITH "+this.toEntity(h.graph)+this._newline:"")+(h.delete.length?"DELETE "+this.group(h.delete,!0)+this._newline:"")+(h.insert.length?"INSERT "+this.group(h.insert,!0)+this._newline:"")+(h.using?this.graphs("USING ",h.using.default):"")+(h.using?this.graphs("USING NAMED ",h.using.named):"")+"WHERE "+this.group(h.where,!0);case"add":case"copy":case"move":return h.type.toUpperCase()+" "+(h.silent?"SILENT ":"")+(h.source.default?"DEFAULT":this.toEntity(h.source.name))+" TO "+this.toEntity(h.destination.name);case"create":case"clear":case"drop":return h.type.toUpperCase()+(h.silent?" SILENT ":" ")+(h.graph.default?"DEFAULT":h.graph.named?"NAMED":h.graph.all?"ALL":"GRAPH "+this.toEntity(h.graph.name));default:throw new Error("Unknown update query type: "+h.type)}},u.prototype.indent=function(h){return h.replace(/^/gm,this._indent)};function a(h){return"?"+h.value}function o(h){return typeof h=="string"}function l(h){return typeof h.termType=="string"}function c(h,f){if(!h||!l(h)||!f||!l(f)||h.termType!==f.termType)return!1;switch(h.termType){case"Literal":return h.value===f.value&&h.language===f.language&&c(h.datatype,f.datatype);case"Quad":return c(h.subject,f.subject)&&c(h.predicate,f.predicate)&&c(h.object,f.object)&&c(h.graph,f.graph);default:return h.value===f.value}}function d(h,f,p,y){return h.map(p,y).join(o(f)?f:" ")}return nm=function(f={}){return{stringify:function(p){var y=Object.create(f);return y.prefixes=p.prefixes,new u(y).toQuery(p)},createGenerator:function(){return new u(f)}}},nm}var im,yO;function my(){if(yO)return im;yO=1;var t=RV().Parser,e=xV(),u=jF().Wildcard,{DataFactory:s}=Et();return im={Parser:function({prefixes:n,baseIRI:r,factory:a,sparqlStar:o,skipValidation:l,skipUngroupedVariableCheck:c,pathOnly:d}={}){var h={};for(var f in n||{})h[f]=n[f];var p=new t;return p.parse=function(){return t.base=r||"",t.prefixes=Object.create(h),t.factory=a||new s,t.sparqlStar=!!o,t.pathOnly=!!d,t.skipValidation=!!l||!!c,t.prototype.parse.apply(p,arguments)},p._resetBlanks=t._resetBlanks,p},Generator:e,Wildcard:u},im}var bO;function jb(){if(bO)return e1;bO=1;var t=I&&I.__createBinding||(Object.create?function(l,c,d,h){h===void 0&&(h=d);var f=Object.getOwnPropertyDescriptor(c,d);(!f||("get"in f?!c.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(l,h,f)}:function(l,c,d,h){h===void 0&&(h=d),l[h]=c[d]}),e=I&&I.__setModuleDefault||(Object.create?function(l,c){Object.defineProperty(l,"default",{enumerable:!0,value:c})}:function(l,c){l.default=c}),u=I&&I.__importStar||function(l){if(l&&l.__esModule)return l;var c={};if(l!=null)for(var d in l)d!=="default"&&Object.prototype.hasOwnProperty.call(l,d)&&t(c,l,d);return e(c,l),c};Object.defineProperty(e1,"__esModule",{value:!0});const s=u(gy()),n=Et(),r=er(),a=my();class o{constructor(c){this.dataFactory=c||new n.DataFactory,this.stringType=this.createTerm("http://www.w3.org/2001/XMLSchema#string")}createAlt(c,d=!0){return this.flattenMulti({type:s.types.ALT,input:c},d)}createAsk(c){return{type:s.types.ASK,input:c}}createBoundAggregate(c,d,h,f,p){const y=this.createAggregateExpression(d,h,f,p);return y.variable=c,y}createBgp(c){return{type:s.types.BGP,patterns:c}}createConstruct(c,d){return{type:s.types.CONSTRUCT,input:c,template:d}}createDescribe(c,d){return{type:s.types.DESCRIBE,input:c,terms:d}}createDistinct(c){return{type:s.types.DISTINCT,input:c}}createExtend(c,d,h){return{type:s.types.EXTEND,input:c,variable:d,expression:h}}createFrom(c,d,h){return{type:s.types.FROM,input:c,default:d,named:h}}createFilter(c,d){return{type:s.types.FILTER,input:c,expression:d}}createGraph(c,d){return{type:s.types.GRAPH,input:c,name:d}}createGroup(c,d,h){return{type:s.types.GROUP,input:c,variables:d,aggregates:h}}createInv(c){return{type:s.types.INV,path:c}}createJoin(c,d=!0){return this.flattenMulti({type:s.types.JOIN,input:c},d)}createLeftJoin(c,d,h){return h?{type:s.types.LEFT_JOIN,input:[c,d],expression:h}:{type:s.types.LEFT_JOIN,input:[c,d]}}createLink(c){return{type:s.types.LINK,iri:c}}createMinus(c,d){return{type:s.types.MINUS,input:[c,d]}}createNop(){return{type:s.types.NOP}}createNps(c){return{type:s.types.NPS,iris:c}}createOneOrMorePath(c){return{type:s.types.ONE_OR_MORE_PATH,path:c}}createOrderBy(c,d){return{type:s.types.ORDER_BY,input:c,expressions:d}}createPath(c,d,h,f){return f?{type:s.types.PATH,subject:c,predicate:d,object:h,graph:f}:{type:s.types.PATH,subject:c,predicate:d,object:h,graph:this.dataFactory.defaultGraph()}}createPattern(c,d,h,f){const p=this.dataFactory.quad(c,d,h,f);return p.type=s.types.PATTERN,p}createProject(c,d){return{type:s.types.PROJECT,input:c,variables:d}}createReduced(c){return{type:s.types.REDUCED,input:c}}createSeq(c,d=!0){return this.flattenMulti({type:s.types.SEQ,input:c},d)}createService(c,d,h){return{type:s.types.SERVICE,input:c,name:d,silent:!!h}}createSlice(c,d,h){return d=d||0,h!==void 0?{type:s.types.SLICE,input:c,start:d,length:h}:{type:s.types.SLICE,input:c,start:d}}createUnion(c,d=!0){return this.flattenMulti({type:s.types.UNION,input:c},d)}createValues(c,d){return{type:s.types.VALUES,variables:c,bindings:d}}createZeroOrMorePath(c){return{type:s.types.ZERO_OR_MORE_PATH,path:c}}createZeroOrOnePath(c){return{type:s.types.ZERO_OR_ONE_PATH,path:c}}createAggregateExpression(c,d,h,f){return f?{type:s.types.EXPRESSION,expressionType:s.expressionTypes.AGGREGATE,aggregator:c,expression:d,separator:f,distinct:h}:{type:s.types.EXPRESSION,expressionType:s.expressionTypes.AGGREGATE,aggregator:c,expression:d,distinct:h}}createExistenceExpression(c,d){return{type:s.types.EXPRESSION,expressionType:s.expressionTypes.EXISTENCE,not:c,input:d}}createNamedExpression(c,d){return{type:s.types.EXPRESSION,expressionType:s.expressionTypes.NAMED,name:c,args:d}}createOperatorExpression(c,d){return{type:s.types.EXPRESSION,expressionType:s.expressionTypes.OPERATOR,operator:c,args:d}}createTermExpression(c){return{type:s.types.EXPRESSION,expressionType:s.expressionTypes.TERM,term:c}}createWildcardExpression(){return{type:s.types.EXPRESSION,expressionType:s.expressionTypes.WILDCARD,wildcard:new a.Wildcard}}createTerm(c){return c[0]==="$"&&(c=c.replace("$","?")),(0,r.stringToTerm)(c,this.dataFactory)}createCompositeUpdate(c){return{type:s.types.COMPOSITE_UPDATE,updates:c}}createDeleteInsert(c,d,h){const f={type:s.types.DELETE_INSERT};return c&&(f.delete=c),d&&(f.insert=d),h&&(f.where=h),f}createLoad(c,d,h){const f={type:s.types.LOAD,source:c};return d&&(f.destination=d),this.addSilent(f,!!h)}createClear(c,d){return this.addSilent({type:s.types.CLEAR,source:c},!!d)}createCreate(c,d){return this.addSilent({type:s.types.CREATE,source:c},!!d)}createDrop(c,d){return this.addSilent({type:s.types.DROP,source:c},!!d)}createAdd(c,d,h){return this.addSilent({type:s.types.ADD,source:c,destination:d},!!h)}createMove(c,d,h){return this.addSilent({type:s.types.MOVE,source:c,destination:d},!!h)}createCopy(c,d,h){return this.addSilent({type:s.types.COPY,source:c,destination:d},!!h)}addSilent(c,d){return d&&(c.silent=d),c}flattenMulti(c,d){if(!d)return c;const h=c.type,f=c.input;let p=[];for(const y of f)y.type===h?p.push(...y.input):p.push(y);return c.input=p,c}}return e1.default=o,e1}var t1={},gO;function RT(){if(gO)return t1;gO=1;var t=I&&I.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(t1,"__esModule",{value:!0});const e=gy(),u=t(jb()),s=un();class n{static flatten(a){return Array.prototype.concat(...a).filter(o=>o)}static objectify(a){if(a.termType){if(a.termType==="Quad")return{type:"pattern",termType:"Quad",subject:n.objectify(a.subject),predicate:n.objectify(a.predicate),object:n.objectify(a.object),graph:n.objectify(a.graph)};{let o={termType:a.termType,value:a.value};return a.language&&(o.language=a.language),a.datatype&&(o.datatype=n.objectify(a.datatype)),o}}if(Array.isArray(a))return a.map(o=>n.objectify(o));if(a===Object(a)){let o={};for(let l of Object.keys(a))o[l]=n.objectify(a[l]);return o}return a}static inScopeVariables(a){const o=[];function l(d){o.find(h=>d.value===h.value)||o.push(d)}function c(d){d.subject.termType==="Variable"&&l(d.subject),d.predicate.termType==="Variable"&&l(d.predicate),d.object.termType==="Variable"&&l(d.object),d.graph.termType==="Variable"&&l(d.graph),d.subject.termType==="Quad"&&c(d.subject),d.predicate.termType==="Quad"&&c(d.predicate),d.object.termType==="Quad"&&c(d.object),d.graph.termType==="Quad"&&c(d.graph)}return n.recurseOperation(a,{[e.types.EXPRESSION]:d=>(d.expressionType===e.expressionTypes.AGGREGATE&&d.variable&&l(d.variable),!0),[e.types.EXTEND]:d=>(l(d.variable),!0),[e.types.GRAPH]:d=>(d.name.termType==="Variable"&&l(d.name),!0),[e.types.GROUP]:d=>(d.variables.forEach(l),!0),[e.types.PATH]:d=>(d.subject.termType==="Variable"&&l(d.subject),d.object.termType==="Variable"&&l(d.object),d.graph.termType==="Variable"&&l(d.graph),d.subject.termType==="Quad"&&c(d.subject),d.object.termType==="Quad"&&c(d.object),d.graph.termType==="Quad"&&c(d.graph),!0),[e.types.PATTERN]:d=>(c(d),!0),[e.types.PROJECT]:d=>(d.variables.forEach(l),!1),[e.types.SERVICE]:d=>(d.name.termType==="Variable"&&l(d.name),!0),[e.types.VALUES]:d=>(d.variables.forEach(l),!0)}),o}static recurseOperation(a,o){let l=a,c=!0;const d=o[a.type];if(d&&(c=d(a)),!c)return;let h=f=>n.recurseOperation(f,o);switch(l.type){case e.types.ALT:l.input.map(h);break;case e.types.ASK:h(l.input);break;case e.types.BGP:l.patterns.forEach(h);break;case e.types.CONSTRUCT:h(l.input),l.template.map(h);break;case e.types.DESCRIBE:h(l.input);break;case e.types.DISTINCT:h(l.input);break;case e.types.EXPRESSION:l.expressionType===e.expressionTypes.EXISTENCE&&h(l.input);break;case e.types.EXTEND:h(l.input),h(l.expression);break;case e.types.FILTER:h(l.input),h(l.expression);break;case e.types.FROM:h(l.input);break;case e.types.GRAPH:h(l.input);break;case e.types.GROUP:h(l.input),l.aggregates.forEach(h);break;case e.types.INV:h(l.path);break;case e.types.JOIN:l.input.map(h);break;case e.types.LEFT_JOIN:l.input.map(h),l.expression&&h(l.expression);break;case e.types.LINK:break;case e.types.MINUS:l.input.map(h);break;case e.types.NOP:break;case e.types.NPS:break;case e.types.ONE_OR_MORE_PATH:h(l.path);break;case e.types.ORDER_BY:h(l.input),l.expressions.forEach(h);break;case e.types.PATH:h(l.predicate);break;case e.types.PATTERN:break;case e.types.PROJECT:h(l.input);break;case e.types.REDUCED:h(l.input);break;case e.types.SEQ:l.input.map(h);break;case e.types.SERVICE:h(l.input);break;case e.types.SLICE:h(l.input);break;case e.types.UNION:l.input.map(h);break;case e.types.VALUES:break;case e.types.ZERO_OR_MORE_PATH:h(l.path);break;case e.types.ZERO_OR_ONE_PATH:h(l.path);break;case e.types.COMPOSITE_UPDATE:l.updates.forEach(f=>h(f));break;case e.types.DELETE_INSERT:l.delete&&l.delete.forEach(f=>h(f)),l.insert&&l.insert.forEach(f=>h(f)),l.where&&h(l.where);break;case e.types.LOAD:break;case e.types.CLEAR:break;case e.types.CREATE:break;case e.types.DROP:break;case e.types.ADD:break;case e.types.MOVE:break;case e.types.COPY:break;default:throw new Error(`Unknown Operation type ${l.type}`)}}static mapOperation(a,o,l){let c=a,d=!0,h=!0;l=l||new u.default;const f=o[a.type];if(f){const b=f(a,l);c=b.result,d=b.recurse,h=b.copyMetadata!==!1}let p;if(h&&(c.metadata||a.metadata)&&(p={...c.metadata,...a.metadata}),!d)return p&&(c.metadata=p),c;let y=b=>n.mapOperation(b,o,l);switch(c.type){case e.types.ALT:c=l.createAlt(c.input.map(y));break;case e.types.ASK:c=l.createAsk(y(c.input));break;case e.types.BGP:c=l.createBgp(c.patterns.map(y));break;case e.types.CONSTRUCT:c=l.createConstruct(y(c.input),c.template.map(y));break;case e.types.DESCRIBE:c=l.createDescribe(y(c.input),c.terms);break;case e.types.DISTINCT:c=l.createDistinct(y(c.input));break;case e.types.EXPRESSION:c=n.mapExpression(c,o,l);break;case e.types.EXTEND:c=l.createExtend(y(c.input),c.variable,y(c.expression));break;case e.types.FILTER:c=l.createFilter(y(c.input),y(c.expression));break;case e.types.FROM:c=l.createFrom(y(c.input),[...c.default],[...c.named]);break;case e.types.GRAPH:c=l.createGraph(y(c.input),c.name);break;case e.types.GROUP:c=l.createGroup(y(c.input),[].concat(c.variables),c.aggregates.map(y));break;case e.types.INV:c=l.createInv(y(c.path));break;case e.types.JOIN:c=l.createJoin(c.input.map(y));break;case e.types.LEFT_JOIN:c=l.createLeftJoin(y(c.input[0]),y(c.input[1]),c.expression?y(c.expression):void 0);break;case e.types.LINK:c=l.createLink(c.iri);break;case e.types.MINUS:c=l.createMinus(y(c.input[0]),y(c.input[1]));break;case e.types.NOP:c=l.createNop();break;case e.types.NPS:c=l.createNps([].concat(c.iris));break;case e.types.ONE_OR_MORE_PATH:c=l.createOneOrMorePath(y(c.path));break;case e.types.ORDER_BY:c=l.createOrderBy(y(c.input),c.expressions.map(y));break;case e.types.PATH:c=l.createPath(c.subject,y(c.predicate),c.object,c.graph);break;case e.types.PATTERN:c=l.createPattern(c.subject,c.predicate,c.object,c.graph);break;case e.types.PROJECT:c=l.createProject(y(c.input),[...c.variables]);break;case e.types.REDUCED:c=l.createReduced(y(c.input));break;case e.types.SEQ:c=l.createSeq(c.input.map(y));break;case e.types.SERVICE:c=l.createService(y(c.input),c.name,c.silent);break;case e.types.SLICE:c=l.createSlice(y(c.input),c.start,c.length);break;case e.types.UNION:c=l.createUnion(c.input.map(y));break;case e.types.VALUES:c=l.createValues([].concat(c.variables),c.bindings.map(b=>Object.assign({},b)));break;case e.types.ZERO_OR_MORE_PATH:c=l.createZeroOrMorePath(y(c.path));break;case e.types.ZERO_OR_ONE_PATH:c=l.createZeroOrOnePath(y(c.path));break;case e.types.COMPOSITE_UPDATE:c=l.createCompositeUpdate(c.updates.map(y));break;case e.types.DELETE_INSERT:c=l.createDeleteInsert(c.delete?c.delete.map(y):void 0,c.insert?c.insert.map(y):void 0,c.where?y(c.where):void 0);break;case e.types.LOAD:c=l.createLoad(c.source,c.destination,c.silent);break;case e.types.CLEAR:c=l.createClear(c.source,c.silent);break;case e.types.CREATE:c=l.createCreate(c.source,c.silent);break;case e.types.DROP:c=l.createDrop(c.source,c.silent);break;case e.types.ADD:c=l.createAdd(c.source,c.destination);break;case e.types.MOVE:c=l.createMove(c.source,c.destination);break;case e.types.COPY:c=l.createCopy(c.source,c.destination);break;default:throw new Error(`Unknown Operation type ${c.type}`)}return p&&(c.metadata=p),c}static mapExpression(a,o,l){let c=a,d=!0;l=l||new u.default;const h=o[a.expressionType];if(h&&({result:c,recurse:d}=h(a,l)),!d)return c;let f=p=>n.mapOperation(p,o,l);switch(a.expressionType){case e.expressionTypes.AGGREGATE:return a.variable?l.createBoundAggregate(a.variable,a.aggregator,f(a.expression),a.distinct,a.separator):l.createAggregateExpression(a.aggregator,f(a.expression),a.distinct,a.separator);case e.expressionTypes.EXISTENCE:return l.createExistenceExpression(a.not,f(a.input));case e.expressionTypes.NAMED:return l.createNamedExpression(a.name,a.args.map(f));case e.expressionTypes.OPERATOR:return l.createOperatorExpression(a.operator,a.args.map(f));case e.expressionTypes.TERM:return l.createTermExpression(a.term);case e.expressionTypes.WILDCARD:return l.createWildcardExpression();default:throw new Error(`Unknown Expression type ${a.expressionType}`)}}static cloneOperation(a){return n.mapOperation(a,{})}static cloneExpression(a){return n.mapExpression(a,{})}static createUniqueVariable(a,o,l){let c=0,d=a;for(;o[d];)d=`${a}${c++}`;return l.variable(d)}static isSimpleTerm(a){return a.termType!==void 0&&a.termType!=="Quad"&&a.termType!=="Wildcard"}static isQuad(a){return a.termType==="Quad"}static hasQuadVariables(a){return(0,s.someTermsNested)(a,o=>o.termType==="Variable")}static isWildcard(a){return a.termType==="Wildcard"}}return t1.default=n,t1}var mO;function IV(){if(mO)return Zy;mO=1;var t=I&&I.__createBinding||(Object.create?function(N,R,T,x){x===void 0&&(x=T);var B=Object.getOwnPropertyDescriptor(R,T);(!B||("get"in B?!R.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return R[T]}}),Object.defineProperty(N,x,B)}:function(N,R,T,x){x===void 0&&(x=T),N[x]=R[T]}),e=I&&I.__setModuleDefault||(Object.create?function(N,R){Object.defineProperty(N,"default",{enumerable:!0,value:R})}:function(N,R){N.default=R}),u=I&&I.__importStar||function(N){if(N&&N.__esModule)return N;var R={};if(N!=null)for(var T in N)T!=="default"&&Object.prototype.hasOwnProperty.call(N,T)&&t(R,N,T);return e(R,N),R},s=I&&I.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(Zy,"__esModule",{value:!0});const n=OV(),r=er(),a=u(gy()),o=s(jb()),l=s(RT()),c=my().Parser,d=a.types;let h=new Set,f=0,p=!1,y;function b(N,R){R=R||{},y=new o.default(R.dataFactory);let T;if(g(N)){let x=new c(R);x._resetBlanks(),T=x.parse(N)}else T=N;return m(T,R.quads,R.blankToVariable)}Zy.default=b;function m(N,R,T){if(h=new Set,f=0,p=!!R,!N.type)return y.createNop();if(N.type!=="query"&&N.type!=="update")throw new Error("Translate only works on complete query or update objects.");let x;if(S(N),N.type==="query"){const B={type:"group",patterns:N.where||[]};x=D(B),x=X(N,x)}else N.type==="update"&&(x=ie(N));return T&&(x=$(x)),x}function g(N){return typeof N=="string"}function v(N){return!!(N!=null&&N.termType)}function _(N){return N.subject&&N.predicate&&N.object}function w(N){return(N==null?void 0:N.termType)==="Variable"}function S(N){if(v(N))w(N)&&h.add(`?${N.value}`);else if(Array.isArray(N))for(const R of N)S(R);else if(N&&typeof N=="object")for(let R of Object.keys(N))R.startsWith("?")?h.add(R):R.startsWith("$")&&h.add(`?${R.slice(1)}`),S(N[R])}function A(N){let R={};if(_(N)){const T=[A(N.subject),A(N.predicate),A(N.object),N.graph?A(N.graph):{}];Object.assign(R,...T)}else if(v(N))w(N)&&(R[N.value]=N);else if(N.type==="bgp"){const T=N.triples;Object.assign(R,...T.map(A))}else if(N.type==="path")Object.assign(R,...N.items.map(A));else if(N.type==="group"||N.type==="union"||N.type==="optional")Object.assign(R,...N.patterns.map(A));else if(N.type==="service"||N.type==="graph")Object.assign(R,A(N.name)),Object.assign(R,...N.patterns.map(A));else if(N.type==="bind")Object.assign(R,A(N.variable));else if(N.type==="values"){if(N.values.length>0){const T=Object.keys(N.values[0]).map(x=>y.createTerm(x));Object.assign(R,...T.map(A))}}else if(N.type==="query"&&(N.queryType==="SELECT"||N.queryType==="DESCRIBE")){N.where&&N.variables.some(l.default.isWildcard)&&Object.assign(R,...N.where.map(A));for(const T of N.variables)w(T)?Object.assign(R,A(T)):T.variable&&Object.assign(R,A(T.variable));if(N.queryType==="SELECT"){if(N.group)for(const T of N.group)T.variable&&Object.assign(R,A(T.variable));if(N.values){const T={type:"values",values:N.values};Object.assign(R,A(T))}}}return R}function D(N){if(N.type==="bgp")return E(N);if(N.type==="union")return y.createUnion(N.patterns.map(R=>(R.type!=="group"&&(R={type:"group",patterns:[R]}),D(R))));if(N.type==="graph"){const R={type:"group",patterns:N.patterns};let T=D(R);return p?T=Q(T,N.name):T=y.createGraph(T,N.name),T}if(N.type==="values")return fe(N);if(N.type==="query")return m(N,p,!1);if(N.type==="group"){let R=[],T=[];for(let k of N.patterns)(k.type==="filter"?R:T).push(k);let x=T.reduce(Z,y.createBgp([])),B=R.map(k=>L(k.expression));return B.length>0&&(x=y.createFilter(x,B.reduce((k,V)=>y.createOperatorExpression("&&",[k,V])))),x}throw new Error(`Unexpected type: ${N.type}`)}function L(N){if(l.default.isSimpleTerm(N))return y.createTermExpression(N);if(l.default.isQuad(N))return l.default.hasQuadVariables(N)?y.createOperatorExpression("triple",[L(N.subject),L(N.predicate),L(N.object)]):y.createTermExpression(N);if(l.default.isWildcard(N))return y.createWildcardExpression();if("aggregation"in N)return y.createAggregateExpression(N.aggregation,L(N.expression),!!N.distinct,N.separator);if("function"in N)return y.createNamedExpression(N.function,N.args.map(L));if("operator"in N)return N.operator==="exists"||N.operator==="notexists"?y.createExistenceExpression(N.operator==="notexists",D(N.args[0])):((N.operator==="in"||N.operator==="notin")&&(N.args=[N.args[0]].concat(N.args[1])),y.createOperatorExpression(N.operator,N.args.map(L)));throw new Error(`Unknown expression: ${JSON.stringify(N)}`)}function E(N){let R=[],T=[];for(let x of N.triples)if("pathType"in x.predicate){let B=O(x);for(let k of B)k.type===d.PATH?(R.length>0&&T.push(y.createBgp(R)),R=[],T.push(k)):R.push(k)}else R.push(M(x));return R.length>0&&T.push(y.createBgp(R)),T.length===1?T[0]:y.createJoin(T)}function O(N){let R=N.subject,T=P(N.predicate),x=N.object;return j(R,T,x)}function P(N){if(l.default.isSimpleTerm(N)){if(N.termType==="NamedNode")return y.createLink(N);throw new Error(`Path predicate should be a NamedNode, got ${JSON.stringify(N)}`)}if(N.pathType==="^")return y.createInv(P(N.items[0]));if(N.pathType==="!"){let R=[],T=[],x;"pathType"in N.items[0]&&N.items[0].pathType==="|"?x=N.items[0].items:x=N.items;for(let V of x)if(l.default.isSimpleTerm(V))R.push(V);else if(V.pathType==="^")T.push(V.items[0]);else throw new Error(`Unexpected item: ${JSON.stringify(V)}`);let B=y.createNps(R),k=y.createInv(y.createNps(T));return T.length===0?B:R.length===0?k:y.createAlt([B,k])}if(N.pathType==="/")return y.createSeq(N.items.map(P));if(N.pathType==="|")return y.createAlt(N.items.map(P));if(N.pathType==="*")return y.createZeroOrMorePath(P(N.items[0]));if(N.pathType==="+")return y.createOneOrMorePath(P(N.items[0]));if(N.pathType==="?")return y.createZeroOrOnePath(P(N.items[0]));throw new Error(`Unable to translate path expression ${JSON.stringify(N)}`)}function j(N,R,T){if(R.type===d.LINK)return[y.createPattern(N,R.iri,T)];if(R.type===d.INV)return j(T,R.path,N);if(R.type===d.SEQ){let x=N;return l.default.flatten(R.input.map((B,k)=>{const V=k===R.input.length-1?T:U(),J=j(x,B,V);return V.termType==="Variable"&&(x=V),J}))}return[y.createPath(N,R,T)]}function U(){let N=`?var${f++}`;return h.has(N)?U():(h.add(N),y.createTerm(N))}function M(N){if("pathType"in N.predicate)throw new Error("Trying to translate property path to quad.");return y.createPattern(N.subject,N.predicate,N.object,N.graph)}let q=Object.values(d);function Q(N,R,T){if(N.type===d.GRAPH){if(T)throw new Error("Recursing through nested GRAPH statements with a replacement is impossible.");N=Q(N.input,N.name)}else if(N.type!==d.SERVICE)if(N.type===d.BGP)N.patterns=N.patterns.map(x=>(T&&(x.subject.equals(R)&&(x.subject=T),x.predicate.equals(R)&&(x.predicate=T),x.object.equals(R)&&(x.object=T)),x.graph.termType==="DefaultGraph"&&(x.graph=R),x));else if(N.type===d.PATH)T&&(N.subject.equals(R)&&(N.subject=T),N.object.equals(R)&&(N.object=T)),N.graph.termType==="DefaultGraph"&&(N.graph=R);else if(N.type===d.PROJECT&&!T)N.variables.some(x=>x.equals(R))||(T=U()),N.input=Q(N.input,R,T);else if(N.type===d.EXTEND&&!T)N.variable.equals(R)&&(T=U()),N.input=Q(N.input,R,T);else for(let x of Object.keys(N))Array.isArray(N[x])?N[x]=N[x].map(B=>Q(B,R,T)):q.indexOf(N[x].type)>=0?N[x]=Q(N[x],R,T):T&&w(N[x])&&N[x].equals(R)&&(N[x]=T);return N}function Z(N,R){if(R.type==="optional"){const T=D({type:"group",patterns:R.patterns});T.type===d.FILTER?N=y.createLeftJoin(N,T.input,T.expression):N=y.createLeftJoin(N,T)}else if(R.type==="minus"){const T=D({type:"group",patterns:R.patterns});N=y.createMinus(N,T)}else if(R.type==="bind")N=y.createExtend(N,R.variable,L(R.expression));else if(R.type==="service"){const T={type:"group",patterns:R.patterns},x=y.createService(D(T),R.name,R.silent);N=K(N,x)}else{const T=D(R);N=K(N,T)}return N}function K(N,R){return N.type===d.BGP&&R.type===d.BGP?N=y.createBgp([...N.patterns,...R.patterns]):N.type===d.BGP&&N.patterns.length===0?N=R:R.type===d.BGP&&R.patterns.length===0||(N=y.createJoin([N,R])),N}function fe(N){let R=(N.values.length===0?[]:Object.keys(N.values[0])).map(y.createTerm.bind(y)),T=N.values.map(x=>{let B=Object.keys(x);B=B.filter(V=>x[V]!==void 0);let k={};for(let V of B)k[V]=x[V];return k});return y.createValues(R,T)}function X(N,R){const T=N,x=[],B={};if(T.variables=T.variables&&T.variables.map(V=>he(V,B)),T.having=T.having&&T.having.map(V=>he(V,B)),T.order=T.order&&T.order.map(V=>he(V,B)),T.group||Object.keys(B).length>0){const V=Object.keys(B).map(z=>xe(B[z],y.createTerm(z))),J=[];if(T.group)for(const z of T.group)if(l.default.isSimpleTerm(z.expression))J.push(z.expression);else{const Y="variable"in z?z.variable:U();R=y.createExtend(R,Y,L(z.expression)),J.push(Y)}R=y.createGroup(R,J,V)}if(T.having)for(let V of T.having)R=y.createFilter(R,L(V));N.values&&(R=y.createJoin([R,fe(N)]));let k=[];if(N.queryType==="SELECT"||N.queryType==="DESCRIBE")if(N.variables.some(V=>V&&l.default.isWildcard(V)))k=Object.values(A(N)).sort((V,J)=>V.value.localeCompare(J.value));else for(let V of N.variables)w(V)||!("variable"in V)?k.push(V):V.variable&&(k.push(V.variable),x.push(V));for(let V of x)R=y.createExtend(R,V.variable,L(V.expression));return T.order&&(R=y.createOrderBy(R,T.order.map(V=>{let J=L(V.expression);return V.descending&&(J=y.createOperatorExpression("desc",[J])),J}))),N.queryType==="SELECT"&&(R=y.createProject(R,k)),T.distinct&&(R=y.createDistinct(R)),T.reduced&&(R=y.createReduced(R)),N.queryType==="CONSTRUCT"?R=y.createConstruct(R,(N.template||[]).map(M)):N.queryType==="ASK"?R=y.createAsk(R):N.queryType==="DESCRIBE"&&(R=y.createDescribe(R,k)),(T.offset||T.limit)&&(R=y.createSlice(R,T.offset||0,T.limit)),T.from&&(R=y.createFrom(R,T.from.default,T.from.named)),R}function he(N,R){if("type"in N&&N.type==="aggregate"){let T=!1,x;for(let B of Object.keys(R))if(n(R[B],N)){x=y.createTerm(B),T=!0;break}return T||(x=U(),R[(0,r.termToString)(x)]=N),x}return"expression"in N&&N.expression?{...N,expression:he(N.expression,R)}:"args"in N&&N.args?{...N,args:N.args.map(T=>he(T,R))}:N}function xe(N,R){if(N.type!=="aggregate"||!N.aggregation)throw new Error(`Unexpected input: ${JSON.stringify(N)}`);const T=L(N);return T.variable=R,T}function ie(N){return N.updates.length===1?ae(N.updates[0]):y.createCompositeUpdate(N.updates.map(ae))}function ae(N){if("type"in N){if(N.type==="load")return de(N);if(N.type==="clear"||N.type==="create"||N.type==="drop")return ge(N);if(N.type==="add"||N.type==="copy"||N.type==="move")return oe(N)}else if(N.updateType==="insertdelete"||N.updateType==="deletewhere"||N.updateType==="delete"||N.updateType==="insert")return Oe(N);throw new Error(`Unknown update type ${JSON.stringify(N)}`)}function Oe(N){if(!p)throw new Error("INSERT/DELETE operations are only supported with quads option enabled");let R=[],T=[],x;if(N.delete&&(R=l.default.flatten(N.delete.map(B=>Ne(B,N.graph)))),N.insert&&(T=l.default.flatten(N.insert.map(B=>Ne(B,N.graph)))),N.where&&N.where.length>0){x=D({type:"group",patterns:N.where});const B=N.using;B?x=y.createFrom(x,B.default,B.named):N.graph&&(x=Q(x,N.graph))}else N.updateType==="deletewhere"&&R.length>0&&(x=y.createBgp(R));return y.createDeleteInsert(R.length>0?R:void 0,T.length>0?T:void 0,x)}function Ne(N,R){let T=R;N.type==="graph"&&(T=N.name);let x=N.triples;return T&&(x=x.map(B=>Object.assign(B,{graph:T}))),x.map(M)}function ge(N){let R;switch(l.default.isSimpleTerm(N.graph)?R=N.graph:N.graph.all?R="ALL":N.graph.default?R="DEFAULT":N.graph.named?R="NAMED":R=N.graph.name,N.type){case"clear":return y.createClear(R,N.silent);case"create":return y.createCreate(R,N.silent);case"drop":return y.createDrop(R,N.silent)}}function de(N){return y.createLoad(N.source,N.destination,N.silent)}function oe(N){const R=N.source.default?"DEFAULT":N.source.name,T=N.destination.default?"DEFAULT":N.destination.name;switch(N.type){case"copy":return y.createCopy(R,T,N.silent);case"move":return y.createMove(R,T,N.silent);case"add":return y.createAdd(R,T,N.silent)}}function $(N){const R={},T=Array.from(h).reduce((B,k)=>(B[k]=!0,B),{});return l.default.mapOperation(N,{[a.types.DELETE_INSERT]:B=>({result:y.createDeleteInsert(B.delete,B.insert,B.where&&$(B.where)),recurse:!1}),[a.types.PATH]:(B,k)=>({result:k.createPath(x(B.subject),B.predicate,x(B.object),x(B.graph)),recurse:!1}),[a.types.PATTERN]:(B,k)=>({result:k.createPattern(x(B.subject),x(B.predicate),x(B.object),x(B.graph)),recurse:!1}),[a.types.CONSTRUCT]:B=>({result:y.createConstruct($(B.input),B.template),recurse:!1})});function x(B){if(B.termType==="BlankNode"){let k=R[B.value];return k||(k=l.default.createUniqueVariable(B.value,T,y.dataFactory),T[k.value]=!0,R[B.value]=k),k}return B}}return Zy}var bs={},am={},Mt={},sm={},rr={},om,_O;function _y(){if(_O)return om;_O=1,om=t;function t(e,u){if(!e)throw new Error(u||"Assertion failed")}return t.equal=function(u,s,n){if(u!=s)throw new Error(n||"Assertion failed: "+u+" != "+s)},om}var r1={exports:{}},vO;function PV(){return vO||(vO=1,typeof Object.create=="function"?r1.exports=function(e,u){u&&(e.super_=u,e.prototype=Object.create(u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:r1.exports=function(e,u){if(u){e.super_=u;var s=function(){};s.prototype=u.prototype,e.prototype=new s,e.prototype.constructor=e}}),r1.exports}var wO;function ki(){if(wO)return rr;wO=1;var t=_y(),e=PV();rr.inherits=e;function u(j,U){return(j.charCodeAt(U)&64512)!==55296||U<0||U+1>=j.length?!1:(j.charCodeAt(U+1)&64512)===56320}function s(j,U){if(Array.isArray(j))return j.slice();if(!j)return[];var M=[];if(typeof j=="string")if(U){if(U==="hex")for(j=j.replace(/[^a-z0-9]+/ig,""),j.length%2!==0&&(j="0"+j),Q=0;Q>6|192,M[q++]=Z&63|128):u(j,Q)?(Z=65536+((Z&1023)<<10)+(j.charCodeAt(++Q)&1023),M[q++]=Z>>18|240,M[q++]=Z>>12&63|128,M[q++]=Z>>6&63|128,M[q++]=Z&63|128):(M[q++]=Z>>12|224,M[q++]=Z>>6&63|128,M[q++]=Z&63|128)}else for(Q=0;Q>>24|j>>>8&65280|j<<8&16711680|(j&255)<<24;return U>>>0}rr.htonl=r;function a(j,U){for(var M="",q=0;q>>0}return Z}rr.join32=c;function d(j,U){for(var M=new Array(j.length*4),q=0,Q=0;q>>24,M[Q+1]=Z>>>16&255,M[Q+2]=Z>>>8&255,M[Q+3]=Z&255):(M[Q+3]=Z>>>24,M[Q+2]=Z>>>16&255,M[Q+1]=Z>>>8&255,M[Q]=Z&255)}return M}rr.split32=d;function h(j,U){return j>>>U|j<<32-U}rr.rotr32=h;function f(j,U){return j<>>32-U}rr.rotl32=f;function p(j,U){return j+U>>>0}rr.sum32=p;function y(j,U,M){return j+U+M>>>0}rr.sum32_3=y;function b(j,U,M,q){return j+U+M+q>>>0}rr.sum32_4=b;function m(j,U,M,q,Q){return j+U+M+q+Q>>>0}rr.sum32_5=m;function g(j,U,M,q){var Q=j[U],Z=j[U+1],K=q+Z>>>0,fe=(K>>0,j[U+1]=K}rr.sum64=g;function v(j,U,M,q){var Q=U+q>>>0,Z=(Q>>0}rr.sum64_hi=v;function _(j,U,M,q){var Q=U+q;return Q>>>0}rr.sum64_lo=_;function w(j,U,M,q,Q,Z,K,fe){var X=0,he=U;he=he+q>>>0,X+=he>>0,X+=he>>0,X+=he>>0}rr.sum64_4_hi=w;function S(j,U,M,q,Q,Z,K,fe){var X=U+q+Z+fe;return X>>>0}rr.sum64_4_lo=S;function A(j,U,M,q,Q,Z,K,fe,X,he){var xe=0,ie=U;ie=ie+q>>>0,xe+=ie>>0,xe+=ie>>0,xe+=ie>>0,xe+=ie>>0}rr.sum64_5_hi=A;function D(j,U,M,q,Q,Z,K,fe,X,he){var xe=U+q+Z+fe+he;return xe>>>0}rr.sum64_5_lo=D;function L(j,U,M){var q=U<<32-M|j>>>M;return q>>>0}rr.rotr64_hi=L;function E(j,U,M){var q=j<<32-M|U>>>M;return q>>>0}rr.rotr64_lo=E;function O(j,U,M){return j>>>M}rr.shr64_hi=O;function P(j,U,M){var q=j<<32-M|U>>>M;return q>>>0}return rr.shr64_lo=P,rr}var um={},SO;function vy(){if(SO)return um;SO=1;var t=ki(),e=_y();function u(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return um.BlockHash=u,u.prototype.update=function(n,r){if(n=t.toArray(n,r),this.pending?this.pending=this.pending.concat(n):this.pending=n,this.pendingTotal+=n.length,this.pending.length>=this._delta8){n=this.pending;var a=n.length%this._delta8;this.pending=n.slice(n.length-a,n.length),this.pending.length===0&&(this.pending=null),n=t.join32(n,0,n.length-a,this.endian);for(var o=0;o>>24&255,o[l++]=n>>>16&255,o[l++]=n>>>8&255,o[l++]=n&255}else for(o[l++]=n&255,o[l++]=n>>>8&255,o[l++]=n>>>16&255,o[l++]=n>>>24&255,o[l++]=0,o[l++]=0,o[l++]=0,o[l++]=0,c=8;c>>3}Fi.g0_256=l;function c(d){return e(d,17)^e(d,19)^d>>>10}return Fi.g1_256=c,Fi}var cm,AO;function DV(){if(AO)return cm;AO=1;var t=ki(),e=vy(),u=LF(),s=t.rotl32,n=t.sum32,r=t.sum32_5,a=u.ft_1,o=e.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return t.inherits(c,o),cm=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=function(h,f){for(var p=this.W,y=0;y<16;y++)p[y]=h[f+y];for(;ythis.blockSize&&(n=new this.Hash().update(n).digest()),e(n.length<=this.blockSize);for(var r=n.length;ru.someTerms(A,D=>D.termType==="BlankNode"||D.termType==="Quad"&&u.getTermsNested(D).some(L=>L.termType==="BlankNode")))}Mt.getQuadsWithBlankNodes=c;function d(S){return S.filter(A=>u.everyTerms(A,D=>D.termType!=="BlankNode"&&!(D.termType==="Quad"&&u.getTermsNested(D).some(L=>L.termType==="BlankNode"))))}Mt.getQuadsWithoutBlankNodes=d;function h(S){const A={};for(const D of S)A[JSON.stringify(e.quadToStringQuad(D))]=!0;return A}Mt.indexGraph=h;function f(S){return Object.keys(S).map(A=>e.stringQuadToQuad(JSON.parse(A)))}Mt.deindexGraph=f;function p(S){return f(h(S))}Mt.uniqGraph=p;function y(S){return u.uniqTerms(S.map(A=>u.getBlankNodes(u.getTermsNested(A))).reduce((A,D)=>A.concat(D),[]))}Mt.getGraphBlankNodes=y;function b(S,A,D){const L=Object.assign({},D),E={};let O=!0;for(;O;){const P=Object.keys(L).length;for(const U of A){const M=e.termToString(U);if(!L[M]){const[q,Q]=m(U,S,L);q&&(L[M]=Q),E[M]=Q}}const j={};for(const U in E){const M=E[U];j[M]===void 0?j[M]=U:j[M]=!1}for(const U in j){const M=j[U];M&&(L[M]=U)}O=P!==Object.keys(L).length}return[L,E]}Mt.hashTerms=b;function m(S,A,D){const L=[];let E=!0;for(const P of A){const j=u.getTermsNested(P);if(j.some(U=>U.equals(S))){L.push(v(P,D,S));for(const U of j)!w(U,D)&&!U.equals(S)&&(E=!1)}}const O=g(L.sort().join(""));return[E,O]}Mt.hashTerm=m;function g(S){return t.sha1().update(S).digest("hex")}Mt.sha1hex=g;function v(S,A,D){return u.getTerms(S).map(L=>_(L,A,D)).join("|")}Mt.quadToSignature=v;function _(S,A,D){return S.equals(D)?"@self":S.termType==="BlankNode"?A[e.termToString(S)]||"@blank":S.termType==="Quad"?`<${v(S,A,D)}>`:e.termToString(S)}Mt.termToSignature=_;function w(S,A){return S.termType!=="BlankNode"&&!(S.termType==="Quad"&&u.getTermsNested(S).some(D=>!w(D,A)))||!!A[e.termToString(S)]}return Mt.isTermGrounded=w,Mt}var jO;function qV(){return jO||(jO=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(FV(),t)}(am)),am}var LO;function BV(){if(LO)return bs;LO=1;var t=I&&I.__createBinding||(Object.create?function(W,we,Te,Le){Le===void 0&&(Le=Te);var $e=Object.getOwnPropertyDescriptor(we,Te);(!$e||("get"in $e?!we.__esModule:$e.writable||$e.configurable))&&($e={enumerable:!0,get:function(){return we[Te]}}),Object.defineProperty(W,Le,$e)}:function(W,we,Te,Le){Le===void 0&&(Le=Te),W[Le]=we[Te]}),e=I&&I.__setModuleDefault||(Object.create?function(W,we){Object.defineProperty(W,"default",{enumerable:!0,value:we})}:function(W,we){W.default=we}),u=I&&I.__importStar||function(W){if(W&&W.__esModule)return W;var we={};if(W!=null)for(var Te in W)Te!=="default"&&Object.prototype.hasOwnProperty.call(W,Te)&&t(we,W,Te);return e(we,W),we},s=I&&I.__importDefault||function(W){return W&&W.__esModule?W:{default:W}};Object.defineProperty(bs,"__esModule",{value:!0}),bs.toSparqlJs=bs.toSparql=void 0;const n=qV(),r=er(),a=my(),o=u(gy()),l=s(jb()),c=s(RT()),d=o.types,h=o.expressionTypes;let f;const p=new l.default;function y(W,we={}){return new a.Generator(we).stringify(b(W))}bs.toSparql=y;function b(W){m(),W=ke(W);let we=g(W);return we.type==="group"?we.patterns[0]:we}bs.toSparqlJs=b;function m(){f={project:!1,extend:[],group:[],aggregates:[],order:[]}}function g(W){switch(W.type!==d.EXTEND&&W.type!==d.ORDER_BY&&W.type!==d.GRAPH&&(f.project=!1),W.type){case d.EXPRESSION:return v(W);case d.ASK:return de(W,d.ASK);case d.BGP:return U(W);case d.CONSTRUCT:return M(W);case d.DESCRIBE:return de(W,d.DESCRIBE);case d.DISTINCT:return q(W);case d.EXTEND:return Q(W);case d.FROM:return Z(W);case d.FILTER:return K(W);case d.GRAPH:return fe(W);case d.GROUP:return X(W);case d.JOIN:return he(W);case d.LEFT_JOIN:return xe(W);case d.MINUS:return ie(W);case d.NOP:return{};case d.ORDER_BY:return ae(W);case d.PATH:return Oe(W);case d.PATTERN:return Ne(W);case d.PROJECT:return de(W,d.PROJECT);case d.REDUCED:return $(W);case d.SERVICE:return N(W);case d.SLICE:return R(W);case d.UNION:return T(W);case d.VALUES:return x(W);case d.COMPOSITE_UPDATE:return Ae(W);case d.DELETE_INSERT:return Ie(W);case d.LOAD:return Ee(W);case d.CLEAR:return qe(W);case d.CREATE:return G(W);case d.DROP:return F(W);case d.ADD:return re(W);case d.MOVE:return be(W);case d.COPY:return Re(W)}throw new Error(`Unknown Operation type ${W.type}`)}function v(W){switch(W.expressionType){case h.AGGREGATE:return S(W);case h.EXISTENCE:return A(W);case h.NAMED:return D(W);case h.OPERATOR:return L(W);case h.TERM:return E(W);case h.WILDCARD:return O(W)}throw new Error(`Unknown Expression Operation type ${W.expressionType}`)}function _(W){switch(W.type){case d.ALT:return B(W);case d.INV:return k(W);case d.LINK:return V(W);case d.NPS:return J(W);case d.ONE_OR_MORE_PATH:return z(W);case d.SEQ:return Y(W);case d.ZERO_OR_MORE_PATH:return te(W);case d.ZERO_OR_ONE_PATH:return ce(W)}throw new Error(`Unknown Path type ${W.type}`)}function w(W){return(0,r.termToString)(W)}function S(W){const we={expression:v(W.expression),type:"aggregate",aggregation:W.aggregator,distinct:W.distinct};return W.separator&&(we.separator=W.separator),we}function A(W){return{type:"operation",operator:W.not?"notexists":"exists",args:[{type:"group",patterns:c.default.flatten([g(W.input)])}]}}function D(W){return{type:"functionCall",function:W.name,args:W.args.map(v)}}function L(W){if(W.operator==="desc"){const Te={expression:v(W.args[0])};return Te.descending=!0,Te}const we={type:"operation",operator:W.operator,args:W.args.map(v)};return(we.operator==="in"||we.operator==="notin")&&(we.args=[we.args[0]].concat([we.args.slice(1)])),we}function E(W){return W.term}function O(W){return W.wildcard}function P(W){return Array.isArray(W)?W.length===1?W[0]:{type:"group",patterns:W}:W}function j(W){return W}function U(W){let we=W.patterns.map(Ne);return we.length===0?null:{type:"bgp",triples:we}}function M(W){return{type:"query",prefixes:{},queryType:"CONSTRUCT",template:W.template.map(Ne),where:c.default.flatten([g(W.input)])}}function q(W){let we=g(W.input);return we.patterns[0].distinct=!0,we}function Q(W){return f.project?(f.extend.push(W),g(W.input)):c.default.flatten([g(W.input),{type:"bind",variable:W.variable,expression:v(W.expression)}])}function Z(W){const we=g(W.input);let Te=we;return we.type==="group"&&(Te=we.patterns[0]),Te.from={default:W.default,named:W.named},we}function K(W){return{type:"group",patterns:c.default.flatten([g(W.input),{type:"filter",expression:v(W.expression)}])}}function fe(W){return{type:"graph",patterns:c.default.flatten([g(W.input)]),name:W.name}}function X(W){const we=g(W.input),Te=W.aggregates.map(j);return f.aggregates.push(...Te),f.group.push(...W.variables),we}function he(W){return c.default.flatten(W.input.map(g)).reduce((Te,Le)=>(Le.type!=="bgp"||Te.length==0||Te[Te.length-1].type!=="bgp"?Te.push(Le):Te[Te.length-1].triples.push(...Le.triples),Te),[])}function xe(W){const we={type:"optional",patterns:[g(W.input[1])]};return W.expression&&we.patterns.push({type:"filter",expression:v(W.expression)}),we.patterns=c.default.flatten(we.patterns),c.default.flatten([g(W.input[0]),we])}function ie(W){let we=g(W.input[1]);return we.type==="group"&&(we=we.patterns),Array.isArray(we)||(we=[we]),c.default.flatten([g(W.input[0]),{type:"minus",patterns:we}])}function ae(W){return f.order.push(...W.expressions),g(W.input)}function Oe(W){return{type:"bgp",triples:[{subject:W.subject,predicate:_(W.predicate),object:W.object}]}}function Ne(W){return{subject:W.subject,predicate:W.predicate,object:W.object}}function ge(W,we){let Te=c.default.isSimpleTerm(W)?w(W):W;if(typeof Te=="string"){if(we[Te])return we[Te]}else if(Array.isArray(W))W=W.map(Le=>ge(Le,we));else for(let Le of Object.keys(W))W[Le]=ge(W[Le],we);return W}function de(W,we){const Te={type:"query",prefixes:{}},Le=Te;let $e;we===d.PROJECT?(Te.queryType="SELECT",$e=W.variables):we===d.ASK?Te.queryType="ASK":we===d.DESCRIBE&&(Te.queryType="DESCRIBE",$e=W.terms);const We=f.extend,tt=f.group,lt=f.aggregates,ut=f.order;m(),f.project=!0;let le=c.default.flatten([g(W.input)]);le.length===1&&le[0].type==="group"&&(le=le[0].patterns),Te.where=le;let C={};for(let De of f.aggregates)C[w(De.variable)]=v(De);let ee={};for(let De=f.extend.length-1;De>=0;--De){let Ue=f.extend[De];ee[w(Ue.variable)]=ge(v(Ue.expression),C)}f.group.length>0&&(Le.group=f.group.map(De=>{let Ue=w(De);if(ee[Ue]){let Fe=ee[Ue];return delete ee[Ue],{variable:De,expression:Fe}}return{expression:De}})),f.order.length>0&&(Le.order=f.order.map(g).map(De=>De.descending?De:{expression:De})),$e&&(Le.variables=$e.map(De=>{let Ue=w(De);if(ee[Ue]){let Fe=ee[Ue];return delete ee[Ue],{variable:De,expression:Fe}}return De}),Le.variables.length===0&&(Le.variables=[new a.Wildcard]));const pe=Object.entries(ee);if(pe.length>0){Le.where=Le.where||[];for(const[De,Ue]of pe)Le.where.push({type:"bind",variable:(0,r.stringToTerm)(De),expression:Ue})}if(Te.where.length>0&&Te.where[Te.where.length-1].type==="filter"){const De=Te.where[Te.where.length-1];oe(De,Object.keys(C))&&(Le.having=c.default.flatten([ge(De.expression,C)]),Te.where.splice(-1))}return f.extend=We,f.group=tt,f.aggregates=lt,f.order=ut,{type:"group",patterns:[Le]}}function oe(W,we){return c.default.isSimpleTerm(W)?we.indexOf(w(W))>=0:Array.isArray(W)?W.some(Te=>oe(Te,we)):W===Object(W)?Object.keys(W).some(Te=>oe(W[Te],we)):we.indexOf(W)>=0}function $(W){let we=g(W.input);return we.patterns[0].reduced=!0,we}function N(W){let we=g(W.input);return we.type==="group"&&(we=we.patterns),Array.isArray(we)||(we=[we]),{type:"service",name:W.name,silent:W.silent,patterns:we}}function R(W){let we=g(W.input),Te=we;return we.type&&we.type==="group"&&(Te=we.patterns[0]),W.start!==0&&(Te.offset=W.start),W.length!==void 0&&(Te.limit=W.length),we}function T(W){return{type:"union",patterns:W.input.map(g).map(P)}}function x(W){return{type:"values",values:W.bindings.map(we=>{let Te={};for(let Le of W.variables){let $e=`?${Le.value}`;we[$e]?Te[$e]=we[$e]:Te[$e]=void 0}return Te})}}function B(W){const we=W.input.map(_);return we.every(Te=>"pathType"in Te&&Te.pathType==="!")?{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:c.default.flatten(we.map(Te=>Te.items))}]}:{type:"path",pathType:"|",items:we}}function k(W){if(W.path.type===d.NPS){const we=W.path.iris.map(Te=>({type:"path",pathType:"^",items:[Te]}));return we.length<=1?{type:"path",pathType:"!",items:we}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:we}]}}return{type:"path",pathType:"^",items:[_(W.path)]}}function V(W){return W.iri}function J(W){return W.iris.length<=1?{type:"path",pathType:"!",items:W.iris}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:W.iris}]}}function z(W){return{type:"path",pathType:"+",items:[_(W.path)]}}function Y(W){return{type:"path",pathType:"/",items:W.input.map(_)}}function te(W){return{type:"path",pathType:"*",items:[_(W.path)]}}function ce(W){return{type:"path",pathType:"?",items:[_(W.path)]}}function Ae(W){const we=W.updates.map(Te=>g(Te).updates[0]);return{prefixes:{},type:"update",updates:we}}function Ie(W){var we;let Te=W.where,Le;if(Te&&Te.type===d.FROM){let We=Te;Te=We.input,Le={default:We.default,named:We.named}}const $e=[{updateType:"insertdelete",delete:Qe(W.delete||[]),insert:Qe(W.insert||[])}];if(Le&&($e[0].using=Le),!Te||Te.type===d.BGP&&Te.patterns.length===0)$e[0].where=[];else{const We=[];let tt=g(me(Te,We));if(tt.type==="group"?$e[0].where=tt.patterns:$e[0].where=[tt],We.length>0){if(We.length!==1)throw new Error("This is unexpected and might indicate an error in graph handling for updates.");((we=We[0])===null||we===void 0?void 0:we.value)!==""&&($e[0].where=[{type:"graph",patterns:$e[0].where,name:We[0]}])}}return!W.delete&&!W.where?($e[0].updateType="insert",delete $e[0].delete,delete $e[0].where):!W.insert&&!W.where?(delete $e[0].insert,delete $e[0].where,W.delete.some(We=>We.subject.termType==="Variable"||We.predicate.termType==="Variable"||We.object.termType==="Variable")?$e[0].updateType="deletewhere":$e[0].updateType="delete"):!W.insert&&W.where&&W.where.type==="bgp"&&(0,n.isomorphic)(W.delete,W.where.patterns)&&(delete $e[0].where,$e[0].updateType="deletewhere"),{prefixes:{},type:"update",updates:$e}}function Ee(W){const we=[{type:"load",silent:!!W.silent,source:W.source}];return W.destination&&(we[0].destination=W.destination),{prefixes:{},type:"update",updates:we}}function qe(W){return H(W,"clear")}function G(W){return H(W,"create")}function F(W){return H(W,"drop")}function H(W,we){const Te=[{type:we,silent:!!W.silent}];return W.source==="DEFAULT"?Te[0].graph={default:!0}:W.source==="NAMED"?Te[0].graph={named:!0}:W.source==="ALL"?Te[0].graph={all:!0}:Te[0].graph={type:"graph",name:W.source},{prefixes:{},type:"update",updates:Te}}function re(W){return Ce(W,"add")}function be(W){return Ce(W,"move")}function Re(W){return Ce(W,"copy")}function Ce(W,we){const Te=[{type:we,silent:!!W.silent}];return Te[0].source=W.source==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:W.source},Te[0].destination=W.destination==="DEFAULT"?{type:"graph",default:!0}:{type:"graph",name:W.destination},{prefixes:{},type:"update",updates:Te}}function Qe(W){if(!W)return[];const we={};return W.forEach(Te=>{const Le=Te.graph.value;we[Le]||(we[Le]=[]),we[Le].push(Te)}),Object.keys(we).map(Te=>Te===""?{type:"bgp",triples:we[Te].map(Ne)}:{type:"graph",triples:we[Te].map(Ne),name:we[Te][0].graph})}function ke(W){return me(W,[])}function me(W,we){if(Array.isArray(W))return W.map(tt=>me(tt,we));if(!W.type||W.type===d.DELETE_INSERT)return W;if((W.type===d.PATTERN||W.type===d.PATH)&&W.graph)return we.push(W.graph),W.graph.name!==""?W.type===d.PATTERN?p.createPattern(W.subject,W.predicate,W.object):p.createPath(W.subject,W.predicate,W.object):W;const Te={},Le={},$e={};for(let tt of Object.keys(W)){const lt=[];if(Te[tt]=me(W[tt],lt),lt.length>0){Le[tt]=lt;for(const ut of lt)$e[ut.value]=ut}}const We=Object.keys($e);if(We.length>0)if(We.length===1&&![d.PROJECT,d.SERVICE].includes(W.type))we.push($e[We[0]]);else{if(W.type===d.BGP)return Se(W,Le.patterns);for(let tt of Object.keys(Le)){const lt=Te[tt];Array.isArray(lt)?Te[tt]=lt.map((ut,le)=>Le[tt][0].value===""?ut:p.createGraph(ut,Le[tt][le])):Le[tt][0].value!==""&&(Te[tt]=p.createGraph(lt,Le[tt][0]))}}return Te}function Se(W,we){var Te;const Le={};for(let tt=0;ttd.termType==="Variable")?(0,u.mapTermsNested)(l,d=>a(d,c)):l}ys.materializeTerm=a;function o(l,c,d,h={}){return h={strictTargetVariables:"strictTargetVariables"in h?h.strictTargetVariables:!1,bindFilter:"bindFilter"in h?h.bindFilter:!0},s.Util.mapOperation(l,{path(f,p){return{recurse:!1,result:Object.assign(p.createPath(a(f.subject,c),f.predicate,a(f.object,c),a(f.graph,c)),{metadata:f.metadata})}},pattern(f,p){return{recurse:!1,result:Object.assign(p.createPattern(a(f.subject,c),a(f.predicate,c),a(f.object,c),a(f.graph,c)),{metadata:f.metadata})}},extend(f){if(c.has(f.variable)){if(h.strictTargetVariables)throw new Error(`Tried to bind variable ${(0,e.termToString)(f.variable)} in a BIND operator.`);return{recurse:!0,result:o(f.input,c,d,h)}}return{recurse:!0,result:f}},group(f,p){if(h.strictTargetVariables){for(const b of f.variables)if(c.has(b))throw new Error(`Tried to bind variable ${(0,e.termToString)(b)} in a GROUP BY operator.`);return{recurse:!0,result:f}}const y=f.variables.filter(b=>!c.has(b));return{recurse:!0,result:p.createGroup(f.input,y,f.aggregates)}},project(f,p){if(h.strictTargetVariables){for(const m of f.variables)if(c.has(m))throw new Error(`Tried to bind variable ${(0,e.termToString)(m)} in a SELECT operator.`);return{recurse:!0,result:f}}const y=f.variables.filter(m=>!c.has(m)),b=d.bindings(f.variables.map(m=>{const g=c.get(m);if(g)return[m,g]}).filter(Boolean));return{recurse:!1,result:p.createProject(o(f.input,b,d,h),y)}},values(f,p){if(h.strictTargetVariables){for(const y of f.variables)if(c.has(y))throw new Error(`Tried to bind variable ${(0,e.termToString)(y)} in a VALUES operator.`)}else{const y=f.variables.filter(m=>!c.has(m)),b=f.bindings.map(m=>{const g={...m};let v=!0;return c.forEach((_,w)=>{const S=(0,e.termToString)(w);S in g&&(_.equals(g[S])||(v=!1),delete g[S])}),v?g:void 0}).filter(Boolean);return{recurse:!0,result:p.createValues(y,b)}}return{recurse:!1,result:f}},expression(f,p){if(!h.bindFilter)return{recurse:!1,result:f};if(f.expressionType==="term")return{recurse:!1,result:p.createTermExpression(a(f.term,c))};if(f.expressionType==="operator")return f.operator==="bound"&&f.args.length===1&&f.args[0].expressionType==="term"&&[...c.keys()].some(y=>f.args[0].term.equals(y))?{recurse:!1,result:p.createTermExpression(r)}:{recurse:!0,result:f};if(f.expressionType==="aggregate"&&"variable"in f&&c.has(f.variable)){if(h.strictTargetVariables)throw new Error(`Tried to bind ${(0,e.termToString)(f.variable)} in a ${f.aggregator} aggregate.`);return{recurse:!0,result:f}}return{recurse:!0,result:f}}})}return ys.materializeOperation=o,ys}var qO;function BF(){if(qO)return mu;qO=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.ActorQueryOperation=void 0;const t=Lt,e=ot,u=ET(),s=qF();let n=0,r=class qi extends e.Actor{constructor(o){super(o)}static getSafeBindings(o){return qi.validateQueryOutput(o,"bindings"),o}static getSafeQuads(o){return qi.validateQueryOutput(o,"quads"),o}static getSafeBoolean(o){return qi.validateQueryOutput(o,"boolean"),o}static getSafeVoid(o){return qi.validateQueryOutput(o,"void"),o}static validateQueryOutput(o,l){if(o.type!==l)throw new Error(`Invalid query output type: Expected '${l}' but got '${o.type}'`)}static getBaseExpressionContext(o){const l=o.get(t.KeysInitQuery.queryTimestamp),c=o.get(t.KeysInitQuery.baseIRI),d=o.get(t.KeysInitQuery.functionArgumentsCache)??{};if(o.has(t.KeysInitQuery.extensionFunctionCreator)&&o.has(t.KeysInitQuery.extensionFunctions))throw new Error("Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context");let h=o.get(t.KeysInitQuery.extensionFunctionCreator);const f=o.get(t.KeysInitQuery.extensionFunctions);return f&&(h=p=>f[p.value]),{now:l,baseIRI:c,extensionFunctionCreator:h,functionArgumentsCache:d}}static getExpressionContext(o,l){return{...this.getBaseExpressionContext(o),bnode:c=>new u.BlankNodeBindingsScoped(c??`BNODE_${n++}`)}}static getAsyncExpressionContext(o,l,c){return{...this.getBaseExpressionContext(o),bnode:d=>Promise.resolve(new u.BlankNodeBindingsScoped(d??`BNODE_${n++}`)),exists:qi.createExistenceResolver(o,l,c)}}static createExistenceResolver(o,l,c){return async(d,h)=>{const f=(0,s.materializeOperation)(d.input,h,c),p=await l.mediate({operation:f,context:o}),y=qi.getSafeBindings(p);return d.not!==((await y.bindingsStream.take(1).toArray()).length===1)}}static throwOnReadOnly(o){if(o.get(t.KeysQueryOperation.readOnly))throw new Error("Attempted a write operation in read-only mode")}static getOperationSource(o){var l;return(l=o.metadata)==null?void 0:l.scopedSource}static assignOperationSource(o,l){return o={...o},o.metadata=o.metadata?{...o.metadata}:{},o.metadata.scopedSource=l,o}static removeOperationSource(o){var l;(l=o.metadata)==null||delete l.scopedSource,o.metadata&&Object.keys(o.metadata).length===0&&delete o.metadata}static doesShapeAcceptOperation(o,l,c){return o.type==="conjunction"?o.children.every(d=>qi.doesShapeAcceptOperation(d,l,c)):o.type==="disjunction"?o.children.some(d=>qi.doesShapeAcceptOperation(d,l,c)):o.type==="arity"?qi.doesShapeAcceptOperation(o.child,l,c):((c==null?void 0:c.joinBindings)&&!o.joinBindings)??((c==null?void 0:c.filterBindings)&&!o.filterBindings)?!1:o.operation.operationType==="type"?o.operation.type==="project"||o.operation.type===l.type:o.operation.pattern.type===l.type}};return mu.ActorQueryOperation=r,mu}var xu={},bm={},Iu={},BO;function UV(){if(BO)return Iu;BO=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.MetadataValidationState=void 0;let t=class{constructor(){this.invalidateListeners=[],this.valid=!0}addInvalidateListener(u){this.invalidateListeners.push(u)}invalidate(){if(this.valid){this.valid=!1;for(const u of this.invalidateListeners)u()}}};return Iu.MetadataValidationState=t,Iu}var kn={},UO;function HV(){if(UO)return kn;UO=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.cachifyMetadata=kn.validateMetadataBindings=kn.validateMetadataQuads=kn.getMetadataBindings=kn.getMetadataQuads=void 0;function t(r){return n(()=>new Promise((a,o)=>{r.getProperty("metadata",l=>a(l)),r.on("error",o)}).then(a=>u(a)))}kn.getMetadataQuads=t;function e(r){return n(()=>new Promise((a,o)=>{r.getProperty("metadata",l=>a(l)),r.on("error",o)}).then(a=>("canContainUndefs"in a||(a.canContainUndefs=!1),s(a))))}kn.getMetadataBindings=e;function u(r){for(const a of["cardinality"])if(!(a in r))throw new Error(`Invalid metadata: missing ${a} in ${JSON.stringify(r)}`);return r}kn.validateMetadataQuads=u;function s(r){for(const a of["cardinality","canContainUndefs","variables"])if(!(a in r))throw new Error(`Invalid metadata: missing ${a} in ${JSON.stringify(r)}`);return r}kn.validateMetadataBindings=s;function n(r){let a;return()=>(a||(a=r(),a.then(o=>o.state.addInvalidateListener(()=>{a=void 0})).catch(()=>{})),a)}return kn.cachifyMetadata=n,kn}var HO;function jn(){return HO||(HO=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(UV(),t),u(HV(),t)}(bm)),bm}var $O;function UF(){if($O)return xu;$O=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.ActorQueryOperationTyped=void 0;const t=Lt,e=jn(),u=BF();let s=class extends u.ActorQueryOperation{constructor(r,a){if(super({...r,operationName:a}),!this.operationName)throw new Error('A valid "operationName" argument must be provided.')}async test(r){if(!r.operation)throw new Error("Missing field 'operation' in a query operation action.");if(r.operation.type!==this.operationName)throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${r.operation.type}`);const a=r.operation;return this.testOperation(a,r.context)}async run(r){const a=r.context.get(t.KeysInitQuery.physicalQueryPlanLogger);a&&(a.logOperation(r.operation.type,void 0,r.operation,r.context.get(t.KeysInitQuery.physicalQueryPlanNode),this.name,{}),r.context=r.context.set(t.KeysInitQuery.physicalQueryPlanNode,r.operation));const o=r.operation,l=r.context.set(t.KeysQueryOperation.operation,o),c=await this.runOperation(o,l);return"metadata"in c&&(c.metadata=(0,e.cachifyMetadata)(c.metadata)),c}};return xu.ActorQueryOperationTyped=s,xu}var Pu={},QO;function $V(){if(QO)return Pu;QO=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.ActorQueryOperationTypedMediated=void 0;const t=UF();let e=class extends t.ActorQueryOperationTyped{constructor(s,n){super(s,n)}};return Pu.ActorQueryOperationTypedMediated=e,Pu}var Du={},VO;function QV(){if(VO)return Du;VO=1,Object.defineProperty(Du,"__esModule",{value:!0}),Du.BusQueryOperation=void 0;const t=ot;let e=class extends t.BusIndexed{constructor(s){super({...s,actorIdentifierFields:["operationName"],actionIdentifierFields:["operation","type"]})}};return Du.BusQueryOperation=e,Du}var Nu={},gm={},n1={exports:{}},kO;function wy(){if(kO)return n1.exports;kO=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(S,A,D){return Function.prototype.apply.call(S,A,D)},u;t&&typeof t.ownKeys=="function"?u=t.ownKeys:Object.getOwnPropertySymbols?u=function(S){return Object.getOwnPropertyNames(S).concat(Object.getOwnPropertySymbols(S))}:u=function(S){return Object.getOwnPropertyNames(S)};function s(w){console&&console.warn&&console.warn(w)}var n=Number.isNaN||function(S){return S!==S};function r(){r.init.call(this)}n1.exports=r,n1.exports.once=g,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var a=10;function o(w){if(typeof w!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof w)}Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(w){if(typeof w!="number"||w<0||n(w))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+w+".");a=w}}),r.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(S){if(typeof S!="number"||S<0||n(S))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+S+".");return this._maxListeners=S,this};function l(w){return w._maxListeners===void 0?r.defaultMaxListeners:w._maxListeners}r.prototype.getMaxListeners=function(){return l(this)},r.prototype.emit=function(S){for(var A=[],D=1;D0&&(O=A[0]),O instanceof Error)throw O;var P=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw P.context=O,P}var j=E[S];if(j===void 0)return!1;if(typeof j=="function")e(j,this,A);else for(var U=j.length,M=y(j,U),D=0;D0&&O.length>L&&!O.warned){O.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=w,P.type=S,P.count=O.length,s(P)}return w}r.prototype.addListener=function(S,A){return c(this,S,A,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(S,A){return c(this,S,A,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(w,S,A){var D={fired:!1,wrapFn:void 0,target:w,type:S,listener:A},L=d.bind(D);return L.listener=A,D.wrapFn=L,L}r.prototype.once=function(S,A){return o(A),this.on(S,h(this,S,A)),this},r.prototype.prependOnceListener=function(S,A){return o(A),this.prependListener(S,h(this,S,A)),this},r.prototype.removeListener=function(S,A){var D,L,E,O,P;if(o(A),L=this._events,L===void 0)return this;if(D=L[S],D===void 0)return this;if(D===A||D.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete L[S],L.removeListener&&this.emit("removeListener",S,D.listener||A));else if(typeof D!="function"){for(E=-1,O=D.length-1;O>=0;O--)if(D[O]===A||D[O].listener===A){P=D[O].listener,E=O;break}if(E<0)return this;E===0?D.shift():b(D,E),D.length===1&&(L[S]=D[0]),L.removeListener!==void 0&&this.emit("removeListener",S,P||A)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(S){var A,D,L;if(D=this._events,D===void 0)return this;if(D.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):D[S]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete D[S]),this;if(arguments.length===0){var E=Object.keys(D),O;for(L=0;L=0;L--)this.removeListener(S,A[L]);return this};function f(w,S,A){var D=w._events;if(D===void 0)return[];var L=D[S];return L===void 0?[]:typeof L=="function"?A?[L.listener||L]:[L]:A?m(L):y(L,L.length)}r.prototype.listeners=function(S){return f(this,S,!0)},r.prototype.rawListeners=function(S){return f(this,S,!1)},r.listenerCount=function(w,S){return typeof w.listenerCount=="function"?w.listenerCount(S):p.call(w,S)},r.prototype.listenerCount=p;function p(w){var S=this._events;if(S!==void 0){var A=S[w];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}r.prototype.eventNames=function(){return this._eventsCount>0?u(this._events):[]};function y(w,S){for(var A=new Array(S),D=0;Dt.then(a),s=typeof setImmediate=="function"?setImmediate:a=>setTimeout(a,0);let n=0,r=null;return a=>{r!==null?r.push(a):++n<100?u(a):(r=[a],s(()=>{for(const o of r)u(o);r=null,n=0}))}}return ju.createTaskScheduler=e,ju}var WO;function Nt(){return WO||(WO=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isIterator=t.isIterable=t.isSourceExpression=t.isPromise=t.isEventEmitter=t.isFunction=t.range=t.union=t.fromIterable=t.fromIterator=t.fromArray=t.single=t.empty=t.wrap=t.WrappingIterator=t.ClonedIterator=t.UnionIterator=t.MultiTransformIterator=t.SimpleTransformIterator=t.TransformIterator=t.BufferedIterator=t.MappingIterator=t.DESTINATION=t.identity=t.IntegerIterator=t.ArrayIterator=t.SingletonIterator=t.EmptyIterator=t.AsyncIterator=t.DESTROYED=t.ENDED=t.CLOSED=t.CLOSING=t.OPEN=t.INIT=t.setTaskScheduler=t.getTaskScheduler=t.scheduleTask=t.LinkedList=void 0;const e=wy(),u=VV();Object.defineProperty(t,"LinkedList",{enumerable:!0,get:function(){return u.LinkedList}});let n=kV().createTaskScheduler();function r(R){n(R)}t.scheduleTask=r;function a(){return n}t.getTaskScheduler=a;function o(R){n=R}t.setTaskScheduler=o,t.INIT=1,t.OPEN=2,t.CLOSING=4,t.CLOSED=8,t.ENDED=16,t.DESTROYED=32;class l extends e.EventEmitter{constructor(T=t.OPEN){super(),this._readable=!1,this._state=T,this.on("newListener",c)}_changeState(T,x=!1){const B=T>this._state&&this._statethis.emit("end")):this.emit("end"))),B}read(){return null}forEach(T,x){this.on("data",Oe(T,x))}close(){this._changeState(t.CLOSED)&&this._endAsync()}destroy(T){this.done||this._destroy(T,x=>{T=T||x,T&&this.emit("error",T),this._end(!0)})}_destroy(T,x){x()}_end(T=!1){this._changeState(T?t.DESTROYED:t.ENDED)&&(this._readable=!1,this.removeAllListeners("readable"),this.removeAllListeners("data"),this.removeAllListeners("end"))}_endAsync(){n(()=>this._end())}get readable(){return this._readable}set readable(T){T=!!T&&!this.done,this._readable!==T&&(this._readable=T,T&&n(()=>this.emit("readable")))}get closed(){return this._state>=t.CLOSING}get ended(){return this._state===t.ENDED}get destroyed(){return this._state===t.DESTROYED}get done(){return this._state>=t.ENDED}toString(){const T=this._toStringDetails();return`[${this.constructor.name}${T?` ${T}`:""}]`}_toStringDetails(){return""}toArray(T){const x=[],B=typeof(T==null?void 0:T.limit)=="number"?T.limit:1/0;return this.ended||B<=0?Promise.resolve(x):new Promise((k,V)=>{const J=()=>k(x),z=Y=>{x.push(Y),x.length>=B&&(this.removeListener("error",V),this.removeListener("data",z),this.removeListener("end",J),k(x))};this.on("error",V),this.on("data",z),this.on("end",J)})}getProperty(T,x){const B=this._properties;if(!x)return B&&B[T];if(B&&T in B)n(()=>x(B[T]));else{let k;(k=this._propertyCallbacks)||(this._propertyCallbacks=k=Object.create(null)),T in k?k[T].push(x):k[T]=[x]}}setProperty(T,x){const B=this._properties||(this._properties=Object.create(null));B[T]=x;const k=this._propertyCallbacks||{},V=k[T];if(V){delete k[T],n(()=>{for(const J of V)J(x)});for(T in k)return;delete this._propertyCallbacks}}getProperties(){const T=this._properties,x={};for(const B in T)x[B]=T[B];return x}setProperties(T){for(const x in T)this.setProperty(x,T[x])}copyProperties(T,x){for(const B of x)T.getProperty(B,k=>this.setProperty(B,k))}transform(T){return new O(this,T)}map(T,x){return new g(this,Oe(T,x))}filter(T,x){return this.map(function(B){return T.call(x||this,B)?B:null})}uniq(T=m){const x=new Set;return this.filter(function(B){const k=T.call(this,B);return x.has(k)?!1:(x.add(k),!0)})}prepend(T){return this.transform({prepend:T})}append(T){return this.transform({append:T})}surround(T,x){return this.transform({prepend:T,append:x})}skip(T){return this.map(x=>T-- >0?null:x)}take(T){return this.transform({limit:T})}range(T,x){return this.transform({offset:T,limit:Math.max(x-T+1,0)})}clone(){return new M(this)}[Symbol.asyncIterator](){const T=this;let x=null,B=null,k=null;T.addListener("readable",V),T.addListener("end",V),T.addListener("error",J);function V(){if(x!==null)if(k!==null)J(k);else if(T.done)x({done:!0,value:void 0}),x=B=null,z();else{const Y=T.read();Y!==null&&(x({done:!1,value:Y}),x=B=null)}}function J(Y){B!==null?(B(Y),x=B=k=null,z()):k===null&&(k=Y)}function z(){T.removeListener("readable",V),T.removeListener("end",V),T.removeListener("error",J)}return{next(){return new Promise((Y,te)=>{x=Y,B=te,V()})}}}}t.AsyncIterator=l;function c(R){R==="data"&&(this.removeListener("newListener",c),h(this,"readable",d),this.readable&&n(()=>d.call(this)))}function d(){let R;for(;this.listenerCount("data")!==0&&(R=this.read())!==null;)this.emit("data",R);this.listenerCount("data")===0&&!this.done&&(this.removeListener("readable",d),h(this,"newListener",c))}function h(R,T,x){R.listeners(T).includes(x)||R.on(T,x)}class f extends l{constructor(){super(),this._changeState(t.ENDED,!0)}}t.EmptyIterator=f;class p extends l{constructor(T){super(),this._item=T,T===null?this.close():this.readable=!0}read(){const T=this._item;return this._item=null,this.close(),T}_toStringDetails(){return this._item===null?"":`(${this._item})`}}t.SingletonIterator=p;class y extends l{constructor(T=[],{autoStart:x=!0,preserve:B=!0}={}){super();const k=B||!Array.isArray(T)?[...T]:T;this._index=0,this._sourceStarted=x!==!1,this._truncateThreshold=B?-1:64,this._sourceStarted&&k.length===0?this.close():this._buffer=k,this.readable=!0}read(){this._sourceStarted||(this._sourceStarted=!0);let T=null;return this._buffer&&(this._index=x&&this.close(),Promise.resolve(V)}}t.ArrayIterator=y;class b extends l{constructor({start:T=0,step:x=1,end:B}={}){super(),Number.isFinite(T)&&(T=Math.trunc(T)),this._next=T,Number.isFinite(x)&&(x=Math.trunc(x)),this._step=x;const k=x>=0,V=k?1/0:-1/0;Number.isFinite(B)?B=Math.trunc(B):B!==-V&&(B=V),this._last=B,!Number.isFinite(T)||(k?T>B:T=0?k>B:kthis._init(x)),this._sourceStarted=x!==!1}get maxBufferSize(){return this._maxBufferSize}set maxBufferSize(T){T!==1/0&&(T=Number.isFinite(T)?Math.max(Math.trunc(T),1):4),this._maxBufferSize!==T&&(this._maxBufferSize=T,this._state===t.OPEN&&this._fillBuffer())}_init(T){let x=!1;this._reading=!0,this._begin(()=>{if(x)throw new Error("done callback called multiple times");x=!0,this._reading=!1,this._changeState(t.OPEN),T?this._fillBufferAsync():this.readable=!0})}_begin(T){T()}read(){if(this.done)return null;this._sourceStarted||(this._sourceStarted=!0);const T=this._buffer;let x;return T.empty?(x=null,this.readable=!1):x=T.shift(),!this._reading&&T.length0&&(this._pushedCount=0,this._reading=!0,this._read(T,()=>{if(!T)throw new Error("done callback called multiple times");T=0,this._reading=!1,this.closed?this._completeClose():this._pushedCount&&(this.readable=!0,this._buffer.length{this._reading=!1,this._fillBuffer()}))}close(){this._reading?this._changeState(t.CLOSING):this._completeClose()}_completeClose(){this._changeState(t.CLOSED)&&(this._reading=!0,this._flush(()=>{if(!this._reading)throw new Error("done callback called multiple times");this._reading=!1,this._buffer.empty&&this._endAsync()}))}_destroy(T,x){this._buffer.clear(),x()}_flush(T){T()}_toStringDetails(){const T=this._buffer;return`{${T.empty?"":`next: ${T.first}, `}buffer: ${T.length}}`}}t.BufferedIterator=_;class w extends _{constructor(T,x=T||{}){super(x),this._boundPush=B=>this._push(B),oe(T)||(T=x.source),ge(T)?this.source=T:T&&(this._createSource=de(T)?()=>T:T,this._sourceStarted&&this._loadSourceAsync()),this._optional=!!x.optional,this._destroySource=x.destroySource!==!1}get source(){return Ne(this._createSource)&&this._loadSourceAsync(),this._source}set source(T){const x=this._source=this._validateSource(T);x[t.DESTINATION]=this,this.done?this._destroySource&&x.destroy():x.done?this.close():(x.on("end",L),x.on("readable",E),x.on("error",A))}_loadSourceAsync(){Ne(this._createSource)&&(Promise.resolve(this._createSource()).then(T=>{delete this._createSource,this.source=T,this._fillBuffer()},T=>this.emit("error",T)),this._createSource=null)}_validateSource(T,x=!1){if(this._source||typeof this._createSource<"u")throw new Error("The source cannot be changed after it has been set");return v(T,x)}_read(T,x){const B=()=>{this._pushedCountthis._readAndTransform(B,x)):x()};this._readAndTransform(B,x)}_readAndTransform(T,x){let B;const k=this.source;!k||k.done||(B=k.read())===null?x():this._optional?this._optionalTransform(B,T):this._transform(B,T,this._boundPush)}_optionalTransform(T,x){const B=this._pushedCount;this._transform(T,()=>{B===this._pushedCount&&this._push(T),x()},this._boundPush)}_transform(T,x,B){B(T),x()}_closeWhenDone(){this.close()}_end(T){const x=this._source;x&&(x.removeListener("end",L),x.removeListener("error",A),x.removeListener("readable",E),delete x[t.DESTINATION],this._destroySource&&x.destroy()),super._end(T)}}t.TransformIterator=w;function S(){this[t.DESTINATION].readable=!0}function A(R){this[t.DESTINATION].emit("error",R)}function D(){this[t.DESTINATION].close()}function L(){this[t.DESTINATION]._closeWhenDone()}function E(){this[t.DESTINATION]._sourceStarted!==!1&&this[t.DESTINATION]._fillBuffer()}class O extends w{constructor(T,x){if(super(T,x),this._offset=0,this._limit=1/0,this._filter=B=>!0,x=x||(oe(T)?null:T),x){const B=Ne(x)?x:x.transform,{limit:k,offset:V,filter:J,map:z,prepend:Y,append:te}=x;V===1/0||k===-1/0?this._limit=0:(Number.isFinite(V)&&(this._offset=Math.max(Math.trunc(V),0)),Number.isFinite(k)&&(this._limit=Math.max(Math.trunc(k),0)),Ne(J)&&(this._filter=J),Ne(z)&&(this._map=z),this._transform=Ne(B)?B:null),Y&&(this._prepender=ge(Y)?Y:X(Y)),te&&(this._appender=ge(te)?te:X(te))}}_read(T,x){const B=()=>this._readAndTransformSimple(T,k,x);this._readAndTransformSimple(T,k,x);function k(){n(B)}}_readAndTransformSimple(T,x,B){let k;const{source:V}=this;if(!V||V.done){B();return}for(this._limit===0&&this.close();!this.closed&&this._pushedCount"u"?k:this._map(k);if(J===null)this._optional&&this._push(k);else if(!Ne(this._transform))this._push(J);else{this._optional?this._optionalTransform(J,x):this._transform(J,x,this._boundPush);return}--this._limit===0&&this.close()}B()}_begin(T){this._insert(this._prepender,T),delete this._prepender}_flush(T){this._insert(this._appender,T),delete this._appender}_insert(T,x){const B=V=>this._push(V);!T||T.done?x():(T.on("data",B),T.on("end",k));function k(){T.removeListener("data",B),T.removeListener("end",k),x()}}}t.SimpleTransformIterator=O;class P extends w{constructor(T,x){if(super(T,x),this._transformerQueue=[],x){const B=Ne(x)?x:x.multiTransform;B&&(this._createTransformer=B)}}_read(T,x){const B=this._transformerQueue,k=this._optional;let V,J;for(;(V=B[0])&&V.transformer.done;){k&&V.item!==null&&(T--,this._push(V.item)),B.shift();const{transformer:Y}=V;Y.removeListener("end",E),Y.removeListener("readable",E),Y.removeListener("error",A)}const{source:z}=this;for(;z&&!z.done&&B.length0&&(J=Y.read())!==null;)this._push(J),k&&(V.item=null)}else z&&z.done&&this.close();x()}_createTransformer(T){return new p(T)}_closeWhenDone(){this._transformerQueue.length||this.close()}_end(T){if(super._end(T),this._destroySource)for(const x of this._transformerQueue)x.transformer.destroy()}}t.MultiTransformIterator=P;class j extends _{constructor(T,x={}){super(x),this._sources=[],this._currentSource=-1;const B=x.autoStart!==!1;if(ge(T))T.on("error",k=>this.emit("error",k)),this._pending={loading:!1,sources:T},B&&this._loadSources();else if(Array.isArray(T)&&T.length>0)for(const k of T)this._addSource(k);else B&&this.close();this._destroySources=x.destroySources!==!1}_loadSources(){const T=this._pending.sources;this._pending.loading=!0,T.done?(delete this._pending,this.close()):(T.on("data",x=>{this._addSource(x),this._fillBufferAsync()}),T.on("end",()=>{delete this._pending,this._fillBuffer()}))}_addSource(T){de(T)&&(T=Z(T)),T.done||(this._sources.push(T),T[t.DESTINATION]=this,T.on("error",A),T.on("readable",E),T.on("end",U))}_removeEmptySources(){this._sources=this._sources.filter((T,x)=>(T.done&&x<=this._currentSource&&this._currentSource--,!T.done)),this._fillBuffer()}_read(T,x){var B;((B=this._pending)===null||B===void 0?void 0:B.loading)===!1&&this._loadSources();let k=0,V;for(;k!==(k=T);)for(let J=0;J0;J++)this._currentSource=(this._currentSource+1)%this._sources.length,(V=this._sources[this._currentSource].read())!==null&&(T--,this._push(V));!this._pending&&this._sources.length===0&&this.close(),x()}_end(T=!1){if(super._end(T),this._destroySources){for(const x of this._sources)x.destroy();this._pending&&(this._pending.sources.destroy(),delete this._pending)}}}t.UnionIterator=j;function U(){this[t.DESTINATION]._removeEmptySources()}class M extends w{constructor(T){super(T,{autoStart:!1}),this._readPosition=0,this._reading=!1,T&&(this.readable=!0)}_init(){}close(){l.prototype.close.call(this)}get source(){return super.source}set source(T){const x=this._source=this._validateSource(T),B=x&&x[t.DESTINATION]||(x[t.DESTINATION]=new q(x));this.done?this._destroySource&&x.destroy():B.endsAt(0)?this.close():(B.register(this),(x._sourceStarted===!1||B.readAt(0)!==null)&&(this.readable=!0));const k=this._propertyCallbacks;for(const V in k){const J=k[V];for(const z of J)this._getSourceProperty(V,z)}}_validateSource(T,x=!1){const B=T&&T[t.DESTINATION];return super._validateSource(T,!B||B instanceof q)}getProperty(T,x){const{source:B}=this,k=this._properties,V=k&&T in k;if(!x)return V?k&&k[T]:B&&B.getProperty(T);super.getProperty(T,x),B&&!V&&this._getSourceProperty(T,x)}_getSourceProperty(T,x){this.source.getProperty(T,B=>{(!this._properties||!(T in this._properties))&&x(B)})}getProperties(){const T=this.source?this.source.getProperties():{},x=this._properties;for(const B in x)T[B]=x[B];return T}_toStringDetails(){return`{source: ${this.source?this.source.toString():"none"}}`}read(){this._sourceStarted||(this._sourceStarted=!0);const T=this.source;let x=null;if(!this.done&&T){const B=T[t.DESTINATION];(x=B.readAt(this._readPosition))!==null?this._readPosition++:this.readable=!1,B.endsAt(this._readPosition)&&this.close()}return x}_end(T){const x=this.source,B=x==null?void 0:x[t.DESTINATION];B&&B.unregister(this),_.prototype._end.call(this,T)}}t.ClonedIterator=M;class q{constructor(T){if(this._history=[],this._trackers=new Set,this._source=T,!T.done){const x=()=>{for(const V of this._trackers)V.readable=!0},B=V=>{for(const J of this._trackers)J.emit("error",V)},k=()=>{for(const V of this._trackers)V._sourceStarted!==!1&&V._readPosition===this._history.length&&V.close();this._trackers.clear(),T.removeListener("end",k),T.removeListener("error",B),T.removeListener("readable",x)};T.on("end",k),T.on("error",B),T.on("readable",x)}}register(T){this._source.done||this._trackers.add(T)}unregister(T){this._trackers.delete(T)}readAt(T){let x=null;return T{this._source=null,this.source=B}).catch(B=>this.emit("error",B))):T&&(this.source=T)}set source(T){let x=T;if(this._source!==null)throw new Error("The source cannot be changed after it has been set");if($(x)&&(x=x[Symbol.iterator]()),N(x)){let B=x;x=new e.EventEmitter,x.read=()=>{if(B!==null){let k;for(;!(k=B.next()).done;)if(k.value!==null)return k.value;B=null,this.close()}return null}}else x=v(x);if(this.done){this._destroySource&&Ne(x.destroy)&&x.destroy();return}x[t.DESTINATION]=this,x.on("end",D),x.on("error",A),x.on("readable",S),this._source=x,this.readable=x.readable!==!1}read(){if(this._source!==null&&this._source.readable!==!1){const T=this._source.read();if(T!==null)return T;this.readable=!1}return null}_end(T=!1){this._source!==null&&(this._source.removeListener("end",D),this._source.removeListener("error",A),this._source.removeListener("readable",S),delete this._source[t.DESTINATION],this._destroySource&&Ne(this._source.destroy)&&this._source.destroy(),this._source=null),super._end(T)}}t.WrappingIterator=Q;function Z(R,T){if(T&&("autoStart"in T||"optional"in T||"source"in T||"maxBufferSize"in T))return R&&!ge(R)&&(R=new Q(R)),new w(R,T);if(!R)return K();if(de(R))return new Q(R,T);if(R instanceof l)return R;if(Array.isArray(R))return X(R);if($(R)||N(R)||ge(R))return new Q(R,T);throw new TypeError(`Invalid source: ${R}`)}t.wrap=Z;function K(){return new f}t.empty=K;function fe(R){return new p(R)}t.single=fe;function X(R){return new y(R)}t.fromArray=X;function he(R){return new Q(R)}t.fromIterator=he;function xe(R){return new Q(R)}t.fromIterable=xe;function ie(R){return new j(R)}t.union=ie;function ae(R,T,x){return new b({start:R,end:T,step:x})}t.range=ae;function Oe(R,T){return T?R.bind(T):R}function Ne(R){return typeof R=="function"}t.isFunction=Ne;function ge(R){return Ne(R==null?void 0:R.on)}t.isEventEmitter=ge;function de(R){return Ne(R==null?void 0:R.then)}t.isPromise=de;function oe(R){return R&&(ge(R)||de(R)||Ne(R))}t.isSourceExpression=oe;function $(R){return R&&Symbol.iterator in R}t.isIterable=$;function N(R){return Ne(R==null?void 0:R.next)}t.isIterator=N}(gm)),gm}var JO;function zV(){if(JO)return Nu;JO=1,Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.ClosableTransformIterator=void 0;const t=Nt();let e=class extends t.TransformIterator{constructor(s,n){super(s,n),this.onClose=n.onClose}_end(s){this.onClose(),super._end(s)}};return Nu.ClosableTransformIterator=e,Nu}var XO;function wt(){return XO||(XO=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(BF(),t),u(UF(),t),u($V(),t),u(qF(),t),u(QV(),t),u(zV(),t)}(Gg)),Gg}var mm={},Lu={},_m={},Mu={},KO;function GV(){if(KO)return Mu;KO=1,Object.defineProperty(Mu,"__esModule",{value:!0}),Mu.ActorContextPreprocess=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Mu.ActorContextPreprocess=e,Mu}var YO;function Sy(){return YO||(YO=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(GV(),t)}(_m)),_m}var ZO;function WV(){if(ZO)return Lu;ZO=1,Object.defineProperty(Lu,"__esModule",{value:!0}),Lu.ActorContextPreprocessConvertShortcuts=void 0;const t=Sy(),e=ot;let u=class HF extends t.ActorContextPreprocess{constructor(n){super(n)}async test(n){return!0}async run(n){return{context:HF.expandShortcuts(n.context,this.contextKeyShortcuts)}}static expandShortcuts(n,r){for(const a of n.keys())r[a.name]&&(n=n.set(new e.ActionContextKey(r[a.name]),n.get(a)).delete(a));return n}};return Lu.ActorContextPreprocessConvertShortcuts=u,Lu}var eR;function JV(){return eR||(eR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(WV(),t)}(mm)),mm}var vm={},Fu={},tR;function XV(){if(tR)return Fu;tR=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.ActorContextPreprocessSetDefaults=void 0;const t=Sy(),e=Lt;let u=class extends t.ActorContextPreprocess{constructor(n){super(n),this.defaultFunctionArgumentsCache={}}async test(n){return!0}async run(n){let r=n.context;if(n.initialize){r=r.setDefault(e.KeysInitQuery.queryTimestamp,new Date).setDefault(e.KeysQuerySourceIdentify.sourceIds,new Map).setDefault(e.KeysCore.log,this.logger).setDefault(e.KeysInitQuery.functionArgumentsCache,this.defaultFunctionArgumentsCache).setDefault(e.KeysQuerySourceIdentify.hypermediaSourcesAggregatedStores,new Map);let a={language:"sparql",version:"1.1"};r.has(e.KeysInitQuery.queryFormat)?(a=r.get(e.KeysInitQuery.queryFormat),a.language==="graphql"&&(r=r.setDefault(e.KeysInitQuery.graphqlSingularizeVariables,{}))):r=r.set(e.KeysInitQuery.queryFormat,a)}return{context:r}}};return Fu.ActorContextPreprocessSetDefaults=u,Fu}var rR;function KV(){return rR||(rR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(XV(),t)}(vm)),vm}var wm={},qu={},nR;function YV(){if(nR)return qu;nR=1,Object.defineProperty(qu,"__esModule",{value:!0}),qu.ActorContextPreprocessSourceToDestination=void 0;const t=Sy(),e=Lt;let u=class extends t.ActorContextPreprocess{constructor(n){super(n)}async test(n){return!0}async run(n){if(n.context.get(e.KeysInitQuery.querySourcesUnidentified)&&!n.context.get(e.KeysRdfUpdateQuads.destination)){const r=n.context.get(e.KeysInitQuery.querySourcesUnidentified);if(r.length===1)return{context:n.context.set(e.KeysRdfUpdateQuads.destination,r[0])}}return n}};return qu.ActorContextPreprocessSourceToDestination=u,qu}var iR;function ZV(){return iR||(iR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(YV(),t)}(wm)),wm}var Sm={},Bu={},Uu={},Tm={},aR;function IT(){return aR||(aR=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.deskolemizeOperation=t.deskolemizeQuad=t.deskolemizeTermNestedThrowing=t.deskolemizeTerm=t.skolemizeBindingsStream=t.skolemizeQuadStream=t.skolemizeBindings=t.skolemizeQuad=t.skolemizeTerm=t.getSourceId=t.SKOLEM_PREFIX=void 0;const e=ET(),u=Et(),s=un(),n=Ot(),r=new u.DataFactory;t.SKOLEM_PREFIX="urn:comunica_skolem:source_";function a(m,g){let v=m.get(g.referenceValue);return v===void 0&&(v=`${m.size}`,m.set(g.referenceValue,v)),v}t.getSourceId=a;function o(m,g){return m.termType==="BlankNode"?new e.BlankNodeScoped(`bc_${g}_${m.value}`,r.namedNode(`${t.SKOLEM_PREFIX}${g}:${m.value}`)):m}t.skolemizeTerm=o;function l(m,g){return(0,s.mapTermsNested)(m,v=>o(v,g))}t.skolemizeQuad=l;function c(m,g){return m.map(v=>v.termType==="Quad"?l(v,g):o(v,g))}t.skolemizeBindings=c;function d(m,g){const v=m.map(w=>l(w,g));function _(){m.getProperty("metadata",w=>{v.setProperty("metadata",w),w.state.addInvalidateListener(_)})}return _(),v}t.skolemizeQuadStream=d;function h(m,g){const v=m.map(w=>c(w,g));function _(){m.getProperty("metadata",w=>{v.setProperty("metadata",w),w.state.addInvalidateListener(_)})}return _(),v}t.skolemizeBindingsStream=h;function f(m,g){if(m.termType==="BlankNode"&&"skolemized"in m&&(m=m.skolemized),m.termType==="NamedNode"&&m.value.startsWith(t.SKOLEM_PREFIX)){const v=m.value.indexOf(":",t.SKOLEM_PREFIX.length);if(m.value.slice(t.SKOLEM_PREFIX.length,v)===g){const w=m.value.slice(v+1,m.value.length);return r.blankNode(w)}return null}return m}t.deskolemizeTerm=f;function p(m,g){if(m.termType==="Quad")return(0,s.mapTermsNested)(m,_=>{const w=f(_,g);if(!w)throw new Error("Skolemized term is not in scope for this source");return w});const v=f(m,g);if(v===null)throw new Error("Skolemized term is not in scope for this source");return v}t.deskolemizeTermNestedThrowing=p;function y(m,g){return(0,s.mapTermsNested)(m,v=>f(v,g)??v)}t.deskolemizeQuad=y;function b(m,g){try{return n.Util.mapOperation(m,{[n.Algebra.types.PATTERN](v,_){return{result:Object.assign(_.createPattern(p(v.subject,g),p(v.predicate,g),p(v.object,g),p(v.graph,g)),{metadata:v.metadata}),recurse:!1}},[n.Algebra.types.PATH](v,_){return{result:Object.assign(_.createPath(p(v.subject,g),v.predicate,p(v.object,g),p(v.graph,g)),{metadata:v.metadata}),recurse:!1}}})}catch{}}t.deskolemizeOperation=b}(Tm)),Tm}var sR;function $F(){if(sR)return Uu;sR=1,Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.QuerySourceSkolemized=void 0;const t=jn(),e=Nt(),u=IT();let s=class{constructor(r,a){this.innerSource=r,this.sourceId=a}async getSelectorShape(r){return this.innerSource.getSelectorShape(r)}queryBindings(r,a,o){const l=(0,u.deskolemizeOperation)(r,this.sourceId);if(!l){const c=new e.ArrayIterator([],{autoStart:!1});return c.setProperty("metadata",{state:new t.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:[]}),c}return(0,u.skolemizeBindingsStream)(this.innerSource.queryBindings(l,a,o),this.sourceId)}queryBoolean(r,a){return this.innerSource.queryBoolean(r,a)}queryQuads(r,a){const o=(0,u.deskolemizeOperation)(r,this.sourceId);if(!o){const l=new e.ArrayIterator([],{autoStart:!1});return l.setProperty("metadata",{state:new t.MetadataValidationState,cardinality:{type:"exact",value:0}}),l}return(0,u.skolemizeQuadStream)(this.innerSource.queryQuads(o,a),this.sourceId)}queryVoid(r,a){return this.innerSource.queryVoid(r,a)}get referenceValue(){return this.innerSource.referenceValue}toString(){return`${this.innerSource.toString()}(SkolemID:${this.sourceId})`}};return Uu.QuerySourceSkolemized=s,Uu}var oR;function ek(){if(oR)return Bu;oR=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.ActorContextPreprocessQuerySourceSkolemize=void 0;const t=Sy(),e=Lt,u=$F(),s=IT();let n=class extends t.ActorContextPreprocess{constructor(a){super(a)}async test(a){return!0}async run(a){let o=a.context;if(o.has(e.KeysQueryOperation.querySources)){o.has(e.KeysQuerySourceIdentify.sourceIds)||(o=o.set(e.KeysQuerySourceIdentify.sourceIds,new Map));const l=o.getSafe(e.KeysQuerySourceIdentify.sourceIds);let c=o.getSafe(e.KeysQueryOperation.querySources);c=c.map(d=>({source:new u.QuerySourceSkolemized(d.source,(0,s.getSourceId)(l,d.source)),context:d.context})),o=o.set(e.KeysQueryOperation.querySources,c)}return{context:o}}};return Bu.ActorContextPreprocessQuerySourceSkolemize=n,Bu}var uR;function QF(){return uR||(uR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ek(),t),u($F(),t),u(IT(),t)}(Sm)),Sm}var Am={},Hu={},cR;function tk(){if(cR)return Hu;cR=1,Object.defineProperty(Hu,"__esModule",{value:!0}),Hu.MediatorCombinePipeline=void 0;const t=ot;let e=class extends t.Mediator{constructor(s){super(s)}async mediate(s){let n;try{n=this.publish(s)}catch{return s}if(this.filterErrors){const a=[];for(const o of n)try{await o.reply,a.push(o)}catch{}n=a}if(n=await Promise.all(n.map(async({actor:a,reply:o})=>({actor:a,reply:await o}))),this.order){const a=o=>{const l=this.field?o[this.field]:o;if(typeof l!="number")throw new TypeError("Cannot order elements that are not numbers.");return l};n=n.sort((o,l)=>(this.order==="increasing"?1:-1)*(a(o.reply)-a(l.reply)))}let r=s;for(const{actor:a}of n)r={...r,...await a.runObservable(r)};return r}mediateWith(){throw new Error("Method not supported.")}};return Hu.MediatorCombinePipeline=e,Hu}var lR;function dR(){return lR||(lR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(tk(),t)}(Am)),Am}var Em={},$u={},Om={},Qu={},fR;function rk(){if(fR)return Qu;fR=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.ActorHashBindings=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Qu.ActorHashBindings=e,Qu}var hR;function nk(){return hR||(hR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(rk(),t)}(Om)),Om}var Rm,pR;function ik(){return pR||(pR=1,Rm=function t(e){if(typeof e=="number"&&isNaN(e))throw new Error("NaN is not allowed");if(typeof e=="number"&&!isFinite(e))throw new Error("Infinity is not allowed");return e===null||typeof e!="object"?JSON.stringify(e):e.toJSON instanceof Function?t(e.toJSON()):Array.isArray(e)?`[${e.reduce((n,r,a)=>`${n}${a===0?"":","}${t(r===void 0||typeof r=="symbol"?null:r)}`,"")}]`:`{${Object.keys(e).sort().reduce((s,n)=>{if(e[n]===void 0||typeof e[n]=="symbol")return s;const r=s.length===0?"":",";return`${s}${r}${t(n)}:${t(e[n])}`},"")}}`}),Rm}var yR;function ak(){if(yR)return $u;yR=1,Object.defineProperty($u,"__esModule",{value:!0}),$u.ActorHashBindingsSha1=void 0;const t=nk(),e=xT(),u=er(),s=ik();let n=class extends t.ActorHashBindings{async test(a){if(!a.allowHashCollisions)throw new Error(`Actor ${this.name} can not provide hash functions without hash collisions`);return!0}async run(a){return{hashFunction:o=>(0,e.sha1)().update(s(Object.fromEntries([...o].map(([l,c])=>[(0,u.termToString)(l),(0,u.termToString)(c)])))).digest("hex"),hashCollisions:!0}}};return $u.ActorHashBindingsSha1=n,$u}var bR;function sk(){return bR||(bR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ak(),t)}(Em)),Em}var xm={},Vu={},gR;function ok(){if(gR)return Vu;gR=1,Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.MediatorRace=void 0;const t=ot;let e=class extends t.Mediator{constructor(s){super(s)}mediateWith(s,n){return new Promise((r,a)=>{const o=[];for(const l of n)l.reply.then(()=>{r(l.actor)}).catch(c=>{o.push(c),o.length===n.length&&a(new Error(`${this.name} mediated over all rejecting actors: +${o.map(d=>d.message).join(` +`)}`))})})}};return Vu.MediatorRace=e,Vu}var mR;function _n(){return mR||(mR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ok(),t)}(xm)),xm}var Im={},ku={},Pm={},zu={},_R;function uk(){if(_R)return zu;_R=1,Object.defineProperty(zu,"__esModule",{value:!0}),zu.ActorOptimizeQueryOperation=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return zu.ActorOptimizeQueryOperation=e,zu}var vR;function Ii(){return vR||(vR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(uk(),t)}(Pm)),Pm}var wR;function ck(){if(wR)return ku;wR=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.ActorOptimizeQueryOperationRewriteCopy=void 0;const t=Ii(),e=Ot();let u=class extends t.ActorOptimizeQueryOperation{constructor(n){super(n)}async test(n){return!0}async run(n){return{operation:e.Util.mapOperation(n.operation,{[e.Algebra.types.COPY](a,o){let l;return typeof a.destination=="string"&&typeof a.source=="string"&&a.destination===a.source||typeof a.destination!="string"&&typeof a.source!="string"&&a.destination.equals(a.source)?l=o.createCompositeUpdate([]):l=o.createCompositeUpdate([o.createDrop(a.destination,!0),o.createAdd(a.source,a.destination,a.silent)]),{result:l,recurse:!1}}}),context:n.context}}};return ku.ActorOptimizeQueryOperationRewriteCopy=u,ku}var SR;function lk(){return SR||(SR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ck(),t)}(Im)),Im}var Dm={},Gu={},TR;function dk(){if(TR)return Gu;TR=1,Object.defineProperty(Gu,"__esModule",{value:!0}),Gu.ActorOptimizeQueryOperationRewriteMove=void 0;const t=Ii(),e=Ot();let u=class extends t.ActorOptimizeQueryOperation{constructor(n){super(n)}async test(n){return!0}async run(n){return{operation:e.Util.mapOperation(n.operation,{[e.Algebra.types.MOVE](a,o){let l;if(typeof a.destination=="string"&&typeof a.source=="string"&&a.destination===a.source||typeof a.destination!="string"&&typeof a.source!="string"&&a.destination.equals(a.source))l=o.createCompositeUpdate([]);else{const c=[o.createDrop(a.destination,!0),o.createAdd(a.source,a.destination,a.silent),o.createDrop(a.source)];l=o.createCompositeUpdate(c)}return{result:l,recurse:!1}}}),context:n.context}}};return Gu.ActorOptimizeQueryOperationRewriteMove=u,Gu}var AR;function fk(){return AR||(AR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(dk(),t)}(Dm)),Dm}var Nm={},Wu={},ER;function hk(){if(ER)return Wu;ER=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.ActorOptimizeQueryOperationRewriteAdd=void 0;const t=Ii(),e=Et(),u=Ot(),s=new e.DataFactory;let n=class extends t.ActorOptimizeQueryOperation{constructor(a){super(a)}async test(a){return!0}async run(a){return{operation:u.Util.mapOperation(a.operation,{[u.Algebra.types.ADD](l,c){const d=l.destination==="DEFAULT"?s.defaultGraph():l.destination,h=l.source==="DEFAULT"?s.defaultGraph():l.source;return{result:c.createDeleteInsert(void 0,[c.createPattern(s.variable("s"),s.variable("p"),s.variable("o"),d)],c.createPattern(s.variable("s"),s.variable("p"),s.variable("o"),h)),recurse:!1}}}),context:a.context}}};return Wu.ActorOptimizeQueryOperationRewriteAdd=n,Wu}var OR;function pk(){return OR||(OR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(hk(),t)}(Nm)),Nm}var Cm={},Ju={},RR;function yk(){if(RR)return Ju;RR=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.ActorOptimizeQueryOperationGroupSources=void 0;const t=Ii(),e=wt(),u=Ot(),s=new u.Factory;let n=class extends t.ActorOptimizeQueryOperation{constructor(a){super(a)}async test(a){if(e.ActorQueryOperation.getOperationSource(a.operation))throw new Error(`Actor ${this.name} does not work with top-level operation sources.`);return!0}async run(a){return{operation:await this.groupOperation(a.operation,a.context),context:a.context}}async groupOperation(a,o){var h;if(e.ActorQueryOperation.getOperationSource(a)??!("input"in a))return a;if(!Array.isArray(a.input)){const f=await this.groupOperation(a.input,o);if((h=f.metadata)!=null&&h.scopedSource){const p=e.ActorQueryOperation.getOperationSource(f);e.ActorQueryOperation.doesShapeAcceptOperation(await p.source.getSelectorShape(o),a)&&(this.logDebug(o,`Hoist 1 source-specific operation into a single ${a.type} operation for ${p.source.toString()}`),e.ActorQueryOperation.removeOperationSource(f),a=e.ActorQueryOperation.assignOperationSource(a,p))}return{...a,input:f}}const l=await Promise.all(a.input.map(f=>this.groupOperation(f,o))),c=this.clusterOperationsWithEqualSources(l);if(c.length===1){const f=c[0],p=e.ActorQueryOperation.getOperationSource(c[0][0]);return{...await this.moveSourceAnnotationUpwardsIfPossible(a,f,p,o),input:f}}if(c.length===l.length)return{...a,input:l};let d;switch(a.type){case u.Algebra.types.JOIN:d=s.createJoin.bind(s);break;case u.Algebra.types.UNION:d=s.createUnion.bind(s);break;case u.Algebra.types.ALT:d=s.createAlt.bind(s);break;case u.Algebra.types.SEQ:d=s.createSeq.bind(s);break;default:throw new Error(`Unsupported operation '${a.type}' detected while grouping sources`)}return await this.groupOperationMulti(c,d,o)}async groupOperationMulti(a,o,l){let c=!0;const d=await Promise.all(a.map(async h=>{const f=e.ActorQueryOperation.getOperationSource(h[0]),p=await this.moveSourceAnnotationUpwardsIfPossible(o(h,!0),h,f,l);return e.ActorQueryOperation.getOperationSource(p)&&(c=!1),p}));return o(d,c)}clusterOperationsWithEqualSources(a){const o=new Map,l=[];for(const d of a){const h=e.ActorQueryOperation.getOperationSource(d);h?(o.has(h)||o.set(h,[]),o.get(h).push(d)):l.push(d)}const c=[];l.length>0&&c.push(l);for(const[d,h]of o.entries())c.push(h.map(f=>e.ActorQueryOperation.assignOperationSource(f,d)));return c}async moveSourceAnnotationUpwardsIfPossible(a,o,l,c){if(l&&e.ActorQueryOperation.doesShapeAcceptOperation(await l.source.getSelectorShape(c),a)){this.logDebug(c,`Hoist ${o.length} source-specific operations into a single ${a.type} operation for ${l.source.toString()}`),a=e.ActorQueryOperation.assignOperationSource(a,l);for(const d of o)e.ActorQueryOperation.removeOperationSource(d)}return a}};return Ju.ActorOptimizeQueryOperationGroupSources=n,Ju}var xR;function bk(){return xR||(xR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(yk(),t)}(Cm)),Cm}var jm={},Xu={},Lm={},Ku={},IR;function gk(){if(IR)return Ku;IR=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.ActorQueryParse=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Ku.ActorQueryParse=e,Ku}var PR;function VF(){return PR||(PR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(gk(),t)}(Lm)),Lm}var DR;function mk(){if(DR)return Xu;DR=1,Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.ActorQueryParseSparql=void 0;const t=VF(),e=Ot(),u=my();let s=class extends t.ActorQueryParse{constructor(r){super(r),this.prefixes=Object.freeze(this.prefixes)}async test(r){if(r.queryFormat&&r.queryFormat.language!=="sparql")throw new Error("This actor can only parse SPARQL queries");return!0}async run(r){const o=new u.Parser({prefixes:this.prefixes,baseIRI:r.baseIRI,sparqlStar:!0}).parse(r.query);return{baseIRI:o.type==="query"?o.base:void 0,operation:(0,e.translate)(o,{quads:!0,prefixes:this.prefixes,blankToVariable:!0,baseIRI:r.baseIRI})}}};return Xu.ActorQueryParseSparql=s,Xu}var NR;function _k(){return NR||(NR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(mk(),t)}(jm)),jm}var Mm={},Yu={},Fm={},qm={},Bm={},Zu={},CR;function ru(){if(CR)return Zu;CR=1,Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.DirectiveNodeHandlerAdapter=void 0;let t=class{constructor(u,s,n){this.targetKind=u,this.util=s,this.settings=n}getDirectiveConditionalValue(u,s){const n=this.util.getArgument(u.arguments,"if");if(!n)throw new Error(`The directive ${u.name.value} is missing an if-argument.`);const r=this.util.handleNodeValue(n.value,n.name.value,s);if(r.terms.length!==1)throw new Error(`Can not apply the directive ${u.name.value} with a list.`);return r.terms[0]}isDirectiveScopeAll(u){const s=this.util.getArgument(u.arguments,"scope");return s&&s.value.kind==="EnumValue"&&s.value.value==="all"}};return Zu.DirectiveNodeHandlerAdapter=t,Zu}var ec={},jR;function vk(){if(jR)return ec;jR=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.DirectiveNodeHandlerInclude=void 0;const t=ru();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(s,n){super("include",s,n)}handle(s,n){const r=this.getDirectiveConditionalValue(s.directive,n);return r.termType==="Literal"&&r.value==="false"?{ignore:!0}:{}}};return ec.DirectiveNodeHandlerInclude=e,ec}var tc={},LR;function wk(){if(LR)return tc;LR=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.DirectiveNodeHandlerOptional=void 0;const t=ru();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(s,n){super("optional",s,n)}handle(s,n){return{operationOverrider:r=>this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),r)}}};return tc.DirectiveNodeHandlerOptional=e,tc}var rc={},Um={},MR;function Ty(){return MR||(MR=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.SingularizeState=void 0,function(e){e[e.SINGLE=0]="SINGLE",e[e.PLURAL=1]="PLURAL"}(t.SingularizeState||(t.SingularizeState={}))}(Um)),Um}var FR;function Sk(){if(FR)return rc;FR=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.DirectiveNodeHandlerPlural=void 0;const t=Ty(),e=ru();let u=class extends e.DirectiveNodeHandlerAdapter{constructor(n,r){super("plural",n,r)}handle(n,r){return this.isDirectiveScopeAll(n.directive)&&(r.singularizeState=t.SingularizeState.PLURAL),delete r.singularizeVariables[this.util.nameToVariable(n.fieldLabel,r).value],{}}};return rc.DirectiveNodeHandlerPlural=u,rc}var nc={},qR;function Tk(){if(qR)return nc;qR=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.DirectiveNodeHandlerSingle=void 0;const t=Ty(),e=ru();let u=class extends e.DirectiveNodeHandlerAdapter{constructor(n,r){super("single",n,r)}handle(n,r){return this.isDirectiveScopeAll(n.directive)&&(r.singularizeState=t.SingularizeState.SINGLE),r.singularizeVariables[this.util.nameToVariable(n.fieldLabel,r).value]=!0,{}}};return nc.DirectiveNodeHandlerSingle=u,nc}var ic={},BR;function Ak(){if(BR)return ic;BR=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.DirectiveNodeHandlerSkip=void 0;const t=ru();let e=class extends t.DirectiveNodeHandlerAdapter{constructor(s,n){super("skip",s,n)}handle(s,n){const r=this.getDirectiveConditionalValue(s.directive,n);return r.termType==="Literal"&&r.value==="true"?{ignore:!0}:{}}};return ic.DirectiveNodeHandlerSkip=e,ic}var UR;function kF(){return UR||(UR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ru(),t),u(vk(),t),u(wk(),t),u(Sk(),t),u(Tk(),t),u(Ak(),t)}(Bm)),Bm}var Hm={},ac={},HR;function zi(){if(HR)return ac;HR=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.NodeValueHandlerAdapter=void 0;let t=class{constructor(u,s,n){this.targetKind=u,this.util=s,this.settings=n}};return ac.NodeValueHandlerAdapter=t,ac}var sc={},$R;function Ek(){if($R)return sc;$R=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.NodeValueHandlerBoolean=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("BooleanValue",s,n),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")}handle(s,n,r){return{terms:[this.util.dataFactory.literal(s.value?"true":"false",this.datatype)]}}};return sc.NodeValueHandlerBoolean=e,sc}var oc={},QR;function Ok(){if(QR)return oc;QR=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.NodeValueHandlerEnum=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("EnumValue",s,n)}handle(s,n,r){return{terms:[this.util.valueToNamedNode(s.value,r.context)]}}};return oc.NodeValueHandlerEnum=e,oc}var uc={},VR;function Rk(){if(VR)return uc;VR=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.NodeValueHandlerFloat=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("FloatValue",s,n),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float")}handle(s,n,r){return{terms:[this.util.dataFactory.literal(s.value,this.datatype)]}}};return uc.NodeValueHandlerFloat=e,uc}var cc={},kR;function xk(){if(kR)return cc;kR=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.NodeValueHandlerInt=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("IntValue",s,n),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer")}handle(s,n,r){return{terms:[this.util.dataFactory.literal(s.value,this.datatype)]}}};return cc.NodeValueHandlerInt=e,cc}var lc={},zR;function Ik(){if(zR)return lc;zR=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.NodeValueHandlerList=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("ListValue",s,n),this.nodeFirst=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),this.nodeRest=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),this.nodeNil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(s,n,r){const a=[];let o=[];for(const l of s.values){const c=this.util.handleNodeValue(l,n,r);for(const d of c.terms)a.push(d);c.auxiliaryPatterns&&(o=o.concat(c.auxiliaryPatterns))}if(this.settings.arraysToRdfLists){const l=this.util.dataFactory.blankNode();let c=l,d=a.length;for(const h of a){o.push(this.util.operationFactory.createPattern(c,this.nodeFirst,h,r.graph));const f=--d===0?this.nodeNil:this.util.dataFactory.blankNode();o.push(this.util.operationFactory.createPattern(c,this.nodeRest,f,r.graph)),c=f}return{terms:[l],auxiliaryPatterns:o}}else return{terms:a,auxiliaryPatterns:o}}};return lc.NodeValueHandlerList=e,lc}var dc={},GR;function Pk(){if(GR)return dc;GR=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.NodeValueHandlerNull=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("NullValue",s,n),this.nil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(s,n,r){return{terms:[this.nil]}}};return dc.NodeValueHandlerNull=e,dc}var fc={},WR;function Dk(){if(WR)return fc;WR=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.NodeValueHandlerObject=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("ObjectValue",s,n)}handle(s,n,r){const a=this.util.dataFactory.blankNode();let o=[];for(const l of s.fields){const c=this.util.handleNodeValue(l.value,n,r);for(const d of c.terms)o.push(this.util.createQuadPattern(a,l.name,d,r.graph,r.context));c.auxiliaryPatterns&&(o=o.concat(c.auxiliaryPatterns))}return{terms:[a],auxiliaryPatterns:o}}};return fc.NodeValueHandlerObject=e,fc}var hc={},JR;function Nk(){if(JR)return hc;JR=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.NodeValueHandlerString=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("StringValue",s,n)}handle(s,n,r){const a=r.context.getContextRaw()[n];let o,l;return a&&typeof a!="string"&&(a["@language"]?o=a["@language"]:a["@type"]&&(l=this.util.dataFactory.namedNode(a["@type"]))),{terms:[this.util.dataFactory.literal(s.value,o||l)]}}};return hc.NodeValueHandlerString=e,hc}var pc={},XR;function Ck(){if(XR)return pc;XR=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.NodeValueHandlerVariable=void 0;const t=zi();let e=class extends t.NodeValueHandlerAdapter{constructor(s,n){super("Variable",s,n)}handle(s,n,r){const a=s.name.value,o=r.variablesDict[a],l=r.variablesMetaDict[a];if(!o){if(!r.ignoreUnknownVariables&&(!l||l.mandatory))throw new Error(`Undefined variable: ${a}`);{const c=this.util.dataFactory.variable(a);return r.terminalVariables.map(d=>d.value).indexOf(a)<0&&r.terminalVariables.push(c),{terms:[c]}}}if(o.kind==="Variable")throw new Error(`Variable refers to another variable: ${a}`);if(l)if(l.list){if(o.kind!=="ListValue")throw new Error(`Expected a list, but got ${o.kind} for ${a}`);if(l.type){const c=o;for(const d of c.values)if(d.kind!==l.type)throw new Error(`Expected ${l.type}, but got ${d.kind} for ${a}`)}}else l.type;return this.util.handleNodeValue(o,n,r)}};return pc.NodeValueHandlerVariable=e,pc}var KR;function jk(){return KR||(KR=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(zi(),t),u(Ek(),t),u(Ok(),t),u(Rk(),t),u(xk(),t),u(Ik(),t),u(Pk(),t),u(Dk(),t),u(Nk(),t),u(Ck(),t)}(Hm)),Hm}var yc={},YR;function Lb(){if(YR)return yc;YR=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.NodeHandlerAdapter=void 0;let t=class{constructor(u,s,n){this.targetKind=u,this.util=s,this.settings=n}getNodeQuadContextSelectionSet(u,s,n){const r={};if(u){for(const a of u.selections)if(a.kind==="Field"){const o=a;this.handleNodeQuadContextField(o,n,r,"id","subject"),this.handleNodeQuadContextField(o,n,r,"graph","graph")}}return r}handleNodeQuadContextField(u,s,n,r,a){if(!n[a]&&u.name.value===r){if(!n[a]){const o=this.util.getArgument(u.arguments,"_");if(o){const l=this.util.handleNodeValue(o.value,u.name.value,s);if(l.terms.length!==1)throw new Error(`Only single values can be set as ${r}, but got ${l.terms.length} at ${u.name.value}`);n[a]=l.terms[0],l.auxiliaryPatterns&&(n.auxiliaryPatterns||(n.auxiliaryPatterns=[]),n.auxiliaryPatterns.concat(l.auxiliaryPatterns))}}if(!n[a]){const o=this.util.nameToVariable(this.util.getFieldLabel(u),s);s.terminalVariables.push(o),n[a]=o}}}getDirectiveOutputs(u,s,n){const r=[];if(u)for(const a of u){const o=this.util.handleDirectiveNode({directive:a,fieldLabel:s},n);if(o){if(o.ignore)return null;r.push(o)}}return r}handleDirectiveOutputs(u,s){for(const n of u){if(n.ignore)return this.util.operationFactory.createBgp([]);n.operationOverrider&&(s=n.operationOverrider(s))}return s}};return yc.NodeHandlerAdapter=t,yc}var bc={},ZR;function PT(){if(ZR)return bc;ZR=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.NodeHandlerDefinitionAdapter=void 0;const t=Lb();let e=class extends t.NodeHandlerAdapter{constructor(s,n,r){super(s,n,r)}};return bc.NodeHandlerDefinitionAdapter=e,bc}var gc={},ex;function Lk(){if(ex)return gc;ex=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.NodeHandlerDefinitionFragment=void 0;const t=PT();let e=class extends t.NodeHandlerDefinitionAdapter{constructor(s,n){super("FragmentDefinition",s,n)}handle(s,n){throw new Error("Illegal state: fragment definitions must be indexed and removed before processing")}};return gc.NodeHandlerDefinitionFragment=e,gc}var mc={},tx;function Mk(){if(tx)return mc;tx=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.NodeHandlerDefinitionOperation=void 0;const t=PT();let e=class extends t.NodeHandlerDefinitionAdapter{constructor(s,n){super("OperationDefinition",s,n)}handle(s,n){if(s.operation!=="query")throw new Error("Unsupported definition operation: "+s.operation);if(s.variableDefinitions)for(const o of s.variableDefinitions){const l=o.variable.name.value;o.defaultValue&&(n.variablesDict[l]||(n.variablesDict[l]=o.defaultValue));let c=o.type;const d=c.kind==="NonNullType";d&&(c=c.type);const h=c.kind==="ListType";h&&(c=c.type);const f=c.name.value;n.variablesMetaDict[l]={mandatory:d,list:h,type:f}}const r=this.getDirectiveOutputs(s.directives,s.name?s.name.value:"",n);if(!r)return this.util.operationFactory.createBgp([]);const a=this.util.joinOperations(s.selectionSet.selections.map(o=>this.util.handleNode(o,n)));return this.handleDirectiveOutputs(r,a)}};return mc.NodeHandlerDefinitionOperation=e,mc}var _c={},rx;function Fk(){if(rx)return _c;rx=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.NodeHandlerDocument=void 0;const t=Ot(),e=Lb();let u=class extends e.NodeHandlerAdapter{constructor(n,r){super("Document",n,r)}handle(n,r){const a=n.definitions.map(l=>{const c=this.getNodeQuadContextDefinitionNode(l,Object.assign(Object.assign({},r),{ignoreUnknownVariables:!0})),d=Object.assign(Object.assign({},r),{graph:c.graph||r.graph,subject:c.subject||this.util.dataFactory.blankNode()});let h=this.util.handleNode(l,d);return c&&c.auxiliaryPatterns&&(h=this.util.joinOperations([h,this.util.operationFactory.createBgp(c.auxiliaryPatterns)])),h}),o=this.util.operationFactory.createProject(a.length===1?a[0]:this.util.operationFactory.createUnion(a),r.terminalVariables);return this.translateBlankNodesToVariables(o)}getNodeQuadContextDefinitionNode(n,r){if(n.kind==="OperationDefinition")return this.getNodeQuadContextSelectionSet(n.selectionSet,n.name?n.name.value:"",r);throw new Error(`Unsupported definition: ${n.kind}`)}translateBlankNodesToVariables(n){const r=this,a={},o=Array.from(n.variables).reduce((c,d)=>(c[d.value]=!0,c),{});return t.Util.mapOperation(n,{path:(c,d)=>({recurse:!1,result:d.createPath(l(c.subject),c.predicate,l(c.object),l(c.graph))}),pattern:(c,d)=>({recurse:!1,result:d.createPattern(l(c.subject),l(c.predicate),l(c.object),l(c.graph))})});function l(c){if(c.termType==="BlankNode"){let d=a[c.value];return d||(d=t.Util.createUniqueVariable(c.value,o,r.util.dataFactory),o[d.value]=!0,a[c.value]=d),d}return c}}};return _c.NodeHandlerDocument=u,_c}var vc={},nx;function Mb(){if(nx)return vc;nx=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.NodeHandlerSelectionAdapter=void 0;const t=Ot(),e=Ty(),u=Lb();let s=class extends u.NodeHandlerAdapter{constructor(r,a,o){super(r,a,o)}getNodeQuadContextFieldNode(r,a,o){return this.getNodeQuadContextSelectionSet(r.selectionSet,a,Object.assign(Object.assign({},o),{path:this.util.appendFieldToPath(o.path,a)}))}fieldToOperation(r,a,o,l){const c=o;let d=0,h;if((a.name.value==="id"||a.name.value==="graph")&&(o=!1,a.arguments))for(const S of a.arguments)S.name.value==="_"&&this.util.handleNodeValue(S.value,a.name.value,r);const f=this.util.getFieldLabel(a);if(r.singularizeState===e.SingularizeState.SINGLE&&(r.singularizeVariables[this.util.nameToVariable(f,r).value]=!0),o){const S=this.handleMetaField(r,f,l);if(S)return S}const p=l?[this.util.operationFactory.createBgp(l)]:[],y=this.getNodeQuadContextFieldNode(a,f,r);let b=y.subject||this.util.nameToVariable(f,r),m=y.graph||r.graph;y.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(y.auxiliaryPatterns));let g=!0,v=null;if(o&&a.arguments&&a.arguments.length){for(const S of a.arguments)if(S.name.value==="_"){const A=this.util.handleNodeValue(S.value,a.name.value,r);v=A.terms,p.push(this.util.operationFactory.createBgp(A.terms.map(D=>this.util.createQuadPattern(r.subject,a.name,D,r.graph,r.context)))),A.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(A.auxiliaryPatterns)),o=!1;break}else if(S.name.value==="graph"){const A=this.util.handleNodeValue(S.value,a.name.value,r);if(A.terms.length!==1)throw new Error(`Only single values can be set as graph, but got ${A.terms.length} at ${a.name.value}`);m=A.terms[0],r=Object.assign(Object.assign({},r),{graph:m}),A.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(A.auxiliaryPatterns));break}else if(S.name.value==="alt"){let A=S.value;A.kind!=="ListValue"&&(A={kind:"ListValue",values:[A]}),p.push(this.util.createQuadPath(r.subject,a.name,A,b,r.graph,r.context)),g=!1;break}}if(o&&g&&p.push(this.util.operationFactory.createBgp([this.util.createQuadPattern(r.subject,a.name,b,r.graph,r.context)])),a.arguments&&a.arguments.length){for(const S of a.arguments)if(!(S.name.value==="_"||S.name.value==="graph"||S.name.value==="alt"))if(S.name.value==="first"){if(S.value.kind!=="IntValue")throw new Error("Invalid value type for 'first' argument: "+S.value.kind);h=parseInt(S.value.value,10)}else if(S.name.value==="offset"){if(S.value.kind!=="IntValue")throw new Error("Invalid value type for 'offset' argument: "+S.value.kind);d=parseInt(S.value.value,10)}else{const A=this.util.handleNodeValue(S.value,S.name.value,r);p.push(this.util.operationFactory.createBgp(A.terms.map(D=>this.util.createQuadPattern(b,S.name,D,r.graph,r.context)))),A.auxiliaryPatterns&&p.push(this.util.operationFactory.createBgp(A.auxiliaryPatterns))}}const _=this.getDirectiveOutputs(a.directives,f,r);if(!_)return this.util.operationFactory.createBgp([]);let w=this.util.joinOperations(p);if(a.selectionSet&&a.selectionSet.selections.length){if(v){if(v.length!==1)throw new Error(`Only single values can be set as id, but got ${v.length} at ${a.name.value}`);b=v[0]}const S=Object.assign(Object.assign(Object.assign({},r),c?{path:this.util.appendFieldToPath(r.path,f)}:{}),{graph:m,subject:c?b:r.subject});let A=!1;const D=a.selectionSet.selections.filter(E=>E.kind==="Field"&&E.name.value==="totalCount"?(A=!0,!1):!0);let L=this.util.joinOperations(p.concat(D.map(E=>this.util.handleNode(E,S))));if(A){const E=this.util.dataFactory.variable("var"+this.settings.expressionVariableCounter++),O=this.util.dataFactory.variable(b.value+this.settings.variableDelimiter+"totalCount"),P=this.util.operationFactory.createBoundAggregate(E,"count",this.util.operationFactory.createTermExpression(b),!1),j=this.util.operationFactory.createProject(this.util.operationFactory.createExtend(this.util.operationFactory.createGroup(w,[],[P]),O,this.util.operationFactory.createTermExpression(E)),[O]);r.terminalVariables.push(O),D.length?L=this.util.operationFactory.createJoin([this.util.operationFactory.createProject(L,[]),j]):L=j}w=L}else o&&b.termType==="Variable"&&r.terminalVariables.push(b);return(d||h)&&(w=this.util.operationFactory.createSlice(this.util.operationFactory.createProject(w,t.Util.inScopeVariables(w)),d,h)),this.handleDirectiveOutputs(_,w)}handleMetaField(r,a,o){if(a==="__typename"){const l=this.util.nameToVariable(a,r);return r.terminalVariables.push(l),this.util.operationFactory.createBgp([this.util.operationFactory.createPattern(r.subject,this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.util.nameToVariable(a,r),r.graph)].concat(o||[]))}}};return vc.NodeHandlerSelectionAdapter=s,vc}var wc={},ix;function qk(){if(ix)return wc;ix=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.NodeHandlerSelectionField=void 0;const t=Mb();let e=class extends t.NodeHandlerSelectionAdapter{constructor(s,n){super("Field",s,n)}handle(s,n){return this.fieldToOperation(n,s,!0)}};return wc.NodeHandlerSelectionField=e,wc}var Sc={},ax;function Bk(){if(ax)return Sc;ax=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.NodeHandlerSelectionFragmentSpread=void 0;const t=Mb();let e=class extends t.NodeHandlerSelectionAdapter{constructor(s,n){super("FragmentSpread",s,n)}handle(s,n){const r=n.fragmentDefinitions[s.name.value];if(!r)throw new Error("Undefined fragment definition: "+s.name.value);const a={alias:void 0,arguments:void 0,directives:r.directives,kind:"Field",name:s.name,selectionSet:r.selectionSet},o=[this.util.newTypePattern(n.subject,r.typeCondition,n)];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(n,a,!1,o))}};return Sc.NodeHandlerSelectionFragmentSpread=e,Sc}var Tc={},sx;function Uk(){if(sx)return Tc;sx=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.NodeHandlerSelectionInlineFragment=void 0;const t=Mb();let e=class extends t.NodeHandlerSelectionAdapter{constructor(s,n){super("InlineFragment",s,n)}handle(s,n){const r={alias:void 0,arguments:void 0,directives:s.directives,kind:"Field",name:{kind:"Name",value:n.subject.value},selectionSet:s.selectionSet},a=s.typeCondition?[this.util.newTypePattern(n.subject,s.typeCondition,n)]:[];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(n,r,!1,a))}};return Tc.NodeHandlerSelectionInlineFragment=e,Tc}var ox;function zF(){return ox||(ox=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(kF(),t),u(jk(),t),u(Lb(),t),u(PT(),t),u(Lk(),t),u(Mk(),t),u(Fk(),t),u(Mb(),t),u(qk(),t),u(Bk(),t),u(Uk(),t)}(qm)),qm}var Ac={},GF=typeof Symbol=="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag",Hk=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0;const e3=Hk;function D1(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D1=function(u){return typeof u}:D1=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},D1(t)}var $k=10,WF=2;function JF(t){return Fb(t,[])}function Fb(t,e){switch(D1(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":return t===null?"null":Qk(t,e);default:return String(t)}}function Qk(t,e){if(e.indexOf(t)!==-1)return"[Circular]";var u=[].concat(e,[t]),s=zk(t);if(s!==void 0){var n=s.call(t);if(n!==t)return typeof n=="string"?n:Fb(n,u)}else if(Array.isArray(t))return kk(t,u);return Vk(t,u)}function Vk(t,e){var u=Object.keys(t);if(u.length===0)return"{}";if(e.length>WF)return"["+Gk(t)+"]";var s=u.map(function(n){var r=Fb(t[n],e);return n+": "+r});return"{ "+s.join(", ")+" }"}function kk(t,e){if(t.length===0)return"[]";if(e.length>WF)return"[Array]";for(var u=Math.min($k,t.length),s=t.length-u,n=[],r=0;r1&&n.push("... ".concat(s," more items")),"["+n.join(", ")+"]"}function zk(t){var e=t[String(e3)];if(typeof e=="function")return e;if(typeof t.inspect=="function")return t.inspect}function Gk(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){var u=t.constructor.name;if(typeof u=="string"&&u!=="")return u}return e}function $m(t,e){var u=!!t;if(!u)throw new Error(e)}const Wk=function(e,u){return e instanceof u};function ux(t,e){for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof e=="string"||$m(0,"Body must be a string. Received: ".concat(JF(e),".")),this.body=e,this.name=u,this.locationOffset=s,this.locationOffset.line>0||$m(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||$m(0,"column in locationOffset is 1-indexed and must be positive.")}return Jk(t,[{key:GF,get:function(){return"Source"}}]),t}();function Xk(t){return Wk(t,DT)}function Z1(t,e){for(var u=/\r\n|[\n\r]/g,s=1,n=e+1,r;(r=u.exec(t.body))&&r.index120){for(var f=Math.floor(l/80),p=l%80,y=[],b=0;b",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function C1(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C1=function(u){return typeof u}:C1=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},C1(t)}function Yk(t){return C1(t)=="object"&&t!==null}function j1(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?j1=function(u){return typeof u}:j1=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},j1(t)}function lx(t,e){var u=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),u.push.apply(u,s)}return u}function Zk(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function az(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function J0(t,e){return J0=Object.setPrototypeOf||function(s,n){return s.__proto__=n,s},J0(t,e)}function X0(t){return X0=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},X0(t)}var sz=function(t){nz(u,t);var e=iz(u);function u(s,n,r,a,o,l,c){var d,h,f,p;tz(this,u),p=e.call(this,s),p.name="GraphQLError",p.originalError=l??void 0,p.nodes=fx(Array.isArray(n)?n:n?[n]:void 0);for(var y=[],b=0,m=(g=p.nodes)!==null&&g!==void 0?g:[];b0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),l!=null&&l.stack?(Object.defineProperty(S0(p),"stack",{value:l.stack,writable:!0,configurable:!0}),KF(p)):(Error.captureStackTrace?Error.captureStackTrace(S0(p),u):Object.defineProperty(S0(p),"stack",{value:Error().stack,writable:!0,configurable:!0}),p)}return rz(u,[{key:"toString",value:function(){return oz(this)}},{key:GF,get:function(){return"Object"}}]),u}(t3(Error));function fx(t){return t===void 0||t.length===0?void 0:t}function oz(t){var e=t.message;if(t.nodes)for(var u=0,s=t.nodes;un&&px(e[r-1]);)--r;return e.slice(n,r).join(` +`)}function px(t){for(var e=0;e1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=t.indexOf(` +`)===-1,n=t[0]===" "||t[0]===" ",r=t[t.length-1]==='"',a=t[t.length-1]==="\\",o=!s||r||a||u,l="";return o&&!(s&&n)&&(l+=` +`+e),l+=e?t.replace(/\n/g,` +`+e):t,o&&(l+=` +`),'"""'+l.replace(/"""/g,'\\"""')+'"""'}var eq=function(){function t(u){var s=new Er(ze.SOF,0,0,0,0,null);this.source=u,this.lastToken=s,this.token=s,this.line=1,this.lineStart=0}var e=t.prototype;return e.advance=function(){this.lastToken=this.token;var s=this.token=this.lookahead();return s},e.lookahead=function(){var s=this.token;if(s.kind!==ze.EOF)do{var n;s=(n=s.next)!==null&&n!==void 0?n:s.next=hz(this,s)}while(s.kind===ze.COMMENT);return s},t}();function fz(t){return t===ze.BANG||t===ze.DOLLAR||t===ze.AMP||t===ze.PAREN_L||t===ze.PAREN_R||t===ze.SPREAD||t===ze.COLON||t===ze.EQUALS||t===ze.AT||t===ze.BRACKET_L||t===ze.BRACKET_R||t===ze.BRACE_L||t===ze.PIPE||t===ze.BRACE_R}function Ws(t){return isNaN(t)?ze.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function hz(t,e){for(var u=t.source,s=u.body,n=s.length,r=e.end;r31||a===9));return new Er(ze.COMMENT,e,o,u,s,n,r.slice(e+1,o))}function bz(t,e,u,s,n,r){var a=t.body,o=u,l=e,c=!1;if(o===45&&(o=a.charCodeAt(++l)),o===48){if(o=a.charCodeAt(++l),o>=48&&o<=57)throw Jn(t,l,"Invalid number, unexpected digit after 0: ".concat(Ws(o),"."))}else l=Qm(t,l,o),o=a.charCodeAt(l);if(o===46&&(c=!0,o=a.charCodeAt(++l),l=Qm(t,l,o),o=a.charCodeAt(l)),(o===69||o===101)&&(c=!0,o=a.charCodeAt(++l),(o===43||o===45)&&(o=a.charCodeAt(++l)),l=Qm(t,l,o),o=a.charCodeAt(l)),o===46||wz(o))throw Jn(t,l,"Invalid number, expected digit but got: ".concat(Ws(o),"."));return new Er(c?ze.FLOAT:ze.INT,e,l,s,n,r,a.slice(e,l))}function Qm(t,e,u){var s=t.body,n=e,r=u;if(r>=48&&r<=57){do r=s.charCodeAt(++n);while(r>=48&&r<=57);return n}throw Jn(t,n,"Invalid number, expected digit but got: ".concat(Ws(r),"."))}function gz(t,e,u,s,n){for(var r=t.body,a=e+1,o=a,l=0,c="";a=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function vz(t,e,u,s,n){for(var r=t.body,a=r.length,o=e+1,l=0;o!==a&&!isNaN(l=r.charCodeAt(o))&&(l===95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++o;return new Er(ze.NAME,e,o,u,s,n,r.slice(e,o))}function wz(t){return t===95||t>=65&&t<=90||t>=97&&t<=122}var tq=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Sz(t,e){var u=new jT(t,e);return u.parseDocument()}function Tz(t,e){var u=new jT(t,e);u.expectToken(ze.SOF);var s=u.parseValueLiteral(!1);return u.expectToken(ze.EOF),s}function Az(t,e){var u=new jT(t,e);u.expectToken(ze.SOF);var s=u.parseTypeReference();return u.expectToken(ze.EOF),s}var jT=function(){function t(u,s){var n=Xk(u)?u:new DT(u);this._lexer=new eq(n),this._options=s}var e=t.prototype;return e.parseName=function(){var s=this.expectToken(ze.NAME);return{kind:rt.NAME,value:s.value,loc:this.loc(s)}},e.parseDocument=function(){var s=this._lexer.token;return{kind:rt.DOCUMENT,definitions:this.many(ze.SOF,this.parseDefinition,ze.EOF),loc:this.loc(s)}},e.parseDefinition=function(){if(this.peek(ze.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(ze.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var s=this._lexer.token;if(this.peek(ze.BRACE_L))return{kind:rt.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(s)};var n=this.parseOperationType(),r;return this.peek(ze.NAME)&&(r=this.parseName()),{kind:rt.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(s)}},e.parseOperationType=function(){var s=this.expectToken(ze.NAME);switch(s.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(s)},e.parseVariableDefinitions=function(){return this.optionalMany(ze.PAREN_L,this.parseVariableDefinition,ze.PAREN_R)},e.parseVariableDefinition=function(){var s=this._lexer.token;return{kind:rt.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ze.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ze.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(s)}},e.parseVariable=function(){var s=this._lexer.token;return this.expectToken(ze.DOLLAR),{kind:rt.VARIABLE,name:this.parseName(),loc:this.loc(s)}},e.parseSelectionSet=function(){var s=this._lexer.token;return{kind:rt.SELECTION_SET,selections:this.many(ze.BRACE_L,this.parseSelection,ze.BRACE_R),loc:this.loc(s)}},e.parseSelection=function(){return this.peek(ze.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var s=this._lexer.token,n=this.parseName(),r,a;return this.expectOptionalToken(ze.COLON)?(r=n,a=this.parseName()):a=n,{kind:rt.FIELD,alias:r,name:a,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ze.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(s)}},e.parseArguments=function(s){var n=s?this.parseConstArgument:this.parseArgument;return this.optionalMany(ze.PAREN_L,n,ze.PAREN_R)},e.parseArgument=function(){var s=this._lexer.token,n=this.parseName();return this.expectToken(ze.COLON),{kind:rt.ARGUMENT,name:n,value:this.parseValueLiteral(!1),loc:this.loc(s)}},e.parseConstArgument=function(){var s=this._lexer.token;return{kind:rt.ARGUMENT,name:this.parseName(),value:(this.expectToken(ze.COLON),this.parseValueLiteral(!0)),loc:this.loc(s)}},e.parseFragment=function(){var s=this._lexer.token;this.expectToken(ze.SPREAD);var n=this.expectOptionalKeyword("on");return!n&&this.peek(ze.NAME)?{kind:rt.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(s)}:{kind:rt.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(s)}},e.parseFragmentDefinition=function(){var s,n=this._lexer.token;return this.expectKeyword("fragment"),((s=this._options)===null||s===void 0?void 0:s.experimentalFragmentVariables)===!0?{kind:rt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}:{kind:rt.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},e.parseFragmentName=function(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(s){var n=this._lexer.token;switch(n.kind){case ze.BRACKET_L:return this.parseList(s);case ze.BRACE_L:return this.parseObject(s);case ze.INT:return this._lexer.advance(),{kind:rt.INT,value:n.value,loc:this.loc(n)};case ze.FLOAT:return this._lexer.advance(),{kind:rt.FLOAT,value:n.value,loc:this.loc(n)};case ze.STRING:case ze.BLOCK_STRING:return this.parseStringLiteral();case ze.NAME:switch(this._lexer.advance(),n.value){case"true":return{kind:rt.BOOLEAN,value:!0,loc:this.loc(n)};case"false":return{kind:rt.BOOLEAN,value:!1,loc:this.loc(n)};case"null":return{kind:rt.NULL,loc:this.loc(n)};default:return{kind:rt.ENUM,value:n.value,loc:this.loc(n)}}case ze.DOLLAR:if(!s)return this.parseVariable();break}throw this.unexpected()},e.parseStringLiteral=function(){var s=this._lexer.token;return this._lexer.advance(),{kind:rt.STRING,value:s.value,block:s.kind===ze.BLOCK_STRING,loc:this.loc(s)}},e.parseList=function(s){var n=this,r=this._lexer.token,a=function(){return n.parseValueLiteral(s)};return{kind:rt.LIST,values:this.any(ze.BRACKET_L,a,ze.BRACKET_R),loc:this.loc(r)}},e.parseObject=function(s){var n=this,r=this._lexer.token,a=function(){return n.parseObjectField(s)};return{kind:rt.OBJECT,fields:this.any(ze.BRACE_L,a,ze.BRACE_R),loc:this.loc(r)}},e.parseObjectField=function(s){var n=this._lexer.token,r=this.parseName();return this.expectToken(ze.COLON),{kind:rt.OBJECT_FIELD,name:r,value:this.parseValueLiteral(s),loc:this.loc(n)}},e.parseDirectives=function(s){for(var n=[];this.peek(ze.AT);)n.push(this.parseDirective(s));return n},e.parseDirective=function(s){var n=this._lexer.token;return this.expectToken(ze.AT),{kind:rt.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(s),loc:this.loc(n)}},e.parseTypeReference=function(){var s=this._lexer.token,n;return this.expectOptionalToken(ze.BRACKET_L)?(n=this.parseTypeReference(),this.expectToken(ze.BRACKET_R),n={kind:rt.LIST_TYPE,type:n,loc:this.loc(s)}):n=this.parseNamedType(),this.expectOptionalToken(ze.BANG)?{kind:rt.NON_NULL_TYPE,type:n,loc:this.loc(s)}:n},e.parseNamedType=function(){var s=this._lexer.token;return{kind:rt.NAMED_TYPE,name:this.parseName(),loc:this.loc(s)}},e.parseTypeSystemDefinition=function(){var s=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(s.kind===ze.NAME)switch(s.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(s)},e.peekDescription=function(){return this.peek(ze.STRING)||this.peek(ze.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),a=this.many(ze.BRACE_L,this.parseOperationTypeDefinition,ze.BRACE_R);return{kind:rt.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:a,loc:this.loc(s)}},e.parseOperationTypeDefinition=function(){var s=this._lexer.token,n=this.parseOperationType();this.expectToken(ze.COLON);var r=this.parseNamedType();return{kind:rt.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:this.loc(s)}},e.parseScalarTypeDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),a=this.parseDirectives(!0);return{kind:rt.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:a,loc:this.loc(s)}},e.parseObjectTypeDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),a=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),l=this.parseFieldsDefinition();return{kind:rt.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:a,directives:o,fields:l,loc:this.loc(s)}},e.parseImplementsInterfaces=function(){var s;if(!this.expectOptionalKeyword("implements"))return[];if(((s=this._options)===null||s===void 0?void 0:s.allowLegacySDLImplementsInterfaces)===!0){var n=[];this.expectOptionalToken(ze.AMP);do n.push(this.parseNamedType());while(this.expectOptionalToken(ze.AMP)||this.peek(ze.NAME));return n}return this.delimitedMany(ze.AMP,this.parseNamedType)},e.parseFieldsDefinition=function(){var s;return((s=this._options)===null||s===void 0?void 0:s.allowLegacySDLEmptyFields)===!0&&this.peek(ze.BRACE_L)&&this._lexer.lookahead().kind===ze.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(ze.BRACE_L,this.parseFieldDefinition,ze.BRACE_R)},e.parseFieldDefinition=function(){var s=this._lexer.token,n=this.parseDescription(),r=this.parseName(),a=this.parseArgumentDefs();this.expectToken(ze.COLON);var o=this.parseTypeReference(),l=this.parseDirectives(!0);return{kind:rt.FIELD_DEFINITION,description:n,name:r,arguments:a,type:o,directives:l,loc:this.loc(s)}},e.parseArgumentDefs=function(){return this.optionalMany(ze.PAREN_L,this.parseInputValueDef,ze.PAREN_R)},e.parseInputValueDef=function(){var s=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(ze.COLON);var a=this.parseTypeReference(),o;this.expectOptionalToken(ze.EQUALS)&&(o=this.parseValueLiteral(!0));var l=this.parseDirectives(!0);return{kind:rt.INPUT_VALUE_DEFINITION,description:n,name:r,type:a,defaultValue:o,directives:l,loc:this.loc(s)}},e.parseInterfaceTypeDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),a=this.parseImplementsInterfaces(),o=this.parseDirectives(!0),l=this.parseFieldsDefinition();return{kind:rt.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:a,directives:o,fields:l,loc:this.loc(s)}},e.parseUnionTypeDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),a=this.parseDirectives(!0),o=this.parseUnionMemberTypes();return{kind:rt.UNION_TYPE_DEFINITION,description:n,name:r,directives:a,types:o,loc:this.loc(s)}},e.parseUnionMemberTypes=function(){return this.expectOptionalToken(ze.EQUALS)?this.delimitedMany(ze.PIPE,this.parseNamedType):[]},e.parseEnumTypeDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),a=this.parseDirectives(!0),o=this.parseEnumValuesDefinition();return{kind:rt.ENUM_TYPE_DEFINITION,description:n,name:r,directives:a,values:o,loc:this.loc(s)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(ze.BRACE_L,this.parseEnumValueDefinition,ze.BRACE_R)},e.parseEnumValueDefinition=function(){var s=this._lexer.token,n=this.parseDescription(),r=this.parseName(),a=this.parseDirectives(!0);return{kind:rt.ENUM_VALUE_DEFINITION,description:n,name:r,directives:a,loc:this.loc(s)}},e.parseInputObjectTypeDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),a=this.parseDirectives(!0),o=this.parseInputFieldsDefinition();return{kind:rt.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:a,fields:o,loc:this.loc(s)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(ze.BRACE_L,this.parseInputValueDef,ze.BRACE_R)},e.parseTypeSystemExtension=function(){var s=this._lexer.lookahead();if(s.kind===ze.NAME)switch(s.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(s)},e.parseSchemaExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.optionalMany(ze.BRACE_L,this.parseOperationTypeDefinition,ze.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return{kind:rt.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:this.loc(s)}},e.parseScalarTypeExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);if(r.length===0)throw this.unexpected();return{kind:rt.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:this.loc(s)}},e.parseObjectTypeExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(r.length===0&&a.length===0&&o.length===0)throw this.unexpected();return{kind:rt.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:a,fields:o,loc:this.loc(s)}},e.parseInterfaceTypeExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseDirectives(!0),o=this.parseFieldsDefinition();if(r.length===0&&a.length===0&&o.length===0)throw this.unexpected();return{kind:rt.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:a,fields:o,loc:this.loc(s)}},e.parseUnionTypeExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),a=this.parseUnionMemberTypes();if(r.length===0&&a.length===0)throw this.unexpected();return{kind:rt.UNION_TYPE_EXTENSION,name:n,directives:r,types:a,loc:this.loc(s)}},e.parseEnumTypeExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),a=this.parseEnumValuesDefinition();if(r.length===0&&a.length===0)throw this.unexpected();return{kind:rt.ENUM_TYPE_EXTENSION,name:n,directives:r,values:a,loc:this.loc(s)}},e.parseInputObjectTypeExtension=function(){var s=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),a=this.parseInputFieldsDefinition();if(r.length===0&&a.length===0)throw this.unexpected();return{kind:rt.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:a,loc:this.loc(s)}},e.parseDirectiveDefinition=function(){var s=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ze.AT);var r=this.parseName(),a=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var l=this.parseDirectiveLocations();return{kind:rt.DIRECTIVE_DEFINITION,description:n,name:r,arguments:a,repeatable:o,locations:l,loc:this.loc(s)}},e.parseDirectiveLocations=function(){return this.delimitedMany(ze.PIPE,this.parseDirectiveLocation)},e.parseDirectiveLocation=function(){var s=this._lexer.token,n=this.parseName();if(tq[n.value]!==void 0)return n;throw this.unexpected(s)},e.loc=function(s){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==!0)return new CT(s,this._lexer.lastToken,this._lexer.source)},e.peek=function(s){return this._lexer.token.kind===s},e.expectToken=function(s){var n=this._lexer.token;if(n.kind===s)return this._lexer.advance(),n;throw Jn(this._lexer.source,n.start,"Expected ".concat(rq(s),", found ").concat(Vm(n),"."))},e.expectOptionalToken=function(s){var n=this._lexer.token;if(n.kind===s)return this._lexer.advance(),n},e.expectKeyword=function(s){var n=this._lexer.token;if(n.kind===ze.NAME&&n.value===s)this._lexer.advance();else throw Jn(this._lexer.source,n.start,'Expected "'.concat(s,'", found ').concat(Vm(n),"."))},e.expectOptionalKeyword=function(s){var n=this._lexer.token;return n.kind===ze.NAME&&n.value===s?(this._lexer.advance(),!0):!1},e.unexpected=function(s){var n=s??this._lexer.token;return Jn(this._lexer.source,n.start,"Unexpected ".concat(Vm(n),"."))},e.any=function(s,n,r){this.expectToken(s);for(var a=[];!this.expectOptionalToken(r);)a.push(n.call(this));return a},e.optionalMany=function(s,n,r){if(this.expectOptionalToken(s)){var a=[];do a.push(n.call(this));while(!this.expectOptionalToken(r));return a}return[]},e.many=function(s,n,r){this.expectToken(s);var a=[];do a.push(n.call(this));while(!this.expectOptionalToken(r));return a},e.delimitedMany=function(s,n){this.expectOptionalToken(s);var r=[];do r.push(n.call(this));while(this.expectOptionalToken(s));return r},t}();function Vm(t){var e=t.value;return rq(t.kind)+(e!=null?' "'.concat(e,'"'):"")}function rq(t){return fz(t)?'"'.concat(t,'"'):t}var Ez={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Ao=Object.freeze({});function nq(t,e){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ez,s=void 0,n=Array.isArray(t),r=[t],a=-1,o=[],l=void 0,c=void 0,d=void 0,h=[],f=[],p=t;do{a++;var y=a===r.length,b=y&&o.length!==0;if(y){if(c=f.length===0?void 0:h[h.length-1],l=d,d=f.pop(),b){if(n)l=l.slice();else{for(var m={},g=0,v=Object.keys(l);gxz&&(l=o+Ar(`( +`,M1(dt(n,` +`)),` +)`)),dt([l,dt(r," "),a]," ")},Argument:function(e){var u=e.name,s=e.value;return u+": "+s},FragmentSpread:function(e){var u=e.name,s=e.directives;return"..."+u+Ar(" ",dt(s," "))},InlineFragment:function(e){var u=e.typeCondition,s=e.directives,n=e.selectionSet;return dt(["...",Ar("on ",u),dt(s," "),n]," ")},FragmentDefinition:function(e){var u=e.name,s=e.typeCondition,n=e.variableDefinitions,r=e.directives,a=e.selectionSet;return"fragment ".concat(u).concat(Ar("(",dt(n,", "),")")," ")+"on ".concat(s," ").concat(Ar("",dt(r," ")," "))+a},IntValue:function(e){var u=e.value;return u},FloatValue:function(e){var u=e.value;return u},StringValue:function(e,u){var s=e.value,n=e.block;return n?dz(s,u==="description"?"":" "):JSON.stringify(s)},BooleanValue:function(e){var u=e.value;return u?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var u=e.value;return u},ListValue:function(e){var u=e.values;return"["+dt(u,", ")+"]"},ObjectValue:function(e){var u=e.fields;return"{"+dt(u,", ")+"}"},ObjectField:function(e){var u=e.name,s=e.value;return u+": "+s},Directive:function(e){var u=e.name,s=e.arguments;return"@"+u+Ar("(",dt(s,", "),")")},NamedType:function(e){var u=e.name;return u},ListType:function(e){var u=e.type;return"["+u+"]"},NonNullType:function(e){var u=e.type;return u+"!"},SchemaDefinition:hi(function(t){var e=t.directives,u=t.operationTypes;return dt(["schema",dt(e," "),pi(u)]," ")}),OperationTypeDefinition:function(e){var u=e.operation,s=e.type;return u+": "+s},ScalarTypeDefinition:hi(function(t){var e=t.name,u=t.directives;return dt(["scalar",e,dt(u," ")]," ")}),ObjectTypeDefinition:hi(function(t){var e=t.name,u=t.interfaces,s=t.directives,n=t.fields;return dt(["type",e,Ar("implements ",dt(u," & ")),dt(s," "),pi(n)]," ")}),FieldDefinition:hi(function(t){var e=t.name,u=t.arguments,s=t.type,n=t.directives;return e+(yx(u)?Ar(`( +`,M1(dt(u,` +`)),` +)`):Ar("(",dt(u,", "),")"))+": "+s+Ar(" ",dt(n," "))}),InputValueDefinition:hi(function(t){var e=t.name,u=t.type,s=t.defaultValue,n=t.directives;return dt([e+": "+u,Ar("= ",s),dt(n," ")]," ")}),InterfaceTypeDefinition:hi(function(t){var e=t.name,u=t.interfaces,s=t.directives,n=t.fields;return dt(["interface",e,Ar("implements ",dt(u," & ")),dt(s," "),pi(n)]," ")}),UnionTypeDefinition:hi(function(t){var e=t.name,u=t.directives,s=t.types;return dt(["union",e,dt(u," "),s&&s.length!==0?"= "+dt(s," | "):""]," ")}),EnumTypeDefinition:hi(function(t){var e=t.name,u=t.directives,s=t.values;return dt(["enum",e,dt(u," "),pi(s)]," ")}),EnumValueDefinition:hi(function(t){var e=t.name,u=t.directives;return dt([e,dt(u," ")]," ")}),InputObjectTypeDefinition:hi(function(t){var e=t.name,u=t.directives,s=t.fields;return dt(["input",e,dt(u," "),pi(s)]," ")}),DirectiveDefinition:hi(function(t){var e=t.name,u=t.arguments,s=t.repeatable,n=t.locations;return"directive @"+e+(yx(u)?Ar(`( +`,M1(dt(u,` +`)),` +)`):Ar("(",dt(u,", "),")"))+(s?" repeatable":"")+" on "+dt(n," | ")}),SchemaExtension:function(e){var u=e.directives,s=e.operationTypes;return dt(["extend schema",dt(u," "),pi(s)]," ")},ScalarTypeExtension:function(e){var u=e.name,s=e.directives;return dt(["extend scalar",u,dt(s," ")]," ")},ObjectTypeExtension:function(e){var u=e.name,s=e.interfaces,n=e.directives,r=e.fields;return dt(["extend type",u,Ar("implements ",dt(s," & ")),dt(n," "),pi(r)]," ")},InterfaceTypeExtension:function(e){var u=e.name,s=e.interfaces,n=e.directives,r=e.fields;return dt(["extend interface",u,Ar("implements ",dt(s," & ")),dt(n," "),pi(r)]," ")},UnionTypeExtension:function(e){var u=e.name,s=e.directives,n=e.types;return dt(["extend union",u,dt(s," "),n&&n.length!==0?"= "+dt(n," | "):""]," ")},EnumTypeExtension:function(e){var u=e.name,s=e.directives,n=e.values;return dt(["extend enum",u,dt(s," "),pi(n)]," ")},InputObjectTypeExtension:function(e){var u=e.name,s=e.directives,n=e.fields;return dt(["extend input",u,dt(s," "),pi(n)]," ")}};function hi(t){return function(e){return dt([e.description,t(e)],` +`)}}function dt(t){var e,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(e=t==null?void 0:t.filter(function(s){return s}).join(u))!==null&&e!==void 0?e:""}function pi(t){return Ar(`{ +`,M1(dt(t,` +`)),` +}`)}function Ar(t,e){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?t+e+u:""}function M1(t){return Ar(" ",t.replace(/\n/g,` + `))}function Pz(t){return t.indexOf(` +`)!==-1}function yx(t){return t!=null&&t.some(Pz)}function Dz(t){return iq(t)||aq(t)||oq(t)}function iq(t){return t.kind===rt.OPERATION_DEFINITION||t.kind===rt.FRAGMENT_DEFINITION}function Nz(t){return t.kind===rt.FIELD||t.kind===rt.FRAGMENT_SPREAD||t.kind===rt.INLINE_FRAGMENT}function Cz(t){return t.kind===rt.VARIABLE||t.kind===rt.INT||t.kind===rt.FLOAT||t.kind===rt.STRING||t.kind===rt.BOOLEAN||t.kind===rt.NULL||t.kind===rt.ENUM||t.kind===rt.LIST||t.kind===rt.OBJECT}function jz(t){return t.kind===rt.NAMED_TYPE||t.kind===rt.LIST_TYPE||t.kind===rt.NON_NULL_TYPE}function aq(t){return t.kind===rt.SCHEMA_DEFINITION||sq(t)||t.kind===rt.DIRECTIVE_DEFINITION}function sq(t){return t.kind===rt.SCALAR_TYPE_DEFINITION||t.kind===rt.OBJECT_TYPE_DEFINITION||t.kind===rt.INTERFACE_TYPE_DEFINITION||t.kind===rt.UNION_TYPE_DEFINITION||t.kind===rt.ENUM_TYPE_DEFINITION||t.kind===rt.INPUT_OBJECT_TYPE_DEFINITION}function oq(t){return t.kind===rt.SCHEMA_EXTENSION||uq(t)}function uq(t){return t.kind===rt.SCALAR_TYPE_EXTENSION||t.kind===rt.OBJECT_TYPE_EXTENSION||t.kind===rt.INTERFACE_TYPE_EXTENSION||t.kind===rt.UNION_TYPE_EXTENSION||t.kind===rt.ENUM_TYPE_EXTENSION||t.kind===rt.INPUT_OBJECT_TYPE_EXTENSION}const Lz=Object.freeze(Object.defineProperty({__proto__:null,BREAK:Ao,DirectiveLocation:tq,Kind:rt,Lexer:eq,Location:CT,Source:DT,Token:Er,TokenKind:ze,getLocation:Z1,getVisitFn:eb,isDefinitionNode:Dz,isExecutableDefinitionNode:iq,isSelectionNode:Nz,isTypeDefinitionNode:sq,isTypeExtensionNode:uq,isTypeNode:jz,isTypeSystemDefinitionNode:aq,isTypeSystemExtensionNode:oq,isValueNode:Cz,parse:Sz,parseType:Az,parseValue:Tz,print:Rz,printLocation:XF,printSourceLocation:NT,visit:nq,visitInParallel:Oz},Symbol.toStringTag,{value:"Module"})),Mz=Q3(Lz);var Ec={},km={},Oc={},bx={},gx;function cq(){return gx||(gx=1,function(){(function(t){(function(e){var u={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function s(E){return E&&DataView.prototype.isPrototypeOf(E)}if(u.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(E){return E&&n.indexOf(Object.prototype.toString.call(E))>-1};function a(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function o(E){return typeof E!="string"&&(E=String(E)),E}function l(E){var O={next:function(){var P=E.shift();return{done:P===void 0,value:P}}};return u.iterable&&(O[Symbol.iterator]=function(){return O}),O}function c(E){this.map={},E instanceof c?E.forEach(function(O,P){this.append(P,O)},this):Array.isArray(E)?E.forEach(function(O){this.append(O[0],O[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(O){this.append(O,E[O])},this)}c.prototype.append=function(E,O){E=a(E),O=o(O);var P=this.map[E];this.map[E]=P?P+", "+O:O},c.prototype.delete=function(E){delete this.map[a(E)]},c.prototype.get=function(E){return E=a(E),this.has(E)?this.map[E]:null},c.prototype.has=function(E){return this.map.hasOwnProperty(a(E))},c.prototype.set=function(E,O){this.map[a(E)]=o(O)},c.prototype.forEach=function(E,O){for(var P in this.map)this.map.hasOwnProperty(P)&&E.call(O,this.map[P],P,this)},c.prototype.keys=function(){var E=[];return this.forEach(function(O,P){E.push(P)}),l(E)},c.prototype.values=function(){var E=[];return this.forEach(function(O){E.push(O)}),l(E)},c.prototype.entries=function(){var E=[];return this.forEach(function(O,P){E.push([P,O])}),l(E)},u.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function d(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function h(E){return new Promise(function(O,P){E.onload=function(){O(E.result)},E.onerror=function(){P(E.error)}})}function f(E){var O=new FileReader,P=h(O);return O.readAsArrayBuffer(E),P}function p(E){var O=new FileReader,P=h(O);return O.readAsText(E),P}function y(E){for(var O=new Uint8Array(E),P=new Array(O.length),j=0;j-1?O:E}function _(E,O){O=O||{};var P=O.body;if(E instanceof _){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,O.headers||(this.headers=new c(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!P&&E._bodyInit!=null&&(P=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new c(O.headers)),this.method=v(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function w(E){var O=new FormData;return E.trim().split("&").forEach(function(P){if(P){var j=P.split("="),U=j.shift().replace(/\+/g," "),M=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(U),decodeURIComponent(M))}}),O}function S(E){var O=new c,P=E.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(j){var U=j.split(":"),M=U.shift().trim();if(M){var q=U.join(":").trim();O.append(M,q)}}),O}m.call(_.prototype);function A(E,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new c(O.headers),this.url=O.url||"",this._initBody(E)}m.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},A.error=function(){var E=new A(null,{status:0,statusText:""});return E.type="error",E};var D=[301,302,303,307,308];A.redirect=function(E,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new A(null,{status:O,headers:{location:E}})},e.DOMException=t.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,P){this.message=O,this.name=P;var j=Error(O);this.stack=j.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function L(E,O){return new Promise(function(P,j){var U=new _(E,O);if(U.signal&&U.signal.aborted)return j(new e.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function q(){M.abort()}M.onload=function(){var Q={status:M.status,statusText:M.statusText,headers:S(M.getAllResponseHeaders()||"")};Q.url="responseURL"in M?M.responseURL:Q.headers.get("X-Request-URL");var Z="response"in M?M.response:M.responseText;P(new A(Z,Q))},M.onerror=function(){j(new TypeError("Network request failed"))},M.ontimeout=function(){j(new TypeError("Network request failed"))},M.onabort=function(){j(new e.DOMException("Aborted","AbortError"))},M.open(U.method,U.url,!0),U.credentials==="include"?M.withCredentials=!0:U.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&u.blob&&(M.responseType="blob"),U.headers.forEach(function(Q,Z){M.setRequestHeader(Z,Q)}),U.signal&&(U.signal.addEventListener("abort",q),M.onreadystatechange=function(){M.readyState===4&&U.signal.removeEventListener("abort",q)}),M.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return L.polyfill=!0,t.fetch||(t.fetch=L,t.Headers=c,t.Request=_,t.Response=A),e.Headers=c,e.Request=_,e.Response=A,e.fetch=L,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})(typeof self<"u"?self:I)}()),bx}var zm={},sa={},mx;function Fz(){if(mx)return sa;mx=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.removeDotSegmentsOfPath=sa.removeDotSegments=sa.resolve=void 0;function t(n,r){r=r||"";const a=r.indexOf("#");if(a>0&&(r=r.substr(0,a)),!n.length){if(r.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);return r}if(n.startsWith("?")){const p=r.indexOf("?");return p>0&&(r=r.substr(0,p)),r+n}if(n.startsWith("#"))return r+n;if(!r.length){const p=n.indexOf(":");if(p<0)throw new Error(`Found invalid relative IRI '${n}' for a missing baseIRI`);return u(n,p)}const o=n.indexOf(":");if(o>=0)return u(n,o);const l=r.indexOf(":");if(l<0)throw new Error(`Found invalid baseIRI '${r}' for value '${n}'`);const c=r.substr(0,l+1);if(n.indexOf("//")===0)return c+u(n,o);let d;if(r.indexOf("//",l)===l+1){if(d=r.indexOf("/",l+3),d<0)return r.length>l+3?r+"/"+u(n,o):c+u(n,o)}else if(d=r.indexOf("/",l+1),d<0)return c+u(n,o);if(n.indexOf("/")===0)return r.substr(0,d)+e(n);let h=r.substr(d);const f=h.lastIndexOf("/");return f>=0&&fo.join("")).join("/")}sa.removeDotSegments=e;function u(n,r){let a=r+1;r>=0?n[r+1]==="/"&&n[r+2]==="/"&&(a=r+3):n[0]==="/"&&n[1]==="/"&&(a=2);const o=n.indexOf("/",a);if(o<0)return n;const l=n.substr(0,o),c=n.substr(o);return l+e(c)}sa.removeDotSegmentsOfPath=u;function s(n){return!n||n==="#"||n==="?"||n==="/"}return sa}var _x;function Pi(){return _x||(_x=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Fz(),t)}(zm)),zm}var Gm={},vx;function Ay(){return vx||(vx=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ERROR_CODES=t.ErrorCoded=void 0;class e extends Error{constructor(s,n){super(s),this.code=n}}t.ErrorCoded=e,function(u){u.COLLIDING_KEYWORDS="colliding keywords",u.CONFLICTING_INDEXES="conflicting indexes",u.CYCLIC_IRI_MAPPING="cyclic IRI mapping",u.INVALID_ID_VALUE="invalid @id value",u.INVALID_INDEX_VALUE="invalid @index value",u.INVALID_NEST_VALUE="invalid @nest value",u.INVALID_PREFIX_VALUE="invalid @prefix value",u.INVALID_PROPAGATE_VALUE="invalid @propagate value",u.INVALID_REVERSE_VALUE="invalid @reverse value",u.INVALID_IMPORT_VALUE="invalid @import value",u.INVALID_VERSION_VALUE="invalid @version value",u.INVALID_BASE_IRI="invalid base IRI",u.INVALID_CONTAINER_MAPPING="invalid container mapping",u.INVALID_CONTEXT_ENTRY="invalid context entry",u.INVALID_CONTEXT_NULLIFICATION="invalid context nullification",u.INVALID_DEFAULT_LANGUAGE="invalid default language",u.INVALID_INCLUDED_VALUE="invalid @included value",u.INVALID_IRI_MAPPING="invalid IRI mapping",u.INVALID_JSON_LITERAL="invalid JSON literal",u.INVALID_KEYWORD_ALIAS="invalid keyword alias",u.INVALID_LANGUAGE_MAP_VALUE="invalid language map value",u.INVALID_LANGUAGE_MAPPING="invalid language mapping",u.INVALID_LANGUAGE_TAGGED_STRING="invalid language-tagged string",u.INVALID_LANGUAGE_TAGGED_VALUE="invalid language-tagged value",u.INVALID_LOCAL_CONTEXT="invalid local context",u.INVALID_REMOTE_CONTEXT="invalid remote context",u.INVALID_REVERSE_PROPERTY="invalid reverse property",u.INVALID_REVERSE_PROPERTY_MAP="invalid reverse property map",u.INVALID_REVERSE_PROPERTY_VALUE="invalid reverse property value",u.INVALID_SCOPED_CONTEXT="invalid scoped context",u.INVALID_SCRIPT_ELEMENT="invalid script element",u.INVALID_SET_OR_LIST_OBJECT="invalid set or list object",u.INVALID_TERM_DEFINITION="invalid term definition",u.INVALID_TYPE_MAPPING="invalid type mapping",u.INVALID_TYPE_VALUE="invalid type value",u.INVALID_TYPED_VALUE="invalid typed value",u.INVALID_VALUE_OBJECT="invalid value object",u.INVALID_VALUE_OBJECT_VALUE="invalid value object value",u.INVALID_VOCAB_MAPPING="invalid vocab mapping",u.IRI_CONFUSED_WITH_PREFIX="IRI confused with prefix",u.KEYWORD_REDEFINITION="keyword redefinition",u.LOADING_DOCUMENT_FAILED="loading document failed",u.LOADING_REMOTE_CONTEXT_FAILED="loading remote context failed",u.MULTIPLE_CONTEXT_LINK_HEADERS="multiple context link headers",u.PROCESSING_MODE_CONFLICT="processing mode conflict",u.PROTECTED_TERM_REDEFINITION="protected term redefinition",u.CONTEXT_OVERFLOW="context overflow",u.INVALID_BASE_DIRECTION="invalid base direction",u.RECURSIVE_CONTEXT_INCLUSION="recursive context inclusion",u.INVALID_STREAMING_KEY_ORDER="invalid streaming key order",u.INVALID_EMBEDDED_NODE="invalid embedded node",u.INVALID_ANNOTATION="invalid annotation"}(t.ERROR_CODES||(t.ERROR_CODES={}))}(Gm)),Gm}var Rc={},Wm,wx;function lq(){if(wx)return Wm;wx=1;var t=/^utf-?8|ascii|utf-?16-?le|ucs-?2|base-?64|latin-?1$/i,e=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/\s|\uFEFF|\xA0/,s=/\r?\n[\x20\x09]+/g,n=/[;,"]/,r=/[;,"]|\s/,a=/^[!#$%&'*+\-\.^_`|~\da-zA-Z]+$/,o={IDLE:1,URI:2,ATTR:4};function l(y){return y.replace(e,"")}function c(y){return u.test(y)}function d(y,b){for(;c(y[b]);)b++;return b}function h(y){return r.test(y)||!a.test(y)}function f(y,b){return Object.keys(y).length===Object.keys(b).length&&Object.keys(y).every(m=>m in b&&y[m]===b[m])}class p{constructor(b){this.refs=[],b&&this.parse(b)}rel(b){for(var m=[],g=b.toLowerCase(),v=0;vf(m,b))||this.refs.push(b),this}has(b,m){b=b.toLowerCase(),m=m.toLowerCase();for(var g=0;g",_);if(S===-1)throw new Error("Expected end of URI delimiter at offset "+_);w={uri:b.slice(_+1,S)},_=S,g=o.URI}else throw new Error('Unexpected character "'+b[_]+'" at offset '+_);_++}else if(g===o.URI)if(c(b[_])){_++;continue}else if(b[_]===";")g=o.ATTR,_++;else if(b[_]===",")g=o.IDLE,_++;else throw new Error('Unexpected character "'+b[_]+'" at offset '+_);else if(g===o.ATTR){if(b[_]===";"||c(b[_])){_++;continue}var S=b.indexOf("=",_);S===-1&&(S=b.indexOf(";",_)),S===-1&&(S=b.length);var A=l(b.slice(_,S)).toLowerCase(),D="";if(_=S+1,_=d(b,_),b[_]==='"')for(_++;_"),b.push(m);return b.join(", ")}}return p.isCompatibleEncoding=function(y){return t.test(y)},p.parse=function(y,b){return new p().parse(y,b)},p.isSingleOccurenceAttr=function(y){return y==="rel"||y==="type"||y==="media"||y==="title"||y==="title*"},p.isTokenAttr=function(y){return y==="rel"||y==="type"||y==="anchor"},p.escapeQuotes=function(y){return y.replace(/"/g,'\\"')},p.expandRelations=function(y){var b=y.rel.split(" ");return b.map(function(m){var g=Object.assign({},y);return g.rel=m,g})},p.parseExtendedValue=function(y){var b=/([^']+)?(?:'([^']*)')?(.+)/.exec(y);return{language:b[2].toLowerCase(),encoding:p.isCompatibleEncoding(b[1])?null:b[1].toLowerCase(),value:p.isCompatibleEncoding(b[1])?decodeURIComponent(b[3]):b[3]}},p.formatExtendedAttribute=function(y,b){var m=(b.encoding||"utf-8").toUpperCase(),g=b.language||"en",v="";return Buffer.isBuffer(b.value)&&p.isCompatibleEncoding(m)?v=b.value.toString(m):Buffer.isBuffer(b.value)?v=b.value.toString("hex").replace(/[0-9a-f]{2}/gi,"%$1"):v=encodeURIComponent(b.value),y+"="+m+"'"+g+"'"+v},p.formatAttribute=function(y,b){return Array.isArray(b)?b.map(m=>p.formatAttribute(y,m)).join("; "):y[y.length-1]==="*"||typeof b!="string"?p.formatExtendedAttribute(y,b):(p.isTokenAttr(y)?b=h(b)?'"'+p.escapeQuotes(b)+'"':p.escapeQuotes(b):h(b)&&(b=encodeURIComponent(b),b=b.replace(/%20/g," ").replace(/%2C/g,",").replace(/%3B/g,";"),b='"'+b+'"'),y+"="+b)},Wm=p,Wm}var Sx;function dq(){if(Sx)return Rc;Sx=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.FetchDocumentLoader=void 0,cq();const t=Ay(),e=lq(),u=Pi();let s=class{constructor(r){this.fetcher=r}async load(r){const a=await(this.fetcher||fetch)(r,{headers:new Headers({accept:"application/ld+json"})});if(a.ok&&a.headers){let o=a.headers.get("Content-Type");if(o){const l=o.indexOf(";");l>0&&(o=o.substr(0,l))}if(o==="application/ld+json")return await a.json();if(a.headers.has("Link")){let l;if(a.headers.forEach((c,d)=>{if(d==="link"){const h=(0,e.parse)(c);for(const f of h.get("type","application/ld+json"))if(f.rel==="alternate"){if(l)throw new Error("Multiple JSON-LD alternate links were found on "+r);l=(0,u.resolve)(f.uri,r)}}}),l)return this.load(l)}throw new t.ErrorCoded(`Unsupported JSON-LD media type ${o}`,t.ERROR_CODES.LOADING_DOCUMENT_FAILED)}else throw new Error(a.statusText||`Status code: ${a.status}`)}};return Rc.FetchDocumentLoader=s,Rc}var Jm={},xc={},Tx;function LT(){if(Tx)return xc;Tx=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.Util=void 0;class t{static isCompactIri(u){return u.indexOf(":")>0&&!(u&&u[0]==="#")}static getPrefix(u,s){if(u&&u[0]==="#")return null;const n=u.indexOf(":");if(n>=0){if(u.length>n+1&&u.charAt(n+1)==="/"&&u.charAt(n+2)==="/")return null;const r=u.substr(0,n);if(r==="_")return null;if(s[r])return r}return null}static getContextValueId(u){if(u===null||typeof u=="string")return u;const s=u["@id"];return s||null}static isSimpleTermDefinitionPrefix(u,s){return!t.isPotentialKeyword(u)&&(s.allowPrefixNonGenDelims||typeof u=="string"&&(u[0]==="_"||t.isPrefixIriEndingWithGenDelim(u)))}static isPotentialKeyword(u){return typeof u=="string"&&t.KEYWORD_REGEX.test(u)}static isPrefixIriEndingWithGenDelim(u){return t.ENDS_WITH_GEN_DELIM.test(u)}static isPrefixValue(u){return u&&(typeof u=="string"||u&&typeof u=="object")}static isValidIri(u){return!!(u&&t.IRI_REGEX.test(u))}static isValidIriWeak(u){return!!u&&u[0]!==":"&&t.IRI_REGEX_WEAK.test(u)}static isValidKeyword(u){return t.VALID_KEYWORDS[u]}static isTermProtected(u,s){const n=u[s];return typeof n!="string"&&n&&n["@protected"]}static hasProtectedTerms(u){for(const s of Object.keys(u))if(t.isTermProtected(u,s))return!0;return!1}static isReservedInternalKeyword(u){return u.startsWith("@__")}static deepEqual(u,s){const n=Object.keys(u),r=Object.keys(s);return n.length!==r.length?!1:n.every(a=>{const o=u[a],l=s[a];return o===l||o!==null&&l!==null&&typeof o=="object"&&typeof l=="object"&&this.deepEqual(o,l)})}}return t.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`#]*(#[^#]*)?$/,t.IRI_REGEX_WEAK=/(?::[^:])|\//,t.KEYWORD_REGEX=/^@[a-z]+$/i,t.ENDS_WITH_GEN_DELIM=/[:/?#\[\]@]$/,t.REGEX_LANGUAGE_TAG=/^[a-zA-Z]+(-[a-zA-Z0-9]+)*$/,t.REGEX_DIRECTION_TAG=/^(ltr)|(rtl)$/,t.VALID_KEYWORDS={"@annotation":!0,"@base":!0,"@container":!0,"@context":!0,"@direction":!0,"@graph":!0,"@id":!0,"@import":!0,"@included":!0,"@index":!0,"@json":!0,"@language":!0,"@list":!0,"@nest":!0,"@none":!0,"@prefix":!0,"@propagate":!0,"@protected":!0,"@reverse":!0,"@set":!0,"@type":!0,"@value":!0,"@version":!0,"@vocab":!0},t.EXPAND_KEYS_BLACKLIST=["@base","@vocab","@language","@version","@direction"],t.ALIAS_DOMAIN_BLACKLIST=["@container","@graph","@id","@index","@list","@nest","@none","@prefix","@reverse","@set","@type","@value","@version"],t.ALIAS_RANGE_BLACKLIST=["@context","@preserve"],t.CONTAINERS=["@list","@set","@index","@language","@graph","@id","@type"],t.CONTAINERS_1_0=["@list","@set","@index"],xc.Util=t,xc}var Ax;function fq(){return Ax||(Ax=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultExpandOptions=t.JsonLdContextNormalized=void 0;const e=Pi(),u=Ay(),s=LT();class n{constructor(a){this.contextRaw=a}getContextRaw(){return this.contextRaw}expandTerm(a,o,l=t.defaultExpandOptions){const c=this.contextRaw[a];if(c===null||c&&c["@id"]===null)return null;let d=!0;if(c&&o){const m=s.Util.getContextValueId(c);if(m&&m!==a)if(typeof m!="string"||!s.Util.isValidIri(m)&&!s.Util.isValidKeyword(m))s.Util.isPotentialKeyword(m)||(d=!1);else return m}const h=s.Util.getPrefix(a,this.contextRaw),f=this.contextRaw["@vocab"],p=(!!f||f==="")&&f.indexOf(":")<0,y=this.contextRaw["@base"],b=s.Util.isPotentialKeyword(a);if(h){const m=this.contextRaw[h],g=s.Util.getContextValueId(m);if(g){if(typeof m=="string"||!l.allowPrefixForcing){if(!s.Util.isSimpleTermDefinitionPrefix(g,l))return a}else if(g[0]!=="_"&&!b&&!m["@prefix"]&&!(a in this.contextRaw))return a;return g+a.substr(h.length+1)}}else if(o&&(f||f===""||l.allowVocabRelativeToBase&&y&&p)&&!b&&!s.Util.isCompactIri(a))if(p){if(l.allowVocabRelativeToBase)return(f||y?(0,e.resolve)(f,y):"")+a;throw new u.ErrorCoded(`Relative vocab expansion for term '${a}' with vocab '${f}' is not allowed.`,u.ERROR_CODES.INVALID_VOCAB_MAPPING)}else return f+a;else if(!o&&y&&!b&&!s.Util.isCompactIri(a))return(0,e.resolve)(a,y);if(d)return a;throw new u.ErrorCoded(`Invalid IRI mapping found for context entry '${a}': '${JSON.stringify(c)}'`,u.ERROR_CODES.INVALID_IRI_MAPPING)}compactIri(a,o){if(o&&this.contextRaw["@vocab"]&&a.startsWith(this.contextRaw["@vocab"]))return a.substr(this.contextRaw["@vocab"].length);if(!o&&this.contextRaw["@base"]&&a.startsWith(this.contextRaw["@base"]))return a.substr(this.contextRaw["@base"].length);const l={prefix:"",suffix:a};for(const c in this.contextRaw){const d=this.contextRaw[c];if(d&&!s.Util.isPotentialKeyword(c)){const h=s.Util.getContextValueId(d);if(a.startsWith(h)){const f=a.substr(h.length);if(f)f.length=0&&(h!=="@type"||typeof d[h]=="object"&&!(d[h]["@protected"]||d[h]["@container"]==="@set")))throw new e.ErrorCoded(`Keywords can not be aliased to something else. +Tried mapping ${h} to ${JSON.stringify(f)}`,e.ERROR_CODES.KEYWORD_REDEFINITION);if(n.Util.ALIAS_RANGE_BLACKLIST.indexOf(n.Util.getContextValueId(f))>=0)throw new e.ErrorCoded(`Aliasing to certain keywords is not allowed. +Tried mapping ${h} to ${JSON.stringify(f)}`,e.ERROR_CODES.INVALID_KEYWORD_ALIAS);if(f&&n.Util.isPotentialKeyword(n.Util.getContextValueId(f))&&f["@prefix"]===!0)throw new e.ErrorCoded(`Tried to use keyword aliases as prefix: '${h}': '${JSON.stringify(f)}'`,e.ERROR_CODES.INVALID_TERM_DEFINITION);for(;n.Util.isPrefixValue(d[h]);){const p=d[h];let y=!1;if(typeof p=="string")d[h]=o.expandTerm(p,!0),y=y||p!==d[h];else{const b=p["@id"],m=p["@type"],g=!("@prefix"in p)||n.Util.isValidIri(h);if("@id"in p)b!=null&&typeof b=="string"&&(d[h]=Object.assign(Object.assign({},d[h]),{"@id":o.expandTerm(b,!0)}),y=y||b!==d[h]["@id"]);else if(!n.Util.isPotentialKeyword(h)&&g){const v=o.expandTerm(h,!0);v!==h&&(d[h]=Object.assign(Object.assign({},d[h]),{"@id":v}),y=!0)}if(m&&typeof m=="string"&&m!=="@vocab"&&(!p["@container"]||!p["@container"]["@type"])&&g){let v=o.expandTerm(m,!0);l&&m===v&&(v=o.expandTerm(m,!1)),v!==m&&(y=!0,d[h]=Object.assign(Object.assign({},d[h]),{"@type":v}))}}if(!y)break}}}normalize(o,{processingMode:l,normalizeLanguageTags:c}){if(c||l===1)for(const d of Object.keys(o))if(d==="@language"&&typeof o[d]=="string")o[d]=o[d].toLowerCase();else{const h=o[d];if(h&&typeof h=="object"&&typeof h["@language"]=="string"){const f=h["@language"].toLowerCase();f!==h["@language"]&&(o[d]=Object.assign(Object.assign({},h),{"@language":f}))}}}containersToHash(o){for(const l of Object.keys(o)){const c=o[l];if(c&&typeof c=="object"){if(typeof c["@container"]=="string")o[l]=Object.assign(Object.assign({},c),{"@container":{[c["@container"]]:!0}});else if(Array.isArray(c["@container"])){const d={};for(const h of c["@container"])d[h]=!0;o[l]=Object.assign(Object.assign({},c),{"@container":d})}}}}applyScopedProtected(o,{processingMode:l},c){if(l&&l>=1.1&&o["@protected"]){for(const d of Object.keys(o))if(!n.Util.isReservedInternalKeyword(d)&&!n.Util.isPotentialKeyword(d)&&!n.Util.isTermProtected(o,d)){const h=o[d];h&&typeof h=="object"?"@protected"in o[d]||(o[d]=Object.assign(Object.assign({},o[d]),{"@protected":!0})):(o[d]={"@id":h,"@protected":!0},n.Util.isSimpleTermDefinitionPrefix(h,c)&&(o[d]=Object.assign(Object.assign({},o[d]),{"@prefix":!0})))}delete o["@protected"]}}validateKeywordRedefinitions(o,l,c,d){for(const h of d??Object.keys(l))if(n.Util.isTermProtected(o,h)&&(typeof l[h]=="string"?l[h]={"@id":l[h],"@protected":!0}:l[h]=Object.assign(Object.assign({},l[h]),{"@protected":!0}),!n.Util.deepEqual(o[h],l[h])))throw new e.ErrorCoded(`Attempted to override the protected keyword ${h} from ${JSON.stringify(n.Util.getContextValueId(o[h]))} to ${JSON.stringify(n.Util.getContextValueId(l[h]))}`,e.ERROR_CODES.PROTECTED_TERM_REDEFINITION)}validate(o,{processingMode:l}){for(const c of Object.keys(o)){if(n.Util.isReservedInternalKeyword(c))continue;if(c==="")throw new e.ErrorCoded(`The empty term is not allowed, got: '${c}': '${JSON.stringify(o[c])}'`,e.ERROR_CODES.INVALID_TERM_DEFINITION);const d=o[c],h=typeof d;if(n.Util.isPotentialKeyword(c)){switch(c.substr(1)){case"vocab":if(d!==null&&h!=="string")throw new e.ErrorCoded(`Found an invalid @vocab IRI: ${d}`,e.ERROR_CODES.INVALID_VOCAB_MAPPING);break;case"base":if(d!==null&&h!=="string")throw new e.ErrorCoded(`Found an invalid @base IRI: ${o[c]}`,e.ERROR_CODES.INVALID_BASE_IRI);break;case"language":d!==null&&Ds.validateLanguage(d,!0,e.ERROR_CODES.INVALID_DEFAULT_LANGUAGE);break;case"version":if(d!==null&&h!=="number")throw new e.ErrorCoded(`Found an invalid @version number: ${d}`,e.ERROR_CODES.INVALID_VERSION_VALUE);break;case"direction":d!==null&&Ds.validateDirection(d,!0);break;case"propagate":if(l===1)throw new e.ErrorCoded(`Found an illegal @propagate keyword: ${d}`,e.ERROR_CODES.INVALID_CONTEXT_ENTRY);if(d!==null&&h!=="boolean")throw new e.ErrorCoded(`Found an invalid @propagate value: ${d}`,e.ERROR_CODES.INVALID_PROPAGATE_VALUE);break}if(n.Util.isValidKeyword(c)&&n.Util.isValidKeyword(n.Util.getContextValueId(d)))throw new e.ErrorCoded(`Illegal keyword alias in term value, found: '${c}': '${n.Util.getContextValueId(d)}'`,e.ERROR_CODES.KEYWORD_REDEFINITION);continue}if(d!==null)switch(h){case"string":if(n.Util.getPrefix(d,o)===c)throw new e.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.CYCLIC_IRI_MAPPING);if(n.Util.isValidIriWeak(c)){if(d==="@type")throw new e.ErrorCoded(`IRIs can not be mapped to @type, found: '${c}': '${d}'`,e.ERROR_CODES.INVALID_IRI_MAPPING);if(n.Util.isValidIri(d)&&d!==new s.JsonLdContextNormalized(o).expandTerm(c))throw new e.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${c}': '${d}'`,e.ERROR_CODES.INVALID_IRI_MAPPING)}break;case"object":if(!n.Util.isCompactIri(c)&&!("@id"in d)&&(d["@type"]==="@id"?!o["@base"]:!o["@vocab"]))throw new e.ErrorCoded(`Missing @id in context entry: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_IRI_MAPPING);for(const f of Object.keys(d)){const p=d[f];if(p)switch(f){case"@id":if(n.Util.isValidKeyword(p)&&p!=="@type"&&p!=="@id"&&p!=="@graph"&&p!=="@nest")throw new e.ErrorCoded(`Illegal keyword alias in term value, found: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_IRI_MAPPING);if(n.Util.isValidIriWeak(c)){if(p==="@type")throw new e.ErrorCoded(`IRIs can not be mapped to @type, found: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_IRI_MAPPING);if(n.Util.isValidIri(p)&&p!==new s.JsonLdContextNormalized(o).expandTerm(c))throw new e.ErrorCoded(`IRIs can not be mapped to other IRIs, found: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_IRI_MAPPING)}if(typeof p!="string")throw new e.ErrorCoded(`Detected non-string @id in context entry: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_IRI_MAPPING);if(n.Util.getPrefix(p,o)===c)throw new e.ErrorCoded(`Detected cyclical IRI mapping in context entry: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.CYCLIC_IRI_MAPPING);break;case"@type":if(d["@container"]==="@type"&&p!=="@id"&&p!=="@vocab")throw new e.ErrorCoded(`@container: @type only allows @type: @id or @vocab, but got: '${c}': '${p}'`,e.ERROR_CODES.INVALID_TYPE_MAPPING);if(typeof p!="string")throw new e.ErrorCoded(`The value of an '@type' must be a string, got '${JSON.stringify(h)}'`,e.ERROR_CODES.INVALID_TYPE_MAPPING);if(p!=="@id"&&p!=="@vocab"&&(l===1||p!=="@json")&&(l===1||p!=="@none")&&(p[0]==="_"||!n.Util.isValidIri(p)))throw new e.ErrorCoded(`A context @type must be an absolute IRI, found: '${c}': '${p}'`,e.ERROR_CODES.INVALID_TYPE_MAPPING);break;case"@reverse":if(typeof p=="string"&&d["@id"]&&d["@id"]!==p)throw new e.ErrorCoded(`Found non-matching @id and @reverse term values in '${c}':'${p}' and '${d["@id"]}'`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY);if("@nest"in d)throw new e.ErrorCoded(`@nest is not allowed in the reverse property '${c}'`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY);break;case"@container":if(l===1&&(Object.keys(p).length>1||n.Util.CONTAINERS_1_0.indexOf(Object.keys(p)[0])<0))throw new e.ErrorCoded(`Invalid term @container for '${c}' ('${Object.keys(p)}') in 1.0, must be only one of ${n.Util.CONTAINERS_1_0.join(", ")}`,e.ERROR_CODES.INVALID_CONTAINER_MAPPING);for(const y of Object.keys(p)){if(y==="@list"&&d["@reverse"])throw new e.ErrorCoded(`Term value can not be @container: @list and @reverse at the same time on '${c}'`,e.ERROR_CODES.INVALID_REVERSE_PROPERTY);if(n.Util.CONTAINERS.indexOf(y)<0)throw new e.ErrorCoded(`Invalid term @container for '${c}' ('${y}'), must be one of ${n.Util.CONTAINERS.join(", ")}`,e.ERROR_CODES.INVALID_CONTAINER_MAPPING)}break;case"@language":Ds.validateLanguage(p,!0,e.ERROR_CODES.INVALID_LANGUAGE_MAPPING);break;case"@direction":Ds.validateDirection(p,!0);break;case"@prefix":if(p!==null&&typeof p!="boolean")throw new e.ErrorCoded(`Found an invalid term @prefix boolean in: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_PREFIX_VALUE);if(!("@id"in d)&&!n.Util.isValidIri(c))throw new e.ErrorCoded(`Invalid @prefix definition for '${c}' ('${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@index":if(l===1||!d["@container"]||!d["@container"]["@index"])throw new e.ErrorCoded(`Attempt to add illegal key to value object: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_TERM_DEFINITION);break;case"@nest":if(n.Util.isPotentialKeyword(p)&&p!=="@nest")throw new e.ErrorCoded(`Found an invalid term @nest value in: '${c}': '${JSON.stringify(d)}'`,e.ERROR_CODES.INVALID_NEST_VALUE)}}break;default:throw new e.ErrorCoded(`Found an invalid term value: '${c}': '${d}'`,e.ERROR_CODES.INVALID_TERM_DEFINITION)}}}applyBaseEntry(o,l,c){return typeof o=="string"||(c&&!("@base"in o)&&l.parentContext&&typeof l.parentContext=="object"&&"@base"in l.parentContext&&(o["@base"]=l.parentContext["@base"],l.parentContext["@__baseDocument"]&&(o["@__baseDocument"]=!0)),l.baseIRI&&!l.external&&("@base"in o?o["@base"]!==null&&typeof o["@base"]=="string"&&!n.Util.isValidIri(o["@base"])&&(o["@base"]=(0,t.resolve)(o["@base"],l.parentContext&&l.parentContext["@base"]||l.baseIRI)):(o["@base"]=l.baseIRI,o["@__baseDocument"]=!0))),o}normalizeContextIri(o,l){if(!n.Util.isValidIri(o))try{o=(0,t.resolve)(o,l)}catch{throw new Error(`Invalid context IRI: ${o}`)}return this.redirectSchemaOrgHttps&&o.startsWith("http://schema.org")&&(o="https://schema.org/"),o}async parseInnerContexts(o,l,c){for(const d of c??Object.keys(o)){const h=o[d];if(h&&typeof h=="object"&&"@context"in h&&h["@context"]!==null&&!l.ignoreScopedContexts){if(this.validateContext)try{const f=Object.assign(Object.assign({},o),{[d]:Object.assign({},o[d])});delete f[d]["@context"],await this.parse(h["@context"],Object.assign(Object.assign({},l),{external:!1,parentContext:f,ignoreProtection:!0,ignoreRemoteScopedContexts:!0,ignoreScopedContexts:!0}))}catch(f){throw new e.ErrorCoded(f.message,e.ERROR_CODES.INVALID_SCOPED_CONTEXT)}o[d]=Object.assign(Object.assign({},h),{"@context":(await this.parse(h["@context"],Object.assign(Object.assign({},l),{external:!1,minimalProcessing:!0,ignoreRemoteScopedContexts:!0,parentContext:o}))).getContextRaw()})}}return o}async parse(o,l={},c={}){const{baseIRI:d,parentContext:h,external:f,processingMode:p=Ds.DEFAULT_PROCESSING_MODE,normalizeLanguageTags:y,ignoreProtection:b,minimalProcessing:m}=l,g=l.remoteContexts||{};if(Object.keys(g).length>=this.remoteContextsDepthLimit)throw new e.ErrorCoded("Detected an overflow in remote context inclusions: "+Object.keys(g),e.ERROR_CODES.CONTEXT_OVERFLOW);if(o==null){if(!b&&h&&n.Util.hasProtectedTerms(h))throw new e.ErrorCoded("Illegal context nullification when terms are protected",e.ERROR_CODES.INVALID_CONTEXT_NULLIFICATION);return new s.JsonLdContextNormalized(this.applyBaseEntry({},l,!1))}else if(typeof o=="string"){const v=this.normalizeContextIri(o,d),_=this.getOverriddenLoad(v,l);if(_)return new s.JsonLdContextNormalized(_);const w=await this.parse(await this.load(v),Object.assign(Object.assign({},l),{baseIRI:v,external:!0,remoteContexts:Object.assign(Object.assign({},g),{[v]:!0})}));return this.applyBaseEntry(w.getContextRaw(),l,!0),w}else if(Array.isArray(o)){const v=[],_=await Promise.all(o.map((S,A)=>{if(typeof S=="string"){const D=this.normalizeContextIri(S,d);v[A]=D;const L=this.getOverriddenLoad(D,l);return L||this.load(D)}else return S}));if(m)return new s.JsonLdContextNormalized(_);const w=await _.reduce((S,A,D)=>S.then(L=>this.parse(A,Object.assign(Object.assign({},l),{baseIRI:v[D]||l.baseIRI,external:!!v[D]||l.external,parentContext:L.getContextRaw(),remoteContexts:v[D]?Object.assign(Object.assign({},g),{[v[D]]:!0}):g}),{skipValidation:D<_.length-1})),Promise.resolve(new s.JsonLdContextNormalized(h||{})));return this.applyBaseEntry(w.getContextRaw(),l,!0),w}else if(typeof o=="object"){if("@context"in o)return await this.parse(o["@context"],l);if(o=Object.assign({},o),f&&delete o["@base"],this.applyBaseEntry(o,l,!0),this.containersToHash(o),m)return new s.JsonLdContextNormalized(o);let v={};if("@import"in o)if(p>=1.1){if(typeof o["@import"]!="string")throw new e.ErrorCoded("An @import value must be a string, but got "+typeof o["@import"],e.ERROR_CODES.INVALID_IMPORT_VALUE);v=await this.loadImportContext(this.normalizeContextIri(o["@import"],d)),delete o["@import"]}else throw new e.ErrorCoded("Context importing is not supported in JSON-LD 1.0",e.ERROR_CODES.INVALID_CONTEXT_ENTRY);this.applyScopedProtected(v,{processingMode:p},s.defaultExpandOptions);const _=Object.assign(v,o);this.idifyReverseTerms(_),this.normalize(_,{processingMode:p,normalizeLanguageTags:y}),this.applyScopedProtected(_,{processingMode:p},s.defaultExpandOptions);const w=Object.keys(_),S=[];if(typeof h=="object")for(const D in h)D in _?S.push(D):_[D]=h[D];await this.parseInnerContexts(_,l,w);const A=new s.JsonLdContextNormalized(_);return(_&&_["@version"]||Ds.DEFAULT_PROCESSING_MODE)>=1.1&&(o["@vocab"]&&typeof o["@vocab"]=="string"||o["@vocab"]==="")&&(h&&"@vocab"in h&&o["@vocab"].indexOf(":")<0?_["@vocab"]=h["@vocab"]+o["@vocab"]:(n.Util.isCompactIri(o["@vocab"])||o["@vocab"]in _)&&(_["@vocab"]=A.expandTerm(o["@vocab"],!0))),this.expandPrefixedTerms(A,this.expandContentTypeToBase,w),!b&&h&&p>=1.1&&this.validateKeywordRedefinitions(h,_,s.defaultExpandOptions,S),this.validateContext&&!c.skipValidation&&this.validate(_,{processingMode:p}),A}else throw new e.ErrorCoded(`Tried parsing a context that is not a string, array or object, but got ${o}`,e.ERROR_CODES.INVALID_LOCAL_CONTEXT)}async load(o){const l=this.documentCache[o];if(l)return l;let c;try{c=await this.documentLoader.load(o)}catch(d){throw new e.ErrorCoded(`Failed to load remote context ${o}: ${d.message}`,e.ERROR_CODES.LOADING_REMOTE_CONTEXT_FAILED)}if(!("@context"in c))throw new e.ErrorCoded(`Missing @context in remote context at ${o}`,e.ERROR_CODES.INVALID_REMOTE_CONTEXT);return this.documentCache[o]=c["@context"]}getOverriddenLoad(o,l){if(o in(l.remoteContexts||{})){if(l.ignoreRemoteScopedContexts)return o;throw new e.ErrorCoded("Detected a cyclic context inclusion of "+o,e.ERROR_CODES.RECURSIVE_CONTEXT_INCLUSION)}return null}async loadImportContext(o){let l=await this.load(o);if(typeof l!="object"||Array.isArray(l))throw new e.ErrorCoded("An imported context must be a single object: "+o,e.ERROR_CODES.INVALID_REMOTE_CONTEXT);if("@import"in l)throw new e.ErrorCoded("An imported context can not import another context: "+o,e.ERROR_CODES.INVALID_CONTEXT_ENTRY);return l=Object.assign({},l),this.containersToHash(l),l}};return r.DEFAULT_PROCESSING_MODE=1.1,Oc.ContextParser=r,Oc}var Xm={},Ox;function Bz(){return Ox||(Ox=1,Object.defineProperty(Xm,"__esModule",{value:!0})),Xm}var Km={},Rx;function Uz(){return Rx||(Rx=1,Object.defineProperty(Km,"__esModule",{value:!0})),Km}var xx;function Jr(){return xx||(xx=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(qz(),t),u(Ay(),t),u(dq(),t),u(Bz(),t),u(Uz(),t),u(fq(),t),u(LT(),t)}(km)),km}var Ix;function hq(){if(Ix)return Ec;Ix=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.Util=void 0;const t=Et(),e=Jr(),u=Ot();class s{constructor(r){this.nodeHandlers={},this.nodeValueHandlers={},this.directiveNodeHandlers={},this.settings=r,this.dataFactory=r.dataFactory||new t.DataFactory,this.operationFactory=new u.Factory(this.dataFactory),this.contextParser=new e.ContextParser}registerNodeHandler(r){this.nodeHandlers[r.targetKind]=r}registerNodeValueHandler(r){this.nodeValueHandlers[r.targetKind]=r}registerDirectiveNodeHandler(r){this.directiveNodeHandlers[r.targetKind]=r}handleNode(r,a){const o=this.nodeHandlers[r.kind];if(!o)throw new Error(`Unsupported GraphQL node '${r.kind}'`);return o.handle(r,a)}handleNodeValue(r,a,o){const l=this.nodeValueHandlers[r.kind];if(!l)throw new Error(`Unsupported GraphQL value node '${r.kind}'`);return l.handle(r,a,o)}handleDirectiveNode(r,a){const o=this.directiveNodeHandlers[r.directive.name.value];return o?o.handle(r,a):null}joinOperations(r){if(r.length===1)return r[0];const a=[],o=[];for(const l of r)l.type==="bgp"?a.push(l):o.push(l);if(a.length===r.length)return this.joinOperationsAsBgp(a);if(a.length===r.length-1&&o[0].type==="leftjoin"&&o[0].input[0].type==="bgp"){const l=o[0];return a.push(l.input[0]),this.operationFactory.createLeftJoin(this.joinOperationsAsBgp(a),l.input[1])}else return o.length===r.length?this.joinOperationsAsNestedJoin(o):this.joinOperationsAsNestedJoin([this.joinOperationsAsBgp(a),this.joinOperationsAsNestedJoin(o)])}joinOperationsAsBgp(r){return this.operationFactory.createBgp([].concat.apply([],r.map(a=>a.patterns)))}joinOperationsAsNestedJoin(r){return this.operationFactory.createJoin(r)}appendFieldToPath(r,a){return r.concat([a])}getFieldLabel(r){return(r.alias?r.alias:r.name).value}nameToVariable(r,a){return this.dataFactory.variable((a.path.length?a.path.join(this.settings.variableDelimiter)+this.settings.variableDelimiter:"")+r)}valueToNamedNode(r,a){const o=a.expandTerm(r,!0);if(this.settings.requireContext&&!o)throw new Error("No context entry was found for "+r);return this.dataFactory.namedNode(o||r)}getArgument(r,a){if(r){for(const o of r)if(o.name.value===a)return o}}newTypePattern(r,a,o){return this.operationFactory.createPattern(r,this.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),this.valueToNamedNode(a.name.value,o.context),o.graph)}createQuadPattern(r,a,o,l,c){const d=this.valueToNamedNode(a.value,c);return c&&c.getContextRaw()[a.value]&&c.getContextRaw()[a.value]["@reverse"]?this.operationFactory.createPattern(o,d,r,l):this.operationFactory.createPattern(r,d,o,l)}createQuadPath(r,a,o,l,c,d){const h=this.valueToNamedNode(a.value,d);let f=this.operationFactory.createLink(h);for(const p of o.values){if(p.kind!=="EnumValue")throw new Error("Invalid value type for 'alt' argument, must be EnumValue, but got "+p.kind);f=this.operationFactory.createAlt([f,this.operationFactory.createLink(this.valueToNamedNode(p.value,d))])}return d&&d.getContextRaw()[a.value]&&d.getContextRaw()[a.value]["@reverse"]?this.operationFactory.createPath(l,f,r,c):this.operationFactory.createPath(r,f,l,c)}}return Ec.Util=s,Ec}var Px;function Hz(){if(Px)return Ac;Px=1;var t=I&&I.__awaiter||function(o,l,c,d){function h(f){return f instanceof c?f:new c(function(p){p(f)})}return new(c||(c=Promise))(function(f,p){function y(g){try{m(d.next(g))}catch(v){p(v)}}function b(g){try{m(d.throw(g))}catch(v){p(v)}}function m(g){g.done?f(g.value):h(g.value).then(y,b)}m((d=d.apply(o,l||[])).next())})};Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.Converter=void 0;const e=Mz,u=zF(),s=kF(),n=Ty(),r=hq();class a{constructor(l){l=l||{},l.variableDelimiter=l.variableDelimiter||"_",l.expressionVariableCounter=l.expressionVariableCounter||0,this.util=new r.Util(l),this.initializeNodeHandlers(l)}static registerNodeHandlers(l,c){l.registerNodeHandler(new u.NodeHandlerDocument(l,c)),l.registerNodeHandler(new u.NodeHandlerDefinitionOperation(l,c)),l.registerNodeHandler(new u.NodeHandlerDefinitionFragment(l,c)),l.registerNodeHandler(new u.NodeHandlerSelectionFragmentSpread(l,c)),l.registerNodeHandler(new u.NodeHandlerSelectionInlineFragment(l,c)),l.registerNodeHandler(new u.NodeHandlerSelectionField(l,c))}static registerNodeValueHandlers(l,c){l.registerNodeValueHandler(new u.NodeValueHandlerVariable(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerInt(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerFloat(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerString(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerBoolean(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerNull(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerEnum(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerList(l,c)),l.registerNodeValueHandler(new u.NodeValueHandlerObject(l,c))}static registerDirectiveNodeHandlers(l,c){l.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerInclude(l,c)),l.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerOptional(l,c)),l.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerPlural(l,c)),l.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerSingle(l,c)),l.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerSkip(l,c))}graphqlToSparqlAlgebra(l,c,d){return t(this,void 0,void 0,function*(){return this.graphqlToSparqlAlgebraRawContext(l,yield this.util.contextParser.parse(c),d)})}graphqlToSparqlAlgebraRawContext(l,c,d){d=d||{};const h=typeof l=="string"?(0,e.parse)(l):l,f=this.indexFragments(h),p={context:c,fragmentDefinitions:f,graph:this.util.dataFactory.defaultGraph(),path:[],singularizeState:n.SingularizeState.PLURAL,singularizeVariables:d.singularizeVariables||{},subject:null,terminalVariables:[],variablesDict:d.variablesDict||{},variablesMetaDict:{}};return this.util.handleNode(h,p)}indexFragments(l){const c={},d=[];for(const h of l.definitions)h.kind==="FragmentDefinition"?c[h.name.value]=h:d.push(h);return l.definitions=d,c}initializeNodeHandlers(l){a.registerNodeHandlers(this.util,l),a.registerNodeValueHandlers(this.util,l),a.registerDirectiveNodeHandlers(this.util,l)}}return Ac.Converter=a,Ac}var Ym={},Dx;function $z(){return Dx||(Dx=1,Object.defineProperty(Ym,"__esModule",{value:!0})),Ym}var Nx;function Qz(){return Nx||(Nx=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(zF(),t),u(Hz(),t),u(Ty(),t),u($z(),t),u(hq(),t)}(Fm)),Fm}var Cx;function Vz(){if(Cx)return Yu;Cx=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.ActorQueryParseGraphql=void 0;const t=VF(),e=Lt,u=Qz();let s=class extends t.ActorQueryParse{constructor(r){super(r),this.graphqlToSparql=new u.Converter({requireContext:!0})}async test(r){var a;if(((a=r.queryFormat)==null?void 0:a.language)!=="graphql")throw new Error("This actor can only parse GraphQL queries");return!0}async run(r){const a=r.context.get(e.KeysInitQuery.jsonLdContext)||{},o={singularizeVariables:r.context.get(e.KeysInitQuery.graphqlSingularizeVariables)};return{operation:await this.graphqlToSparql.graphqlToSparqlAlgebra(r.query,a,o)}}};return Yu.ActorQueryParseGraphql=s,Yu}var jx;function kz(){return jx||(jx=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Vz(),t)}(Mm)),Mm}var Zm={},Ic={},e_={},Pc={},t_={},Dc={},Lx;function pq(){if(Lx)return Dc;Lx=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.ActorAbstractMediaTyped=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}async run(s){if("handle"in s){const n=s;return{handle:await this.runHandle(n.handle,n.handleMediaType,s.context)}}if("mediaTypes"in s)return{mediaTypes:await this.getMediaTypes(s.context)};if("mediaTypeFormats"in s)return{mediaTypeFormats:await this.getMediaTypeFormats(s.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}async test(s){if("handle"in s){const n=s;return{handle:await this.testHandle(n.handle,n.handleMediaType,s.context)}}if("mediaTypes"in s)return{mediaTypes:await this.testMediaType(s.context)};if("mediaTypeFormats"in s)return{mediaTypeFormats:await this.testMediaTypeFormats(s.context)};throw new Error("Either a handle, mediaTypes or mediaTypeFormats action needs to be provided")}};return Dc.ActorAbstractMediaTyped=e,Dc}var Nc={},Mx;function zz(){if(Mx)return Nc;Mx=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.ActorAbstractMediaTypedFixed=void 0;const t=pq();let e=class extends t.ActorAbstractMediaTyped{constructor(s){super(s);const n=this.priorityScale||this.priorityScale===0?this.priorityScale:1;if(this.mediaTypePriorities)for(const[r,[a,o]]of Object.entries(this.mediaTypePriorities).entries())this.mediaTypePriorities[a]=n*o;this.mediaTypePriorities=Object.freeze(this.mediaTypePriorities),this.mediaTypeFormats=Object.freeze(this.mediaTypeFormats)}async testHandle(s,n,r){if(!n||!(n in this.mediaTypePriorities))throw new Error(`Unrecognized media type: ${n}`);return await this.testHandleChecked(s,r)}async testMediaType(s){return!0}async getMediaTypes(s){return this.mediaTypePriorities}async testMediaTypeFormats(s){return!0}async getMediaTypeFormats(s){return this.mediaTypeFormats}};return Nc.ActorAbstractMediaTypedFixed=e,Nc}var Fx;function nu(){return Fx||(Fx=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(pq(),t),u(zz(),t)}(t_)),t_}var qx;function Gz(){if(qx)return Pc;qx=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.ActorQueryResultSerialize=void 0;const t=nu();let e=class extends t.ActorAbstractMediaTyped{constructor(s){super(s)}};return Pc.ActorQueryResultSerialize=e,Pc}var Cc={},Bx;function Wz(){if(Bx)return Cc;Bx=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.ActorQueryResultSerializeFixedMediaTypes=void 0;const t=nu();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(s){super(s)}async testHandleChecked(s,n){return!0}};return Cc.ActorQueryResultSerializeFixedMediaTypes=e,Cc}var Ux;function Gi(){return Ux||(Ux=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Gz(),t),u(Wz(),t)}(e_)),e_}var r_={exports:{}},n_={exports:{}},i_={},jc={},Hx;function Jz(){if(Hx)return jc;Hx=1,jc.byteLength=o,jc.toByteArray=c,jc.fromByteArray=f;for(var t=[],e=[],u=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,r=s.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");var b=p.indexOf("=");b===-1&&(b=y);var m=b===y?0:4-b%4;return[b,m]}function o(p){var y=a(p),b=y[0],m=y[1];return(b+m)*3/4-m}function l(p,y,b){return(y+b)*3/4-b}function c(p){var y,b=a(p),m=b[0],g=b[1],v=new u(l(p,m,g)),_=0,w=g>0?m-4:m,S;for(S=0;S>16&255,v[_++]=y>>8&255,v[_++]=y&255;return g===2&&(y=e[p.charCodeAt(S)]<<2|e[p.charCodeAt(S+1)]>>4,v[_++]=y&255),g===1&&(y=e[p.charCodeAt(S)]<<10|e[p.charCodeAt(S+1)]<<4|e[p.charCodeAt(S+2)]>>2,v[_++]=y>>8&255,v[_++]=y&255),v}function d(p){return t[p>>18&63]+t[p>>12&63]+t[p>>6&63]+t[p&63]}function h(p,y,b){for(var m,g=[],v=y;vw?w:_+v));return m===1?(y=p[b-1],g.push(t[y>>2]+t[y<<4&63]+"==")):m===2&&(y=(p[b-2]<<8)+p[b-1],g.push(t[y>>10]+t[y>>4&63]+t[y<<2&63]+"=")),g.join("")}return jc}var a1={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var $x;function Xz(){return $x||($x=1,a1.read=function(t,e,u,s,n){var r,a,o=n*8-s-1,l=(1<>1,d=-7,h=u?n-1:0,f=u?-1:1,p=t[e+h];for(h+=f,r=p&(1<<-d)-1,p>>=-d,d+=o;d>0;r=r*256+t[e+h],h+=f,d-=8);for(a=r&(1<<-d)-1,r>>=-d,d+=s;d>0;a=a*256+t[e+h],h+=f,d-=8);if(r===0)r=1-c;else{if(r===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,s),r=r-c}return(p?-1:1)*a*Math.pow(2,r-s)},a1.write=function(t,e,u,s,n,r){var a,o,l,c=r*8-n-1,d=(1<>1,f=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=s?0:r-1,y=s?1:-1,b=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=d):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?e+=f/l:e+=f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=d?(o=0,a=d):a+h>=1?(o=(e*l-1)*Math.pow(2,n),a=a+h):(o=e*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;t[u+p]=o&255,p+=y,o/=256,n-=8);for(a=a<0;t[u+p]=a&255,p+=y,a/=256,c-=8);t[u+p-y]|=b*128}),a1}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var Qx;function Wi(){return Qx||(Qx=1,function(t){const e=Jz(),u=Xz(),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50;const n=2147483647;t.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=r(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function r(){try{const G=new Uint8Array(1),F={foo:function(){return 42}};return Object.setPrototypeOf(F,Uint8Array.prototype),Object.setPrototypeOf(G,F),G.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(G){if(G>n)throw new RangeError('The value "'+G+'" is invalid for option "size"');const F=new Uint8Array(G);return Object.setPrototypeOf(F,o.prototype),F}function o(G,F,H){if(typeof G=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(G)}return l(G,F,H)}o.poolSize=8192;function l(G,F,H){if(typeof G=="string")return f(G,F);if(ArrayBuffer.isView(G))return y(G);if(G==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(ce(G,ArrayBuffer)||G&&ce(G.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ce(G,SharedArrayBuffer)||G&&ce(G.buffer,SharedArrayBuffer)))return b(G,F,H);if(typeof G=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const re=G.valueOf&&G.valueOf();if(re!=null&&re!==G)return o.from(re,F,H);const be=m(G);if(be)return be;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]=="function")return o.from(G[Symbol.toPrimitive]("string"),F,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}o.from=function(G,F,H){return l(G,F,H)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c(G){if(typeof G!="number")throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function d(G,F,H){return c(G),G<=0?a(G):F!==void 0?typeof H=="string"?a(G).fill(F,H):a(G).fill(F):a(G)}o.alloc=function(G,F,H){return d(G,F,H)};function h(G){return c(G),a(G<0?0:g(G)|0)}o.allocUnsafe=function(G){return h(G)},o.allocUnsafeSlow=function(G){return h(G)};function f(G,F){if((typeof F!="string"||F==="")&&(F="utf8"),!o.isEncoding(F))throw new TypeError("Unknown encoding: "+F);const H=_(G,F)|0;let re=a(H);const be=re.write(G,F);return be!==H&&(re=re.slice(0,be)),re}function p(G){const F=G.length<0?0:g(G.length)|0,H=a(F);for(let re=0;re=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return G|0}function v(G){return+G!=G&&(G=0),o.alloc(+G)}o.isBuffer=function(F){return F!=null&&F._isBuffer===!0&&F!==o.prototype},o.compare=function(F,H){if(ce(F,Uint8Array)&&(F=o.from(F,F.offset,F.byteLength)),ce(H,Uint8Array)&&(H=o.from(H,H.offset,H.byteLength)),!o.isBuffer(F)||!o.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(F===H)return 0;let re=F.length,be=H.length;for(let Re=0,Ce=Math.min(re,be);Rebe.length?(o.isBuffer(Ce)||(Ce=o.from(Ce)),Ce.copy(be,Re)):Uint8Array.prototype.set.call(be,Ce,Re);else if(o.isBuffer(Ce))Ce.copy(be,Re);else throw new TypeError('"list" argument must be an Array of Buffers');Re+=Ce.length}return be};function _(G,F){if(o.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||ce(G,ArrayBuffer))return G.byteLength;if(typeof G!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);const H=G.length,re=arguments.length>2&&arguments[2]===!0;if(!re&&H===0)return 0;let be=!1;for(;;)switch(F){case"ascii":case"latin1":case"binary":return H;case"utf8":case"utf-8":return V(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H*2;case"hex":return H>>>1;case"base64":return Y(G).length;default:if(be)return re?-1:V(G).length;F=(""+F).toLowerCase(),be=!0}}o.byteLength=_;function w(G,F,H){let re=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((H===void 0||H>this.length)&&(H=this.length),H<=0)||(H>>>=0,F>>>=0,H<=F))return"";for(G||(G="utf8");;)switch(G){case"hex":return fe(this,F,H);case"utf8":case"utf-8":return M(this,F,H);case"ascii":return Z(this,F,H);case"latin1":case"binary":return K(this,F,H);case"base64":return U(this,F,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,F,H);default:if(re)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),re=!0}}o.prototype._isBuffer=!0;function S(G,F,H){const re=G[F];G[F]=G[H],G[H]=re}o.prototype.swap16=function(){const F=this.length;if(F%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(F+=" ... "),""},s&&(o.prototype[s]=o.prototype.inspect),o.prototype.compare=function(F,H,re,be,Re){if(ce(F,Uint8Array)&&(F=o.from(F,F.offset,F.byteLength)),!o.isBuffer(F))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof F);if(H===void 0&&(H=0),re===void 0&&(re=F?F.length:0),be===void 0&&(be=0),Re===void 0&&(Re=this.length),H<0||re>F.length||be<0||Re>this.length)throw new RangeError("out of range index");if(be>=Re&&H>=re)return 0;if(be>=Re)return-1;if(H>=re)return 1;if(H>>>=0,re>>>=0,be>>>=0,Re>>>=0,this===F)return 0;let Ce=Re-be,Qe=re-H;const ke=Math.min(Ce,Qe),me=this.slice(be,Re),Se=F.slice(H,re);for(let W=0;W2147483647?H=2147483647:H<-2147483648&&(H=-2147483648),H=+H,Ae(H)&&(H=be?0:G.length-1),H<0&&(H=G.length+H),H>=G.length){if(be)return-1;H=G.length-1}else if(H<0)if(be)H=0;else return-1;if(typeof F=="string"&&(F=o.from(F,re)),o.isBuffer(F))return F.length===0?-1:D(G,F,H,re,be);if(typeof F=="number")return F=F&255,typeof Uint8Array.prototype.indexOf=="function"?be?Uint8Array.prototype.indexOf.call(G,F,H):Uint8Array.prototype.lastIndexOf.call(G,F,H):D(G,[F],H,re,be);throw new TypeError("val must be string, number or Buffer")}function D(G,F,H,re,be){let Re=1,Ce=G.length,Qe=F.length;if(re!==void 0&&(re=String(re).toLowerCase(),re==="ucs2"||re==="ucs-2"||re==="utf16le"||re==="utf-16le")){if(G.length<2||F.length<2)return-1;Re=2,Ce/=2,Qe/=2,H/=2}function ke(Se,W){return Re===1?Se[W]:Se.readUInt16BE(W*Re)}let me;if(be){let Se=-1;for(me=H;meCe&&(H=Ce-Qe),me=H;me>=0;me--){let Se=!0;for(let W=0;Wbe&&(re=be)):re=be;const Re=F.length;re>Re/2&&(re=Re/2);let Ce;for(Ce=0;Ce>>0,isFinite(re)?(re=re>>>0,be===void 0&&(be="utf8")):(be=re,re=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Re=this.length-H;if((re===void 0||re>Re)&&(re=Re),F.length>0&&(re<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");be||(be="utf8");let Ce=!1;for(;;)switch(be){case"hex":return L(this,F,H,re);case"utf8":case"utf-8":return E(this,F,H,re);case"ascii":case"latin1":case"binary":return O(this,F,H,re);case"base64":return P(this,F,H,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,F,H,re);default:if(Ce)throw new TypeError("Unknown encoding: "+be);be=(""+be).toLowerCase(),Ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function U(G,F,H){return F===0&&H===G.length?e.fromByteArray(G):e.fromByteArray(G.slice(F,H))}function M(G,F,H){H=Math.min(G.length,H);const re=[];let be=F;for(;be239?4:Re>223?3:Re>191?2:1;if(be+Qe<=H){let ke,me,Se,W;switch(Qe){case 1:Re<128&&(Ce=Re);break;case 2:ke=G[be+1],(ke&192)===128&&(W=(Re&31)<<6|ke&63,W>127&&(Ce=W));break;case 3:ke=G[be+1],me=G[be+2],(ke&192)===128&&(me&192)===128&&(W=(Re&15)<<12|(ke&63)<<6|me&63,W>2047&&(W<55296||W>57343)&&(Ce=W));break;case 4:ke=G[be+1],me=G[be+2],Se=G[be+3],(ke&192)===128&&(me&192)===128&&(Se&192)===128&&(W=(Re&15)<<18|(ke&63)<<12|(me&63)<<6|Se&63,W>65535&&W<1114112&&(Ce=W))}}Ce===null?(Ce=65533,Qe=1):Ce>65535&&(Ce-=65536,re.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),re.push(Ce),be+=Qe}return Q(re)}const q=4096;function Q(G){const F=G.length;if(F<=q)return String.fromCharCode.apply(String,G);let H="",re=0;for(;rere)&&(H=re);let be="";for(let Re=F;Rere&&(F=re),H<0?(H+=re,H<0&&(H=0)):H>re&&(H=re),HH)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(F,H,re){F=F>>>0,H=H>>>0,re||he(F,H,this.length);let be=this[F],Re=1,Ce=0;for(;++Ce>>0,H=H>>>0,re||he(F,H,this.length);let be=this[F+--H],Re=1;for(;H>0&&(Re*=256);)be+=this[F+--H]*Re;return be},o.prototype.readUint8=o.prototype.readUInt8=function(F,H){return F=F>>>0,H||he(F,1,this.length),this[F]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(F,H){return F=F>>>0,H||he(F,2,this.length),this[F]|this[F+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(F,H){return F=F>>>0,H||he(F,2,this.length),this[F]<<8|this[F+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(F,H){return F=F>>>0,H||he(F,4,this.length),(this[F]|this[F+1]<<8|this[F+2]<<16)+this[F+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(F,H){return F=F>>>0,H||he(F,4,this.length),this[F]*16777216+(this[F+1]<<16|this[F+2]<<8|this[F+3])},o.prototype.readBigUInt64LE=Ee(function(F){F=F>>>0,T(F,"offset");const H=this[F],re=this[F+7];(H===void 0||re===void 0)&&x(F,this.length-8);const be=H+this[++F]*2**8+this[++F]*2**16+this[++F]*2**24,Re=this[++F]+this[++F]*2**8+this[++F]*2**16+re*2**24;return BigInt(be)+(BigInt(Re)<>>0,T(F,"offset");const H=this[F],re=this[F+7];(H===void 0||re===void 0)&&x(F,this.length-8);const be=H*2**24+this[++F]*2**16+this[++F]*2**8+this[++F],Re=this[++F]*2**24+this[++F]*2**16+this[++F]*2**8+re;return(BigInt(be)<>>0,H=H>>>0,re||he(F,H,this.length);let be=this[F],Re=1,Ce=0;for(;++Ce=Re&&(be-=Math.pow(2,8*H)),be},o.prototype.readIntBE=function(F,H,re){F=F>>>0,H=H>>>0,re||he(F,H,this.length);let be=H,Re=1,Ce=this[F+--be];for(;be>0&&(Re*=256);)Ce+=this[F+--be]*Re;return Re*=128,Ce>=Re&&(Ce-=Math.pow(2,8*H)),Ce},o.prototype.readInt8=function(F,H){return F=F>>>0,H||he(F,1,this.length),this[F]&128?(255-this[F]+1)*-1:this[F]},o.prototype.readInt16LE=function(F,H){F=F>>>0,H||he(F,2,this.length);const re=this[F]|this[F+1]<<8;return re&32768?re|4294901760:re},o.prototype.readInt16BE=function(F,H){F=F>>>0,H||he(F,2,this.length);const re=this[F+1]|this[F]<<8;return re&32768?re|4294901760:re},o.prototype.readInt32LE=function(F,H){return F=F>>>0,H||he(F,4,this.length),this[F]|this[F+1]<<8|this[F+2]<<16|this[F+3]<<24},o.prototype.readInt32BE=function(F,H){return F=F>>>0,H||he(F,4,this.length),this[F]<<24|this[F+1]<<16|this[F+2]<<8|this[F+3]},o.prototype.readBigInt64LE=Ee(function(F){F=F>>>0,T(F,"offset");const H=this[F],re=this[F+7];(H===void 0||re===void 0)&&x(F,this.length-8);const be=this[F+4]+this[F+5]*2**8+this[F+6]*2**16+(re<<24);return(BigInt(be)<>>0,T(F,"offset");const H=this[F],re=this[F+7];(H===void 0||re===void 0)&&x(F,this.length-8);const be=(H<<24)+this[++F]*2**16+this[++F]*2**8+this[++F];return(BigInt(be)<>>0,H||he(F,4,this.length),u.read(this,F,!0,23,4)},o.prototype.readFloatBE=function(F,H){return F=F>>>0,H||he(F,4,this.length),u.read(this,F,!1,23,4)},o.prototype.readDoubleLE=function(F,H){return F=F>>>0,H||he(F,8,this.length),u.read(this,F,!0,52,8)},o.prototype.readDoubleBE=function(F,H){return F=F>>>0,H||he(F,8,this.length),u.read(this,F,!1,52,8)};function xe(G,F,H,re,be,Re){if(!o.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>be||FG.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(F,H,re,be){if(F=+F,H=H>>>0,re=re>>>0,!be){const Qe=Math.pow(2,8*re)-1;xe(this,F,H,re,Qe,0)}let Re=1,Ce=0;for(this[H]=F&255;++Ce>>0,re=re>>>0,!be){const Qe=Math.pow(2,8*re)-1;xe(this,F,H,re,Qe,0)}let Re=re-1,Ce=1;for(this[H+Re]=F&255;--Re>=0&&(Ce*=256);)this[H+Re]=F/Ce&255;return H+re},o.prototype.writeUint8=o.prototype.writeUInt8=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,1,255,0),this[H]=F&255,H+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,2,65535,0),this[H]=F&255,this[H+1]=F>>>8,H+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,2,65535,0),this[H]=F>>>8,this[H+1]=F&255,H+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,4,4294967295,0),this[H+3]=F>>>24,this[H+2]=F>>>16,this[H+1]=F>>>8,this[H]=F&255,H+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,4,4294967295,0),this[H]=F>>>24,this[H+1]=F>>>16,this[H+2]=F>>>8,this[H+3]=F&255,H+4};function ie(G,F,H,re,be){R(F,re,be,G,H,7);let Re=Number(F&BigInt(4294967295));G[H++]=Re,Re=Re>>8,G[H++]=Re,Re=Re>>8,G[H++]=Re,Re=Re>>8,G[H++]=Re;let Ce=Number(F>>BigInt(32)&BigInt(4294967295));return G[H++]=Ce,Ce=Ce>>8,G[H++]=Ce,Ce=Ce>>8,G[H++]=Ce,Ce=Ce>>8,G[H++]=Ce,H}function ae(G,F,H,re,be){R(F,re,be,G,H,7);let Re=Number(F&BigInt(4294967295));G[H+7]=Re,Re=Re>>8,G[H+6]=Re,Re=Re>>8,G[H+5]=Re,Re=Re>>8,G[H+4]=Re;let Ce=Number(F>>BigInt(32)&BigInt(4294967295));return G[H+3]=Ce,Ce=Ce>>8,G[H+2]=Ce,Ce=Ce>>8,G[H+1]=Ce,Ce=Ce>>8,G[H]=Ce,H+8}o.prototype.writeBigUInt64LE=Ee(function(F,H=0){return ie(this,F,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ee(function(F,H=0){return ae(this,F,H,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(F,H,re,be){if(F=+F,H=H>>>0,!be){const ke=Math.pow(2,8*re-1);xe(this,F,H,re,ke-1,-ke)}let Re=0,Ce=1,Qe=0;for(this[H]=F&255;++Re>0)-Qe&255;return H+re},o.prototype.writeIntBE=function(F,H,re,be){if(F=+F,H=H>>>0,!be){const ke=Math.pow(2,8*re-1);xe(this,F,H,re,ke-1,-ke)}let Re=re-1,Ce=1,Qe=0;for(this[H+Re]=F&255;--Re>=0&&(Ce*=256);)F<0&&Qe===0&&this[H+Re+1]!==0&&(Qe=1),this[H+Re]=(F/Ce>>0)-Qe&255;return H+re},o.prototype.writeInt8=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,1,127,-128),F<0&&(F=255+F+1),this[H]=F&255,H+1},o.prototype.writeInt16LE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,2,32767,-32768),this[H]=F&255,this[H+1]=F>>>8,H+2},o.prototype.writeInt16BE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,2,32767,-32768),this[H]=F>>>8,this[H+1]=F&255,H+2},o.prototype.writeInt32LE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,4,2147483647,-2147483648),this[H]=F&255,this[H+1]=F>>>8,this[H+2]=F>>>16,this[H+3]=F>>>24,H+4},o.prototype.writeInt32BE=function(F,H,re){return F=+F,H=H>>>0,re||xe(this,F,H,4,2147483647,-2147483648),F<0&&(F=4294967295+F+1),this[H]=F>>>24,this[H+1]=F>>>16,this[H+2]=F>>>8,this[H+3]=F&255,H+4},o.prototype.writeBigInt64LE=Ee(function(F,H=0){return ie(this,F,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ee(function(F,H=0){return ae(this,F,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Oe(G,F,H,re,be,Re){if(H+re>G.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("Index out of range")}function Ne(G,F,H,re,be){return F=+F,H=H>>>0,be||Oe(G,F,H,4),u.write(G,F,H,re,23,4),H+4}o.prototype.writeFloatLE=function(F,H,re){return Ne(this,F,H,!0,re)},o.prototype.writeFloatBE=function(F,H,re){return Ne(this,F,H,!1,re)};function ge(G,F,H,re,be){return F=+F,H=H>>>0,be||Oe(G,F,H,8),u.write(G,F,H,re,52,8),H+8}o.prototype.writeDoubleLE=function(F,H,re){return ge(this,F,H,!0,re)},o.prototype.writeDoubleBE=function(F,H,re){return ge(this,F,H,!1,re)},o.prototype.copy=function(F,H,re,be){if(!o.isBuffer(F))throw new TypeError("argument should be a Buffer");if(re||(re=0),!be&&be!==0&&(be=this.length),H>=F.length&&(H=F.length),H||(H=0),be>0&&be=this.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("sourceEnd out of bounds");be>this.length&&(be=this.length),F.length-H>>0,re=re===void 0?this.length:re>>>0,F||(F=0);let Re;if(typeof F=="number")for(Re=H;Re2**32?be=$(String(H)):typeof H=="bigint"&&(be=String(H),(H>BigInt(2)**BigInt(32)||H<-(BigInt(2)**BigInt(32)))&&(be=$(be)),be+="n"),re+=` It must be ${F}. Received ${be}`,re},RangeError);function $(G){let F="",H=G.length;const re=G[0]==="-"?1:0;for(;H>=re+4;H-=3)F=`_${G.slice(H-3,H)}${F}`;return`${G.slice(0,H)}${F}`}function N(G,F,H){T(F,"offset"),(G[F]===void 0||G[F+H]===void 0)&&x(F,G.length-(H+1))}function R(G,F,H,re,be,Re){if(G>H||G3?F===0||F===BigInt(0)?Qe=`>= 0${Ce} and < 2${Ce} ** ${(Re+1)*8}${Ce}`:Qe=`>= -(2${Ce} ** ${(Re+1)*8-1}${Ce}) and < 2 ** ${(Re+1)*8-1}${Ce}`:Qe=`>= ${F}${Ce} and <= ${H}${Ce}`,new de.ERR_OUT_OF_RANGE("value",Qe,G)}N(re,be,Re)}function T(G,F){if(typeof G!="number")throw new de.ERR_INVALID_ARG_TYPE(F,"number",G)}function x(G,F,H){throw Math.floor(G)!==G?(T(G,H),new de.ERR_OUT_OF_RANGE(H||"offset","an integer",G)):F<0?new de.ERR_BUFFER_OUT_OF_BOUNDS:new de.ERR_OUT_OF_RANGE(H||"offset",`>= ${H?1:0} and <= ${F}`,G)}const B=/[^+/0-9A-Za-z-_]/g;function k(G){if(G=G.split("=")[0],G=G.trim().replace(B,""),G.length<2)return"";for(;G.length%4!==0;)G=G+"=";return G}function V(G,F){F=F||1/0;let H;const re=G.length;let be=null;const Re=[];for(let Ce=0;Ce55295&&H<57344){if(!be){if(H>56319){(F-=3)>-1&&Re.push(239,191,189);continue}else if(Ce+1===re){(F-=3)>-1&&Re.push(239,191,189);continue}be=H;continue}if(H<56320){(F-=3)>-1&&Re.push(239,191,189),be=H;continue}H=(be-55296<<10|H-56320)+65536}else be&&(F-=3)>-1&&Re.push(239,191,189);if(be=null,H<128){if((F-=1)<0)break;Re.push(H)}else if(H<2048){if((F-=2)<0)break;Re.push(H>>6|192,H&63|128)}else if(H<65536){if((F-=3)<0)break;Re.push(H>>12|224,H>>6&63|128,H&63|128)}else if(H<1114112){if((F-=4)<0)break;Re.push(H>>18|240,H>>12&63|128,H>>6&63|128,H&63|128)}else throw new Error("Invalid code point")}return Re}function J(G){const F=[];for(let H=0;H>8,be=H%256,Re.push(be),Re.push(re);return Re}function Y(G){return e.toByteArray(k(G))}function te(G,F,H,re){let be;for(be=0;be=F.length||be>=G.length);++be)F[be+H]=G[be];return be}function ce(G,F){return G instanceof F||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===F.name}function Ae(G){return G!==G}const Ie=function(){const G="0123456789abcdef",F=new Array(256);for(let H=0;H<16;++H){const re=H*16;for(let be=0;be<16;++be)F[re+be]=G[H]+G[be]}return F}();function Ee(G){return typeof BigInt>"u"?qe:G}function qe(){throw new Error("BigInt not supported")}}(i_)),i_}var a_,Vx;function Rr(){return Vx||(Vx=1,a_={ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,u){return t.slice(e,u)},Error,FunctionPrototypeCall(t,e,...u){return t.call(e,...u)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,u){return Object.defineProperty(t,e,u)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,u){return t.then(e,u)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,u){return t.slice(e,u)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,u){return t.set(e,u)},Boolean,Uint8Array}),a_}var s_={exports:{}},Lc={exports:{}},kx;function Uo(){if(kx)return Lc.exports;kx=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return Lc.exports=t,Lc.exports.AbortSignal=e,Lc.exports.default=t,Lc.exports}var zx;function Pn(){return zx||(zx=1,function(t){const e=Wi(),{kResistStopPropagation:u,SymbolDispose:s}=Rr(),n=globalThis.AbortSignal||Uo().AbortSignal,r=globalThis.AbortController||Uo().AbortController,a=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||e.Blob,l=typeof o<"u"?function(p){return p instanceof o}:function(p){return!1},c=(f,p)=>{if(f!==void 0&&(f===null||typeof f!="object"||!("aborted"in f)))throw new ERR_INVALID_ARG_TYPE(p,"AbortSignal",f)},d=(f,p)=>{if(typeof f!="function")throw new ERR_INVALID_ARG_TYPE(p,"Function",f)};class h extends Error{constructor(p){if(!Array.isArray(p))throw new TypeError(`Expected input to be an Array, got ${typeof p}`);let y="";for(let b=0;b{f=b,p=m}),resolve:f,reject:p}},promisify(f){return new Promise((p,y)=>{f((b,...m)=>b?y(b):p(...m))})},debuglog(){return function(){}},format(f,...p){return f.replace(/%([sdifj])/g,function(...[y,b]){const m=p.shift();return b==="f"?m.toFixed(6):b==="j"?JSON.stringify(m):b==="s"&&typeof m=="object"?`${m.constructor!==Object?m.constructor.name:""} {}`.trim():m.toString()})},inspect(f){switch(typeof f){case"string":if(f.includes("'"))if(f.includes('"')){if(!f.includes("`")&&!f.includes("${"))return`\`${f}\``}else return`"${f}"`;return`'${f}'`;case"number":return isNaN(f)?"NaN":Object.is(f,-0)?String(f):f;case"bigint":return`${String(f)}n`;case"boolean":case"undefined":return String(f);case"object":return"{}"}},types:{isAsyncFunction(f){return f instanceof a},isArrayBufferView(f){return ArrayBuffer.isView(f)}},isBlob:l,deprecate(f,p){return f},addAbortListener:wy().addAbortListener||function(p,y){if(p===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",p);c(p,"signal"),d(y,"listener");let b;return p.aborted?queueMicrotask(()=>y()):(p.addEventListener("abort",y,{__proto__:null,once:!0,[u]:!0}),b=()=>{p.removeEventListener("abort",y)}),{__proto__:null,[s](){var m;(m=b)===null||m===void 0||m()}}},AbortSignalAny:n.any||function(p){if(p.length===1)return p[0];const y=new r,b=()=>y.abort();return p.forEach(m=>{c(m,"signals"),m.addEventListener("abort",b,{once:!0})}),y.signal.addEventListener("abort",()=>{p.forEach(m=>m.removeEventListener("abort",b))},{once:!0}),y.signal}},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}(s_)),s_.exports}var s1={},o_,Gx;function Un(){if(Gx)return o_;Gx=1;const{format:t,inspect:e,AggregateError:u}=Pn(),s=globalThis.AggregateError||u,n=Symbol("kIsNodeError"),r=["string","function","number","object","Function","Object","boolean","bigint","symbol"],a=/^([A-Z][a-z0-9]*)+$/,o="__node_internal_",l={};function c(m,g){if(!m)throw new l.ERR_INTERNAL_ASSERTION(g)}function d(m){let g="",v=m.length;const _=m[0]==="-"?1:0;for(;v>=_+4;v-=3)g=`_${m.slice(v-3,v)}${g}`;return`${m.slice(0,v)}${g}`}function h(m,g,v){if(typeof g=="function")return c(g.length<=v.length,`Code: ${m}; The provided arguments length (${v.length}) does not match the required ones (${g.length}).`),g(...v);const _=(g.match(/%[dfijoOs]/g)||[]).length;return c(_===v.length,`Code: ${m}; The provided arguments length (${v.length}) does not match the required ones (${_}).`),v.length===0?g:t(g,...v)}function f(m,g,v){v||(v=Error);class _ extends v{constructor(...S){super(h(m,g,S))}toString(){return`${this.name} [${m}]: ${this.message}`}}Object.defineProperties(_.prototype,{name:{value:v.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${m}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),_.prototype.code=m,_.prototype[n]=!0,l[m]=_}function p(m){const g=o+m.name;return Object.defineProperty(m,"name",{value:g}),m}function y(m,g){if(m&&g&&m!==g){if(Array.isArray(g.errors))return g.errors.push(m),g;const v=new s([g,m],g.message);return v.code=g.code,v}return m||g}class b extends Error{constructor(g="The operation was aborted",v=void 0){if(v!==void 0&&typeof v!="object")throw new l.ERR_INVALID_ARG_TYPE("options","Object",v);super(g,v),this.code="ABORT_ERR",this.name="AbortError"}}return f("ERR_ASSERTION","%s",Error),f("ERR_INVALID_ARG_TYPE",(m,g,v)=>{c(typeof m=="string","'name' must be a string"),Array.isArray(g)||(g=[g]);let _="The ";m.endsWith(" argument")?_+=`${m} `:_+=`"${m}" ${m.includes(".")?"property":"argument"} `,_+="must be ";const w=[],S=[],A=[];for(const L of g)c(typeof L=="string","All expected entries have to be of type string"),r.includes(L)?w.push(L.toLowerCase()):a.test(L)?S.push(L):(c(L!=="object",'The value "object" should be written as "Object"'),A.push(L));if(S.length>0){const L=w.indexOf("object");L!==-1&&(w.splice(w,L,1),S.push("Object"))}if(w.length>0){switch(w.length){case 1:_+=`of type ${w[0]}`;break;case 2:_+=`one of type ${w[0]} or ${w[1]}`;break;default:{const L=w.pop();_+=`one of type ${w.join(", ")}, or ${L}`}}(S.length>0||A.length>0)&&(_+=" or ")}if(S.length>0){switch(S.length){case 1:_+=`an instance of ${S[0]}`;break;case 2:_+=`an instance of ${S[0]} or ${S[1]}`;break;default:{const L=S.pop();_+=`an instance of ${S.join(", ")}, or ${L}`}}A.length>0&&(_+=" or ")}switch(A.length){case 0:break;case 1:A[0].toLowerCase()!==A[0]&&(_+="an "),_+=`${A[0]}`;break;case 2:_+=`one of ${A[0]} or ${A[1]}`;break;default:{const L=A.pop();_+=`one of ${A.join(", ")}, or ${L}`}}if(v==null)_+=`. Received ${v}`;else if(typeof v=="function"&&v.name)_+=`. Received function ${v.name}`;else if(typeof v=="object"){var D;if((D=v.constructor)!==null&&D!==void 0&&D.name)_+=`. Received an instance of ${v.constructor.name}`;else{const L=e(v,{depth:-1});_+=`. Received ${L}`}}else{let L=e(v,{colors:!1});L.length>25&&(L=`${L.slice(0,25)}...`),_+=`. Received type ${typeof v} (${L})`}return _},TypeError),f("ERR_INVALID_ARG_VALUE",(m,g,v="is invalid")=>{let _=e(g);return _.length>128&&(_=_.slice(0,128)+"..."),`The ${m.includes(".")?"property":"argument"} '${m}' ${v}. Received ${_}`},TypeError),f("ERR_INVALID_RETURN_VALUE",(m,g,v)=>{var _;const w=v!=null&&(_=v.constructor)!==null&&_!==void 0&&_.name?`instance of ${v.constructor.name}`:`type ${typeof v}`;return`Expected ${m} to be returned from the "${g}" function but got ${w}.`},TypeError),f("ERR_MISSING_ARGS",(...m)=>{c(m.length>0,"At least one arg needs to be specified");let g;const v=m.length;switch(m=(Array.isArray(m)?m:[m]).map(_=>`"${_}"`).join(" or "),v){case 1:g+=`The ${m[0]} argument`;break;case 2:g+=`The ${m[0]} and ${m[1]} arguments`;break;default:{const _=m.pop();g+=`The ${m.join(", ")}, and ${_} arguments`}break}return`${g} must be specified`},TypeError),f("ERR_OUT_OF_RANGE",(m,g,v)=>{c(g,'Missing "range" argument');let _;return Number.isInteger(v)&&Math.abs(v)>2**32?_=d(String(v)):typeof v=="bigint"?(_=String(v),(v>2n**32n||v<-(2n**32n))&&(_=d(_)),_+="n"):_=e(v),`The value of "${m}" is out of range. It must be ${g}. Received ${_}`},RangeError),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),f("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),f("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),f("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),f("ERR_STREAM_WRITE_AFTER_END","write after end",Error),f("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),o_={AbortError:b,aggregateTwoErrors:p(y),hideStackFrames:p,codes:l},o_}var u_,Wx;function Ey(){if(Wx)return u_;Wx=1;const{ArrayIsArray:t,ArrayPrototypeIncludes:e,ArrayPrototypeJoin:u,ArrayPrototypeMap:s,NumberIsInteger:n,NumberIsNaN:r,NumberMAX_SAFE_INTEGER:a,NumberMIN_SAFE_INTEGER:o,NumberParseInt:l,ObjectPrototypeHasOwnProperty:c,RegExpPrototypeExec:d,String:h,StringPrototypeToUpperCase:f,StringPrototypeTrim:p}=Rr(),{hideStackFrames:y,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:m,ERR_INVALID_ARG_VALUE:g,ERR_OUT_OF_RANGE:v,ERR_UNKNOWN_SIGNAL:_}}=Un(),{normalizeEncoding:w}=Pn(),{isAsyncFunction:S,isArrayBufferView:A}=Pn().types,D={};function L(z){return z===(z|0)}function E(z){return z===z>>>0}const O=/^[0-7]+$/,P="must be a 32-bit unsigned integer or an octal string";function j(z,Y,te){if(typeof z>"u"&&(z=te),typeof z=="string"){if(d(O,z)===null)throw new g(Y,z,P);z=l(z,8)}return q(z,Y),z}const U=y((z,Y,te=o,ce=a)=>{if(typeof z!="number")throw new m(Y,"number",z);if(!n(z))throw new v(Y,"an integer",z);if(zce)throw new v(Y,`>= ${te} && <= ${ce}`,z)}),M=y((z,Y,te=-2147483648,ce=2147483647)=>{if(typeof z!="number")throw new m(Y,"number",z);if(!n(z))throw new v(Y,"an integer",z);if(zce)throw new v(Y,`>= ${te} && <= ${ce}`,z)}),q=y((z,Y,te=!1)=>{if(typeof z!="number")throw new m(Y,"number",z);if(!n(z))throw new v(Y,"an integer",z);const ce=te?1:0,Ae=4294967295;if(zAe)throw new v(Y,`>= ${ce} && <= ${Ae}`,z)});function Q(z,Y){if(typeof z!="string")throw new m(Y,"string",z)}function Z(z,Y,te=void 0,ce){if(typeof z!="number")throw new m(Y,"number",z);if(te!=null&&zce||(te!=null||ce!=null)&&r(z))throw new v(Y,`${te!=null?`>= ${te}`:""}${te!=null&&ce!=null?" && ":""}${ce!=null?`<= ${ce}`:""}`,z)}const K=y((z,Y,te)=>{if(!e(te,z)){const Ae="must be one of: "+u(s(te,Ie=>typeof Ie=="string"?`'${Ie}'`:h(Ie)),", ");throw new g(Y,z,Ae)}});function fe(z,Y){if(typeof z!="boolean")throw new m(Y,"boolean",z)}function X(z,Y,te){return z==null||!c(z,Y)?te:z[Y]}const he=y((z,Y,te=null)=>{const ce=X(te,"allowArray",!1),Ae=X(te,"allowFunction",!1);if(!X(te,"nullable",!1)&&z===null||!ce&&t(z)||typeof z!="object"&&(!Ae||typeof z!="function"))throw new m(Y,"Object",z)}),xe=y((z,Y)=>{if(z!=null&&typeof z!="object"&&typeof z!="function")throw new m(Y,"a dictionary",z)}),ie=y((z,Y,te=0)=>{if(!t(z))throw new m(Y,"Array",z);if(z.length{if(!A(z))throw new m(Y,["Buffer","TypedArray","DataView"],z)});function oe(z,Y){const te=w(Y),ce=z.length;if(te==="hex"&&ce%2!==0)throw new g("encoding",Y,`is invalid for data of length ${ce}`)}function $(z,Y="Port",te=!0){if(typeof z!="number"&&typeof z!="string"||typeof z=="string"&&p(z).length===0||+z!==+z>>>0||z>65535||z===0&&!te)throw new b(Y,z,te);return z|0}const N=y((z,Y)=>{if(z!==void 0&&(z===null||typeof z!="object"||!("aborted"in z)))throw new m(Y,"AbortSignal",z)}),R=y((z,Y)=>{if(typeof z!="function")throw new m(Y,"Function",z)}),T=y((z,Y)=>{if(typeof z!="function"||S(z))throw new m(Y,"Function",z)}),x=y((z,Y)=>{if(z!==void 0)throw new m(Y,"undefined",z)});function B(z,Y,te){if(!e(te,z))throw new m(Y,`('${u(te,"|")}')`,z)}const k=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function V(z,Y){if(typeof z>"u"||!d(k,z))throw new g(Y,z,'must be an array or string of format "; rel=preload; as=style"')}function J(z){if(typeof z=="string")return V(z,"hints"),z;if(t(z)){const Y=z.length;let te="";if(Y===0)return te;for(let ce=0;ce; rel=preload; as=style"')}return u_={isInt32:L,isUint32:E,parseFileMode:j,validateArray:ie,validateStringArray:ae,validateBooleanArray:Oe,validateAbortSignalArray:Ne,validateBoolean:fe,validateBuffer:de,validateDictionary:xe,validateEncoding:oe,validateFunction:R,validateInt32:M,validateInteger:U,validateNumber:Z,validateObject:he,validateOneOf:K,validatePlainFunction:T,validatePort:$,validateSignalName:ge,validateString:Q,validateUint32:q,validateUndefined:x,validateUnion:B,validateAbortSignal:N,validateLinkHeaderValue:J},u_}var o1={exports:{}},c_,Jx;function Ta(){if(Jx)return c_;Jx=1;const{SymbolAsyncIterator:t,SymbolIterator:e,SymbolFor:u}=Rr(),s=u("nodejs.stream.destroyed"),n=u("nodejs.stream.errored"),r=u("nodejs.stream.readable"),a=u("nodejs.stream.writable"),o=u("nodejs.stream.disturbed"),l=u("nodejs.webstream.isClosedPromise"),c=u("nodejs.webstream.controllerErrorFunction");function d(X,he=!1){var xe;return!!(X&&typeof X.pipe=="function"&&typeof X.on=="function"&&(!he||typeof X.pause=="function"&&typeof X.resume=="function")&&(!X._writableState||((xe=X._readableState)===null||xe===void 0?void 0:xe.readable)!==!1)&&(!X._writableState||X._readableState))}function h(X){var he;return!!(X&&typeof X.write=="function"&&typeof X.on=="function"&&(!X._readableState||((he=X._writableState)===null||he===void 0?void 0:he.writable)!==!1))}function f(X){return!!(X&&typeof X.pipe=="function"&&X._readableState&&typeof X.on=="function"&&typeof X.write=="function")}function p(X){return X&&(X._readableState||X._writableState||typeof X.write=="function"&&typeof X.on=="function"||typeof X.pipe=="function"&&typeof X.on=="function")}function y(X){return!!(X&&!p(X)&&typeof X.pipeThrough=="function"&&typeof X.getReader=="function"&&typeof X.cancel=="function")}function b(X){return!!(X&&!p(X)&&typeof X.getWriter=="function"&&typeof X.abort=="function")}function m(X){return!!(X&&!p(X)&&typeof X.readable=="object"&&typeof X.writable=="object")}function g(X){return y(X)||b(X)||m(X)}function v(X,he){return X==null?!1:he===!0?typeof X[t]=="function":he===!1?typeof X[e]=="function":typeof X[t]=="function"||typeof X[e]=="function"}function _(X){if(!p(X))return null;const he=X._writableState,xe=X._readableState,ie=he||xe;return!!(X.destroyed||X[s]||ie!=null&&ie.destroyed)}function w(X){if(!h(X))return null;if(X.writableEnded===!0)return!0;const he=X._writableState;return he!=null&&he.errored?!1:typeof(he==null?void 0:he.ended)!="boolean"?null:he.ended}function S(X,he){if(!h(X))return null;if(X.writableFinished===!0)return!0;const xe=X._writableState;return xe!=null&&xe.errored?!1:typeof(xe==null?void 0:xe.finished)!="boolean"?null:!!(xe.finished||he===!1&&xe.ended===!0&&xe.length===0)}function A(X){if(!d(X))return null;if(X.readableEnded===!0)return!0;const he=X._readableState;return!he||he.errored?!1:typeof(he==null?void 0:he.ended)!="boolean"?null:he.ended}function D(X,he){if(!d(X))return null;const xe=X._readableState;return xe!=null&&xe.errored?!1:typeof(xe==null?void 0:xe.endEmitted)!="boolean"?null:!!(xe.endEmitted||he===!1&&xe.ended===!0&&xe.length===0)}function L(X){return X&&X[r]!=null?X[r]:typeof(X==null?void 0:X.readable)!="boolean"?null:_(X)?!1:d(X)&&X.readable&&!D(X)}function E(X){return X&&X[a]!=null?X[a]:typeof(X==null?void 0:X.writable)!="boolean"?null:_(X)?!1:h(X)&&X.writable&&!w(X)}function O(X,he){return p(X)?_(X)?!0:!((he==null?void 0:he.readable)!==!1&&L(X)||(he==null?void 0:he.writable)!==!1&&E(X)):null}function P(X){var he,xe;return p(X)?X.writableErrored?X.writableErrored:(he=(xe=X._writableState)===null||xe===void 0?void 0:xe.errored)!==null&&he!==void 0?he:null:null}function j(X){var he,xe;return p(X)?X.readableErrored?X.readableErrored:(he=(xe=X._readableState)===null||xe===void 0?void 0:xe.errored)!==null&&he!==void 0?he:null:null}function U(X){if(!p(X))return null;if(typeof X.closed=="boolean")return X.closed;const he=X._writableState,xe=X._readableState;return typeof(he==null?void 0:he.closed)=="boolean"||typeof(xe==null?void 0:xe.closed)=="boolean"?(he==null?void 0:he.closed)||(xe==null?void 0:xe.closed):typeof X._closed=="boolean"&&M(X)?X._closed:null}function M(X){return typeof X._closed=="boolean"&&typeof X._defaultKeepAlive=="boolean"&&typeof X._removedConnection=="boolean"&&typeof X._removedContLen=="boolean"}function q(X){return typeof X._sent100=="boolean"&&M(X)}function Q(X){var he;return typeof X._consuming=="boolean"&&typeof X._dumped=="boolean"&&((he=X.req)===null||he===void 0?void 0:he.upgradeOrConnect)===void 0}function Z(X){if(!p(X))return null;const he=X._writableState,xe=X._readableState,ie=he||xe;return!ie&&q(X)||!!(ie&&ie.autoDestroy&&ie.emitClose&&ie.closed===!1)}function K(X){var he;return!!(X&&((he=X[o])!==null&&he!==void 0?he:X.readableDidRead||X.readableAborted))}function fe(X){var he,xe,ie,ae,Oe,Ne,ge,de,oe,$;return!!(X&&((he=(xe=(ie=(ae=(Oe=(Ne=X[n])!==null&&Ne!==void 0?Ne:X.readableErrored)!==null&&Oe!==void 0?Oe:X.writableErrored)!==null&&ae!==void 0?ae:(ge=X._readableState)===null||ge===void 0?void 0:ge.errorEmitted)!==null&&ie!==void 0?ie:(de=X._writableState)===null||de===void 0?void 0:de.errorEmitted)!==null&&xe!==void 0?xe:(oe=X._readableState)===null||oe===void 0?void 0:oe.errored)!==null&&he!==void 0?he:!(($=X._writableState)===null||$===void 0)&&$.errored))}return c_={isDestroyed:_,kIsDestroyed:s,isDisturbed:K,kIsDisturbed:o,isErrored:fe,kIsErrored:n,isReadable:L,kIsReadable:r,kIsClosedPromise:l,kControllerErrorFunction:c,kIsWritable:a,isClosed:U,isDuplexNodeStream:f,isFinished:O,isIterable:v,isReadableNodeStream:d,isReadableStream:y,isReadableEnded:A,isReadableFinished:D,isReadableErrored:j,isNodeStream:p,isWebStream:g,isWritable:E,isWritableNodeStream:h,isWritableStream:b,isWritableEnded:w,isWritableFinished:S,isWritableErrored:P,isServerRequest:Q,isServerResponse:q,willEmitClose:Z,isTransformStream:m},c_}var Xx;function Za(){if(Xx)return o1.exports;Xx=1;const t=Sa(),{AbortError:e,codes:u}=Un(),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_PREMATURE_CLOSE:n}=u,{kEmptyObject:r,once:a}=Pn(),{validateAbortSignal:o,validateFunction:l,validateObject:c,validateBoolean:d}=Ey(),{Promise:h,PromisePrototypeThen:f,SymbolDispose:p}=Rr(),{isClosed:y,isReadable:b,isReadableNodeStream:m,isReadableStream:g,isReadableFinished:v,isReadableErrored:_,isWritable:w,isWritableNodeStream:S,isWritableStream:A,isWritableFinished:D,isWritableErrored:L,isNodeStream:E,willEmitClose:O,kIsClosedPromise:P}=Ta();let j;function U(K){return K.setHeader&&typeof K.abort=="function"}const M=()=>{};function q(K,fe,X){var he,xe;if(arguments.length===2?(X=fe,fe=r):fe==null?fe=r:c(fe,"options"),l(X,"callback"),o(fe.signal,"options.signal"),X=a(X),g(K)||A(K))return Q(K,fe,X);if(!E(K))throw new s("stream",["ReadableStream","WritableStream","Stream"],K);const ie=(he=fe.readable)!==null&&he!==void 0?he:m(K),ae=(xe=fe.writable)!==null&&xe!==void 0?xe:S(K),Oe=K._writableState,Ne=K._readableState,ge=()=>{K.writable||$()};let de=O(K)&&m(K)===ie&&S(K)===ae,oe=D(K,!1);const $=()=>{oe=!0,K.destroyed&&(de=!1),!(de&&(!K.readable||ie))&&(!ie||N)&&X.call(K)};let N=v(K,!1);const R=()=>{N=!0,K.destroyed&&(de=!1),!(de&&(!K.writable||ae))&&(!ae||oe)&&X.call(K)},T=z=>{X.call(K,z)};let x=y(K);const B=()=>{x=!0;const z=L(K)||_(K);if(z&&typeof z!="boolean")return X.call(K,z);if(ie&&!N&&m(K,!0)&&!v(K,!1))return X.call(K,new n);if(ae&&!oe&&!D(K,!1))return X.call(K,new n);X.call(K)},k=()=>{x=!0;const z=L(K)||_(K);if(z&&typeof z!="boolean")return X.call(K,z);X.call(K)},V=()=>{K.req.on("finish",$)};U(K)?(K.on("complete",$),de||K.on("abort",B),K.req?V():K.on("request",V)):ae&&!Oe&&(K.on("end",ge),K.on("close",ge)),!de&&typeof K.aborted=="boolean"&&K.on("aborted",B),K.on("end",R),K.on("finish",$),fe.error!==!1&&K.on("error",T),K.on("close",B),x?t.nextTick(B):Oe!=null&&Oe.errorEmitted||Ne!=null&&Ne.errorEmitted?de||t.nextTick(k):(!ie&&(!de||b(K))&&(oe||w(K)===!1)||!ae&&(!de||w(K))&&(N||b(K)===!1)||Ne&&K.req&&K.aborted)&&t.nextTick(k);const J=()=>{X=M,K.removeListener("aborted",B),K.removeListener("complete",$),K.removeListener("abort",B),K.removeListener("request",V),K.req&&K.req.removeListener("finish",$),K.removeListener("end",ge),K.removeListener("close",ge),K.removeListener("finish",$),K.removeListener("end",R),K.removeListener("error",T),K.removeListener("close",B)};if(fe.signal&&!x){const z=()=>{const Y=X;J(),Y.call(K,new e(void 0,{cause:fe.signal.reason}))};if(fe.signal.aborted)t.nextTick(z);else{j=j||Pn().addAbortListener;const Y=j(fe.signal,z),te=X;X=a((...ce)=>{Y[p](),te.apply(K,ce)})}}return J}function Q(K,fe,X){let he=!1,xe=M;if(fe.signal)if(xe=()=>{he=!0,X.call(K,new e(void 0,{cause:fe.signal.reason}))},fe.signal.aborted)t.nextTick(xe);else{j=j||Pn().addAbortListener;const ae=j(fe.signal,xe),Oe=X;X=a((...Ne)=>{ae[p](),Oe.apply(K,Ne)})}const ie=(...ae)=>{he||t.nextTick(()=>X.apply(K,ae))};return f(K[P].promise,ie,ie),M}function Z(K,fe){var X;let he=!1;return fe===null&&(fe=r),(X=fe)!==null&&X!==void 0&&X.cleanup&&(d(fe.cleanup,"cleanup"),he=fe.cleanup),new h((xe,ie)=>{const ae=q(K,fe,Oe=>{he&&ae(),Oe?ie(Oe):xe()})})}return o1.exports=q,o1.exports.finished=Z,o1.exports}var l_,Kx;function iu(){if(Kx)return l_;Kx=1;const t=Sa(),{aggregateTwoErrors:e,codes:{ERR_MULTIPLE_CALLBACK:u},AbortError:s}=Un(),{Symbol:n}=Rr(),{kIsDestroyed:r,isDestroyed:a,isFinished:o,isServerRequest:l}=Ta(),c=n("kDestroy"),d=n("kConstruct");function h(O,P,j){O&&(O.stack,P&&!P.errored&&(P.errored=O),j&&!j.errored&&(j.errored=O))}function f(O,P){const j=this._readableState,U=this._writableState,M=U||j;return U!=null&&U.destroyed||j!=null&&j.destroyed?(typeof P=="function"&&P(),this):(h(O,U,j),U&&(U.destroyed=!0),j&&(j.destroyed=!0),M.constructed?p(this,O,P):this.once(c,function(q){p(this,e(q,O),P)}),this)}function p(O,P,j){let U=!1;function M(q){if(U)return;U=!0;const Q=O._readableState,Z=O._writableState;h(q,Z,Q),Z&&(Z.closed=!0),Q&&(Q.closed=!0),typeof j=="function"&&j(q),q?t.nextTick(y,O,q):t.nextTick(b,O)}try{O._destroy(P||null,M)}catch(q){M(q)}}function y(O,P){m(O,P),b(O)}function b(O){const P=O._readableState,j=O._writableState;j&&(j.closeEmitted=!0),P&&(P.closeEmitted=!0),(j!=null&&j.emitClose||P!=null&&P.emitClose)&&O.emit("close")}function m(O,P){const j=O._readableState,U=O._writableState;U!=null&&U.errorEmitted||j!=null&&j.errorEmitted||(U&&(U.errorEmitted=!0),j&&(j.errorEmitted=!0),O.emit("error",P))}function g(){const O=this._readableState,P=this._writableState;O&&(O.constructed=!0,O.closed=!1,O.closeEmitted=!1,O.destroyed=!1,O.errored=null,O.errorEmitted=!1,O.reading=!1,O.ended=O.readable===!1,O.endEmitted=O.readable===!1),P&&(P.constructed=!0,P.destroyed=!1,P.closed=!1,P.closeEmitted=!1,P.errored=null,P.errorEmitted=!1,P.finalCalled=!1,P.prefinished=!1,P.ended=P.writable===!1,P.ending=P.writable===!1,P.finished=P.writable===!1)}function v(O,P,j){const U=O._readableState,M=O._writableState;if(M!=null&&M.destroyed||U!=null&&U.destroyed)return this;U!=null&&U.autoDestroy||M!=null&&M.autoDestroy?O.destroy(P):P&&(P.stack,M&&!M.errored&&(M.errored=P),U&&!U.errored&&(U.errored=P),j?t.nextTick(m,O,P):m(O,P))}function _(O,P){if(typeof O._construct!="function")return;const j=O._readableState,U=O._writableState;j&&(j.constructed=!1),U&&(U.constructed=!1),O.once(d,P),!(O.listenerCount(d)>1)&&t.nextTick(w,O)}function w(O){let P=!1;function j(U){if(P){v(O,U??new u);return}P=!0;const M=O._readableState,q=O._writableState,Q=q||M;M&&(M.constructed=!0),q&&(q.constructed=!0),Q.destroyed?O.emit(c,U):U?v(O,U,!0):t.nextTick(S,O)}try{O._construct(U=>{t.nextTick(j,U)})}catch(U){t.nextTick(j,U)}}function S(O){O.emit(d)}function A(O){return(O==null?void 0:O.setHeader)&&typeof O.abort=="function"}function D(O){O.emit("close")}function L(O,P){O.emit("error",P),t.nextTick(D,O)}function E(O,P){!O||a(O)||(!P&&!o(O)&&(P=new s),l(O)?(O.socket=null,O.destroy(P)):A(O)?O.abort():A(O.req)?O.req.abort():typeof O.destroy=="function"?O.destroy(P):typeof O.close=="function"?O.close():P?t.nextTick(L,O,P):t.nextTick(D,O),O.destroyed||(O[r]=!0))}return l_={construct:_,destroyer:E,destroy:f,undestroy:g,errorOrDestroy:v},l_}var d_,Yx;function MT(){if(Yx)return d_;Yx=1;const{ArrayIsArray:t,ObjectSetPrototypeOf:e}=Rr(),{EventEmitter:u}=wy();function s(r){u.call(this,r)}e(s.prototype,u.prototype),e(s,u),s.prototype.pipe=function(r,a){const o=this;function l(b){r.writable&&r.write(b)===!1&&o.pause&&o.pause()}o.on("data",l);function c(){o.readable&&o.resume&&o.resume()}r.on("drain",c),!r._isStdio&&(!a||a.end!==!1)&&(o.on("end",h),o.on("close",f));let d=!1;function h(){d||(d=!0,r.end())}function f(){d||(d=!0,typeof r.destroy=="function"&&r.destroy())}function p(b){y(),u.listenerCount(this,"error")===0&&this.emit("error",b)}n(o,"error",p),n(r,"error",p);function y(){o.removeListener("data",l),r.removeListener("drain",c),o.removeListener("end",h),o.removeListener("close",f),o.removeListener("error",p),r.removeListener("error",p),o.removeListener("end",y),o.removeListener("close",y),r.removeListener("close",y)}return o.on("end",y),o.on("close",y),r.on("close",y),r.emit("pipe",o),r};function n(r,a,o){if(typeof r.prependListener=="function")return r.prependListener(a,o);!r._events||!r._events[a]?r.on(a,o):t(r._events[a])?r._events[a].unshift(o):r._events[a]=[o,r._events[a]]}return d_={Stream:s,prependListener:n},d_}var f_={exports:{}},Zx;function qb(){return Zx||(Zx=1,function(t){const{SymbolDispose:e}=Rr(),{AbortError:u,codes:s}=Un(),{isNodeStream:n,isWebStream:r,kControllerErrorFunction:a}=Ta(),o=Za(),{ERR_INVALID_ARG_TYPE:l}=s;let c;const d=(h,f)=>{if(typeof h!="object"||!("aborted"in h))throw new l(f,"AbortSignal",h)};t.exports.addAbortSignal=function(f,p){if(d(f,"signal"),!n(p)&&!r(p))throw new l("stream",["ReadableStream","WritableStream","Stream"],p);return t.exports.addAbortSignalNoValidate(f,p)},t.exports.addAbortSignalNoValidate=function(h,f){if(typeof h!="object"||!("aborted"in h))return f;const p=n(f)?()=>{f.destroy(new u(void 0,{cause:h.reason}))}:()=>{f[a](new u(void 0,{cause:h.reason}))};if(h.aborted)p();else{c=c||Pn().addAbortListener;const y=c(h,p);o(f,y[e])}return f}}(f_)),f_.exports}var h_,eI;function Kz(){if(eI)return h_;eI=1;const{StringPrototypeSlice:t,SymbolIterator:e,TypedArrayPrototypeSet:u,Uint8Array:s}=Rr(),{Buffer:n}=Wi(),{inspect:r}=Pn();return h_=class{constructor(){this.head=null,this.tail=null,this.length=0}push(o){const l={data:o,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(o){const l={data:o,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}clear(){this.head=this.tail=null,this.length=0}join(o){if(this.length===0)return"";let l=this.head,c=""+l.data;for(;(l=l.next)!==null;)c+=o+l.data;return c}concat(o){if(this.length===0)return n.alloc(0);const l=n.allocUnsafe(o>>>0);let c=this.head,d=0;for(;c;)u(l,c.data,d),d+=c.data.length,c=c.next;return l}consume(o,l){const c=this.head.data;if(oh.length)l+=h,o-=h.length;else{o===h.length?(l+=h,++d,c.next?this.head=c.next:this.head=this.tail=null):(l+=t(h,0,o),this.head=c,c.data=t(h,o));break}++d}while((c=c.next)!==null);return this.length-=d,l}_getBuffer(o){const l=n.allocUnsafe(o),c=o;let d=this.head,h=0;do{const f=d.data;if(o>f.length)u(l,f,c-o),o-=f.length;else{o===f.length?(u(l,f,c-o),++h,d.next?this.head=d.next:this.head=this.tail=null):(u(l,new s(f.buffer,f.byteOffset,o),c-o),this.head=d,d.data=f.slice(o));break}++h}while((d=d.next)!==null);return this.length-=h,l}[Symbol.for("nodejs.util.inspect.custom")](o,l){return r(this,{...l,depth:0,customInspect:!1})}},h_}var p_,tI;function Bb(){if(tI)return p_;tI=1;const{MathFloor:t,NumberIsInteger:e}=Rr(),{validateInteger:u}=Ey(),{ERR_INVALID_ARG_VALUE:s}=Un().codes;let n=16*1024,r=16;function a(d,h,f){return d.highWaterMark!=null?d.highWaterMark:h?d[f]:null}function o(d){return d?r:n}function l(d,h){u(h,"value",0),d?r=h:n=h}function c(d,h,f,p){const y=a(h,p,f);if(y!=null){if(!e(y)||y<0){const b=p?`options.${f}`:"options.highWaterMark";throw new s(b,y)}return t(y)}return o(d.objectMode)}return p_={getHighWaterMark:c,getDefaultHighWaterMark:o,setDefaultHighWaterMark:l},p_}var y_={},u1={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */var rI;function Yz(){return rI||(rI=1,function(t,e){var u=Wi(),s=u.Buffer;function n(a,o){for(var l in a)o[l]=a[l]}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=u:(n(u,e),e.Buffer=r);function r(a,o,l){return s(a,o,l)}r.prototype=Object.create(s.prototype),n(s,r),r.from=function(a,o,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,o,l)},r.alloc=function(a,o,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=s(a);return o!==void 0?typeof l=="string"?c.fill(o,l):c.fill(o):c.fill(0),c},r.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},r.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return u.SlowBuffer(a)}}(u1,u1.exports)),u1.exports}var nI;function Zz(){if(nI)return y_;nI=1;var t=Yz().Buffer,e=t.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function u(g){if(!g)return"utf8";for(var v;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(v)return;g=(""+g).toLowerCase(),v=!0}}function s(g){var v=u(g);if(typeof v!="string"&&(t.isEncoding===e||!e(g)))throw new Error("Unknown encoding: "+g);return v||g}y_.StringDecoder=n;function n(g){this.encoding=s(g);var v;switch(this.encoding){case"utf16le":this.text=h,this.end=f,v=4;break;case"utf8":this.fillLast=l,v=4;break;case"base64":this.text=p,this.end=y,v=3;break;default:this.write=b,this.end=m;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(v)}n.prototype.write=function(g){if(g.length===0)return"";var v,_;if(this.lastNeed){if(v=this.fillLast(g),v===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function a(g,v,_){var w=v.length-1;if(w<_)return 0;var S=r(v[w]);return S>=0?(S>0&&(g.lastNeed=S-1),S):--w<_||S===-2?0:(S=r(v[w]),S>=0?(S>0&&(g.lastNeed=S-2),S):--w<_||S===-2?0:(S=r(v[w]),S>=0?(S>0&&(S===2?S=0:g.lastNeed=S-3),S):0))}function o(g,v,_){if((v[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&v.length>1){if((v[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&v.length>2&&(v[2]&192)!==128)return g.lastNeed=2,"�"}}function l(g){var v=this.lastTotal-this.lastNeed,_=o(this,g);if(_!==void 0)return _;if(this.lastNeed<=g.length)return g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,v,0,g.length),this.lastNeed-=g.length}function c(g,v){var _=a(this,g,v);if(!this.lastNeed)return g.toString("utf8",v);this.lastTotal=_;var w=g.length-(_-this.lastNeed);return g.copy(this.lastChar,0,w),g.toString("utf8",v,w)}function d(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+"�":v}function h(g,v){if((g.length-v)%2===0){var _=g.toString("utf16le",v);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function f(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,_)}return v}function p(g,v){var _=(g.length-v)%3;return _===0?g.toString("base64",v):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-_))}function y(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function b(g){return g.toString(this.encoding)}function m(g){return g&&g.length?this.write(g):""}return y_}var b_,iI;function yq(){if(iI)return b_;iI=1;const t=Sa(),{PromisePrototypeThen:e,SymbolAsyncIterator:u,SymbolIterator:s}=Rr(),{Buffer:n}=Wi(),{ERR_INVALID_ARG_TYPE:r,ERR_STREAM_NULL_VALUES:a}=Un().codes;function o(l,c,d){let h;if(typeof c=="string"||c instanceof n)return new l({objectMode:!0,...d,read(){this.push(c),this.push(null)}});let f;if(c&&c[u])f=!0,h=c[u]();else if(c&&c[s])f=!1,h=c[s]();else throw new r("iterable",["Iterable"],c);const p=new l({objectMode:!0,highWaterMark:1,...d});let y=!1;p._read=function(){y||(y=!0,m())},p._destroy=function(g,v){e(b(g),()=>t.nextTick(v,g),_=>t.nextTick(v,_||g))};async function b(g){const v=g!=null,_=typeof h.throw=="function";if(v&&_){const{value:w,done:S}=await h.throw(g);if(await w,S)return}if(typeof h.return=="function"){const{value:w}=await h.return();await w}}async function m(){for(;;){try{const{value:g,done:v}=f?await h.next():h.next();if(v)p.push(null);else{const _=g&&typeof g.then=="function"?await g:g;if(_===null)throw y=!1,new a;if(p.push(_))continue;y=!1}}catch(g){p.destroy(g)}break}}return p}return b_=o,b_}var g_,aI;function Ub(){if(aI)return g_;aI=1;const t=Sa(),{ArrayPrototypeIndexOf:e,NumberIsInteger:u,NumberIsNaN:s,NumberParseInt:n,ObjectDefineProperties:r,ObjectKeys:a,ObjectSetPrototypeOf:o,Promise:l,SafeSet:c,SymbolAsyncDispose:d,SymbolAsyncIterator:h,Symbol:f}=Rr();g_=ce,ce.ReadableState=te;const{EventEmitter:p}=wy(),{Stream:y,prependListener:b}=MT(),{Buffer:m}=Wi(),{addAbortSignal:g}=qb(),v=Za();let _=Pn().debuglog("stream",le=>{_=le});const w=Kz(),S=iu(),{getHighWaterMark:A,getDefaultHighWaterMark:D}=Bb(),{aggregateTwoErrors:L,codes:{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:P,ERR_STREAM_PUSH_AFTER_EOF:j,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:M}=Un(),{validateObject:q}=Ey(),Q=f("kPaused"),{StringDecoder:Z}=Zz(),K=yq();o(ce.prototype,y.prototype),o(ce,y);const fe=()=>{},{errorOrDestroy:X}=S,he=1,xe=2,ie=4,ae=8,Oe=16,Ne=32,ge=64,de=128,oe=256,$=512,N=1024,R=2048,T=4096,x=8192,B=16384,k=32768,V=65536,J=1<<17,z=1<<18;function Y(le){return{enumerable:!1,get(){return(this.state&le)!==0},set(C){C?this.state|=le:this.state&=~le}}}r(te.prototype,{objectMode:Y(he),ended:Y(xe),endEmitted:Y(ie),reading:Y(ae),constructed:Y(Oe),sync:Y(Ne),needReadable:Y(ge),emittedReadable:Y(de),readableListening:Y(oe),resumeScheduled:Y($),errorEmitted:Y(N),emitClose:Y(R),autoDestroy:Y(T),destroyed:Y(x),closed:Y(B),closeEmitted:Y(k),multiAwaitDrain:Y(V),readingMore:Y(J),dataEmitted:Y(z)});function te(le,C,ee){typeof ee!="boolean"&&(ee=C instanceof va()),this.state=R|T|Oe|Ne,le&&le.objectMode&&(this.state|=he),ee&&le&&le.readableObjectMode&&(this.state|=he),this.highWaterMark=le?A(this,le,"readableHighWaterMark",ee):D(!1),this.buffer=new w,this.length=0,this.pipes=[],this.flowing=null,this[Q]=null,le&&le.emitClose===!1&&(this.state&=~R),le&&le.autoDestroy===!1&&(this.state&=~T),this.errored=null,this.defaultEncoding=le&&le.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,le&&le.encoding&&(this.decoder=new Z(le.encoding),this.encoding=le.encoding)}function ce(le){if(!(this instanceof ce))return new ce(le);const C=this instanceof va();this._readableState=new te(le,this,C),le&&(typeof le.read=="function"&&(this._read=le.read),typeof le.destroy=="function"&&(this._destroy=le.destroy),typeof le.construct=="function"&&(this._construct=le.construct),le.signal&&!C&&g(le.signal,this)),y.call(this,le),S.construct(this,()=>{this._readableState.needReadable&&be(this,this._readableState)})}ce.prototype.destroy=S.destroy,ce.prototype._undestroy=S.undestroy,ce.prototype._destroy=function(le,C){C(le)},ce.prototype[p.captureRejectionSymbol]=function(le){this.destroy(le)},ce.prototype[d]=function(){let le;return this.destroyed||(le=this.readableEnded?null:new M,this.destroy(le)),new l((C,ee)=>v(this,pe=>pe&&pe!==le?ee(pe):C(null)))},ce.prototype.push=function(le,C){return Ae(this,le,C,!1)},ce.prototype.unshift=function(le,C){return Ae(this,le,C,!0)};function Ae(le,C,ee,pe){_("readableAddChunk",C);const De=le._readableState;let Ue;if(De.state&he||(typeof C=="string"?(ee=ee||De.defaultEncoding,De.encoding!==ee&&(pe&&De.encoding?C=m.from(C,ee).toString(De.encoding):(C=m.from(C,ee),ee=""))):C instanceof m?ee="":y._isUint8Array(C)?(C=y._uint8ArrayToBuffer(C),ee=""):C!=null&&(Ue=new E("chunk",["string","Buffer","Uint8Array"],C))),Ue)X(le,Ue);else if(C===null)De.state&=~ae,F(le,De);else if(De.state&he||C&&C.length>0)if(pe)if(De.state&ie)X(le,new U);else{if(De.destroyed||De.errored)return!1;Ie(le,De,C,!0)}else if(De.ended)X(le,new j);else{if(De.destroyed||De.errored)return!1;De.state&=~ae,De.decoder&&!ee?(C=De.decoder.write(C),De.objectMode||C.length!==0?Ie(le,De,C,!1):be(le,De)):Ie(le,De,C,!1)}else pe||(De.state&=~ae,be(le,De));return!De.ended&&(De.length0?(C.state&V?C.awaitDrainWriters.clear():C.awaitDrainWriters=null,C.dataEmitted=!0,le.emit("data",ee)):(C.length+=C.objectMode?1:ee.length,pe?C.buffer.unshift(ee):C.buffer.push(ee),C.state&ge&&H(le)),be(le,C)}ce.prototype.isPaused=function(){const le=this._readableState;return le[Q]===!0||le.flowing===!1},ce.prototype.setEncoding=function(le){const C=new Z(le);this._readableState.decoder=C,this._readableState.encoding=this._readableState.decoder.encoding;const ee=this._readableState.buffer;let pe="";for(const De of ee)pe+=C.write(De);return ee.clear(),pe!==""&&ee.push(pe),this._readableState.length=pe.length,this};const Ee=1073741824;function qe(le){if(le>Ee)throw new P("size","<= 1GiB",le);return le--,le|=le>>>1,le|=le>>>2,le|=le>>>4,le|=le>>>8,le|=le>>>16,le++,le}function G(le,C){return le<=0||C.length===0&&C.ended?0:C.state&he?1:s(le)?C.flowing&&C.length?C.buffer.first().length:C.length:le<=C.length?le:C.ended?C.length:0}ce.prototype.read=function(le){_("read",le),le===void 0?le=NaN:u(le)||(le=n(le,10));const C=this._readableState,ee=le;if(le>C.highWaterMark&&(C.highWaterMark=qe(le)),le!==0&&(C.state&=~de),le===0&&C.needReadable&&((C.highWaterMark!==0?C.length>=C.highWaterMark:C.length>0)||C.ended))return _("read: emitReadable",C.length,C.ended),C.length===0&&C.ended?$e(this):H(this),null;if(le=G(le,C),le===0&&C.ended)return C.length===0&&$e(this),null;let pe=(C.state&ge)!==0;if(_("need readable",pe),(C.length===0||C.length-le0?De=Le(le,C):De=null,De===null?(C.needReadable=C.length<=C.highWaterMark,le=0):(C.length-=le,C.multiAwaitDrain?C.awaitDrainWriters.clear():C.awaitDrainWriters=null),C.length===0&&(C.ended||(C.needReadable=!0),ee!==le&&C.ended&&$e(this)),De!==null&&!C.errorEmitted&&!C.closeEmitted&&(C.dataEmitted=!0,this.emit("data",De)),De};function F(le,C){if(_("onEofChunk"),!C.ended){if(C.decoder){const ee=C.decoder.end();ee&&ee.length&&(C.buffer.push(ee),C.length+=C.objectMode?1:ee.length)}C.ended=!0,C.sync?H(le):(C.needReadable=!1,C.emittedReadable=!0,re(le))}}function H(le){const C=le._readableState;_("emitReadable",C.needReadable,C.emittedReadable),C.needReadable=!1,C.emittedReadable||(_("emitReadable",C.flowing),C.emittedReadable=!0,t.nextTick(re,le))}function re(le){const C=le._readableState;_("emitReadable_",C.destroyed,C.length,C.ended),!C.destroyed&&!C.errored&&(C.length||C.ended)&&(le.emit("readable"),C.emittedReadable=!1),C.needReadable=!C.flowing&&!C.ended&&C.length<=C.highWaterMark,W(le)}function be(le,C){!C.readingMore&&C.constructed&&(C.readingMore=!0,t.nextTick(Re,le,C))}function Re(le,C){for(;!C.reading&&!C.ended&&(C.length1&&pe.pipes.includes(le)&&(_("false write response, pause",pe.awaitDrainWriters.size),pe.awaitDrainWriters.add(le)),ee.pause()),Ve||(Ve=Ce(ee,le),le.on("drain",Ve))}ee.on("data",ft);function ft(Pe){_("ondata");const Me=le.write(Pe);_("dest.write",Me),Me===!1&&yt()}function et(Pe){if(_("onerror",Pe),ye(),le.removeListener("error",et),le.listenerCount("error")===0){const Me=le._writableState||le._readableState;Me&&!Me.errorEmitted?X(le,Pe):le.emit("error",Pe)}}b(le,"error",et);function Ir(){le.removeListener("finish",Ke),ye()}le.once("close",Ir);function Ke(){_("onfinish"),le.removeListener("close",Ir),ye()}le.once("finish",Ke);function ye(){_("unpipe"),ee.unpipe(le)}return le.emit("pipe",ee),le.writableNeedDrain===!0?yt():pe.flowing||(_("pipe resume"),ee.resume()),le};function Ce(le,C){return function(){const pe=le._readableState;pe.awaitDrainWriters===C?(_("pipeOnDrain",1),pe.awaitDrainWriters=null):pe.multiAwaitDrain&&(_("pipeOnDrain",pe.awaitDrainWriters.size),pe.awaitDrainWriters.delete(C)),(!pe.awaitDrainWriters||pe.awaitDrainWriters.size===0)&&le.listenerCount("data")&&le.resume()}}ce.prototype.unpipe=function(le){const C=this._readableState,ee={hasUnpiped:!1};if(C.pipes.length===0)return this;if(!le){const De=C.pipes;C.pipes=[],this.pause();for(let Ue=0;Ue0,pe.flowing!==!1&&this.resume()):le==="readable"&&!pe.endEmitted&&!pe.readableListening&&(pe.readableListening=pe.needReadable=!0,pe.flowing=!1,pe.emittedReadable=!1,_("on readable",pe.length,pe.reading),pe.length?H(this):pe.reading||t.nextTick(ke,this)),ee},ce.prototype.addListener=ce.prototype.on,ce.prototype.removeListener=function(le,C){const ee=y.prototype.removeListener.call(this,le,C);return le==="readable"&&t.nextTick(Qe,this),ee},ce.prototype.off=ce.prototype.removeListener,ce.prototype.removeAllListeners=function(le){const C=y.prototype.removeAllListeners.apply(this,arguments);return(le==="readable"||le===void 0)&&t.nextTick(Qe,this),C};function Qe(le){const C=le._readableState;C.readableListening=le.listenerCount("readable")>0,C.resumeScheduled&&C[Q]===!1?C.flowing=!0:le.listenerCount("data")>0?le.resume():C.readableListening||(C.flowing=null)}function ke(le){_("readable nexttick read 0"),le.read(0)}ce.prototype.resume=function(){const le=this._readableState;return le.flowing||(_("resume"),le.flowing=!le.readableListening,me(this,le)),le[Q]=!1,this};function me(le,C){C.resumeScheduled||(C.resumeScheduled=!0,t.nextTick(Se,le,C))}function Se(le,C){_("resume",C.reading),C.reading||le.read(0),C.resumeScheduled=!1,le.emit("resume"),W(le),C.flowing&&!C.reading&&le.read(0)}ce.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Q]=!0,this};function W(le){const C=le._readableState;for(_("flow",C.flowing);C.flowing&&le.read()!==null;);}ce.prototype.wrap=function(le){let C=!1;le.on("data",pe=>{!this.push(pe)&&le.pause&&(C=!0,le.pause())}),le.on("end",()=>{this.push(null)}),le.on("error",pe=>{X(this,pe)}),le.on("close",()=>{this.destroy()}),le.on("destroy",()=>{this.destroy()}),this._read=()=>{C&&le.resume&&(C=!1,le.resume())};const ee=a(le);for(let pe=1;pe{De=Fe?L(De,Fe):null,ee(),ee=fe});try{for(;;){const Fe=le.destroyed?null:le.read();if(Fe!==null)yield Fe;else{if(De)throw De;if(De===null)return;await new l(pe)}}}catch(Fe){throw De=L(De,Fe),De}finally{(De||(C==null?void 0:C.destroyOnReturn)!==!1)&&(De===void 0||le._readableState.autoDestroy)?S.destroyer(le,null):(le.off("readable",pe),Ue())}}r(ce.prototype,{readable:{__proto__:null,get(){const le=this._readableState;return!!le&&le.readable!==!1&&!le.destroyed&&!le.errorEmitted&&!le.endEmitted},set(le){this._readableState&&(this._readableState.readable=!!le)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(le){this._readableState&&(this._readableState.flowing=le)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(le){this._readableState&&(this._readableState.destroyed=le)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),r(te.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Q]!==!1},set(le){this[Q]=!!le}}}),ce._fromList=Le;function Le(le,C){if(C.length===0)return null;let ee;return C.objectMode?ee=C.buffer.shift():!le||le>=C.length?(C.decoder?ee=C.buffer.join(""):C.buffer.length===1?ee=C.buffer.first():ee=C.buffer.concat(C.length),C.buffer.clear()):ee=C.buffer.consume(le,C.decoder),ee}function $e(le){const C=le._readableState;_("endReadable",C.endEmitted),C.endEmitted||(C.ended=!0,t.nextTick(We,C,le))}function We(le,C){if(_("endReadableNT",le.endEmitted,le.length),!le.errored&&!le.closeEmitted&&!le.endEmitted&&le.length===0){if(le.endEmitted=!0,C.emit("end"),C.writable&&C.allowHalfOpen===!1)t.nextTick(tt,C);else if(le.autoDestroy){const ee=C._writableState;(!ee||ee.autoDestroy&&(ee.finished||ee.writable===!1))&&C.destroy()}}}function tt(le){le.writable&&!le.writableEnded&&!le.destroyed&&le.end()}ce.from=function(le,C){return K(ce,le,C)};let lt;function ut(){return lt===void 0&&(lt={}),lt}return ce.fromWeb=function(le,C){return ut().newStreamReadableFromReadableStream(le,C)},ce.toWeb=function(le,C){return ut().newReadableStreamFromStreamReadable(le,C)},ce.wrap=function(le,C){var ee,pe;return new ce({objectMode:(ee=(pe=le.readableObjectMode)!==null&&pe!==void 0?pe:le.objectMode)!==null&&ee!==void 0?ee:!0,...C,destroy(De,Ue){S.destroyer(le,De),Ue(De)}}).wrap(le)},g_}var m_,sI;function FT(){if(sI)return m_;sI=1;const t=Sa(),{ArrayPrototypeSlice:e,Error:u,FunctionPrototypeSymbolHasInstance:s,ObjectDefineProperty:n,ObjectDefineProperties:r,ObjectSetPrototypeOf:a,StringPrototypeToLowerCase:o,Symbol:l,SymbolHasInstance:c}=Rr();m_=q,q.WritableState=U;const{EventEmitter:d}=wy(),h=MT().Stream,{Buffer:f}=Wi(),p=iu(),{addAbortSignal:y}=qb(),{getHighWaterMark:b,getDefaultHighWaterMark:m}=Bb(),{ERR_INVALID_ARG_TYPE:g,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_MULTIPLE_CALLBACK:_,ERR_STREAM_CANNOT_PIPE:w,ERR_STREAM_DESTROYED:S,ERR_STREAM_ALREADY_FINISHED:A,ERR_STREAM_NULL_VALUES:D,ERR_STREAM_WRITE_AFTER_END:L,ERR_UNKNOWN_ENCODING:E}=Un().codes,{errorOrDestroy:O}=p;a(q.prototype,h.prototype),a(q,h);function P(){}const j=l("kOnFinished");function U(T,x,B){typeof B!="boolean"&&(B=x instanceof va()),this.objectMode=!!(T&&T.objectMode),B&&(this.objectMode=this.objectMode||!!(T&&T.writableObjectMode)),this.highWaterMark=T?b(this,T,"writableHighWaterMark",B):m(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const k=!!(T&&T.decodeStrings===!1);this.decodeStrings=!k,this.defaultEncoding=T&&T.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=X.bind(void 0,x),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,M(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!T||T.emitClose!==!1,this.autoDestroy=!T||T.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[j]=[]}function M(T){T.buffered=[],T.bufferedIndex=0,T.allBuffers=!0,T.allNoop=!0}U.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},n(U.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function q(T){const x=this instanceof va();if(!x&&!s(q,this))return new q(T);this._writableState=new U(T,this,x),T&&(typeof T.write=="function"&&(this._write=T.write),typeof T.writev=="function"&&(this._writev=T.writev),typeof T.destroy=="function"&&(this._destroy=T.destroy),typeof T.final=="function"&&(this._final=T.final),typeof T.construct=="function"&&(this._construct=T.construct),T.signal&&y(T.signal,this)),h.call(this,T),p.construct(this,()=>{const B=this._writableState;B.writing||ae(this,B),de(this,B)})}n(q,c,{__proto__:null,value:function(T){return s(this,T)?!0:this!==q?!1:T&&T._writableState instanceof U}}),q.prototype.pipe=function(){O(this,new w)};function Q(T,x,B,k){const V=T._writableState;if(typeof B=="function")k=B,B=V.defaultEncoding;else{if(!B)B=V.defaultEncoding;else if(B!=="buffer"&&!f.isEncoding(B))throw new E(B);typeof k!="function"&&(k=P)}if(x===null)throw new D;if(!V.objectMode)if(typeof x=="string")V.decodeStrings!==!1&&(x=f.from(x,B),B="buffer");else if(x instanceof f)B="buffer";else if(h._isUint8Array(x))x=h._uint8ArrayToBuffer(x),B="buffer";else throw new g("chunk",["string","Buffer","Uint8Array"],x);let J;return V.ending?J=new L:V.destroyed&&(J=new S("write")),J?(t.nextTick(k,J),O(T,J,!0),J):(V.pendingcb++,Z(T,V,x,B,k))}q.prototype.write=function(T,x,B){return Q(this,T,x,B)===!0},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){const T=this._writableState;T.corked&&(T.corked--,T.writing||ae(this,T))},q.prototype.setDefaultEncoding=function(x){if(typeof x=="string"&&(x=o(x)),!f.isEncoding(x))throw new E(x);return this._writableState.defaultEncoding=x,this};function Z(T,x,B,k,V){const J=x.objectMode?1:B.length;x.length+=J;const z=x.lengthB.bufferedIndex&&ae(T,B),k?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===V?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:V,stream:T,state:B},t.nextTick(he,B.afterWriteTickInfo)):xe(T,B,1,V))}function he({stream:T,state:x,count:B,cb:k}){return x.afterWriteTickInfo=null,xe(T,x,B,k)}function xe(T,x,B,k){for(!x.ending&&!T.destroyed&&x.length===0&&x.needDrain&&(x.needDrain=!1,T.emit("drain"));B-- >0;)x.pendingcb--,k();x.destroyed&&ie(x),de(T,x)}function ie(T){if(T.writing)return;for(let V=T.bufferedIndex;V1&&T._writev){x.pendingcb-=J-1;const Y=x.allNoop?P:ce=>{for(let Ae=z;Ae256?(B.splice(0,z),x.bufferedIndex=0):x.bufferedIndex=z}x.bufferProcessing=!1}q.prototype._write=function(T,x,B){if(this._writev)this._writev([{chunk:T,encoding:x}],B);else throw new v("_write()")},q.prototype._writev=null,q.prototype.end=function(T,x,B){const k=this._writableState;typeof T=="function"?(B=T,T=null,x=null):typeof x=="function"&&(B=x,x=null);let V;if(T!=null){const J=Q(this,T,x);J instanceof u&&(V=J)}return k.corked&&(k.corked=1,this.uncork()),V||(!k.errored&&!k.ending?(k.ending=!0,de(this,k,!0),k.ended=!0):k.finished?V=new A("end"):k.destroyed&&(V=new S("end"))),typeof B=="function"&&(V||k.finished?t.nextTick(B,V):k[j].push(B)),this};function Oe(T){return T.ending&&!T.destroyed&&T.constructed&&T.length===0&&!T.errored&&T.buffered.length===0&&!T.finished&&!T.writing&&!T.errorEmitted&&!T.closeEmitted}function Ne(T,x){let B=!1;function k(V){if(B){O(T,V??_());return}if(B=!0,x.pendingcb--,V){const J=x[j].splice(0);for(let z=0;z{Oe(V)?oe(k,V):V.pendingcb--},T,x)):Oe(x)&&(x.pendingcb++,oe(T,x))))}function oe(T,x){x.pendingcb--,x.finished=!0;const B=x[j].splice(0);for(let k=0;k{if(ie!=null)throw new y("nully","body",ie)},ie=>{b(he,ie)});return he=new E({objectMode:!0,readable:!1,write:Z,final(ie){K(async()=>{try{await xe,t.nextTick(ie,null)}catch(ae){t.nextTick(ie,ae)}})},destroy:fe})}throw new y("Iterable, AsyncIterable or AsyncFunction",M,Q)}if(A(U))return j(U.arrayBuffer());if(n(U))return w(E,U,{objectMode:!0,writable:!1});if(c(U==null?void 0:U.readable)&&d(U==null?void 0:U.writable))return E.fromWeb(U);if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object"){const Q=U!=null&&U.readable?a(U==null?void 0:U.readable)?U==null?void 0:U.readable:j(U.readable):void 0,Z=U!=null&&U.writable?o(U==null?void 0:U.writable)?U==null?void 0:U.writable:j(U.writable):void 0;return P({readable:Q,writable:Z})}const q=U==null?void 0:U.then;if(typeof q=="function"){let Q;return L(q,U,Z=>{Z!=null&&Q.push(Z),Q.push(null)},Z=>{b(Q,Z)}),Q=new E({objectMode:!0,writable:!1,read(){}})}throw new p(M,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)};function O(j){let{promise:U,resolve:M}=_();const q=new D,Q=q.signal;return{value:j(async function*(){for(;;){const K=U;U=null;const{chunk:fe,done:X,cb:he}=await K;if(t.nextTick(he),X)return;if(Q.aborted)throw new f(void 0,{cause:Q.reason});({promise:U,resolve:M}=_()),yield fe}}(),{signal:Q}),write(K,fe,X){const he=M;M=null,he({chunk:K,done:!1,cb:X})},final(K){const fe=M;M=null,fe({done:!0,cb:K})},destroy(K,fe){q.abort(),fe(K)}}}function P(j){const U=j.readable&&typeof j.readable.read!="function"?g.wrap(j.readable):j.readable,M=j.writable;let q=!!u(U),Q=!!s(M),Z,K,fe,X,he;function xe(ie){const ae=X;X=null,ae?ae(ie):ie&&he.destroy(ie)}return he=new E({readableObjectMode:!!(U!=null&&U.readableObjectMode),writableObjectMode:!!(M!=null&&M.writableObjectMode),readable:q,writable:Q}),Q&&(h(M,ie=>{Q=!1,ie&&b(U,ie),xe(ie)}),he._write=function(ie,ae,Oe){M.write(ie,ae)?Oe():Z=Oe},he._final=function(ie){M.end(),K=ie},M.on("drain",function(){if(Z){const ie=Z;Z=null,ie()}}),M.on("finish",function(){if(K){const ie=K;K=null,ie()}})),q&&(h(U,ie=>{q=!1,ie&&b(U,ie),xe(ie)}),U.on("readable",function(){if(fe){const ie=fe;fe=null,ie()}}),U.on("end",function(){he.push(null)}),he._read=function(){for(;;){const ie=U.read();if(ie===null){fe=he._read;return}if(!he.push(ie))return}}),he._destroy=function(ie,ae){!ie&&X!==null&&(ie=new f),fe=null,Z=null,K=null,X===null?ae(ie):(X=ae,b(M,ie),b(U,ie))},he}return __}var v_,uI;function va(){if(uI)return v_;uI=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:u,ObjectSetPrototypeOf:s}=Rr();v_=a;const n=Ub(),r=FT();s(a.prototype,n.prototype),s(a,n);{const d=u(r.prototype);for(let h=0;h{if(d){c?c(d):this.destroy(d);return}h!=null&&this.push(h),this.push(null),c&&c()}):(this.push(null),c&&c())}function l(){this._final!==o&&o.call(this)}return a.prototype._final=o,a.prototype._transform=function(c,d,h){throw new u("_transform()")},a.prototype._write=function(c,d,h){const f=this._readableState,p=this._writableState,y=f.length;this._transform(c,d,(b,m)=>{if(b){h(b);return}m!=null&&this.push(m),p.ended||y===f.length||f.length{Ne=!0});const ge=r(ie,{readable:ae,writable:Oe},de=>{Ne=!de});return{destroy:de=>{Ne||(Ne=!0,o.destroyer(ie,de||new p("pipe")))},cleanup:ge}}function q(ie){return m(ie[ie.length-1],"streams[stream.length - 1]"),ie.pop()}function Q(ie){if(v(ie))return ie;if(w(ie))return Z(ie);throw new d("val",["Readable","Iterable","AsyncIterable"],ie)}async function*Z(ie){j||(j=Ub()),yield*j.prototype[s].call(ie)}async function K(ie,ae,Oe,{end:Ne}){let ge,de=null;const oe=R=>{if(R&&(ge=R),de){const T=de;de=null,T()}},$=()=>new u((R,T)=>{ge?T(ge):de=()=>{ge?T(ge):R()}});ae.on("drain",oe);const N=r(ae,{readable:!1},oe);try{ae.writableNeedDrain&&await $();for await(const R of ie)ae.write(R)||await $();Ne&&(ae.end(),await $()),Oe()}catch(R){Oe(ge!==R?c(ge,R):R)}finally{N(),ae.off("drain",oe)}}async function fe(ie,ae,Oe,{end:Ne}){A(ae)&&(ae=ae.writable);const ge=ae.getWriter();try{for await(const de of ie)await ge.ready,ge.write(de).catch(()=>{});await ge.ready,Ne&&await ge.close(),Oe()}catch(de){try{await ge.abort(de),Oe(de)}catch(oe){Oe(oe)}}}function X(...ie){return he(ie,a(q(ie)))}function he(ie,ae,Oe){if(ie.length===1&&e(ie[0])&&(ie=ie[0]),ie.length<2)throw new f("streams");const Ne=new O,ge=Ne.signal,de=Oe==null?void 0:Oe.signal,oe=[];g(de,"options.signal");function $(){V(new b)}U=U||Pn().addAbortListener;let N;de&&(N=U(de,$));let R,T;const x=[];let B=0;function k(te){V(te,--B===0)}function V(te,ce){var Ae;if(te&&(!R||R.code==="ERR_STREAM_PREMATURE_CLOSE")&&(R=te),!(!R&&!ce)){for(;x.length;)x.shift()(R);(Ae=N)===null||Ae===void 0||Ae[n](),Ne.abort(),ce&&(R||oe.forEach(Ie=>Ie()),t.nextTick(ae,R,T))}}let J;for(let te=0;te0,Ee=Ae||(Oe==null?void 0:Oe.end)!==!1,qe=te===ie.length-1;if(S(ce)){let G=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&k(F)};if(Ee){const{destroy:F,cleanup:H}=M(ce,Ae,Ie);x.push(F),_(ce)&&qe&&oe.push(H)}ce.on("error",G),_(ce)&&qe&&oe.push(()=>{ce.removeListener("error",G)})}if(te===0)if(typeof ce=="function"){if(J=ce({signal:ge}),!v(J))throw new h("Iterable, AsyncIterable or Stream","source",J)}else v(ce)||w(ce)||A(ce)?J=ce:J=l.from(ce);else if(typeof ce=="function"){if(A(J)){var z;J=Q((z=J)===null||z===void 0?void 0:z.readable)}else J=Q(J);if(J=ce(J,{signal:ge}),Ae){if(!v(J,!0))throw new h("AsyncIterable",`transform[${te-1}]`,J)}else{var Y;P||(P=gq());const G=new P({objectMode:!0}),F=(Y=J)===null||Y===void 0?void 0:Y.then;if(typeof F=="function")B++,F.call(J,be=>{T=be,be!=null&&G.write(be),Ee&&G.end(),t.nextTick(k)},be=>{G.destroy(be),t.nextTick(k,be)});else if(v(J,!0))B++,K(J,G,k,{end:Ee});else if(L(J)||A(J)){const be=J.readable||J;B++,K(be,G,k,{end:Ee})}else throw new h("AsyncIterable or Promise","destination",J);J=G;const{destroy:H,cleanup:re}=M(J,!1,!0);x.push(H),qe&&oe.push(re)}}else if(S(ce)){if(w(J)){B+=2;const G=xe(J,ce,k,{end:Ee});_(ce)&&qe&&oe.push(G)}else if(A(J)||L(J)){const G=J.readable||J;B++,K(G,ce,k,{end:Ee})}else if(v(J))B++,K(J,ce,k,{end:Ee});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],J);J=ce}else if(D(ce)){if(w(J))B++,fe(Q(J),ce,k,{end:Ee});else if(L(J)||v(J))B++,fe(J,ce,k,{end:Ee});else if(A(J))B++,fe(J.readable,ce,k,{end:Ee});else throw new d("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],J);J=ce}else J=l.from(ce)}return(ge!=null&&ge.aborted||de!=null&&de.aborted)&&t.nextTick($),J}function xe(ie,ae,Oe,{end:Ne}){let ge=!1;if(ae.on("close",()=>{ge||Oe(new y)}),ie.pipe(ae,{end:!1}),Ne){let de=function(){ge=!0,ae.end()};E(ie)?t.nextTick(de):ie.once("end",de)}else Oe();return r(ie,{readable:!0,writable:!1},de=>{const oe=ie._readableState;de&&de.code==="ERR_STREAM_PREMATURE_CLOSE"&&oe&&oe.ended&&!oe.errored&&!oe.errorEmitted?ie.once("end",Oe).once("error",Oe):Oe(de)}),r(ae,{readable:!1,writable:!0},Oe)}return T_={pipelineImpl:he,pipeline:X},T_}var A_,fI;function mq(){if(fI)return A_;fI=1;const{pipeline:t}=qT(),e=va(),{destroyer:u}=iu(),{isNodeStream:s,isReadable:n,isWritable:r,isWebStream:a,isTransformStream:o,isWritableStream:l,isReadableStream:c}=Ta(),{AbortError:d,codes:{ERR_INVALID_ARG_VALUE:h,ERR_MISSING_ARGS:f}}=Un(),p=Za();return A_=function(...b){if(b.length===0)throw new f("streams");if(b.length===1)return e.from(b[0]);const m=[...b];if(typeof b[0]=="function"&&(b[0]=e.from(b[0])),typeof b[b.length-1]=="function"){const P=b.length-1;b[P]=e.from(b[P])}for(let P=0;P0&&!(r(b[P])||l(b[P])||o(b[P])))throw new h(`streams[${P}]`,m[P],"must be writable")}let g,v,_,w,S;function A(P){const j=w;w=null,j?j(P):P?S.destroy(P):!O&&!E&&S.destroy()}const D=b[0],L=t(b,A),E=!!(r(D)||l(D)||o(D)),O=!!(n(L)||c(L)||o(L));if(S=new e({writableObjectMode:!!(D!=null&&D.writableObjectMode),readableObjectMode:!!(L!=null&&L.readableObjectMode),writable:E,readable:O}),E){if(s(D))S._write=function(j,U,M){D.write(j,U)?M():g=M},S._final=function(j){D.end(),v=j},D.on("drain",function(){if(g){const j=g;g=null,j()}});else if(a(D)){const U=(o(D)?D.writable:D).getWriter();S._write=async function(M,q,Q){try{await U.ready,U.write(M).catch(()=>{}),Q()}catch(Z){Q(Z)}},S._final=async function(M){try{await U.ready,U.close().catch(()=>{}),v=M}catch(q){M(q)}}}const P=o(L)?L.readable:L;p(P,()=>{if(v){const j=v;v=null,j()}})}if(O){if(s(L))L.on("readable",function(){if(_){const P=_;_=null,P()}}),L.on("end",function(){S.push(null)}),S._read=function(){for(;;){const P=L.read();if(P===null){_=S._read;return}if(!S.push(P))return}};else if(a(L)){const j=(o(L)?L.readable:L).getReader();S._read=async function(){for(;;)try{const{value:U,done:M}=await j.read();if(!S.push(U))return;if(M){S.push(null);return}}catch{return}}}}return S._destroy=function(P,j){!P&&w!==null&&(P=new d),_=null,g=null,v=null,w===null?j(P):(w=j,s(L)&&u(L,P))},S},A_}var hI;function tG(){if(hI)return s1;hI=1;const t=globalThis.AbortController||Uo().AbortController,{codes:{ERR_INVALID_ARG_VALUE:e,ERR_INVALID_ARG_TYPE:u,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:n},AbortError:r}=Un(),{validateAbortSignal:a,validateInteger:o,validateObject:l}=Ey(),c=Rr().Symbol("kWeak"),d=Rr().Symbol("kResistStopPropagation"),{finished:h}=Za(),f=mq(),{addAbortSignalNoValidate:p}=qb(),{isWritable:y,isNodeStream:b}=Ta(),{deprecate:m}=Pn(),{ArrayPrototypePush:g,Boolean:v,MathFloor:_,Number:w,NumberIsNaN:S,Promise:A,PromiseReject:D,PromiseResolve:L,PromisePrototypeThen:E,Symbol:O}=Rr(),P=O("kEmpty"),j=O("kEof");function U(de,oe){if(oe!=null&&l(oe,"options"),(oe==null?void 0:oe.signal)!=null&&a(oe.signal,"options.signal"),b(de)&&!y(de))throw new e("stream",de,"must be writable");const $=f(this,de);return oe!=null&&oe.signal&&p(oe.signal,$),$}function M(de,oe){if(typeof de!="function")throw new u("fn",["Function","AsyncFunction"],de);oe!=null&&l(oe,"options"),(oe==null?void 0:oe.signal)!=null&&a(oe.signal,"options.signal");let $=1;(oe==null?void 0:oe.concurrency)!=null&&($=_(oe.concurrency));let N=$-1;return(oe==null?void 0:oe.highWaterMark)!=null&&(N=_(oe.highWaterMark)),o($,"options.concurrency",1),o(N,"options.highWaterMark",0),N+=$,(async function*(){const T=Pn().AbortSignalAny([oe==null?void 0:oe.signal].filter(v)),x=this,B=[],k={signal:T};let V,J,z=!1,Y=0;function te(){z=!0,ce()}function ce(){Y-=1,Ae()}function Ae(){J&&!z&&Y<$&&B.length=N||Y>=$)&&await new A(qe=>{J=qe})}B.push(j)}catch(Ee){const qe=D(Ee);E(qe,ce,te),B.push(qe)}finally{z=!0,V&&(V(),V=null)}}Ie();try{for(;;){for(;B.length>0;){const Ee=await B[0];if(Ee===j)return;if(T.aborted)throw new r;Ee!==P&&(yield Ee),B.shift(),Ae()}await new A(Ee=>{V=Ee})}}finally{z=!0,J&&(J(),J=null)}}).call(this)}function q(de=void 0){return de!=null&&l(de,"options"),(de==null?void 0:de.signal)!=null&&a(de.signal,"options.signal"),(async function*(){let $=0;for await(const R of this){var N;if(de!=null&&(N=de.signal)!==null&&N!==void 0&&N.aborted)throw new r({cause:de.signal.reason});yield[$++,R]}}).call(this)}async function Q(de,oe=void 0){for await(const $ of X.call(this,de,oe))return!0;return!1}async function Z(de,oe=void 0){if(typeof de!="function")throw new u("fn",["Function","AsyncFunction"],de);return!await Q.call(this,async(...$)=>!await de(...$),oe)}async function K(de,oe){for await(const $ of X.call(this,de,oe))return $}async function fe(de,oe){if(typeof de!="function")throw new u("fn",["Function","AsyncFunction"],de);async function $(N,R){return await de(N,R),P}for await(const N of M.call(this,$,oe));}function X(de,oe){if(typeof de!="function")throw new u("fn",["Function","AsyncFunction"],de);async function $(N,R){return await de(N,R)?N:P}return M.call(this,$,oe)}class he extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function xe(de,oe,$){var N;if(typeof de!="function")throw new u("reducer",["Function","AsyncFunction"],de);$!=null&&l($,"options"),($==null?void 0:$.signal)!=null&&a($.signal,"options.signal");let R=arguments.length>1;if($!=null&&(N=$.signal)!==null&&N!==void 0&&N.aborted){const V=new r(void 0,{cause:$.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(V)),V}const T=new t,x=T.signal;if($!=null&&$.signal){const V={once:!0,[c]:this,[d]:!0};$.signal.addEventListener("abort",()=>T.abort(),V)}let B=!1;try{for await(const V of this){var k;if(B=!0,$!=null&&(k=$.signal)!==null&&k!==void 0&&k.aborted)throw new r;R?oe=await de(oe,V,{signal:x}):(oe=V,R=!0)}if(!B&&!R)throw new he}finally{T.abort()}return oe}async function ie(de){de!=null&&l(de,"options"),(de==null?void 0:de.signal)!=null&&a(de.signal,"options.signal");const oe=[];for await(const N of this){var $;if(de!=null&&($=de.signal)!==null&&$!==void 0&&$.aborted)throw new r(void 0,{cause:de.signal.reason});g(oe,N)}return oe}function ae(de,oe){const $=M.call(this,de,oe);return(async function*(){for await(const R of $)yield*R}).call(this)}function Oe(de){if(de=w(de),S(de))return 0;if(de<0)throw new n("number",">= 0",de);return de}function Ne(de,oe=void 0){return oe!=null&&l(oe,"options"),(oe==null?void 0:oe.signal)!=null&&a(oe.signal,"options.signal"),de=Oe(de),(async function*(){var N;if(oe!=null&&(N=oe.signal)!==null&&N!==void 0&&N.aborted)throw new r;for await(const T of this){var R;if(oe!=null&&(R=oe.signal)!==null&&R!==void 0&&R.aborted)throw new r;de--<=0&&(yield T)}}).call(this)}function ge(de,oe=void 0){return oe!=null&&l(oe,"options"),(oe==null?void 0:oe.signal)!=null&&a(oe.signal,"options.signal"),de=Oe(de),(async function*(){var N;if(oe!=null&&(N=oe.signal)!==null&&N!==void 0&&N.aborted)throw new r;for await(const T of this){var R;if(oe!=null&&(R=oe.signal)!==null&&R!==void 0&&R.aborted)throw new r;if(de-- >0&&(yield T),de<=0)return}}).call(this)}return s1.streamReturningOperators={asIndexedPairs:m(q,"readable.asIndexedPairs will be removed in a future version."),drop:Ne,filter:X,flatMap:ae,map:M,take:ge,compose:U},s1.promiseReturningOperators={every:Z,forEach:fe,reduce:xe,toArray:ie,some:Q,find:K},s1}var E_,pI;function _q(){if(pI)return E_;pI=1;const{ArrayPrototypePop:t,Promise:e}=Rr(),{isIterable:u,isNodeStream:s,isWebStream:n}=Ta(),{pipelineImpl:r}=qT(),{finished:a}=Za();vq();function o(...l){return new e((c,d)=>{let h,f;const p=l[l.length-1];if(p&&typeof p=="object"&&!s(p)&&!u(p)&&!n(p)){const y=t(l);h=y.signal,f=y.end}r(l,(y,b)=>{y?d(y):c(b)},{signal:h,end:f})})}return E_={finished:a,pipeline:o},E_}var yI;function vq(){if(yI)return n_.exports;yI=1;const{Buffer:t}=Wi(),{ObjectDefineProperty:e,ObjectKeys:u,ReflectApply:s}=Rr(),{promisify:{custom:n}}=Pn(),{streamReturningOperators:r,promiseReturningOperators:a}=tG(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:o}}=Un(),l=mq(),{setDefaultHighWaterMark:c,getDefaultHighWaterMark:d}=Bb(),{pipeline:h}=qT(),{destroyer:f}=iu(),p=Za(),y=_q(),b=Ta(),m=n_.exports=MT().Stream;m.isDestroyed=b.isDestroyed,m.isDisturbed=b.isDisturbed,m.isErrored=b.isErrored,m.isReadable=b.isReadable,m.isWritable=b.isWritable,m.Readable=Ub();for(const v of u(r)){let w=function(...S){if(new.target)throw o();return m.Readable.from(s(_,this,S))};const _=r[v];e(w,"name",{__proto__:null,value:_.name}),e(w,"length",{__proto__:null,value:_.length}),e(m.Readable.prototype,v,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}for(const v of u(a)){let w=function(...S){if(new.target)throw o();return s(_,this,S)};const _=a[v];e(w,"name",{__proto__:null,value:_.name}),e(w,"length",{__proto__:null,value:_.length}),e(m.Readable.prototype,v,{__proto__:null,value:w,enumerable:!1,configurable:!0,writable:!0})}m.Writable=FT(),m.Duplex=va(),m.Transform=bq(),m.PassThrough=gq(),m.pipeline=h;const{addAbortSignal:g}=qb();return m.addAbortSignal=g,m.finished=p,m.destroy=f,m.compose=l,m.setDefaultHighWaterMark=c,m.getDefaultHighWaterMark=d,e(m,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return y}}),e(h,n,{__proto__:null,enumerable:!0,get(){return y.pipeline}}),e(p,n,{__proto__:null,enumerable:!0,get(){return y.finished}}),m.Stream=m,m._isUint8Array=function(_){return _ instanceof Uint8Array},m._uint8ArrayToBuffer=function(_){return t.from(_.buffer,_.byteOffset,_.byteLength)},n_.exports}var bI;function Wt(){return bI||(bI=1,function(t){const e=vq(),u=_q(),s=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=s,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return u}}),t.exports.Stream=e.Stream,t.exports.default=t.exports}(r_)),r_.exports}var gI;function rG(){if(gI)return Ic;gI=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.ActorQueryResultSerializeJson=void 0;const t=Gi(),e=Nt(),u=er(),s=Wt();let n=class extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(a){super(a)}async testHandleChecked(a,o){if(!["bindings","quads","boolean"].includes(a.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}async runHandle(a,o,l){const c=new s.Readable;if(c._read=()=>{},a.type==="bindings"||a.type==="quads"){let d=a.type==="bindings"?(0,e.wrap)(a.bindingsStream).map(f=>JSON.stringify(Object.fromEntries([...f].map(([p,y])=>[p.value,u.termToString(y)])))):(0,e.wrap)(a.quadStream).map(f=>JSON.stringify(u.quadToStringQuad(f))),h=!0;d=d.map(f=>{const p=`${h?"":","} +${f}`;return h=!1,p}).prepend(["["]).append([` +] +`]),c.wrap(d)}else try{c.push(`${JSON.stringify(await a.execute())} +`),c.push(null)}catch(d){setTimeout(()=>c.emit("error",d))}return{data:c}}};return Ic.ActorQueryResultSerializeJson=n,Ic}var mI;function nG(){return mI||(mI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(rG(),t)}(Zm)),Zm}var O_={},Mc={},_I;function iG(){if(_I)return Mc;_I=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.ActorQueryResultSerializeSimple=void 0;const t=Gi(),e=Nt(),u=er(),s=Wt();let n=class vo extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(a){super(a)}async testHandleChecked(a,o){if(!["bindings","quads","boolean","void"].includes(a.type))throw new Error("This actor can only handle bindings streams, quad streams, booleans, or updates.");return!0}static termToString(a){return a.termType==="Quad"?(0,u.termToString)(a):a.value}async runHandle(a,o,l){const c=new s.Readable;return a.type==="bindings"?c.wrap(a.bindingsStream.map(d=>`${[...d].map(([h,f])=>`?${h.value}: ${vo.termToString(f)}`).join(` +`)} + +`)):a.type==="quads"?c.wrap(a.quadStream.map(d=>`subject: ${vo.termToString(d.subject)} +predicate: ${vo.termToString(d.predicate)} +object: ${vo.termToString(d.object)} +graph: ${vo.termToString(d.graph)} + +`)):c.wrap((0,e.wrap)(a.type==="boolean"?a.execute().then(d=>[`${d} +`]):a.execute().then(()=>[`ok +`]))),{data:c}}};return Mc.ActorQueryResultSerializeSimple=n,Mc}var vI;function aG(){return vI||(vI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(iG(),t)}(O_)),O_}var R_={},Fc={},wI;function sG(){if(wI)return Fc;wI=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.ActorQueryResultSerializeSparqlCsv=void 0;const t=Gi(),e=Wt();let u=class T0 extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(n){super(n)}static bindingToCsvBindings(n){if(!n)return"";let r=n.value;if(n.termType==="Literal")r=`${r}`;else if(n.termType==="BlankNode")r=`_:${r}`;else if(n.termType==="Quad"){let a=T0.bindingToCsvBindings(n.object);n.object.termType==="Literal"&&(a=`"${a.replaceAll('"','""')}"`),r=`<< ${T0.bindingToCsvBindings(n.subject)} ${T0.bindingToCsvBindings(n.predicate)} ${a} >>`}else r=`<${r}>`;return/[",\n\r]/u.test(r)&&(r=`"${r.replaceAll('"','""')}"`),r}async testHandleChecked(n,r){if(n.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(n,r,a){const o=n,l=new e.Readable,c=await o.metadata();return l.push(`${c.variables.map(d=>d.value).join(",")}\r +`),l.wrap(o.bindingsStream.map(d=>`${c.variables.map(h=>T0.bindingToCsvBindings(d.get(h))).join(",")}\r +`)),{data:l}}};return Fc.ActorQueryResultSerializeSparqlCsv=u,Fc}var SI;function oG(){return SI||(SI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(sG(),t)}(R_)),R_}var x_={},qc={},I_={},tn={},TI;function uG(){if(TI)return tn;TI=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.stringQuadToQuad=tn.quadToStringQuad=tn.stringToTerm=tn.getLiteralLanguage=tn.getLiteralType=tn.getLiteralValue=tn.termToString=void 0;const t=Et(),e=new t.DataFactory;function u(y){if(y)switch(y.termType){case"NamedNode":return`<${c(y.value)}>`;case"BlankNode":return`_:${y.value}`;case"Literal":{const b=y;return`"${d(b.value)}"${b.datatype&&b.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"&&b.datatype.value!=="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?`^^<${b.datatype.value}>`:""}${b.language?`@${b.language}`:""}`}case"Quad":return`<<${u(y.subject)} ${u(y.predicate)} ${u(y.object)}${y.graph.termType==="DefaultGraph"?"":` ${u(y.graph)}`}>>`;case"Variable":return`?${y.value}`;case"DefaultGraph":return y.value}}tn.termToString=u;function s(y){const b=/^"([^]*)"((\^\^.*)|(@.*))?$/u.exec(y);if(!b)throw new Error(`${y} is not a literal`);return b[1].replace(/\\"/ug,'"')}tn.getLiteralValue=s;function n(y){const b=/^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/u.exec(y);if(!b)throw new Error(`${y} is not a literal`);return b[1]||(b[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}tn.getLiteralType=n;function r(y){const b=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/u.exec(y);if(!b)throw new Error(`${y} is not a literal`);return b[1]?b[1].toLowerCase():""}tn.getLiteralLanguage=r;function a(y,b){if(b=b||e,!y||y.length===0)return b.defaultGraph();switch(y[0]){case"_":return b.blankNode(y.slice(2));case"?":if(!b.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return b.variable(y.slice(1));case'"':{const m=r(y),g=b.namedNode(n(y));return b.literal(s(y),m||g)}case"<":default:if(y.startsWith("<<")&&y.endsWith(">>")){const m=y.slice(2,-2),g=[];let v=0,_=0;for(let w=0;w"){if(v===0)throw new Error(`Found closing tag without opening tag in ${y}`);v--}S===" "&&v===0&&(g.push(m.slice(_,w)),_=w+1)}if(v!==0)throw new Error(`Found opening tag without closing tag in ${y}`);if(g.push(m.slice(_,m.length)),g.length!==3&&g.length!==4)throw new Error(`Nested quad syntax error ${y}`);return b.quad(a(g[0]),a(g[1]),a(g[2]),g[3]?a(g[3]):void 0)}if(!y.startsWith("<")||!y.endsWith(">"))throw new Error(`Detected invalid iri for named node (must be wrapped in <>): ${y}`);return b.namedNode(y.slice(1,-1))}}tn.stringToTerm=a;function o(y){return{subject:u(y.subject),predicate:u(y.predicate),object:u(y.object),graph:u(y.graph)}}tn.quadToStringQuad=o;function l(y,b){return b=b||e,b.quad(a(y.subject,b),a(y.predicate,b),a(y.object,b),a(y.graph,b))}tn.stringQuadToQuad=l;function c(y){return y.replace(h,p)}function d(y){return h.test(y)&&(y=y.replace(h,p)),y}const h=/["\\\t\n\r\b\f\u0000-\u0019]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=new Map([["\\","\\\\"],['"','\\"'],[" ","\\t"],[` +`,"\\n"],["\r","\\r"],["\b","\\b"],["\f","\\f"]]);function p(y){const b=f.get(y);if(!b){if(y.length===1){const g=y.charCodeAt(0).toString(16);return`${"\\u0000".slice(0,-g.length)}${g}`}const m=((y.charCodeAt(0)-55296)*1024+y.charCodeAt(1)+9216).toString(16);return`${"\\U00000000".slice(0,-m.length)}${m}`}return b}return tn}var AI;function Oy(){return AI||(AI=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.termToString=t.stringToTerm=t.stringQuadToQuad=t.quadToStringQuad=t.getLiteralValue=t.getLiteralType=t.getLiteralLanguage=void 0;const e=uG();Object.defineProperty(t,"getLiteralLanguage",{enumerable:!0,get:function(){return e.getLiteralLanguage}}),Object.defineProperty(t,"getLiteralType",{enumerable:!0,get:function(){return e.getLiteralType}}),Object.defineProperty(t,"getLiteralValue",{enumerable:!0,get:function(){return e.getLiteralValue}}),Object.defineProperty(t,"quadToStringQuad",{enumerable:!0,get:function(){return e.quadToStringQuad}}),Object.defineProperty(t,"stringQuadToQuad",{enumerable:!0,get:function(){return e.stringQuadToQuad}}),Object.defineProperty(t,"stringToTerm",{enumerable:!0,get:function(){return e.stringToTerm}}),Object.defineProperty(t,"termToString",{enumerable:!0,get:function(){return e.termToString}})}(I_)),I_}var EI;function cG(){if(EI)return qc;EI=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.ActorQueryResultSerializeSparqlTsv=void 0;const t=Gi(),e=Oy(),u=Wt();let s=class wq extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(r){super(r)}static bindingToTsvBindings(r){return r?(0,e.termToString)(r).replaceAll(" ","\\t").replaceAll(` +`,"\\n").replaceAll("\r","\\r"):""}async testHandleChecked(r,a){if(r.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(r,a,o){const l=r,c=new u.Readable,d=await l.metadata();return c.push(`${d.variables.map(h=>h.value).join(" ")} +`),c.wrap(l.bindingsStream.map(h=>`${d.variables.map(f=>wq.bindingToTsvBindings(h.get(f))).join(" ")} +`)),{data:c}}};return qc.ActorQueryResultSerializeSparqlTsv=s,qc}var OI;function lG(){return OI||(OI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(cG(),t)}(x_)),x_}var P_={},Bc={},Uc={},RI;function dG(){if(RI)return Uc;RI=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.XmlSerializer=void 0;let t=class{constructor(){this.stack=[]}open(u,s){const n=`${this.identation()+this.formatTag(u,s,"open")} +`;return this.stack.push(u),n}close(){const u=this.stack.pop();if(u===void 0)throw new Error("There is no tag left to close");return`${this.identation()+this.formatTag(u,{},"close")} +`}serializeNode(u){if(u.children===void 0)return`${this.identation()+this.formatTag(u.name,u.attributes,"self-closing")} +`;if(typeof u.children=="string")return`${this.identation()+this.formatTag(u.name,u.attributes,"open")+this.escape(u.children)+this.formatTag(u.name,{},"close")} +`;const s=[];s.push(`${this.identation()+this.formatTag(u.name,u.attributes,"open")} +`),this.stack.push(u.name);for(const n of u.children)s.push(this.serializeNode(n));return this.stack.pop(),s.push(`${this.identation()+this.formatTag(u.name,{},"close")} +`),s.join("")}identation(){return this.stack.map(u=>" ").join("")}formatTag(u,s,n){return`<${n==="close"?"/":""}${u}${Object.entries(s??{}).map(r=>` ${r[0]}="${this.escape(r[1])}"`)}${n==="self-closing"?"/":""}>`}escape(u){return u.replaceAll(/["&'<>]/gu,s=>{switch(s){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case'"':return"""}})}};return Uc.XmlSerializer=t,t.header=` +`,Uc}var xI;function fG(){if(xI)return Bc;xI=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.ActorQueryResultSerializeSparqlXml=void 0;const t=Gi(),e=Nt(),u=Wt(),s=dG();let n=class Sq extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(a){super(a)}static bindingToXmlBindings(a,o){return{name:"binding",attributes:{name:o.value},children:[this.valueToXmlValue(a)]}}static valueToXmlValue(a){let o;switch(a.termType){case"Literal":return a.language?o={"xml:lang":a.language}:a.datatype&&a.datatype.value!=="http://www.w3.org/2001/XMLSchema#string"?o={datatype:a.datatype.value}:o={},{name:"literal",attributes:o,children:a.value};case"BlankNode":return{name:"bnode",children:a.value};case"Quad":return{name:"triple",children:[{name:"subject",children:[this.valueToXmlValue(a.subject)]},{name:"predicate",children:[this.valueToXmlValue(a.predicate)]},{name:"object",children:[this.valueToXmlValue(a.object)]}]};default:return{name:"uri",children:a.value}}}async testHandleChecked(a,o){if(!["bindings","boolean"].includes(a.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(a,o,l){const c=new u.Readable;c._read=()=>{};const d=new s.XmlSerializer,h=await a.metadata();if(c.push(s.XmlSerializer.header),c.push(d.open("sparql",{xmlns:"http://www.w3.org/2005/sparql-results#"})),c.push(d.serializeNode({name:"head",children:h.variables.map(f=>({name:"variable",attributes:{name:f.value}}))})),a.type==="bindings"){function*f(){yield d.close(),yield d.close()}c.push(d.open("results"));const p=(0,e.wrap)(a.bindingsStream).map(y=>d.serializeNode({name:"result",children:[...y].map(([b,m])=>Sq.bindingToXmlBindings(m,b))})).append((0,e.wrap)(f()));c.wrap(p)}else try{const f=await a.execute();c.push(d.serializeNode({name:"boolean",children:f.toString()})),c.push(d.close()),setTimeout(()=>c.push(null))}catch(f){setTimeout(()=>c.emit("error",f))}return{data:c}}};return Bc.ActorQueryResultSerializeSparqlXml=n,Bc}var II;function hG(){return II||(II=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(fG(),t)}(P_)),P_}var D_={},Hc={},PI;function pG(){if(PI)return Hc;PI=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.ActorQueryResultSerializeTable=void 0;const t=Gi(),e=Et(),u=er(),s=un(),n=Wt(),r=new e.DataFactory,a=s.QUAD_TERM_NAMES.map(l=>r.variable(l));let o=class r3 extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(c){super(c),this.padding=r3.repeat(" ",this.columnWidth)}static repeat(c,d){return c.repeat(d)}async testHandleChecked(c,d){if(!["bindings","quads"].includes(c.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}termToString(c){return c.termType==="Quad"?(0,u.termToString)(c):c.value}pad(c){return c.length<=this.columnWidth?c+this.padding.slice(c.length):`${c.slice(0,this.columnWidth-1)}…`}pushHeader(c,d){const h=d.map(f=>this.pad(f.value)).join(" ");c.push(`${h} +${r3.repeat("-",h.length)} +`)}createRow(c,d){return`${c.map(h=>d.has(h)?this.termToString(d.get(h)):"").map(h=>this.pad(h)).join(" ")} +`}async runHandle(c,d,h){const f=new n.Readable;let p;if(c.type==="bindings"){p=c.bindingsStream.map(b=>this.createRow(y,b));const y=(await c.metadata()).variables;this.pushHeader(f,y)}else p=c.quadStream.map(y=>`${(0,s.getTerms)(y).map(b=>this.pad(this.termToString(b))).join(" ")} +`),this.pushHeader(f,a);return f.wrap(p),{data:f}}};return Hc.ActorQueryResultSerializeTable=o,Hc}var DI;function yG(){return DI||(DI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(pG(),t)}(D_)),D_}var N_={},$c={},C_={},Qc={},j_={},L_={},Vc={},kc={},NI;function Ho(){if(NI)return kc;NI=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.Translator=void 0;let t=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(u){throw new Error(`Invalid RDF ${u.datatype.value} value: '${u.value}'`)}registerHandler(u,s,n){for(const r of s)this.supportedRdfDatatypes.push(r),this.fromRdfHandlers[r.value]=u;for(const r of n){let a=this.toRdfHandlers[r];a||(this.toRdfHandlers[r]=a=[]),a.push(u)}}fromRdf(u,s){const n=this.fromRdfHandlers[u.datatype.value];return n?n.fromRdf(u,s):u.value}toRdf(u,s){const n=this.toRdfHandlers[typeof u];if(n)for(const r of n){const a=r.toRdf(u,s);if(a)return a}throw new Error(`Invalid JavaScript value: '${u}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}};return kc.Translator=t,kc}var CI;function bG(){if(CI)return Vc;CI=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.TypeHandlerBoolean=void 0;const t=Ho();let e=class Tq{fromRdf(s,n){switch(s.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return n&&t.Translator.incorrectRdfDataType(s),!1}toRdf(s,{datatype:n,dataFactory:r}){return r.literal(s?"true":"false",n||r.namedNode(Tq.TYPE))}};return e.TYPE="http://www.w3.org/2001/XMLSchema#boolean",Vc.TypeHandlerBoolean=e,Vc}var zc={},jI;function gG(){if(jI)return zc;jI=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.TypeHandlerDate=void 0;const t=Ho();let e=class n3{fromRdf(s,n){switch(n&&!s.value.match(n3.VALIDATORS[s.datatype.value.substr(33,s.datatype.value.length)])&&t.Translator.incorrectRdfDataType(s),s.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(s.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const r=s.value.split("-");return new Date(0,parseInt(r[0],10)-1,parseInt(r[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(s.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(s.value+"-01");default:return new Date(s.value)}}toRdf(s,{datatype:n,dataFactory:r}){if(n=n||r.namedNode(n3.TYPES[0]),!(s instanceof Date))return null;const a=s;let o;switch(n.value){case"http://www.w3.org/2001/XMLSchema#gDay":o=String(a.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":o=a.getUTCMonth()+1+"-"+a.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":o=String(a.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":o=a.getUTCFullYear()+"-"+(a.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":o=a.toISOString().replace(/T.*$/,"");break;default:o=a.toISOString()}return r.literal(o,n)}};return e.TYPES=["http://www.w3.org/2001/XMLSchema#dateTime","http://www.w3.org/2001/XMLSchema#date","http://www.w3.org/2001/XMLSchema#gDay","http://www.w3.org/2001/XMLSchema#gMonthDay","http://www.w3.org/2001/XMLSchema#gYear","http://www.w3.org/2001/XMLSchema#gYearMonth"],e.VALIDATORS={date:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,dateTime:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9](\.[0-9][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,gDay:/^[0-9]+$/,gMonthDay:/^[0-9]+-[0-9][0-9]$/,gYear:/^[0-9]+$/,gYearMonth:/^[0-9]+-[0-9][0-9]$/},zc.TypeHandlerDate=e,zc}var Gc={},LI;function mG(){if(LI)return Gc;LI=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.TypeHandlerNumberDouble=void 0;const t=Ho();let e=class Aq{fromRdf(s,n){const r=parseFloat(s.value);return n&&isNaN(r)&&t.Translator.incorrectRdfDataType(s),r}toRdf(s,{datatype:n,dataFactory:r}){return n=n||r.namedNode(Aq.TYPES[0]),isNaN(s)?r.literal("NaN",n):isFinite(s)?s%1===0?null:r.literal(s.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),n):r.literal(s>0?"INF":"-INF",n)}};return e.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],Gc.TypeHandlerNumberDouble=e,Gc}var Wc={},MI;function _G(){if(MI)return Wc;MI=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.TypeHandlerNumberInteger=void 0;const t=Ho();let e=class A0{fromRdf(s,n){const r=parseInt(s.value,10);return n&&(isNaN(r)||s.value.indexOf(".")>=0)&&t.Translator.incorrectRdfDataType(s),r}toRdf(s,{datatype:n,dataFactory:r}){return r.literal(String(s),n||(s<=A0.MAX_INT&&s>=A0.MIN_INT?r.namedNode(A0.TYPES[0]):r.namedNode(A0.TYPES[1])))}};return e.TYPES=["http://www.w3.org/2001/XMLSchema#integer","http://www.w3.org/2001/XMLSchema#long","http://www.w3.org/2001/XMLSchema#int","http://www.w3.org/2001/XMLSchema#byte","http://www.w3.org/2001/XMLSchema#short","http://www.w3.org/2001/XMLSchema#negativeInteger","http://www.w3.org/2001/XMLSchema#nonNegativeInteger","http://www.w3.org/2001/XMLSchema#nonPositiveInteger","http://www.w3.org/2001/XMLSchema#positiveInteger","http://www.w3.org/2001/XMLSchema#unsignedByte","http://www.w3.org/2001/XMLSchema#unsignedInt","http://www.w3.org/2001/XMLSchema#unsignedLong","http://www.w3.org/2001/XMLSchema#unsignedShort"],e.MAX_INT=2147483647,e.MIN_INT=-2147483648,Wc.TypeHandlerNumberInteger=e,Wc}var Jc={},FI;function vG(){if(FI)return Jc;FI=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.TypeHandlerString=void 0;let t=class{fromRdf(u){return u.value}toRdf(u,{datatype:s,dataFactory:n}){return n.literal(u,s)}};return t.TYPES=["http://www.w3.org/2001/XMLSchema#string","http://www.w3.org/2001/XMLSchema#normalizedString","http://www.w3.org/2001/XMLSchema#anyURI","http://www.w3.org/2001/XMLSchema#base64Binary","http://www.w3.org/2001/XMLSchema#language","http://www.w3.org/2001/XMLSchema#Name","http://www.w3.org/2001/XMLSchema#NCName","http://www.w3.org/2001/XMLSchema#NMTOKEN","http://www.w3.org/2001/XMLSchema#token","http://www.w3.org/2001/XMLSchema#hexBinary","http://www.w3.org/1999/02/22-rdf-syntax-ns#langString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"],Jc.TypeHandlerString=t,Jc}var qI;function BI(){return qI||(qI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(bG(),t),u(gG(),t),u(mG(),t),u(_G(),t),u(vG(),t)}(L_)),L_}var M_={},UI;function wG(){return UI||(UI=1,Object.defineProperty(M_,"__esModule",{value:!0})),M_}var HI;function SG(){return HI||(HI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(p,y,b,m){m===void 0&&(m=b);var g=Object.getOwnPropertyDescriptor(y,b);(!g||("get"in g?!y.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return y[b]}}),Object.defineProperty(p,m,g)}:function(p,y,b,m){m===void 0&&(m=b),p[m]=y[b]}),u=I&&I.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&e(y,p,b)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const s=Et(),n=BI(),r=Ho();u(BI(),t),u(wG(),t),u(Ho(),t);const a=new s.DataFactory,o=new r.Translator;o.registerHandler(new n.TypeHandlerString,n.TypeHandlerString.TYPES.map(p=>a.namedNode(p)),["string"]),o.registerHandler(new n.TypeHandlerBoolean,[n.TypeHandlerBoolean.TYPE].map(p=>a.namedNode(p)),["boolean"]),o.registerHandler(new n.TypeHandlerNumberDouble,n.TypeHandlerNumberDouble.TYPES.map(p=>a.namedNode(p)),["number"]),o.registerHandler(new n.TypeHandlerNumberInteger,n.TypeHandlerNumberInteger.TYPES.map(p=>a.namedNode(p)),["number"]),o.registerHandler(new n.TypeHandlerDate,n.TypeHandlerDate.TYPES.map(p=>a.namedNode(p)),["object"]);function l(p,y){return o.fromRdf(p,y)}t.fromRdf=l;function c(p,y){return y&&"namedNode"in y&&(y={dataFactory:y}),y=y||{},y&&!y.dataFactory&&(y.dataFactory=a),o.toRdf(p,y)}t.toRdf=c;function d(p,y){return p.termType==="Literal"?l(p,y):p.value}t.getTermRaw=d;function h(){return o.getSupportedRdfDatatypes()}t.getSupportedRdfDatatypes=h;function f(){return o.getSupportedJavaScriptPrimitives()}t.getSupportedJavaScriptPrimitives=f}(j_)),j_}var F_={},Xc={},q_,$I;function Eq(){if($I)return q_;$I=1;var{Buffer:t}=Wi(),e={},u=e.LEFT_BRACE=1,s=e.RIGHT_BRACE=2,n=e.LEFT_BRACKET=3,r=e.RIGHT_BRACKET=4,a=e.COLON=5,o=e.COMMA=6,l=e.TRUE=7,c=e.FALSE=8,d=e.NULL=9,h=e.STRING=10,f=e.NUMBER=11,p=e.START=17,y=e.STOP=18,b=e.TRUE1=33,m=e.TRUE2=34,g=e.TRUE3=35,v=e.FALSE1=49,_=e.FALSE2=50,w=e.FALSE3=51,S=e.FALSE4=52,A=e.NULL1=65,D=e.NULL2=66,L=e.NULL3=67,E=e.NUMBER1=81,O=e.NUMBER3=83,P=e.STRING1=97,j=e.STRING2=98,U=e.STRING3=99,M=e.STRING4=100,q=e.STRING5=101,Q=e.STRING6=102,Z=e.VALUE=113,K=e.KEY=114,fe=e.OBJECT=129,X=e.ARRAY=130,he="\\".charCodeAt(0),xe="/".charCodeAt(0),ie="\b".charCodeAt(0),ae="\f".charCodeAt(0),Oe=` +`.charCodeAt(0),Ne="\r".charCodeAt(0),ge=" ".charCodeAt(0),de=64*1024;function oe(R){return t.alloc?t.alloc(R):new t(R)}function $(){this.tState=p,this.value=void 0,this.string=void 0,this.stringBuffer=oe(de),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Z,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:oe(2),3:oe(3),4:oe(4)},this.offset=-1}$.toknam=function(R){for(var T=Object.keys(e),x=0,B=T.length;x=de&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=R},N.appendStringBuf=function(R,T,x){var B=R.length;typeof T=="number"&&(typeof x=="number"?x<0?B=R.length-T+x:B=x-T:B=R.length-T),B<0&&(B=0),this.stringBufferOffset+B>de&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),R.copy(this.stringBuffer,this.stringBufferOffset,T,x),this.stringBufferOffset+=B},N.write=function(R){typeof R=="string"&&(R=new t(R));for(var T,x=0,B=R.length;x=48&&T<64)this.string=String.fromCharCode(T),this.tState=O;else if(!(T===32||T===9||T===10||T===13))return this.charError(R,x)}else if(this.tState===P)if(T=R[x],this.bytes_remaining>0){for(var k=0;k=128){if(T<=193||T>244)return this.onError(new Error("Invalid UTF-8 character at position "+x+" in state "+$.toknam(this.tState)));if(T>=194&&T<=223&&(this.bytes_in_sequence=2),T>=224&&T<=239&&(this.bytes_in_sequence=3),T>=240&&T<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+x>R.length){for(var V=0;V<=R.length-1-x;V++)this.temp_buffs[this.bytes_in_sequence][V]=R[x+V];this.bytes_remaining=x+this.bytes_in_sequence-R.length,x=R.length-1}else this.appendStringBuf(R,x,x+this.bytes_in_sequence),x=x+this.bytes_in_sequence-1}else if(T===34)this.tState=p,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(h,this.string),this.offset+=t.byteLength(this.string,"utf8")+1,this.string=void 0;else if(T===92)this.tState=j;else if(T>=32)this.appendStringChar(T);else return this.charError(R,x);else if(this.tState===j)if(T=R[x],T===34)this.appendStringChar(T),this.tState=P;else if(T===92)this.appendStringChar(he),this.tState=P;else if(T===47)this.appendStringChar(xe),this.tState=P;else if(T===98)this.appendStringChar(ie),this.tState=P;else if(T===102)this.appendStringChar(ae),this.tState=P;else if(T===110)this.appendStringChar(Oe),this.tState=P;else if(T===114)this.appendStringChar(Ne),this.tState=P;else if(T===116)this.appendStringChar(ge),this.tState=P;else if(T===117)this.unicode="",this.tState=U;else return this.charError(R,x);else if(this.tState===U||this.tState===M||this.tState===q||this.tState===Q)if(T=R[x],T>=48&&T<64||T>64&&T<=70||T>96&&T<=102){if(this.unicode+=String.fromCharCode(T),this.tState++===Q){var J=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&J>=56320&&J<57343+1?(this.appendStringBuf(new t(String.fromCharCode(this.highSurrogate,J))),this.highSurrogate=void 0):this.highSurrogate===void 0&&J>=55296&&J<56319+1?this.highSurrogate=J:(this.highSurrogate!==void 0&&(this.appendStringBuf(new t(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new t(String.fromCharCode(J)))),this.tState=P}}else return this.charError(R,x);else if(this.tState===E||this.tState===O)switch(T=R[x],T){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(T),this.tState=O;break;default:this.tState=p;var z=this.numberReviver(this.string);if(z)return z;this.offset+=this.string.length-1,this.string=void 0,x--;break}else if(this.tState===b)if(R[x]===114)this.tState=m;else return this.charError(R,x);else if(this.tState===m)if(R[x]===117)this.tState=g;else return this.charError(R,x);else if(this.tState===g)if(R[x]===101)this.tState=p,this.onToken(l,!0),this.offset+=3;else return this.charError(R,x);else if(this.tState===v)if(R[x]===97)this.tState=_;else return this.charError(R,x);else if(this.tState===_)if(R[x]===108)this.tState=w;else return this.charError(R,x);else if(this.tState===w)if(R[x]===115)this.tState=S;else return this.charError(R,x);else if(this.tState===S)if(R[x]===101)this.tState=p,this.onToken(c,!1),this.offset+=4;else return this.charError(R,x);else if(this.tState===A)if(R[x]===117)this.tState=D;else return this.charError(R,x);else if(this.tState===D)if(R[x]===108)this.tState=L;else return this.charError(R,x);else if(this.tState===L)if(R[x]===108)this.tState=p,this.onToken(d,null),this.offset+=3;else return this.charError(R,x)},N.onToken=function(R,T){},N.parseError=function(R,T){this.tState=y,this.onError(new Error("Unexpected "+$.toknam(R)+(T?"("+JSON.stringify(T)+")":"")+" in state "+$.toknam(this.state)))},N.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},N.pop=function(){var R=this.value,T=this.stack.pop();this.value=T.value,this.key=T.key,this.mode=T.mode,this.emit(R),this.mode||(this.state=Z)},N.emit=function(R){this.mode&&(this.state=o),this.onValue(R)},N.onValue=function(R){},N.onToken=function(R,T){if(this.state===Z)if(R===h||R===f||R===l||R===c||R===d)this.value&&(this.value[this.key]=T),this.emit(T);else if(R===u)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=K,this.mode=fe;else if(R===n)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=X,this.state=Z;else if(R===s)if(this.mode===fe)this.pop();else return this.parseError(R,T);else if(R===r)if(this.mode===X)this.pop();else return this.parseError(R,T);else return this.parseError(R,T);else if(this.state===K)if(R===h)this.key=T,this.state=a;else if(R===s)this.pop();else return this.parseError(R,T);else if(this.state===a)if(R===a)this.state=Z;else return this.parseError(R,T);else if(this.state===o)if(R===o)this.mode===X?(this.key++,this.state=Z):this.mode===fe&&(this.state=K);else if(R===r&&this.mode===X||R===s&&this.mode===fe)this.pop();else return this.parseError(R,T);else return this.parseError(R,T)},N.numberReviver=function(R){var T=Number(R);if(isNaN(T))return this.charError(buffer,i);R.match(/[0-9]+/)==R&&T.toString()!=R?this.onToken(h,R):this.onToken(f,T)},$.C=e,q_=$,q_}var QI;function TG(){if(QI)return Xc;QI=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.SparqlJsonParser=void 0;const t=Et(),e=Wt(),u=Eq();let s=class{constructor(r){var a;r=r||{},this.dataFactory=r.dataFactory||new t.DataFactory,this.prefixVariableQuestionMark=!!r.prefixVariableQuestionMark,this.suppressMissingStreamResultsError=(a=r.suppressMissingStreamResultsError)!==null&&a!==void 0?a:!0}parseJsonResults(r){return r.results.bindings.map(a=>this.parseJsonBindings(a))}parseJsonResultsStream(r){const a=h=>d.emit("error",h);r.on("error",a);const o=new u;o.onError=a;let l=!1,c=!1;o.onValue=h=>{if(o.key==="vars"&&o.stack.length===2&&o.stack[1].key==="head")d.emit("variables",h.map(f=>this.dataFactory.variable(f))),l=!0;else if(o.key==="results"&&o.stack.length===1)c=!0;else if(typeof o.key=="number"&&o.stack.length===3&&o.stack[1].key==="results"&&o.stack[2].key==="bindings")try{d.push(this.parseJsonBindings(h))}catch(f){d.emit("error",f)}else o.key==="metadata"&&o.stack.length===1&&d.emit("metadata",h)};const d=r.on("end",h=>{!c&&!this.suppressMissingStreamResultsError?d.emit("error",new Error("No valid SPARQL query results were found.")):l||d.emit("variables",[])}).pipe(new e.Transform({objectMode:!0,transform(h,f,p){o.write(h),p()}}));return d}parseJsonBindings(r){const a={};for(const o in r){const l=r[o];a[this.prefixVariableQuestionMark?"?"+o:o]=this.parseJsonValue(l)}return a}parseJsonValue(r){let a;switch(r.type){case"bnode":a=this.dataFactory.blankNode(r.value);break;case"literal":r["xml:lang"]?a=this.dataFactory.literal(r.value,r["xml:lang"]):r.datatype?a=this.dataFactory.literal(r.value,this.dataFactory.namedNode(r.datatype)):a=this.dataFactory.literal(r.value);break;case"typed-literal":a=this.dataFactory.literal(r.value,this.dataFactory.namedNode(r.datatype));break;case"triple":const o=r.value;if(!o||!o.subject||!o.predicate||!o.object)throw new Error("Invalid quoted triple: "+JSON.stringify(r));a=this.dataFactory.quad(this.parseJsonValue(o.subject),this.parseJsonValue(o.predicate),this.parseJsonValue(o.object));break;default:a=this.dataFactory.namedNode(r.value);break}return a}parseJsonBoolean(r){if("boolean"in r)return r.boolean;throw new Error("No valid ASK response was found.")}parseJsonBooleanStream(r){return new Promise((a,o)=>{const l=new u;l.onError=o,l.onValue=c=>{l.key==="boolean"&&typeof c=="boolean"&&l.stack.length===1&&a(c)},r.on("error",o).on("data",c=>l.write(c)).on("end",()=>o(new Error("No valid ASK response was found.")))})}};return Xc.SparqlJsonParser=s,Xc}var VI;function Oq(){return VI||(VI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(TG(),t)}(F_)),F_}var kI;function AG(){if(kI)return Qc;kI=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.Converter=void 0;const t=SG(),e=Oq();let u=class fa{constructor(n){n=n||{delimiter:"_"},n.prefixVariableQuestionMark=!1,this.delimiter=n.delimiter||"_",this.parser=new e.SparqlJsonParser(n),this.materializeRdfJsTerms=n.materializeRdfJsTerms}static addValueToTree(n,r,a,o,l,c){const d=r[0],h=o?o+c+d:d,f=l.singularizeVariables[h];if(r.length===1)f?n[d]||(n[d]=a):(n[d]||(n[d]=[]),n[d].push(a));else{let p;f?(n[d]||(n[d]={}),p=n[d]):(n[d]||(n[d]=[{}]),p=n[d][0]),fa.addValueToTree(p,r.slice(1),a,h,l,c)}}static mergeTrees(n,r){if(typeof n!=typeof r)throw new Error(`Two incompatible tree nodes were found: ${typeof n} and ${typeof r}`);if(Array.isArray(n)!==Array.isArray(r))throw new Error(`Two incompatible tree nodes were found: Array?${Array.isArray(n)} and Array?${Array.isArray(r)}`);if(typeof n=="object"&&typeof r=="object"){if(n.termType&&r.termType)return n.equals(r)?{valid:!0,result:n}:{valid:!1,result:n};if(Array.isArray(n)&&Array.isArray(r)){if(n.length>0){const a=[];let o=!1;for(const l of n){const c=fa.mergeTrees(l,r[0]);c.valid?(o=!0,a.push(c.result)):a.push(l)}if(o)return{valid:!0,result:a}}return{valid:!0,result:n.concat(r)}}else{const a={};for(const o in r)a[o]=r[o];for(const o in n)if(a[o]){const l=fa.mergeTrees(n[o],a[o]);if(l.valid)a[o]=l.result;else return{valid:!1,result:n}}else a[o]=n[o];return{valid:!0,result:a}}}else throw new Error(`Unmergable tree types: ${typeof n} and ${typeof r}`)}static materializeTree(n){if(n.termType)return(0,t.getTermRaw)(n);if(Array.isArray(n))return n.map(fa.materializeTree);{const r={};for(const a in n)r[a]=fa.materializeTree(n[a]);return r}}sparqlJsonResultsToTree(n,r){return this.bindingsToTree(this.parser.parseJsonResults(n),r||{singularizeVariables:{}})}bindingsToTree(n,r){const a=r&&r.singularizeVariables[""];let o=a?{}:[];for(const l of n){const c=a?{}:[{}];for(const d in l){const h=d.split(this.delimiter),f=l[d];fa.addValueToTree(a?c:c[0],h,f,"",r,this.delimiter)}o=fa.mergeTrees(o,c).result}return this.materializeRdfJsTerms&&(o=fa.materializeTree(o)),o}};return Qc.Converter=u,Qc}var zI;function EG(){return zI||(zI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(AG(),t)}(C_)),C_}var GI;function WI(){if(GI)return $c;GI=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.ActorQueryResultSerializeTree=void 0;const t=Gi(),e=Lt,u=ot,s=Wt(),n=EG();let r=class Rq extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(o){super(o)}static async bindingsStreamToGraphQl(o,l,c){const d=u.ActionContext.ensureActionContext(l),h=new n.Converter(c),f={singularizeVariables:d.get(e.KeysInitQuery.graphqlSingularizeVariables)??{}};return h.bindingsToTree(await o.map(p=>Object.fromEntries([...p].map(([y,b])=>[y.value,b]))).toArray(),f)}async testHandleChecked(o){if(o.type!=="bindings")throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(o,l){const c=new s.Readable;return c._read=()=>{c._read=()=>{},Rq.bindingsStreamToGraphQl(o.bindingsStream,o.context,{materializeRdfJsTerms:!0}).then(d=>{c.push(JSON.stringify(d,null," ")),c.push(null)}).catch(d=>c.emit("error",d))},{data:c}}};return $c.ActorQueryResultSerializeTree=r,$c}var JI;function OG(){return JI||(JI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(r,a,o,l){l===void 0&&(l=o);var c=Object.getOwnPropertyDescriptor(a,o);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[o]}}),Object.defineProperty(r,l,c)}:function(r,a,o,l){l===void 0&&(l=o),r[l]=a[o]}),u=I&&I.__exportStar||function(r,a){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(a,o)&&e(a,r,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindingsStreamToGraphQl=void 0;const s=WI(),{bindingsStreamToGraphQl:n}=s.ActorQueryResultSerializeTree;t.bindingsStreamToGraphQl=n,u(WI(),t)}(N_)),N_}var B_={},Kc={},XI;function RG(){if(XI)return Kc;XI=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.MediatorCombineUnion=void 0;const t=ot;let e=class extends t.Mediator{constructor(s){super(s),this.combiner=this.createCombiner()}async mediate(s){let n;try{n=this.publish(s)}catch{n=[]}if(this.filterErrors){const a=[];for(const o of n)try{await o.reply,a.push(o)}catch{}n=a}await Promise.all(n.map(({reply:a})=>a));const r=await Promise.all(n.map(a=>a.actor.runObservable(s)));return this.combiner(r)}mediateWith(){throw new Error("Method not supported.")}createCombiner(){return s=>{const n={};return n[this.field]={},[{}].concat(s.map(r=>r[this.field])).forEach(r=>{n[this.field]={...r,...n[this.field]}}),n}}};return Kc.MediatorCombineUnion=e,Kc}var KI;function Ra(){return KI||(KI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(RG(),t)}(B_)),B_}var U_={},Yc={},YI;function xG(){if(YI)return Yc;YI=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.MediatorNumber=void 0;const t=ot;let e=class extends t.Mediator{constructor(s){super(s),this.indexPicker=this.createIndexPicker()}createIndexPicker(){switch(this.type){case"min":return s=>s.reduce((n,r,a)=>{const o=this.getOrDefault(r[this.field],Number.POSITIVE_INFINITY);return o!==null&&(Number.isNaN(n[0])||n[0]>o)?[o,a]:n},[Number.NaN,-1])[1];case"max":return s=>s.reduce((n,r,a)=>{const o=this.getOrDefault(r[this.field],Number.NEGATIVE_INFINITY);return o!==null&&(Number.isNaN(n[0])||n[0]c);const a=[];if(this.ignoreErrors){const c={};c[this.field]=null,r=r.map(d=>d.catch(h=>(a.push(h),c)))}const o=await Promise.all(r),l=this.indexPicker(o);if(l<0)throw new Error(`All actors rejected their test in ${this.name} +${a.map(c=>c.message).join(` +`)}`);return n[l].actor}};return Yc.MediatorNumber=e,Yc}var ZI;function Zc(){return ZI||(ZI=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(xG(),t)}(U_)),U_}var H_={},el={},$_={},tl={},oa={},eP;function BT(){if(eP)return oa;eP=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.ActorDereferenceBase=oa.isHardError=oa.emptyReadable=void 0;const t=Lt,e=ot,u=Wt();function s(){const a=new u.Readable;return a.push(null),a}oa.emptyReadable=s;function n(a){return!a.get(t.KeysInitQuery.lenient)}oa.isHardError=n;let r=class extends e.Actor{constructor(o){super(o)}async dereferenceErrorHandler(o,l,c){if(n(o.context))throw l;return this.logWarn(o.context,l.message),{...c,data:s()}}};return oa.ActorDereferenceBase=r,oa}var tP;function IG(){if(tP)return tl;tP=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.ActorDereference=void 0;const t=BT();let e=class extends t.ActorDereferenceBase{constructor(s){super(s)}async handleDereferenceErrors(s,n,r,a=0){return this.dereferenceErrorHandler(s,n,{url:s.url,exists:!1,headers:r,requestTime:a})}};return tl.ActorDereference=e,tl}var ms={},rP;function PG(){if(rP)return ms;rP=1,Object.defineProperty(ms,"__esModule",{value:!0}),ms.ActorDereferenceParse=ms.getMediaTypeFromExtension=void 0;const t=Wt(),e=BT();function u(n,r){const a=n.lastIndexOf(".");return a>=0&&(r==null?void 0:r[n.slice(a+1)])||""}ms.getMediaTypeFromExtension=u;let s=class extends e.ActorDereferenceBase{constructor(r){super(r)}async test(r){return!0}handleDereferenceStreamErrors(r,a){return(0,e.isHardError)(r.context)||(a.on("error",o=>{this.logWarn(r.context,o.message,()=>({url:r.url})),a.push(null)}),a=a.pipe(new t.PassThrough({objectMode:!0}))),a}async run(r){var c,d;const{context:a}=r,o=await this.mediatorDereference.mediate({...r,mediaTypes:async()=>{var h,f;return(f=await((h=this.mediatorParseMediatypes)==null?void 0:h.mediate({context:a,mediaTypes:!0})))==null?void 0:f.mediaTypes}});let l;try{l=(await this.mediatorParse.mediate({context:a,handle:{context:a,...o,metadata:await this.getMetadata(o)},handleMediaType:o.mediaType||u(o.url,this.mediaMappings)||r.mediaType})).handle,l.data=this.handleDereferenceStreamErrors(r,l.data)}catch(h){await((d=(c=o.data).close)==null?void 0:d.call(c)),l=await this.dereferenceErrorHandler(r,h,{})}return{...o,...l}}};return ms.ActorDereferenceParse=s,ms}var nP;function UT(){return nP||(nP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(IG(),t),u(PG(),t),u(BT(),t)}($_)),$_}var iP;function DG(){if(iP)return el;iP=1,Object.defineProperty(el,"__esModule",{value:!0}),el.ActorDereferenceFallback=void 0;const t=UT();let e=class extends t.ActorDereference{constructor(s){super(s)}async test(s){return!0}async run(s){return this.handleDereferenceErrors(s,new Error(`Could not dereference '${s.url}'`))}};return el.ActorDereferenceFallback=e,el}var aP;function NG(){return aP||(aP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(DG(),t)}(H_)),H_}var Q_={},rl={},V_={},nl={},sP;function CG(){if(sP)return nl;sP=1,Object.defineProperty(nl,"__esModule",{value:!0}),nl.ActorRdfJoinEntriesSort=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return nl.ActorRdfJoinEntriesSort=e,nl}var oP;function jG(){return oP||(oP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(CG(),t)}(V_)),V_}var uP;function LG(){if(uP)return rl;uP=1,Object.defineProperty(rl,"__esModule",{value:!0}),rl.ActorRdfJoinEntriesSortCardinality=void 0;const t=jG();let e=class extends t.ActorRdfJoinEntriesSort{constructor(s){super(s)}async test(s){return!0}async run(s){return{entries:[...s.entries].sort((r,a)=>r.metadata.cardinality.value-a.metadata.cardinality.value)}}};return rl.ActorRdfJoinEntriesSortCardinality=e,rl}var cP;function MG(){return cP||(cP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(LG(),t)}(Q_)),Q_}var k_={},_s={},z_={},il={},lP;function FG(){if(lP)return il;lP=1,Object.defineProperty(il,"__esModule",{value:!0}),il.ActorRdfJoinSelectivity=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return il.ActorRdfJoinSelectivity=e,il}var dP;function qG(){return dP||(dP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(FG(),t)}(z_)),z_}var fP;function BG(){if(fP)return _s;fP=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.JoinTypes=_s.ActorRdfJoinSelectivityVariableCounting=void 0;const t=qG(),e=Ot();let u=class Ns extends t.ActorRdfJoinSelectivity{constructor(r){super(r)}async test(r){return{accuracy:.5}}static getPatternCost(r){let a=1;return r.subject.termType==="Variable"&&(a+=4),(r.predicate.termType==="Variable"||r.type===e.Algebra.types.PATH)&&(a+=1),r.object.termType==="Variable"&&(a+=2),r.graph.termType==="Variable"&&(a+=1),a/9}static getJoinTypes(r,a){const o=[];return r.subject.termType==="Variable"?(r.subject.equals(a.subject)&&o.push(s.unboundSS),a.type==="pattern"&&r.subject.equals(a.predicate)&&o.push(s.unboundSP),r.subject.equals(a.object)&&o.push(s.unboundSO),r.subject.equals(a.graph)&&o.push(s.unboundSG)):(r.subject.equals(a.subject)&&o.push(s.boundSS),a.type==="pattern"&&r.subject.equals(a.predicate)&&o.push(s.boundSP),r.subject.equals(a.object)&&o.push(s.boundSO),r.subject.equals(a.graph)&&o.push(s.boundSG)),r.type==="pattern"&&(r.predicate.termType==="Variable"?(r.predicate.equals(a.subject)&&o.push(s.unboundPS),a.type==="pattern"&&r.predicate.equals(a.predicate)&&o.push(s.unboundPP),r.predicate.equals(a.object)&&o.push(s.unboundPO),r.predicate.equals(a.graph)&&o.push(s.unboundPG)):(r.predicate.equals(a.subject)&&o.push(s.boundPS),a.type==="pattern"&&r.predicate.equals(a.predicate)&&o.push(s.boundPP),r.predicate.equals(a.object)&&o.push(s.boundPO),r.predicate.equals(a.graph)&&o.push(s.boundPG))),r.object.termType==="Variable"?(r.object.equals(a.subject)&&o.push(s.unboundOS),a.type==="pattern"&&r.object.equals(a.predicate)&&o.push(s.unboundOP),r.object.equals(a.object)&&o.push(s.unboundOO),r.object.equals(a.graph)&&o.push(s.unboundOG)):(r.object.equals(a.subject)&&o.push(s.boundOS),a.type==="pattern"&&r.object.equals(a.predicate)&&o.push(s.boundOP),r.object.equals(a.object)&&o.push(s.boundOO),r.object.equals(a.graph)&&o.push(s.boundOG)),r.graph.termType==="Variable"?(r.graph.equals(a.subject)&&o.push(s.unboundGS),a.type==="pattern"&&r.graph.equals(a.predicate)&&o.push(s.unboundGP),r.graph.equals(a.object)&&o.push(s.unboundGO),r.graph.equals(a.graph)&&o.push(s.unboundGG)):(r.graph.equals(a.subject)&&o.push(s.boundGS),a.type==="pattern"&&r.graph.equals(a.predicate)&&o.push(s.boundGP),r.graph.equals(a.object)&&o.push(s.boundGO),r.graph.equals(a.graph)&&o.push(s.boundGG)),o}static getOperationsPairwiseJoinCost(r,a){let o=Ns.MAX_PAIRWISE_COST;for(const l of Ns.getJoinTypes(r,a))switch(l){case s.boundSS:o-=2*2;break;case s.boundSP:o-=3*2;break;case s.boundSO:o-=1*2;break;case s.boundSG:o-=3*2;break;case s.boundPS:o-=3*2;break;case s.boundPP:return 1;case s.boundPO:o-=3*2;break;case s.boundPG:o-=3*2;break;case s.boundOS:o-=1*2;break;case s.boundOP:o-=3*2;break;case s.boundOO:o-=1*2;break;case s.boundOG:o-=3*2;break;case s.boundGS:o-=3*2;break;case s.boundGP:o-=3*2;break;case s.boundGO:o-=3*2;break;case s.boundGG:o-=3*2;break;case s.unboundSS:o-=2;break;case s.unboundSP:o-=3;break;case s.unboundSO:o-=1;break;case s.unboundSG:o-=3;break;case s.unboundPS:o-=3;break;case s.unboundPP:o-=3;break;case s.unboundPO:o-=3;break;case s.unboundPG:o-=3;break;case s.unboundOS:o-=1;break;case s.unboundOP:o-=3;break;case s.unboundOO:o-=1;break;case s.unboundOG:o-=3;break;case s.unboundGS:o-=3;break;case s.unboundGP:o-=3;break;case s.unboundGO:o-=3;break;case s.unboundGG:o-=3;break}return o/Ns.MAX_PAIRWISE_COST}static getOperationsJoinCost(r){const a=[];for(const c of r)e.Util.recurseOperation(c,{[e.Algebra.types.PATTERN](d){return a.push(d),!1},[e.Algebra.types.PATH](d){return a.push(d),!1}});let o=0,l=0;for(const c of a)for(const d of a)c!==d&&(o+=Ns.getOperationsPairwiseJoinCost(c,d),l++);return l===0?1:o/l*a.reduce((c,d)=>c*Ns.getPatternCost(d),1)}async run(r){return r.entries.length<=1?{selectivity:1}:{selectivity:Ns.getOperationsJoinCost(r.entries.map(a=>a.operation))}}};_s.ActorRdfJoinSelectivityVariableCounting=u,u.MAX_PAIRWISE_COST=41*2;var s;return function(n){n[n.boundSS=0]="boundSS",n[n.boundSP=1]="boundSP",n[n.boundSO=2]="boundSO",n[n.boundSG=3]="boundSG",n[n.boundPS=4]="boundPS",n[n.boundPP=5]="boundPP",n[n.boundPO=6]="boundPO",n[n.boundPG=7]="boundPG",n[n.boundOS=8]="boundOS",n[n.boundOP=9]="boundOP",n[n.boundOO=10]="boundOO",n[n.boundOG=11]="boundOG",n[n.boundGS=12]="boundGS",n[n.boundGP=13]="boundGP",n[n.boundGO=14]="boundGO",n[n.boundGG=15]="boundGG",n[n.unboundSS=16]="unboundSS",n[n.unboundSP=17]="unboundSP",n[n.unboundSO=18]="unboundSO",n[n.unboundSG=19]="unboundSG",n[n.unboundPS=20]="unboundPS",n[n.unboundPP=21]="unboundPP",n[n.unboundPO=22]="unboundPO",n[n.unboundPG=23]="unboundPG",n[n.unboundOS=24]="unboundOS",n[n.unboundOP=25]="unboundOP",n[n.unboundOO=26]="unboundOO",n[n.unboundOG=27]="unboundOG",n[n.unboundGS=28]="unboundGS",n[n.unboundGP=29]="unboundGP",n[n.unboundGO=30]="unboundGO",n[n.unboundGG=31]="unboundGG"}(s||(_s.JoinTypes=s={})),_s}var hP;function UG(){return hP||(hP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(BG(),t)}(k_)),k_}var G_={},al={},W_={},sl={},pP;function HG(){if(pP)return sl;pP=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.ActorRdfMetadata=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return sl.ActorRdfMetadata=e,sl}var yP;function xq(){return yP||(yP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(HG(),t)}(W_)),W_}var bP;function $G(){if(bP)return al;bP=1,Object.defineProperty(al,"__esModule",{value:!0}),al.ActorRdfMetadataPrimaryTopic=void 0;const t=xq(),e=Wt();let u=class extends t.ActorRdfMetadata{constructor(n){super(n)}async test(n){if(n.triples)throw new Error("This actor only supports non-triple quad streams.");return!0}async run(n){const r=new e.Readable({objectMode:!0}),a=new e.Readable({objectMode:!0}),o=()=>{r._read=a._read=()=>{},n.quads.on("error",h=>{r.emit("error",h),a.emit("error",h)});const l={};let c;const d={};n.quads.on("data",h=>{h.predicate.value==="http://rdfs.org/ns/void#subset"&&h.object.value===n.url?c=h.subject.value:h.predicate.value==="http://xmlns.com/foaf/0.1/primaryTopic"&&(d[h.object.value]=h.subject.value);let f=l[h.graph.value];f||(f=l[h.graph.value]=[]),f.push(h)}),n.quads.on("end",()=>{const h=c?d[c]:void 0;for(const f in l)if(f===h){for(const p of l[f])a.push(p);if(this.metadataToData)for(const p of l[f])r.push(p)}else{for(const p of l[f])r.push(p);if(!h&&this.dataToMetadataOnInvalidMetadataGraph)for(const p of l[f])a.push(p)}r.push(null),a.push(null)})};return r._read=a._read=()=>{o()},{data:r,metadata:a}}};return al.ActorRdfMetadataPrimaryTopic=u,al}var gP;function QG(){return gP||(gP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u($G(),t)}(G_)),G_}var J_={},ol={},mP;function VG(){if(mP)return ol;mP=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.ActorRdfMetadataAll=void 0;const t=xq(),e=Wt();let u=class extends t.ActorRdfMetadata{constructor(n){super(n)}async test(n){return!0}async run(n){const r=new e.Readable({objectMode:!0}),a=new e.Readable({objectMode:!0});n.quads.on("error",l=>{r.emit("error",l),a.emit("error",l)}),n.quads.on("end",()=>{r.push(null),a.push(null)});const o=r._read=a._read=l=>{for(;l>0;){const c=n.quads.read();if(c===null)return n.quads.once("readable",()=>o(l));l--,r.push(c),a.push(c)}};return{data:r,metadata:a}}};return ol.ActorRdfMetadataAll=u,ol}var _P;function kG(){return _P||(_P=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(VG(),t)}(J_)),J_}var X_={},ul={},K_={},cl={},vP;function zG(){if(vP)return cl;vP=1,Object.defineProperty(cl,"__esModule",{value:!0}),cl.ActorRdfMetadataAccumulate=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return cl.ActorRdfMetadataAccumulate=e,cl}var wP;function Hb(){return wP||(wP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(zG(),t)}(K_)),K_}var SP;function GG(){if(SP)return ul;SP=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.ActorRdfMetadataAccumulateCanContainUndefs=void 0;const t=Hb();let e=class extends t.ActorRdfMetadataAccumulate{constructor(s){super(s)}async test(s){return!0}async run(s){if(s.mode==="initialize")return{metadata:{canContainUndefs:!1}};let n=s.accumulatedMetadata.canContainUndefs;return s.appendingMetadata.canContainUndefs&&(n=!0),{metadata:{canContainUndefs:n}}}};return ul.ActorRdfMetadataAccumulateCanContainUndefs=e,ul}var TP;function WG(){return TP||(TP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(GG(),t)}(X_)),X_}var Y_={},ll={},AP;function JG(){if(AP)return ll;AP=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.ActorRdfMetadataAccumulateCardinality=void 0;const t=Hb();let e=class extends t.ActorRdfMetadataAccumulate{constructor(s){super(s)}async test(s){return!0}async run(s){if(s.mode==="initialize")return{metadata:{cardinality:{type:"exact",value:0}}};const n={...s.accumulatedMetadata.cardinality};if(n.dataset)if(s.appendingMetadata.cardinality.dataset){if(n.dataset!==s.appendingMetadata.cardinality.dataset&&s.appendingMetadata.subsetOf===n.dataset)return{metadata:{cardinality:s.appendingMetadata.cardinality}};if(n.dataset===s.appendingMetadata.cardinality.dataset)return{metadata:{cardinality:n}};delete n.dataset}else return{metadata:{cardinality:n}};return!s.appendingMetadata.cardinality||!Number.isFinite(s.appendingMetadata.cardinality.value)?(n.type="estimate",n.value=Number.POSITIVE_INFINITY):(s.appendingMetadata.cardinality.type==="estimate"&&(n.type="estimate"),n.value+=s.appendingMetadata.cardinality.value),{metadata:{cardinality:n}}}};return ll.ActorRdfMetadataAccumulateCardinality=e,ll}var EP;function XG(){return EP||(EP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(JG(),t)}(Y_)),Y_}var Z_={},dl={},OP;function KG(){if(OP)return dl;OP=1,Object.defineProperty(dl,"__esModule",{value:!0}),dl.ActorRdfMetadataAccumulatePageSize=void 0;const t=Hb();let e=class extends t.ActorRdfMetadataAccumulate{constructor(s){super(s)}async test(s){return!0}async run(s){return s.mode==="initialize"?{metadata:{}}:{metadata:{..."pageSize"in s.accumulatedMetadata||"pageSize"in s.appendingMetadata?{pageSize:(s.accumulatedMetadata.pageSize??0)+(s.appendingMetadata.pageSize??0)}:{}}}}};return dl.ActorRdfMetadataAccumulatePageSize=e,dl}var RP;function YG(){return RP||(RP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(KG(),t)}(Z_)),Z_}var ev={},fl={},xP;function ZG(){if(xP)return fl;xP=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.ActorRdfMetadataAccumulateRequestTime=void 0;const t=Hb();let e=class extends t.ActorRdfMetadataAccumulate{constructor(s){super(s)}async test(s){return!0}async run(s){return s.mode==="initialize"?{metadata:{}}:{metadata:{..."requestTime"in s.accumulatedMetadata||"requestTime"in s.appendingMetadata?{requestTime:(s.accumulatedMetadata.requestTime??0)+(s.appendingMetadata.requestTime??0)}:{}}}}};return fl.ActorRdfMetadataAccumulateRequestTime=e,fl}var IP;function eW(){return IP||(IP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ZG(),t)}(ev)),ev}var tv={},hl={},rv={},pl={},PP;function tW(){if(PP)return pl;PP=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.ActorRdfMetadataExtract=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return pl.ActorRdfMetadataExtract=e,pl}var DP;function es(){return DP||(DP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(tW(),t)}(rv)),rv}var nv={exports:{}},NP;function rW(){return NP||(NP=1,function(t){(function(e){var u=function(){function y(b){this.options=b}return y.prototype.toString=function(){return JSON&&JSON.stringify?JSON.stringify(this.options):this.options},y}(),s=function(){function y(D){return Object.prototype.toString.apply(D)==="[object Array]"}function b(D){return Object.prototype.toString.apply(D)==="[object String]"}function m(D){return Object.prototype.toString.apply(D)==="[object Number]"}function g(D){return Object.prototype.toString.apply(D)==="[object Boolean]"}function v(D,L){var E="",O=!0,P;for(P=0;P="a"&&g<="z"||g>="A"&&g<="Z"}function b(g){return g>="0"&&g<="9"}function m(g){return b(g)||g>="a"&&g<="f"||g>="A"&&g<="F"}return{isAlpha:y,isDigit:b,isHexDigit:m}}(),r=function(){var y={encode:function(w){return unescape(encodeURIComponent(w))},numBytes:function(w){return w<=127?1:194<=w&&w<=223?2:224<=w&&w<=239?3:240<=w&&w<=244?4:0},isValidFollowingCharCode:function(w){return 128<=w&&w<=191}};function b(w){var S="",A=y.encode(w),D,L;for(L=0;L1||a.isReserved(w)||a.isUnreserved(w)?w:r.encodeCharacter(w)}function g(v){var _="",w,S="";for(w=0;w1?_+=S:_+=a.isReserved(S)||a.isUnreserved(S)?S:r.encodeCharacter(S);return _}return{encode:y,encodePassReserved:b,encodeLiteral:g,encodeLiteralCharacter:m}}(),l=function(){var y={};function b(m){y[m]={symbol:m,separator:m==="?"?"&":m===""||m==="+"||m==="#"?",":m,named:m===";"||m==="&"||m==="?",ifEmpty:m==="&"||m==="?"?"=":"",first:m==="+"?"":m,encode:m==="+"||m==="#"?o.encodePassReserved:o.encode,toString:function(){return this.symbol}}}return b(""),b("+"),b("#"),b("."),b("/"),b(";"),b("?"),b("&"),{valueOf:function(m){return y[m]?y[m]:"=,!@|".indexOf(m)>=0?null:y[""]}}}();function c(y){var b;if(y==null)return!1;if(s.isArray(y))return y.length>0;if(typeof y=="string"||typeof y=="number"||typeof y=="boolean")return!0;for(b in y)if(y.hasOwnProperty(b)&&c(y[b]))return!0;return!1}var d=function(){function y(b){this.literal=o.encodeLiteral(b)}return y.prototype.expand=function(){return this.literal},y.prototype.toString=y.prototype.expand,y}(),h=function(){function y(m){var g,v=[],_=null,w=null,S=null,A,D="";function L(){var O=m.substring(w,A);if(O.length===0)throw new u({expressionText:m,message:"a varname must be specified",position:A});_={varname:O,exploded:!1,maxLength:null},w=null}function E(){if(S===A)throw new u({expressionText:m,message:"after a ':' you have to specify the length",position:A});_.maxLength=parseInt(m.substring(S,A),10),S=null}for(g=function(O){var P=l.valueOf(O);if(P===null)throw new u({expressionText:m,message:"illegal use of reserved operator",position:A,operator:O});return P}(m.charAt(0)),A=g.symbol.length,w=A;A=4)throw new u({expressionText:m,message:"A :prefix must have max 4 digits",position:A});continue}E()}if(D===":"){if(_.maxLength!==null)throw new u({expressionText:m,message:"only one :maxLength is allowed per varspec",position:A});if(_.exploded)throw new u({expressionText:m,message:"an exploeded varspec MUST NOT be varspeced",position:A});S=A+1;continue}if(D==="*"){if(_===null)throw new u({expressionText:m,message:"exploded without varspec",position:A});if(_.exploded)throw new u({expressionText:m,message:"exploded twice",position:A});if(_.maxLength)throw new u({expressionText:m,message:"an explode (*) MUST NOT follow to a prefix",position:A});_.exploded=!0;continue}if(D===","){v.push(_),_=null,w=A+1;continue}throw new u({expressionText:m,message:"illegal character",character:D,position:A})}return w!==null&&L(),S!==null&&E(),v.push(_),new f(m,g,v)}function b(m){var g,v,_=[],w=null,S=0;for(g=0;g{const o=r[a]||r[`${a}Page`],l=o&&o[n];return[a,l&&l.length>0?[l[0]]:[]]}))}parseUriTemplateCached(n){const r=this.parsedUriTemplateCache[n];return r||(this.parsedUriTemplateCache[n]=(0,e.parse)(n))}getSearchForms(n){const r=n.search,a=[];if(r)for(const o in r)for(const l of r[o]){const c=(n.template||{})[l]||[];if(c.length!==1)throw new Error(`Expected 1 hydra:template for ${l}`);const d=c[0],h=this.parseUriTemplateCached(d),f=Object.fromEntries(((n.mapping||{})[l]||[]).map(y=>{const b=((n.variable||{})[y]||[])[0],m=((n.property||{})[y]||[])[0];if(!b)throw new Error(`Expected a hydra:variable for ${y}`);if(!m)throw new Error(`Expected a hydra:property for ${y}`);return[m,b]})),p=y=>h.expand(Object.fromEntries(Object.keys(y).map(b=>[f[b],y[b]])));a.push({dataset:o,template:d,mappings:f,getUri:p})}return{values:a}}getHydraProperties(n){return new Promise((r,a)=>{n.on("error",a);const o={};n.on("data",l=>{if(l.predicate.value.startsWith(F1.HYDRA)){const c=l.predicate.value.slice(F1.HYDRA.length),d=o[c]||(o[c]={});(d[l.subject.value]||(d[l.subject.value]=[])).push(l.object.value)}}),n.on("end",()=>r(o))})}async run(n){const r={},a=await this.getHydraProperties(n.metadata);return Object.assign(r,this.getLinks(n.url,a)),r.searchForms=this.getSearchForms(a),{metadata:r}}};return hl.ActorRdfMetadataExtractHydraControls=u,u.HYDRA="http://www.w3.org/ns/hydra/core#",u.LINK_TYPES=["first","next","previous","last"],hl}var jP;function iW(){return jP||(jP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(nW(),t)}(tv)),tv}var iv={},yl={},LP;function aW(){if(LP)return yl;LP=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.ActorRdfMetadataExtractHydraCount=void 0;const t=es();let e=class extends t.ActorRdfMetadataExtract{constructor(s){super(s)}async test(s){return!0}run(s){return new Promise((n,r)=>{s.metadata.on("error",r),s.metadata.on("data",a=>{this.predicates.includes(a.predicate.value)&&n({metadata:{cardinality:{type:"estimate",value:Number.parseInt(a.object.value,10),dataset:a.subject.value}}})}),s.metadata.on("end",()=>{n({metadata:{cardinality:{type:"estimate",value:0}}})})})}};return yl.ActorRdfMetadataExtractHydraCount=e,yl}var MP;function sW(){return MP||(MP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(aW(),t)}(iv)),iv}var av={},bl={},FP;function oW(){if(FP)return bl;FP=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.ActorRdfMetadataExtractHydraPagesize=void 0;const t=es();let e=class extends t.ActorRdfMetadataExtract{constructor(s){super(s)}async test(s){return!0}async run(s){return new Promise((n,r)=>{s.metadata.on("error",r),s.metadata.on("data",a=>{this.predicates.includes(a.predicate.value)&&n({metadata:{pageSize:Number.parseInt(a.object.value,10)}})}),s.metadata.on("end",()=>{n({metadata:{}})})})}};return bl.ActorRdfMetadataExtractHydraPagesize=e,bl}var qP;function uW(){return qP||(qP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(oW(),t)}(av)),av}var sv={},gl={},BP;function cW(){if(BP)return gl;BP=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.ActorRdfMetadataExtractRequestTime=void 0;const t=es();let e=class extends t.ActorRdfMetadataExtract{constructor(s){super(s)}async test(s){return!0}async run(s){return{metadata:{requestTime:s.requestTime}}}};return gl.ActorRdfMetadataExtractRequestTime=e,gl}var UP;function lW(){return UP||(UP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(cW(),t)}(sv)),sv}var ov={},ml={},HP;function dW(){if(HP)return ml;HP=1,Object.defineProperty(ml,"__esModule",{value:!0}),ml.ActorRdfMetadataExtractAllowHttpMethods=void 0;const t=es();let e=class extends t.ActorRdfMetadataExtract{constructor(s){super(s)}async test(s){return!0}async run(s){var r,a;const n={};return(r=s.headers)!=null&&r.get("allow")&&(n.allowHttpMethods=(a=s.headers.get("allow"))==null?void 0:a.split(/, */u)),{metadata:n}}};return ml.ActorRdfMetadataExtractAllowHttpMethods=e,ml}var $P;function fW(){return $P||($P=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(dW(),t)}(ov)),ov}var uv={},_l={},QP;function hW(){if(QP)return _l;QP=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.ActorRdfMetadataExtractPutAccepted=void 0;const t=es();let e=class extends t.ActorRdfMetadataExtract{constructor(s){super(s)}async test(s){return!0}async run(s){var r,a;const n={};return(r=s.headers)!=null&&r.get("accept-put")&&(n.putAccepted=(a=s.headers.get("accept-put"))==null?void 0:a.split(/, */u)),{metadata:n}}};return _l.ActorRdfMetadataExtractPutAccepted=e,_l}var VP;function pW(){return VP||(VP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(hW(),t)}(uv)),uv}var cv={},vl={},kP;function yW(){if(kP)return vl;kP=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.ActorRdfMetadataExtractPatchSparqlUpdate=void 0;const t=es();let e=class extends t.ActorRdfMetadataExtract{constructor(s){super(s)}async test(s){return!0}async run(s){var r,a,o,l;const n={};return(((a=(r=s.headers)==null?void 0:r.get("accept-patch"))==null?void 0:a.includes("application/sparql-update"))??((l=(o=s.headers)==null?void 0:o.get("ms-author-via"))==null?void 0:l.includes("SPARQL")))&&(n.patchSparqlUpdate=!0),{metadata:n}}};return vl.ActorRdfMetadataExtractPatchSparqlUpdate=e,vl}var zP;function bW(){return zP||(zP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(yW(),t)}(cv)),cv}var lv={},wl={},GP;function gW(){if(GP)return wl;GP=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.ActorRdfMetadataExtractSparqlService=void 0;const t=es(),e=Pi();let u=class extends t.ActorRdfMetadataExtract{constructor(n){super(n)}async test(n){return!0}async run(n){return new Promise((r,a)=>{n.metadata.on("error",a);const o={};n.metadata.on("data",l=>{l.predicate.value==="http://www.w3.org/ns/sparql-service-description#endpoint"&&(l.subject.termType==="BlankNode"||l.subject.value===n.url)?(o.sparqlService=l.object.termType==="Literal"?(0,e.resolve)(l.object.value,n.url):l.object.value,this.inferHttpsEndpoint&&n.url.startsWith("https")&&!o.sparqlService.startsWith("https")&&(o.sparqlService=o.sparqlService.replace("http:","https:"))):l.predicate.value==="http://www.w3.org/ns/sparql-service-description#defaultGraph"&&(o.defaultGraph=l.object.value)}),n.metadata.on("end",()=>{r({metadata:o})})})}};return wl.ActorRdfMetadataExtractSparqlService=u,wl}var WP;function mW(){return WP||(WP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(gW(),t)}(lv)),lv}var dv={},Sl={},fv={},Tl={},JP;function _W(){if(JP)return Tl;JP=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.ActorRdfParse=void 0;const t=nu();let e=class extends t.ActorAbstractMediaTyped{constructor(s){super(s)}};return Tl.ActorRdfParse=e,Tl}var Al={},XP;function vW(){if(XP)return Al;XP=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.ActorRdfParseFixedMediaTypes=void 0;const t=nu();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(s){super(s)}async testHandleChecked(s){return!0}};return Al.ActorRdfParseFixedMediaTypes=e,Al}var KP;function au(){return KP||(KP=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(_W(),t),u(vW(),t)}(fv)),fv}var wW=Wi();/*! queue-microtask. MIT License. Feross Aboukhadijeh */let YP;var SW=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:I):t=>(YP||(YP=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0));const TW=Z$(SW),El="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Ol="http://www.w3.org/2001/XMLSchema#",hv="http://www.w3.org/2000/10/swap/",cn={xsd:{decimal:`${Ol}decimal`,boolean:`${Ol}boolean`,double:`${Ol}double`,integer:`${Ol}integer`,string:`${Ol}string`},rdf:{type:`${El}type`,nil:`${El}nil`,first:`${El}first`,rest:`${El}rest`,langString:`${El}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${hv}reify#forSome`,forAll:`${hv}reify#forAll`},log:{implies:`${hv}log#implies`}},{xsd:c1}=cn,AW=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,ZP={"\\":"\\","'":"'",'"':'"',n:` +`,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},EW=/[\x00-\x20<>\\"\{\}\|\^\`]/,OW={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},RW=/$0^/;class HT{constructor(e){if(this._iri=/^<((?:[^ <>{}\\]|\\[uU])+)>[ \t]*/,this._unescapedIri=/^<([^\x00-\x20<>\\"\{\}\|\^\`]*)>[ \t]*/,this._simpleQuotedString=/^"([^"\\\r\n]*)"(?=[^"])/,this._simpleApostropheString=/^'([^'\\\r\n]*)'(?=[^'])/,this._langcode=/^@([a-z]+(?:-[a-z0-9]+)*)(?=[^a-z0-9\-])/i,this._prefix=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:(?=[#\s<])/,this._prefixed=/^((?:[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)?:((?:(?:[0-:A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])(?:(?:[\.\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~])*(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff]|%[0-9a-fA-F]{2}|\\[!#-\/;=?\-@_~]))?)?)(?:[ \t]+|(?=\.?[,;!\^\s#()\[\]\{\}"'<>]))/,this._variable=/^\?(?:(?:[A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:[\-0-:A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?=[.,;!\^\s#()\[\]\{\}"'<>])/,this._blank=/^_:((?:[0-9A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])(?:\.?[\-0-9A-Z_a-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c\u200d\u203f\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]|[\ud800-\udb7f][\udc00-\udfff])*)(?:[ \t]+|(?=\.?[,;:\s#()\[\]\{\}"'<>]))/,this._number=/^[\-+]?(?:(\d+\.\d*|\.?\d+)[eE][\-+]?|\d*(\.)?)\d+(?=\.?[,;:\s#()\[\]\{\}"'<>])/,this._boolean=/^(?:true|false)(?=[.,;\s#()\[\]\{\}"'<>])/,this._keyword=/^@[a-z]+(?=[\s#<:])/i,this._sparqlKeyword=/^(?:PREFIX|BASE|GRAPH)(?=[\s#<])/i,this._shortPredicates=/^a(?=[\s#()\[\]\{\}"'<>])/,this._newline=/^[ \t]*(?:#[^\n\r]*)?(?:\r\n|\n|\r)[ \t]*/,this._comment=/#([^\n\r]*)/,this._whitespace=/^[ \t]+/,this._endOfFile=/^(?:#[^\n\r]*)?$/,e=e||{},this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const u in this)!(u in OW)&&this[u]instanceof RegExp&&(this[u]=RW)}else this._n3Mode=e.n3!==!1;this._comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,u){let s=this._input,n=s.length;for(;;){let o,l;for(;o=this._newline.exec(s);)this._comments&&(l=this._comment.exec(o[0]))&&r("comment",l[1],"",this._line,o[0].length),s=s.substr(o[0].length,s.length),n=s.length,this._line++;if(!o&&(o=this._whitespace.exec(s))&&(s=s.substr(o[0].length,s.length)),this._endOfFile.test(s))return u&&(this._comments&&(l=this._comment.exec(s))&&r("comment",l[1],"",this._line,s.length),s=null,r("eof","","",this._line,0)),this._input=s;const c=this._line,d=s[0];let h="",f="",p="",y=null,b=0,m=!1;switch(d){case"^":if(s.length<3)break;if(s[1]==="^"){if(this._previousMarker="^^",s=s.substr(2),s[0]!=="<"){m=!0;break}}else{this._n3Mode&&(b=1,h="^");break}case"<":if(y=this._unescapedIri.exec(s))h="IRI",f=y[1];else if(y=this._iri.exec(s)){if(f=this._unescape(y[1]),f===null||EW.test(f))return a(this);h="IRI"}else s.length>1&&s[1]==="<"?(h="<<",b=2):this._n3Mode&&s.length>1&&s[1]==="="&&(h="inverse",b=2,f=">");break;case">":s.length>1&&s[1]===">"&&(h=">>",b=2);break;case"_":((y=this._blank.exec(s))||u&&(y=this._blank.exec(`${s} `)))&&(h="blank",p="_",f=y[1]);break;case'"':if(y=this._simpleQuotedString.exec(s))f=y[1];else if({value:f,matchLength:b}=this._parseLiteral(s),f===null)return a(this);(y!==null||b!==0)&&(h="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(y=this._simpleApostropheString.exec(s))f=y[1];else if({value:f,matchLength:b}=this._parseLiteral(s),f===null)return a(this);(y!==null||b!==0)&&(h="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(y=this._variable.exec(s))&&(h="var",f=y[0]);break;case"@":this._previousMarker==="literal"&&(y=this._langcode.exec(s))?(h="langcode",f=y[1]):(y=this._keyword.exec(s))&&(h=y[0]);break;case".":if(s.length===1?u:s[1]<"0"||s[1]>"9"){h=".",b=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(y=this._number.exec(s)||u&&(y=this._number.exec(`${s} `)))&&(h="literal",f=y[0],p=typeof y[1]=="string"?c1.double:typeof y[2]=="string"?c1.decimal:c1.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(y=this._sparqlKeyword.exec(s))?h=y[0].toUpperCase():m=!0;break;case"f":case"t":(y=this._boolean.exec(s))?(h="literal",f=y[0],p=c1.boolean):m=!0;break;case"a":(y=this._shortPredicates.exec(s))?(h="abbreviation",f="a"):m=!0;break;case"=":this._n3Mode&&s.length>1&&(h="abbreviation",s[1]!==">"?(b=1,f="="):(b=2,f=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(b=1,h=d);break;case"{":!this._lineMode&&s.length>=2&&(s[1]==="|"?(h="{|",b=2):(h=d,b=1));break;case"|":s.length>=2&&s[1]==="}"&&(h="|}",b=2);break;default:m=!0}if(m&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(y=this._prefix.exec(s))?(h="prefix",f=y[1]||""):((y=this._prefixed.exec(s))||u&&(y=this._prefixed.exec(`${s} `)))&&(h="prefixed",p=y[1]||"",f=this._unescape(y[2]))),this._previousMarker==="^^")switch(h){case"prefixed":h="type";break;case"IRI":h="typeIRI";break;default:h=""}if(!h)return u||!/^'''|^"""/.test(s)&&/\n|\r/.test(s)?a(this):this._input=s;const g=b||y[0].length,v=r(h,f,p,c,g);this.previousToken=v,this._previousMarker=h,s=s.substr(g,s.length)}function r(o,l,c,d,h){const f=s?n-s.length:n,p=f+h,y={type:o,value:l,prefix:c,line:d,start:f,end:p};return e(null,y),y}function a(o){e(o._syntaxError(/^\S*/.exec(s)[0]))}}_unescape(e){let u=!1;const s=e.replace(AW,(n,r,a,o)=>{if(typeof r=="string")return String.fromCharCode(Number.parseInt(r,16));if(typeof a=="string"){let l=Number.parseInt(a,16);return l<=65535?String.fromCharCode(Number.parseInt(a,16)):String.fromCharCode(55296+((l-=65536)>>10),56320+(l&1023))}return o in ZP?ZP[o]:(u=!0,"")});return u?null:s}_parseLiteral(e){if(e.length>=3){const u=e.match(/^(?:"""|"|'''|'|)/)[0],s=u.length;let n=Math.max(this._literalClosingPos,s);for(;(n=e.indexOf(u,n))>0;){let r=0;for(;e[n-r-1]==="\\";)r++;if(r%2===0){const a=e.substring(s,n),o=a.split(/\r\n|\r|\n/).length-1,l=n+s;if(s===1&&o!==0||s===3&&this._lineMode)break;return this._line+=o,{value:this._unescape(a),matchLength:l}}n++}this._literalClosingPos=e.length-s+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const u=new Error(`Unexpected "${e}" on line ${this._line}.`);return u.context={token:void 0,line:this._line,previousToken:this.previousToken},u}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,u){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof u=="function")TW(()=>this._tokenizeToEnd(u,!0));else{const s=[];let n;if(this._tokenizeToEnd((r,a)=>r?n=r:s.push(a),!0),n)throw n;return s}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",s=>{this._input!==null&&s.length!==0&&(this._pendingBuffer&&(s=wW.Buffer.concat([this._pendingBuffer,s]),this._pendingBuffer=null),s[s.length-1]&128?this._pendingBuffer=s:(typeof this._input>"u"?this._input=this._readStartingBom(typeof s=="string"?s:s.toString()):this._input+=s,this._tokenizeToEnd(u,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(u,!0)}),e.on("error",u)}}const{rdf:xW,xsd:Us}=cn;let Ry,IW=0;const i3={namedNode:PW,blankNode:DW,variable:CW,literal:NW,defaultGraph:jW,quad:eD,triple:eD},su=i3;let Ji=class Iq{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof Iq?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}};class $b extends Ji{get termType(){return"NamedNode"}}class $a extends Ji{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let u=e.lastIndexOf('"')+1;return u0?"INF":"-INF")))),u===""||u===Us.string?new $a(`"${t}"`):new $a(`"${t}"^^${u}`)}function CW(t){return new QT(t)}function jW(){return Ry}function eD(t,e,u,s){return new K0(t,e,u,s)}let tD=0;class Qb{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&Pq(this,e.factory);const u=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",s=/turtle/.test(u),n=/trig/.test(u),r=/triple/.test(u),a=/quad/.test(u),o=this._n3Mode=/n3/.test(u),l=r||a;(this._supportsNamedGraphs=!(s||o))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(s||n||r||o),this._supportsRDFStar=u===""||/star|\*$/.test(u),l&&(this._resolveRelativeIRI=c=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new HT({lineMode:l,n3:o}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){tD=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const u=e.indexOf("#");u>=0&&(e=e.substr(0,u)),this._base=e,this._basePath=e.indexOf("/")<0?e:e.replace(/[^\/?]*(?:\?.*)?$/,""),e=e.match(/^(?:([a-z][a-z0-9+.-]*:))?(?:\/\/[^\/]*)?/i),this._baseRoot=e[0],this._baseScheme=e[1]}}_saveContext(e,u,s,n,r){const a=this._n3Mode;this._contextStack.push({type:e,subject:s,predicate:n,object:r,graph:u,inverse:a?this._inversePredicate:!1,blankPrefix:a?this._prefixes._:"",quantified:a?this._quantified:null}),a&&(this._inversePredicate=!1,this._prefixes._=this._graph?`${this._graph.value}.`:".",this._quantified=Object.create(this._quantified))}_restoreContext(e,u){const s=this._contextStack.pop();if(!s||s.type!==e)return this._error(`Unexpected ${u.type}`,u);this._subject=s.subject,this._predicate=s.predicate,this._object=s.object,this._graph=s.graph,this._n3Mode&&(this._inversePredicate=s.inverse,this._prefixes._=s.blankPrefix,this._quantified=s.quantified)}_readInTopContext(e){switch(e.type){case"eof":return this._graph!==null?this._error("Unclosed graph",e):(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(e)}}_readEntity(e,u){let s;switch(e.type){case"IRI":case"typeIRI":const n=this._resolveIRI(e.value);if(n===null)return this._error("Invalid IRI",e);s=this._namedNode(n);break;case"type":case"prefixed":const r=this._prefixes[e.prefix];if(r===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);s=this._namedNode(r+e.value);break;case"blank":s=this._blankNode(this._prefixes[e.prefix]+e.value);break;case"var":s=this._variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!u&&this._n3Mode&&s.id in this._quantified&&(s=this._quantified[s.id]),s}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._blankNode(),null,null),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this.RDF_NIL,null,null),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._graph=this._blankNode(),null,null),this._readSubject):this._error("Unexpected graph",e);case"}":return this._readPunctuation(e);case"@forSome":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORSOME,this._quantifier=this._blankNode,this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier=this._variable,this._readQuantifierList):this._error('Unexpected "@forAll"',e);case"literal":if(!this._n3Mode)return this._error("Unexpected literal",e);if(e.prefix.length===0)return this._literalValue=e.value,this._completeSubjectLiteral;this._subject=this._literal(e.value,this._namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._subject=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._readPredicateOrNamedGraph)}return this._readPredicateOrNamedGraph}_readPredicate(e){const u=e.type;switch(u){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${u}`,e):(this._subject=null,u==="]"?this._readBlankNodeTail(e):this._readPunctuation(e));case";":return this._predicate!==null?this._readPredicate:this._error("Expected predicate but got ;",e);case"[":if(this._n3Mode)return this._saveContext("blank",this._graph,this._subject,this._subject=this._blankNode(),null),this._readBlankNodeHead;case"blank":if(!this._n3Mode)return this._error("Disallowed blank node as predicate",e);default:if((this._predicate=this._readEntity(e))===void 0)return}return this._readObject}_readObject(e){switch(e.type){case"literal":if(e.prefix.length===0)return this._literalValue=e.value,this._readDataTypeOrLang;this._object=this._literal(e.value,this._namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._blankNode()),this._readBlankNodeHead;case"(":return this._saveContext("list",this._graph,this._subject,this._predicate,this.RDF_NIL),this._subject=null,this._readListItem;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,this._subject,this._predicate,null),this._graph=null,this._readSubject):this._error("Unexpected RDF* syntax",e);default:if((this._object=this._readEntity(e))===void 0)return;if(this._n3Mode)return this._getPathReader(this._getContextEndReader())}return this._getContextEndReader()}_readPredicateOrNamedGraph(e){return e.type==="{"?this._readGraph(e):this._readPredicate(e)}_readGraph(e){return e.type!=="{"?this._error(`Expected graph but got ${e.type}`,e):(this._graph=this._subject,this._subject=null,this._readSubject)}_readBlankNodeHead(e){return e.type==="]"?(this._subject=null,this._readBlankNodeTail(e)):(this._predicate=null,this._readPredicate(e))}_readBlankNodeTail(e){if(e.type!=="]")return this._readBlankNodePunctuation(e);this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph);const u=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:u?this._readPredicateOrNamedGraph:this._readPredicateAfterBlank}_readPredicateAfterBlank(e){switch(e.type){case".":case"}":return this._subject=null,this._readPunctuation(e);default:return this._readPredicate(e)}}_readListItem(e){let u=null,s=null,n=this._readListItem;const r=this._subject,a=this._contextStack,o=a[a.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,s=this._blankNode(),this.RDF_FIRST,this._subject=u=this._blankNode()),n=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,s=this._blankNode(),this.RDF_FIRST,this.RDF_NIL),this._subject=null;break;case")":if(this._restoreContext("list",e),a.length!==0&&a[a.length-1].type==="list"&&this._emit(this._subject,this._predicate,this._object,this._graph),this._predicate===null){if(n=this._readPredicate,this._subject===this.RDF_NIL)return n}else if(n=this._getContextEndReader(),this._object===this.RDF_NIL)return n;s=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,n=this._readListItemDataTypeOrLang):(u=this._literal(e.value,this._namedNode(e.prefix)),n=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((u=this._readEntity(e))===void 0)return}if(s===null&&(this._subject=s=this._blankNode()),r===null?o.predicate===null?o.subject=s:o.object=s:this._emit(r,this.RDF_REST,s,this._graph),u!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,s,this.RDF_FIRST,u),this._subject=u,this._predicate=null,this._getPathReader(this._readListItem);this._emit(s,this.RDF_FIRST,u,this._graph)}return n}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let u=this._literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const s=this._readEntity(e);if(s===void 0)return;u=this._literal(this._literalValue,s),e=null;break;case"langcode":u=this._literal(this._literalValue,e.value),e=null;break}return{token:e,literal:u}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,u){const s=this._completeLiteral(e);if(s)return this._object=s.literal,u&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),s.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(s.token))}_readFormulaTail(e){return e.type!=="}"?this._readPunctuation(e):(this._subject!==null&&this._emit(this._subject,this._predicate,this._object,this._graph),this._restoreContext("formula",e),this._object===null?this._readPredicate:this._getContextEndReader())}_readPunctuation(e){let u,s=this._graph;const n=this._subject,r=this._inversePredicate;switch(e.type){case"}":if(this._graph===null)return this._error("Unexpected graph closing",e);if(this._n3Mode)return this._readFormulaTail(e);this._graph=null;case".":this._subject=null,u=this._contextStack.length?this._readSubject:this._readInTopContext,r&&(this._inversePredicate=!1);break;case";":u=this._readPredicate;break;case",":u=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF* syntax",e);const a=this._predicate,o=this._object;this._subject=this._quad(n,a,o,this.DEFAULTGRAPH),u=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,u=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(s=this._readEntity(e))!==void 0){u=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(n!==null){const a=this._predicate,o=this._object;r?this._emit(o,a,n,s):this._emit(n,a,o,s)}return u}_readBlankNodePunctuation(e){let u;switch(e.type){case";":u=this._readPredicate;break;case",":u=this._readObject;break;default:return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}return this._emit(this._subject,this._predicate,this._object,this._graph),u}_readQuadPunctuation(e){return e.type!=="."?this._error("Expected dot to follow quad",e):this._readInTopContext}_readPrefix(e){return e.type!=="prefix"?this._error("Expected prefix to follow @prefix",e):(this._prefix=e.value,this._readPrefixIRI)}_readPrefixIRI(e){if(e.type!=="IRI")return this._error(`Expected IRI to follow prefix "${this._prefix}:"`,e);const u=this._readEntity(e);return this._prefixes[this._prefix]=u.value,this._prefixCallback(this._prefix,u),this._readDeclarationPunctuation}_readBaseIRI(e){const u=e.type==="IRI"&&this._resolveIRI(e.value);return u?(this._setBase(u),this._readDeclarationPunctuation):this._error("Expected valid IRI to follow base declaration",e)}_readNamedGraphLabel(e){switch(e.type){case"IRI":case"blank":case"prefixed":return this._readSubject(e),this._readGraph;case"[":return this._readNamedGraphBlankLabel;default:return this._error("Invalid graph label",e)}}_readNamedGraphBlankLabel(e){return e.type!=="]"?this._error("Invalid graph label",e):(this._subject=this._blankNode(),this._readGraph)}_readDeclarationPunctuation(e){return this._sparqlStyle?(this._sparqlStyle=!1,this._readInTopContext(e)):e.type!=="."?this._error("Expected declaration to end with a dot",e):this._readInTopContext}_readQuantifierList(e){let u;switch(e.type){case"IRI":case"prefixed":if((u=this._readEntity(e,!0))!==void 0)break;default:return this._error(`Unexpected ${e.type}`,e)}return this._explicitQuantifiers?(this._subject===null?this._emit(this._graph||this.DEFAULTGRAPH,this._predicate,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,u,this.QUANTIFIERS_GRAPH)):this._quantified[u.id]=this._quantifier(this._blankNode().value),this._readQuantifierPunctuation}_readQuantifierPunctuation(e){return e.type===","?this._readQuantifierList:(this._explicitQuantifiers&&(this._emit(this._subject,this.RDF_REST,this.RDF_NIL,this.QUANTIFIERS_GRAPH),this._subject=null),this._readCallback=this._getContextEndReader(),this._readCallback(e))}_getPathReader(e){return this._afterPath=e,this._readPath}_readPath(e){switch(e.type){case"!":return this._readForwardPath;case"^":return this._readBackwardPath;default:const u=this._contextStack,s=u.length&&u[u.length-1];if(s&&s.type==="item"){const n=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,n,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let u,s;const n=this._blankNode();if((s=this._readEntity(e))!==void 0)return this._predicate===null?(u=this._subject,this._subject=n):(u=this._object,this._object=n),this._emit(u,s,n,this._graph),this._readPath}_readBackwardPath(e){const u=this._blankNode();let s,n;if((s=this._readEntity(e))!==void 0)return this._predicate===null?(n=this._subject,this._subject=u):(n=this._object,this._object=u),this._emit(u,s,n,this._graph),this._readPath}_readRDFStarTailOrGraph(e){return e.type!==">>"?this._supportsQuads&&this._graph===null&&(this._graph=this._readEntity(e))!==void 0?this._readRDFStarTail:this._error(`Expected >> to follow "${this._object.id}"`,e):this._readRDFStarTail(e)}_readRDFStarTail(e){if(e.type!==">>")return this._error(`Expected >> but got ${e.type}`,e);const u=this._quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=u,this._readPredicate):(this._object=u,this._getContextEndReader())}_getContextEndReader(){const e=this._contextStack;if(!e.length)return this._readPunctuation;switch(e[e.length-1].type){case"blank":return this._readBlankNodeTail;case"list":return this._readListItem;case"formula":return this._readFormulaTail;case"<<":return this._readRDFStarTailOrGraph}}_emit(e,u,s,n){this._callback(null,this._quad(e,u,s,n||this.DEFAULTGRAPH))}_error(e,u){const s=new Error(`${e} on line ${u.line}.`);s.context={token:u,line:u.line,previousToken:this._lexer.previousToken},this._callback(s),this._callback=pv}_resolveIRI(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)?e:this._resolveRelativeIRI(e)}_resolveRelativeIRI(e){if(!e.length)return this._base;switch(e[0]){case"#":return this._base+e;case"?":return this._base.replace(/(?:\?.*)?$/,e);case"/":return(e[1]==="/"?this._baseScheme:this._baseRoot)+this._removeDotSegments(e);default:return/^[^/:]*:/.test(e)?null:this._removeDotSegments(this._basePath+e)}}_removeDotSegments(e){if(!/(^|\/)\.\.?($|[/#?])/.test(e))return e;const u=e.length;let s="",n=-1,r=-1,a=0,o="/";for(;n=r&&(s=s.substr(0,a)),o!=="/")return`${s}/${e.substr(n+1)}`;a=n+1}}}o=e[++n]}return s+e.substring(a)}parse(e,u,s){if(this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${tD++}_`,this._prefixCallback=s||pv,this._inversePredicate=!1,this._quantified=Object.create(null),!u){const n=[];let r;if(this._callback=(a,o)=>{a?r=a:o&&n.push(o)},this._lexer.tokenize(e).every(a=>this._readCallback=this._readCallback(a)),r)throw r;return n}this._callback=u,this._lexer.tokenize(e,(n,r)=>{n!==null?(this._callback(n),this._callback=pv):this._readCallback&&(this._readCallback=this._readCallback(r))})}}function pv(){}function Pq(t,e){const u=e.namedNode;t._namedNode=u,t._blankNode=e.blankNode,t._literal=e.literal,t._variable=e.variable,t._quad=e.quad,t.DEFAULTGRAPH=e.defaultGraph(),t.RDF_FIRST=u(cn.rdf.first),t.RDF_REST=u(cn.rdf.rest),t.RDF_NIL=u(cn.rdf.nil),t.N3_FORALL=u(cn.r.forAll),t.N3_FORSOME=u(cn.r.forSome),t.ABBREVIATIONS={a:u(cn.rdf.type),"=":u(cn.owl.sameAs),">":u(cn.log.implies)},t.QUANTIFIERS_GRAPH=u("urn:n3:quantifiers")}Pq(Qb.prototype,su);function LW(t){return!!t&&t.termType==="NamedNode"}function MW(t){return!!t&&t.termType==="BlankNode"}function FW(t){return!!t&&t.termType==="Literal"}function qW(t){return!!t&&t.termType==="Variable"}function Y0(t){return!!t&&t.termType==="DefaultGraph"}function BW(t){return Y0(t.graph)}function UW(t,e){return Dq({"":t.value||t},e)("")}function Dq(t,e){const u=Object.create(null);for(const n in t)s(n,t[n]);e=e||su;function s(n,r){if(typeof r=="string"){const a=Object.create(null);u[n]=o=>a[o]||(a[o]=e.namedNode(r+o))}else if(!(n in u))throw new Error(`Unknown prefix: ${n}`);return u[n]}return s}const Nq=Object.freeze(Object.defineProperty({__proto__:null,inDefaultGraph:BW,isBlankNode:MW,isDefaultGraph:Y0,isLiteral:FW,isNamedNode:LW,isVariable:qW,prefix:UW,prefixes:Dq},Symbol.toStringTag,{value:"Module"})),Rl=su.defaultGraph(),{rdf:HW,xsd:bo}=cn,rD=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,nD=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,$W={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class xl extends Ji{equals(e){return e===this}}class kT{constructor(e,u){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(u=e,e=null),u=u||{},this._lists=u.lists,e)this._outputStream=e,this._endStream=u.end===void 0?!0:!!u.end;else{let s="";this._outputStream={write(n,r,a){s+=n,a&&a()},end:n=>{n&&n(null,s)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(u.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=Rl,this._prefixIRIs=Object.create(null),u.prefixes&&this.addPrefixes(u.prefixes),u.baseIRI&&(this._baseMatcher=new RegExp(`^${aD(u.baseIRI)}${u.baseIRI.endsWith("/")?"":"[#?]"}`),this._baseLength=u.baseIRI.length))}get _inDefaultGraph(){return Rl.equals(this._graph)}_write(e,u){this._outputStream.write(e,"utf8",u)}_writeQuad(e,u,s,n,r){try{n.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`. +`:` +} +`)+(Rl.equals(n)?"":`${this._encodeIriOrBlank(n)} { +`)),this._graph=n,this._subject=null),e.equals(this._subject)?u.equals(this._predicate)?this._write(`, ${this._encodeObject(s)}`,r):this._write(`; + ${this._encodePredicate(this._predicate=u)} ${this._encodeObject(s)}`,r):this._write(`${(this._subject===null?"":`. +`)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=u)} ${this._encodeObject(s)}`,r)}catch(a){r&&r(a)}}_writeQuadLine(e,u,s,n,r){delete this._prefixMatch,this._write(this.quadToString(e,u,s,n),r)}quadToString(e,u,s,n){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(u)} ${this._encodeObject(s)}${n&&n.value?` ${this._encodeIriOrBlank(n)} . +`:` . +`}`}quadsToString(e){return e.map(u=>this.quadToString(u.subject,u.predicate,u.object,u.graph)).join("")}_encodeSubject(e){return e.termType==="Quad"?this._encodeQuad(e):this._encodeIriOrBlank(e)}_encodeIriOrBlank(e){if(e.termType!=="NamedNode")return this._lists&&e.value in this._lists&&(e=this.list(this._lists[e.value])),"id"in e?e.id:`_:${e.value}`;let u=e.value;this._baseMatcher&&this._baseMatcher.test(u)&&(u=u.substr(this._baseLength)),rD.test(u)&&(u=u.replace(nD,iD));const s=this._prefixRegex.exec(u);return s?s[1]?this._prefixIRIs[s[1]]+s[2]:u:`<${u}>`}_encodeLiteral(e){let u=e.value;if(rD.test(u)&&(u=u.replace(nD,iD)),e.language)return`"${u}"@${e.language}`;if(this._lineMode){if(e.datatype.value===bo.string)return`"${u}"`}else switch(e.datatype.value){case bo.string:return`"${u}"`;case bo.boolean:if(u==="true"||u==="false")return u;break;case bo.integer:if(/^[+-]?\d+$/.test(u))return u;break;case bo.decimal:if(/^[+-]?\d*\.\d+$/.test(u))return u;break;case bo.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(u))return u;break}return`"${u}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===HW.type?"a":this._encodeIriOrBlank(e)}_encodeObject(e){switch(e.termType){case"Quad":return this._encodeQuad(e);case"Literal":return this._encodeLiteral(e);default:return this._encodeIriOrBlank(e)}}_encodeQuad({subject:e,predicate:u,object:s,graph:n}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(u)} ${this._encodeObject(s)}${Y0(n)?"":` ${this._encodeIriOrBlank(n)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,u,s,n,r){s===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,u):typeof n=="function"?this._writeQuad(e,u,s,Rl,n):this._writeQuad(e,u,s,n||Rl,r)}addQuads(e){for(let u=0;u. +`)}if(s){let n="",r="";for(const a in this._prefixIRIs)n+=n?`|${a}`:a,r+=(r?"|":"")+this._prefixIRIs[a];n=aD(n),this._prefixRegex=new RegExp(`^(?:${r})[^/]*$|^(${n})([_a-zA-Z][\\-_a-zA-Z0-9]*)$`)}this._write(s?` +`:"",u)}blank(e,u){let s=e,n,r;switch(e===void 0?s=[]:e.termType?s=[{predicate:e,object:u}]:"length"in e||(s=[e]),r=s.length){case 0:return new xl("[]");case 1:if(n=s[0],!(n.object instanceof xl))return new xl(`[ ${this._encodePredicate(n.predicate)} ${this._encodeObject(n.object)} ]`);default:let a="[";for(let o=0;o{u=null,e(s,n)});if(this._endStream)try{return this._outputStream.end(u)}catch{}u&&u()}}function iD(t){let e=$W[t];return e===void 0&&(t.length===1?(e=t.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}function aD(t){return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}var Vb=Wt();class zT{constructor(e,u){this._size=0,this._graphs=Object.create(null),this._id=0,this._ids=Object.create(null),this._entities=Object.create(null),this._blankNodeIndex=0,!u&&e&&!e[0]&&(u=e,e=null),u=u||{},this._factory=u.factory||su,e&&this.addQuads(e)}_termFromId(e,u){if(e[0]==="."){const s=this._entities,n=e.split(".");return this._factory.quad(this._termFromId(s[n[1]]),this._termFromId(s[n[2]]),this._termFromId(s[n[3]]),n[4]&&this._termFromId(s[n[4]]))}return $s(e,u)}_termToNumericId(e){if(e.termType==="Quad"){const u=this._termToNumericId(e.subject),s=this._termToNumericId(e.predicate),n=this._termToNumericId(e.object);let r;return u&&s&&n&&(Y0(e.graph)||(r=this._termToNumericId(e.graph)))&&this._ids[r?`.${u}.${s}.${n}.${r}`:`.${u}.${s}.${n}`]}return this._ids[On(e)]}_termToNewNumericId(e){const u=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Y0(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:On(e);return this._ids[u]||(this._ids[this._entities[++this._id]=u]=this._id)}get size(){let e=this._size;if(e!==null)return e;e=0;const u=this._graphs;let s,n;for(const r in u)for(const a in s=u[r].subjects)for(const o in n=s[a])e+=Object.keys(n[o]).length;return this._size=e}_addToIndex(e,u,s,n){const r=e[u]||(e[u]={}),a=r[s]||(r[s]={}),o=n in a;return o||(a[n]=null),!o}_removeFromIndex(e,u,s,n){const r=e[u],a=r[s];delete a[n];for(const o in a)return;delete r[s];for(const o in r)return;delete e[u]}*_findInIndex(e,u,s,n,r,a,o,l){let c,d,h;const f=this._entities,p=this._termFromId(l,this._factory),y={subject:null,predicate:null,object:null};u&&((c=e,e={})[u]=c[u]);for(const b in e)if(d=e[b]){y[r]=this._termFromId(f[b],this._factory),s&&((c=d,d={})[s]=c[s]);for(const m in d)if(h=d[m]){y[a]=this._termFromId(f[m],this._factory);const g=n?n in h?[n]:[]:Object.keys(h);for(let v=0;v{s in u||(u[s]=!0,e(this._termFromId(this._entities[s],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,u,s,n){u||(n=e.graph,s=e.object,u=e.predicate,e=e.subject),n=On(n);let r=this._graphs[n];r||(r=this._graphs[n]={subjects:{},predicates:{},objects:{}},Object.freeze(r)),e=this._termToNewNumericId(e),u=this._termToNewNumericId(u),s=this._termToNewNumericId(s);const a=this._addToIndex(r.subjects,e,u,s);return this._addToIndex(r.predicates,u,s,e),this._addToIndex(r.objects,s,e,u),this._size=null,a}addQuads(e){for(let u=0;u{this.addQuad(u)}),e}removeQuad(e,u,s,n){u||(n=e.graph,s=e.object,u=e.predicate,e=e.subject),n=On(n);const r=this._graphs;let a,o,l;if(!(e=e&&this._termToNumericId(e))||!(u=u&&this._termToNumericId(u))||!(s=s&&this._termToNumericId(s))||!(a=r[n])||!(o=a.subjects[e])||!(l=o[u])||!(s in l))return!1;this._removeFromIndex(a.subjects,e,u,s),this._removeFromIndex(a.predicates,u,s,e),this._removeFromIndex(a.objects,s,e,u),this._size!==null&&this._size--;for(e in a.subjects)return!0;return delete r[n],!0}removeQuads(e){for(let u=0;u{this.removeQuad(u)}),e}removeMatches(e,u,s,n){const r=new Vb.Readable({objectMode:!0});return r._read=()=>{for(const a of this.readQuads(e,u,s,n))r.push(a);r.push(null)},this.remove(r)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,u,s,n){return[...this.readQuads(e,u,s,n)]}*readQuads(e,u,s,n){n=n&&On(n);const r=this._getGraphs(n);let a,o,l,c;if(!(e&&!(o=this._termToNumericId(e))||u&&!(l=this._termToNumericId(u))||s&&!(c=this._termToNumericId(s))))for(const d in r)(a=r[d])&&(o?c?yield*this._findInIndex(a.objects,c,o,l,"object","subject","predicate",d):yield*this._findInIndex(a.subjects,o,l,null,"subject","predicate","object",d):l?yield*this._findInIndex(a.predicates,l,c,null,"predicate","object","subject",d):c?yield*this._findInIndex(a.objects,c,null,null,"object","subject","predicate",d):yield*this._findInIndex(a.subjects,null,null,null,"subject","predicate","object",d))}match(e,u,s,n){return new GT(this,e,u,s,n)}countQuads(e,u,s,n){n=n&&On(n);const r=this._getGraphs(n);let a=0,o,l,c,d;if(e&&!(l=this._termToNumericId(e))||u&&!(c=this._termToNumericId(u))||s&&!(d=this._termToNumericId(s)))return 0;for(const h in r)(o=r[h])&&(e?s?a+=this._countInIndex(o.objects,d,l,c):a+=this._countInIndex(o.subjects,l,c,d):u?a+=this._countInIndex(o.predicates,c,d,l):a+=this._countInIndex(o.objects,d,l,c));return a}forEach(e,u,s,n,r){this.some(a=>(e(a),!1),u,s,n,r)}every(e,u,s,n,r){let a=!1;const o=!this.some(l=>(a=!0,!e(l)),u,s,n,r);return a&&o}some(e,u,s,n,r){for(const a of this.readQuads(u,s,n,r))if(e(a))return!0;return!1}getSubjects(e,u,s){const n=[];return this.forSubjects(r=>{n.push(r)},e,u,s),n}forSubjects(e,u,s,n){n=n&&On(n);const r=this._getGraphs(n);let a,o,l;if(e=this._uniqueEntities(e),!(u&&!(o=this._termToNumericId(u))||s&&!(l=this._termToNumericId(s))))for(n in r)(a=r[n])&&(o?l?this._loopBy2Keys(a.predicates,o,l,e):this._loopByKey1(a.subjects,o,e):l?this._loopByKey0(a.objects,l,e):this._loop(a.subjects,e))}getPredicates(e,u,s){const n=[];return this.forPredicates(r=>{n.push(r)},e,u,s),n}forPredicates(e,u,s,n){n=n&&On(n);const r=this._getGraphs(n);let a,o,l;if(e=this._uniqueEntities(e),!(u&&!(o=this._termToNumericId(u))||s&&!(l=this._termToNumericId(s))))for(n in r)(a=r[n])&&(o?l?this._loopBy2Keys(a.objects,l,o,e):this._loopByKey0(a.subjects,o,e):l?this._loopByKey1(a.predicates,l,e):this._loop(a.predicates,e))}getObjects(e,u,s){const n=[];return this.forObjects(r=>{n.push(r)},e,u,s),n}forObjects(e,u,s,n){n=n&&On(n);const r=this._getGraphs(n);let a,o,l;if(e=this._uniqueEntities(e),!(u&&!(o=this._termToNumericId(u))||s&&!(l=this._termToNumericId(s))))for(n in r)(a=r[n])&&(o?l?this._loopBy2Keys(a.subjects,o,l,e):this._loopByKey1(a.objects,o,e):l?this._loopByKey0(a.predicates,l,e):this._loop(a.objects,e))}getGraphs(e,u,s){const n=[];return this.forGraphs(r=>{n.push(r)},e,u,s),n}forGraphs(e,u,s,n){for(const r in this._graphs)this.some(a=>(e(a.graph),!0),u,s,n,r)}createBlankNode(e){let u,s;if(e)for(u=e=`_:${e}`,s=1;this._ids[u];)u=e+s++;else do u=`_:b${this._blankNodeIndex++}`;while(this._ids[u]);return this._ids[u]=++this._id,this._entities[this._id]=u,this._factory.blankNode(u.substr(2))}extractLists({remove:e=!1,ignoreErrors:u=!1}={}){const s={},n=u?()=>!0:(o,l)=>{throw new Error(`${o.value} ${l}`)},r=this.getQuads(null,cn.rdf.rest,cn.rdf.nil,null),a=e?[...r]:[];return r.forEach(o=>{const l=[];let c=!1,d,h;const f=o.graph;let p=o.subject;for(;p&&!c;){const y=this.getQuads(null,null,p,null),b=this.getQuads(p,null,null,null);let m,g=null,v=null,_=null;for(let w=0;w{switch(r){case"data":s=a;break;case"end":n=a;break}}},(r,a)=>{r&&this.emit("error",r)||a&&this.push(a)},(r,a)=>{this.emit("prefix",r,a)}),this._transform=(r,a,o)=>{s(r),o()},this._flush=r=>{n(),r()}}import(e){return e.on("data",u=>{this.write(u)}),e.on("end",()=>{this.end()}),e.on("error",u=>{this.emit("error",u)}),this}}class jq extends Vb.Transform{constructor(e){super({encoding:"utf8",writableObjectMode:!0});const u=this._writer=new kT({write:(s,n,r)=>{this.push(s),r&&r()},end:s=>{this.push(null),s&&s()}},e);this._transform=(s,n,r)=>{u.addQuad(s,r)},this._flush=s=>{u.end(s)}}import(e){return e.on("data",u=>{this.write(u)}),e.on("end",()=>{this.end()}),e.on("error",u=>{this.emit("error",u)}),e.on("prefix",(u,s)=>{this._writer.addPrefix(u,s)}),this}}const VW={Lexer:HT,Parser:Qb,Writer:kT,Store:zT,StreamParser:Cq,StreamWriter:jq,Util:Nq,DataFactory:su,Term:Ji,NamedNode:$b,Literal:$a,BlankNode:$T,Variable:QT,DefaultGraph:VT,Quad:K0,Triple:K0,termFromId:$s,termToId:On},kW=Object.freeze(Object.defineProperty({__proto__:null,BlankNode:$T,DataFactory:su,DefaultGraph:VT,Lexer:HT,Literal:$a,NamedNode:$b,Parser:Qb,Quad:K0,Store:zT,StreamParser:Cq,StreamWriter:jq,Term:Ji,Triple:K0,Util:Nq,Variable:QT,Writer:kT,default:VW,termFromId:$s,termToId:On},Symbol.toStringTag,{value:"Module"})),ts=Q3(kW);var sD;function zW(){if(sD)return Sl;sD=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.ActorRdfParseN3=void 0;const t=au(),e=ts;let u=class extends t.ActorRdfParseFixedMediaTypes{constructor(n){super(n)}async runHandle(n,r,a){var l;n.data.on("error",c=>o.emit("error",c));const o=n.data.pipe(new e.StreamParser({baseIRI:(l=n.metadata)==null?void 0:l.baseIRI,format:r.endsWith("n3")?r:`${r}*`}));return{data:o,metadata:{triples:r==="text/turtle"||r==="application/n-triples"||r==="text/n3"}}}};return Sl.ActorRdfParseN3=u,Sl}var oD;function GW(){return oD||(oD=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(zW(),t)}(dv)),dv}var yv={},Il={},bv={},vs={},ws={},gv={},uD;function WW(){return uD||(uD=1,function(t){/** + * Character classes and associated utilities for the 5th edition of XML 1.0. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR=` +\r -퟿-�𐀀-􏿿`,t.S=` \r +`,t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");var e=9,u=10,s=13,n=32;t.S_LIST=[n,u,s,e];function r(c){return c>=n&&c<=55295||c===u||c===s||c===e||c>=57344&&c<=65533||c>=65536&&c<=1114111}t.isChar=r;function a(c){return c===n||c===u||c===s||c===e}t.isS=a;function o(c){return c>=65&&c<=90||c>=97&&c<=122||c===58||c===95||c===8204||c===8205||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=880&&c<=893||c>=895&&c<=8191||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533||c>=65536&&c<=983039}t.isNameStartChar=o;function l(c){return o(c)||c>=48&&c<=57||c===45||c===46||c===183||c>=768&&c<=879||c>=8255&&c<=8256}t.isNameChar=l}(gv)),gv}var mv={},cD;function JW(){return cD||(cD=1,function(t){/** + * Character classes and associated utilities for the 2nd edition of XML 1.1. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR="-퟿-�𐀀-􏿿",t.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",t.S=` \r +`,t.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.RESTRICTED_CHAR_RE=new RegExp("^["+t.RESTRICTED_CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");var e=9,u=10,s=13,n=32;t.S_LIST=[n,u,s,e];function r(h){return h>=1&&h<=55295||h>=57344&&h<=65533||h>=65536&&h<=1114111}t.isChar=r;function a(h){return h>=1&&h<=8||h===11||h===12||h>=14&&h<=31||h>=127&&h<=132||h>=134&&h<=159}t.isRestrictedChar=a;function o(h){return h===9||h===10||h===13||h>31&&h<127||h===133||h>159&&h<=55295||h>=57344&&h<=65533||h>=65536&&h<=1114111}t.isCharAndNotRestricted=o;function l(h){return h===n||h===u||h===s||h===e}t.isS=l;function c(h){return h>=65&&h<=90||h>=97&&h<=122||h===58||h===95||h===8204||h===8205||h>=192&&h<=214||h>=216&&h<=246||h>=248&&h<=767||h>=880&&h<=893||h>=895&&h<=8191||h>=8304&&h<=8591||h>=11264&&h<=12271||h>=12289&&h<=55295||h>=63744&&h<=64975||h>=65008&&h<=65533||h>=65536&&h<=983039}t.isNameStartChar=c;function d(h){return c(h)||h>=48&&h<=57||h===45||h===46||h===183||h>=768&&h<=879||h>=8255&&h<=8256}t.isNameChar=d}(mv)),mv}var _v={},lD;function XW(){return lD||(lD=1,function(t){/** + * Character class utilities for XML NS 1.0 edition 3. + * + * @author Louis-Dominique Dubeau + * @license MIT + * @copyright Louis-Dominique Dubeau + */Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u");function e(s){return s>=65&&s<=90||s===95||s>=97&&s<=122||s>=192&&s<=214||s>=216&&s<=246||s>=248&&s<=767||s>=880&&s<=893||s>=895&&s<=8191||s>=8204&&s<=8205||s>=8304&&s<=8591||s>=11264&&s<=12271||s>=12289&&s<=55295||s>=63744&&s<=64975||s>=65008&&s<=65533||s>=65536&&s<=983039}t.isNCNameStartChar=e;function u(s){return e(s)||s===45||s===46||s>=48&&s<=57||s===183||s>=768&&s<=879||s>=8255&&s<=8256}t.isNCNameChar=u}(_v)),_v}var dD;function Lq(){if(dD)return ws;dD=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.SaxesParser=ws.EVENTS=void 0;const t=WW(),e=JW(),u=XW();var s=t.isS,n=t.isChar,r=t.isNameStartChar,a=t.isNameChar,o=t.S_LIST,l=t.NAME_RE,c=e.isChar,d=u.isNCNameStartChar,h=u.isNCNameChar,f=u.NC_NAME_RE;const p="http://www.w3.org/XML/1998/namespace",y="http://www.w3.org/2000/xmlns/",b={__proto__:null,xml:p,xmlns:y},m={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},g=-1,v=-2,_=0,w=1,S=2,A=3,D=4,L=5,E=6,O=7,P=8,j=9,U=10,M=11,q=12,Q=13,Z=14,K=15,fe=16,X=17,he=18,xe=19,ie=20,ae=21,Oe=22,Ne=23,ge=24,de=25,oe=26,$=27,N=28,R=29,T=30,x=31,B=32,k=33,V=34,J=35,z=36,Y=37,te=38,ce=39,Ae=40,Ie=41,Ee=42,qe=43,G=44,F=9,H=10,re=13,be=32,Re=33,Ce=34,Qe=38,ke=39,me=45,Se=47,W=59,we=60,Te=61,Le=62,$e=63,We=91,tt=93,lt=133,ut=8232,le=Ke=>Ke===Ce||Ke===ke,C=[Ce,ke],ee=[...C,We,Le],pe=[...C,we,tt],De=[Te,$e,...o],Ue=[...o,Le,Qe,we];function Fe(Ke,ye,Pe){switch(ye){case"xml":Pe!==p&&Ke.fail(`xml prefix must be bound to ${p}.`);break;case"xmlns":Pe!==y&&Ke.fail(`xmlns prefix must be bound to ${y}.`);break}switch(Pe){case y:Ke.fail(ye===""?`the default namespace may not be set to ${Pe}.`:`may not assign a prefix (even "xmlns") to the URI ${y}.`);break;case p:switch(ye){case"xml":break;case"":Ke.fail(`the default namespace may not be set to ${Pe}.`);break;default:Ke.fail("may not assign the xml namespace to another prefix.")}break}}function Ye(Ke,ye){for(const Pe of Object.keys(ye))Fe(Ke,Pe,ye[Pe])}const Ve=Ke=>f.test(Ke),Je=Ke=>l.test(Ke),nt=0,yt=1,ft=2;ws.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const et={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Ir{get closed(){return this._closed}constructor(ye){this.opt=ye??{},this.fragmentOpt=!!this.opt.fragment;const Pe=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,Pe){this.nameStartCheck=d,this.nameCheck=h,this.isName=Ve,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},b);const Me=this.opt.additionalNamespaces;Me!=null&&(Ye(this,Me),Object.assign(this.ns,Me))}else this.nameStartCheck=r,this.nameCheck=a,this.isName=Je,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){var ye;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=nt,this.attribList=[];const{fragmentOpt:Pe}=this;this.state=Pe?Q:_,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=Pe,this.xmlDeclPossible=!Pe,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:Me}=this.opt;if(Me===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");Me="1.0"}this.setXMLVersion(Me),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(m),(ye=this.readyHandler)===null||ye===void 0||ye.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(ye,Pe){this[et[ye]]=Pe}off(ye){this[et[ye]]=void 0}makeError(ye){var Pe;let Me=(Pe=this.fileName)!==null&&Pe!==void 0?Pe:"";return this.trackPosition&&(Me.length>0&&(Me+=":"),Me+=`${this.line}:${this.column}`),Me.length>0&&(Me+=": "),new Error(Me+ye)}fail(ye){const Pe=this.makeError(ye),Me=this.errorHandler;if(Me===void 0)throw Pe;return Me(Pe),this}write(ye){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let Pe=!1;ye===null?(Pe=!0,ye=""):typeof ye=="object"&&(ye=ye.toString()),this.carriedFromPrevious!==void 0&&(ye=`${this.carriedFromPrevious}${ye}`,this.carriedFromPrevious=void 0);let Me=ye.length;const it=ye.charCodeAt(Me-1);!Pe&&(it===re||it>=55296&&it<=56319)&&(this.carriedFromPrevious=ye[Me-1],Me--,ye=ye.slice(0,Me));const{stateTable:at}=this;for(this.chunk=ye,this.i=0;this.i=ye.length)return g;const Me=ye.charCodeAt(Pe);if(this.column++,Me<55296){if(Me>=be||Me===F)return Me;switch(Me){case H:return this.line++,this.column=0,this.positionAtNewLine=this.position,H;case re:return ye.charCodeAt(Pe+1)===H&&(this.i=Pe+2),this.line++,this.column=0,this.positionAtNewLine=this.position,v;default:return this.fail("disallowed character."),Me}}if(Me>56319)return Me>=57344&&Me<=65533||this.fail("disallowed character."),Me;const it=65536+(Me-55296)*1024+(ye.charCodeAt(Pe+1)-56320);return this.i=Pe+2,it>1114111&&this.fail("disallowed character."),it}getCode11(){const{chunk:ye,i:Pe}=this;if(this.prevI=Pe,this.i=Pe+1,Pe>=ye.length)return g;const Me=ye.charCodeAt(Pe);if(this.column++,Me<55296){if(Me>31&&Me<127||Me>159&&Me!==ut||Me===F)return Me;switch(Me){case H:return this.line++,this.column=0,this.positionAtNewLine=this.position,H;case re:{const at=ye.charCodeAt(Pe+1);(at===H||at===lt)&&(this.i=Pe+2)}case lt:case ut:return this.line++,this.column=0,this.positionAtNewLine=this.position,v;default:return this.fail("disallowed character."),Me}}if(Me>56319)return Me>=57344&&Me<=65533||this.fail("disallowed character."),Me;const it=65536+(Me-55296)*1024+(ye.charCodeAt(Pe+1)-56320);return this.i=Pe+2,it>1114111&&this.fail("disallowed character."),it}getCodeNorm(){const ye=this.getCode();return ye===v?H:ye}unget(){this.i=this.prevI,this.column--}captureTo(ye){let{i:Pe}=this;const{chunk:Me}=this;for(;;){const it=this.getCode(),at=it===v,Tt=at?H:it;if(Tt===g||ye.includes(Tt))return this.text+=Me.slice(Pe,this.prevI),Tt;at&&(this.text+=`${Me.slice(Pe,this.prevI)} +`,Pe=this.i)}}captureToChar(ye){let{i:Pe}=this;const{chunk:Me}=this;for(;;){let it=this.getCode();switch(it){case v:this.text+=`${Me.slice(Pe,this.prevI)} +`,Pe=this.i,it=H;break;case g:return this.text+=Me.slice(Pe),!1}if(it===ye)return this.text+=Me.slice(Pe,this.prevI),!0}}captureNameChars(){const{chunk:ye,i:Pe}=this;for(;;){const Me=this.getCode();if(Me===g)return this.name+=ye.slice(Pe),g;if(!a(Me))return this.name+=ye.slice(Pe,this.prevI),Me===v?H:Me}}skipSpaces(){for(;;){const ye=this.getCodeNorm();if(ye===g||!s(ye))return ye}}setXMLVersion(ye){this.currentXMLVersion=ye,ye==="1.0"?(this.isChar=n,this.getCode=this.getCode10):(this.isChar=c,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=w}sBeginWhitespace(){const ye=this.i,Pe=this.skipSpaces();switch(this.prevI!==ye&&(this.xmlDeclPossible=!1),Pe){case we:if(this.state=K,this.text.length!==0)throw new Error("no-empty text at start");break;case g:break;default:this.unget(),this.state=Q,this.xmlDeclPossible=!1}}sDoctype(){var ye;const Pe=this.captureTo(ee);switch(Pe){case Le:{(ye=this.doctypeHandler)===null||ye===void 0||ye.call(this,this.text),this.text="",this.state=Q,this.doctype=!0;break}case g:break;default:this.text+=String.fromCodePoint(Pe),Pe===We?this.state=D:le(Pe)&&(this.state=A,this.q=Pe)}}sDoctypeQuote(){const ye=this.q;this.captureToChar(ye)&&(this.text+=String.fromCodePoint(ye),this.q=null,this.state=S)}sDTD(){const ye=this.captureTo(pe);ye!==g&&(this.text+=String.fromCodePoint(ye),ye===tt?this.state=S:ye===we?this.state=E:le(ye)&&(this.state=L,this.q=ye))}sDTDQuoted(){const ye=this.q;this.captureToChar(ye)&&(this.text+=String.fromCodePoint(ye),this.state=D,this.q=null)}sDTDOpenWaka(){const ye=this.getCodeNorm();switch(this.text+=String.fromCodePoint(ye),ye){case Re:this.state=O,this.openWakaBang="";break;case $e:this.state=M;break;default:this.state=D}}sDTDOpenWakaBang(){const ye=String.fromCodePoint(this.getCodeNorm()),Pe=this.openWakaBang+=ye;this.text+=ye,Pe!=="-"&&(this.state=Pe==="--"?P:D,this.openWakaBang="")}sDTDComment(){this.captureToChar(me)&&(this.text+="-",this.state=j)}sDTDCommentEnding(){const ye=this.getCodeNorm();this.text+=String.fromCodePoint(ye),this.state=ye===me?U:P}sDTDCommentEnded(){const ye=this.getCodeNorm();this.text+=String.fromCodePoint(ye),ye===Le?this.state=D:(this.fail("malformed comment."),this.state=P)}sDTDPI(){this.captureToChar($e)&&(this.text+="?",this.state=q)}sDTDPIEnding(){const ye=this.getCodeNorm();this.text+=String.fromCodePoint(ye),ye===Le&&(this.state=D)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:ye}=this;const{chunk:Pe}=this;e:for(;;)switch(this.getCode()){case v:this.entity+=`${Pe.slice(ye,this.prevI)} +`,ye=this.i;break;case W:{const{entityReturnState:Me}=this,it=this.entity+Pe.slice(ye,this.prevI);this.state=Me;let at;it===""?(this.fail("empty entity name."),at="&;"):(at=this.parseEntity(it),this.entity=""),(Me!==Q||this.textHandler!==void 0)&&(this.text+=at);break e}case g:this.entity+=Pe.slice(ye);break e}}sOpenWaka(){const ye=this.getCode();if(r(ye))this.state=V,this.unget(),this.xmlDeclPossible=!1;else switch(ye){case Se:this.state=qe,this.xmlDeclPossible=!1;break;case Re:this.state=fe,this.openWakaBang="",this.xmlDeclPossible=!1;break;case $e:this.state=Ne;break;default:this.fail("disallowed character in tag name"),this.state=Q,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=ie,this.openWakaBang="";break;case"--":this.state=X,this.openWakaBang="";break;case"DOCTYPE":this.state=S,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(me)&&(this.state=he)}sCommentEnding(){var ye;const Pe=this.getCodeNorm();Pe===me?(this.state=xe,(ye=this.commentHandler)===null||ye===void 0||ye.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(Pe)}`,this.state=X)}sCommentEnded(){const ye=this.getCodeNorm();ye!==Le?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(ye)}`,this.state=X):this.state=Q}sCData(){this.captureToChar(tt)&&(this.state=ae)}sCDataEnding(){const ye=this.getCodeNorm();ye===tt?this.state=Oe:(this.text+=`]${String.fromCodePoint(ye)}`,this.state=ie)}sCDataEnding2(){var ye;const Pe=this.getCodeNorm();switch(Pe){case Le:{(ye=this.cdataHandler)===null||ye===void 0||ye.call(this,this.text),this.text="",this.state=Q;break}case tt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(Pe)}`,this.state=ie}}sPIFirstChar(){const ye=this.getCodeNorm();this.nameStartCheck(ye)?(this.piTarget+=String.fromCodePoint(ye),this.state=ge):ye===$e||s(ye)?(this.fail("processing instruction without a target."),this.state=ye===$e?oe:de):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(ye),this.state=ge)}sPIRest(){const{chunk:ye,i:Pe}=this;for(;;){const Me=this.getCodeNorm();if(Me===g){this.piTarget+=ye.slice(Pe);return}if(!this.nameCheck(Me)){this.piTarget+=ye.slice(Pe,this.prevI);const it=Me===$e;it||s(Me)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=it?k:$):this.state=it?oe:de:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Me));break}}}sPIBody(){if(this.text.length===0){const ye=this.getCodeNorm();ye===$e?this.state=oe:s(ye)||(this.text=String.fromCodePoint(ye))}else this.captureToChar($e)&&(this.state=oe)}sPIEnding(){var ye;const Pe=this.getCodeNorm();if(Pe===Le){const{piTarget:Me}=this;Me.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(ye=this.piHandler)===null||ye===void 0||ye.call(this,{target:Me,body:this.text}),this.piTarget=this.text="",this.state=Q}else Pe===$e?this.text+="?":(this.text+=`?${String.fromCodePoint(Pe)}`,this.state=de);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const ye=this.skipSpaces();if(ye===$e){this.state=k;return}ye!==g&&(this.state=N,this.name=String.fromCodePoint(ye))}sXMLDeclName(){const ye=this.captureTo(De);if(ye===$e){this.state=k,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(s(ye)||ye===Te){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=ye===Te?T:R}}sXMLDeclEq(){const ye=this.getCodeNorm();if(ye===$e){this.state=k,this.fail("XML declaration is incomplete.");return}s(ye)||(ye!==Te&&this.fail("value required."),this.state=T)}sXMLDeclValueStart(){const ye=this.getCodeNorm();if(ye===$e){this.state=k,this.fail("XML declaration is incomplete.");return}s(ye)||(le(ye)?this.q=ye:(this.fail("value must be quoted."),this.q=be),this.state=x)}sXMLDeclValue(){const ye=this.captureTo([this.q,$e]);if(ye===$e){this.state=k,this.text="",this.fail("XML declaration is incomplete.");return}if(ye===g)return;const Pe=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const Me=Pe;this.xmlDecl.version=Me,/^1\.[0-9]+$/.test(Me)?this.opt.forceXMLVersion||this.setXMLVersion(Me):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Pe)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Pe;break;case"standalone":Pe!=="yes"&&Pe!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Pe;break}this.name="",this.state=B}sXMLDeclSeparator(){const ye=this.getCodeNorm();if(ye===$e){this.state=k;return}s(ye)||(this.fail("whitespace required."),this.unget()),this.state=$}sXMLDeclEnding(){var ye;this.getCodeNorm()===Le?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(ye=this.xmldeclHandler)===null||ye===void 0||ye.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=Q):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var ye;const Pe=this.captureNameChars();if(Pe===g)return;const Me=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Me.ns=Object.create(null)),(ye=this.openTagStartHandler)===null||ye===void 0||ye.call(this,Me),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Pe){case Le:this.openTag();break;case Se:this.state=J;break;default:s(Pe)||this.fail("disallowed character in tag name."),this.state=z}}sOpenTagSlash(){this.getCode()===Le?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=z)}sAttrib(){const ye=this.skipSpaces();ye!==g&&(r(ye)?(this.unget(),this.state=Y):ye===Le?this.openTag():ye===Se?this.state=J:this.fail("disallowed character in attribute name."))}sAttribName(){const ye=this.captureNameChars();ye===Te?this.state=ce:s(ye)?this.state=te:ye===Le?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):ye!==g&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const ye=this.skipSpaces();switch(ye){case g:return;case Te:this.state=ce;break;default:this.fail("attribute without value."),this.text="",this.name="",ye===Le?this.openTag():r(ye)?(this.unget(),this.state=Y):(this.fail("disallowed character in attribute name."),this.state=z)}}sAttribValue(){const ye=this.getCodeNorm();le(ye)?(this.q=ye,this.state=Ae):s(ye)||(this.fail("unquoted attribute value."),this.state=Ee,this.unget())}sAttribValueQuoted(){const{q:ye,chunk:Pe}=this;let{i:Me}=this;for(;;)switch(this.getCode()){case ye:this.pushAttrib(this.name,this.text+Pe.slice(Me,this.prevI)),this.name=this.text="",this.q=null,this.state=Ie;return;case Qe:this.text+=Pe.slice(Me,this.prevI),this.state=Z,this.entityReturnState=Ae;return;case H:case v:case F:this.text+=`${Pe.slice(Me,this.prevI)} `,Me=this.i;break;case we:this.text+=Pe.slice(Me,this.prevI),this.fail("disallowed character.");return;case g:this.text+=Pe.slice(Me);return}}sAttribValueClosed(){const ye=this.getCodeNorm();s(ye)?this.state=z:ye===Le?this.openTag():ye===Se?this.state=J:r(ye)?(this.fail("no whitespace between attributes."),this.unget(),this.state=Y):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const ye=this.captureTo(Ue);switch(ye){case Qe:this.state=Z,this.entityReturnState=Ee;break;case we:this.fail("disallowed character.");break;case g:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",ye===Le?this.openTag():this.state=z}}sCloseTag(){const ye=this.captureNameChars();ye===Le?this.closeTag():s(ye)?this.state=G:ye!==g&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case Le:this.closeTag();break;case g:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:ye,forbiddenState:Pe}=this;const{chunk:Me,textHandler:it}=this;e:for(;;)switch(this.getCode()){case we:{if(this.state=K,it!==void 0){const{text:at}=this,Tt=Me.slice(ye,this.prevI);at.length!==0?(it(at+Tt),this.text=""):Tt.length!==0&&it(Tt)}Pe=nt;break e}case Qe:this.state=Z,this.entityReturnState=Q,it!==void 0&&(this.text+=Me.slice(ye,this.prevI)),Pe=nt;break e;case tt:switch(Pe){case nt:Pe=yt;break;case yt:Pe=ft;break;case ft:break;default:throw new Error("impossible state")}break;case Le:Pe===ft&&this.fail('the string "]]>" is disallowed in char data.'),Pe=nt;break;case v:it!==void 0&&(this.text+=`${Me.slice(ye,this.prevI)} +`),ye=this.i,Pe=nt;break;case g:it!==void 0&&(this.text+=Me.slice(ye));break e;default:Pe=nt}this.forbiddenState=Pe}handleTextOutsideRoot(){let{i:ye}=this;const{chunk:Pe,textHandler:Me}=this;let it=!1;e:for(;;){const at=this.getCode();switch(at){case we:{if(this.state=K,Me!==void 0){const{text:Tt}=this,Vt=Pe.slice(ye,this.prevI);Tt.length!==0?(Me(Tt+Vt),this.text=""):Vt.length!==0&&Me(Vt)}break e}case Qe:this.state=Z,this.entityReturnState=Q,Me!==void 0&&(this.text+=Pe.slice(ye,this.prevI)),it=!0;break e;case v:Me!==void 0&&(this.text+=`${Pe.slice(ye,this.prevI)} +`),ye=this.i;break;case g:Me!==void 0&&(this.text+=Pe.slice(ye));break e;default:s(at)||(it=!0)}}it&&(!this.sawRoot&&!this.reportedTextBeforeRoot&&(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(ye,Pe){var Me;const{prefix:it,local:at}=this.qname(ye),Tt={name:ye,prefix:it,local:at,value:Pe};if(this.attribList.push(Tt),(Me=this.attributeHandler)===null||Me===void 0||Me.call(this,Tt),it==="xmlns"){const Vt=Pe.trim();this.currentXMLVersion==="1.0"&&Vt===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[at]=Vt,Fe(this,at,Vt)}else if(ye==="xmlns"){const Vt=Pe.trim();this.topNS[""]=Vt,Fe(this,"",Vt)}}pushAttribPlain(ye,Pe){var Me;const it={name:ye,value:Pe};this.attribList.push(it),(Me=this.attributeHandler)===null||Me===void 0||Me.call(this,it)}end(){var ye,Pe;this.sawRoot||this.fail("document must contain a root element.");const{tags:Me}=this;for(;Me.length>0;){const at=Me.pop();this.fail(`unclosed tag: ${at.name}`)}this.state!==_&&this.state!==Q&&this.fail("unexpected end.");const{text:it}=this;return it.length!==0&&((ye=this.textHandler)===null||ye===void 0||ye.call(this,it),this.text=""),this._closed=!0,(Pe=this.endHandler)===null||Pe===void 0||Pe.call(this),this._init(),this}resolve(ye){var Pe,Me;let it=this.topNS[ye];if(it!==void 0)return it;const{tags:at}=this;for(let Tt=at.length-1;Tt>=0;Tt--)if(it=at[Tt].ns[ye],it!==void 0)return it;return it=this.ns[ye],it!==void 0?it:(Me=(Pe=this.opt).resolvePrefix)===null||Me===void 0?void 0:Me.call(Pe,ye)}qname(ye){const Pe=ye.indexOf(":");if(Pe===-1)return{prefix:"",local:ye};const Me=ye.slice(Pe+1),it=ye.slice(0,Pe);return(it===""||Me===""||Me.includes(":"))&&this.fail(`malformed name: ${ye}.`),{prefix:it,local:Me}}processAttribsNS(){var ye;const{attribList:Pe}=this,Me=this.tag;{const{prefix:Tt,local:Vt}=this.qname(Me.name);Me.prefix=Tt,Me.local=Vt;const tr=Me.uri=(ye=this.resolve(Tt))!==null&&ye!==void 0?ye:"";Tt!==""&&(Tt==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),tr===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(Tt)}.`),Me.uri=Tt))}if(Pe.length===0)return;const{attributes:it}=Me,at=new Set;for(const Tt of Pe){const{name:Vt,prefix:tr,local:di}=Tt;let yn,or;tr===""?(yn=Vt==="xmlns"?y:"",or=Vt):(yn=this.resolve(tr),yn===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(tr)}.`),yn=tr),or=`{${yn}}${di}`),at.has(or)&&this.fail(`duplicate attribute: ${or}.`),at.add(or),Tt.uri=yn,it[Vt]=Tt}this.attribList=[]}processAttribsPlain(){const{attribList:ye}=this,Pe=this.tag.attributes;for(const{name:Me,value:it}of ye)Pe[Me]!==void 0&&this.fail(`duplicate attribute: ${Me}.`),Pe[Me]=it;this.attribList=[]}openTag(){var ye;this.processAttribs();const{tags:Pe}=this,Me=this.tag;Me.isSelfClosing=!1,(ye=this.openTagHandler)===null||ye===void 0||ye.call(this,Me),Pe.push(Me),this.state=Q,this.name=""}openSelfClosingTag(){var ye,Pe,Me;this.processAttribs();const{tags:it}=this,at=this.tag;at.isSelfClosing=!0,(ye=this.openTagHandler)===null||ye===void 0||ye.call(this,at),(Pe=this.closeTagHandler)===null||Pe===void 0||Pe.call(this,at),(this.tag=(Me=it[it.length-1])!==null&&Me!==void 0?Me:null)===null&&(this.closedRoot=!0),this.state=Q,this.name=""}closeTag(){const{tags:ye,name:Pe}=this;if(this.state=Q,this.name="",Pe===""){this.fail("weird empty close tag."),this.text+="";return}const Me=this.closeTagHandler;let it=ye.length;for(;it-- >0;){const at=this.tag=ye.pop();if(this.topNS=at.ns,Me==null||Me(at),at.name===Pe)break;this.fail("unexpected close tag.")}it===0?this.closedRoot=!0:it<0&&(this.fail(`unmatched closing tag: ${Pe}.`),this.text+=``)}parseEntity(ye){if(ye[0]!=="#"){const Me=this.ENTITIES[ye];return Me!==void 0?Me:(this.fail(this.isName(ye)?"undefined entity.":"disallowed character in entity name."),`&${ye};`)}let Pe=NaN;return ye[1]==="x"&&/^#x[0-9a-f]+$/i.test(ye)?Pe=parseInt(ye.slice(2),16):/^#[0-9]+$/.test(ye)&&(Pe=parseInt(ye.slice(1),10)),this.isChar(Pe)?String.fromCodePoint(Pe):(this.fail("malformed character entity."),`&${ye};`)}}return ws.SaxesParser=Ir,ws}var Pl={},fD;function KW(){if(fD)return Pl;fD=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.ParseError=void 0;let t=class extends Error{constructor(u,s){const n=u.saxParser;super(u.trackPosition?`Line ${n.line} column ${n.column+1}: ${s}`:s)}};return Pl.ParseError=t,Pl}var vv={},wv={},hD;function YW(){return hD||(hD=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateIri=t.IriValidationStrategy=void 0;function e(){const o="[!$&'()*+,;=]",l="%[a-fA-F0-9]{2}",c="([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",d=`${c}\\.${c}\\.${c}\\.${c}`,h="[a-fA-F0-9]{1,4}",f=`(${h}:${h}|${d})`,p=`((${h}:){6}${f}|::(${h}:){5}${f}|(${h})?::(${h}:){4}${f}|((${h}:){0,1}${h})?::(${h}:){3}${f}|((${h}:){0,2}${h})?::(${h}:){2}${f}|((${h}:){0,3}${h})?::${h}:${f}|((${h}:){0,4}${h})?::${f}|((${h}:){0,5}${h})?::${h}|((${h}:){0,6}${h})?::)`,y=`v[a-fA-F0-9]+\\.(${o}|${o}|":)+`,b=`\\[(${p}|${y})\\]`,m="[0-9]*",g="[a-zA-Z][a-zA-Z0-9+\\-.]*",_="[-󰀀-󿿽􀀀-􏿽]",A="[a-zA-Z0-9\\-._~ -퟿豈-﷏ﷰ-￯𐀀-🿽𠀀-𯿽𰀀-𿿽񀀀-񏿽񐀀-񟿽񠀀-񯿽񰀀-񿿽򀀀-򏿽򐀀-򟿽򠀀-򯿽򰀀-򿿽󀀀-󏿽󐀀-󟿽󡀀-󯿽]",D=`(${A}|${l}|${o}|[:@])*`,L=`(${D}|[\\/?])*`,E=`(${D}|${_}|[\\/?])*`,O=`(${D})+`,P=`(${D})*`,j="",U=`${O}(\\/${P})*`,M=`\\/(${O}(\\/${P})*)?`,q=`(\\/${P})*`,Q=`(${A}|${l}|${o})*`,Z=`(${b}|${d}|${Q})`,X=`(\\/\\/${`(${`(${A}|${l}|${o}|:)*`}@)?${Z}(:${m})?`}${q}|${M}|${U}|${j})`,he=`^${g}:${X}(\\?${E})?(#${L})?$`;return new RegExp(he,"u")}const u=e(),s=/^[A-Za-z][\d+-.A-Za-z]*:[^\u0000-\u0020"<>\\^`{|}]*$/u;var n;(function(a){a.Strict="strict",a.Pragmatic="pragmatic",a.None="none"})(n=t.IriValidationStrategy||(t.IriValidationStrategy={}));function r(a,o=n.Strict){switch(o){case n.Strict:return u.test(a)?void 0:new Error(`Invalid IRI according to RFC 3987: '${a}'`);case n.Pragmatic:return s.test(a)?void 0:new Error(`Invalid IRI according to RDF Turtle: '${a}'`);case n.None:return;default:return new Error(`Not supported validation strategy "${o}"`)}}t.validateIri=r}(wv)),wv}var pD;function ZW(){return pD||(pD=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(YW(),t)}(vv)),vv}var yD;function eJ(){if(yD)return vs;yD=1,Object.defineProperty(vs,"__esModule",{value:!0}),vs.ParseType=vs.RdfXmlParser=void 0;const t=Pi(),e=Lq(),u=Wt(),s=KW(),n=Et(),r=ZW();let a=class Tr extends u.Transform{constructor(c){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},c&&(Object.assign(this,c),this.options=c),this.dataFactory||(this.dataFactory=new n.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.validateUri!==!1&&(this.validateUri=!0),this.iriValidationStrategy||(this.iriValidationStrategy=this.validateUri?r.IriValidationStrategy.Pragmatic:r.IriValidationStrategy.None),this.saxParser=new e.SaxesParser({xmlns:!0,position:this.trackPosition}),this.attachSaxListeners()}import(c){const d=new u.PassThrough({readableObjectMode:!0});c.on("error",f=>h.emit("error",f)),c.on("data",f=>d.push(f)),c.on("end",()=>d.push(null));const h=d.pipe(new Tr(this.options));return h}_transform(c,d,h){try{this.saxParser.write(c)}catch(f){return h(f)}h()}newParseError(c){return new s.ParseError(this,c)}valueToUri(c,d){return this.uriToNamedNode((0,t.resolve)(c,d.baseIRI))}uriToNamedNode(c){const d=(0,r.validateIri)(c,this.iriValidationStrategy);if(d instanceof Error)throw this.newParseError(d.message);return this.dataFactory.namedNode(c)}validateNcname(c){if(!Tr.NCNAME_MATCHER.test(c))throw this.newParseError(`Not a valid NCName: ${c}`)}attachSaxListeners(){this.saxParser.on("error",c=>this.emit("error",c)),this.saxParser.on("opentag",this.onTag.bind(this)),this.saxParser.on("text",this.onText.bind(this)),this.saxParser.on("cdata",this.onText.bind(this)),this.saxParser.on("closetag",this.onCloseTag.bind(this)),this.saxParser.on("doctype",this.onDoctype.bind(this))}onTag(c){const d=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let h=o.RESOURCE;if(d&&(d.hadChildren=!0,h=d.childrenParseType),d&&d.childrenStringTags){const p=c.name;let y="";for(const v in c.attributes)y+=` ${v}="${c.attributes[v].value}"`;const m=`<${`${p}${y}`}>`;d.childrenStringTags.push(m);const g={childrenStringTags:d.childrenStringTags};g.childrenStringEmitClosingTag=``,this.activeTagStack.push(g);return}const f={};d?(f.language=d.language,f.baseIRI=d.baseIRI):f.baseIRI=this.baseIRI,this.activeTagStack.push(f),h===o.RESOURCE?this.onTagResource(c,f,d,!d):this.onTagProperty(c,f,d)}onTagResource(c,d,h,f){d.childrenParseType=o.PROPERTY;let p=!0;if(c.uri===Tr.RDF){if(!f&&Tr.FORBIDDEN_NODE_ELEMENTS.indexOf(c.local)>=0)throw this.newParseError(`Illegal node element name: ${c.local}`);switch(c.local){case"RDF":d.childrenParseType=o.RESOURCE;case"Description":p=!1}}const y=[],b=[];let m=null,g=!1,v=!1,_=null;for(const w in c.attributes){const S=c.attributes[w];if(h&&S.uri===Tr.RDF)switch(S.local){case"about":if(m)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${S.value} and ${m} where found.`);m=S.value;continue;case"ID":if(m)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${S.value} and ${m} where found.`);this.validateNcname(S.value),m="#"+S.value,g=!0;continue;case"nodeID":if(m)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${S.value} and ${m} where found.`);this.validateNcname(S.value),m=S.value,v=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":_=S.value;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(S.uri===Tr.XML){if(S.local==="lang"){d.language=S.value===""?null:S.value.toLowerCase();continue}else if(S.local==="base"){d.baseIRI=(0,t.resolve)(S.value,d.baseIRI);continue}}S.prefix!=="xml"&&S.prefix!=="xmlns"&&(S.prefix!==""||S.local!=="xmlns")&&S.uri&&(y.push(this.uriToNamedNode(S.uri+S.local)),b.push(S.value))}if(m!==null&&(d.subject=v?this.dataFactory.blankNode(m):this.valueToUri(m,d),g&&this.claimNodeId(d.subject)),d.subject||(d.subject=this.dataFactory.blankNode()),p){const w=this.uriToNamedNode(c.uri+c.local);this.emitTriple(d.subject,this.dataFactory.namedNode(Tr.RDF+"type"),w,h?h.reifiedStatementId:null)}if(h){if(h.predicate)if(h.childrenCollectionSubject){const w=this.dataFactory.blankNode();this.emitTriple(h.childrenCollectionSubject,h.childrenCollectionPredicate,w,h.reifiedStatementId),this.emitTriple(w,this.dataFactory.namedNode(Tr.RDF+"first"),d.subject,d.reifiedStatementId),h.childrenCollectionSubject=w,h.childrenCollectionPredicate=this.dataFactory.namedNode(Tr.RDF+"rest")}else{this.emitTriple(h.subject,h.predicate,d.subject,h.reifiedStatementId);for(let w=0;w=0)throw this.newParseError(`Illegal property element name: ${c.local}`);d.predicateSubPredicates=[],d.predicateSubObjects=[];let f=!1,p=!1,y=null,b=!0;const m=[],g=[];for(const v in c.attributes){const _=c.attributes[v];if(_.uri===Tr.RDF)switch(_.local){case"resource":if(y)throw this.newParseError(`Found both rdf:resource (${_.value}) and rdf:nodeID (${y}).`);if(f)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${_.value})`);d.hadChildren=!0,y=_.value,b=!1;continue;case"datatype":if(p)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${_.value}).`);if(f)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${_.value})`);d.datatype=this.valueToUri(_.value,d);continue;case"nodeID":if(p)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${_.value}).`);if(d.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${_.value}).`);if(f)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${_.value})`);this.validateNcname(_.value),d.hadChildren=!0,y=_.value,b=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(p)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(d.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${d.datatype.value})`);if(y)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${y})`);if(_.value==="Resource"){f=!0,d.childrenParseType=o.PROPERTY;const w=this.dataFactory.blankNode();this.emitTriple(d.subject,d.predicate,w,d.reifiedStatementId),d.subject=w,d.predicate=null}else _.value==="Collection"?(f=!0,d.hadChildren=!0,d.childrenCollectionSubject=d.subject,d.childrenCollectionPredicate=d.predicate,b=!1):_.value==="Literal"&&(f=!0,d.childrenTagsToString=!0,d.childrenStringTags=[]);continue;case"ID":this.validateNcname(_.value),d.reifiedStatementId=this.valueToUri("#"+_.value,d),this.claimNodeId(d.reifiedStatementId);continue}else if(_.uri===Tr.XML&&_.local==="lang"){d.language=_.value===""?null:_.value.toLowerCase();continue}if(_.prefix!=="xml"&&_.prefix!=="xmlns"&&(_.prefix!==""||_.local!=="xmlns")&&_.uri){if(f||d.datatype)throw this.newParseError(`Found illegal rdf:* properties on property element with attribute: ${_.value}`);d.hadChildren=!0,p=!0,m.push(this.uriToNamedNode(_.uri+_.local)),g.push(this.dataFactory.literal(_.value,d.datatype||d.language))}}if(y!==null){const v=d.subject;d.subject=b?this.dataFactory.blankNode(y):this.valueToUri(y,d),this.emitTriple(v,d.predicate,d.subject,d.reifiedStatementId);for(let _=0;_/g,(d,h,f)=>(this.saxParser.ENTITIES[h]=f,""))}};vs.RdfXmlParser=a,a.MIME_TYPE="application/rdf+xml",a.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",a.XML="http://www.w3.org/XML/1998/namespace",a.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"],a.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"],a.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u;var o;return function(l){l[l.RESOURCE=0]="RESOURCE",l[l.PROPERTY=1]="PROPERTY"}(o||(vs.ParseType=o={})),vs}var bD;function tJ(){return bD||(bD=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(eJ(),t)}(bv)),bv}var gD;function rJ(){if(gD)return Il;gD=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.ActorRdfParseRdfXml=void 0;const t=au(),e=tJ();let u=class extends t.ActorRdfParseFixedMediaTypes{constructor(n){super(n)}async runHandle(n){var a;n.data.on("error",o=>r.emit("error",o));const r=n.data.pipe(new e.RdfXmlParser({baseIRI:(a=n.metadata)==null?void 0:a.baseIRI}));return{data:r,metadata:{triples:!0}}}};return Il.ActorRdfParseRdfXml=u,Il}var mD;function nJ(){return mD||(mD=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(rJ(),t)}(yv)),yv}var Sv={},Dl={},Tv={},Av={},_D;function iJ(){return _D||(_D=1,Object.defineProperty(Av,"__esModule",{value:!0})),Av}var Ev={},vD;function aJ(){return vD||(vD=1,Object.defineProperty(Ev,"__esModule",{value:!0})),Ev}var Ov={},wD;function sJ(){return wD||(wD=1,Object.defineProperty(Ov,"__esModule",{value:!0})),Ov}var Nl={},Rv={},Cl={},xv={},Iv={},l1={},SD;function oJ(){return SD||(SD=1,Object.defineProperty(l1,"__esModule",{value:!0}),l1.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}))),l1}var d1={},TD;function uJ(){return TD||(TD=1,Object.defineProperty(d1,"__esModule",{value:!0}),d1.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}))),d1}var Pv={},AD;function ED(){return AD||(AD=1,function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var u=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(r){var a="";return r>65535&&(r-=65536,a+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),a+=String.fromCharCode(r),a};function s(r){var a;return r>=55296&&r<=57343||r>1114111?65533:(a=u.get(r))!==null&&a!==void 0?a:r}t.replaceCodePoint=s;function n(r){return(0,t.fromCodePoint)(s(r))}t.default=n}(Pv)),Pv}var OD;function Ga(){return OD||(OD=1,function(t){var e=I&&I.__createBinding||(Object.create?function(P,j,U,M){M===void 0&&(M=U);var q=Object.getOwnPropertyDescriptor(j,U);(!q||("get"in q?!j.__esModule:q.writable||q.configurable))&&(q={enumerable:!0,get:function(){return j[U]}}),Object.defineProperty(P,M,q)}:function(P,j,U,M){M===void 0&&(M=U),P[M]=j[U]}),u=I&&I.__setModuleDefault||(Object.create?function(P,j){Object.defineProperty(P,"default",{enumerable:!0,value:j})}:function(P,j){P.default=j}),s=I&&I.__importStar||function(P){if(P&&P.__esModule)return P;var j={};if(P!=null)for(var U in P)U!=="default"&&Object.prototype.hasOwnProperty.call(P,U)&&e(j,P,U);return u(j,P),j},n=I&&I.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var r=n(oJ());t.htmlDecodeTree=r.default;var a=n(uJ());t.xmlDecodeTree=a.default;var o=s(ED());t.decodeCodePoint=o.default;var l=ED();Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}});var c;(function(P){P[P.NUM=35]="NUM",P[P.SEMI=59]="SEMI",P[P.EQUALS=61]="EQUALS",P[P.ZERO=48]="ZERO",P[P.NINE=57]="NINE",P[P.LOWER_A=97]="LOWER_A",P[P.LOWER_F=102]="LOWER_F",P[P.LOWER_X=120]="LOWER_X",P[P.LOWER_Z=122]="LOWER_Z",P[P.UPPER_A=65]="UPPER_A",P[P.UPPER_F=70]="UPPER_F",P[P.UPPER_Z=90]="UPPER_Z"})(c||(c={}));var d=32,h;(function(P){P[P.VALUE_LENGTH=49152]="VALUE_LENGTH",P[P.BRANCH_LENGTH=16256]="BRANCH_LENGTH",P[P.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(P){return P>=c.ZERO&&P<=c.NINE}function p(P){return P>=c.UPPER_A&&P<=c.UPPER_F||P>=c.LOWER_A&&P<=c.LOWER_F}function y(P){return P>=c.UPPER_A&&P<=c.UPPER_Z||P>=c.LOWER_A&&P<=c.LOWER_Z||f(P)}function b(P){return P===c.EQUALS||y(P)}var m;(function(P){P[P.EntityStart=0]="EntityStart",P[P.NumericStart=1]="NumericStart",P[P.NumericDecimal=2]="NumericDecimal",P[P.NumericHex=3]="NumericHex",P[P.NamedEntity=4]="NamedEntity"})(m||(m={}));var g;(function(P){P[P.Legacy=0]="Legacy",P[P.Strict=1]="Strict",P[P.Attribute=2]="Attribute"})(g=t.DecodingMode||(t.DecodingMode={}));var v=function(){function P(j,U,M){this.decodeTree=j,this.emitCodePoint=U,this.errors=M,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=g.Strict}return P.prototype.startEntity=function(j){this.decodeMode=j,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},P.prototype.write=function(j,U){switch(this.state){case m.EntityStart:return j.charCodeAt(U)===c.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(j,U+1)):(this.state=m.NamedEntity,this.stateNamedEntity(j,U));case m.NumericStart:return this.stateNumericStart(j,U);case m.NumericDecimal:return this.stateNumericDecimal(j,U);case m.NumericHex:return this.stateNumericHex(j,U);case m.NamedEntity:return this.stateNamedEntity(j,U)}},P.prototype.stateNumericStart=function(j,U){return U>=j.length?-1:(j.charCodeAt(U)|d)===c.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(j,U+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(j,U))},P.prototype.addToNumericResult=function(j,U,M,q){if(U!==M){var Q=M-U;this.result=this.result*Math.pow(q,Q)+parseInt(j.substr(U,Q),q),this.consumed+=Q}},P.prototype.stateNumericHex=function(j,U){for(var M=U;U>14;U>14,Q!==0){if(Z===c.SEMI)return this.emitNamedEntityData(this.treeIndex,Q,this.consumed+this.excess);this.decodeMode!==g.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},P.prototype.emitNotTerminatedNamedEntity=function(){var j,U=this,M=U.result,q=U.decodeTree,Q=(q[M]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(M,Q,this.consumed),(j=this.errors)===null||j===void 0||j.missingSemicolonAfterCharacterReference(),this.consumed},P.prototype.emitNamedEntityData=function(j,U,M){var q=this.decodeTree;return this.emitCodePoint(U===1?q[j]&~h.VALUE_LENGTH:q[j+1],M),U===3&&this.emitCodePoint(q[j+2],M),M},P.prototype.end=function(){var j;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(j=this.errors)===null||j===void 0||j.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},P}();t.EntityDecoder=v;function _(P){var j="",U=new v(P,function(M){return j+=(0,o.fromCodePoint)(M)});return function(q,Q){for(var Z=0,K=0;(K=q.indexOf("&",K))>=0;){j+=q.slice(Z,K),U.startEntity(Q);var fe=U.write(q,K+1);if(fe<0){Z=K+U.end();break}Z=K+fe,K=fe===0?Z+1:Z}var X=j+q.slice(Z);return j="",X}}function w(P,j,U,M){var q=(j&h.BRANCH_LENGTH)>>7,Q=j&h.JUMP_TABLE;if(q===0)return Q!==0&&M===Q?U:-1;if(Q){var Z=M-Q;return Z<0||Z>=q?-1:P[U+Z]-1}for(var K=U,fe=K+q-1;K<=fe;){var X=K+fe>>>1,he=P[X];if(heM)fe=X-1;else return P[X+q]}return-1}t.determineBranch=w;var S=_(r.default),A=_(a.default);function D(P,j){return j===void 0&&(j=g.Legacy),S(P,j)}t.decodeHTML=D;function L(P){return S(P,g.Attribute)}t.decodeHTMLAttribute=L;function E(P){return S(P,g.Strict)}t.decodeHTMLStrict=E;function O(P){return A(P,g.Strict)}t.decodeXML=O}(Iv)),Iv}var RD;function Mq(){return RD||(RD=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Ga(),u;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(u||(u={}));var s;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(s||(s={}));function n(f){return f===u.Space||f===u.NewLine||f===u.Tab||f===u.FormFeed||f===u.CarriageReturn}function r(f){return f===u.Slash||f===u.Gt||n(f)}function a(f){return f>=u.Zero&&f<=u.Nine}function o(f){return f>=u.LowerA&&f<=u.LowerZ||f>=u.UpperA&&f<=u.UpperZ}function l(f){return f>=u.UpperA&&f<=u.UpperF||f>=u.LowerA&&f<=u.LowerF}var c;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(c=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(p,y){var b=p.xmlMode,m=b===void 0?!1:b,g=p.decodeEntities,v=g===void 0?!0:g;this.cbs=y,this.state=s.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=s.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=v,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=s.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=s.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=s.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===u.Amp&&(this.state=s.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(p){var y=this.sequenceIndex===this.currentSequence.length,b=y?r(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=s.InTagName,this.stateInTagName(p)},f.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===u.Gt||n(p)){var y=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==u.Semi)this.trieIndex+=b;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(p){(p|32)===u.LowerX?(this.entityExcess++,this.state=s.InHexEntity):(this.state=s.InNumericEntity,this.stateInNumericEntity(p))},f.prototype.emitNumericEntity=function(p){var y=this.index-this.entityExcess-1,b=y+2+ +(this.state===s.InHexEntity);b!==this.index&&(y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(p){p===u.Semi?this.emitNumericEntity(!0):a(p)?(this.entityResult=this.entityResult*10+(p-u.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(p){p===u.Semi?this.emitNumericEntity(!0):a(p)?(this.entityResult=this.entityResult*16+(p-u.Zero),this.entityExcess++):l(p)?(this.entityResult=this.entityResult*16+((p|32)-u.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===s.Text||this.baseState===s.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===s.Text||this.state===s.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===s.InAttributeValueDq||this.state===s.InAttributeValueSq||this.state===s.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index0&&A.has(this.stack[this.stack.length-1]);){var D=this.stack.pop();(_=(v=this.cbs).onclosetag)===null||_===void 0||_.call(v,D,!0)}this.isVoidElement(g)||(this.stack.push(g),f.has(g)?this.foreignContext.push(!0):p.has(g)&&this.foreignContext.push(!1)),(S=(w=this.cbs).onopentagname)===null||S===void 0||S.call(w,g),this.cbs.onopentag&&(this.attribs={})},m.prototype.endOpenTag=function(g){var v,_;this.startIndex=this.openTagStart,this.attribs&&((_=(v=this.cbs).onopentag)===null||_===void 0||_.call(v,this.tagname,this.attribs,g),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},m.prototype.onopentagend=function(g){this.endIndex=g,this.endOpenTag(!1),this.startIndex=g+1},m.prototype.onclosetag=function(g,v){var _,w,S,A,D,L;this.endIndex=v;var E=this.getSlice(g,v);if(this.lowerCaseTagNames&&(E=E.toLowerCase()),(f.has(E)||p.has(E))&&this.foreignContext.pop(),this.isVoidElement(E))!this.options.xmlMode&&E==="br"&&((w=(_=this.cbs).onopentagname)===null||w===void 0||w.call(_,"br"),(A=(S=this.cbs).onopentag)===null||A===void 0||A.call(S,"br",{},!0),(L=(D=this.cbs).onclosetag)===null||L===void 0||L.call(D,"br",!1));else{var O=this.stack.lastIndexOf(E);if(O!==-1)if(this.cbs.onclosetag)for(var P=this.stack.length-O;P--;)this.cbs.onclosetag(this.stack.pop(),P!==0);else this.stack.length=O;else!this.options.xmlMode&&E==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=v+1},m.prototype.onselfclosingtag=function(g){this.endIndex=g,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=g+1):this.onopentagend(g)},m.prototype.closeCurrentTag=function(g){var v,_,w=this.tagname;this.endOpenTag(g),this.stack[this.stack.length-1]===w&&((_=(v=this.cbs).onclosetag)===null||_===void 0||_.call(v,w,!g),this.stack.pop())},m.prototype.onattribname=function(g,v){this.startIndex=g;var _=this.getSlice(g,v);this.attribname=this.lowerCaseAttributeNames?_.toLowerCase():_},m.prototype.onattribdata=function(g,v){this.attribvalue+=this.getSlice(g,v)},m.prototype.onattribentity=function(g){this.attribvalue+=(0,n.fromCodePoint)(g)},m.prototype.onattribend=function(g,v){var _,w;this.endIndex=v,(w=(_=this.cbs).onattribute)===null||w===void 0||w.call(_,this.attribname,this.attribvalue,g===s.QuoteType.Double?'"':g===s.QuoteType.Single?"'":g===s.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},m.prototype.getInstructionName=function(g){var v=g.search(y),_=v<0?g:g.substr(0,v);return this.lowerCaseTagNames&&(_=_.toLowerCase()),_},m.prototype.ondeclaration=function(g,v){this.endIndex=v;var _=this.getSlice(g,v);if(this.cbs.onprocessinginstruction){var w=this.getInstructionName(_);this.cbs.onprocessinginstruction("!".concat(w),"!".concat(_))}this.startIndex=v+1},m.prototype.onprocessinginstruction=function(g,v){this.endIndex=v;var _=this.getSlice(g,v);if(this.cbs.onprocessinginstruction){var w=this.getInstructionName(_);this.cbs.onprocessinginstruction("?".concat(w),"?".concat(_))}this.startIndex=v+1},m.prototype.oncomment=function(g,v,_){var w,S,A,D;this.endIndex=v,(S=(w=this.cbs).oncomment)===null||S===void 0||S.call(w,this.getSlice(g,v-_)),(D=(A=this.cbs).oncommentend)===null||D===void 0||D.call(A),this.startIndex=v+1},m.prototype.oncdata=function(g,v,_){var w,S,A,D,L,E,O,P,j,U;this.endIndex=v;var M=this.getSlice(g,v-_);this.options.xmlMode||this.options.recognizeCDATA?((S=(w=this.cbs).oncdatastart)===null||S===void 0||S.call(w),(D=(A=this.cbs).ontext)===null||D===void 0||D.call(A,M),(E=(L=this.cbs).oncdataend)===null||E===void 0||E.call(L)):((P=(O=this.cbs).oncomment)===null||P===void 0||P.call(O,"[CDATA[".concat(M,"]]")),(U=(j=this.cbs).oncommentend)===null||U===void 0||U.call(j)),this.startIndex=v+1},m.prototype.onend=function(){var g,v;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var _=this.stack.length;_>0;this.cbs.onclosetag(this.stack[--_],!0));}(v=(g=this.cbs).onend)===null||v===void 0||v.call(g)},m.prototype.reset=function(){var g,v,_,w;(v=(g=this.cbs).onreset)===null||v===void 0||v.call(g),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(w=(_=this.cbs).onparserinit)===null||w===void 0||w.call(_,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},m.prototype.parseComplete=function(g){this.reset(),this.end(g)},m.prototype.getSlice=function(g,v){for(;g-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var _=this.buffers[0].slice(g-this.bufferOffset,v-this.bufferOffset);v-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),_+=this.buffers[0].slice(0,v-this.bufferOffset);return _},m.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},m.prototype.write=function(g){var v,_;if(this.ended){(_=(v=this.cbs).onerror)===null||_===void 0||_.call(v,new Error(".write() after done!"));return}this.buffers.push(g),this.tokenizer.running&&(this.tokenizer.write(g),this.writeIndex++)},m.prototype.end=function(g){var v,_;if(this.ended){(_=(v=this.cbs).onerror)===null||_===void 0||_.call(v,new Error(".end() after done!"));return}g&&this.write(g),this.ended=!0,this.tokenizer.end()},m.prototype.pause=function(){this.tokenizer.pause()},m.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"childNodes",{get:function(){return this.children},set:function(D){this.children=D},enumerable:!1,configurable:!0}),A}(s);Ft.NodeWithChildren=l;var c=function(S){t(A,S);function A(){var D=S!==null&&S.apply(this,arguments)||this;return D.type=u.ElementType.CDATA,D}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),A}(l);Ft.CDATA=c;var d=function(S){t(A,S);function A(){var D=S!==null&&S.apply(this,arguments)||this;return D.type=u.ElementType.Root,D}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),A}(l);Ft.Document=d;var h=function(S){t(A,S);function A(D,L,E,O){E===void 0&&(E=[]),O===void 0&&(O=D==="script"?u.ElementType.Script:D==="style"?u.ElementType.Style:u.ElementType.Tag);var P=S.call(this,E)||this;return P.name=D,P.attribs=L,P.type=O,P}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"tagName",{get:function(){return this.name},set:function(D){this.name=D},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"attributes",{get:function(){var D=this;return Object.keys(this.attribs).map(function(L){var E,O;return{name:L,value:D.attribs[L],namespace:(E=D["x-attribsNamespace"])===null||E===void 0?void 0:E[L],prefix:(O=D["x-attribsPrefix"])===null||O===void 0?void 0:O[L]}})},enumerable:!1,configurable:!0}),A}(l);Ft.Element=h;function f(S){return(0,u.isTag)(S)}Ft.isTag=f;function p(S){return S.type===u.ElementType.CDATA}Ft.isCDATA=p;function y(S){return S.type===u.ElementType.Text}Ft.isText=y;function b(S){return S.type===u.ElementType.Comment}Ft.isComment=b;function m(S){return S.type===u.ElementType.Directive}Ft.isDirective=m;function g(S){return S.type===u.ElementType.Root}Ft.isDocument=g;function v(S){return Object.prototype.hasOwnProperty.call(S,"children")}Ft.hasChildren=v;function _(S,A){A===void 0&&(A=!1);var D;if(y(S))D=new r(S.data);else if(b(S))D=new a(S.data);else if(f(S)){var L=A?w(S.children):[],E=new h(S.name,e({},S.attribs),L);L.forEach(function(U){return U.parent=E}),S.namespace!=null&&(E.namespace=S.namespace),S["x-attribsNamespace"]&&(E["x-attribsNamespace"]=e({},S["x-attribsNamespace"])),S["x-attribsPrefix"]&&(E["x-attribsPrefix"]=e({},S["x-attribsPrefix"])),D=E}else if(p(S)){var L=A?w(S.children):[],O=new c(L);L.forEach(function(M){return M.parent=O}),D=O}else if(g(S)){var L=A?w(S.children):[],P=new d(L);L.forEach(function(M){return M.parent=P}),S["x-mode"]&&(P["x-mode"]=S["x-mode"]),D=P}else if(m(S)){var j=new o(S.name,S.data);S["x-name"]!=null&&(j["x-name"]=S["x-name"],j["x-publicId"]=S["x-publicId"],j["x-systemId"]=S["x-systemId"]),D=j}else throw new Error("Not implemented yet: ".concat(S.type));return D.startIndex=S.startIndex,D.endIndex=S.endIndex,S.sourceCodeLocation!=null&&(D.sourceCodeLocation=S.sourceCodeLocation),D}Ft.cloneNode=_;function w(S){for(var A=S.map(function(L){return _(L,!0)}),D=1;D$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(n,r){return n.codePointAt(r)}:function(n,r){return(n.charCodeAt(r)&64512)===55296?(n.charCodeAt(r)-55296)*1024+n.charCodeAt(r+1)-56320+65536:n.charCodeAt(r)};function u(n){for(var r="",a=0,o;(o=t.xmlReplacer.exec(n))!==null;){var l=o.index,c=n.charCodeAt(l),d=e.get(c);d!==void 0?(r+=n.substring(a,l)+d,a=l+1):(r+="".concat(n.substring(a,l),"&#x").concat((0,t.getCodePoint)(n,l).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((c&64512)===55296))}return r+n.substr(a)}t.encodeXML=u,t.escape=u;function s(n,r){return function(o){for(var l,c=0,d="";l=n.exec(o);)c!==l.index&&(d+=o.substring(c,l.index)),d+=r.get(l[0].charCodeAt(0)),c=l.index+1;return d+o.substring(c)}}t.escapeUTF8=s(/[&<>'"]/g,e),t.escapeAttribute=s(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=s(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(Lv)),Lv}var MD;function FD(){if(MD)return Ss;MD=1;var t=I&&I.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.encodeNonAsciiHTML=Ss.encodeHTML=void 0;var e=t(cJ()),u=a3(),s=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function n(o){return a(s,o)}Ss.encodeHTML=n;function r(o){return a(u.xmlReplacer,o)}Ss.encodeNonAsciiHTML=r;function a(o,l){for(var c="",d=0,h;(h=o.exec(l))!==null;){var f=h.index;c+=l.substring(d,f);var p=l.charCodeAt(f),y=e.default.get(p);if(typeof y=="object"){if(f+10&&(D+=h(w.children,S)),(S.xmlMode||!d.has(w.name))&&(D+=""))),D}function m(w){return"<".concat(w.data,">")}function g(w,S){var A,D=w.data||"";return((A=S.encodeEntities)!==null&&A!==void 0?A:S.decodeEntities)!==!1&&!(!S.xmlMode&&w.parent&&o.has(w.parent.name))&&(D=S.xmlMode||S.encodeEntities!=="utf8"?(0,r.encodeXML)(D):(0,r.escapeText)(D)),D}function v(w){return"")}function _(w){return"")}return go}var HD;function Fq(){if(HD)return zn;HD=1;var t=I&&I.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(zn,"__esModule",{value:!0}),zn.innerText=zn.textContent=zn.getText=zn.getInnerHTML=zn.getOuterHTML=void 0;var e=ui(),u=t(fJ()),s=Zs();function n(c,d){return(0,u.default)(c,d)}zn.getOuterHTML=n;function r(c,d){return(0,e.hasChildren)(c)?c.children.map(function(h){return n(h,d)}).join(""):""}zn.getInnerHTML=r;function a(c){return Array.isArray(c)?c.map(a).join(""):(0,e.isTag)(c)?c.name==="br"?` +`:a(c.children):(0,e.isCDATA)(c)?a(c.children):(0,e.isText)(c)?c.data:""}zn.getText=a;function o(c){return Array.isArray(c)?c.map(o).join(""):(0,e.hasChildren)(c)&&!(0,e.isComment)(c)?o(c.children):(0,e.isText)(c)?c.data:""}zn.textContent=o;function l(c){return Array.isArray(c)?c.map(l).join(""):(0,e.hasChildren)(c)&&(c.type===s.ElementType.Tag||(0,e.isCDATA)(c))?l(c.children):(0,e.isText)(c)?c.data:""}return zn.innerText=l,zn}var $r={},$D;function hJ(){if($D)return $r;$D=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.prevElementSibling=$r.nextElementSibling=$r.getName=$r.hasAttrib=$r.getAttributeValue=$r.getSiblings=$r.getParent=$r.getChildren=void 0;var t=ui();function e(c){return(0,t.hasChildren)(c)?c.children:[]}$r.getChildren=e;function u(c){return c.parent||null}$r.getParent=u;function s(c){var d,h,f=u(c);if(f!=null)return e(f);for(var p=[c],y=c.prev,b=c.next;y!=null;)p.unshift(y),d=y,y=d.prev;for(;b!=null;)p.push(b),h=b,b=h.next;return p}$r.getSiblings=s;function n(c,d){var h;return(h=c.attribs)===null||h===void 0?void 0:h[d]}$r.getAttributeValue=n;function r(c,d){return c.attribs!=null&&Object.prototype.hasOwnProperty.call(c.attribs,d)&&c.attribs[d]!=null}$r.hasAttrib=r;function a(c){return c.name}$r.getName=a;function o(c){for(var d,h=c.next;h!==null&&!(0,t.isTag)(h);)d=h,h=d.next;return h}$r.nextElementSibling=o;function l(c){for(var d,h=c.prev;h!==null&&!(0,t.isTag)(h);)d=h,h=d.prev;return h}return $r.prevElementSibling=l,$r}var vn={},QD;function pJ(){if(QD)return vn;QD=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.prepend=vn.prependChild=vn.append=vn.appendChild=vn.replaceElement=vn.removeElement=void 0;function t(a){if(a.prev&&(a.prev.next=a.next),a.next&&(a.next.prev=a.prev),a.parent){var o=a.parent.children,l=o.lastIndexOf(a);l>=0&&o.splice(l,1)}a.next=null,a.prev=null,a.parent=null}vn.removeElement=t;function e(a,o){var l=o.prev=a.prev;l&&(l.next=o);var c=o.next=a.next;c&&(c.prev=o);var d=o.parent=a.parent;if(d){var h=d.children;h[h.lastIndexOf(a)]=o,a.parent=null}}vn.replaceElement=e;function u(a,o){if(t(o),o.next=null,o.parent=a,a.children.push(o)>1){var l=a.children[a.children.length-2];l.next=o,o.prev=l}else o.prev=null}vn.appendChild=u;function s(a,o){t(o);var l=a.parent,c=a.next;if(o.next=c,o.prev=a,a.next=o,o.parent=l,c){if(c.prev=o,l){var d=l.children;d.splice(d.lastIndexOf(c),0,o)}}else l&&l.children.push(o)}vn.append=s;function n(a,o){if(t(o),o.parent=a,o.prev=null,a.children.unshift(o)!==1){var l=a.children[1];l.prev=o,o.next=l}else o.next=null}vn.prependChild=n;function r(a,o){t(o);var l=a.parent;if(l){var c=l.children;c.splice(c.indexOf(a),0,o)}a.prev&&(a.prev.next=o),o.parent=l,o.prev=a.prev,o.next=a,a.prev=o}return vn.prepend=r,vn}var wn={},VD;function qq(){if(VD)return wn;VD=1,Object.defineProperty(wn,"__esModule",{value:!0}),wn.findAll=wn.existsOne=wn.findOne=wn.findOneChild=wn.find=wn.filter=void 0;var t=ui();function e(o,l,c,d){return c===void 0&&(c=!0),d===void 0&&(d=1/0),u(o,Array.isArray(l)?l:[l],c,d)}wn.filter=e;function u(o,l,c,d){for(var h=[],f=[l],p=[0];;){if(p[0]>=f[0].length){if(p.length===1)return h;f.shift(),p.shift();continue}var y=f[0][p[0]++];if(o(y)&&(h.push(y),--d<=0))return h;c&&(0,t.hasChildren)(y)&&y.children.length>0&&(p.unshift(0),f.unshift(y.children))}}wn.find=u;function s(o,l){return l.find(o)}wn.findOneChild=s;function n(o,l,c){c===void 0&&(c=!0);for(var d=null,h=0;h0&&(d=n(o,f.children,!0));else continue}return d}wn.findOne=n;function r(o,l){return l.some(function(c){return(0,t.isTag)(c)&&(o(c)||r(o,c.children))})}wn.existsOne=r;function a(o,l){for(var c=[],d=[l],h=[0];;){if(h[0]>=d[0].length){if(d.length===1)return c;d.shift(),h.shift();continue}var f=d[0][h[0]++];(0,t.isTag)(f)&&(o(f)&&c.push(f),f.children.length>0&&(h.unshift(0),d.unshift(f.children)))}}return wn.findAll=a,wn}var Gn={},kD;function Bq(){if(kD)return Gn;kD=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.getElementsByTagType=Gn.getElementsByTagName=Gn.getElementById=Gn.getElements=Gn.testElement=void 0;var t=ui(),e=qq(),u={tag_name:function(h){return typeof h=="function"?function(f){return(0,t.isTag)(f)&&h(f.name)}:h==="*"?t.isTag:function(f){return(0,t.isTag)(f)&&f.name===h}},tag_type:function(h){return typeof h=="function"?function(f){return h(f.type)}:function(f){return f.type===h}},tag_contains:function(h){return typeof h=="function"?function(f){return(0,t.isText)(f)&&h(f.data)}:function(f){return(0,t.isText)(f)&&f.data===h}}};function s(h,f){return typeof f=="function"?function(p){return(0,t.isTag)(p)&&f(p.attribs[h])}:function(p){return(0,t.isTag)(p)&&p.attribs[h]===f}}function n(h,f){return function(p){return h(p)||f(p)}}function r(h){var f=Object.keys(h).map(function(p){var y=h[p];return Object.prototype.hasOwnProperty.call(u,p)?u[p](y):s(p,y)});return f.length===0?null:f.reduce(n)}function a(h,f){var p=r(h);return p?p(f):!0}Gn.testElement=a;function o(h,f,p,y){y===void 0&&(y=1/0);var b=r(h);return b?(0,e.filter)(b,f,p,y):[]}Gn.getElements=o;function l(h,f,p){return p===void 0&&(p=!0),Array.isArray(f)||(f=[f]),(0,e.findOne)(s("id",h),f,p)}Gn.getElementById=l;function c(h,f,p,y){return p===void 0&&(p=!0),y===void 0&&(y=1/0),(0,e.filter)(u.tag_name(h),f,p,y)}Gn.getElementsByTagName=c;function d(h,f,p,y){return p===void 0&&(p=!0),y===void 0&&(y=1/0),(0,e.filter)(u.tag_type(h),f,p,y)}return Gn.getElementsByTagType=d,Gn}var Mv={},zD;function yJ(){return zD||(zD=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var e=ui();function u(a){for(var o=a.length;--o>=0;){var l=a[o];if(o>0&&a.lastIndexOf(l,o-1)>=0){a.splice(o,1);continue}for(var c=l.parent;c;c=c.parent)if(a.includes(c)){a.splice(o,1);break}}return a}t.removeSubsets=u;var s;(function(a){a[a.DISCONNECTED=1]="DISCONNECTED",a[a.PRECEDING=2]="PRECEDING",a[a.FOLLOWING=4]="FOLLOWING",a[a.CONTAINS=8]="CONTAINS",a[a.CONTAINED_BY=16]="CONTAINED_BY"})(s=t.DocumentPosition||(t.DocumentPosition={}));function n(a,o){var l=[],c=[];if(a===o)return 0;for(var d=(0,e.hasChildren)(a)?a:a.parent;d;)l.unshift(d),d=d.parent;for(d=(0,e.hasChildren)(o)?o:o.parent;d;)c.unshift(d),d=d.parent;for(var h=Math.min(l.length,c.length),f=0;fy.indexOf(m)?p===o?s.FOLLOWING|s.CONTAINED_BY:s.FOLLOWING:p===a?s.PRECEDING|s.CONTAINS:s.PRECEDING}t.compareDocumentPosition=n;function r(a){return a=a.filter(function(o,l,c){return!c.includes(o,l+1)}),a.sort(function(o,l){var c=n(o,l);return c&s.PRECEDING?-1:c&s.FOLLOWING?1:0}),a}t.uniqueSort=r}(Mv)),Mv}var jl={},GD;function bJ(){if(GD)return jl;GD=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.getFeed=void 0;var t=Fq(),e=Bq();function u(f){var p=l(h,f);return p?p.name==="feed"?s(p):n(p):null}jl.getFeed=u;function s(f){var p,y=f.children,b={type:"atom",items:(0,e.getElementsByTagName)("entry",y).map(function(v){var _,w=v.children,S={media:o(w)};d(S,"id","id",w),d(S,"title","title",w);var A=(_=l("link",w))===null||_===void 0?void 0:_.attribs.href;A&&(S.link=A);var D=c("summary",w)||c("content",w);D&&(S.description=D);var L=c("updated",w);return L&&(S.pubDate=new Date(L)),S})};d(b,"id","id",y),d(b,"title","title",y);var m=(p=l("link",y))===null||p===void 0?void 0:p.attribs.href;m&&(b.link=m),d(b,"description","subtitle",y);var g=c("updated",y);return g&&(b.updated=new Date(g)),d(b,"author","email",y,!0),b}function n(f){var p,y,b=(y=(p=l("channel",f.children))===null||p===void 0?void 0:p.children)!==null&&y!==void 0?y:[],m={type:f.name.substr(0,3),id:"",items:(0,e.getElementsByTagName)("item",f.children).map(function(v){var _=v.children,w={media:o(_)};d(w,"id","guid",_),d(w,"title","title",_),d(w,"link","link",_),d(w,"description","description",_);var S=c("pubDate",_)||c("dc:date",_);return S&&(w.pubDate=new Date(S)),w})};d(m,"title","title",b),d(m,"link","link",b),d(m,"description","description",b);var g=c("lastBuildDate",b);return g&&(m.updated=new Date(g)),d(m,"author","managingEditor",b,!0),m}var r=["url","type","lang"],a=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function o(f){return(0,e.getElementsByTagName)("media:content",f).map(function(p){for(var y=p.attribs,b={medium:y.medium,isDefault:!!y.isDefault},m=0,g=r;m0){const c=Object.assign(Object.assign({},a),l);if(r.prefix){let d;for(;d=s.PREFIX_REGEX.exec(r.prefix);)c[d[1]]=d[2]}return c}else return a}static expandPrefixedTerm(r,a){const o=r.indexOf(":");let l,c;if(o>=0&&(l=r.substr(0,o),c=r.substr(o+1)),l==="")return"http://www.w3.org/1999/xhtml/vocab#"+c;if(l){const d=a.prefixesAll[l];if(d)return d+c}if(r){const d=a.prefixesAll[r.toLocaleLowerCase()];if(d)return d}return r}static isValidIri(r){return s.IRI_REGEX.test(r)}static contentTypeToProfile(r){return e.RDFA_CONTENTTYPES[r]||""}getBaseIRI(r){let a=r;const o=a.indexOf("#");return o>=0&&(a=a.substr(0,o)),this.dataFactory.namedNode((0,t.resolve)(a,this.baseIRI.value))}getResourceOrBaseIri(r,a){return r===!0?this.getBaseIriTerm(a):r}getBaseIriTerm(r){return r.localBaseIRI||this.baseIRI}createVocabIris(r,a,o,l){return r.split(/\s+/).filter(c=>c&&(o||c.indexOf(":")>=0)).map(c=>this.createIri(c,a,!0,!0,l)).filter(c=>c!=null)}createLiteral(r,a){if(a.interpretObjectAsTime&&!a.datatype){for(const o of s.TIME_REGEXES)if(r.match(o.regex)){a.datatype=this.dataFactory.namedNode(s.XSD+o.type);break}}return this.dataFactory.literal(r,a.datatype||a.language)}createBlankNode(){return this.blankNodeFactory?this.blankNodeFactory():this.dataFactory.blankNode()}createIri(r,a,o,l,c){if(r=r||"",!l)return o||(r=(0,t.resolve)(r,this.getBaseIriTerm(a).value)),s.isValidIri(r)?this.dataFactory.namedNode(r):null;if(r.length>0&&r[0]==="["&&r[r.length-1]==="]"&&(r=r.substr(1,r.length-2),r.indexOf(":")<0))return null;if(r.startsWith("_:"))return c?this.dataFactory.blankNode(r.substr(2)||"b_identity"):null;if(o&&a.vocab&&r.indexOf(":")<0)return this.dataFactory.namedNode(a.vocab+r);let d=s.expandPrefixedTerm(r,a);return o?r!==d&&(d=(0,t.resolve)(d,this.baseIRIDocument.value)):d=(0,t.resolve)(d,this.getBaseIriTerm(a).value),s.isValidIri(d)?this.dataFactory.namedNode(d):null}}return Ll.Util=s,s.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",s.XSD="http://www.w3.org/2001/XMLSchema#",s.RDFA="http://www.w3.org/ns/rdfa#",s.PREFIX_REGEX=/\s*([^:\s]*)*:\s*([^\s]*)*\s*/g,s.TIME_REGEXES=[{regex:/^-?P([0-9]+Y)?([0-9]+M)?([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+(\.[0-9])?S)?)?$/,type:"duration"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"dateTime"},{regex:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,type:"date"},{regex:/^[0-9][0-9]:[0-9][0-9]:[0-9][0-9]((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,type:"time"},{regex:/^[0-9]+-[0-9][0-9]$/,type:"gYearMonth"},{regex:/^[0-9]+$/,type:"gYear"}],s.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^ "<>{}|\\\[\]`]*$/,Ll}var YD;function vJ(){if(YD)return Nl;YD=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.RdfaParser=void 0;const t=gJ(),e=Wt(),u=mJ,s=_J,n=WT(),r=Uq();let a=class Hq extends e.Transform{constructor(l){super({readableObjectMode:!0}),this.activeTagStack=[],l=l||{},this.options=l,this.util=new r.Util(l.dataFactory,l.baseIRI),this.defaultGraph=l.defaultGraph||this.util.dataFactory.defaultGraph();const c=l.contentType?r.Util.contentTypeToProfile(l.contentType):l.profile||"";this.features=l.features||n.RDFA_FEATURES[c],this.htmlParseListener=l.htmlParseListener,this.rdfaPatterns=this.features.copyRdfaPatterns?{}:null,this.pendingRdfaPatternCopies=this.features.copyRdfaPatterns?{}:null,this.parser=this.initializeParser(c==="xml"),this.activeTagStack.push({incompleteTriples:[],inlist:!1,language:l.language,listMapping:{},listMappingLocal:{},name:"",prefixesAll:Object.assign(Object.assign({},s["@context"]),this.features.xhtmlInitialContext?u["@context"]:{}),prefixesCustom:{},skipElement:!1,vocab:l.vocab})}import(l){const c=new e.PassThrough({readableObjectMode:!0});l.on("error",h=>d.emit("error",h)),l.on("data",h=>c.push(h)),l.on("end",()=>c.push(null));const d=c.pipe(new Hq(this.options));return d}_transform(l,c,d){this.parser.write(l.toString()),d()}_flush(l){this.parser.end(),l()}onTagOpen(l,c){let d=this.activeTagStack.length-1;for(;d>0&&this.activeTagStack[d].skipElement;)d--;let h=this.activeTagStack[d];d!==this.activeTagStack.length-1&&(h=Object.assign(Object.assign({},h),{language:this.activeTagStack[this.activeTagStack.length-1].language,prefixesAll:this.activeTagStack[this.activeTagStack.length-1].prefixesAll,prefixesCustom:this.activeTagStack[this.activeTagStack.length-1].prefixesCustom,vocab:this.activeTagStack[this.activeTagStack.length-1].vocab}));const f={collectChildTags:h.collectChildTags,incompleteTriples:[],inlist:"inlist"in c,listMapping:[],listMappingLocal:h.listMapping,localBaseIRI:h.localBaseIRI,name:l,prefixesAll:null,prefixesCustom:null,skipElement:!1};if(this.activeTagStack.push(f),f.collectChildTags){for(const S of Object.keys(h.prefixesCustom).sort()){const A=h.prefixesCustom[S],D=S===""?"xmlns":"xmlns:"+S;D in c||(c[D]=A)}const w=Object.keys(c).map(S=>`${S}="${c[S]}"`).join(" ");if(f.text=[`<${l}${w?" "+w:""}>`],this.features.skipHandlingXmlLiteralChildren)return}let p=!0,y=!0;if(this.features.onlyAllowUriRelRevIfProperty&&("property"in c&&"rel"in c&&(p=!1,c.rel.indexOf(":")<0&&delete c.rel),"property"in c&&"rev"in c&&(y=!1,c.rev.indexOf(":")<0&&delete c.rev)),this.features.copyRdfaPatterns){if(h.collectedPatternTag){const w={attributes:c,children:[],name:l,referenced:!1,rootPattern:!1,text:[]};h.collectedPatternTag.children.push(w),f.collectedPatternTag=w;return}if(c.typeof==="rdfa:Pattern"){f.collectedPatternTag={attributes:c,children:[],name:l,parentTag:h,referenced:!1,rootPattern:!0,text:[]};return}if(c.property==="rdfa:copy"){const w=c.resource||c.href||c.src;this.rdfaPatterns[w]?this.emitPatternCopy(h,this.rdfaPatterns[w],w):(this.pendingRdfaPatternCopies[w]||(this.pendingRdfaPatternCopies[w]=[]),this.pendingRdfaPatternCopies[w].push(h));return}}this.features.baseTag&&l==="base"&&c.href&&(this.util.baseIRI=this.util.getBaseIRI(c.href)),this.features.xmlBase&&c["xml:base"]&&(f.localBaseIRI=this.util.getBaseIRI(c["xml:base"])),this.features.timeTag&&l==="time"&&!c.datatype&&(f.interpretObjectAsTime=!0);let b,m,g;if("vocab"in c?c.vocab?(f.vocab=c.vocab,this.emitTriple(this.util.getBaseIriTerm(f),this.util.dataFactory.namedNode(r.Util.RDFA+"usesVocabulary"),this.util.dataFactory.namedNode(f.vocab))):f.vocab=this.activeTagStack[0].vocab:f.vocab=h.vocab,f.prefixesCustom=r.Util.parsePrefixes(c,h.prefixesCustom,this.features.xmlnsPrefixMappings),f.prefixesAll=Object.keys(f.prefixesCustom).length>0?Object.assign(Object.assign({},h.prefixesAll),f.prefixesCustom):h.prefixesAll,this.features.roleAttribute&&c.role){const w=c.id?this.util.createIri("#"+c.id,f,!1,!1,!1):this.util.createBlankNode(),S=f.vocab;f.vocab="http://www.w3.org/1999/xhtml/vocab#";for(const A of this.util.createVocabIris(c.role,f,!0,!1))this.emitTriple(w,this.util.dataFactory.namedNode("http://www.w3.org/1999/xhtml/vocab#role"),A);f.vocab=S}"xml:lang"in c||this.features.langAttribute&&"lang"in c?f.language=c["xml:lang"]||c.lang:f.language=h.language;const v=this.activeTagStack.length===2;if(!("rel"in c)&&!("rev"in c)?"property"in c&&!("content"in c)&&!("datatype"in c)?("about"in c?(b=this.util.createIri(c.about,f,!1,!0,!0),f.explicitNewSubject=!!b):v?b=!0:h.object&&(b=h.object),"typeof"in c&&("about"in c&&(g=this.util.createIri(c.about,f,!1,!0,!0)),!g&&v&&(g=!0),!g&&"resource"in c&&(g=this.util.createIri(c.resource,f,!1,!0,!0)),!g&&("href"in c||"src"in c)&&(g=this.util.createIri(c.href||c.src,f,!1,!1,!0)),!g&&this.isInheritSubjectInHeadBody(l)&&(g=b),g||(g=this.util.createBlankNode()),m=g)):(("about"in c||"resource"in c)&&(b=this.util.createIri(c.about||c.resource,f,!1,!0,!0),f.explicitNewSubject=!!b),!b&&("href"in c||"src"in c)&&(b=this.util.createIri(c.href||c.src,f,!1,!1,!0),f.explicitNewSubject=!!b),b||(v?b=!0:this.isInheritSubjectInHeadBody(l)?b=h.object:"typeof"in c?(b=this.util.createBlankNode(),f.explicitNewSubject=!0):h.object&&(b=h.object,"property"in c||(f.skipElement=!0))),"typeof"in c&&(g=b)):("about"in c?(b=this.util.createIri(c.about,f,!1,!0,!0),f.explicitNewSubject=!!b,"typeof"in c&&(g=b)):v?b=!0:h.object&&(b=h.object),"resource"in c&&(m=this.util.createIri(c.resource,f,!1,!0,!0)),m||("href"in c||"src"in c?m=this.util.createIri(c.href||c.src,f,!1,!1,!0):"typeof"in c&&!("about"in c)&&!this.isInheritSubjectInHeadBody(l)&&(m=this.util.createBlankNode())),"typeof"in c&&!("about"in c)&&(this.isInheritSubjectInHeadBody(l)?g=b:g=m)),g)for(const w of this.util.createVocabIris(c.typeof,f,!0,!0))this.emitTriple(this.util.getResourceOrBaseIri(g,f),this.util.dataFactory.namedNode(r.Util.RDF+"type"),w);if(b&&(f.listMapping={}),m){if("rel"in c&&"inlist"in c)for(const w of this.util.createVocabIris(c.rel,f,p,!1))this.addListMapping(f,b,w,m);if(!("rel"in c&&"inlist"in c)){if("rel"in c)for(const w of this.util.createVocabIris(c.rel,f,p,!1))this.emitTriple(this.util.getResourceOrBaseIri(b,f),w,this.util.getResourceOrBaseIri(m,f));if("rev"in c)for(const w of this.util.createVocabIris(c.rev,f,y,!1))this.emitTriple(this.util.getResourceOrBaseIri(m,f),w,this.util.getResourceOrBaseIri(b,f))}}if(!m){if("rel"in c)if("inlist"in c)for(const w of this.util.createVocabIris(c.rel,f,p,!1))this.addListMapping(f,b,w,null),f.incompleteTriples.push({predicate:w,reverse:!1,list:!0});else for(const w of this.util.createVocabIris(c.rel,f,p,!1))f.incompleteTriples.push({predicate:w,reverse:!1});if("rev"in c)for(const w of this.util.createVocabIris(c.rev,f,y,!1))f.incompleteTriples.push({predicate:w,reverse:!0});f.incompleteTriples.length>0&&(m=this.util.createBlankNode())}if("property"in c){f.predicates=this.util.createVocabIris(c.property,f,!0,!1);let w;if("datatype"in c?(f.datatype=this.util.createIri(c.datatype,f,!0,!0,!1),f.datatype&&(f.datatype.value===r.Util.RDF+"XMLLiteral"||this.features.htmlDatatype&&f.datatype.value===r.Util.RDF+"HTML")&&(f.collectChildTags=!0)):(!("rev"in c)&&!("rel"in c)&&!("content"in c)&&("resource"in c&&(w=this.util.createIri(c.resource,f,!1,!0,!0)),!w&&"href"in c&&(w=this.util.createIri(c.href,f,!1,!1,!0)),!w&&"src"in c&&(w=this.util.createIri(c.src,f,!1,!1,!0))),"typeof"in c&&!("about"in c)&&(w=g)),"content"in c){const S=this.util.createLiteral(c.content,f);if("inlist"in c)for(const A of f.predicates)this.addListMapping(f,b,A,S);else{const A=this.util.getResourceOrBaseIri(b,f);for(const D of f.predicates)this.emitTriple(A,D,S)}f.predicates=null}else if(this.features.datetimeAttribute&&"datetime"in c){f.interpretObjectAsTime=!0;const S=this.util.createLiteral(c.datetime,f);if("inlist"in c)for(const A of f.predicates)this.addListMapping(f,b,A,S);else{const A=this.util.getResourceOrBaseIri(b,f);for(const D of f.predicates)this.emitTriple(A,D,S)}f.predicates=null}else if(w){const S=this.util.getResourceOrBaseIri(w,f);if("inlist"in c)for(const A of f.predicates)this.addListMapping(f,b,A,S);else{const A=this.util.getResourceOrBaseIri(b,f);for(const D of f.predicates)this.emitTriple(A,D,S)}f.predicates=null}}let _=!1;if(!f.skipElement&&b&&h.incompleteTriples.length>0){_=!0;const w=this.util.getResourceOrBaseIri(h.subject,f),S=this.util.getResourceOrBaseIri(b,f);for(const A of h.incompleteTriples)if(A.reverse)this.emitTriple(S,A.predicate,w);else if(A.list){let D=null;for(let L=this.activeTagStack.length-1;L>=0;L--)if(this.activeTagStack[L].inlist){D=this.activeTagStack[L];break}this.addListMapping(D,b,A.predicate,S)}else this.emitTriple(w,A.predicate,S)}!_&&h.incompleteTriples.length>0&&(f.incompleteTriples=f.incompleteTriples.concat(h.incompleteTriples)),f.subject=b||h.subject,f.object=m||b}onText(l){const c=this.activeTagStack[this.activeTagStack.length-1];if(this.features.copyRdfaPatterns&&c.collectedPatternTag){c.collectedPatternTag.text.push(l);return}c.text||(c.text=[]),c.text.push(l)}onTagClose(){const l=this.activeTagStack[this.activeTagStack.length-1],c=this.activeTagStack[this.activeTagStack.length-2];if(!(l.collectChildTags&&c.collectChildTags&&this.features.skipHandlingXmlLiteralChildren)){if(this.features.copyRdfaPatterns&&l.collectedPatternTag&&l.collectedPatternTag.rootPattern){const d=l.collectedPatternTag.attributes.resource;if(delete l.collectedPatternTag.attributes.resource,delete l.collectedPatternTag.attributes.typeof,this.rdfaPatterns[d]=l.collectedPatternTag,this.pendingRdfaPatternCopies[d]){for(const h of this.pendingRdfaPatternCopies[d])this.emitPatternCopy(h,l.collectedPatternTag,d);delete this.pendingRdfaPatternCopies[d]}this.activeTagStack.pop();return}if(l.predicates){const d=this.util.getResourceOrBaseIri(l.subject,l);let h=l.text||[];l.collectChildTags&&c.collectChildTags&&(h=h.slice(1));const f=this.util.createLiteral(h.join(""),l);if(l.inlist)for(const p of l.predicates)this.addListMapping(l,d,p,f);else for(const p of l.predicates)this.emitTriple(d,p,f);c.predicates||(l.text=null)}if(l.object&&Object.keys(l.listMapping).length>0){const d=this.util.getResourceOrBaseIri(l.object,l);for(const h in l.listMapping){const f=this.util.dataFactory.namedNode(h),p=l.listMapping[h];if(p.length>0){const y=p.map(()=>this.util.createBlankNode());for(let b=0;b`),l.text&&c&&(c.text?c.text=c.text.concat(l.text):c.text=l.text)}onEnd(){if(this.features.copyRdfaPatterns){this.features.copyRdfaPatterns=!1;for(const l in this.rdfaPatterns){const c=this.rdfaPatterns[l];c.referenced||(c.attributes.typeof="rdfa:Pattern",c.attributes.resource=l,this.emitPatternCopy(c.parentTag,c,l),c.referenced=!1,delete c.attributes.typeof,delete c.attributes.resource)}for(const l in this.pendingRdfaPatternCopies)for(const c of this.pendingRdfaPatternCopies[l])this.activeTagStack.push(c),this.onTagOpen("link",{property:"rdfa:copy",href:l}),this.onTagClose(),this.activeTagStack.pop();this.features.copyRdfaPatterns=!0}}isInheritSubjectInHeadBody(l){return this.features.inheritSubjectInHeadBody&&(l==="head"||l==="body")}addListMapping(l,c,d,h){if(l.explicitNewSubject){const f=this.util.createBlankNode();this.emitTriple(this.util.getResourceOrBaseIri(c,l),d,f),this.emitTriple(f,this.util.dataFactory.namedNode(r.Util.RDF+"first"),this.util.getResourceOrBaseIri(h,l)),this.emitTriple(f,this.util.dataFactory.namedNode(r.Util.RDF+"rest"),this.util.dataFactory.namedNode(r.Util.RDF+"nil"))}else{let f=l.listMappingLocal[d.value];f||(l.listMappingLocal[d.value]=f=[]),h&&f.push(h)}}emitTriple(l,c,d){l.termType==="NamedNode"&&l.value.indexOf(":")<0||c.termType==="NamedNode"&&c.value.indexOf(":")<0||d.termType==="NamedNode"&&d.value.indexOf(":")<0||this.push(this.util.dataFactory.quad(l,c,d,this.defaultGraph))}emitPatternCopy(l,c,d){if(this.activeTagStack.push(l),c.referenced=!0,!c.constructedBlankNodes)c.constructedBlankNodes=[],this.util.blankNodeFactory=()=>{const h=this.util.dataFactory.blankNode();return c.constructedBlankNodes.push(h),h};else{let h=0;this.util.blankNodeFactory=()=>c.constructedBlankNodes[h++]}this.emitPatternCopyAbsolute(c,!0,d),this.util.blankNodeFactory=null,this.activeTagStack.pop()}emitPatternCopyAbsolute(l,c,d){if(!(!c&&l.attributes.property==="rdfa:copy"&&l.attributes.href===d)){this.onTagOpen(l.name,l.attributes);for(const h of l.text)this.onText(h);for(const h of l.children)this.emitPatternCopyAbsolute(h,!1,d);this.onTagClose()}}initializeParser(l){return new t.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(c){this.emit("error",c)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(c){this.emit("error",c)}},onopentag:(c,d)=>{try{this.onTagOpen(c,d),this.htmlParseListener&&this.htmlParseListener.onTagOpen(c,d)}catch(h){this.emit("error",h)}},ontext:c=>{try{this.onText(c),this.htmlParseListener&&this.htmlParseListener.onText(c)}catch(d){this.emit("error",d)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:l})}};return Nl.RdfaParser=a,Nl}var ZD;function $q(){return ZD||(ZD=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(iJ(),t),u(aJ(),t),u(sJ(),t),u(vJ(),t),u(WT(),t),u(Uq(),t)}(Tv)),Tv}var eN;function wJ(){if(eN)return Dl;eN=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.ActorRdfParseXmlRdfa=void 0;const t=au(),e=$q();let u=class extends t.ActorRdfParseFixedMediaTypes{constructor(n){super(n)}async runHandle(n,r,a){var c;const o=(n.headers&&n.headers.get("content-language"))??void 0;n.data.on("error",d=>l.emit("error",d));const l=n.data.pipe(new e.RdfaParser({baseIRI:(c=n.metadata)==null?void 0:c.baseIRI,profile:"xml",language:o}));return{data:l,metadata:{triples:!0}}}};return Dl.ActorRdfParseXmlRdfa=u,Dl}var tN;function SJ(){return tN||(tN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(wJ(),t)}(Sv)),Sv}var Fv={},Ml={},h1={},qv,rN;function TJ(){if(rN)return qv;rN=1;var t=function(){var e=function(Ye,Ve,Je,nt){for(Je=Je||{},nt=Ye.length;nt--;Je[Ye[nt]]=Ve);return Je},u=[7,12,13,14,15,16,20,25,115,130],s=[7,13,16,20,25,115,130],n=[7,13,16,115,130],r=[1,25],a=[1,29],o=[1,27],l=[1,28],c=[13,16,115,130],d=[13,16,28,38,40,42,44,46,48,53,56,61,67,85,87,92,93,95,96,102,110,111,115,119,120,126,128,129,130,131,132,133,134,135,136],h=[28,56],f=[1,42],p=[46,48,53,56],y=[1,54],b=[1,60],m=[1,56],g=[1,57],v=[1,58],_=[1,63],w=[1,64],S=[1,65],A=[1,66],D=[1,67],L=[1,68],E=[1,75],O=[28,46,48,53,56],P=[28,42,46,48,53,56],j=[13,16,28,38,40,42,44,46,48,53,56,92,115,119,120,130,131,132,133,134,135,136],U=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,119,120,126,128,129,130,131,132,133,134,135,136],M=[13,16,38,40,44,92,115,119,120,130,131,132,133,134,135,136],q=[13,16,28,38,40,42,44,46,48,53,56,67,85,87,92,95,96,115,117,118,119,120,126,128,129,130,131,132,133,134,135,136],Q=[13,16,28,56,115,130],Z=[13,16,38,58,87,96,109,115,126,130],K=[1,116],fe=[1,112],X=[1,108],he=[1,114],xe=[1,111],ie=[7,13,16,20,25,44,48,53,56,67,85,87,95,96,115,128,129,130],ae=[48,53],Oe=[48,53,87,96,126],Ne=[13,16,44,48,53,56,85,87,95,96,115,128,129,130],ge=[1,126],de=[13,16,40,44,48,53,56,85,87,95,96,115,128,129,130],oe=[1,129],$=[48,53,67,87,96,126],N=[13,16,40,44,48,53,56,67,85,87,95,96,115,128,129,130],R=[1,133],T=[13,16,40,44,48,53,56,67,85,87,95,96,102,115,128,129,130],x=[13,16,40,44,48,53,56,67,85,87,93,95,96,102,110,111,115,128,129,130],B=[1,151],k=[1,153],V=[1,156],J=[1,157],z=[1,158],Y=[1,167],te=[1,175],ce=[13,16,44,48,53,56,67,85,87,95,96,115,128,129,130],Ae=[13,16,44,48,53,56,67,85,87,95,96,115,126,128,129,130],Ie=[13,16,46,92,115,119,120,130,131,132,133,134,135,136],Ee={trace:function(){},yy:{},symbols_:{error:2,shaclDoc:3,shaclDoc_repetition0:4,shaclDoc_repetition1:5,ttlSection:6,EOF:7,directive:8,baseDecl:9,importsDecl:10,prefixDecl:11,KW_BASE:12,IRIREF:13,KW_IMPORTS:14,KW_PREFIX:15,PNAME_NS:16,nodeShapeIri:17,iri:18,nodeShape:19,KW_SHAPE:20,nodeShape_option0:21,nodeShape_option1:22,nodeShapeBody:23,shapeClass:24,KW_SHAPE_CLASS:25,shapeClass_option0:26,turtleAnnotation:27,";":28,turtleAnnotation2:29,predicate:30,turtleAnnotation2_option0:31,objectList:32,object:33,objectList_repetition0:34,iriOrLiteral:35,blankNodeSection:36,list:37,"(":38,list_repetition0:39,")":40,objectTail:41,",":42,LB:43,"[":44,RB:45,"]":46,LP:47,"%":48,RP:49,pcSection:50,iriHead:51,ttlStatement:52,".":53,ttlSection_repetition0:54,startNodeShape:55,"{":56,endNodeShape:57,"}":58,nodeShapeBody_repetition0:59,targetClass:60,"->":61,targetClass_repetition_plus0:62,constraint:63,constraint_group0:64,constraint_option0:65,orNotComponent:66,"|":67,nodeNot:68,nodeOrEmit:69,nodeOr:70,nodeOr_repetition_plus0:71,nodeValue:72,negation:73,nodeValue_group0:74,"=":75,iriOrLiteralOrArray:76,propertyShape:77,path:78,propertyShape_repetition0:79,propertyOrComponent:80,propertyNot:81,propertyOr:82,propertyOr_repetition_plus0:83,propertyAtom:84,NODEKIND:85,shapeRef:86,PARAM:87,propertyCount:88,propertyMinCount:89,"..":90,propertyMaxCount:91,INTEGER:92,"*":93,shapeRef_group0:94,"@":95,"!":96,pathAlternative:97,additionalAlternative:98,pathSequence:99,pathAlternative_repetition_plus0:100,additionalSequence:101,"/":102,pathEltOrInverse:103,pathSequence_repetition_plus0:104,pathElt:105,pathPrimary:106,pathMod:107,pathInverse:108,"^":109,"?":110,"+":111,iriOrLiteralOrArray_repetition0:112,literal:113,iri_group0:114,a:115,string:116,LANGTAG:117,"^^":118,DECIMAL:119,DOUBLE:120,literal_group0:121,string_group0:122,string_group1:123,shaclDoc_repetition1_group0:124,constraint_group0_repetition_plus0:125,TARGET:126,propertyShape_repetition0_group0:127,ATPNAME_LN:128,ATPNAME_NS:129,PNAME_LN:130,KW_TRUE:131,KW_FALSE:132,STRING_LITERAL1:133,STRING_LITERAL2:134,STRING_LITERAL_LONG1:135,STRING_LITERAL_LONG2:136,$accept:0,$end:1},terminals_:{2:"error",7:"EOF",12:"KW_BASE",13:"IRIREF",14:"KW_IMPORTS",15:"KW_PREFIX",16:"PNAME_NS",20:"KW_SHAPE",25:"KW_SHAPE_CLASS",28:";",38:"(",40:")",42:",",44:"[",46:"]",48:"%",53:".",56:"{",58:"}",61:"->",67:"|",75:"=",85:"NODEKIND",87:"PARAM",90:"..",92:"INTEGER",93:"*",95:"@",96:"!",102:"/",109:"^",110:"?",111:"+",115:"a",117:"LANGTAG",118:"^^",119:"DECIMAL",120:"DOUBLE",126:"TARGET",128:"ATPNAME_LN",129:"ATPNAME_NS",130:"PNAME_LN",131:"KW_TRUE",132:"KW_FALSE",133:"STRING_LITERAL1",134:"STRING_LITERAL2",135:"STRING_LITERAL_LONG1",136:"STRING_LITERAL_LONG2"},productions_:[0,[3,4],[8,1],[8,1],[8,1],[9,2],[10,2],[11,3],[17,1],[19,5],[24,4],[27,2],[29,2],[30,2],[32,2],[33,1],[33,1],[33,1],[37,3],[41,2],[43,1],[45,1],[36,3],[47,1],[49,1],[50,3],[51,1],[52,3],[6,1],[55,1],[57,1],[23,3],[60,2],[63,3],[66,2],[69,1],[70,1],[70,2],[68,1],[68,2],[72,3],[77,2],[80,2],[82,1],[82,2],[81,1],[81,2],[84,1],[84,1],[84,1],[84,3],[84,1],[88,5],[89,1],[91,1],[91,1],[86,1],[86,2],[73,1],[78,1],[98,2],[97,1],[97,2],[101,2],[99,1],[99,2],[105,1],[105,2],[103,1],[103,2],[108,1],[107,1],[107,1],[107,1],[106,1],[106,3],[76,1],[76,3],[35,1],[35,1],[18,1],[18,1],[18,1],[113,1],[113,2],[113,3],[113,1],[113,1],[113,1],[113,1],[116,1],[116,1],[4,0],[4,2],[124,1],[124,1],[5,0],[5,2],[21,0],[21,1],[22,0],[22,1],[26,0],[26,1],[31,0],[31,1],[34,0],[34,2],[39,0],[39,2],[54,0],[54,2],[59,0],[59,2],[62,1],[62,2],[125,1],[125,2],[64,1],[64,1],[65,0],[65,1],[71,1],[71,2],[74,1],[74,1],[127,1],[127,1],[79,0],[79,2],[83,1],[83,2],[94,1],[94,1],[100,1],[100,2],[104,1],[104,2],[112,0],[112,2],[114,1],[114,1],[121,1],[121,1],[122,1],[122,1],[123,1],[123,1]],performAction:function(Ve,Je,nt,yt,ft,et,Ir){var Ke=et.length-1;switch(ft){case 1:this.$=C(Fe.factory.namedNode(Le("")),Fe.factory.namedNode(G),Fe.factory.namedNode(Se+"Ontology"));break;case 5:Fe.base=Fe.factory.namedNode(et[Ke].slice(1,-1)),Fe.n3Parser._setBase(Fe.base.value);break;case 6:this.$=C(Fe.base,Fe.factory.namedNode(Se+"imports"),Fe.factory.namedNode(et[Ke].slice(1,-1)));break;case 7:this.$=Fe.prefixes[et[Ke-1].substr(0,et[Ke-1].length-1)]=Le(et[Ke]);break;case 8:Fe.nodeShapeStack=!1,C(Fe.currentNodeShape=et[Ke],Fe.factory.namedNode(G),Fe.factory.namedNode(me+"NodeShape"));break;case 10:this.$=C(Fe.currentNodeShape,Fe.factory.namedNode(G),Fe.factory.namedNode(W+"Class"));break;case 11:this.$=De();break;case 13:this.$=et[Ke].forEach(Me=>C(Fe.currentNodeShape,et[Ke-1],Me));break;case 14:this.$=[et[Ke-1],...et[Ke]];break;case 18:this.$=Te(et[Ke-1],!0);break;case 19:case 34:case 42:case 60:case 63:this.$=et[Ke];break;case 20:Fe.tempCurrentNodeShape=Fe.currentNodeShape,this.$=Fe.currentNodeShape=lt();break;case 21:Fe.currentNodeShape=Fe.tempCurrentNodeShape;break;case 22:case 31:this.$=et[Ke-2];break;case 23:Fe.tempCurrentNodeShape=Fe.currentNodeShape,Fe.currentNodeShape=Fe.currentPropertyNode;break;case 24:Fe.currentNodeShape=Fe.tempCurrentNodeShape;break;case 26:Fe.currentNodeShape=et[Ke];break;case 29:Fe.nodeShapeStack?(Fe.nodeShapeStack.push(Fe.currentNodeShape),C(Fe.currentPropertyNode,Fe.factory.namedNode(me+"node"),Fe.currentNodeShape=lt())):Fe.nodeShapeStack=[],this.$=Fe.currentNodeShape;break;case 30:Fe.nodeShapeStack.length>0&&(Fe.currentNodeShape=Fe.nodeShapeStack.pop());break;case 32:this.$=et[Ke].forEach(Me=>{C(Fe.currentNodeShape,Fe.factory.namedNode(me+"targetClass"),Me)});break;case 35:this.$=C(Fe.currentNodeShape,Fe.factory.namedNode(me+et[Ke][0]),et[Ke][1]);break;case 36:break;case 37:const ye=Te([et[Ke-1],...et[Ke]].map(Me=>{const it=lt();return C(it,Fe.factory.namedNode(me+Me[0]),Me[1]),it}));this.$=["or",ye];break;case 39:case 46:this.$=pe("not",...et[Ke]);break;case 40:case 50:this.$=[et[Ke-2],et[Ke]];break;case 43:this.$=et[Ke]&&ee(...et[Ke]);break;case 44:this.$=ee("or",Te([et[Ke-1],...et[Ke]].map(Me=>{const it=lt();return C(it,Fe.factory.namedNode(me+Me[0]),Me[1]),it})));break;case 47:this.$=[we[et[Ke].value]?"datatype":"class",et[Ke]];break;case 48:this.$=["nodeKind",Fe.factory.namedNode(me+et[Ke])];break;case 49:this.$=["node",Fe.factory.namedNode(et[Ke])];break;case 51:this.$=void 0;break;case 53:this.$=et[Ke]>0&&ee("minCount",We(et[Ke],Re));break;case 54:this.$=ee("maxCount",We(et[Ke],Re));break;case 56:this.$=$e(et[Ke].slice(1));break;case 57:this.$=Le(et[Ke]);break;case 59:C(Fe.currentNodeShape,Fe.factory.namedNode(me+"property"),Fe.currentPropertyNode=lt()),ee("path",et[Ke]);break;case 62:const Pe=lt();C(Pe,Fe.factory.namedNode(me+"alternativePath"),Te([et[Ke-1],...et[Ke]])),this.$=Pe;break;case 65:this.$=Te([et[Ke-1],...et[Ke]]);break;case 67:C(this.$=lt(),Fe.factory.namedNode(me+et[Ke]),et[Ke-1]);break;case 69:C(this.$=lt(),Fe.factory.namedNode(me+"inversePath"),et[Ke]);break;case 71:this.$="zeroOrOnePath";break;case 72:this.$="zeroOrMorePath";break;case 73:this.$="oneOrMorePath";break;case 75:this.$=et[Ke-1];break;case 77:this.$=Te(et[Ke-1]);break;case 80:this.$=Fe.factory.namedNode(Le(et[Ke]));break;case 81:this.$=Fe.factory.namedNode($e(et[Ke]));break;case 82:this.$=De(Fe.factory.namedNode(G));break;case 83:this.$=We(et[Ke]);break;case 84:this.$=tt(et[Ke-1],lowercase(et[Ke].substr(1)));break;case 85:this.$=We(et[Ke-2],et[Ke]);break;case 86:this.$=We(et[Ke],Re);break;case 87:this.$=We(et[Ke],Ce);break;case 88:this.$=We(et[Ke].toLowerCase(),Qe);break;case 89:this.$=We(et[Ke].toLowerCase(),ke);break;case 90:this.$=le(et[Ke],1);break;case 91:this.$=le(et[Ke],3);break;case 92:case 96:case 106:case 108:case 110:case 112:case 128:case 138:this.$=[];break;case 93:case 97:case 107:case 109:case 111:case 113:case 115:case 117:case 123:case 129:case 131:case 135:case 137:case 139:et[Ke-1].push(et[Ke]);break;case 114:case 116:case 122:case 130:case 134:case 136:this.$=[et[Ke]];break}},table:[e(u,[2,92],{3:1,4:2}),{1:[3]},e(s,[2,96],{5:3,8:4,9:5,10:6,11:7,12:[1,8],14:[1,9],15:[1,10]}),e(n,[2,110],{6:11,124:12,54:13,19:14,24:15,20:[1,16],25:[1,17]}),e(u,[2,93]),e(u,[2,2]),e(u,[2,3]),e(u,[2,4]),{13:[1,18]},{13:[1,19]},{16:[1,20]},{7:[1,21]},e(s,[2,97]),{7:[2,28],13:r,16:a,18:24,51:23,52:22,114:26,115:o,130:l},e(s,[2,94]),e(s,[2,95]),{13:r,16:a,17:30,18:31,114:26,115:o,130:l},{13:r,16:a,17:32,18:31,114:26,115:o,130:l},e(u,[2,5]),e(u,[2,6]),{13:[1,33]},{1:[2,1]},e(n,[2,111]),{13:r,16:a,18:36,29:34,30:35,114:26,115:o,130:l},e(c,[2,26]),e(d,[2,80]),e(d,[2,81]),e(d,[2,82]),e(d,[2,140]),e(d,[2,141]),e(h,[2,98],{21:37,60:38,61:[1,39]}),e([28,56,61],[2,8]),{26:40,27:41,28:f,56:[2,102]},e(u,[2,7]),{53:[1,43]},e(p,[2,104],{31:44,27:45,28:f}),{13:r,16:a,18:51,32:46,33:47,35:48,36:49,37:50,38:y,43:53,44:b,92:m,113:52,114:26,115:o,116:55,119:g,120:v,121:59,122:61,123:62,130:l,131:_,132:w,133:S,134:A,135:D,136:L},{22:69,27:70,28:f,56:[2,100]},e(h,[2,99]),{13:r,16:a,18:72,62:71,114:26,115:o,130:l},{23:73,55:74,56:E},{56:[2,103]},{13:r,16:a,18:36,29:76,30:35,114:26,115:o,130:l},e(n,[2,27]),e(p,[2,12]),e(p,[2,105]),e(O,[2,13]),e(P,[2,106],{34:77}),e(j,[2,15]),e(j,[2,16]),e(j,[2,17]),e(U,[2,78]),e(U,[2,79]),{13:r,16:a,18:36,29:78,30:35,114:26,115:o,130:l},e(M,[2,108],{39:79}),e(U,[2,83],{117:[1,80],118:[1,81]}),e(U,[2,86]),e(U,[2,87]),e(U,[2,88]),e(U,[2,89]),e(c,[2,20]),e(q,[2,90]),e(q,[2,91]),e(U,[2,142]),e(U,[2,143]),e(q,[2,144]),e(q,[2,145]),e(q,[2,146]),e(q,[2,147]),{23:82,55:74,56:E},{56:[2,101]},e(h,[2,32],{114:26,18:83,13:r,16:a,115:o,130:l}),e(Q,[2,114]),e(s,[2,10]),e(Z,[2,112],{59:84}),e(Z,[2,29]),e(p,[2,11]),e(O,[2,14],{41:85,42:[1,86]}),{45:87,46:[1,88]},{13:r,16:a,18:51,33:90,35:48,36:49,37:50,38:y,40:[1,89],43:53,44:b,92:m,113:52,114:26,115:o,116:55,119:g,120:v,121:59,122:61,123:62,130:l,131:_,132:w,133:S,134:A,135:D,136:L},e(U,[2,84]),{13:r,16:a,18:91,114:26,115:o,130:l},e(s,[2,9]),e(Q,[2,115]),{13:r,16:a,18:115,38:K,57:92,58:[1,94],63:93,64:95,68:102,69:98,70:100,72:104,73:105,74:107,77:97,78:99,87:fe,96:X,97:101,99:103,103:106,105:109,106:113,108:110,109:he,114:26,115:o,125:96,126:xe,130:l},e(P,[2,107]),{13:r,16:a,18:51,33:117,35:48,36:49,37:50,38:y,43:53,44:b,92:m,113:52,114:26,115:o,116:55,119:g,120:v,121:59,122:61,123:62,130:l,131:_,132:w,133:S,134:A,135:D,136:L},e(j,[2,22]),e(j,[2,21]),e(j,[2,18]),e(M,[2,109]),e(U,[2,85]),e(ie,[2,31]),e(Z,[2,113]),e(ie,[2,30]),{47:120,48:[1,121],50:119,53:[2,120],65:118},e(ae,[2,118],{70:100,68:102,72:104,73:105,74:107,69:122,87:fe,96:X,126:xe}),e(ae,[2,119]),e(Oe,[2,116]),e(Ne,[2,128],{79:123}),e(Oe,[2,35]),e(Ne,[2,59]),e(Oe,[2,36],{71:124,66:125,67:ge}),e(de,[2,61],{100:127,98:128,67:oe}),e($,[2,38]),{72:130,74:107,87:fe,126:xe},e(N,[2,64],{104:131,101:132,102:R}),{75:[1,134]},e([13,16,56,85,87,95,115,126,128,129,130],[2,58]),e(T,[2,68]),{13:r,16:a,18:115,38:K,105:135,106:113,114:26,115:o,130:l},{75:[2,124]},{75:[2,125]},e(T,[2,66],{107:136,93:[1,138],110:[1,137],111:[1,139]}),e([13,16,38,115,130],[2,70]),e(x,[2,74]),{13:r,16:a,18:115,38:K,97:140,99:103,103:106,105:109,106:113,108:110,109:he,114:26,115:o,130:l},e(P,[2,19]),{53:[1,141]},{53:[2,121]},{13:r,16:a,18:36,29:142,30:35,114:26,115:o,130:l},e(c,[2,23]),e(Oe,[2,117]),e(ae,[2,41],{114:26,55:74,127:143,88:144,82:145,81:147,84:148,73:149,18:150,86:152,23:154,94:155,13:r,16:a,44:[1,146],56:E,85:B,87:k,95:V,96:X,115:o,128:J,129:z,130:l}),e(Oe,[2,37],{66:159,67:ge}),e($,[2,122]),{68:160,72:104,73:105,74:107,87:fe,96:X,126:xe},e(de,[2,62],{98:161,67:oe}),e(N,[2,134]),{13:r,16:a,18:115,38:K,99:162,103:106,105:109,106:113,108:110,109:he,114:26,115:o,130:l},e($,[2,39]),e(N,[2,65],{101:163,102:R}),e(T,[2,136]),{13:r,16:a,18:115,38:K,103:164,105:109,106:113,108:110,109:he,114:26,115:o,130:l},{13:r,16:a,18:51,35:166,44:Y,76:165,92:m,113:52,114:26,115:o,116:55,119:g,120:v,121:59,122:61,123:62,130:l,131:_,132:w,133:S,134:A,135:D,136:L},e(T,[2,69]),e(T,[2,67]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),{40:[1,168]},e(Z,[2,33]),{48:[1,170],49:169},e(Ne,[2,129]),e(Ne,[2,126]),e(Ne,[2,127]),{89:171,92:[1,172]},e(Ne,[2,43],{83:173,80:174,67:te}),e(ce,[2,45]),{13:r,16:a,18:150,23:154,55:74,56:E,84:176,85:B,86:152,87:k,94:155,95:V,114:26,115:o,128:J,129:z,130:l},e(ce,[2,47]),e(ce,[2,48]),e(ce,[2,49]),{75:[1,177]},e(ce,[2,51]),e(ce,[2,56]),{13:[1,178]},e(ce,[2,132]),e(ce,[2,133]),e($,[2,123]),e($,[2,34]),e(N,[2,135]),e(N,[2,60]),e(T,[2,137]),e(T,[2,63]),e($,[2,40]),e(Ae,[2,76]),e(Ie,[2,138],{112:179}),e(x,[2,75]),{53:[2,25]},{53:[2,24]},{90:[1,180]},{90:[2,53]},e(Ne,[2,44],{80:181,67:te}),e(ce,[2,130]),{13:r,16:a,18:150,23:154,55:74,56:E,73:149,81:182,84:148,85:B,86:152,87:k,94:155,95:V,96:X,114:26,115:o,128:J,129:z,130:l},e(ce,[2,46]),{13:r,16:a,18:51,35:166,44:Y,76:183,92:m,113:52,114:26,115:o,116:55,119:g,120:v,121:59,122:61,123:62,130:l,131:_,132:w,133:S,134:A,135:D,136:L},e(ce,[2,57]),{13:r,16:a,18:51,35:185,46:[1,184],92:m,113:52,114:26,115:o,116:55,119:g,120:v,121:59,122:61,123:62,130:l,131:_,132:w,133:S,134:A,135:D,136:L},{91:186,92:[1,187],93:[1,188]},e(ce,[2,131]),e(ce,[2,42]),e(ce,[2,50]),e(Ae,[2,77]),e(Ie,[2,139]),{46:[1,189]},{46:[2,54]},{46:[2,55]},e(Ne,[2,52])],defaultActions:{21:[2,1],41:[2,103],70:[2,101],111:[2,124],112:[2,125],119:[2,121],169:[2,25],170:[2,24],172:[2,53],187:[2,54],188:[2,55]},parseError:function(Ve,Je){if(Je.recoverable)this.trace(Ve);else{var nt=new Error(Ve);throw nt.hash=Je,nt}},parse:function(Ve){var Je=this,nt=[0],yt=[null],ft=[],et=this.table,Ir="",Ke=0,ye=0,Pe=2,Me=1,it=ft.slice.call(arguments,1),at=Object.create(this.lexer),Tt={yy:{}};for(var Vt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Vt)&&(Tt.yy[Vt]=this.yy[Vt]);at.setInput(Ve,Tt.yy),Tt.yy.lexer=at,Tt.yy.parser=this,typeof at.yylloc>"u"&&(at.yylloc={});var tr=at.yylloc;ft.push(tr);var di=at.options&&at.options.ranges;typeof Tt.yy.parseError=="function"?this.parseError=Tt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var yn=function(){var Xr;return Xr=at.lex()||Me,typeof Xr!="number"&&(Xr=Je.symbols_[Xr]||Xr),Xr},or,Mn,Hr,Hn,Pr={},fi,Mr,Ni,Zi;;){if(Mn=nt[nt.length-1],this.defaultActions[Mn]?Hr=this.defaultActions[Mn]:((or===null||typeof or>"u")&&(or=yn()),Hr=et[Mn]&&et[Mn][or]),typeof Hr>"u"||!Hr.length||!Hr[0]){var bn="";Zi=[];for(fi in et[Mn])this.terminals_[fi]&&fi>Pe&&Zi.push("'"+this.terminals_[fi]+"'");at.showPosition?bn="Parse error on line "+(Ke+1)+`: +`+at.showPosition()+` +Expecting `+Zi.join(", ")+", got '"+(this.terminals_[or]||or)+"'":bn="Parse error on line "+(Ke+1)+": Unexpected "+(or==Me?"end of input":"'"+(this.terminals_[or]||or)+"'"),this.parseError(bn,{text:at.match,token:this.terminals_[or]||or,line:at.yylineno,loc:tr,expected:Zi})}if(Hr[0]instanceof Array&&Hr.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Mn+", token: "+or);switch(Hr[0]){case 1:nt.push(or),yt.push(at.yytext),ft.push(at.yylloc),nt.push(Hr[1]),or=null,ye=at.yyleng,Ir=at.yytext,Ke=at.yylineno,tr=at.yylloc;break;case 2:if(Mr=this.productions_[Hr[1]][1],Pr.$=yt[yt.length-Mr],Pr._$={first_line:ft[ft.length-(Mr||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(Mr||1)].first_column,last_column:ft[ft.length-1].last_column},di&&(Pr._$.range=[ft[ft.length-(Mr||1)].range[0],ft[ft.length-1].range[1]]),Hn=this.performAction.apply(Pr,[Ir,ye,Ke,Tt.yy,Hr[1],yt,ft].concat(it)),typeof Hn<"u")return Hn;Mr&&(nt=nt.slice(0,-1*Mr*2),yt=yt.slice(0,-1*Mr),ft=ft.slice(0,-1*Mr)),nt.push(this.productions_[Hr[1]][0]),yt.push(Pr.$),ft.push(Pr._$),Ni=et[nt[nt.length-2]][nt[nt.length-1]],nt.push(Ni);break;case 3:return!0}}return!0}};const qe="http://www.w3.org/1999/02/22-rdf-syntax-ns#",G=qe+"type",F=qe+"first",H=qe+"rest",re=qe+"nil",be="http://www.w3.org/2001/XMLSchema#",Re=be+"integer",Ce=be+"decimal",Qe=be+"double",ke=be+"boolean",me="http://www.w3.org/ns/shacl#",Se="http://www.w3.org/2002/07/owl#",W="http://www.w3.org/2000/01/rdf-schema#",we={[Re]:!0,[Ce]:!0,[be+"float"]:!0,[Qe]:!0,[be+"string"]:!0,[ke]:!0,[be+"dateTime"]:!0,[be+"nonPositiveInteger"]:!0,[be+"negativeInteger"]:!0,[be+"long"]:!0,[be+"int"]:!0,[be+"short"]:!0,[be+"byte"]:!0,[be+"nonNegativeInteger"]:!0,[be+"unsignedLong"]:!0,[be+"unsignedShort"]:!0,[be+"unsignedByte"]:!0,[be+"positiveInteger"]:!0,[qe+"langString"]:!0};function Te(Ye,Ve=!1){let Je=0,nt=Ye.length;if(Ve&&nt===0)return Fe.factory.namedNode(re);const yt=head=lt();return nt===0&&C(head,Fe.factory.namedNode(H),Fe.factory.namedNode(re)),Ye.forEach(ft=>{if(ft===void 0)throw new Error("b");C(head,Fe.factory.namedNode(F),ft),C(head,Fe.factory.namedNode(H),head=++Je20?"...":"")+Ve.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Ve=this.match;return Ve.length<20&&(Ve+=this._input.substr(0,20-Ve.length)),(Ve.substr(0,20)+(Ve.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Ve=this.pastInput(),Je=new Array(Ve.length+1).join("-");return Ve+this.upcomingInput()+` +`+Je+"^"},test_match:function(Ve,Je){var nt,yt,ft;if(this.options.backtrack_lexer&&(ft={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&&(ft.yylloc.range=this.yylloc.range.slice(0))),yt=Ve[0].match(/(?:\r\n?|\n).*/g),yt&&(this.yylineno+=yt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:yt?yt[yt.length-1].length-yt[yt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Ve[0].length},this.yytext+=Ve[0],this.match+=Ve[0],this.matches=Ve,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(Ve[0].length),this.matched+=Ve[0],nt=this.performAction.call(this,this.yy,this,Je,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),nt)return nt;if(this._backtrack){for(var et in ft)this[et]=ft[et];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Ve,Je,nt,yt;this._more||(this.yytext="",this.match="");for(var ft=this._currentRules(),et=0;etJe[0].length)){if(Je=nt,yt=et,this.options.backtrack_lexer){if(Ve=this.test_match(nt,ft[et]),Ve!==!1)return Ve;if(this._backtrack){Je=!1;continue}else return!1}else if(!this.options.flex)break}return Je?(Ve=this.test_match(Je,ft[yt]),Ve!==!1?Ve:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var Je=this.next();return Je||this.lex()},begin:function(Je){this.conditionStack.push(Je)},popState:function(){var Je=this.conditionStack.length-1;return Je>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(Je){return Je=this.conditionStack.length-1-Math.abs(Je||0),Je>=0?this.conditionStack[Je]:"INITIAL"},pushState:function(Je){this.begin(Je)},stateStackSize:function(){return this.conditionStack.length},options:{flex:!0,"case-insensitive":!0},performAction:function(Je,nt,yt,ft){switch(yt){case 0:break;case 1:return 12;case 2:return 14;case 3:return 15;case 4:return 25;case 5:return 20;case 6:return 131;case 7:return 132;case 8:return 85;case 9:return 126;case 10:return 87;case 11:return"PASS";case 12:return"COMMENT";case 13:return 13;case 14:return 16;case 15:return 130;case 16:return 129;case 17:return 128;case 18:return 117;case 19:return 92;case 20:return 119;case 21:return 120;case 22:return"EXPONENT";case 23:return 133;case 24:return 134;case 25:return 135;case 26:return 136;case 27:return 61;case 28:return 90;case 29:return 58;case 30:return 56;case 31:return 38;case 32:return 40;case 33:return 44;case 34:return 46;case 35:return 110;case 36:return 93;case 37:return 111;case 38:return 67;case 39:return 118;case 40:return 53;case 41:return 96;case 42:return 102;case 43:return 75;case 44:return 95;case 45:return 109;case 46:return 28;case 47:return 42;case 48:return 48;case 49:return 115;case 50:return 7;case 51:console.log(nt.yytext);break}},rules:[/^(?:\s+|#[^\n\r]*)/i,/^(?:BASE)/i,/^(?:IMPORTS)/i,/^(?:PREFIX)/i,/^(?:shapeClass)/i,/^(?:shape)/i,/^(?:true)/i,/^(?:false)/i,/^(?:(BlankNode|IRI|Literal|BlankNodeOrIRI|BlankNodeOrLiteral|IRIOrLiteral\b))/i,/^(?:(targetNode|targetObjectsOf|targetSubjectsOf\b))/i,/^(?:(deactivated|severity|message|class|datatype|nodeKind|minExclusive|minInclusive|maxExclusive|maxInclusive|minLength|maxLength|pattern|flags|languageIn|uniqueLang|equals|disjoint|lessThan|lessThanOrEquals|qualifiedValueShape|qualifiedMinCount|qualifiedMaxCount|qualifiedValueShapesDisjoint|closed|ignoredProperties|hasValue|in))/i,/^(?:([ \t\r\n]+))/i,/^(?:(#[\r\n]*))/i,/^(?:(<([^=<>\"\{\}\|\^`\\\u0000-\u0020]|(\\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,/^(?:((([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])((((([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])|_\b)|-|[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])|_\b)|-|[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])((((([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])|_\b)|-|[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])|_\b)|-|[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])|_\b)|:|[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])|_\b)|-|[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])|_\b)|-|[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])((((([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])|_\b)|-|[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])|_\b)|-|[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])((((([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])|_\b)|-|[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])|_\b)|-|[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])|_\b)|:|[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])|_\b)|-|[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])|_\b)|-|[0-9]|[\u00B7]|[\u0300-\u036F]|[\u203F-\u2040])|:|((%([0-9]|[A-F]|[a-f])([0-9]|[A-F]|[a-f]))|(\\(_|~|\.|-|!|\$|&|'|\(|\)|\*|\+|,|;|=|\/|\?|#|@|%)))))?)))/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]+))))/i,/^(?:([eE][+-]?[0-9]+))/i,/^(?:('(?:(?:[^\u0027\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*'))/i,/^(?:("(?:(?:[^\u0022\u005C\u000A\u000D])|(\\[tbnrf\\\"\']))*"))/i,/^(?:('''(?:(?:'|'')?(?:[^'\\]|(\\[tbnrf\\\"\'])))*'''))/i,/^(?:("""(?:(?:"|"")?(?:[^\"\\]|(\\[tbnrf\\\"\'])))*"""))/i,/^(?:->)/i,/^(?:\.\.)/i,/^(?:\})/i,/^(?:\{)/i,/^(?:\()/i,/^(?:\))/i,/^(?:\[)/i,/^(?:\])/i,/^(?:\?)/i,/^(?:\*)/i,/^(?:\+)/i,/^(?:\|)/i,/^(?:\^\^)/i,/^(?:\.)/i,/^(?:!)/i,/^(?:\/)/i,/^(?:=)/i,/^(?:@)/i,/^(?:\^)/i,/^(?:;)/i,/^(?:,)/i,/^(?:%)/i,/^(?:a)/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],inclusive:!0}}};return Ye}();Ee.lexer=Ue;function Fe(){this.yy={}}return Fe.prototype=Ee,Ee.Parser=Fe,new Fe}();return qv=t,qv}var nN;function AJ(){if(nN)return h1;nN=1;const t=TJ().Parser,e=ts;class u{constructor(){}parse(n,{extendedSyntax:r,baseIRI:a}={}){this._parser=new t,this._parser.Parser.factory=e.DataFactory,this._parser.Parser.base=e.DataFactory.namedNode(a||"urn:x-base:default"),this._parser.Parser.extended=r===!0,this._parser.Parser.prefixes={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"},this._parser.Parser.currentNodeShape=void 0,this._parser.Parser.currentPropertyNode=void 0,this._parser.Parser.nodeShapeStack=[],this._parser.Parser.tempCurrentNodeShape=void 0,this._parser.Parser.n3Parser=new e.Parser({baseIRI:a||"urn:x-base:default"});const o=[];return this._parser.Parser.onQuad=l=>{o.push(l)},this._parser.parse(n),o.prefixes=this._parser.Parser.prefixes,o}}return h1.Parser=u,h1.parse=function(n,r){return new u().parse(n,r)},h1}var Bv={exports:{}},iN;function EJ(){return iN||(iN=1,function(t){(function(){var e;typeof window=="object"&&window?e=window:e=I,t.exports?t.exports=e.Promise?e.Promise:r:e.Promise||(e.Promise=r);var u=e.setImmediate||function(f){setTimeout(f,1)};function s(f,p){return function(){f.apply(p,arguments)}}var n=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function r(f){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof f!="function")throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],h(f,s(o,this),s(l,this))}function a(f){var p=this;if(this._state===null){this._deferreds.push(f);return}u(function(){var y=p._state?f.onFulfilled:f.onRejected;if(y===null){(p._state?f.resolve:f.reject)(p._value);return}var b;try{b=y(p._value)}catch(m){f.reject(m);return}f.resolve(b)})}function o(f){try{if(f===this)throw new TypeError("A promise cannot be resolved with itself.");if(f&&(typeof f=="object"||typeof f=="function")){var p=f.then;if(typeof p=="function"){h(s(p,f),s(o,this),s(l,this));return}}this._state=!0,this._value=f,c.call(this)}catch(y){l.call(this,y)}}function l(f){this._state=!1,this._value=f,c.call(this)}function c(){for(var f=0,p=this._deferreds.length;f(this.prefixes=n.prefixes,n)))}read(){if(this.prefixes){for(const s of Object.entries(this.prefixes))this.emit("prefix",...s);delete this.prefixes}return super.read()}};return Fl.PrefixWrappingIterator=e,Fl}var oN;function RJ(){if(oN)return Ml;oN=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.ActorRdfParseShaclc=void 0;const t=au(),e=Wt(),u=AJ(),s=eo(),n=OJ();let r=class extends t.ActorRdfParseFixedMediaTypes{constructor(o){super(o)}async runHandle(o,l,c){const d=new n.PrefixWrappingIterator(s(o.data).then(f=>{var p;return(0,u.parse)(f,{extendedSyntax:l==="text/shaclc-ext",baseIRI:(p=o.metadata)==null?void 0:p.baseIRI})})),h=new e.Readable({objectMode:!0});return d.on("prefix",(...f)=>h.emit("prefix",...f)),{data:h.wrap(d),metadata:{triples:!0}}}};return Ml.ActorRdfParseShaclc=r,Ml}var uN;function xJ(){return uN||(uN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(RJ(),t)}(Fv)),Fv}var Hv={},ql={},$v={},Bl={},mo={},cN;function Qq(){if(cN)return mo;cN=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.QuoteType=void 0;var t=Ga(),e;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(e||(e={}));var u;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.BeforeSpecialT=23]="BeforeSpecialT",c[c.SpecialStartSequence=24]="SpecialStartSequence",c[c.InSpecialTag=25]="InSpecialTag",c[c.InEntity=26]="InEntity"})(u||(u={}));function s(c){return c===e.Space||c===e.NewLine||c===e.Tab||c===e.FormFeed||c===e.CarriageReturn}function n(c){return c===e.Slash||c===e.Gt||s(c)}function r(c){return c>=e.LowerA&&c<=e.LowerZ||c>=e.UpperA&&c<=e.UpperZ}var a;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(a||(mo.QuoteType=a={}));var o={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},l=function(){function c(d,h){var f=d.xmlMode,p=f===void 0?!1:f,y=d.decodeEntities,b=y===void 0?!0:y,m=this;this.cbs=h,this.state=u.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=u.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=p,this.decodeEntities=b,this.entityDecoder=new t.EntityDecoder(p?t.xmlDecodeTree:t.htmlDecodeTree,function(g,v){return m.emitCodePoint(g,v)})}return c.prototype.reset=function(){this.state=u.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=u.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},c.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},c.prototype.end=function(){this.running&&this.finish()},c.prototype.pause=function(){this.running=!1},c.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=u.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===e.Amp&&this.startEntity()},c.prototype.stateSpecialStartSequence=function(d){var h=this.sequenceIndex===this.currentSequence.length,f=h?n(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!f)this.isSpecial=!1;else if(!h){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=u.InTagName,this.stateInTagName(d)},c.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===e.Gt||s(d)){var h=this.index-this.currentSequence.length;if(this.sectionStart=0?(this.state=this.baseState,d===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1},c.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===u.Text||this.state===u.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===u.InAttributeValueDq||this.state===u.InAttributeValueSq||this.state===u.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},c.prototype.shouldContinue=function(){return this.index=d||(this.state===u.InCommentLike?this.currentSequence===o.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===u.InTagName||this.state===u.BeforeAttributeName||this.state===u.BeforeAttributeValue||this.state===u.AfterAttributeName||this.state===u.InAttributeName||this.state===u.InAttributeValueSq||this.state===u.InAttributeValueDq||this.state===u.InAttributeValueNq||this.state===u.InClosingTagName||this.cbs.ontext(this.sectionStart,d))},c.prototype.emitCodePoint=function(d,h){this.baseState!==u.Text&&this.baseState!==u.InSpecialTag?(this.sectionStart0&&A.has(this.stack[0]);){var D=this.stack.shift();(_=(v=this.cbs).onclosetag)===null||_===void 0||_.call(v,D,!0)}this.isVoidElement(g)||(this.stack.unshift(g),this.htmlMode&&(f.has(g)?this.foreignContext.unshift(!0):p.has(g)&&this.foreignContext.unshift(!1))),(S=(w=this.cbs).onopentagname)===null||S===void 0||S.call(w,g),this.cbs.onopentag&&(this.attribs={})},m.prototype.endOpenTag=function(g){var v,_;this.startIndex=this.openTagStart,this.attribs&&((_=(v=this.cbs).onopentag)===null||_===void 0||_.call(v,this.tagname,this.attribs,g),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},m.prototype.onopentagend=function(g){this.endIndex=g,this.endOpenTag(!1),this.startIndex=g+1},m.prototype.onclosetag=function(g,v){var _,w,S,A,D,L,E,O;this.endIndex=v;var P=this.getSlice(g,v);if(this.lowerCaseTagNames&&(P=P.toLowerCase()),this.htmlMode&&(f.has(P)||p.has(P))&&this.foreignContext.shift(),this.isVoidElement(P))this.htmlMode&&P==="br"&&((A=(S=this.cbs).onopentagname)===null||A===void 0||A.call(S,"br"),(L=(D=this.cbs).onopentag)===null||L===void 0||L.call(D,"br",{},!0),(O=(E=this.cbs).onclosetag)===null||O===void 0||O.call(E,"br",!1));else{var j=this.stack.indexOf(P);if(j!==-1)for(var U=0;U<=j;U++){var M=this.stack.shift();(w=(_=this.cbs).onclosetag)===null||w===void 0||w.call(_,M,U!==j)}else this.htmlMode&&P==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=v+1},m.prototype.onselfclosingtag=function(g){this.endIndex=g,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=g+1):this.onopentagend(g)},m.prototype.closeCurrentTag=function(g){var v,_,w=this.tagname;this.endOpenTag(g),this.stack[0]===w&&((_=(v=this.cbs).onclosetag)===null||_===void 0||_.call(v,w,!g),this.stack.shift())},m.prototype.onattribname=function(g,v){this.startIndex=g;var _=this.getSlice(g,v);this.attribname=this.lowerCaseAttributeNames?_.toLowerCase():_},m.prototype.onattribdata=function(g,v){this.attribvalue+=this.getSlice(g,v)},m.prototype.onattribentity=function(g){this.attribvalue+=(0,n.fromCodePoint)(g)},m.prototype.onattribend=function(g,v){var _,w;this.endIndex=v,(w=(_=this.cbs).onattribute)===null||w===void 0||w.call(_,this.attribname,this.attribvalue,g===s.QuoteType.Double?'"':g===s.QuoteType.Single?"'":g===s.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},m.prototype.getInstructionName=function(g){var v=g.search(y),_=v<0?g:g.substr(0,v);return this.lowerCaseTagNames&&(_=_.toLowerCase()),_},m.prototype.ondeclaration=function(g,v){this.endIndex=v;var _=this.getSlice(g,v);if(this.cbs.onprocessinginstruction){var w=this.getInstructionName(_);this.cbs.onprocessinginstruction("!".concat(w),"!".concat(_))}this.startIndex=v+1},m.prototype.onprocessinginstruction=function(g,v){this.endIndex=v;var _=this.getSlice(g,v);if(this.cbs.onprocessinginstruction){var w=this.getInstructionName(_);this.cbs.onprocessinginstruction("?".concat(w),"?".concat(_))}this.startIndex=v+1},m.prototype.oncomment=function(g,v,_){var w,S,A,D;this.endIndex=v,(S=(w=this.cbs).oncomment)===null||S===void 0||S.call(w,this.getSlice(g,v-_)),(D=(A=this.cbs).oncommentend)===null||D===void 0||D.call(A),this.startIndex=v+1},m.prototype.oncdata=function(g,v,_){var w,S,A,D,L,E,O,P,j,U;this.endIndex=v;var M=this.getSlice(g,v-_);!this.htmlMode||this.options.recognizeCDATA?((S=(w=this.cbs).oncdatastart)===null||S===void 0||S.call(w),(D=(A=this.cbs).ontext)===null||D===void 0||D.call(A,M),(E=(L=this.cbs).oncdataend)===null||E===void 0||E.call(L)):((P=(O=this.cbs).oncomment)===null||P===void 0||P.call(O,"[CDATA[".concat(M,"]]")),(U=(j=this.cbs).oncommentend)===null||U===void 0||U.call(j)),this.startIndex=v+1},m.prototype.onend=function(){var g,v;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var _=0;_=this.buffers[0].length;)this.shiftBuffer();for(var _=this.buffers[0].slice(g-this.bufferOffset,v-this.bufferOffset);v-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),_+=this.buffers[0].slice(0,v-this.bufferOffset);return _},m.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},m.prototype.write=function(g){var v,_;if(this.ended){(_=(v=this.cbs).onerror)===null||_===void 0||_.call(v,new Error(".write() after done!"));return}this.buffers.push(g),this.tokenizer.running&&(this.tokenizer.write(g),this.writeIndex++)},m.prototype.end=function(g){var v,_;if(this.ended){(_=(v=this.cbs).onerror)===null||_===void 0||_.call(v,new Error(".end() after done!"));return}g&&this.write(g),this.ended=!0,this.tokenizer.end()},m.prototype.pause=function(){this.tokenizer.pause()},m.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{};let c=0,d=1;function h(b){l.emit("error",b)}function f(){--d===0&&l.push(null)}const p={baseIRI:((y=r.metadata)==null?void 0:y.baseIRI)??"",context:o,emit:b=>{c--,l.push(b)},end:f,error:h,headers:r.headers};try{const b=await Promise.all(this.busRdfParseHtml.publish(p));d+=b.length;const m=[];for(const _ of b){const{htmlParseListener:w}=await _.actor.run(p);m.push(w)}const g=new e.Parser({onclosetag(){try{for(const _ of m)_.onTagClose()}catch(_){h(_)}},onend(){try{for(const _ of m)_.onEnd()}catch(_){h(_)}f()},onopentag(_,w){try{for(const S of m)S.onTagOpen(_,w)}catch(S){h(S)}},ontext(_){try{for(const w of m)w.onText(_)}catch(w){h(w)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:!1}),v=l._read=_=>{for(c=Math.max(_,c);c>0;){const w=r.data.read();if(w===null){r.data.once("readable",()=>v(0));return}g.write(w.toString())}};r.data.on("error",h).on("end",()=>g.end())}catch(b){setTimeout(()=>{l.emit("error",b)})}return{data:l}}}return ql.ActorRdfParseHtml=s,ql}var pN;function DJ(){return pN||(pN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(PJ(),t)}(Hv)),Hv}var Qv={},Ul={},Vv={},Hl={},yN;function NJ(){if(yN)return Hl;yN=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.ActorRdfParseHtml=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Hl.ActorRdfParseHtml=e,Hl}var bN;function JT(){return bN||(bN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(NJ(),t)}(Vv)),Vv}var kv={},zv={},gN;function CJ(){return gN||(gN=1,Object.defineProperty(zv,"__esModule",{value:!0})),zv}var $l={},mN;function Vq(){if(mN)return $l;mN=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.ItemPropertyHandlerContent=void 0;let t=class{canHandle(u,s){return"content"in s}getObject(u,s,n){return s.createLiteral(u.content,n)}};return $l.ItemPropertyHandlerContent=t,$l}var Ql={},Vl={},_N;function kb(){if(_N)return Vl;_N=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.Util=void 0;const t=Et(),e=Pi();class u{constructor(n,r){this.dataFactory=n||new t.DataFactory,this.baseIRI=r||""}static isValidIri(n){return u.IRI_REGEX.test(n)}createVocabIris(n,r,a){return n.split(/\s+/u).filter(o=>!!o).map(o=>{if(!u.isValidIri(o)){if(!a)return;o=`${r.vocab||`${this.baseIRI}#`}${o}`}return this.dataFactory.namedNode(o)}).filter(o=>!!o)}getVocabularyExpansionType(n,r,a){const o=n.split(/\s+/u);if(o.includes("subPropertyOf")||o.includes("equivalentProperty"))return[this.dataFactory.namedNode(`${u.RDF}type`)];if(r.vocab&&r.vocab in a&&a[r.vocab].properties){let l=[];for(const[c,d]of Object.entries(a[r.vocab].properties))o.includes(c)&&(l=[...Object.values(d).map(h=>this.dataFactory.namedNode(h))]);return l}return[]}createSubject(n){if(!u.isValidIri(n))try{n=(0,e.resolve)(n,this.baseIRI)}catch{return}return this.dataFactory.namedNode(n)}createLiteral(n,r){return this.dataFactory.literal(n,r.language)}deriveVocab(n,r){let a;for(const o in r)if(n.startsWith(o)){a=o,a.endsWith("/")||(a+="#");break}if(!a){const o=n.indexOf("#");o>0?a=n.slice(0,o+1):a=(0,e.resolve)(".",n)}return a}}return Vl.Util=u,u.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",u.XSD="http://www.w3.org/2001/XMLSchema#",u.RDFA="http://www.w3.org/ns/rdfa#",u.IRI_REGEX=/^([A-Za-z][\d+-.A-Za-z]*|_):[^ "<>[\\\]`{|}]*$/u,Vl}var vN;function kq(){if(vN)return Ql;vN=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.ItemPropertyHandlerNumber=void 0;const t=kb();let e=class{constructor(s,n){this.tagName=s,this.attributeName=n}canHandle(s,n){return this.tagName===s&&this.attributeName in n}getObject(s,n,r){const a=s[this.attributeName];let o;return!Number.isNaN(Number.parseInt(a,10))&&!a.includes(".")?o=`${t.Util.XSD}integer`:Number.isNaN(Number.parseFloat(a))||(o=`${t.Util.XSD}double`),n.dataFactory.literal(a,o&&n.dataFactory.namedNode(o))}};return Ql.ItemPropertyHandlerNumber=e,Ql}var kl={},wN;function Gq(){if(wN)return kl;wN=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.ItemPropertyHandlerTime=void 0;const t=kb();let e=class zq{canHandle(s,n){return s==="time"&&"datetime"in n}getObject(s,n,r){const a=s.datetime;let o;for(const l of zq.TIME_REGEXES)if(l.regex.test(a)){o=n.dataFactory.namedNode(t.Util.XSD+l.type);break}return n.dataFactory.literal(a,o)}};return kl.ItemPropertyHandlerTime=e,e.TIME_REGEXES=[{regex:/^-?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d)?S)?)?$/u,type:"duration"},{regex:/^\d+-\d\d-\d\dT\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"dateTime"},{regex:/^\d+-\d\d-\d\dZ?$/u,type:"date"},{regex:/^\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u,type:"time"},{regex:/^\d+-\d\d$/u,type:"gYearMonth"},{regex:/^\d+$/u,type:"gYear"}],kl}var zl={},SN;function Wq(){if(SN)return zl;SN=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.ItemPropertyHandlerUrl=void 0;const t=Pi();let e=class{constructor(s,n){this.tagName=s,this.attributeName=n}canHandle(s,n){return this.tagName===s&&this.attributeName in n}getObject(s,n,r){return n.dataFactory.namedNode((0,t.resolve)(s[this.attributeName],n.baseIRI))}};return zl.ItemPropertyHandlerUrl=e,zl}var Gv={},TN;function jJ(){return TN||(TN=1,Object.defineProperty(Gv,"__esModule",{value:!0})),Gv}var Wv={},AN;function LJ(){return AN||(AN=1,Object.defineProperty(Wv,"__esModule",{value:!0})),Wv}var Jv={},EN;function MJ(){return EN||(EN=1,Object.defineProperty(Jv,"__esModule",{value:!0})),Jv}var Gl={},Xv={},Wl={},Kv={},ON;function Jq(){return ON||(ON=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Ga(),u;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(u||(u={}));var s;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(s||(s={}));function n(f){return f===u.Space||f===u.NewLine||f===u.Tab||f===u.FormFeed||f===u.CarriageReturn}function r(f){return f===u.Slash||f===u.Gt||n(f)}function a(f){return f>=u.Zero&&f<=u.Nine}function o(f){return f>=u.LowerA&&f<=u.LowerZ||f>=u.UpperA&&f<=u.UpperZ}function l(f){return f>=u.UpperA&&f<=u.UpperF||f>=u.LowerA&&f<=u.LowerF}var c;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(c=t.QuoteType||(t.QuoteType={}));var d={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(p,y){var b=p.xmlMode,m=b===void 0?!1:b,g=p.decodeEntities,v=g===void 0?!0:g;this.cbs=y,this.state=s.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=s.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=v,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=s.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=s.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(p){this.offset+=this.buffer.length,this.buffer=p,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=s.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&p===u.Amp&&(this.state=s.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(p){var y=this.sequenceIndex===this.currentSequence.length,b=y?r(p):(p|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!y){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=s.InTagName,this.stateInTagName(p)},f.prototype.stateInSpecialTag=function(p){if(this.sequenceIndex===this.currentSequence.length){if(p===u.Gt||n(p)){var y=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&p!==u.Semi)this.trieIndex+=b;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var p=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(p){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(p){(p|32)===u.LowerX?(this.entityExcess++,this.state=s.InHexEntity):(this.state=s.InNumericEntity,this.stateInNumericEntity(p))},f.prototype.emitNumericEntity=function(p){var y=this.index-this.entityExcess-1,b=y+2+ +(this.state===s.InHexEntity);b!==this.index&&(y>this.sectionStart&&this.emitPartial(this.sectionStart,y),this.sectionStart=this.index+Number(p),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(p){p===u.Semi?this.emitNumericEntity(!0):a(p)?(this.entityResult=this.entityResult*10+(p-u.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(p){p===u.Semi?this.emitNumericEntity(!0):a(p)?(this.entityResult=this.entityResult*16+(p-u.Zero),this.entityExcess++):l(p)?(this.entityResult=this.entityResult*16+((p|32)-u.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===s.Text||this.baseState===s.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===s.Text||this.state===s.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===s.InAttributeValueDq||this.state===s.InAttributeValueSq||this.state===s.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index0&&A.has(this.stack[this.stack.length-1]);){var D=this.stack.pop();(_=(v=this.cbs).onclosetag)===null||_===void 0||_.call(v,D,!0)}this.isVoidElement(g)||(this.stack.push(g),f.has(g)?this.foreignContext.push(!0):p.has(g)&&this.foreignContext.push(!1)),(S=(w=this.cbs).onopentagname)===null||S===void 0||S.call(w,g),this.cbs.onopentag&&(this.attribs={})},m.prototype.endOpenTag=function(g){var v,_;this.startIndex=this.openTagStart,this.attribs&&((_=(v=this.cbs).onopentag)===null||_===void 0||_.call(v,this.tagname,this.attribs,g),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},m.prototype.onopentagend=function(g){this.endIndex=g,this.endOpenTag(!1),this.startIndex=g+1},m.prototype.onclosetag=function(g,v){var _,w,S,A,D,L;this.endIndex=v;var E=this.getSlice(g,v);if(this.lowerCaseTagNames&&(E=E.toLowerCase()),(f.has(E)||p.has(E))&&this.foreignContext.pop(),this.isVoidElement(E))!this.options.xmlMode&&E==="br"&&((w=(_=this.cbs).onopentagname)===null||w===void 0||w.call(_,"br"),(A=(S=this.cbs).onopentag)===null||A===void 0||A.call(S,"br",{},!0),(L=(D=this.cbs).onclosetag)===null||L===void 0||L.call(D,"br",!1));else{var O=this.stack.lastIndexOf(E);if(O!==-1)if(this.cbs.onclosetag)for(var P=this.stack.length-O;P--;)this.cbs.onclosetag(this.stack.pop(),P!==0);else this.stack.length=O;else!this.options.xmlMode&&E==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=v+1},m.prototype.onselfclosingtag=function(g){this.endIndex=g,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=g+1):this.onopentagend(g)},m.prototype.closeCurrentTag=function(g){var v,_,w=this.tagname;this.endOpenTag(g),this.stack[this.stack.length-1]===w&&((_=(v=this.cbs).onclosetag)===null||_===void 0||_.call(v,w,!g),this.stack.pop())},m.prototype.onattribname=function(g,v){this.startIndex=g;var _=this.getSlice(g,v);this.attribname=this.lowerCaseAttributeNames?_.toLowerCase():_},m.prototype.onattribdata=function(g,v){this.attribvalue+=this.getSlice(g,v)},m.prototype.onattribentity=function(g){this.attribvalue+=(0,n.fromCodePoint)(g)},m.prototype.onattribend=function(g,v){var _,w;this.endIndex=v,(w=(_=this.cbs).onattribute)===null||w===void 0||w.call(_,this.attribname,this.attribvalue,g===s.QuoteType.Double?'"':g===s.QuoteType.Single?"'":g===s.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},m.prototype.getInstructionName=function(g){var v=g.search(y),_=v<0?g:g.substr(0,v);return this.lowerCaseTagNames&&(_=_.toLowerCase()),_},m.prototype.ondeclaration=function(g,v){this.endIndex=v;var _=this.getSlice(g,v);if(this.cbs.onprocessinginstruction){var w=this.getInstructionName(_);this.cbs.onprocessinginstruction("!".concat(w),"!".concat(_))}this.startIndex=v+1},m.prototype.onprocessinginstruction=function(g,v){this.endIndex=v;var _=this.getSlice(g,v);if(this.cbs.onprocessinginstruction){var w=this.getInstructionName(_);this.cbs.onprocessinginstruction("?".concat(w),"?".concat(_))}this.startIndex=v+1},m.prototype.oncomment=function(g,v,_){var w,S,A,D;this.endIndex=v,(S=(w=this.cbs).oncomment)===null||S===void 0||S.call(w,this.getSlice(g,v-_)),(D=(A=this.cbs).oncommentend)===null||D===void 0||D.call(A),this.startIndex=v+1},m.prototype.oncdata=function(g,v,_){var w,S,A,D,L,E,O,P,j,U;this.endIndex=v;var M=this.getSlice(g,v-_);this.options.xmlMode||this.options.recognizeCDATA?((S=(w=this.cbs).oncdatastart)===null||S===void 0||S.call(w),(D=(A=this.cbs).ontext)===null||D===void 0||D.call(A,M),(E=(L=this.cbs).oncdataend)===null||E===void 0||E.call(L)):((P=(O=this.cbs).oncomment)===null||P===void 0||P.call(O,"[CDATA[".concat(M,"]]")),(U=(j=this.cbs).oncommentend)===null||U===void 0||U.call(j)),this.startIndex=v+1},m.prototype.onend=function(){var g,v;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var _=this.stack.length;_>0;this.cbs.onclosetag(this.stack[--_],!0));}(v=(g=this.cbs).onend)===null||v===void 0||v.call(g)},m.prototype.reset=function(){var g,v,_,w;(v=(g=this.cbs).onreset)===null||v===void 0||v.call(g),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(w=(_=this.cbs).onparserinit)===null||w===void 0||w.call(_,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},m.prototype.parseComplete=function(g){this.reset(),this.end(g)},m.prototype.getSlice=function(g,v){for(;g-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var _=this.buffers[0].slice(g-this.bufferOffset,v-this.bufferOffset);v-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),_+=this.buffers[0].slice(0,v-this.bufferOffset);return _},m.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},m.prototype.write=function(g){var v,_;if(this.ended){(_=(v=this.cbs).onerror)===null||_===void 0||_.call(v,new Error(".write() after done!"));return}this.buffers.push(g),this.tokenizer.running&&(this.tokenizer.write(g),this.writeIndex++)},m.prototype.end=function(g){var v,_;if(this.ended){(_=(v=this.cbs).onerror)===null||_===void 0||_.call(v,new Error(".end() after done!"));return}g&&this.write(g),this.ended=!0,this.tokenizer.end()},m.prototype.pause=function(){this.tokenizer.pause()},m.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndexf.emit("error",p)),d.on("data",p=>h.push(p)),d.on("end",()=>h.push(null));const f=h.pipe(new s3(this.options));return f}_transform(d,h,f){this.parser.write(d.toString()),f()}_flush(d){this.parser.end(),d()}getItemScope(d){let h=this.itemScopeStack.length-(d?2:1);for(;h>0&&!this.itemScopeStack[h];)h--;return this.itemScopeStack[h]}getDepth(){return this.itemScopeStack.length}onTagOpen(d,h){if(!this.isEmittingReferences){if("id"in h){const p=h.id;this.pendingItemRefsRangeCollecting[p]={events:[],counter:0,ids:[]}}for(const p of Object.values(this.pendingItemRefsRangeCollecting))p.counter++,p.events.push({type:"open",name:d,attributes:h})}this.textBufferStack.push(void 0);let f;if("itemscope"in h){let p;if(this.emittingReferencesItemScopeIdGenerator)p=this.emittingReferencesItemScopeIdGenerator();else{p="itemid"in h&&this.util.createSubject(h.itemid)||this.util.dataFactory.blankNode();for(const b of Object.values(this.pendingItemRefsRangeCollecting))b.ids.push(p)}f={subject:p},this.isEmittingReferences&&(f.blockEmission=!0);const y=this.getItemScope();y&&y.vocab&&(f.vocab=y.vocab),this.itemScopeStack.push(f)}else f=this.getItemScope(),this.itemScopeStack.push(void 0);if(f){if("itemtype"in h)for(const p of this.util.createVocabIris(h.itemtype,f,!1))f.vocab||(f.vocab=this.util.deriveVocab(p.value,this.vocabRegistry)),f.blockEmission||this.emitTriple(f.subject,this.util.dataFactory.namedNode(`${a.Util.RDF}type`),p);if("lang"in h&&(f.language=h.lang),"xml:lang"in h&&(f.language=h["xml:lang"]),"itemscope"in h&&!this.isEmittingReferences&&"itemref"in h)for(const p of h.itemref.split(/\s+/u))p in this.pendingItemRefsDomain||(this.pendingItemRefsDomain[p]=[]),this.pendingItemRefsDomain[p].push(f),this.tryToEmitReferences(p,f)}"itemprop"in h&&this.handleItemProperties(h.itemprop,!1,f,d,h),"itemprop-reverse"in h&&this.handleItemProperties(h["itemprop-reverse"],!0,f,d,h)}onText(d){if(!this.isEmittingReferences)for(const h of Object.values(this.pendingItemRefsRangeCollecting))h.events.push({type:"text",data:d});for(const h of this.textBufferStack)h&&h.push(d)}onTagClose(){if(!this.isEmittingReferences)for(const[h,f]of Object.entries(this.pendingItemRefsRangeCollecting))f.counter--,f.events.push({type:"close"}),f.counter===0&&(this.pendingItemRefsRangeFinalized[h]=f,delete this.pendingItemRefsRangeCollecting[h],this.tryToEmitReferences(h));const d=this.getItemScope(!0);if(d){const h=this.getDepth();if(d.predicates&&h in d.predicates)for(const[f,p]of Object.entries(d.predicates[h])){const y=this.util.createLiteral(this.textBufferStack[h].join(""),d);this.emitPredicateTriples(d,p,y,f==="reverse"),delete d.predicates[h][f]}}this.itemScopeStack.pop(),this.textBufferStack.pop()}onEnd(){}initializeParser(d){return new t.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(h){this.emit("error",h)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(h){this.emit("error",h)}},onopentag:(h,f)=>{try{this.onTagOpen(h,f),this.htmlParseListener&&this.htmlParseListener.onTagOpen(h,f)}catch(p){this.emit("error",p)}},ontext:h=>{try{this.onText(h),this.htmlParseListener&&this.htmlParseListener.onText(h)}catch(f){this.emit("error",f)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:d})}handleItemProperties(d,h,f,p,y){const b=this.getItemScope(!0);if(b){const m=this.getDepth(),g=this.util.createVocabIris(d,b,!0);b.predicates||(b.predicates={}),b.predicates[m]||(b.predicates[m]={});const v=h?"reverse":"forward";b.predicates[m][v]=g;for(const _ of this.util.getVocabularyExpansionType(d,b,this.vocabRegistry))g.push(_);if(f&&"itemscope"in y)this.emitPredicateTriples(b,g,f.subject,h),delete b.predicates[m][v];else for(const _ of s3.ITEM_PROPERTY_HANDLERS)if(_.canHandle(p,y)){const w=_.getObject(y,this.util,b);this.emitPredicateTriples(b,g,w,h),delete b.predicates[m][v]}b.predicates[m][v]&&(this.textBufferStack[m]=[])}}emitPredicateTriples(d,h,f,p){if(!d.blockEmission)for(const y of h)p?f.termType!=="Literal"&&this.emitTriple(f,y,d.subject):this.emitTriple(d.subject,y,f)}emitTriple(d,h,f){this.push(this.util.dataFactory.quad(d,h,f,this.defaultGraph))}tryToEmitReferences(d,h){const f=this.pendingItemRefsRangeFinalized[d];if(f){let p;if(h){p=[h];const y=this.pendingItemRefsDomain[d].indexOf(h);this.pendingItemRefsDomain[d].splice(y,1)}else p=this.pendingItemRefsDomain[d],delete this.pendingItemRefsDomain[d];if(p){const y=this.itemScopeStack,b=this.textBufferStack;this.isEmittingReferences=!0;for(const m of p){this.itemScopeStack=[m],this.textBufferStack=[void 0];const g=[...f.ids];this.emittingReferencesItemScopeIdGenerator=()=>g.shift();for(const v of f.events)switch(v.type){case"open":this.onTagOpen(v.name,v.attributes);break;case"text":this.onText(v.data);break;case"close":this.onTagClose();break}}this.emittingReferencesItemScopeIdGenerator=void 0,this.itemScopeStack=y,this.textBufferStack=b,this.isEmittingReferences=!1}}}};return Gl.MicrodataRdfParser=l,l.ITEM_PROPERTY_HANDLERS=[new u.ItemPropertyHandlerContent,new r.ItemPropertyHandlerUrl("a","href"),new r.ItemPropertyHandlerUrl("area","href"),new r.ItemPropertyHandlerUrl("audio","src"),new r.ItemPropertyHandlerUrl("embed","src"),new r.ItemPropertyHandlerUrl("iframe","src"),new r.ItemPropertyHandlerUrl("img","src"),new r.ItemPropertyHandlerUrl("link","href"),new r.ItemPropertyHandlerUrl("object","data"),new r.ItemPropertyHandlerUrl("source","src"),new r.ItemPropertyHandlerUrl("track","src"),new r.ItemPropertyHandlerUrl("video","src"),new s.ItemPropertyHandlerNumber("data","value"),new s.ItemPropertyHandlerNumber("meter","value"),new n.ItemPropertyHandlerTime],Gl}var DN;function UJ(){return DN||(DN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(CJ(),t),u(Vq(),t),u(kq(),t),u(Gq(),t),u(Wq(),t),u(jJ(),t),u(LJ(),t),u(MJ(),t),u(BJ(),t),u(kb(),t)}(kv)),kv}var NN;function HJ(){if(NN)return Ul;NN=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.ActorRdfParseHtmlMicrodata=void 0;const t=JT(),e=UJ();let u=class extends t.ActorRdfParseHtml{constructor(n){super(n)}async test(n){return!0}async run(n){const r=n.headers?n.headers.get("content-type"):null,a=r==null?void 0:r.includes("xml"),o=new e.MicrodataRdfParser({baseIRI:n.baseIRI,xmlMode:a});o.on("error",n.error),o.on("data",n.emit);const l=o.onEnd;return o.onEnd=()=>{l.call(o),n.end()},{htmlParseListener:o}}};return Ul.ActorRdfParseHtmlMicrodata=u,Ul}var CN;function $J(){return CN||(CN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(HJ(),t)}(Qv)),Qv}var Yv={},Jl={},jN;function QJ(){if(jN)return Jl;jN=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.ActorRdfParseHtmlRdfa=void 0;const t=JT(),e=$q();let u=class extends t.ActorRdfParseHtml{constructor(n){super(n)}async test(n){return!0}async run(n){const r=n.headers?n.headers.get("content-type"):null,a=(n.headers&&n.headers.get("content-language"))??void 0,o=r&&r.includes("xml")?"xhtml":"html",l=new e.RdfaParser({baseIRI:n.baseIRI,profile:o,language:a});l.on("error",n.error),l.on("data",n.emit);const c=l.onEnd;return l.onEnd=()=>{c.call(l),n.end()},{htmlParseListener:l}}};return Jl.ActorRdfParseHtmlRdfa=u,Jl}var LN;function VJ(){return LN||(LN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(QJ(),t)}(Yv)),Yv}var Zv={},Xl={},e2={},Kl={},MN;function kJ(){if(MN)return Kl;MN=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.ActorRdfResolveHypermediaLinksQueue=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Kl.ActorRdfResolveHypermediaLinksQueue=e,Kl}var t2={},FN;function zJ(){return FN||(FN=1,Object.defineProperty(t2,"__esModule",{value:!0})),t2}var Yl={},qN;function GJ(){if(qN)return Yl;qN=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.LinkQueueWrapper=void 0;let t=class{constructor(u){this.linkQueue=u}push(u,s){return this.linkQueue.push(u,s)}getSize(){return this.linkQueue.getSize()}isEmpty(){return this.linkQueue.isEmpty()}pop(){return this.linkQueue.pop()}peek(){return this.linkQueue.peek()}};return Yl.LinkQueueWrapper=t,Yl}var BN;function WJ(){return BN||(BN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(kJ(),t),u(zJ(),t),u(GJ(),t)}(e2)),e2}var Zl={},UN;function Xq(){if(UN)return Zl;UN=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.LinkQueueFifo=void 0;let t=class{constructor(){this.links=[]}push(u){return this.links.push(u),!0}getSize(){return this.links.length}isEmpty(){return this.links.length===0}pop(){return this.links.shift()}peek(){return this.links[0]}};return Zl.LinkQueueFifo=t,Zl}var HN;function JJ(){if(HN)return Xl;HN=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.ActorRdfResolveHypermediaLinksQueueFifo=void 0;const t=WJ(),e=Xq();let u=class extends t.ActorRdfResolveHypermediaLinksQueue{constructor(n){super(n)}async test(n){return!0}async run(n){return{linkQueue:new e.LinkQueueFifo}}};return Xl.ActorRdfResolveHypermediaLinksQueueFifo=u,Xl}var $N;function XJ(){return $N||($N=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(JJ(),t),u(Xq(),t)}(Zv)),Zv}var r2={},ed={},n2={},td={},QN;function KJ(){if(QN)return td;QN=1,Object.defineProperty(td,"__esModule",{value:!0}),td.ActorRdfResolveHypermediaLinks=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return td.ActorRdfResolveHypermediaLinks=e,td}var VN;function YJ(){return VN||(VN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(KJ(),t)}(n2)),n2}var kN;function ZJ(){if(kN)return ed;kN=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.ActorRdfResolveHypermediaLinksNext=void 0;const t=YJ();let e=class extends t.ActorRdfResolveHypermediaLinks{constructor(s){super(s)}async test(s){if(!s.metadata.next||s.metadata.next.length===0)throw new Error(`Actor ${this.name} requires a 'next' metadata entry.`);return!0}async run(s){return{links:s.metadata.next.map(n=>({url:n}))}}};return ed.ActorRdfResolveHypermediaLinksNext=e,ed}var zN;function eX(){return zN||(zN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ZJ(),t)}(r2)),r2}var i2={},rd={},a2={},nd={},GN;function tX(){if(GN)return nd;GN=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.ActorRdfSerialize=void 0;const t=nu();let e=class extends t.ActorAbstractMediaTyped{constructor(s){super(s)}};return nd.ActorRdfSerialize=e,nd}var id={},WN;function rX(){if(WN)return id;WN=1,Object.defineProperty(id,"__esModule",{value:!0}),id.ActorRdfSerializeFixedMediaTypes=void 0;const t=nu();let e=class extends t.ActorAbstractMediaTypedFixed{constructor(s){super(s)}async testHandleChecked(){return!0}};return id.ActorRdfSerializeFixedMediaTypes=e,id}var JN;function XT(){return JN||(JN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(tX(),t),u(rX(),t)}(a2)),a2}var XN;function nX(){if(XN)return rd;XN=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.ActorRdfSerializeN3=void 0;const t=XT(),e=ts;let u=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(n){super(n)}async runHandle(n,r){const a=new e.StreamWriter({format:r});let o;return"pipe"in n.quadStream?(n.quadStream.on("error",l=>a.emit("error",l)),o=n.quadStream.pipe(a)):o=a.import(n.quadStream),{data:o,triples:r==="text/turtle"||r==="application/n-triples"||r==="text/n3"}}};return rd.ActorRdfSerializeN3=u,rd}var KN;function iX(){return KN||(KN=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(nX(),t)}(i2)),i2}var s2={},ad={},o2={},sd={},od={},YN;function aX(){if(YN)return od;YN=1,Object.defineProperty(od,"__esModule",{value:!0}),od.SeparatorType=void 0;let t=class{constructor(u){this.label=u}};return od.SeparatorType=t,t.COMMA=new t(","),t.OBJECT_START=new t("{"),t.OBJECT_END=new t("}"),t.OBJECT_END_COMMA=new t("},"),t.ARRAY_START=new t("["),t.ARRAY_END=new t("]"),t.ARRAY_END_COMMA=new t("],"),t.GRAPH_FIELD_NONCOMPACT=new t('"@graph": ['),t.GRAPH_FIELD_COMPACT=new t('"@graph":['),t.CONTEXT_FIELD=new t('"@context":'),od}var ud={},ZN;function Kq(){if(ZN)return ud;ZN=1,Object.defineProperty(ud,"__esModule",{value:!0}),ud.Util=void 0;const t=Jr();class e{static termToValue(s,n,r={compactIds:!1,useNativeTypes:!1}){switch(s.termType){case"NamedNode":const a=n.compactIri(s.value,r.vocab);return r.compactIds?a:{"@id":a};case"DefaultGraph":return r.compactIds?s.value:{"@id":s.value};case"BlankNode":const o=`_:${s.value}`;return r.compactIds?o:{"@id":o};case"Literal":if(s.datatype.value===e.RDF_JSON){let d;try{d=JSON.parse(s.value)}catch(h){throw new t.ErrorCoded("Invalid JSON literal: "+h.message,t.ERROR_CODES.INVALID_JSON_LITERAL)}return{"@value":d,"@type":"@json"}}if(r.rdfDirection==="i18n-datatype"&&s.datatype.value.startsWith(e.I18N)){const[d,h]=s.datatype.value.substr(e.I18N.length,s.datatype.value.length).split("_");return Object.assign(Object.assign({"@value":s.value},d?{"@language":d}:{}),h?{"@direction":h}:{})}const l=s.datatype.value===e.XSD_STRING,c={"@value":!l&&r.useNativeTypes?e.stringToNativeType(s.value,s.datatype.value):s.value};return s.language?Object.assign(Object.assign({},c),{"@language":s.language}):!l&&typeof c["@value"]=="string"?Object.assign(Object.assign({},c),{"@type":s.datatype.value}):c}}static stringToNativeType(s,n){if(n.startsWith(e.XSD))switch(n.substr(e.XSD.length)){case"boolean":if(s==="true")return!0;if(s==="false")return!1;throw new Error(`Invalid xsd:boolean value '${s}'`);case"integer":case"number":case"int":case"byte":case"long":const a=parseInt(s,10);if(isNaN(a))throw new Error(`Invalid xsd:integer value '${s}'`);return a;case"float":case"double":const o=parseFloat(s);if(isNaN(o))throw new Error(`Invalid xsd:float value '${s}'`);return o}return s}}return ud.Util=e,e.XSD="http://www.w3.org/2001/XMLSchema#",e.XSD_STRING=e.XSD+"string",e.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e.RDF_TYPE=e.RDF+"type",e.RDF_JSON=e.RDF+"JSON",e.I18N="https://www.w3.org/ns/i18n#",ud}var e4;function sX(){if(e4)return sd;e4=1,Object.defineProperty(sd,"__esModule",{value:!0}),sd.JsonLdSerializer=void 0;const t=Jr(),e=aX(),u=Kq(),s=Wt();let n=class Yq extends s.Transform{constructor(a={}){super({objectMode:!0}),this.indentation=0,this.options=a,this.options.baseIRI&&!this.options.context&&(this.options.context={"@base":this.options.baseIRI}),this.options.context?(this.originalContext=this.options.context,this.context=new t.ContextParser().parse(this.options.context,{baseIRI:this.options.baseIRI})):this.context=Promise.resolve(new t.JsonLdContextNormalized({}))}import(a){const o=new s.PassThrough({objectMode:!0});a.on("error",c=>l.emit("error",c)),a.on("data",c=>o.push(c)),a.on("end",()=>o.push(null));const l=o.pipe(new Yq(this.options));return l}_transform(a,o,l){this.context.then(c=>{this.transformQuad(a,c),l()}).catch(l)}async list(a){const o=await this.context;return{"@list":a.map(l=>u.Util.termToValue(l,o,this.options))}}_flush(a){return this.opened||this.pushDocumentStart(),this.lastPredicate&&this.endPredicate(),this.lastSubject&&this.endSubject(),this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.endGraph(),this.endDocument(),a(null,null)}transformQuad(a,o){this.opened||this.pushDocumentStart();const l=this.lastGraph&&this.lastGraph.termType!=="DefaultGraph"&&this.lastGraph.equals(a.subject);if(!l&&(!this.lastGraph||!a.graph.equals(this.lastGraph))){let c=a.graph.termType!=="DefaultGraph"&&this.lastSubject&&this.lastSubject.equals(a.graph);this.lastGraph&&(this.lastGraph.termType!=="DefaultGraph"?(this.endPredicate(),this.endSubject(),this.endGraph(!0),c=!1):c?(this.endPredicate(!0),this.lastSubject=null):(this.endPredicate(),this.endSubject(!0))),a.graph.termType!=="DefaultGraph"&&(c||this.pushId(a.graph,!0,o),this.pushSeparator(this.options.space?e.SeparatorType.GRAPH_FIELD_NONCOMPACT:e.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++),this.lastGraph=a.graph}(!this.lastSubject||!a.subject.equals(this.lastSubject))&&(l?(this.endPredicate(),this.endSubject(),this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END_COMMA),this.lastGraph=a.graph):(this.lastSubject&&(this.endPredicate(),this.endSubject(!0)),this.pushId(a.subject,!0,o)),this.lastSubject=a.subject),(!this.lastPredicate||!a.predicate.equals(this.lastPredicate))&&(this.lastPredicate&&this.endPredicate(!0),this.pushPredicate(a.predicate,o)),this.pushObject(a.object,o)}pushDocumentStart(){this.opened=!0,this.originalContext&&!this.options.excludeContext?(this.pushSeparator(e.SeparatorType.OBJECT_START),this.indentation++,this.pushSeparator(e.SeparatorType.CONTEXT_FIELD),this.pushIndented(JSON.stringify(this.originalContext,null,this.options.space)+","),this.pushSeparator(this.options.space?e.SeparatorType.GRAPH_FIELD_NONCOMPACT:e.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++):(this.pushSeparator(e.SeparatorType.ARRAY_START),this.indentation++)}pushId(a,o,l){if(a.termType==="Quad")this.pushNestedQuad(a,!0,l);else{const c=a.termType==="BlankNode"?"_:"+a.value:l.compactIri(a.value,!1);o?this.pushSeparator(e.SeparatorType.OBJECT_START):(this.push(e.SeparatorType.OBJECT_START.label),this.options.space&&this.push(` +`)),this.indentation++,this.pushIndented(this.options.space?`"@id": "${c}",`:`"@id":"${c}",`)}}pushPredicate(a,o){let l=a.value;!this.options.useRdfType&&l===u.Util.RDF_TYPE&&(l="@type",this.objectOptions=Object.assign(Object.assign({},this.options),{compactIds:!0,vocab:!0}));const c=o.compactIri(l,!0);this.pushIndented(this.options.space?`"${c}": [`:`"${c}":[`),this.indentation++,this.lastPredicate=a}pushObject(a,o){if(this.hadObjectForPredicate?this.pushSeparator(e.SeparatorType.COMMA):this.hadObjectForPredicate=!0,a.termType==="Quad"){const c=this.lastSubject,d=this.lastPredicate;this.hadObjectForPredicate=!1,this.pushNestedQuad(a,!1,o),this.endSubject(!1),this.hadObjectForPredicate=!0,this.lastPredicate=d,this.lastSubject=c;return}let l;try{a["@list"]?l=a:l=u.Util.termToValue(a,o,this.objectOptions||this.options)}catch(c){return this.emit("error",c)}this.pushIndented(JSON.stringify(l,null,this.options.space))}pushNestedQuad(a,o,l){this.pushSeparator(e.SeparatorType.OBJECT_START),this.indentation++,this.pushIndented(this.options.space?'"@id": ':'"@id":',!1),a.graph.termType!=="DefaultGraph"&&this.emit("error",new Error(`Found a nested quad with the non-default graph: ${a.graph.value}`)),this.pushId(a.subject,!1,l),this.pushPredicate(a.predicate,l),this.pushObject(a.object,l),this.endPredicate(!1),this.endSubject(o)}endDocument(){this.opened=!1,this.originalContext&&!this.options.excludeContext?(this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(e.SeparatorType.OBJECT_END)):(this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END))}endPredicate(a){this.indentation--,this.pushSeparator(a?e.SeparatorType.ARRAY_END_COMMA:e.SeparatorType.ARRAY_END),this.hadObjectForPredicate=!1,this.objectOptions=null,this.lastPredicate=null}endSubject(a){this.indentation--,this.pushSeparator(a?e.SeparatorType.OBJECT_END_COMMA:e.SeparatorType.OBJECT_END),this.lastSubject=null}endGraph(a){this.indentation--,this.pushSeparator(e.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(a?e.SeparatorType.OBJECT_END_COMMA:e.SeparatorType.OBJECT_END),this.lastGraph=null}pushSeparator(a){this.pushIndented(a.label)}pushIndented(a,o=!0){const l=this.getIndentPrefix(),c=a.split(` +`).map(d=>l+d).join(` +`);this.push(c),this.options.space&&o&&this.push(` +`)}getIndentPrefix(){return this.options.space?this.options.space.repeat(this.indentation):""}};return sd.JsonLdSerializer=n,sd}var t4;function oX(){return t4||(t4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r),Object.defineProperty(s,a,{enumerable:!0,get:function(){return n[r]}})}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(sX(),t),u(Kq(),t)}(o2)),o2}var r4;function uX(){if(r4)return ad;r4=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.ActorRdfSerializeJsonLd=void 0;const t=XT(),e=oX();let u=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(n){super(n)}async runHandle(n,r,a){const o=new e.JsonLdSerializer({space:" ".repeat(this.jsonStringifyIndentSpaces)});let l;return"pipe"in n.quadStream?(n.quadStream.on("error",c=>o.emit("error",c)),l=n.quadStream.pipe(o)):l=o.import(n.quadStream),{data:l}}};return ad.ActorRdfSerializeJsonLd=u,ad}var n4;function cX(){return n4||(n4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(uX(),t)}(s2)),s2}var u2={},cd={},p1={},i4;function lX(){if(i4)return p1;i4=1,Object.defineProperty(p1,"__esModule",{value:!0});function t(u,s){return new Promise((n,r)=>{u.on("end",()=>n(s)),u.on("error",r)})}function e(u){const s=[];return t(u.on("data",n=>s.push(n)),s)}return p1.default=e,p1}var ld={},y1={},c2={},dd={},a4;function dX(){if(a4)return dd;a4=1,Object.defineProperty(dd,"__esModule",{value:!0}),dd.fragment=void 0;function t(s){let n=s;(n.endsWith("/")||n.endsWith("#"))&&(n=n.slice(0,n.length-1));const r=[];n.lastIndexOf("/")>0&&r.push(n.lastIndexOf("/")),n.lastIndexOf("#")>0&&r.push(n.lastIndexOf("#"));const a=Math.max(...r);return n.slice(a+1)}function e(s){var n;const r=(n=s.split(/[^a-z0-9]+/ig).filter(a=>a!=="").map(a=>a[0].toUpperCase()+a.slice(1)).join("").match(/[a-z][a-z0-9]+/ig))===null||n===void 0?void 0:n[0];return typeof r>"u"?void 0:r[0].toLowerCase()+r.slice(1)}function u(s){let n=t(s);return n=n?e(n):void 0,n||"v"}return dd.fragment=u,dd}var l2={},fd={},Es={},b1={exports:{}},s4;function fX(){return s4||(s4=1,function(t,e){var u=typeof self<"u"?self:I,s=function(){function r(){this.fetch=!1,this.DOMException=u.DOMException}return r.prototype=u,new r}();(function(r){(function(a){var o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function l(M){return M&&DataView.prototype.isPrototypeOf(M)}if(o.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(M){return M&&c.indexOf(Object.prototype.toString.call(M))>-1};function h(M){if(typeof M!="string"&&(M=String(M)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(M))throw new TypeError("Invalid character in header field name");return M.toLowerCase()}function f(M){return typeof M!="string"&&(M=String(M)),M}function p(M){var q={next:function(){var Q=M.shift();return{done:Q===void 0,value:Q}}};return o.iterable&&(q[Symbol.iterator]=function(){return q}),q}function y(M){this.map={},M instanceof y?M.forEach(function(q,Q){this.append(Q,q)},this):Array.isArray(M)?M.forEach(function(q){this.append(q[0],q[1])},this):M&&Object.getOwnPropertyNames(M).forEach(function(q){this.append(q,M[q])},this)}y.prototype.append=function(M,q){M=h(M),q=f(q);var Q=this.map[M];this.map[M]=Q?Q+", "+q:q},y.prototype.delete=function(M){delete this.map[h(M)]},y.prototype.get=function(M){return M=h(M),this.has(M)?this.map[M]:null},y.prototype.has=function(M){return this.map.hasOwnProperty(h(M))},y.prototype.set=function(M,q){this.map[h(M)]=f(q)},y.prototype.forEach=function(M,q){for(var Q in this.map)this.map.hasOwnProperty(Q)&&M.call(q,this.map[Q],Q,this)},y.prototype.keys=function(){var M=[];return this.forEach(function(q,Q){M.push(Q)}),p(M)},y.prototype.values=function(){var M=[];return this.forEach(function(q){M.push(q)}),p(M)},y.prototype.entries=function(){var M=[];return this.forEach(function(q,Q){M.push([Q,q])}),p(M)},o.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(M){if(M.bodyUsed)return Promise.reject(new TypeError("Already read"));M.bodyUsed=!0}function m(M){return new Promise(function(q,Q){M.onload=function(){q(M.result)},M.onerror=function(){Q(M.error)}})}function g(M){var q=new FileReader,Q=m(q);return q.readAsArrayBuffer(M),Q}function v(M){var q=new FileReader,Q=m(q);return q.readAsText(M),Q}function _(M){for(var q=new Uint8Array(M),Q=new Array(q.length),Z=0;Z-1?q:M}function L(M,q){q=q||{};var Q=q.body;if(M instanceof L){if(M.bodyUsed)throw new TypeError("Already read");this.url=M.url,this.credentials=M.credentials,q.headers||(this.headers=new y(M.headers)),this.method=M.method,this.mode=M.mode,this.signal=M.signal,!Q&&M._bodyInit!=null&&(Q=M._bodyInit,M.bodyUsed=!0)}else this.url=String(M);if(this.credentials=q.credentials||this.credentials||"same-origin",(q.headers||!this.headers)&&(this.headers=new y(q.headers)),this.method=D(q.method||this.method||"GET"),this.mode=q.mode||this.mode||null,this.signal=q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Q)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Q)}L.prototype.clone=function(){return new L(this,{body:this._bodyInit})};function E(M){var q=new FormData;return M.trim().split("&").forEach(function(Q){if(Q){var Z=Q.split("="),K=Z.shift().replace(/\+/g," "),fe=Z.join("=").replace(/\+/g," ");q.append(decodeURIComponent(K),decodeURIComponent(fe))}}),q}function O(M){var q=new y,Q=M.replace(/\r?\n[\t ]+/g," ");return Q.split(/\r?\n/).forEach(function(Z){var K=Z.split(":"),fe=K.shift().trim();if(fe){var X=K.join(":").trim();q.append(fe,X)}}),q}S.call(L.prototype);function P(M,q){q||(q={}),this.type="default",this.status=q.status===void 0?200:q.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in q?q.statusText:"OK",this.headers=new y(q.headers),this.url=q.url||"",this._initBody(M)}S.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},P.error=function(){var M=new P(null,{status:0,statusText:""});return M.type="error",M};var j=[301,302,303,307,308];P.redirect=function(M,q){if(j.indexOf(q)===-1)throw new RangeError("Invalid status code");return new P(null,{status:q,headers:{location:M}})},a.DOMException=r.DOMException;try{new a.DOMException}catch{a.DOMException=function(q,Q){this.message=q,this.name=Q;var Z=Error(q);this.stack=Z.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function U(M,q){return new Promise(function(Q,Z){var K=new L(M,q);if(K.signal&&K.signal.aborted)return Z(new a.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function X(){fe.abort()}fe.onload=function(){var he={status:fe.status,statusText:fe.statusText,headers:O(fe.getAllResponseHeaders()||"")};he.url="responseURL"in fe?fe.responseURL:he.headers.get("X-Request-URL");var xe="response"in fe?fe.response:fe.responseText;Q(new P(xe,he))},fe.onerror=function(){Z(new TypeError("Network request failed"))},fe.ontimeout=function(){Z(new TypeError("Network request failed"))},fe.onabort=function(){Z(new a.DOMException("Aborted","AbortError"))},fe.open(K.method,K.url,!0),K.credentials==="include"?fe.withCredentials=!0:K.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&o.blob&&(fe.responseType="blob"),K.headers.forEach(function(he,xe){fe.setRequestHeader(xe,he)}),K.signal&&(K.signal.addEventListener("abort",X),fe.onreadystatechange=function(){fe.readyState===4&&K.signal.removeEventListener("abort",X)}),fe.send(typeof K._bodyInit>"u"?null:K._bodyInit)})}return U.polyfill=!0,r.fetch||(r.fetch=U,r.Headers=y,r.Request=L,r.Response=P),a.Headers=y,a.Request=L,a.Response=P,a.fetch=U,Object.defineProperty(a,"__esModule",{value:!0}),a})({})})(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var n=s;e=n.fetch,e.default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e}(b1,b1.exports)),b1.exports}var o4;function KT(){if(o4)return Es;o4=1;var t=I&&I.__awaiter||function(n,r,a,o){function l(c){return c instanceof a?c:new a(function(d){d(c)})}return new(a||(a=Promise))(function(c,d){function h(y){try{p(o.next(y))}catch(b){d(b)}}function f(y){try{p(o.throw(y))}catch(b){d(b)}}function p(y){y.done?c(y.value):l(y.value).then(h,f)}p((o=o.apply(n,r||[])).next())})};Object.defineProperty(Es,"__esModule",{value:!0}),Es.fetchContext=Es.fetchJson=void 0;const e=fX();function u(n,r){var a;return t(this,void 0,void 0,function*(){return(yield((a=r==null?void 0:r.fetch)!==null&&a!==void 0?a:e.fetch)(n)).json()})}Es.fetchJson=u;function s(n,r){return t(this,void 0,void 0,function*(){return(yield u(n,r))["@context"]})}return Es.fetchContext=s,Es}var u4;function hX(){if(u4)return fd;u4=1;var t=I&&I.__awaiter||function(s,n,r,a){function o(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function d(p){try{f(a.next(p))}catch(y){c(y)}}function h(p){try{f(a.throw(p))}catch(y){c(y)}}function f(p){p.done?l(p.value):o(p.value).then(d,h)}f((a=a.apply(s,n||[])).next())})};Object.defineProperty(fd,"__esModule",{value:!0}),fd.lookupUri=void 0;const e=KT();function u(s,n){return t(this,void 0,void 0,function*(){const r=(yield(0,e.fetchContext)(`https://prefix.cc/${s}.file.jsonld`,n))[s];if(typeof r!="string")throw new Error(`Expected uri to be a string, received: ${r} of type ${typeof r}`);return r})}return fd.lookupUri=u,fd}var hd={},c4;function pX(){if(c4)return hd;c4=1;var t=I&&I.__awaiter||function(s,n,r,a){function o(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function d(p){try{f(a.next(p))}catch(y){c(y)}}function h(p){try{f(a.throw(p))}catch(y){c(y)}}function f(p){p.done?l(p.value):o(p.value).then(d,h)}f((a=a.apply(s,n||[])).next())})};Object.defineProperty(hd,"__esModule",{value:!0}),hd.lookupPrefix=void 0;const e=KT();function u(s,n){return t(this,void 0,void 0,function*(){const r=new URL("https://prefix.cc/reverse");r.searchParams.append("uri",s),r.searchParams.append("format","jsonld");const a=Object.keys(yield(0,e.fetchContext)(r,n));if(a.length===0)throw new Error("No prefixes returned");return a[0]})}return hd.lookupPrefix=u,hd}var pd={},l4;function yX(){if(l4)return pd;l4=1;var t=I&&I.__awaiter||function(s,n,r,a){function o(l){return l instanceof r?l:new r(function(c){c(l)})}return new(r||(r=Promise))(function(l,c){function d(p){try{f(a.next(p))}catch(y){c(y)}}function h(p){try{f(a.throw(p))}catch(y){c(y)}}function f(p){p.done?l(p.value):o(p.value).then(d,h)}f((a=a.apply(s,n||[])).next())})};Object.defineProperty(pd,"__esModule",{value:!0}),pd.lookupAllPrefixes=void 0;const e=KT();function u(s){return t(this,void 0,void 0,function*(){return(0,e.fetchContext)("https://prefix.cc/context",s)})}return pd.lookupAllPrefixes=u,pd}var d4;function f4(){return d4||(d4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(hX(),t),u(pX(),t),u(yX(),t)}(l2)),l2}var h4;function bX(){return h4||(h4=1,function(t){var e=I&&I.__awaiter||function(o,l,c,d){function h(f){return f instanceof c?f:new c(function(p){p(f)})}return new(c||(c=Promise))(function(f,p){function y(g){try{m(d.next(g))}catch(v){p(v)}}function b(g){try{m(d.throw(g))}catch(v){p(v)}}function m(g){g.done?f(g.value):h(g.value).then(y,b)}m((d=d.apply(o,l||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.lookupAllPrefixes=t.prefixToUri=t.uriToPrefix=void 0;const u=dX(),s=f4();function n(o,l){return e(this,void 0,void 0,function*(){let c;try{c=yield(0,s.lookupPrefix)(o,l)}catch{l!=null&&l.mintOnUnknown&&(c=(0,u.fragment)(o).slice(0,4))}if(typeof c<"u"&&typeof(l==null?void 0:l.existingPrefixes)=="object"&&c in l.existingPrefixes){let d=0;for(;`${c}${d}`in l.existingPrefixes;)d+=1;c=`${c}${d}`}return c})}t.uriToPrefix=n;function r(o,l){return e(this,void 0,void 0,function*(){try{return yield(0,s.lookupUri)(o,l)}catch{return}})}t.prefixToUri=r;var a=f4();Object.defineProperty(t,"lookupAllPrefixes",{enumerable:!0,get:function(){return a.lookupAllPrefixes}})}(c2)),c2}var yd={},p4;function gX(){if(p4)return yd;p4=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.getShaclName=void 0;function t(e){if(e.termType!=="NamedNode"||!e.value.startsWith("http://www.w3.org/ns/shacl#"))throw new Error(`Term ${e.value} is not part of the SHACL namespace`);return e.value.slice(27)}return yd.getShaclName=t,yd}var g1={},y4;function mX(){return y4||(y4=1,Object.defineProperty(g1,"__esModule",{value:!0}),g1.default={deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,uniqueLang:!0,equals:!0,disjoint:!0,lessThan:!0,lessThanOrEquals:!0,qualifiedValueShape:!0,qualifiedMinCount:!0,qualifiedMaxCount:!0,qualifiedValueShapesDisjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0,node:!0}),g1}var m1={},b4;function _X(){return b4||(b4=1,Object.defineProperty(m1,"__esModule",{value:!0}),m1.default={owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"}),m1}var _1={},g4;function vX(){return g4||(g4=1,Object.defineProperty(_1,"__esModule",{value:!0}),_1.default={targetNode:!0,targetObjectsOf:!0,targetSubjectsOf:!0,deactivated:!0,severity:!0,message:!0,class:!0,datatype:!0,nodeKind:!0,minExclusive:!0,minInclusive:!0,maxExclusive:!0,maxInclusive:!0,minLength:!0,maxLength:!0,pattern:!0,flags:!0,languageIn:!0,equals:!0,disjoint:!0,closed:!0,ignoredProperties:!0,hasValue:!0,in:!0}),_1}var m4;function wX(){if(m4)return y1;m4=1;var t=I&&I.__awaiter||function(p,y,b,m){function g(v){return v instanceof b?v:new b(function(_){_(v)})}return new(b||(b=Promise))(function(v,_){function w(D){try{A(m.next(D))}catch(L){_(L)}}function S(D){try{A(m.throw(D))}catch(L){_(L)}}function A(D){D.done?v(D.value):g(D.value).then(w,S)}A((m=m.apply(p,y||[])).next())})},e=I&&I.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(y1,"__esModule",{value:!0});const u=ts,s=bX(),n=Oy(),r=gX(),a=e(mX()),o=e(_X()),l=e(vX());function c(p){var y;return(y=/^[^]*[#/]/.exec(p))===null||y===void 0?void 0:y[0]}const d={"http://www.w3.org/1999/02/22-rdf-syntax-ns#":"rdf","http://www.w3.org/2000/01/rdf-schema#":"rdfs","http://www.w3.org/ns/shacl#":"sh","http://www.w3.org/2001/XMLSchema#":"xsd"},h={rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",sh:"http://www.w3.org/ns/shacl#",xsd:"http://www.w3.org/2001/XMLSchema#"};class f{constructor(y,b,m={},g=void 0,v=!0,_=!1,w,S=!1){this.store=y,this.base=g,this.errorOnExtraQuads=v,this.mintUnspecifiedPrefixes=_,this.fetch=w,this.extendedSyntax=S,this.prefixes={},this.prefixRev={};for(const A of Object.keys(m)){const D=m[A],L=typeof D=="string"?D:D.value;!(L in d)&&!(A in h)&&(this.prefixRev[L]=A,this.prefixes[A]=L)}this.writer=b}write(){return t(this,void 0,void 0,function*(){const y=this.store.getQuads(null,"http://www.w3.org/1999/02/22-rdf-syntax-ns#type","http://www.w3.org/2002/07/owl#Ontology",null);if(y.length===1&&y[0].subject.termType==="NamedNode"){const m=y[0].subject;this.store.removeQuads(y),m.equals(new u.NamedNode("urn:x-base:default"))||this.writer.add(`BASE ${(0,n.termToString)(m)}`),yield this.writeImports(m)}else throw new Error("Base expected");if(this.mintUnspecifiedPrefixes){const m=new Set;for(const v of[...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)])if(v.termType==="NamedNode"){const _=c(v.value);_&&!(_ in this.prefixRev)&&!(_ in d)&&m.add(_)}const g=Object.assign(Object.assign({},this.prefixes),h);yield Promise.all([...m].map(v=>(0,s.uriToPrefix)(v,{fetch:this.fetch,mintOnUnknown:!0,existingPrefixes:g}).then(_=>{this.prefixes[_]=v,g[_]=v,this.prefixRev[v]=_})))}const b=new Set([...this.store.getSubjects(null,null,null),...this.store.getPredicates(null,null,null),...this.store.getObjects(null,null,null)].filter(m=>m.termType==="NamedNode").map(m=>c(m.value)).filter(m=>typeof m=="string"));for(const m in this.prefixRev)b.has(m)||(delete this.prefixes[this.prefixRev[m]],delete this.prefixRev[m]);if(yield this.writePrefixes(),this.prefixes=Object.assign(Object.assign({},this.prefixes),h),this.prefixRev=Object.assign(Object.assign({},this.prefixRev),d),this.writer.newLine(),yield this.writeShapes(),this.extendedSyntax){const m=this.store.getSubjects(null,null,null);m.length>0&&this.writer.newLine(1);for(const g of m)this.writer.add(yield this.termToString(g,!0,!0)),this.writer.add(" "),this.writer.indent(),yield this.writeTurtlePredicates(g),this.writer.deindent();m.length>0&&(this.writer.add(" ."),this.writer.newLine())}if(this.errorOnExtraQuads&&this.store.size>0)throw new Error(`Dataset contains quads that cannot be written in SHACLC [ +${new u.Writer({prefixes:this.prefixes}).quadsToString(this.store.getQuads(null,null,null,null))}]`);this.writer.end()})}writeImports(y){return t(this,void 0,void 0,function*(){const b=this.store.getObjectsOnce(y,new u.NamedNode("http://www.w3.org/2002/07/owl#imports"),null);if(b.length>0)for(const m of b)this.writer.add(`IMPORTS <${m.value}>`,!0)})}writePrefixes(){return t(this,void 0,void 0,function*(){const y=Object.keys(this.prefixes).filter(b=>!(b in o.default)).sort();if(y.length>0)for(const b of y)this.writer.add(`PREFIX ${b}: <${this.prefixes[b]}>`,!0)})}termToString(y,b=!1,m=!1){return t(this,void 0,void 0,function*(){try{if(b)throw new Error("Shacl name disabled");return(0,r.getShaclName)(y)}catch{}if(y.termType==="NamedNode"){const g=c(y.value);return g&&g in this.prefixRev&&g in this.prefixRev?`${this.prefixRev[g]}:${y.value.slice(g.length)}`:(0,n.termToString)(y)}if(y.termType==="Literal")return y.datatypeString==="http://www.w3.org/2001/XMLSchema#integer"||y.datatypeString==="http://www.w3.org/2001/XMLSchema#boolean"?y.value:(0,n.termToString)(y);throw y.termType==="BlankNode"&&m&&(0,n.termToString)(y),new Error(`Invalid term type for extra statement ${y.value} (${y.termType})`)})}writeShapes(){return t(this,void 0,void 0,function*(){for(const y of this.store.getSubjectsOnce(new u.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new u.NamedNode("http://www.w3.org/ns/shacl#NodeShape"),null)){this.store.getQuadsOnce(y,new u.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),new u.NamedNode("http://www.w3.org/2000/01/rdf-schema#Class"),null).length>0?this.writer.add("shapeClass "):this.writer.add("shape "),this.writer.add(yield this.termToString(y)),this.writer.add(" ");const b=this.store.getObjectsOnce(y,new u.NamedNode("http://www.w3.org/ns/shacl#targetClass"),null);if(b.length>0){this.writer.add("-> ");for(const g of b)g.termType==="NamedNode"?this.writer.add(yield this.termToString(g)):(this.writer.add("!"),this.writer.add(yield this.termToString(this.singleObject(g,new u.NamedNode("http://www.w3.org/ns/shacl#not"),!0)))),this.writer.add(" ")}const m=this.store.getPredicates(y,null,null).filter(g=>[new u.NamedNode("http://www.w3.org/ns/shacl#targetClass"),new u.NamedNode("http://www.w3.org/ns/shacl#property"),new u.NamedNode("http://www.w3.org/ns/shacl#or"),...Object.keys(l.default).map(v=>new u.NamedNode("http://www.w3.org/ns/shacl#"+v))].every(v=>!g.equals(v)));m.length>0&&(this.writer.add(";"),this.writer.indent(),this.writer.newLine(1)),this.extendedSyntax&&(yield this.writeGivenTurtlePredicates(y,m)),m.length>0&&(this.writer.add(" "),this.writer.deindent()),yield this.writeShapeBody(y,!1)}})}getSingleProperty(y,b){let m=[y];try{let g=(0,r.getShaclName)(y.predicate),v="pred";if(g==="not"){const _=this.store.getQuadsOnce(y.object,null,null,null);if(m=m.concat(_),_.length!==1)throw new Error("Can only handle having one predicate of 'not'");[y]=_,g=(0,r.getShaclName)(y.predicate),v="not"}if(!(g in b))throw new Error(`${g} is not allowed`);return{name:g,type:v,object:y.object}}catch{this.store.addQuads(m)}}singleLayerPropertiesList(y,b){const m=[];for(const g of this.store.getQuadsOnce(y,null,null,null)){const v=this.getSingleProperty(g,b);v&&m.push(v)}return m}expectOneProperty(y,b){const m=this.store.getQuadsOnce(y,null,null,null);if(m.length===1){const g=this.getSingleProperty(m[0],b);if(g)return g}this.store.addQuads(m)}orProperties(y,b){const m=[];for(const g of this.store.getQuadsOnce(y,new u.NamedNode("http://www.w3.org/ns/shacl#or"),null,null)){const v=[];for(const _ of this.getList(g.object)){const w=this.expectOneProperty(_,b);if(!w)throw this.store.addQuad(g),new Error("Each entry of the 'or' statement must declare exactly one property");v.push(w)}m.push(v)}return m}getList(y){let b=y;const m=[];for(;!b.equals(new u.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));)m.push(this.singleObject(b,new u.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),!0)),b=this.singleObject(b,new u.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),!0);return m}writeIriLiteralOrArray(y){return t(this,void 0,void 0,function*(){if(y.termType==="BlankNode"){this.writer.add("[");let b=!0;for(const m of this.getList(y))b?b=!1:this.writer.add(" "),this.writer.add(yield this.termToString(m));this.writer.add("]")}else this.writer.add(yield this.termToString(y))})}singleObject(y,b,m){var g;return(g=this.singleQuad(y,b,m))===null||g===void 0?void 0:g.object}singleQuad(y,b,m=!1){const g=this.store.getQuadsOnce(y,b,null,null);if(m&&g.length!==1)throw this.store.addQuads(g),new Error(`The subject and predicate ${y==null?void 0:y.value} ${b==null?void 0:b.value} must have exactly one object. Instead has ${g.length}`);if(g.length>1)throw this.store.addQuads(g),new Error(`The subject and predicate ${y==null?void 0:y.value} ${b==null?void 0:b.value} can have at most one object. Instead has ${g.length}`);return g.length===1?g[0]:void 0}writeAssigment({name:y,type:b,object:m}){return t(this,void 0,void 0,function*(){b==="not"&&this.writer.add("!"),this.writer.add(y),this.writer.add("="),yield this.writeIriLiteralOrArray(m)})}writeAtom({name:y,type:b,object:m}){return t(this,void 0,void 0,function*(){switch(b==="not"&&this.writer.add("!"),y){case"node":{if(m.termType==="NamedNode")this.writer.add(`@${yield this.termToString(m)}`);else if(m.termType==="BlankNode")yield this.writeShapeBody(m);else throw new Error("Invalid nested shape, must be blank node or IRI");return}case"nodeKind":{this.writer.add((0,r.getShaclName)(m));return}case"class":{this.writer.add(yield this.termToString(m));return}case"datatype":{this.writer.add(yield this.termToString(m));return}default:this.writer.add(y),this.writer.add("="),yield this.writeIriLiteralOrArray(m)}})}writeAssigments(y,b=" ",m=!0,g){return t(this,void 0,void 0,function*(){for(const v of y)m?m=!1:this.writer.add(b),g?yield this.writeAtom(v):yield this.writeAssigment(v)})}writeParams(y,b=!0,m,g=!1,v=!1){return t(this,void 0,void 0,function*(){const _=this.orProperties(y,m),w=this.singleLayerPropertiesList(y,m);v&&(_.length>0||w.length>0)&&this.writer.newLine(1);for(const S of _)b?b=!1:this.writer.add(" "),yield this.writeAssigments(S,"|",!0,g);yield this.writeAssigments(w," ",b,g),v&&(_.length>0||w.length>0)&&this.writer.add(" .")})}writeShapeBody(y,b=!0){return t(this,void 0,void 0,function*(){this.writer.add("{").indent();const m=this.store.getObjectsOnce(y,new u.NamedNode("http://www.w3.org/ns/shacl#property"),null);yield this.writeParams(y,!0,l.default,!1,!0);for(const g of m)this.writer.newLine(1),yield this.writeProperty(g);this.writer.deindent().newLine(1),b?this.writer.add("} ."):this.writer.add("}").newLine(1)})}writeProperty(y){return t(this,void 0,void 0,function*(){yield this.writePath(this.singleObject(y,new u.NamedNode("http://www.w3.org/ns/shacl#path"),!0));const b=this.singleObject(y,new u.NamedNode("http://www.w3.org/ns/shacl#minCount")),m=this.singleObject(y,new u.NamedNode("http://www.w3.org/ns/shacl#maxCount")),g=this.singleObject(y,new u.NamedNode("http://www.w3.org/ns/shacl#nodeKind")),v=this.singleObject(y,new u.NamedNode("http://www.w3.org/ns/shacl#class")),_=this.singleObject(y,new u.NamedNode("http://www.w3.org/ns/shacl#datatype")),w=this.store.getObjectsOnce(y,new u.NamedNode("http://www.w3.org/ns/shacl#node"),null);if(g&&(this.writer.add(" "),this.writer.add((0,r.getShaclName)(g))),v&&(this.writer.add(" "),this.writer.add(yield this.termToString(v))),_&&(this.writer.add(" "),this.writer.add(yield this.termToString(_))),b!==void 0||m!==void 0){if(this.writer.add(" ["),b){if(b.termType!=="Literal"||b.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid min value, must me an integer literal");this.writer.add(b.value)}else this.writer.add("0");if(this.writer.add(".."),m){if(m.termType!=="Literal"||m.datatypeString!=="http://www.w3.org/2001/XMLSchema#integer")throw new Error("Invalid max value, must me an integer literal");this.store.removeMatches(y,new u.NamedNode("http://www.w3.org/ns/shacl#maxCount"),void 0,void 0),this.writer.add(m.value)}else this.writer.add("*");this.writer.add("]")}yield this.writeParams(y,!1,a.default,!0);const S=[];for(const A of w)if(A.termType==="NamedNode")this.writer.add(" "),this.writer.add(`@${yield this.termToString(A)}`);else if(A.termType==="BlankNode")S.push(A);else throw new Error("Invalid nested shape, must be blank node or IRI");for(const A of S)this.writer.add(" "),yield this.writeShapeBody(A);this.extendedSyntax&&this.store.getQuads(y,null,null,null).length>0&&(this.writer.add(" %"),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(y),this.writer.deindent(),this.writer.newLine(1),this.writer.add("%")),S.length===0&&this.writer.add(" .")})}writeTurtlePredicates(y){return t(this,void 0,void 0,function*(){return this.writeGivenTurtlePredicates(y,this.store.getPredicates(y,null,null))})}writeGivenTurtlePredicates(y,b){return t(this,void 0,void 0,function*(){let m=!1;if(b.some(g=>g.equals(u.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type")))){const g=this.store.getObjectsOnce(y,u.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"),null);g.length>0&&(m=!0,this.writer.add("a "),yield this.writeTurtleObjects(g))}for(const g of b)g.equals(u.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"))||(m?(this.writer.add(" ;"),this.writer.newLine(1)):m=!0,this.writer.add(yield this.termToString(g,!0)),this.writer.add(" "),yield this.writeTurtleObjects(this.store.getObjectsOnce(y,g,null)))})}writeTurtleObjects(y){return t(this,void 0,void 0,function*(){const b=[],m=[];for(const v of y)v.termType==="BlankNode"&&[...this.store.match(null,null,v),...this.store.match(null,v,null)].length===0?b.push(v):m.push(v);this.writer.add((yield Promise.all(m.map(v=>this.termToString(v,!0,!0)))).join(", "));let g=m.length>0;if(b.length>0)for(const v of b)g?this.writer.add(", "):g=!0,(yield this.writeList(v))||(this.writer.add("["),this.writer.indent(),this.writer.newLine(1),yield this.writeTurtlePredicates(v),this.writer.deindent(),this.writer.newLine(1),this.writer.add("]"))})}writeList(y){return t(this,void 0,void 0,function*(){let b=y;const m=[],g=[];for(;!b.equals(u.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"));){const _=this.store.getQuadsOnce(b,u.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),null,null),w=this.store.getQuadsOnce(b,u.DataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),null,null);if(g.push(..._,...w),_.length!==1||w.length!==1||this.store.getQuads(b,null,null,null).length!==0)return this.store.addQuads(g),!1;m.push(_[0].object),b=w[0].object}let v=!1;this.writer.add("(");for(const _ of m)v?this.writer.add(" "):v=!0,yield this.writeTurtleObjects([_]);return this.writer.add(")"),!0})}writePath(y,b=!1){return t(this,void 0,void 0,function*(){if(y.termType==="NamedNode")this.writer.add(yield this.termToString(y));else if(y.termType==="BlankNode"){const m=this.store.getQuadsOnce(y,null,null,null);if(m.length===1){const{predicate:g,object:v}=m[0];switch(g.value){case"http://www.w3.org/ns/shacl#inversePath":this.writer.add("^"),yield this.writePath(v,!0);return;case"http://www.w3.org/ns/shacl#alternativePath":{const _=this.getList(v);if(_.length===0)throw new Error("Invalid Alternative Path - no options");if(_.length===1)yield this.writePath(_[0]);else{b&&this.writer.add("(");let w=!0;for(const S of _)w?w=!1:this.writer.add("|"),yield this.writePath(S,!0);b&&this.writer.add(")")}return}case"http://www.w3.org/ns/shacl#zeroOrMorePath":yield this.writePath(v,!0),this.writer.add("*");return;case"http://www.w3.org/ns/shacl#oneOrMorePath":yield this.writePath(v,!0),this.writer.add("+");return;case"http://www.w3.org/ns/shacl#zeroOrOnePath":yield this.writePath(v,!0),this.writer.add("?");return;default:throw new Error(`Invalid path type ${y.value}`)}}else{this.store.addQuads(m);const g=this.getList(y);if(g.length===0)throw new Error("Invalid Path");{b&&this.writer.add("(");let v=!0;for(const _ of g)v?v=!1:this.writer.add("/"),yield this.writePath(_,!0);b&&this.writer.add(")")}}}else throw new Error("Path should be named node or blank node")})}}return y1.default=f,y1}var v1={},_4;function SX(){if(_4)return v1;_4=1,Object.defineProperty(v1,"__esModule",{value:!0});class t{constructor(u){this.indents=0,this.write=u.write,this.end=u.end}indent(){return this.indents+=1,this}deindent(){if(this.indents<1)throw new Error(`Trying to deindent when indent is only ${this.indents}`);return this.indents-=1,this}add(u,s=!1){return this.write(s?` +${" ".repeat(this.indents)}${u}`:u,"utf-8"),this}newLine(u=2){return this.write(` +`.repeat(u)+" ".repeat(this.indents),"utf-8"),this}}return v1.default=t,v1}var w1={},v4;function TX(){if(v4)return w1;v4=1,Object.defineProperty(w1,"__esModule",{value:!0});const t=ts;class e extends t.Store{getQuadsOnce(s,n,r,a){const o=this.getQuads(s,n,r,a);return this.removeQuads(o),o}getSubjectsOnce(s,n,r){return this.getQuadsOnce(null,s,n,r).map(a=>a.subject)}getObjectsOnce(s,n,r){return this.getQuadsOnce(s,n,null,r).map(a=>a.object)}}return w1.default=e,w1}var w4;function AX(){if(w4)return ld;w4=1;var t=I&&I.__awaiter||function(o,l,c,d){function h(f){return f instanceof c?f:new c(function(p){p(f)})}return new(c||(c=Promise))(function(f,p){function y(g){try{m(d.next(g))}catch(v){p(v)}}function b(g){try{m(d.throw(g))}catch(v){p(v)}}function m(g){g.done?f(g.value):h(g.value).then(y,b)}m((d=d.apply(o,l||[])).next())})},e=I&&I.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ld,"__esModule",{value:!0}),ld.write=void 0;const u=ts,s=e(wX()),n=e(SX()),r=e(TX());function a(o,l){return t(this,void 0,void 0,function*(){return new Promise((c,d)=>t(this,void 0,void 0,function*(){try{let h="";const f=new r.default(o),p=f.getGraphs(null,null,null);if(p.length>1)throw new Error("More than one graph found - can serialize in the default graph");if(p.length===1&&!p[0].equals(u.DataFactory.defaultGraph()))throw new Error(`Expected all triples to be in the default graph, instead triples were in ${p[0].value}`);const y=new n.default({write:m=>{h+=m},end:()=>{let m=f.getQuads(null,null,null,null);m.length===0&&(m=void 0),c({text:h,extraQuads:m})}});yield new s.default(f,y,l==null?void 0:l.prefixes,void 0,(l==null?void 0:l.errorOnUnused)!==!1,l==null?void 0:l.mintPrefixes,l==null?void 0:l.fetch,l==null?void 0:l.extendedSyntax).write()}catch(h){d(h)}}))})}return ld.write=a,ld}var S4;function EX(){if(S4)return cd;S4=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.ActorRdfSerializeShaclc=void 0;const t=XT(),e=lX(),u=Wt(),s=AX();let n=class extends t.ActorRdfSerializeFixedMediaTypes{constructor(a){super(a)}async runHandle(a,o){const l=new u.Readable;l._read=()=>{};try{const c={};a.quadStream.on("prefix",(h,f)=>{c[h]=f});const{text:d}=await(0,s.write)(await(0,e.default)(a.quadStream),{errorOnUnused:!0,extendedSyntax:o==="text/shaclc-ext",prefixes:c});l.push(d),l.push(null)}catch(c){l._read=()=>{l.emit("error",c)}}return{data:l,triples:!0}}};return cd.ActorRdfSerializeShaclc=n,cd}var T4;function OX(){return T4||(T4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(EX(),t)}(u2)),u2}var d2={},bd={},f2={},gd={},A4;function Zq(){if(A4)return gd;A4=1,Object.defineProperty(gd,"__esModule",{value:!0}),gd.ActorRdfUpdateQuads=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return gd.ActorRdfUpdateQuads=e,gd}var ua={},E4;function RX(){if(E4)return ua;E4=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.ActorRdfUpdateQuadsDestination=ua.deskolemize=ua.deskolemizeStream=void 0;const t=QF(),e=Lt,u=Zq();function s(a,o){return a==null?void 0:a.map(l=>(0,t.deskolemizeQuad)(l,o))}ua.deskolemizeStream=s;function n(a){var c;const o=a.context.get(e.KeysRdfUpdateQuads.destination),l=(c=a.context.get(e.KeysQuerySourceIdentify.sourceIds))==null?void 0:c.get(o);return l?{...a,quadStreamInsert:s(a.quadStreamInsert,l),quadStreamDelete:s(a.quadStreamDelete,l)}:a}ua.deskolemize=n;let r=class extends u.ActorRdfUpdateQuads{async test(o){return!0}async run(o){const l=await this.getDestination(o.context);return await this.getOutput(l,n(o))}async getOutput(o,l){return{execute:async()=>{await(l.quadStreamDelete?o.delete(l.quadStreamDelete):Promise.resolve()),await(l.deleteGraphs?o.deleteGraphs(l.deleteGraphs.graphs,l.deleteGraphs.requireExistence,l.deleteGraphs.dropGraphs):Promise.resolve()),await(l.createGraphs?o.createGraphs(l.createGraphs.graphs,l.createGraphs.requireNonExistence):Promise.resolve()),await(l.quadStreamInsert?o.insert(l.quadStreamInsert):Promise.resolve())}}}};return ua.ActorRdfUpdateQuadsDestination=r,ua}var h2={},O4;function xX(){return O4||(O4=1,Object.defineProperty(h2,"__esModule",{value:!0})),h2}var Sn={},R4;function IX(){if(R4)return Sn;R4=1,Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.getContextDestinationUrl=Sn.getContextDestination=Sn.getDataDestinationContext=Sn.getDataDestinationValue=Sn.getDataDestinationType=Sn.isDataDestinationRawType=void 0;const t=Lt;function e(o){return typeof o=="string"||"remove"in o}Sn.isDataDestinationRawType=e;function u(o){return typeof o=="string"?"":"remove"in o?"rdfjsStore":o.type}Sn.getDataDestinationType=u;function s(o){return e(o)?o:o.value}Sn.getDataDestinationValue=s;function n(o,l){return typeof o=="string"||"remove"in o||!o.context?l:l.merge(o.context)}Sn.getDataDestinationContext=n;function r(o){return o.get(t.KeysRdfUpdateQuads.destination)}Sn.getContextDestination=r;function a(o){if(o){let l=s(o);if(typeof l=="string"){const c=l.indexOf("#");return c>=0&&(l=l.slice(0,c)),l}}}return Sn.getContextDestinationUrl=a,Sn}var x4;function YT(){return x4||(x4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Zq(),t),u(RX(),t),u(xX(),t),u(IX(),t)}(f2)),f2}var md={},_d={},I4;function PX(){if(I4)return _d;I4=1,Object.defineProperty(_d,"__esModule",{value:!0}),_d.promisifyEventEmitter=void 0;function t(e,u){return new Promise((s,n)=>{e.on("end",()=>s(u)),e.on("error",n)})}return _d.promisifyEventEmitter=t,_d}var P4;function DX(){if(P4)return md;P4=1,Object.defineProperty(md,"__esModule",{value:!0}),md.RdfJsQuadDestination=void 0;const t=PX(),e=Et(),u=er(),s=new e.DataFactory;let n=class{constructor(a){this.store=a}delete(a){return(0,t.promisifyEventEmitter)(this.store.remove(a))}insert(a){return(0,t.promisifyEventEmitter)(this.store.import(a))}async deleteGraphs(a,o,l){switch(a){case"ALL":await(0,t.promisifyEventEmitter)(this.store.deleteGraph(s.defaultGraph()));case"NAMED":const c=this.store.match(),d={};c.on("data",h=>{h.graph.termType!=="DefaultGraph"&&(d[(0,u.termToString)(h.graph)]=!0)}),await(0,t.promisifyEventEmitter)(c),await Promise.all(Object.keys(d).map(h=>(0,t.promisifyEventEmitter)(this.store.deleteGraph((0,u.stringToTerm)(h)))));break;default:for(const h of Array.isArray(a)?a:[a])await(0,t.promisifyEventEmitter)(this.store.deleteGraph(h))}}async createGraphs(a,o){if(o)for(const l of a){const c=this.store.match(void 0,void 0,void 0,l);await new Promise((d,h)=>{c.once("data",()=>{h(new Error(`Unable to create graph ${l.value} as it already exists`))}),c.on("end",d),c.on("error",h)})}}};return md.RdfJsQuadDestination=n,md}var D4;function NX(){if(D4)return bd;D4=1,Object.defineProperty(bd,"__esModule",{value:!0}),bd.ActorRdfUpdateQuadsRdfJsStore=void 0;const t=YT(),e=DX();let u=class extends t.ActorRdfUpdateQuadsDestination{constructor(n){super(n)}async test(n){const r=(0,t.getContextDestination)(n.context);if(!r||typeof r=="string"||!("remove"in r)&&"value"in r&&!r.value.remove)throw new Error(`${this.name} received an invalid rdfjsStore.`);return!0}async getDestination(n){const r=(0,t.getContextDestination)(n);return new e.RdfJsQuadDestination("remove"in r?r:r.value)}};return bd.ActorRdfUpdateQuadsRdfJsStore=u,bd}var N4;function CX(){return N4||(N4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(NX(),t)}(d2)),d2}var p2={},vd={},y2={},wd={},b2={},Os={},C4;function jX(){if(C4)return Os;C4=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.readableFromWeb=Os.ReadableFromWeb=void 0;const t=Wt();let e=class extends t.Readable{constructor(n,r){super(r),this.reader=n.getReader(),this.readerClosed=!1,this.reader.closed.then(()=>{this.readerClosed=!0}).catch(a=>{this.readerClosed=!0,this.destroy(a)})}_read(){this.reader.read().then(n=>this.push(n.done?null:n.value)).catch(n=>this.destroy(n))}destroy(n){return this.readerClosed||this.reader.cancel(n).then().catch(()=>{}),super.destroy(n)}};Os.ReadableFromWeb=e;function u(s,n){return new e(s,n)}return Os.readableFromWeb=u,Os}var j4;function LX(){return j4||(j4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.readableFromWeb=void 0;var e=jX();Object.defineProperty(t,"readableFromWeb",{enumerable:!0,get:function(){return e.readableFromWeb}})}(b2)),b2}function S1(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var g2={exports:{}},L4;function MX(){return L4||(L4=1,function(t,e){(function(u){t.exports=u()})(function(){return function u(s,n,r){function a(c,d){if(!n[c]){if(!s[c]){var h=typeof S1=="function"&&S1;if(!d&&h)return h(c,!0);if(o)return o(c,!0);var f=new Error("Cannot find module '"+c+"'");throw f.code="MODULE_NOT_FOUND",f}var p=n[c]={exports:{}};s[c][0].call(p.exports,function(y){var b=s[c][1][y];return a(b||y)},p,p.exports,u,s,n,r)}return n[c].exports}for(var o=typeof S1=="function"&&S1,l=0;l=0;he--)if(xe[he]!==ie[he])return!1;for(he=xe.length-1;he>=0;he--)if(X=xe[he],!m(M[X],q[X],Q,Z))return!1;return!0}function _(M,q,Q){m(M,q,!0)&&y(M,q,Q,"notDeepStrictEqual",_)}function w(M,q){if(!M||!q)return!1;if(Object.prototype.toString.call(q)=="[object RegExp]")return q.test(M);try{if(M instanceof q)return!0}catch{}return!Error.isPrototypeOf(q)&&q.call({},M)===!0}function S(M){var q;try{M()}catch(Q){q=Q}return q}function A(M,q,Q,Z){var K;if(typeof q!="function")throw new TypeError('"block" argument must be a function');typeof Q=="string"&&(Z=Q,Q=null),K=S(q),Z=(Q&&Q.name?" ("+Q.name+").":".")+(Z?" "+Z:"."),M&&!K&&y(K,Q,"Missing expected exception"+Z);var fe=typeof Z=="string",X=!M&&D.isError(K),he=!M&&K&&!Q;if((X&&fe&&w(K,Q)||he)&&y(K,Q,"Got unwanted exception"+Z),M&&K&&Q&&!w(K,Q)||!M&&K)throw K}var D=u("util/"),L=Object.prototype.hasOwnProperty,E=Array.prototype.slice,O=(function(){}).name==="foo",P=s.exports=b,j=/\s*function\s+([^\(\s]*)\s*/;P.AssertionError=function(q){this.name="AssertionError",this.actual=q.actual,this.expected=q.expected,this.operator=q.operator,q.message?(this.message=q.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var Q=q.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,Q);else{var Z=new Error;if(Z.stack){var K=Z.stack,fe=d(Q),X=K.indexOf(` +`+fe);if(X>=0){var he=K.indexOf(` +`,X+1);K=K.substring(he+1)}this.stack=K}}},D.inherits(P.AssertionError,Error),P.fail=y,P.ok=b,P.equal=function(q,Q,Z){q!=Q&&y(q,Q,Z,"==",P.equal)},P.notEqual=function(q,Q,Z){q==Q&&y(q,Q,Z,"!=",P.notEqual)},P.deepEqual=function(q,Q,Z){m(q,Q,!1)||y(q,Q,Z,"deepEqual",P.deepEqual)},P.deepStrictEqual=function(q,Q,Z){m(q,Q,!0)||y(q,Q,Z,"deepStrictEqual",P.deepStrictEqual)},P.notDeepEqual=function(q,Q,Z){m(q,Q,!1)&&y(q,Q,Z,"notDeepEqual",P.notDeepEqual)},P.notDeepStrictEqual=_,P.strictEqual=function(q,Q,Z){q!==Q&&y(q,Q,Z,"===",P.strictEqual)},P.notStrictEqual=function(q,Q,Z){q===Q&&y(q,Q,Z,"!==",P.notStrictEqual)},P.throws=function(M,q,Q){A(!0,M,q,Q)},P.doesNotThrow=function(M,q,Q){A(!1,M,q,Q)},P.ifError=function(M){if(M)throw M};var U=Object.keys||function(M){var q=[];for(var Q in M)L.call(M,Q)&&q.push(Q);return q}}).call(this,typeof I<"u"?I:typeof self<"u"?self:typeof window<"u"?window:{})},{"util/":7}],3:[function(u,s,n){},{}],4:[function(u,s,n){function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(w){if(p===setTimeout)return setTimeout(w,0);if((p===r||!p)&&setTimeout)return p=setTimeout,setTimeout(w,0);try{return p(w,0)}catch{try{return p.call(null,w,0)}catch{return p.call(this,w,0)}}}function l(w){if(y===clearTimeout)return clearTimeout(w);if((y===a||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(w);try{return y(w)}catch{try{return y.call(null,w)}catch{return y.call(this,w)}}}function c(){v&&m&&(v=!1,m.length?g=m.concat(g):_=-1,g.length&&d())}function d(){if(!v){var w=o(c);v=!0;for(var S=g.length;S;){for(m=g,g=[];++_1)for(var A=1;A=3&&(Oe.depth=arguments[2]),arguments.length>=4&&(Oe.colors=arguments[3]),v(ae)?Oe.showHidden=ae:ae&&n._extend(Oe,ae),L(Oe.showHidden)&&(Oe.showHidden=!1),L(Oe.depth)&&(Oe.depth=2),L(Oe.colors)&&(Oe.colors=!1),L(Oe.customInspect)&&(Oe.customInspect=!0),Oe.colors&&(Oe.stylize=l),h(Oe,ie,Oe.depth)}function l(ie,ae){var Oe=o.styles[ae];return Oe?"\x1B["+o.colors[Oe][0]+"m"+ie+"\x1B["+o.colors[Oe][1]+"m":ie}function c(ie,ae){return ie}function d(ie){var ae={};return ie.forEach(function(Oe,Ne){ae[Oe]=!0}),ae}function h(ie,ae,Oe){if(ie.customInspect&&ae&&U(ae.inspect)&&ae.inspect!==n.inspect&&(!ae.constructor||ae.constructor.prototype!==ae)){var Ne=ae.inspect(Oe,ie);return A(Ne)||(Ne=h(ie,Ne,Oe)),Ne}var ge=f(ie,ae);if(ge)return ge;var de=Object.keys(ae),oe=d(de);if(ie.showHidden&&(de=Object.getOwnPropertyNames(ae)),j(ae)&&(de.indexOf("message")>=0||de.indexOf("description")>=0))return p(ae);if(de.length===0){if(U(ae)){var $=ae.name?": "+ae.name:"";return ie.stylize("[Function"+$+"]","special")}if(E(ae))return ie.stylize(RegExp.prototype.toString.call(ae),"regexp");if(P(ae))return ie.stylize(Date.prototype.toString.call(ae),"date");if(j(ae))return p(ae)}var N="",R=!1,T=["{","}"];if(g(ae)&&(R=!0,T=["[","]"]),U(ae)&&(N=" [Function"+(ae.name?": "+ae.name:"")+"]"),E(ae)&&(N=" "+RegExp.prototype.toString.call(ae)),P(ae)&&(N=" "+Date.prototype.toUTCString.call(ae)),j(ae)&&(N=" "+p(ae)),de.length===0&&(!R||ae.length==0))return T[0]+N+T[1];if(Oe<0)return E(ae)?ie.stylize(RegExp.prototype.toString.call(ae),"regexp"):ie.stylize("[Object]","special");ie.seen.push(ae);var x;return x=R?y(ie,ae,Oe,oe,de):de.map(function(B){return b(ie,ae,Oe,oe,B,R)}),ie.seen.pop(),m(x,N,T)}function f(ie,ae){if(L(ae))return ie.stylize("undefined","undefined");if(A(ae)){var Oe="'"+JSON.stringify(ae).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ie.stylize(Oe,"string")}return S(ae)?ie.stylize(""+ae,"number"):v(ae)?ie.stylize(""+ae,"boolean"):_(ae)?ie.stylize("null","null"):void 0}function p(ie){return"["+Error.prototype.toString.call(ie)+"]"}function y(ie,ae,Oe,Ne,ge){for(var de=[],oe=0,$=ae.length;oe<$;++oe)K(ae,String(oe))?de.push(b(ie,ae,Oe,Ne,String(oe),!0)):de.push("");return ge.forEach(function(N){N.match(/^\d+$/)||de.push(b(ie,ae,Oe,Ne,N,!0))}),de}function b(ie,ae,Oe,Ne,ge,de){var oe,$,N;if((N=Object.getOwnPropertyDescriptor(ae,ge)||{value:ae[ge]}).get?$=N.set?ie.stylize("[Getter/Setter]","special"):ie.stylize("[Getter]","special"):N.set&&($=ie.stylize("[Setter]","special")),K(Ne,ge)||(oe="["+ge+"]"),$||(ie.seen.indexOf(N.value)<0?($=_(Oe)?h(ie,N.value,null):h(ie,N.value,Oe-1)).indexOf(` +`)>-1&&($=de?$.split(` +`).map(function(R){return" "+R}).join(` +`).substr(2):` +`+$.split(` +`).map(function(R){return" "+R}).join(` +`)):$=ie.stylize("[Circular]","special")),L(oe)){if(de&&ge.match(/^\d+$/))return $;(oe=JSON.stringify(""+ge)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=ie.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=ie.stylize(oe,"string"))}return oe+": "+$}function m(ie,ae,Oe){var Ne=0;return ie.reduce(function(ge,de){return Ne++,de.indexOf(` +`)>=0&&Ne++,ge+de.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Oe[0]+(ae===""?"":ae+` + `)+" "+ie.join(`, + `)+" "+Oe[1]:Oe[0]+ae+" "+ie.join(", ")+" "+Oe[1]}function g(ie){return Array.isArray(ie)}function v(ie){return typeof ie=="boolean"}function _(ie){return ie===null}function w(ie){return ie==null}function S(ie){return typeof ie=="number"}function A(ie){return typeof ie=="string"}function D(ie){return typeof ie=="symbol"}function L(ie){return ie===void 0}function E(ie){return O(ie)&&q(ie)==="[object RegExp]"}function O(ie){return typeof ie=="object"&&ie!==null}function P(ie){return O(ie)&&q(ie)==="[object Date]"}function j(ie){return O(ie)&&(q(ie)==="[object Error]"||ie instanceof Error)}function U(ie){return typeof ie=="function"}function M(ie){return ie===null||typeof ie=="boolean"||typeof ie=="number"||typeof ie=="string"||typeof ie=="symbol"||ie===void 0}function q(ie){return Object.prototype.toString.call(ie)}function Q(ie){return ie<10?"0"+ie.toString(10):ie.toString(10)}function Z(){var ie=new Date,ae=[Q(ie.getHours()),Q(ie.getMinutes()),Q(ie.getSeconds())].join(":");return[ie.getDate(),xe[ie.getMonth()],ae].join(" ")}function K(ie,ae){return Object.prototype.hasOwnProperty.call(ie,ae)}var fe=/%[sdj%]/g;n.format=function(ie){if(!A(ie)){for(var ae=[],Oe=0;Oe=ge)return N;switch(N){case"%s":return String(Ne[Oe++]);case"%d":return Number(Ne[Oe++]);case"%j":try{return JSON.stringify(Ne[Oe++])}catch{return"[Circular]"}default:return N}}),oe=Ne[Oe];Oe3&&arguments[3]!==void 0?arguments[3]:1,st=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},ht=Object.create(Ni.prototype);return d(ht),ge(ht,Object.create(Xr.prototype),ue,ve,je,Xe,st),ht}function c(ue,ve,je){var Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,st=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,ht=Object.create(Ni.prototype);return d(ht),Ce(ht,Object.create(Zn.prototype),ue,ve,je,Xe,st),ht}function d(ue){ue._state="readable",ue._reader=void 0,ue._storedError=void 0,ue._disturbed=!1}function h(ue){return!!Ke(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readableStreamController")}function f(ue){return ue._disturbed}function p(ue){return ue._reader!==void 0}function y(ue,ve){function je(){return Q(st).then(function(Fr){var gn=Fr.value;if(Fr.done===!0&&ht===!1&&(St===!1&&X(vr._readableStreamController),Ht===!1&&X(zt._readableStreamController),ht=!0),ht!==!0){var $n=gn,Qn=gn;St===!1&&he(vr._readableStreamController,$n),Ht===!1&&he(zt._readableStreamController,Qn)}})}function Xe(){}var st=o(ue),ht=!1,St=!1,Ht=!1,Xt=void 0,lr=void 0,vr=void 0,zt=void 0,Fn=void 0,ei=new Promise(function(Fr){Fn=Fr});return vr=l(Xe,je,function(gn){if(St=!0,Xt=gn,Ht===!0){var $n=Ir([Xt,lr]),Qn=g(ue,$n);Fn(Qn)}return ei}),zt=l(Xe,je,function(gn){if(Ht=!0,lr=gn,St===!0){var $n=Ir([Xt,lr]),Qn=g(ue,$n);Fn(Qn)}return ei}),st._closedPromise.catch(function(Fr){ht!==!0&&(ie(vr._readableStreamController,Fr),ie(zt._readableStreamController,Fr),ht=!0)}),[vr,zt]}function b(ue){return new Promise(function(ve,je){var Xe={_resolve:ve,_reject:je};ue._reader._readIntoRequests.push(Xe)})}function m(ue){return new Promise(function(ve,je){var Xe={_resolve:ve,_reject:je};ue._reader._readRequests.push(Xe)})}function g(ue,ve){return ue._disturbed=!0,ue._state==="closed"?Promise.resolve(void 0):ue._state==="errored"?Promise.reject(ue._storedError):(v(ue),ue._readableStreamController[fi](ve).then(function(){}))}function v(ue){ue._state="closed";var ve=ue._reader;if(ve!==void 0){if(P(ve)===!0){var je=!0,Xe=!1,st=void 0;try{for(var ht,St=ve._readRequests[Symbol.iterator]();!(je=(ht=St.next()).done);je=!0)(0,ht.value._resolve)(Ye(void 0,!0))}catch(Ht){Xe=!0,st=Ht}finally{try{!je&&St.return&&St.return()}finally{if(Xe)throw st}}ve._readRequests=[]}tt(ve)}}function _(ue,ve){ue._state="errored",ue._storedError=ve;var je=ue._reader;if(je!==void 0){if(P(je)===!0){var Xe=!0,st=!1,ht=void 0;try{for(var St,Ht=je._readRequests[Symbol.iterator]();!(Xe=(St=Ht.next()).done);Xe=!0)St.value._reject(ve)}catch(ei){st=!0,ht=ei}finally{try{!Xe&&Ht.return&&Ht.return()}finally{if(st)throw ht}}je._readRequests=[]}else{var Xt=!0,lr=!1,vr=void 0;try{for(var zt,Fn=je._readIntoRequests[Symbol.iterator]();!(Xt=(zt=Fn.next()).done);Xt=!0)zt.value._reject(ve)}catch(ei){lr=!0,vr=ei}finally{try{!Xt&&Fn.return&&Fn.return()}finally{if(lr)throw vr}}je._readIntoRequests=[]}$e(je,ve),je._closedPromise.catch(function(){})}}function w(ue,ve,je){ue._reader._readIntoRequests.shift()._resolve(Ye(ve,je))}function S(ue,ve,je){ue._reader._readRequests.shift()._resolve(Ye(ve,je))}function A(ue){return ue._reader._readIntoRequests.length}function D(ue){return ue._reader._readRequests.length}function L(ue){var ve=ue._reader;return ve!==void 0&&O(ve)!==!1}function E(ue){var ve=ue._reader;return ve!==void 0&&P(ve)!==!1}function O(ue){return!!Ke(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readIntoRequests")}function P(ue){return!!Ke(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_readRequests")}function j(ue,ve){ue._ownerReadableStream=ve,ve._reader=ue,ve._state==="readable"?we(ue):ve._state==="closed"?Le(ue):(Te(ue,ve._storedError),ue._closedPromise.catch(function(){}))}function U(ue,ve){return g(ue._ownerReadableStream,ve)}function M(ue){ue._ownerReadableStream._state==="readable"?$e(ue,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):We(ue,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),ue._closedPromise.catch(function(){}),ue._ownerReadableStream._reader=void 0,ue._ownerReadableStream=void 0}function q(ue,ve){var je=ue._ownerReadableStream;return je._disturbed=!0,je._state==="errored"?Promise.reject(je._storedError):te(je._readableStreamController,ve)}function Q(ue){var ve=ue._ownerReadableStream;return ve._disturbed=!0,ve._state==="closed"?Promise.resolve(Ye(void 0,!0)):ve._state==="errored"?Promise.reject(ve._storedError):ve._readableStreamController[Mr]()}function Z(ue){return!!Ke(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_controlledReadableStream")}function K(ue){fe(ue)!==!1&&(ue._pulling!==!0?(ue._pulling=!0,ue._pullAlgorithm().then(function(){if(ue._pulling=!1,ue._pullAgain===!0)return ue._pullAgain=!1,K(ue)},function(ve){ie(ue,ve)}).catch(Pe)):ue._pullAgain=!0)}function fe(ue){var ve=ue._controlledReadableStream;return Ne(ue)!==!1&&ue._started!==!1&&(p(ve)===!0&&D(ve)>0||ae(ue)>0)}function X(ue){var ve=ue._controlledReadableStream;ue._closeRequested=!0,ue._queue.length===0&&v(ve)}function he(ue,ve){var je=ue._controlledReadableStream;if(p(je)===!0&&D(je)>0)S(je,ve,!1);else{var Xe=void 0;try{Xe=ue._strategySizeAlgorithm(ve)}catch(st){throw ie(ue,st),st}try{at(ue,ve,Xe)}catch(st){throw ie(ue,st),st}}K(ue)}function xe(ue,ve){var je=ue._controlledReadableStream;Tt(ue),_(je,ve)}function ie(ue,ve){ue._controlledReadableStream._state==="readable"&&xe(ue,ve)}function ae(ue){var ve=ue._controlledReadableStream._state;return ve==="errored"?null:ve==="closed"?0:ue._strategyHWM-ue._queueTotalSize}function Oe(ue){return fe(ue)!==!0}function Ne(ue){var ve=ue._controlledReadableStream._state;return ue._closeRequested===!1&&ve==="readable"}function ge(ue,ve,je,Xe,st,ht,St){ve._controlledReadableStream=ue,ve._queue=void 0,ve._queueTotalSize=void 0,Tt(ve),ve._started=!1,ve._closeRequested=!1,ve._pullAgain=!1,ve._pulling=!1,ve._strategySizeAlgorithm=St,ve._strategyHWM=ht,ve._pullAlgorithm=Xe,ve._cancelAlgorithm=st,ue._readableStreamController=ve;var Ht=je();Promise.resolve(Ht).then(function(){ve._started=!0,K(ve)},function(Xt){ie(ve,Xt)}).catch(Pe)}function de(ue,ve,je,Xe){var st=Object.create(Xr.prototype),ht=Fe(ve,"pull",0,[st]),St=Fe(ve,"cancel",1,[]);ge(ue,st,function(){return Je(ve,"start",[st])},ht,St,je,Xe)}function oe(ue){return!!Ke(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_controlledReadableByteStream")}function $(ue){return!!Ke(ue)&&!!Object.prototype.hasOwnProperty.call(ue,"_associatedReadableByteStreamController")}function N(ue){qe(ue)!==!1&&(ue._pulling!==!0?(ue._pulling=!0,ue._pullAlgorithm().then(function(){ue._pulling=!1,ue._pullAgain===!0&&(ue._pullAgain=!1,N(ue))},function(ve){ue._controlledReadableByteStream._state==="readable"&&H(ue,ve)}).catch(Pe)):ue._pullAgain=!0)}function R(ue){z(ue),ue._pendingPullIntos=[]}function T(ue,ve){var je=!1;ue._state==="closed"&&(je=!0);var Xe=x(ve);ve.readerType==="default"?S(ue,Xe,je):w(ue,Xe,je)}function x(ue){var ve=ue.bytesFilled,je=ue.elementSize;return new ue.ctor(ue.buffer,ue.byteOffset,ve/je)}function B(ue,ve,je,Xe){ue._queue.push({buffer:ve,byteOffset:je,byteLength:Xe}),ue._queueTotalSize+=Xe}function k(ue,ve){var je=ve.elementSize,Xe=ve.bytesFilled-ve.bytesFilled%je,st=Math.min(ue._queueTotalSize,ve.byteLength-ve.bytesFilled),ht=ve.bytesFilled+st,St=ht-ht%je,Ht=st,Xt=!1;St>Xe&&(Ht=St-ve.bytesFilled,Xt=!0);for(var lr=ue._queue;Ht>0;){var vr=lr[0],zt=Math.min(Ht,vr.byteLength),Fn=ve.byteOffset+ve.bytesFilled;Ue(ve.buffer,Fn,vr.buffer,vr.byteOffset,zt),vr.byteLength===zt?lr.shift():(vr.byteOffset+=zt,vr.byteLength-=zt),ue._queueTotalSize-=zt,V(ue,zt,ve),Ht-=zt}return Xt}function V(ue,ve,je){z(ue),je.bytesFilled+=ve}function J(ue){ue._queueTotalSize===0&&ue._closeRequested===!0?v(ue._controlledReadableByteStream):N(ue)}function z(ue){ue._byobRequest!==void 0&&(ue._byobRequest._associatedReadableByteStreamController=void 0,ue._byobRequest._view=void 0,ue._byobRequest=void 0)}function Y(ue){for(;ue._pendingPullIntos.length>0;){if(ue._queueTotalSize===0)return;var ve=ue._pendingPullIntos[0];k(ue,ve)===!0&&(Ee(ue),T(ue._controlledReadableByteStream,ve))}}function te(ue,ve){var je=ue._controlledReadableByteStream,Xe=1;ve.constructor!==DataView&&(Xe=ve.constructor.BYTES_PER_ELEMENT);var st=ve.constructor,ht={buffer:yt(ve.buffer),byteOffset:ve.byteOffset,byteLength:ve.byteLength,bytesFilled:0,elementSize:Xe,ctor:st,readerType:"byob"};if(ue._pendingPullIntos.length>0)return ue._pendingPullIntos.push(ht),b(je);if(je._state==="closed"){var St=new ve.constructor(ht.buffer,ht.byteOffset,0);return Promise.resolve(Ye(St,!0))}if(ue._queueTotalSize>0){if(k(ue,ht)===!0){var Ht=x(ht);return J(ue),Promise.resolve(Ye(Ht,!1))}if(ue._closeRequested===!0){var Xt=new TypeError("Insufficient bytes to fill elements in the given buffer");return H(ue,Xt),Promise.reject(Xt)}}ue._pendingPullIntos.push(ht);var lr=b(je);return N(ue),lr}function ce(ue,ve){ve.buffer=yt(ve.buffer);var je=ue._controlledReadableByteStream;if(L(je)===!0)for(;A(je)>0;)T(je,Ee(ue))}function Ae(ue,ve,je){if(je.bytesFilled+ve>je.byteLength)throw new RangeError("bytesWritten out of range");if(V(ue,ve,je),!(je.bytesFilled0){var st=je.byteOffset+je.bytesFilled,ht=je.buffer.slice(st-Xe,st);B(ue,ht,0,ht.byteLength)}je.buffer=yt(je.buffer),je.bytesFilled-=Xe,T(ue._controlledReadableByteStream,je),Y(ue)}}function Ie(ue,ve){var je=ue._pendingPullIntos[0];if(ue._controlledReadableByteStream._state==="closed"){if(ve!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");ce(ue,je)}else Ae(ue,ve,je)}function Ee(ue){var ve=ue._pendingPullIntos.shift();return z(ue),ve}function qe(ue){var ve=ue._controlledReadableByteStream;return ve._state==="readable"&&ue._closeRequested!==!0&&ue._started!==!1&&(E(ve)===!0&&D(ve)>0||L(ve)===!0&&A(ve)>0||re(ue)>0)}function G(ue){var ve=ue._controlledReadableByteStream;if(ue._queueTotalSize>0)ue._closeRequested=!0;else{if(ue._pendingPullIntos.length>0&&ue._pendingPullIntos[0].bytesFilled>0){var je=new TypeError("Insufficient bytes to fill elements in the given buffer");throw H(ue,je),je}v(ve)}}function F(ue,ve){var je=ue._controlledReadableByteStream,Xe=ve.buffer,st=ve.byteOffset,ht=ve.byteLength,St=yt(Xe);E(je)===!0?D(je)===0?B(ue,St,st,ht):S(je,new Uint8Array(St,st,ht),!1):L(je)===!0?(B(ue,St,st,ht),Y(ue)):B(ue,St,st,ht)}function H(ue,ve){var je=ue._controlledReadableByteStream;R(ue),Tt(ue),_(je,ve)}function re(ue){var ve=ue._controlledReadableByteStream._state;return ve==="errored"?null:ve==="closed"?0:ue._strategyHWM-ue._queueTotalSize}function be(ue,ve){if(ve=Number(ve),Ve(ve)===!1)throw new RangeError("bytesWritten must be a finite");Ie(ue,ve)}function Re(ue,ve){var je=ue._pendingPullIntos[0];if(je.byteOffset+je.bytesFilled!==ve.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(je.byteLength!==ve.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");je.buffer=ve.buffer,Ie(ue,ve.byteLength)}function Ce(ue,ve,je,Xe,st,ht,St){ve._controlledReadableByteStream=ue,ve._pullAgain=!1,ve._pulling=!1,R(ve),ve._queue=ve._queueTotalSize=void 0,Tt(ve),ve._closeRequested=!1,ve._started=!1,ve._strategyHWM=ft(ht),ve._pullAlgorithm=Xe,ve._cancelAlgorithm=st,ve._autoAllocateChunkSize=St,ve._pendingPullIntos=[],ue._readableStreamController=ve;var Ht=je();Promise.resolve(Ht).then(function(){ve._started=!0,N(ve)},function(Xt){ue._state==="readable"&&H(ve,Xt)}).catch(Pe)}function Qe(ue,ve,je){var Xe=Object.create(Zn.prototype),st=Fe(ve,"pull",0,[Xe]),ht=Fe(ve,"cancel",1,[]),St=ve.autoAllocateChunkSize;if(St!==void 0&&(Number.isInteger(St)===!1||St<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");Ce(ue,Xe,function(){return Je(ve,"start",[Xe])},st,ht,je,St)}function ke(ue,ve,je){ue._associatedReadableByteStreamController=ve,ue._view=je}function me(ue){return new TypeError("ReadableStream.prototype."+ue+" can only be used on a ReadableStream")}function Se(ue){return new TypeError("Cannot "+ue+" a stream using a released reader")}function W(ue){return new TypeError("ReadableStreamDefaultReader.prototype."+ue+" can only be used on a ReadableStreamDefaultReader")}function we(ue){ue._closedPromise=new Promise(function(ve,je){ue._closedPromise_resolve=ve,ue._closedPromise_reject=je})}function Te(ue,ve){ue._closedPromise=Promise.reject(ve),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function Le(ue){ue._closedPromise=Promise.resolve(void 0),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function $e(ue,ve){ue._closedPromise_reject(ve),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function We(ue,ve){ue._closedPromise=Promise.reject(ve)}function tt(ue){ue._closedPromise_resolve(void 0),ue._closedPromise_resolve=void 0,ue._closedPromise_reject=void 0}function lt(ue){return new TypeError("ReadableStreamBYOBReader.prototype."+ue+" can only be used on a ReadableStreamBYOBReader")}function ut(ue){return new TypeError("ReadableStreamDefaultController.prototype."+ue+" can only be used on a ReadableStreamDefaultController")}function le(ue){return new TypeError("ReadableStreamBYOBRequest.prototype."+ue+" can only be used on a ReadableStreamBYOBRequest")}function C(ue){return new TypeError("ReadableByteStreamController.prototype."+ue+" can only be used on a ReadableByteStreamController")}function ee(ue){try{Promise.prototype.then.call(ue,void 0,function(){})}catch{}}var pe=function(){function ue(ve,je){for(var Xe=0;Xe0&&arguments[0]!==void 0?arguments[0]:{},je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xe=je.size,st=je.highWaterMark;r(this,ue),d(this);var ht=ve.type;if(String(ht)==="bytes"){if(st===void 0&&(st=0),st=ft(st),Xe!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");Qe(this,ve,st)}else{if(ht!==void 0)throw new RangeError("Invalid type is specified");st===void 0&&(st=1),de(this,ve,st=ft(st),et(Xe))}}return pe(ue,[{key:"cancel",value:function(je){return h(this)===!1?Promise.reject(me("cancel")):p(this)===!0?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):g(this,je)}},{key:"getReader",value:function(){var je=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).mode;if(h(this)===!1)throw me("getReader");if(je===void 0)return o(this);if((je=String(je))==="byob")return a(this);throw new RangeError("Invalid mode is specified")}},{key:"pipeThrough",value:function(je,Xe){var st=je.writable,ht=je.readable;if(st===void 0||ht===void 0)throw new TypeError("readable and writable arguments must be defined");return ee(this.pipeTo(st,Xe)),ht}},{key:"pipeTo",value:function(je){var Xe=this,st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ht=st.preventClose,St=st.preventAbort,Ht=st.preventCancel;if(h(this)===!1)return Promise.reject(me("pipeTo"));if(di(je)===!1)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));if(ht=!!ht,St=!!St,Ht=!!Ht,p(this)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream"));if(yn(je)===!0)return Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream"));var Xt=o(this),lr=tr(je),vr=!1,zt=Promise.resolve();return new Promise(function(Fn,ei){function Fr(){return vr===!0?Promise.resolve():lr._readyPromise.then(function(){return Q(Xt).then(function(Kt){var zr=Kt.value;Kt.done!==!0&&(zt=Hn(lr,zr).catch(function(){}))})}).then(Fr)}function gn(){var Kt=zt;return zt.then(function(){return Kt!==zt?gn():void 0})}function $n(Kt,zr,ri){Kt._state==="errored"?ri(Kt._storedError):zr.catch(ri).catch(Pe)}function Qn(Kt,zr,ri){function Aa(){Kt().then(function(){return ea(zr,ri)},function(Iy){return ea(!0,Iy)}).catch(Pe)}vr!==!0&&(vr=!0,je._state==="writable"&&Pr(je)===!1?gn().then(Aa):Aa())}function ti(Kt,zr){vr!==!0&&(vr=!0,je._state==="writable"&&Pr(je)===!1?gn().then(function(){return ea(Kt,zr)}).catch(Pe):ea(Kt,zr))}function ea(Kt,zr){Hr(lr),M(Xt),Kt?ei(zr):Fn(void 0)}if($n(Xe,Xt._closedPromise,function(Kt){St===!1?Qn(function(){return or(je,Kt)},!0,Kt):ti(!0,Kt)}),$n(je,lr._closedPromise,function(Kt){Ht===!1?Qn(function(){return g(Xe,Kt)},!0,Kt):ti(!0,Kt)}),function(zr,ri,Aa){zr._state==="closed"?Aa():ri.then(Aa).catch(Pe)}(Xe,Xt._closedPromise,function(){ht===!1?Qn(function(){return Mn(lr)}):ti()}),Pr(je)===!0||je._state==="closed"){var no=new TypeError("the destination writable stream closed before all data could be piped to it");Ht===!1?Qn(function(){return g(Xe,no)},!0,no):ti(!0,no)}Fr().catch(function(Kt){zt=Promise.resolve(),Pe(Kt)})})}},{key:"tee",value:function(){if(h(this)===!1)throw me("tee");var je=y(this);return Ir(je)}},{key:"locked",get:function(){if(h(this)===!1)throw me("locked");return p(this)}}]),ue}();s.exports={CreateReadableByteStream:c,CreateReadableStream:l,ReadableStream:Ni,IsReadableStreamDisturbed:f,ReadableStreamDefaultControllerClose:X,ReadableStreamDefaultControllerEnqueue:he,ReadableStreamDefaultControllerError:xe,ReadableStreamDefaultControllerGetDesiredSize:ae,ReadableStreamDefaultControllerHasBackpressure:Oe,ReadableStreamDefaultControllerCanCloseOrEnqueue:Ne};var Zi=function(){function ue(ve){if(r(this,ue),h(ve)===!1)throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(p(ve)===!0)throw new TypeError("This stream has already been locked for exclusive reading by another reader");j(this,ve),this._readRequests=[]}return pe(ue,[{key:"cancel",value:function(je){return P(this)===!1?Promise.reject(W("cancel")):this._ownerReadableStream===void 0?Promise.reject(Se("cancel")):U(this,je)}},{key:"read",value:function(){return P(this)===!1?Promise.reject(W("read")):this._ownerReadableStream===void 0?Promise.reject(Se("read from")):Q(this)}},{key:"releaseLock",value:function(){if(P(this)===!1)throw W("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}},{key:"closed",get:function(){return P(this)===!1?Promise.reject(W("closed")):this._closedPromise}}]),ue}(),bn=function(){function ue(ve){if(r(this,ue),!h(ve))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(oe(ve._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(p(ve))throw new TypeError("This stream has already been locked for exclusive reading by another reader");j(this,ve),this._readIntoRequests=[]}return pe(ue,[{key:"cancel",value:function(je){return O(this)?this._ownerReadableStream===void 0?Promise.reject(Se("cancel")):U(this,je):Promise.reject(lt("cancel"))}},{key:"read",value:function(je){return O(this)?this._ownerReadableStream===void 0?Promise.reject(Se("read from")):ArrayBuffer.isView(je)?nt(je.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):je.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):q(this,je):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(lt("read"))}},{key:"releaseLock",value:function(){if(!O(this))throw lt("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");M(this)}}},{key:"closed",get:function(){return O(this)?this._closedPromise:Promise.reject(lt("closed"))}}]),ue}(),Xr=function(){function ue(){throw r(this,ue),new TypeError}return pe(ue,[{key:"close",value:function(){if(Z(this)===!1)throw ut("close");if(Ne(this)===!1)throw new TypeError("The stream is not in a state that permits close");X(this)}},{key:"enqueue",value:function(je){if(Z(this)===!1)throw ut("enqueue");if(Ne(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return he(this,je)}},{key:"error",value:function(je){if(Z(this)===!1)throw ut("error");var Xe=this._controlledReadableStream;if(Xe._state!=="readable")throw new TypeError("The stream is "+Xe._state+" and so cannot be errored");xe(this,je)}},{key:fi,value:function(je){return Tt(this),this._cancelAlgorithm(je)}},{key:Mr,value:function(){var je=this._controlledReadableStream;if(this._queue.length>0){var Xe=it(this);return this._closeRequested===!0&&this._queue.length===0?v(je):K(this),Promise.resolve(Ye(Xe,!1))}var st=m(je);return K(this),st}},{key:"desiredSize",get:function(){if(Z(this)===!1)throw ut("desiredSize");return ae(this)}}]),ue}(),os=function(){function ue(){throw r(this,ue),new TypeError("ReadableStreamBYOBRequest cannot be used directly")}return pe(ue,[{key:"respond",value:function(je){if($(this)===!1)throw le("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(nt(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");be(this._associatedReadableByteStreamController,je)}},{key:"respondWithNewView",value:function(je){if($(this)===!1)throw le("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(je))throw new TypeError("You can only respond with array buffer views");if(nt(je.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");Re(this._associatedReadableByteStreamController,je)}},{key:"view",get:function(){if($(this)===!1)throw le("view");return this._view}}]),ue}(),Zn=function(){function ue(){throw r(this,ue),new TypeError("ReadableByteStreamController constructor cannot be used directly")}return pe(ue,[{key:"close",value:function(){if(oe(this)===!1)throw C("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var je=this._controlledReadableByteStream._state;if(je!=="readable")throw new TypeError("The stream (in "+je+" state) is not in the readable state and cannot be closed");G(this)}},{key:"enqueue",value:function(je){if(oe(this)===!1)throw C("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var Xe=this._controlledReadableByteStream._state;if(Xe!=="readable")throw new TypeError("The stream (in "+Xe+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(je))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(nt(je.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");F(this,je)}},{key:"error",value:function(je){if(oe(this)===!1)throw C("error");var Xe=this._controlledReadableByteStream;if(Xe._state!=="readable")throw new TypeError("The stream is "+Xe._state+" and so cannot be errored");H(this,je)}},{key:fi,value:function(je){return this._pendingPullIntos.length>0&&(this._pendingPullIntos[0].bytesFilled=0),Tt(this),this._cancelAlgorithm(je)}},{key:Mr,value:function(){var je=this._controlledReadableByteStream;if(this._queueTotalSize>0){var Xe=this._queue.shift();this._queueTotalSize-=Xe.byteLength,J(this);var st=void 0;try{st=new Uint8Array(Xe.buffer,Xe.byteOffset,Xe.byteLength)}catch(lr){return Promise.reject(lr)}return Promise.resolve(Ye(st,!1))}var ht=this._autoAllocateChunkSize;if(ht!==void 0){var St=void 0;try{St=new ArrayBuffer(ht)}catch(lr){return Promise.reject(lr)}var Ht={buffer:St,byteOffset:0,byteLength:ht,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Ht)}var Xt=m(je);return N(this),Xt}},{key:"byobRequest",get:function(){if(oe(this)===!1)throw C("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var je=this._pendingPullIntos[0],Xe=new Uint8Array(je.buffer,je.byteOffset+je.bytesFilled,je.byteLength-je.bytesFilled),st=Object.create(os.prototype);ke(st,this,Xe),this._byobRequest=st}return this._byobRequest}},{key:"desiredSize",get:function(){if(oe(this)===!1)throw C("desiredSize");return re(this)}}]),ue}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"./writable-stream.js":15,"better-assert":16}],13:[function(u,s,n){function r($,N){if(!($ instanceof N))throw new TypeError("Cannot call a class as a function")}function a($,N,R){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,x=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return 1},B=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,k=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){return 1},V=Object.create(de.prototype),J=void 0;o(V,new Promise(function(Y){J=Y}),T,x,B,k),p(V,Object.create(oe.prototype),N,R);var z=$();return J(z),V}function o($,N,R,T,x,B){function k(){return N}$._writable=Ne(k,function(J){return v($,J)},function(){return w($)},function(){return _($)},R,T),$._readable=K(k,function(){return S($)},function(J){return d($,J),Promise.resolve()},x,B),$._backpressure=void 0,$._backpressureChangePromise=void 0,$._backpressureChangePromise_resolve=void 0,h($,!0),$._transformStreamController=void 0}function l($){return!!M($)&&!!Object.prototype.hasOwnProperty.call($,"_transformStreamController")}function c($,N){E("TransformStreamError()"),$._readable._state==="readable"&&he($._readable._readableStreamController,N),d($,N)}function d($,N){ge($._writable._writableStreamController,N),$._backpressure===!0&&h($,!1)}function h($,N){E("TransformStreamSetBackpressure() [backpressure = "+N+"]"),$._backpressureChangePromise!==void 0&&$._backpressureChangePromise_resolve(),$._backpressureChangePromise=new Promise(function(R){$._backpressureChangePromise_resolve=R}),$._backpressure=N}function f($){return!!M($)&&!!Object.prototype.hasOwnProperty.call($,"_controlledTransformStream")}function p($,N,R,T){N._controlledTransformStream=$,$._transformStreamController=N,N._transformAlgorithm=R,N._flushAlgorithm=T}function y($,N){var R=Object.create(oe.prototype),T=function(V){try{return b(R,V),Promise.resolve()}catch(J){return Promise.reject(J)}},x=N.transform;if(x!==void 0){if(typeof x!="function")throw new TypeError("transform is not a method");T=function(V){return U(x,N,[V,R]).catch(function(J){throw c($,J),J})}}var B=j(N,"flush",0,[R]);p($,R,T,B)}function b($,N){E("TransformStreamDefaultControllerEnqueue()");var R=$._controlledTransformStream,T=R._readable._readableStreamController;if(ae(T)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{X(T,N)}catch(x){throw d(R,x),R._readable._storedError}ie(T)!==R._backpressure&&h(R,!0)}function m($,N){c($._controlledTransformStream,N)}function g($){E("TransformStreamDefaultControllerTerminate()");var N=$._controlledTransformStream,R=N._readable._readableStreamController;ae(R)===!0&&fe(R),d(N,new TypeError("TransformStream terminated"))}function v($,N){E("TransformStreamDefaultSinkWriteAlgorithm()");var R=$._transformStreamController;return $._backpressure===!0?$._backpressureChangePromise.then(function(){var T=$._writable;if(T._state==="erroring")throw T._storedError;return R._transformAlgorithm(N)}):R._transformAlgorithm(N)}function _($){return c($,new TypeError("Writable side aborted")),Promise.resolve()}function w($){E("TransformStreamDefaultSinkCloseAlgorithm()");var N=$._readable;return $._transformStreamController._flushAlgorithm().then(function(){if(N._state==="errored")throw N._storedError;var R=N._readableStreamController;ae(R)===!0&&fe(R)}).catch(function(R){throw c($,R),N._storedError})}function S($){return E("TransformStreamDefaultSourcePullAlgorithm()"),h($,!1),$._backpressureChangePromise}function A($){return new TypeError("TransformStreamDefaultController.prototype."+$+" can only be used on a TransformStreamDefaultController")}function D($){return new TypeError("TransformStream.prototype."+$+" can only be used on a TransformStream")}var L=function(){function $(N,R){for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:{},R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r(this,$),N.readableType!==void 0)throw new RangeError("Invalid readable type specified");if(N.writableType!==void 0)throw new RangeError("Invalid writable type specified");var x=R.size,B=Q(x),k=R.highWaterMark;k===void 0&&(k=1),k=q(k);var V=T.size,J=Q(V),z=T.highWaterMark;z===void 0&&(z=0),z=q(z);var Y=void 0;o(this,new Promise(function(ce){Y=ce}),k,B,z,J),y(this,N);var te=P(N,"start",[this._transformStreamController]);Y(te)}return L($,[{key:"readable",get:function(){if(l(this)===!1)throw D("readable");return this._readable}},{key:"writable",get:function(){if(l(this)===!1)throw D("writable");return this._writable}}]),$}(),oe=function(){function $(){throw r(this,$),new TypeError("TransformStreamDefaultController instances cannot be created directly")}return L($,[{key:"enqueue",value:function(R){if(f(this)===!1)throw A("enqueue");b(this,R)}},{key:"error",value:function(R){if(f(this)===!1)throw A("error");m(this,R)}},{key:"terminate",value:function(){if(f(this)===!1)throw A("terminate");g(this)}},{key:"desiredSize",get:function(){if(f(this)===!1)throw A("desiredSize");var R=this._controlledTransformStream._readable._readableStreamController;return xe(R)}}]),$}();s.exports={CreateTransformStream:a,TransformStream:de}},{"./helpers.js":10,"./readable-stream.js":12,"./writable-stream.js":15,"better-assert":16,debug:18}],14:[function(u,s,n){var r=u("better-assert");n.rethrowAssertionErrorRejection=function(a){a&&a.constructor===r.AssertionError&&setTimeout(function(){throw a},0)}},{"better-assert":16}],15:[function(u,s,n){function r(C,ee){if(!(C instanceof ee))throw new TypeError("Cannot call a class as a function")}function a(C){return new ut(C)}function o(C,ee,pe,De){var Ue=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,Fe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:function(){return 1},Ye=Object.create(lt.prototype);return l(Ye),X(Ye,Object.create(le.prototype),C,ee,pe,De,Ue,Fe),Ye}function l(C){C._state="writable",C._storedError=void 0,C._writer=void 0,C._writableStreamController=void 0,C._writeRequests=[],C._inFlightWriteRequest=void 0,C._closeRequest=void 0,C._inFlightCloseRequest=void 0,C._pendingAbortRequest=void 0,C._backpressure=!1}function c(C){return!!ke(C)&&!!Object.prototype.hasOwnProperty.call(C,"_writableStreamController")}function d(C){return C._writer!==void 0}function h(C,ee){var pe=C._state;if(pe==="closed")return Promise.resolve(void 0);if(pe==="errored")return Promise.reject(C._storedError);var De=new TypeError("Requested to abort");if(C._pendingAbortRequest!==void 0)return Promise.reject(De);var Ue=!1;pe==="erroring"&&(Ue=!0,ee=void 0);var Fe=new Promise(function(Ye,Ve){C._pendingAbortRequest={_resolve:Ye,_reject:Ve,_reason:ee,_wasAlreadyErroring:Ue}});return Ue===!1&&y(C,De),Fe}function f(C){return new Promise(function(ee,pe){var De={_resolve:ee,_reject:pe};C._writeRequests.push(De)})}function p(C,ee){H("WritableStreamDealWithRejection(stream, %o)",ee),C._state!=="writable"?b(C):y(C,ee)}function y(C,ee){H("WritableStreamStartErroring(stream, %o)",ee);var pe=C._writableStreamController;C._state="erroring",C._storedError=ee;var De=C._writer;De!==void 0&&q(De,ee),S(C)===!1&&pe._started===!0&&b(C)}function b(C){H("WritableStreamFinishErroring()"),C._state="errored",C._writableStreamController[tt]();var ee=C._storedError,pe=!0,De=!1,Ue=void 0;try{for(var Fe,Ye=C._writeRequests[Symbol.iterator]();!(pe=(Fe=Ye.next()).done);pe=!0)Fe.value._reject(ee)}catch(Je){De=!0,Ue=Je}finally{try{!pe&&Ye.return&&Ye.return()}finally{if(De)throw Ue}}if(C._writeRequests=[],C._pendingAbortRequest!==void 0){var Ve=C._pendingAbortRequest;if(C._pendingAbortRequest=void 0,Ve._wasAlreadyErroring===!0)return Ve._reject(ee),void L(C);C._writableStreamController[We](Ve._reason).then(function(){Ve._resolve(),L(C)},function(Je){Ve._reject(Je),L(C)})}else L(C)}function m(C){C._inFlightWriteRequest._resolve(void 0),C._inFlightWriteRequest=void 0}function g(C,ee){C._inFlightWriteRequest._reject(ee),C._inFlightWriteRequest=void 0,p(C,ee)}function v(C){C._inFlightCloseRequest._resolve(void 0),C._inFlightCloseRequest=void 0,C._state==="erroring"&&(C._storedError=void 0,C._pendingAbortRequest!==void 0&&(C._pendingAbortRequest._resolve(),C._pendingAbortRequest=void 0)),C._state="closed";var ee=C._writer;ee!==void 0&&Y(ee)}function _(C,ee){C._inFlightCloseRequest._reject(ee),C._inFlightCloseRequest=void 0,C._pendingAbortRequest!==void 0&&(C._pendingAbortRequest._reject(ee),C._pendingAbortRequest=void 0),p(C,ee)}function w(C){return C._closeRequest!==void 0||C._inFlightCloseRequest!==void 0}function S(C){return C._inFlightWriteRequest===void 0&&C._inFlightCloseRequest===void 0?(H("WritableStreamHasOperationMarkedInFlight() is false"),!1):(H("WritableStreamHasOperationMarkedInFlight() is true"),!0)}function A(C){C._inFlightCloseRequest=C._closeRequest,C._closeRequest=void 0}function D(C){C._inFlightWriteRequest=C._writeRequests.shift()}function L(C){H("WritableStreamRejectCloseAndClosedPromiseIfNeeded()"),C._closeRequest!==void 0&&(C._closeRequest._reject(C._storedError),C._closeRequest=void 0);var ee=C._writer;ee!==void 0&&(J(ee,C._storedError),ee._closedPromise.catch(function(){}))}function E(C,ee){var pe=C._writer;pe!==void 0&&ee!==C._backpressure&&(ee===!0?Ee(pe):G(pe)),C._backpressure=ee}function O(C){return!!ke(C)&&!!Object.prototype.hasOwnProperty.call(C,"_ownerWritableStream")}function P(C,ee){return h(C._ownerWritableStream,ee)}function j(C){var ee=C._ownerWritableStream,pe=ee._state;if(pe==="closed"||pe==="errored")return Promise.reject(new TypeError("The stream (in "+pe+" state) is not in the writable state and cannot be closed"));var De=new Promise(function(Ue,Fe){var Ye={_resolve:Ue,_reject:Fe};ee._closeRequest=Ye});return ee._backpressure===!0&&pe==="writable"&&G(C),xe(ee._writableStreamController),De}function U(C){var ee=C._ownerWritableStream,pe=ee._state;return w(ee)===!0||pe==="closed"?Promise.resolve():pe==="errored"?Promise.reject(ee._storedError):j(C)}function M(C,ee){C._closedPromiseState==="pending"?J(C,ee):z(C,ee),C._closedPromise.catch(function(){})}function q(C,ee){H("WritableStreamDefaultWriterEnsureReadyPromiseRejected(writer, %o)",ee),C._readyPromiseState==="pending"?Ie(C,ee):qe(C,ee),C._readyPromise.catch(function(){})}function Q(C){var ee=C._ownerWritableStream,pe=ee._state;return pe==="errored"||pe==="erroring"?null:pe==="closed"?0:ae(ee._writableStreamController)}function Z(C){var ee=C._ownerWritableStream,pe=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");q(C,pe),M(C,pe),ee._writer=void 0,C._ownerWritableStream=void 0}function K(C,ee){var pe=C._ownerWritableStream,De=pe._writableStreamController,Ue=ie(De,ee);if(pe!==C._ownerWritableStream)return Promise.reject(x("write to"));var Fe=pe._state;if(Fe==="errored")return Promise.reject(pe._storedError);if(w(pe)===!0||Fe==="closed")return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if(Fe==="erroring")return Promise.reject(pe._storedError);var Ye=f(pe);return Oe(De,ee,Ue),Ye}function fe(C){return!!ke(C)&&!!Object.prototype.hasOwnProperty.call(C,"_controlledWritableStream")}function X(C,ee,pe,De,Ue,Fe,Ye,Ve){ee._controlledWritableStream=C,C._writableStreamController=ee,ee._queue=void 0,ee._queueTotalSize=void 0,$e(ee),ee._started=!1,ee._strategySizeAlgorithm=Ve,ee._strategyHWM=Ye,ee._writeAlgorithm=De,ee._closeAlgorithm=Ue,ee._abortAlgorithm=Fe;var Je=$(ee);E(C,Je);var nt=pe();Promise.resolve(nt).then(function(){ee._started=!0,Ne(ee)},function(yt){ee._started=!0,p(C,yt)}).catch(Se)}function he(C,ee,pe,De){var Ue=Object.create(le.prototype),Fe=be(ee,"write",1,[Ue]),Ye=be(ee,"close",0,[]),Ve=be(ee,"abort",1,[]);X(C,Ue,function(){return Re(ee,"start",[Ue])},Fe,Ye,Ve,pe,De)}function xe(C){Te(C,"close",0),Ne(C)}function ie(C,ee){try{return C._strategySizeAlgorithm(ee)}catch(pe){return ge(C,pe),1}}function ae(C){return C._strategyHWM-C._queueTotalSize}function Oe(C,ee,pe){var De={chunk:ee};try{Te(C,De,pe)}catch(Fe){return void ge(C,Fe)}var Ue=C._controlledWritableStream;w(Ue)===!1&&Ue._state==="writable"&&E(Ue,$(C)),Ne(C)}function Ne(C){H("WritableStreamDefaultControllerAdvanceQueueIfNeeded()");var ee=C._controlledWritableStream;if(C._started!==!1&&ee._inFlightWriteRequest===void 0){var pe=ee._state;if(pe!=="closed"&&pe!=="errored")if(pe!=="erroring"){if(C._queue.length!==0){var De=Le(C);De==="close"?de(C):oe(C,De.chunk)}}else b(ee)}}function ge(C,ee){C._controlledWritableStream._state==="writable"&&N(C,ee)}function de(C){var ee=C._controlledWritableStream;A(ee),we(C),C._closeAlgorithm().then(function(){v(ee)},function(pe){_(ee,pe)}).catch(Se)}function oe(C,ee){var pe=C._controlledWritableStream;D(pe),C._writeAlgorithm(ee).then(function(){m(pe);var De=pe._state;if(we(C),w(pe)===!1&&De==="writable"){var Ue=$(C);E(pe,Ue)}Ne(C)},function(De){g(pe,De)}).catch(Se)}function $(C){return ae(C)<=0}function N(C,ee){y(C._controlledWritableStream,ee)}function R(C){return new TypeError("WritableStream.prototype."+C+" can only be used on a WritableStream")}function T(C){return new TypeError("WritableStreamDefaultWriter.prototype."+C+" can only be used on a WritableStreamDefaultWriter")}function x(C){return new TypeError("Cannot "+C+" a stream using a released writer")}function B(C){C._closedPromise=new Promise(function(ee,pe){C._closedPromise_resolve=ee,C._closedPromise_reject=pe,C._closedPromiseState="pending"})}function k(C,ee){C._closedPromise=Promise.reject(ee),C._closedPromise_resolve=void 0,C._closedPromise_reject=void 0,C._closedPromiseState="rejected"}function V(C){C._closedPromise=Promise.resolve(void 0),C._closedPromise_resolve=void 0,C._closedPromise_reject=void 0,C._closedPromiseState="resolved"}function J(C,ee){C._closedPromise_reject(ee),C._closedPromise_resolve=void 0,C._closedPromise_reject=void 0,C._closedPromiseState="rejected"}function z(C,ee){C._closedPromise=Promise.reject(ee),C._closedPromiseState="rejected"}function Y(C){C._closedPromise_resolve(void 0),C._closedPromise_resolve=void 0,C._closedPromise_reject=void 0,C._closedPromiseState="resolved"}function te(C){H("defaultWriterReadyPromiseInitialize()"),C._readyPromise=new Promise(function(ee,pe){C._readyPromise_resolve=ee,C._readyPromise_reject=pe}),C._readyPromiseState="pending"}function ce(C,ee){H("defaultWriterReadyPromiseInitializeAsRejected(writer, %o)",ee),C._readyPromise=Promise.reject(ee),C._readyPromise_resolve=void 0,C._readyPromise_reject=void 0,C._readyPromiseState="rejected"}function Ae(C){H("defaultWriterReadyPromiseInitializeAsResolved()"),C._readyPromise=Promise.resolve(void 0),C._readyPromise_resolve=void 0,C._readyPromise_reject=void 0,C._readyPromiseState="fulfilled"}function Ie(C,ee){H("defaultWriterReadyPromiseReject(writer, %o)",ee),C._readyPromise_reject(ee),C._readyPromise_resolve=void 0,C._readyPromise_reject=void 0,C._readyPromiseState="rejected"}function Ee(C){H("defaultWriterReadyPromiseReset()"),C._readyPromise=new Promise(function(ee,pe){C._readyPromise_resolve=ee,C._readyPromise_reject=pe}),C._readyPromiseState="pending"}function qe(C,ee){H("defaultWriterReadyPromiseResetToRejected(writer, %o)",ee),C._readyPromise=Promise.reject(ee),C._readyPromiseState="rejected"}function G(C){H("defaultWriterReadyPromiseResolve()"),C._readyPromise_resolve(void 0),C._readyPromise_resolve=void 0,C._readyPromise_reject=void 0,C._readyPromiseState="fulfilled"}var F=function(){function C(ee,pe){for(var De=0;De0&&arguments[0]!==void 0?arguments[0]:{},pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=pe.size,Ue=pe.highWaterMark,Fe=Ue===void 0?1:Ue;if(r(this,C),l(this),ee.type!==void 0)throw new RangeError("Invalid type is specified");var Ye=Qe(De);he(this,ee,Fe=Ce(Fe),Ye)}return F(C,[{key:"abort",value:function(pe){return c(this)===!1?Promise.reject(R("abort")):d(this)===!0?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):h(this,pe)}},{key:"getWriter",value:function(){if(c(this)===!1)throw R("getWriter");return a(this)}},{key:"locked",get:function(){if(c(this)===!1)throw R("locked");return d(this)}}]),C}();s.exports={AcquireWritableStreamDefaultWriter:a,CreateWritableStream:o,IsWritableStream:c,IsWritableStreamLocked:d,WritableStream:lt,WritableStreamAbort:h,WritableStreamDefaultControllerErrorIfNeeded:ge,WritableStreamDefaultWriterCloseWithErrorPropagation:U,WritableStreamDefaultWriterRelease:Z,WritableStreamDefaultWriterWrite:K,WritableStreamCloseQueuedOrInFlight:w};var ut=function(){function C(ee){if(r(this,C),c(ee)===!1)throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(d(ee)===!0)throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=ee,ee._writer=this;var pe=ee._state;if(pe==="writable")w(ee)===!1&&ee._backpressure===!0?te(this):Ae(this),B(this);else if(pe==="erroring")ce(this,ee._storedError),this._readyPromise.catch(function(){}),B(this);else if(pe==="closed")Ae(this),V(this);else{var De=ee._storedError;ce(this,De),this._readyPromise.catch(function(){}),k(this,De),this._closedPromise.catch(function(){})}}return F(C,[{key:"abort",value:function(pe){return O(this)===!1?Promise.reject(T("abort")):this._ownerWritableStream===void 0?Promise.reject(x("abort")):P(this,pe)}},{key:"close",value:function(){if(O(this)===!1)return Promise.reject(T("close"));var pe=this._ownerWritableStream;return pe===void 0?Promise.reject(x("close")):w(pe)===!0?Promise.reject(new TypeError("cannot close an already-closing stream")):j(this)}},{key:"releaseLock",value:function(){if(O(this)===!1)throw T("releaseLock");this._ownerWritableStream!==void 0&&Z(this)}},{key:"write",value:function(pe){return O(this)===!1?Promise.reject(T("write")):this._ownerWritableStream===void 0?Promise.reject(x("write to")):K(this,pe)}},{key:"closed",get:function(){return O(this)===!1?Promise.reject(T("closed")):this._closedPromise}},{key:"desiredSize",get:function(){if(O(this)===!1)throw T("desiredSize");if(this._ownerWritableStream===void 0)throw x("desiredSize");return Q(this)}},{key:"ready",get:function(){return O(this)===!1?Promise.reject(T("ready")):this._readyPromise}}]),C}(),le=function(){function C(){throw r(this,C),new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}return F(C,[{key:"error",value:function(pe){if(fe(this)===!1)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");this._controlledWritableStream._state==="writable"&&N(this,pe)}},{key:We,value:function(pe){return this._abortAlgorithm(pe)}},{key:tt,value:function(){$e(this)}}]),C}()},{"./helpers.js":10,"./queue-with-sizes.js":11,"./utils.js":14,"better-assert":16,debug:18}],16:[function(u,s,n){(function(r){function a(d){if(!d){var h=l(),f=h[1],p=f.getFileName(),y=f.getLineNumber(),b=(b=c.readFileSync(p,"utf8")).split(` +`)[y-1].match(/assert\((.*)\)/)[1];throw new o({message:b,stackStartFunction:h[0].getFunction()})}}var o=u("assert").AssertionError,l=u("callsite"),c=u("fs");s.exports={}.NO_ASSERT?function(){}:a}).call(this,u("_process"))},{_process:4,assert:2,callsite:17,fs:3}],17:[function(u,s,n){s.exports=function(){var r=Error.prepareStackTrace;Error.prepareStackTrace=function(l,c){return c};var a=new Error;Error.captureStackTrace(a,arguments.callee);var o=a.stack;return Error.prepareStackTrace=r,o}},{}],18:[function(u,s,n){(function(r){function a(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer")||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(f){var p=this.useColors;if(f[0]=(p?"%c":"")+this.namespace+(p?" %c":" ")+f[0]+(p?"%c ":" ")+"+"+n.humanize(this.diff),p){var y="color: "+this.color;f.splice(1,0,y,"color: inherit");var b=0,m=0;f[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(b++,g==="%c"&&(m=b))}),f.splice(m,0,y)}}function l(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(f){try{f==null?n.storage.removeItem("debug"):n.storage.debug=f}catch{}}function d(){var f;try{f=n.storage.debug}catch{}return!f&&typeof r<"u"&&"env"in r&&(f={}.DEBUG),f}function h(){try{return window.localStorage}catch{}}n=s.exports=u("./debug"),n.log=l,n.formatArgs=o,n.save=c,n.load=d,n.useColors=a,n.storage=typeof chrome<"u"&&chrome.storage!==void 0?chrome.storage.local:h(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.formatters.j=function(f){try{return JSON.stringify(f)}catch(p){return"[UnexpectedJSONParseError]: "+p.message}},n.enable(d())}).call(this,u("_process"))},{"./debug":19,_process:4}],19:[function(u,s,n){function r(f){var p,y=0;for(p in f)y=(y<<5)-y+f.charCodeAt(p),y|=0;return n.colors[Math.abs(y)%n.colors.length]}function a(f){function p(){if(p.enabled){var b=p,m=+new Date,g=m-(y||m);b.diff=g,b.prev=y,b.curr=m,y=m;for(var v=new Array(arguments.length),_=0;_100)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(y);if(b){var m=parseFloat(b[1]);switch((b[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return m*p;case"days":case"day":case"d":return m*f;case"hours":case"hour":case"hrs":case"hr":case"h":return m*h;case"minutes":case"minute":case"mins":case"min":case"m":return m*d;case"seconds":case"second":case"secs":case"sec":case"s":return m*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function a(y){return y>=f?Math.round(y/f)+"d":y>=h?Math.round(y/h)+"h":y>=d?Math.round(y/d)+"m":y>=c?Math.round(y/c)+"s":y+"ms"}function o(y){return l(y,f,"day")||l(y,h,"hour")||l(y,d,"minute")||l(y,c,"second")||y+" ms"}function l(y,b,m){if(!(y0)return r(y);if(m==="number"&&isNaN(y)===!1)return b.long?o(y):a(y);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(y))}},{}]},{},[1])(1)})}(g2)),g2.exports}var m2,M4;function e7(){if(M4)return m2;M4=1;const t=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";return t.writable=e=>t(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object",t.readable=e=>t(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object",t.duplex=e=>t.writable(e)&&t.readable(e),t.transform=e=>t.duplex(e)&&typeof e._transform=="function",m2=t,m2}var _2={exports:{}},F4;function FX(){return F4||(F4=1,function(t){t.exports=e,t.exports.WEBSTREAM_SUPPORT=typeof ReadableStream<"u";function e(u){if(!t.exports.WEBSTREAM_SUPPORT)throw new Error("No web ReadableStream support");var s=!1,n={};function r(l){n.data=d,n.end=d,n.end=h,n.close=h,n.error=h;for(var c in n)u.on(c,n[c]);u.pause();function d(f){s||(l.enqueue(f),u.pause())}function h(f){if(!s){s=!0;for(var p in n)u.removeListener(p,n[p]);f?l.error(f):l.close()}}}function a(){s||u.resume()}function o(){s=!0;for(var l in n)u.removeListener(l,n[l]);u.push(null),u.pause(),u.destroy?u.destroy():u.close&&u.close()}return new ReadableStream({start:r,pull:a,cancel:o})}}(_2)),_2.exports}var q4;function t7(){if(q4)return wd;q4=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.ActorHttp=void 0;const t=ot,e=LX();globalThis.ReadableStream||(globalThis.ReadableStream=MX().ReadableStream);const u=e7(),s=FX();let n=class extends t.Actor{constructor(a){super(a)}static toNodeReadable(a){return u(a)||a===null?a:(0,e.readableFromWeb)(a)}static toWebReadableStream(a){return s(a)}static headersToHash(a){const o={};return a.forEach((l,c)=>{o[c]=l}),o}};return wd.ActorHttp=n,wd}var Sd={},B4;function qX(){if(B4)return Sd;B4=1,Object.defineProperty(Sd,"__esModule",{value:!0}),Sd.validateAndCloseHttpResponse=void 0;const t=eo(),e=t7();async function u(s,n){var r;if(n.status>=400){let a="empty response";if(n.body){const o=e.ActorHttp.toNodeReadable(n.body);a=await t(o)}throw new Error(`Could not update ${s} (HTTP status ${n.status}): +${a}`)}await((r=n.body)==null?void 0:r.cancel())}return Sd.validateAndCloseHttpResponse=u,Sd}var U4;function rs(){return U4||(U4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(t7(),t),u(qX(),t)}(y2)),y2}var H4={},$4;function r7(){return $4||($4=1,function(t){(function(e){var u=typeof globalThis<"u"&&globalThis||typeof t<"u"&&t||typeof u<"u"&&u,s={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function n(O){return O&&DataView.prototype.isPrototypeOf(O)}if(s.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(O){return O&&r.indexOf(Object.prototype.toString.call(O))>-1};function o(O){if(typeof O!="string"&&(O=String(O)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(O)||O==="")throw new TypeError('Invalid character in header field name: "'+O+'"');return O.toLowerCase()}function l(O){return typeof O!="string"&&(O=String(O)),O}function c(O){var P={next:function(){var j=O.shift();return{done:j===void 0,value:j}}};return s.iterable&&(P[Symbol.iterator]=function(){return P}),P}function d(O){this.map={},O instanceof d?O.forEach(function(P,j){this.append(j,P)},this):Array.isArray(O)?O.forEach(function(P){this.append(P[0],P[1])},this):O&&Object.getOwnPropertyNames(O).forEach(function(P){this.append(P,O[P])},this)}d.prototype.append=function(O,P){O=o(O),P=l(P);var j=this.map[O];this.map[O]=j?j+", "+P:P},d.prototype.delete=function(O){delete this.map[o(O)]},d.prototype.get=function(O){return O=o(O),this.has(O)?this.map[O]:null},d.prototype.has=function(O){return this.map.hasOwnProperty(o(O))},d.prototype.set=function(O,P){this.map[o(O)]=l(P)},d.prototype.forEach=function(O,P){for(var j in this.map)this.map.hasOwnProperty(j)&&O.call(P,this.map[j],j,this)},d.prototype.keys=function(){var O=[];return this.forEach(function(P,j){O.push(j)}),c(O)},d.prototype.values=function(){var O=[];return this.forEach(function(P){O.push(P)}),c(O)},d.prototype.entries=function(){var O=[];return this.forEach(function(P,j){O.push([j,P])}),c(O)},s.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function h(O){if(O.bodyUsed)return Promise.reject(new TypeError("Already read"));O.bodyUsed=!0}function f(O){return new Promise(function(P,j){O.onload=function(){P(O.result)},O.onerror=function(){j(O.error)}})}function p(O){var P=new FileReader,j=f(P);return P.readAsArrayBuffer(O),j}function y(O){var P=new FileReader,j=f(P);return P.readAsText(O),j}function b(O){for(var P=new Uint8Array(O),j=new Array(P.length),U=0;U-1?P:O}function w(O,P){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');P=P||{};var j=P.body;if(O instanceof w){if(O.bodyUsed)throw new TypeError("Already read");this.url=O.url,this.credentials=O.credentials,P.headers||(this.headers=new d(O.headers)),this.method=O.method,this.mode=O.mode,this.signal=O.signal,!j&&O._bodyInit!=null&&(j=O._bodyInit,O.bodyUsed=!0)}else this.url=String(O);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new d(P.headers)),this.method=_(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&j)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(j),(this.method==="GET"||this.method==="HEAD")&&(P.cache==="no-store"||P.cache==="no-cache")){var U=/([?&])_=[^&]*/;if(U.test(this.url))this.url=this.url.replace(U,"$1_="+new Date().getTime());else{var M=/\?/;this.url+=(M.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function S(O){var P=new FormData;return O.trim().split("&").forEach(function(j){if(j){var U=j.split("="),M=U.shift().replace(/\+/g," "),q=U.join("=").replace(/\+/g," ");P.append(decodeURIComponent(M),decodeURIComponent(q))}}),P}function A(O){var P=new d,j=O.replace(/\r?\n[\t ]+/g," ");return j.split("\r").map(function(U){return U.indexOf(` +`)===0?U.substr(1,U.length):U}).forEach(function(U){var M=U.split(":"),q=M.shift().trim();if(q){var Q=M.join(":").trim();P.append(q,Q)}}),P}g.call(w.prototype);function D(O,P){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText=P.statusText===void 0?"":""+P.statusText,this.headers=new d(P.headers),this.url=P.url||"",this._initBody(O)}g.call(D.prototype),D.prototype.clone=function(){return new D(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},D.error=function(){var O=new D(null,{status:0,statusText:""});return O.type="error",O};var L=[301,302,303,307,308];D.redirect=function(O,P){if(L.indexOf(P)===-1)throw new RangeError("Invalid status code");return new D(null,{status:P,headers:{location:O}})},e.DOMException=u.DOMException;try{new e.DOMException}catch{e.DOMException=function(P,j){this.message=P,this.name=j;var U=Error(P);this.stack=U.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function E(O,P){return new Promise(function(j,U){var M=new w(O,P);if(M.signal&&M.signal.aborted)return U(new e.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function Q(){q.abort()}q.onload=function(){var K={status:q.status,statusText:q.statusText,headers:A(q.getAllResponseHeaders()||"")};K.url="responseURL"in q?q.responseURL:K.headers.get("X-Request-URL");var fe="response"in q?q.response:q.responseText;setTimeout(function(){j(new D(fe,K))},0)},q.onerror=function(){setTimeout(function(){U(new TypeError("Network request failed"))},0)},q.ontimeout=function(){setTimeout(function(){U(new TypeError("Network request failed"))},0)},q.onabort=function(){setTimeout(function(){U(new e.DOMException("Aborted","AbortError"))},0)};function Z(K){try{return K===""&&u.location.href?u.location.href:K}catch{return K}}q.open(M.method,Z(M.url),!0),M.credentials==="include"?q.withCredentials=!0:M.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&(s.blob?q.responseType="blob":s.arrayBuffer&&M.headers.get("Content-Type")&&M.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(q.responseType="arraybuffer")),P&&typeof P.headers=="object"&&!(P.headers instanceof d)?Object.getOwnPropertyNames(P.headers).forEach(function(K){q.setRequestHeader(K,l(P.headers[K]))}):M.headers.forEach(function(K,fe){q.setRequestHeader(fe,K)}),M.signal&&(M.signal.addEventListener("abort",Q),q.onreadystatechange=function(){q.readyState===4&&M.signal.removeEventListener("abort",Q)}),q.send(typeof M._bodyInit>"u"?null:M._bodyInit)})}return E.polyfill=!0,u.fetch||(u.fetch=E,u.Headers=d,u.Request=w,u.Response=D),e.Headers=d,e.Request=w,e.Response=D,e.fetch=E,e})({})}(typeof self<"u"?self:I)),H4}var Td={},Q4;function BX(){if(Q4)return Td;Q4=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.FetchInitPreprocessor=void 0;const t=rs();class e{async handle(s){if(s.headers){const n=new Headers(s.headers);n.has("user-agent")&&n.delete("user-agent"),s.headers=n}if(s!=null&&s.headers&&"append"in s.headers&&(s.headers=t.ActorHttp.headersToHash(s.headers)),s.body&&typeof s.body!="string"&&"getReader"in s.body){const n=s.body.getReader(),r=[];for(;;){const{done:a,value:o}=await n.read();if(a)break;r.push(o)}s.body=r.join("")}return{keepalive:!s.body,...s}}async createAbortController(){return new AbortController}}return Td.FetchInitPreprocessor=e,Td}var V4;function UX(){if(V4)return vd;V4=1,Object.defineProperty(vd,"__esModule",{value:!0}),vd.ActorHttpFetch=void 0;const t=rs(),e=Lt;r7();const u=BX();let s=class o3 extends t.ActorHttp{constructor(r){super(r),this.userAgent=o3.createUserAgent(),this.fetchInitPreprocessor=new u.FetchInitPreprocessor(r.agentOptions)}static createUserAgent(){return`Comunica/actor-http-fetch (${typeof globalThis.navigator>"u"?`Node.js ${process.version}; ${process.platform}`:`Browser-${globalThis.navigator.userAgent}`})`}async test(r){return{time:Number.POSITIVE_INFINITY}}static async getResponse(r,a,o,l,c,d){var p;let h,f=l+1;for(;f-- >0;)try{const y=await r(a,o);if(d&&y.status>=500&&y.status<600)throw new Error(`Server replied with response code ${y.status}: ${y.statusText}`);return y}catch(y){if(h=y,(p=o.signal)!=null&&p.aborted)throw y;f>0&&await new Promise((b,m)=>{var g;setTimeout(b,c),(g=o.signal)==null||g.addEventListener("abort",()=>{m(new Error("Fetch aborted by timeout."))})})}throw l>0?new Error(`Number of fetch retries (${l}) exceeded. Last error: ${String(h)}`):h}async run(r){var f,p,y,b,m,g,v,_;const a=((f=r.init)==null?void 0:f.headers)??{};r.init=r.init??{},r.init.headers=new Headers(a),r.init.headers.has("user-agent")||r.init.headers.append("user-agent",this.userAgent);const o=r.context.get(e.KeysHttp.auth);o&&r.init.headers.append("Authorization",`Basic ${Buffer.from(o).toString("base64")}`),this.logInfo(r.context,`Requesting ${typeof r.input=="string"?r.input:r.input.url}`,()=>({headers:t.ActorHttp.headersToHash(new Headers(r.init.headers)),method:r.init.method??"GET"})),(p=r.init)!=null&&p.headers&&"append"in r.init.headers&&r.context.has(e.KeysHttp.fetch)&&(r.init.headers=t.ActorHttp.headersToHash(r.init.headers));let l={...r.init};r.context.get(e.KeysHttp.includeCredentials)&&(l.credentials="include");const c=(y=r.context)==null?void 0:y.get(e.KeysHttp.httpTimeout);let d,h;if(c!==void 0){const w=await this.fetchInitPreprocessor.createAbortController();l.signal=w.signal,h=()=>w.abort(),d=setTimeout(()=>h(),c)}try{l=await this.fetchInitPreprocessor.handle(l);const w=((b=r.context)==null?void 0:b.get(e.KeysHttp.httpRetryCount))??0,S=((m=r.context)==null?void 0:m.get(e.KeysHttp.httpRetryDelay))??0,A=((g=r.context)==null?void 0:g.get(e.KeysHttp.httpRetryOnServerError))??!1,D=(v=r.context)==null?void 0:v.get(e.KeysHttp.fetch),L=await o3.getResponse(D??fetch,r.input,l,w,S,A);return d!==void 0&&((((_=r.context)==null?void 0:_.get(e.KeysHttp.httpBodyTimeout))||!1)&&L.body?(h=()=>{var O;return(O=L.body)==null?void 0:O.cancel(new Error(`HTTP timeout when reading the body of ${L.url}. +This error can be disabled by modifying the 'httpBodyTimeout' and/or 'httpTimeout' options.`))},L.body.on("close",()=>{clearTimeout(d)})):clearTimeout(d)),L.body&&!L.body.cancel&&(L.body.cancel=async E=>{L.body.destroy(E),d!==void 0&&clearTimeout(d)}),L}catch(w){throw d!==void 0&&clearTimeout(d),w}}};return vd.ActorHttpFetch=s,vd}var k4;function HX(){return k4||(k4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(UX(),t)}(p2)),p2}var v2={},Ad={},z4;function $X(){if(z4)return Ad;z4=1,Object.defineProperty(Ad,"__esModule",{value:!0}),Ad.ActorQueryOperationSource=void 0;const t=wt(),e=Lt,u=jn(),s=Ot();let n=class extends t.ActorQueryOperation{constructor(a){super(a)}async test(a){if(!t.ActorQueryOperation.getOperationSource(a.operation))throw new Error(`Actor ${this.name} requires an operation with source annotation.`);return{httpRequests:1}}async run(a){const o=a.context.get(e.KeysInitQuery.physicalQueryPlanLogger);o&&(o.logOperation(a.operation.type,void 0,a.operation,a.context.get(e.KeysInitQuery.physicalQueryPlanNode),this.name,{}),a.context=a.context.set(e.KeysInitQuery.physicalQueryPlanNode,a.operation));const l=t.ActorQueryOperation.getOperationSource(a.operation),c=l.context?a.context.merge(l.context):a.context;let d=!1;if(s.Util.recurseOperation(a.operation,{construct(){return d=!0,!1}}),d){const p=l.source.queryQuads(a.operation,c),y=(0,u.getMetadataQuads)(p);return{type:"quads",quadStream:p,metadata:y}}switch(a.operation.type){case s.Algebra.types.ASK:return{type:"boolean",execute:()=>l.source.queryBoolean(a.operation,c)};case s.Algebra.types.COMPOSITE_UPDATE:case s.Algebra.types.DELETE_INSERT:case s.Algebra.types.LOAD:case s.Algebra.types.CLEAR:case s.Algebra.types.CREATE:case s.Algebra.types.DROP:case s.Algebra.types.ADD:case s.Algebra.types.MOVE:case s.Algebra.types.COPY:return{type:"void",execute:()=>l.source.queryVoid(a.operation,c)}}const h=l.source.queryBindings(a.operation,c),f=(0,u.getMetadataBindings)(h);return{type:"bindings",bindingsStream:h,metadata:f}}};return Ad.ActorQueryOperationSource=n,Ad}var G4;function QX(){return G4||(G4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u($X(),t)}(v2)),v2}var w2={},Ed={},W4;function VX(){if(W4)return Ed;W4=1,Object.defineProperty(Ed,"__esModule",{value:!0}),Ed.MediatorJoinCoefficientsFixed=void 0;const t=Lt,e=ot;let u=class extends e.Mediator{constructor(n){super(n)}async mediateWith(n,r){var b;const a=[],o=r.map(({reply:m})=>m).map(m=>m.catch(g=>{a.push(g)})),l=await Promise.all(o);let c=l.map(m=>{if(m)return m.iterations*this.cpuWeight+m.persistedItems*this.memoryWeight+m.blockingItems*this.timeWeight+m.requestTime*this.ioWeight});const d=Math.max(...c.filter(m=>m!==void 0)),h=n.context.get(t.KeysQueryOperation.limitIndicator);h&&(c=c.map((m,g)=>m!==void 0&&l[g].persistedItems>0&&l[g].iterations>h?m+d:m));let f=-1,p=Number.POSITIVE_INFINITY;for(const[m,g]of c.entries())g!==void 0&&(f===-1||gm.message).join(` +`)}`);const y=r[f].actor;return y.includeInLogs&&((b=e.Actor.getContextLogger(n.context))==null||b.debug(`Determined physical join operator '${y.logicalType}-${y.physicalName}'`,{entries:n.entries.length,variables:await Promise.all(n.entries.map(async m=>(await m.output.metadata()).variables.map(g=>g.value))),costs:Object.fromEntries(c.map((m,g)=>[`${r[g].actor.logicalType}-${r[g].actor.physicalName}`,m]).filter(m=>m[1]!==void 0)),coefficients:Object.fromEntries(l.map((m,g)=>[`${r[g].actor.logicalType}-${r[g].actor.physicalName}`,m]).filter(m=>m[1]!==void 0))})),y}};return Ed.MediatorJoinCoefficientsFixed=u,Ed}var J4;function kX(){return J4||(J4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(VX(),t)}(w2)),w2}var S2={},Od={},X4;function n7(){if(X4)return Od;X4=1,Object.defineProperty(Od,"__esModule",{value:!0}),Od.ActorHttpInvalidate=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Od.ActorHttpInvalidate=e,Od}var Rd={},K4;function zX(){if(K4)return Rd;K4=1,Object.defineProperty(Rd,"__esModule",{value:!0}),Rd.ActorHttpInvalidateListenable=void 0;const t=n7();let e=class extends t.ActorHttpInvalidate{constructor(s){super(s),this.invalidateListeners=[],this.invalidateListeners=[]}addInvalidateListener(s){this.invalidateListeners.push(s)}async test(s){return!0}async run(s){for(const n of this.invalidateListeners)n(s);return{}}};return Rd.ActorHttpInvalidateListenable=e,Rd}var Y4;function T1(){return Y4||(Y4=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(n7(),t),u(zX(),t)}(S2)),S2}var T2={},xd={},Z4;function GX(){if(Z4)return xd;Z4=1,Object.defineProperty(xd,"__esModule",{value:!0}),xd.MediatorAll=void 0;const t=ot;let e=class extends t.Mediator{constructor(s){super(s)}async mediate(s){const n=[];let r;try{r=this.publish(s)}catch{r=[]}for(const o of r)try{await o.reply,n.push(o.actor)}catch{}return(await Promise.all(n.map(o=>o.runObservable(s))))[0]}async mediateWith(){throw new Error("Unsupported operation: MediatorAll#mediateWith")}};return xd.MediatorAll=e,xd}var e6;function WX(){return e6||(e6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(GX(),t)}(T2)),T2}var A2={},Id={},E2={},Pd={},Dd={},t6;function JX(){if(t6)return Dd;t6=1,Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.instrumentIterator=void 0;function t(u){const s={count:0,timeSelf:0,timeLife:0};return e(u,s,!0),new Promise(n=>{u.on("end",()=>{n(s)})})}Dd.instrumentIterator=t;function e(u,s,n){if(!("_profileInstrumented"in u)){if(u._profileInstrumented=!0,"_read"in u){const r=u._read;u._read=(a,o)=>{const l=performance.now();r.call(u,a,()=>{s.timeSelf+=performance.now()-l,o()})}}if("read"in u){const r=u.read;u.read=()=>{const a=performance.now(),o=r.call(u);return n&&o&&s.count++,s.timeSelf+=performance.now()-a,o}}if(n){const r=performance.now();u.on("end",()=>{s.timeLife=performance.now()-r})}"_source"in u&&e(u._source,s,!1)}}return Dd}var r6;function XX(){if(r6)return Pd;r6=1,Object.defineProperty(Pd,"__esModule",{value:!0}),Pd.ActorRdfJoin=void 0;const t=Lt,e=ot,u=jn(),s=Et(),n=er(),r=JX(),a=new s.DataFactory;let o=class Cs extends e.Actor{constructor(c,d){super(c),this.includeInLogs=!0,this.logicalType=d.logicalType,this.physicalName=d.physicalName,this.limitEntries=d.limitEntries??Number.POSITIVE_INFINITY,this.limitEntriesMin=d.limitEntriesMin??!1,this.canHandleUndefs=d.canHandleUndefs??!1,this.isLeaf=d.isLeaf??!0}static hash(c,d){return d.map(h=>{const f=c.get(h);return f?f.value:""}).join("")}static hashNonClashing(c,d){return d.map(h=>{const f=c.get(h);return f?(0,n.termToString)(f):""}).join("")}static overlappingVariables(c){const d=c.map(f=>f.variables);let h=d[0];for(const f of d.slice(1))h=h.filter(p=>f.some(y=>y.value===p.value));return h}static joinVariables(c){return[...new Set(c.flatMap(d=>d.variables.map(h=>h.value)))].map(d=>a.variable(d))}static joinBindings(...c){if(c.length===0)return null;if(c.length===1)return c[0];let d=c[0];for(const h of c.slice(1)){const f=d.merge(h);if(!f)return null;d=f}return d}static getCardinality(c){return c.cardinality}static async getMetadatas(c){return await Promise.all(c.map(d=>d.output.metadata()))}static async getEntriesWithMetadatas(c){const d=await Cs.getMetadatas(c);return c.map((h,f)=>({...h,metadata:d[f]}))}static getRequestInitialTimes(c){return c.map(d=>d.pageSize?0:d.requestTime??0)}static getRequestItemTimes(c){return c.map(d=>d.pageSize?(d.requestTime??0)/d.pageSize:0)}constructState(c){const d=new u.MetadataValidationState,h=()=>d.invalidate();for(const f of c)f.state.addInvalidateListener(h);return d}async constructResultMetadata(c,d,h,f={}){let p;return f.cardinality?p=f.cardinality:(p=d.reduce((y,b)=>{const m=Cs.getCardinality(b);return{type:m.type==="estimate"?"estimate":y.type,value:y.value*m.value}},{type:"exact",value:1}),p.value*=(await this.mediatorJoinSelectivity.mediate({entries:c,context:h})).selectivity),{state:this.constructState(d),...f,cardinality:{type:p.type,value:p.value},canContainUndefs:f.canContainUndefs??d.some(y=>y.canContainUndefs),variables:Cs.joinVariables(d)}}static async sortJoinEntries(c,d,h){if(d.some(m=>m.metadata.canContainUndefs))return d;const p={};for(const m of d)for(const g of m.metadata.variables){let v=p[g.value];v||(v=0),p[g.value]=++v}const y=[];for(const[m,g]of Object.entries(p))g>=2&&y.push(m);if(y.length===0)throw new Error("Bind join can only join entries with at least one common variable");const b=[];for(const m of d){let g=!1;for(const v of m.metadata.variables)if(y.includes(v.value)){g=!0;break}g||b.push(m)}return(await c.mediate({entries:d,context:h})).entries.sort((m,g)=>{const v=b.includes(m),_=b.includes(g);return v===_?0:v?1:-1})}async test(c){if(c.type!==this.logicalType)throw new Error(`${this.name} can only handle logical joins of type '${this.logicalType}', while '${c.type}' was given.`);if(c.entries.length<=1)throw new Error(`${this.name} requires at least two join entries.`);if(this.limitEntriesMin?c.entries.lengththis.limitEntries)throw new Error(`${this.name} requires ${this.limitEntries} join entries at ${this.limitEntriesMin?"least":"most"}. The input contained ${c.entries.length}.`);for(const h of c.entries)if(h.output.type!=="bindings")throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${h.output.type}'`);const d=await Cs.getMetadatas(c.entries);if(!this.canHandleUndefs){for(const h of d)if(h.canContainUndefs)throw new Error(`Actor ${this.name} can not join streams containing undefs`)}return await this.getJoinCoefficients(c,d)}async run(c){let d;c.context.has(t.KeysInitQuery.physicalQueryPlanLogger)&&(d=c.context.get(t.KeysInitQuery.physicalQueryPlanNode),c.context=c.context.set(t.KeysInitQuery.physicalQueryPlanNode,c));const h=c.context.get(t.KeysInitQuery.physicalQueryPlanLogger);let f;this.includeInLogs&&h&&(f={},h.stashChildren(d,m=>m.logicalOperator.startsWith("join")),h.logOperation(`join-${this.logicalType}`,this.physicalName,c,d,this.name,f));const{result:p,physicalPlanMetadata:y}=await this.getOutput(c),b=await Cs.getMetadatas(c.entries);if(f){(0,r.instrumentIterator)(p.bindingsStream).then(g=>{h.appendMetadata(c,{cardinalityReal:g.count,timeSelf:g.timeSelf,timeLife:g.timeLife})}),Object.assign(f,y);const m=b.map(Cs.getCardinality);if(f.cardinalities=m,f.joinCoefficients=await this.getJoinCoefficients(c,b),this.isLeaf)for(let g=0;g=this.blockSize&&r(this.consumeChunkAsIterator()),n()}_flush(s){this.chunk.length>0&&this._push(this.consumeChunkAsIterator()),super._flush(s)}};return Nd.ChunkedIterator=e,Nd}var i6;function Ln(){return i6||(i6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(XX(),t),u(KX(),t)}(E2)),E2}var a6;function YX(){if(a6)return Id;a6=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.ActorRdfJoinSingle=void 0;const t=Ln();let e=class extends t.ActorRdfJoin{constructor(s){super(s,{logicalType:"inner",physicalName:"single",limitEntries:1}),this.includeInLogs=!1}async test(s){if(s.entries.length!==1)throw new Error(`Actor ${this.name} can only join a single entry`);return await this.getJoinCoefficients()}async getOutput(s){return{result:s.entries[0].output}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return Id.ActorRdfJoinSingle=e,Id}var s6;function ZX(){return s6||(s6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(YX(),t)}(A2)),A2}var O2={},Cd={},o6;function eK(){if(o6)return Cd;o6=1,Object.defineProperty(Cd,"__esModule",{value:!0}),Cd.ActorRdfJoinMultiEmpty=void 0;const t=Ln(),e=jn(),u=Nt();let s=class extends t.ActorRdfJoin{constructor(r){super(r,{logicalType:"inner",physicalName:"multi-empty",canHandleUndefs:!0})}async test(r){if((await t.ActorRdfJoin.getMetadatas(r.entries)).every(a=>t.ActorRdfJoin.getCardinality(a).value>0))throw new Error(`Actor ${this.name} can only join entries where at least one is empty`);return super.test(r)}async getOutput(r){for(const a of r.entries)a.output.bindingsStream.close();return{result:{bindingsStream:new u.ArrayIterator([],{autoStart:!1}),metadata:async()=>({state:new e.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:t.ActorRdfJoin.joinVariables(await t.ActorRdfJoin.getMetadatas(r.entries))}),type:"bindings"}}}async getJoinCoefficients(r,a){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return Cd.ActorRdfJoinMultiEmpty=s,Cd}var u6;function tK(){return u6||(u6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(eK(),t)}(O2)),O2}var R2={},jd={},c6;function rK(){if(c6)return jd;c6=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.ActorRdfJoinMultiBindSource=void 0;const t=wt(),e=Ln(),u=Nt(),s=Ot(),n=new s.Factory;let r=class extends e.ActorRdfJoin{constructor(o){super(o,{logicalType:"inner",physicalName:"bind-source",canHandleUndefs:!0})}async getOutput(o){const l=await e.ActorRdfJoin.getEntriesWithMetadatas(o.entries),c=await this.sortJoinEntries(l,o.context);this.logDebug(o.context,"First entry for Bind Join Source: ",()=>({entry:c[0].operation,metadata:c[0].metadata}));for(const[g,v]of c.entries())g!==0&&v.output.bindingsStream.close();const d=c[0].output,h=c[0].metadata,f=[...c];f.splice(0,1);const p=t.ActorQueryOperation.getOperationSource(f[0].operation),y=this.createOperationFromEntries(f),b=new e.ChunkedIterator(d.bindingsStream,this.blockSize,{autoStart:!1});return{result:{type:"bindings",bindingsStream:new u.UnionIterator(b.map(g=>p.source.queryBindings(y,p.context?o.context.merge(p.context):o.context,{joinBindings:{bindings:g,metadata:h}}))),metadata:()=>this.constructResultMetadata(c,c.map(g=>g.metadata),o.context)},physicalPlanMetadata:{bindIndex:l.indexOf(c[0])}}}async sortJoinEntries(o,l){return o=await e.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,o,l),o=o.sort((c,d)=>c.operationModified&&!d.operationModified?-1:0),o}async getJoinCoefficients(o,l){const c=await this.sortJoinEntries(o.entries.map((_,w)=>({..._,metadata:l[w]})),o.context);l=c.map(_=>_.metadata);const d=e.ActorRdfJoin.getRequestInitialTimes(l),h=e.ActorRdfJoin.getRequestItemTimes(l),f=[...c];[...d],[...h],f.splice(0,1);const p=f.map(_=>t.ActorQueryOperation.getOperationSource(_.operation));if(p.some(_=>!_))throw new Error(`Actor ${this.name} can not bind on remaining operations without source annotation`);if(p.some(_=>_!==p[0]))throw new Error(`Actor ${this.name} can not bind on remaining operations with non-equal source annotation`);const y=p[0],b=this.createOperationFromEntries(f),m=await y.source.getSelectorShape(o.context);if(!t.ActorQueryOperation.doesShapeAcceptOperation(m,b,{joinBindings:!0}))throw new Error(`Actor ${this.name} detected a source that can not handle passing down join bindings`);const g=await Promise.all(f.map(async _=>(await this.mediatorJoinSelectivity.mediate({entries:[c[0],_],context:o.context})).selectivity*this.selectivityModifier)),v=f.map((_,w)=>_.metadata.cardinality.value*g[w]).reduce((_,w)=>_+w,0);return{iterations:1,persistedItems:l[0].cardinality.value,blockingItems:l[0].cardinality.value,requestTime:d[0]+l[0].cardinality.value*h[0]+d[1]+v*h[1]}}createOperationFromEntries(o){return o.length===1?o[0].operation:n.createJoin(o.map(l=>l.operation),!0)}};return jd.ActorRdfJoinMultiBindSource=r,jd}var l6;function nK(){return l6||(l6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(rK(),t)}(R2)),R2}var x2={},Ld={},I2,d6;function iK(){if(d6)return I2;d6=1;let t=Nt(),e=t.MultiTransformIterator,u=t.SimpleTransformIterator;class s extends e{constructor(r,a,o,l){super(r,l),this.funRight=a,this.funJoin=o}_createTransformer(r){return new u(this.funRight(r),{transform:(a,o,l)=>{let c=this.funJoin(r,a);c!==null&&l(c),o()}})}}return I2=s,I2}var P2,f6;function aK(){if(f6)return P2;f6=1;let t=Nt().AsyncIterator;class e extends t{constructor(s,n,r,a){super(),this.addedDataListener=!1,this.left=s,this.right=n,this.funHash=r,this.funJoin=a,this.leftMap=new Map,this.match=null,this.matches=[],this.matchIdx=0,this.left.on("error",l=>this.destroy(l)),this.right.on("error",l=>this.destroy(l)),this.readable=!1,this.left.on("end",o.bind(this));function o(){this.readable=!0,this.right.on("readable",()=>this.readable=!0),this.right.on("end",()=>{this.hasResults()||this._end()})}this.on("newListener",l=>{l==="data"&&this._addDataListenerIfNeeded()}),this.left.readable&&this._addDataListenerIfNeeded(),this.left.on("readable",()=>this._addDataListenerIfNeeded())}hasResults(){return!this.right.ended||this.matchIdxthis.right.close())}_end(){super._end(),u(()=>this.right.destroy())}_createTransformer(r){return new e(this.right.clone(),{transform:(a,o,l)=>{let c=this.funJoin(r,a);c!==null&&l(c),o()}})}}return D2=s,D2}var N2,p6;function oK(){if(p6)return N2;p6=1;let t=Nt().AsyncIterator;class e extends t{constructor(s,n,r,a){super(),this.left=s,this.right=n,this.funHash=r,this.funJoin=a,this.usedLeft=!1,this.leftMap=new Map,this.rightMap=new Map,this.on("end",()=>this._cleanup()),this.match=null,this.matches=[],this.matchIdx=0,(this.left.readable||this.right.readable)&&(this.readable=!0),this.left.on("error",o=>this.destroy(o)),this.right.on("error",o=>this.destroy(o)),this.left.on("readable",()=>this.readable=!0),this.right.on("readable",()=>this.readable=!0),this.left.on("end",()=>{this.hasResults()||this._end()}),this.right.on("end",()=>{this.hasResults()||this._end()})}hasResults(){return!this.left.ended||!this.right.ended||!!this.matches&&this.matchIdxthis.emit("readable")),n.on("end",()=>this._removeStream(n));this.streams.length===0&&this.close(),this.idx=this.streams.length-1}_removeStream(s){let n=this.streams.indexOf(s);n<0||(this.streams.splice(n,1),this.idx>=this.streams.length&&--this.idx,this.streams.length===0&&this._end())}close(){super.close();for(let s of this.streams)s.close()}read(){for(let s=0;st.ActorRdfJoin.hash(l,a),t.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(n.entries,r,n.context)}}}async getJoinCoefficients(n,r){const a=t.ActorRdfJoin.getRequestInitialTimes(r),o=t.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value+r[1].cardinality.value,persistedItems:r[0].cardinality.value,blockingItems:r[0].cardinality.value,requestTime:a[0]+r[0].cardinality.value*o[0]+a[1]+r[1].cardinality.value*o[1]}}};return Ld.ActorRdfJoinHash=u,Ld}var m6;function lK(){return m6||(m6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(cK(),t)}(x2)),x2}var L2={},Md={},_6;function dK(){if(_6)return Md;_6=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.ActorRdfJoinSymmetricHash=void 0;const t=Ln(),e=zb();let u=class i7 extends t.ActorRdfJoin{constructor(n){super(n,{logicalType:"inner",physicalName:"symmetric-hash",limitEntries:2})}async getOutput(n){const r=await t.ActorRdfJoin.getMetadatas(n.entries),a=t.ActorRdfJoin.overlappingVariables(r);return{result:{type:"bindings",bindingsStream:new e.SymmetricHashJoin(n.entries[0].output.bindingsStream,n.entries[1].output.bindingsStream,l=>i7.hash(l,a),t.ActorRdfJoin.joinBindings),metadata:async()=>await this.constructResultMetadata(n.entries,r,n.context)}}}async getJoinCoefficients(n,r){const a=t.ActorRdfJoin.getRequestInitialTimes(r),o=t.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value+r[1].cardinality.value,persistedItems:r[0].cardinality.value+r[1].cardinality.value,blockingItems:0,requestTime:a[0]+r[0].cardinality.value*o[0]+a[1]+r[1].cardinality.value*o[1]}}};return Md.ActorRdfJoinSymmetricHash=u,Md}var v6;function fK(){return v6||(v6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(dK(),t)}(L2)),L2}var M2={},Fd={},w6;function hK(){if(w6)return Fd;w6=1,Object.defineProperty(Fd,"__esModule",{value:!0}),Fd.ActorRdfJoinNestedLoop=void 0;const t=Ln(),e=zb();let u=class extends t.ActorRdfJoin{constructor(n){super(n,{logicalType:"inner",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(n){return{result:{type:"bindings",bindingsStream:new e.NestedLoopJoin(n.entries[0].output.bindingsStream,n.entries[1].output.bindingsStream,t.ActorRdfJoin.joinBindings,{autoStart:!1}),metadata:async()=>await this.constructResultMetadata(n.entries,await t.ActorRdfJoin.getMetadatas(n.entries),n.context)}}}async getJoinCoefficients(n,r){const a=t.ActorRdfJoin.getRequestInitialTimes(r),o=t.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value*r[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:a[0]+r[0].cardinality.value*o[0]+a[1]+r[1].cardinality.value*o[1]}}};return Fd.ActorRdfJoinNestedLoop=u,Fd}var S6;function pK(){return S6||(S6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(hK(),t)}(M2)),M2}var F2={},qd={},T6;function yK(){if(T6)return qd;T6=1,Object.defineProperty(qd,"__esModule",{value:!0}),qd.ActorRdfJoinMinusHash=void 0;const t=wt(),e=Ln();let u=class extends e.ActorRdfJoin{constructor(n){super(n,{logicalType:"minus",physicalName:"hash",limitEntries:2})}async getOutput(n){const r=n.entries[1].output,a=n.entries[0].output,o=await e.ActorRdfJoin.getMetadatas(n.entries),l=e.ActorRdfJoin.overlappingVariables(o);if(l.length>0){const c={},d=new t.ClosableTransformIterator(async()=>(await new Promise(h=>{r.bindingsStream.on("data",f=>{c[e.ActorRdfJoin.hashNonClashing(f,l)]=!0}),r.bindingsStream.on("end",h),r.bindingsStream.on("error",f=>{d.emit("error",f)})}),a.bindingsStream.filter(h=>!c[e.ActorRdfJoin.hashNonClashing(h,l)])),{autoStart:!1,onClose(){r.bindingsStream.destroy(),a.bindingsStream.destroy()}});return{result:{type:"bindings",bindingsStream:d,metadata:a.metadata}}}return r.bindingsStream.destroy(),{result:a}}async getJoinCoefficients(n,r){const a=e.ActorRdfJoin.getRequestInitialTimes(r),o=e.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value+r[1].cardinality.value,persistedItems:r[0].cardinality.value,blockingItems:r[0].cardinality.value,requestTime:a[0]+r[0].cardinality.value*o[0]+a[1]+r[1].cardinality.value*o[1]}}};return qd.ActorRdfJoinMinusHash=u,qd}var A6;function bK(){return A6||(A6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(yK(),t)}(F2)),F2}var q2={},Bd={},Ud={},E6;function gK(){if(E6)return Ud;E6=1,Object.defineProperty(Ud,"__esModule",{value:!0}),Ud.BindingsIndex=void 0;const t=er();let e=class u3{constructor(s){this.data={},this.keys=s}static hashTerm(s){return s&&s.termType!=="Variable"?(0,t.termToString)(s):""}add(s){if(this.isBindingsValid(s)){let n=this.data;for(const r of this.keys){const a=u3.hashTerm(s.get(r));let o=n[a];o||(o=n[a]={}),n=o}}}contains(s){return this.isBindingsValid(s)?this.containsRecursive(s,this.keys,[this.data]):!1}isBindingsValid(s){let n=!1;for(const r of this.keys)if(s.get(r)){n=!0;break}return n}containsRecursive(s,n,r){if(n.length===0)return!0;let a;[a,...n]=n;for(const o of r){const l=u3.hashTerm(s.get(a));if(l){const c=[o[l],o[""]].filter(Boolean);if(c.length===0)continue;if(this.containsRecursive(s,n,c))return!0}else{let c=Object.keys(o).map(d=>o[d]);if(c.length===0&&(c=[{}]),this.containsRecursive(s,n,c))return!0}}return!1}};return Ud.BindingsIndex=e,Ud}var O6;function mK(){if(O6)return Bd;O6=1,Object.defineProperty(Bd,"__esModule",{value:!0}),Bd.ActorRdfJoinMinusHashUndef=void 0;const t=wt(),e=Ln(),u=gK();let s=class extends e.ActorRdfJoin{constructor(r){super(r,{logicalType:"minus",physicalName:"hash-undef",limitEntries:2,canHandleUndefs:!0})}async getOutput(r){const a=r.entries[1].output,o=r.entries[0].output,l=await e.ActorRdfJoin.getMetadatas(r.entries),c=e.ActorRdfJoin.overlappingVariables(l);if(c.length>0){const d=new u.BindingsIndex(c),h=new t.ClosableTransformIterator(async()=>(await new Promise(f=>{a.bindingsStream.on("data",p=>d.add(p)),a.bindingsStream.on("end",f),a.bindingsStream.on("error",p=>{h.emit("error",p)})}),o.bindingsStream.filter(f=>!d.contains(f))),{autoStart:!1,onClose(){a.bindingsStream.destroy(),o.bindingsStream.destroy()}});return{result:{type:"bindings",bindingsStream:h,async metadata(){const f=await o.metadata(),p=await o.metadata();return{...p,canContainUndefs:f.canContainUndefs||p.canContainUndefs}}}}}return a.bindingsStream.destroy(),{result:o}}async getJoinCoefficients(r,a){const o=e.ActorRdfJoin.getRequestInitialTimes(a),l=e.ActorRdfJoin.getRequestItemTimes(a);return{iterations:(a[0].cardinality.value+a[1].cardinality.value)*1.01,persistedItems:a[0].cardinality.value,blockingItems:a[0].cardinality.value,requestTime:o[0]+a[0].cardinality.value*l[0]+o[1]+a[1].cardinality.value*l[1]}}};return Bd.ActorRdfJoinMinusHashUndef=s,Bd}var R6;function _K(){return R6||(R6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(mK(),t)}(q2)),q2}var B2={},Hd={},$d={},x6;function vK(){if(x6)return $d;x6=1,Object.defineProperty($d,"__esModule",{value:!0}),$d.BindingsIndexDef=void 0;let t=class{constructor(u,s){this.keys=u,this.hashFn=s,this.index={}}put(u,s){return this.index[this.hashFn(u,this.keys)]=s}get(u){const s=this.getFirst(u);return s?[s]:[]}getFirst(u){return this.index[this.hashFn(u,this.keys)]}values(){return Object.values(this.index)}};return $d.BindingsIndexDef=t,$d}var Qd={},I6;function wK(){if(I6)return Qd;I6=1,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.BindingsIndexUndef=void 0;let t=class{constructor(u,s){this.data={},this.keys=u,this.hashFn=s}put(u,s){if(this.isBindingsValid(u)){let n=this.data;for(let r=0;rd&&d.termType!=="Variable"?(0,s.termToString)(d):""):new n.BindingsIndexDef(c,e.ActorRdfJoin.hashNonClashing)}async getOutput(l){const c=l.entries[1].output,d=l.entries[0].output,h=await e.ActorRdfJoin.getMetadatas(l.entries),f=e.ActorRdfJoin.overlappingVariables(h);let p;return this.blocking?p=new t.ClosableTransformIterator(async()=>{const y=c3.constructIndex(this.canHandleUndefs,f);return await new Promise(b=>{c.bindingsStream.on("data",m=>{(y.getFirst(m)??y.put(m,[])).push(m)}),c.bindingsStream.on("end",b),c.bindingsStream.on("error",m=>{p.emit("error",m)})}),new u.MultiTransformIterator(d.bindingsStream,{multiTransform:b=>new u.ArrayIterator(y.get(b).flat().map(m=>e.ActorRdfJoin.joinBindings(b,m)).filter(m=>m!==null),{autoStart:!1}),optional:!0,autoStart:!1})},{autoStart:!1,onClose(){c.bindingsStream.destroy(),d.bindingsStream.destroy()}}):p=new t.ClosableTransformIterator(async()=>{const y=c3.constructIndex(this.canHandleUndefs,f);let b=!0;return c.bindingsStream.on("data",m=>{(y.getFirst(m)??y.put(m,new u.BufferedIterator({autoStart:!1})))._push(m)}),c.bindingsStream.on("end",()=>{for(const m of y.values())m.close();b=!1}),c.bindingsStream.on("error",m=>{p.emit("error",m)}),new u.MultiTransformIterator(d.bindingsStream,{multiTransform:m=>{let g=y.get(m);return g.length===0&&(b?g=[y.put(m,new u.BufferedIterator({autoStart:!1}))]:g=[]),new u.UnionIterator(g.map(_=>_.clone()),{autoStart:!1}).map(_=>e.ActorRdfJoin.joinBindings(m,_))},optional:!0,autoStart:!1})},{autoStart:!1,onClose(){c.bindingsStream.destroy(),d.bindingsStream.destroy()}}),{result:{type:"bindings",bindingsStream:p,metadata:async()=>await this.constructResultMetadata(l.entries,await e.ActorRdfJoin.getMetadatas(l.entries),l.context,{canContainUndefs:!0})}}}async getJoinCoefficients(l,c){if(e.ActorRdfJoin.overlappingVariables(c).length===0)throw new Error(`Actor ${this.name} only join entries with at least one common variable`);const d=e.ActorRdfJoin.getRequestInitialTimes(c),h=e.ActorRdfJoin.getRequestItemTimes(c);let f=c[0].cardinality.value+c[1].cardinality.value;return this.canHandleUndefs||(f*=.8),this.blocking&&(f*=.9),{iterations:f,persistedItems:c[0].cardinality.value,blockingItems:this.blocking?c[0].cardinality.value:0,requestTime:d[0]+c[0].cardinality.value*h[0]+d[1]+c[1].cardinality.value*h[1]}}};return Hd.ActorRdfJoinOptionalHash=a,Hd}var D6;function A1(){return D6||(D6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(SK(),t)}(B2)),B2}var U2={},Vd={},N6;function TK(){if(N6)return Vd;N6=1,Object.defineProperty(Vd,"__esModule",{value:!0}),Vd.ActorRdfJoinOptionalNestedLoop=void 0;const t=Ln(),e=zb();let u=class extends t.ActorRdfJoin{constructor(n){super(n,{logicalType:"optional",physicalName:"nested-loop",limitEntries:2,canHandleUndefs:!0})}async getOutput(n){return{result:{type:"bindings",bindingsStream:new e.NestedLoopJoin(n.entries[0].output.bindingsStream,n.entries[1].output.bindingsStream,t.ActorRdfJoin.joinBindings,{optional:!0,autoStart:!1}),metadata:async()=>await this.constructResultMetadata(n.entries,await t.ActorRdfJoin.getMetadatas(n.entries),n.context,{canContainUndefs:!0})}}}async getJoinCoefficients(n,r){const a=t.ActorRdfJoin.getRequestInitialTimes(r),o=t.ActorRdfJoin.getRequestItemTimes(r);return{iterations:r[0].cardinality.value*r[1].cardinality.value,persistedItems:0,blockingItems:0,requestTime:a[0]+r[0].cardinality.value*o[0]+a[1]+r[1].cardinality.value*o[1]}}};return Vd.ActorRdfJoinOptionalNestedLoop=u,Vd}var C6;function AK(){return C6||(C6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(TK(),t)}(U2)),U2}var H2={},kd={},$2={},zd={},j6;function EK(){if(j6)return zd;j6=1,Object.defineProperty(zd,"__esModule",{value:!0}),zd.ActorDereferenceRdf=void 0;const t=UT();let e=class extends t.ActorDereferenceParse{constructor(s){super(s)}};return zd.ActorDereferenceRdf=e,zd}var L6;function OK(){return L6||(L6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(EK(),t)}($2)),$2}var M6;function RK(){if(M6)return kd;M6=1,Object.defineProperty(kd,"__esModule",{value:!0}),kd.ActorDereferenceRdfParse=void 0;const t=OK();let e=class extends t.ActorDereferenceRdf{constructor(s){super(s)}async getMetadata(s){return{baseIRI:s.url}}};return kd.ActorDereferenceRdfParse=e,kd}var F6;function xK(){return F6||(F6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(RK(),t)}(H2)),H2}var Q2={},Gd={},Wd={},q6;function IK(){if(q6)return Wd;q6=1,Object.defineProperty(Wd,"__esModule",{value:!0}),Wd.HtmlScriptListener=void 0;const t=Lt,e=Wt(),u=Pi();let s=class E0{constructor(r,a,o,l,c,d,h,f){this.textChunksJsonLd=[],this.endBarrier=1,this.passedScripts=0,this.isFinalJsonLdProcessing=!1,this.mediatorRdfParseHandle=r,this.cbQuad=a,this.cbError=o,this.cbEnd=l,this.supportedTypes=c,this.context=d.set(t.KeysRdfParseHtmlScript.processingHtmlScript,!0),this.baseIRI=h,this.headers=f,this.onlyFirstScript=d.get(t.KeysRdfParseHtmlScript.extractAllScripts)===!1;const p=this.baseIRI.indexOf("#");this.targetScriptId=p>0?this.baseIRI.slice(p+1,this.baseIRI.length):null}static newErrorCoded(r,a){const o=new Error(r);return o.code=a,o}onEnd(){--this.endBarrier===0&&(this.textChunksJsonLd.length>0?(this.handleMediaType="application/ld+json",this.textChunks=this.textChunksJsonLd,this.textChunks.push("]"),this.textChunksJsonLd=[],this.isFinalJsonLdProcessing=!0,this.endBarrier++,this.onTagClose()):(this.passedScripts===0&&this.targetScriptId&&this.cbError(E0.newErrorCoded(`Failed to find targeted script id "${this.targetScriptId}"`,"loading document failed")),this.cbEnd()),this.isFinalJsonLdProcessing=!1)}onTagClose(){if(this.handleMediaType)if(this.requiresCustomJsonLdHandling(this.handleMediaType)&&!this.isFinalJsonLdProcessing)this.handleMediaType=void 0,this.textChunks=void 0,this.onEnd();else{const r=new e.Readable({objectMode:!0});r._read=()=>{};const a=this.textChunks,o={context:this.context,handle:{metadata:{baseIRI:this.baseIRI},data:r,headers:this.headers,context:this.context},handleMediaType:this.handleMediaType};this.mediatorRdfParseHandle.mediate(o).then(({handle:l})=>{l.data.on("error",c=>this.cbError(E0.newErrorCoded(c.message,"invalid script element"))).on("data",this.cbQuad).on("end",()=>this.onEnd());for(const c of a)r.push(c);r.push(null)}).catch(l=>{this.targetScriptId?this.cbError(E0.newErrorCoded(l.message,"loading document failed")):this.onEnd()}),this.handleMediaType=void 0,this.textChunks=void 0}}onTagOpen(r,a){r==="base"&&a.href&&(this.baseIRI=(0,u.resolve)(a.href,this.baseIRI)),r==="script"&&(!this.targetScriptId||a.id===this.targetScriptId)?this.supportedTypes[a.type]?this.onlyFirstScript&&this.passedScripts>0?this.handleMediaType=void 0:(this.passedScripts++,this.handleMediaType=a.type,this.endBarrier++,this.requiresCustomJsonLdHandling(this.handleMediaType)?(this.textChunks=this.textChunksJsonLd,this.textChunks.push(this.textChunks.length===0?"[":",")):this.textChunks=[]):this.targetScriptId&&this.cbError(E0.newErrorCoded(`Targeted script "${this.targetScriptId}" does not have a supported type`,"loading document failed")):this.handleMediaType=void 0}onText(r){this.handleMediaType&&this.textChunks.push(r)}requiresCustomJsonLdHandling(r){return!this.onlyFirstScript&&!this.targetScriptId&&r==="application/ld+json"}};return Wd.HtmlScriptListener=s,Wd}var B6;function PK(){if(B6)return Gd;B6=1,Object.defineProperty(Gd,"__esModule",{value:!0}),Gd.ActorRdfParseHtmlScript=void 0;const t=JT(),e=IK();let u=class extends t.ActorRdfParseHtml{constructor(n){super(n)}async test(n){return!0}async run(n){const r=(await this.mediatorRdfParseMediatypes.mediate({context:n.context,mediaTypes:!0})).mediaTypes;return{htmlParseListener:new e.HtmlScriptListener(this.mediatorRdfParseHandle,n.emit,n.error,n.end,r,n.context,n.baseIRI,n.headers)}}};return Gd.ActorRdfParseHtmlScript=u,Gd}var U6;function DK(){return U6||(U6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(PK(),t)}(Q2)),Q2}var V2={},Jd={},H6;function NK(){if(H6)return Jd;H6=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.ActorQueryResultSerializeRdf=void 0;const t=Gi();let e=class extends t.ActorQueryResultSerialize{constructor(s){super(s)}async testHandle(s,n,r){if(s.type!=="quads")throw new Error(`Actor ${this.name} can only handle quad streams`);const{mediaTypes:a}=await this.mediatorMediaTypeCombiner.mediate({context:r,mediaTypes:!0});if(!(n in a))throw new Error(`Actor ${this.name} can not handle media type ${n}. All available types: ${Object.keys(a)}`);return!0}async runHandle(s,n,r){return(await this.mediatorRdfSerialize.mediate({context:r,handle:{context:r,quadStream:s.quadStream},handleMediaType:n})).handle}async testMediaType(s){return!0}async getMediaTypes(s){return(await this.mediatorMediaTypeCombiner.mediate({context:s,mediaTypes:!0})).mediaTypes}async testMediaTypeFormats(s){return!0}async getMediaTypeFormats(s){return(await this.mediatorMediaTypeFormatCombiner.mediate({context:s,mediaTypeFormats:!0})).mediaTypeFormats}};return Jd.ActorQueryResultSerializeRdf=e,Jd}var $6;function CK(){return $6||($6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(NK(),t)}(V2)),V2}var k2={},Xd={},Q6;function jK(){if(Q6)return Xd;Q6=1,Object.defineProperty(Xd,"__esModule",{value:!0}),Xd.ActorHttpWayback=void 0;const t=rs(),e=Lt,u=eo();r7();const s="http://wayback.archive-it.org/";function n(o){const l=new Request(o.input,o.init);return{input:new Request(new URL(`/${l.url}`,s),l)}}function r(o){const l=o.get(e.KeysHttpProxy.httpProxyHandler);return l?c=>l.getProxy(n(c)):c=>Promise.resolve(n(c))}let a=class extends t.ActorHttp{constructor(l){super(l)}async test(l){return!0}async run(l){let c=await this.mediatorHttp.mediate(l);if(c.status===404&&l.context.get(e.KeysHttpWayback.recoverBrokenLinks)){let d=await this.mediatorHttp.mediate({...l,context:l.context.set(e.KeysHttpWayback.recoverBrokenLinks,!1).set(e.KeysHttpProxy.httpProxyHandler,{getProxy:r(l.context)})});d.status===200&&([c,d]=[d,c]);const{body:h}=d;h&&("cancel"in h&&typeof h.cancel=="function"?await h.cancel():"destroy"in h&&typeof h.destroy=="function"?h.destroy():await u(t.ActorHttp.toNodeReadable(h)))}return c}};return Xd.ActorHttpWayback=a,Xd}var V6;function LK(){return V6||(V6=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(jK(),t)}(k2)),k2}var z2={},Kd={},G2={},Yd={},Zd={},ef={},tf={},rf={},k6;function MK(){if(k6)return rf;k6=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.ContainerHandlerIdentifier=void 0;let t=class{canCombineWithGraph(){return!0}async handle(u,s,n,r,a,o){let l;if(s.emittedStack[o+1]&&s.idStack[o+1])l=s.idStack[o+1][0];else{const h=await n.getContainerKey(r[o],r,o)!==null?await n.resourceToTerm(await s.getContext(r),r[o]):n.dataFactory.blankNode();if(!h){s.emittedStack[o]=!1;return}l=h,s.idStack[o+1]=[l]}let c=s.idStack[o];c||(c=s.idStack[o]=[]),c.some(d=>d.equals(l))||c.push(l),await s.handlePendingContainerFlushBuffers()||(s.emittedStack[o]=!1)}};return rf.ContainerHandlerIdentifier=t,rf}var nf={},af={},z6;function Gb(){if(z6)return af;z6=1,Object.defineProperty(af,"__esModule",{value:!0}),af.EntryHandlerPredicate=void 0;const t=Jr(),e=to();let u=class a7{static async handlePredicateObject(n,r,a,o,l,c,d,h,f){const p=await r.getPropertiesDepth(a,o),y=await r.getDepthOffsetGraph(o,a),b=o-y,m=n.idStack[p];if(m&&!f)for(const g of m)if(y>=0){const _=n.idStack[b-1];if(_)for(const w of _)r.emitQuadChecked(o,g,l,c,w,d,h);else d?(r.validateReverseSubject(c),n.getUnidentifiedGraphBufferSafe(b-1).push({subject:c,predicate:l,object:g,isEmbedded:h})):n.getUnidentifiedGraphBufferSafe(b-1).push({subject:g,predicate:l,object:c,isEmbedded:h})}else{const _=await r.getGraphContainerValue(a,p);r.emitQuadChecked(o,g,l,c,_,d,h)}else if(d&&r.validateReverseSubject(c),f){if(n.rdfstar){n.idStack[o]&&n.emitError(new t.ErrorCoded(`Found an illegal @id inside an annotation: ${n.idStack[o][0].value}`,t.ERROR_CODES.INVALID_ANNOTATION));for(let _=0;_=0;_--){const w=g[_];w.depth>p&&(v.nestedAnnotations.push(w),g.splice(_,1))}}}else n.getUnidentifiedValueBufferSafe(p).push({predicate:l,object:c,reverse:d,isEmbedded:h})}isPropertyHandler(){return!0}isStackProcessor(){return!0}async validate(n,r,a,o,l){const c=a[o];if(c){const d=await n.getContext(a);if(!n.jsonLiteralStack[o]&&await r.predicateToTerm(d,a[o]))return e.Util.getContextValueType(d,c)==="@json"&&(n.jsonLiteralStack[o+1]=!0),!0}return!1}async test(n,r,a,o,l){return o[l]}async handle(n,r,a,o,l,c,d){const h=o[c],f=await n.getContext(o),p=await r.predicateToTerm(f,a);if(p){const y=await r.valueToTerm(f,a,l,c,o);if(y.length)for(let b of y){let m=await r.unaliasKeywordParent(o,c);const g=e.Util.isPropertyReverse(f,h,m);let v=0;for(;m==="@reverse"||typeof m=="number";)typeof m=="number"?v++:c--,m=await r.unaliasKeywordParent(o,c-v);const _=e.Util.isPropertyInEmbeddedNode(m);r.validateReverseInEmbeddedNode(a,g,_);const w=e.Util.isPropertyInAnnotationObject(m);if(l){const S="@list"in e.Util.getContextValueContainer(f,a);if(S||l["@list"]){if((S&&!Array.isArray(l)&&!l["@list"]||l["@list"]&&!Array.isArray(l["@list"]))&&b!==r.rdfNil){const A=r.dataFactory.blankNode();n.emitQuad(c,r.dataFactory.quad(A,r.rdfRest,r.rdfNil,r.getDefaultGraph())),n.emitQuad(c,r.dataFactory.quad(A,r.rdfFirst,b,r.getDefaultGraph())),b=A}if(g&&!n.allowSubjectList)throw new t.ErrorCoded(`Found illegal list value in subject position at ${a}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}}await a7.handlePredicateObject(n,r,o,c,p,b,g,_,w)}}}};return af.EntryHandlerPredicate=u,af}var G6;function FK(){if(G6)return nf;G6=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.ContainerHandlerIndex=void 0;const t=Jr(),e=Gb(),u=to();let s=class{canCombineWithGraph(){return!0}async handle(r,a,o,l,c,d){if(!Array.isArray(c)){const h="@graph"in r,f=await a.getContext(l),p=l[d-1],y=u.Util.getContextValueIndex(f,p);if(y){if(t.Util.isPotentialKeyword(y))throw new t.ErrorCoded(`Keywords can not be used as @index value, got: ${y}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof y!="string")throw new t.ErrorCoded(`@index values must be strings, got: ${y}`,t.ERROR_CODES.INVALID_TERM_DEFINITION);if(typeof c!="object"){if(u.Util.getContextValueType(f,p)!=="@id")throw new t.ErrorCoded(`Property-based index containers require nodes as values or strings with @type: @id, but got: ${c}`,t.ERROR_CODES.INVALID_VALUE_OBJECT);const g=o.resourceToTerm(f,c);g&&(a.idStack[d+1]=[g])}const m=o.createVocabOrBaseTerm(f,y);if(m){const g=await o.valueToTerm(f,y,await o.getContainerKey(l[d],l,d),d,l);if(h){const v=await o.getGraphContainerValue(l,d+1);for(const _ of g)a.emitQuad(d,o.dataFactory.quad(v,m,_,o.getDefaultGraph()))}else for(const v of g)await e.EntryHandlerPredicate.handlePredicateObject(a,o,l,d+1,m,v,!1,!1,!1)}}const b=h?2:1;await a.newOnValueJob(l.slice(0,l.length-b),c,d-b,!0),await a.handlePendingContainerFlushBuffers()}a.emittedStack[d]=!1}};return nf.ContainerHandlerIndex=s,nf}var sf={},W6;function qK(){if(W6)return sf;W6=1,Object.defineProperty(sf,"__esModule",{value:!0}),sf.ContainerHandlerLanguage=void 0;const t=Jr();let e=class{canCombineWithGraph(){return!1}async handle(s,n,r,a,o,l){const c=await r.getContainerKey(a[l],a,l);if(Array.isArray(o))o=o.map(d=>({"@value":d,"@language":c}));else{if(typeof o!="string")throw new t.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(o)}', but expected string`,t.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);o={"@value":o,"@language":c}}await n.newOnValueJob(a.slice(0,a.length-1),o,l-1,!0),n.emittedStack[l]=!1}};return sf.ContainerHandlerLanguage=e,sf}var of={},J6;function BK(){if(J6)return of;J6=1,Object.defineProperty(of,"__esModule",{value:!0}),of.ContainerHandlerType=void 0;const t=Gb(),e=to();let u=class{canCombineWithGraph(){return!1}async handle(n,r,a,o,l,c){if(!Array.isArray(l)){if(typeof l=="string"){const f=await r.getContext(o),y=e.Util.getContextValueType(f,o[c-1])==="@vocab"?await a.createVocabOrBaseTerm(f,l):await a.resourceToTerm(f,l);if(y){const b={"@id":y.termType==="NamedNode"?y.value:l};await r.newOnValueJob(o.slice(0,o.length-1),b,c-1,!0),r.idStack[c+1]=[y]}}else{const f=!!r.idStack[c+1];f||delete r.idStack[c],await r.newOnValueJob(o.slice(0,o.length-1),l,c-1,!0),f||(r.idStack[c+1]=r.idStack[c])}const d=await a.getContainerKey(o[c],o,c),h=d!==null?a.createVocabOrBaseTerm(await r.getContext(o),d):null;h&&await t.EntryHandlerPredicate.handlePredicateObject(r,a,o,c+1,a.rdfType,h,!1,!1,!1),await r.handlePendingContainerFlushBuffers()}r.emittedStack[c]=!1}};return of.ContainerHandlerType=u,of}var X6;function s7(){if(X6)return tf;X6=1,Object.defineProperty(tf,"__esModule",{value:!0}),tf.EntryHandlerContainer=void 0;const t=MK(),e=FK(),u=qK(),s=BK(),n=to();let r=class Pa{static isSimpleGraphContainer(o){return"@graph"in o&&("@set"in o&&Object.keys(o).length===2||Object.keys(o).length===1)}static isComplexGraphContainer(o){return"@graph"in o&&("@set"in o&&Object.keys(o).length>2||!("@set"in o)&&Object.keys(o).length>1)}static getContainerGraphIndex(o,l,c){let d=Pa.isSimpleGraphContainer(o),h="";for(let f=l;f=0;p--)if(typeof l[p]!="number"){const y=n.Util.getContextValue(f,"@container",l[p],!1);if(y&&Pa.isSimpleGraphContainer(y))return{containers:y,depth:p+1,fallback:!1};const b=n.Util.getContextValue(f,"@container",l[p-1],!1);if(b){const m="@graph"in b;for(const g in Pa.CONTAINER_HANDLERS)if(b[g])return m?Pa.CONTAINER_HANDLERS[g].canCombineWithGraph()?{containers:b,depth:p,fallback:!1}:d:h?d:{containers:b,depth:p,fallback:!1};return d}else{if(h)return d;h=!0}}return d}static async isBufferableContainerHandler(o,l,c){const d=await Pa.getContainerHandler(o,l,c);return!d.fallback&&!("@graph"in d.containers)}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(o,l,c,d,h){return!!await this.test(o,l,null,c,d)}async test(o,l,c,d,h){const f=n.Util.getContextValueContainer(await o.getContext(d,2),d[h-1]);for(const p in Pa.CONTAINER_HANDLERS)if(f[p])return{containers:f,handler:Pa.CONTAINER_HANDLERS[p]};return null}async handle(o,l,c,d,h,f,p){return p.handler.handle(p.containers,o,l,d,h,f)}};return r.CONTAINER_HANDLERS={"@id":new t.ContainerHandlerIdentifier,"@index":new e.ContainerHandlerIndex,"@language":new u.ContainerHandlerLanguage,"@type":new s.ContainerHandlerType},tf.EntryHandlerContainer=r,tf}var W2,K6;function UK(){return K6||(K6=1,W2=function t(e){return e===null||typeof e!="object"||e.toJSON!=null?JSON.stringify(e):Array.isArray(e)?"["+e.reduce((u,s,n)=>{const r=n===0?"":",",a=s===void 0||typeof s=="symbol"?null:s;return u+r+t(a)},"")+"]":"{"+Object.keys(e).sort().reduce((u,s,n)=>{if(e[s]===void 0||typeof e[s]=="symbol")return u;const r=u.length===0?"":",";return u+r+t(s)+":"+t(e[s])},"")+"}"}),W2}var Y6;function to(){if(Y6)return ef;Y6=1,Object.defineProperty(ef,"__esModule",{value:!0}),ef.Util=void 0;const t=Jr(),e=Et(),u=s7(),s=UK();let n=class Yt{constructor(a){this.parsingContext=a.parsingContext,this.dataFactory=a.dataFactory||new e.DataFactory,this.rdfFirst=this.dataFactory.namedNode(Yt.RDF+"first"),this.rdfRest=this.dataFactory.namedNode(Yt.RDF+"rest"),this.rdfNil=this.dataFactory.namedNode(Yt.RDF+"nil"),this.rdfType=this.dataFactory.namedNode(Yt.RDF+"type"),this.rdfJson=this.dataFactory.namedNode(Yt.RDF+"JSON")}static getContextValue(a,o,l,c){const d=a.getContextRaw()[l];if(!d)return c;const h=d[o];return h===void 0?c:h}static getContextValueContainer(a,o){return Yt.getContextValue(a,"@container",o,{"@set":!0})}static getContextValueType(a,o){const l=Yt.getContextValue(a,"@type",o,null);return l==="@none"?null:l}static getContextValueLanguage(a,o){return Yt.getContextValue(a,"@language",o,a.getContextRaw()["@language"]||null)}static getContextValueDirection(a,o){return Yt.getContextValue(a,"@direction",o,a.getContextRaw()["@direction"]||null)}static isContextValueReverse(a,o){return!!Yt.getContextValue(a,"@reverse",o,null)}static getContextValueIndex(a,o){return Yt.getContextValue(a,"@index",o,a.getContextRaw()["@index"]||null)}static isPropertyReverse(a,o,l){return l==="@reverse"!==Yt.isContextValueReverse(a,o)}static isPropertyInEmbeddedNode(a){return a==="@id"}static isPropertyInAnnotationObject(a){return a==="@annotation"}static isValidIri(a){return a!==null&&t.Util.isValidIri(a)}static isPrefixArray(a,o){if(a.length>o.length)return!1;for(let l=0;l1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @set for key: '${o}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);return[]}else if("@list"in l){if(Object.keys(l).length>1)throw new t.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${o}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT);const f=l["@list"];return Array.isArray(f)?f.length===0?[this.rdfNil]:this.parsingContext.idStack[c+1]||[]:await this.valueToTerm(await this.parsingContext.getContext(d),o,f,c-1,d.slice(0,-1))}else{if("@reverse"in l&&typeof l["@reverse"]=="boolean")return[];if("@graph"in Yt.getContextValueContainer(await this.parsingContext.getContext(d),o)){const f=this.parsingContext.graphContainerTermStack[c+1];return f?Object.values(f):[this.dataFactory.blankNode()]}else if("@id"in l){if(Object.keys(l).length>1&&(a=await this.parsingContext.getContext(d,0)),"@context"in l&&(a=await this.parsingContext.parseContext(l["@context"],a.getContextRaw())),l["@type"]==="@vocab")return this.nullableTermToArray(this.createVocabOrBaseTerm(a,l["@id"]));{const f=l["@id"];let p;if(typeof f=="object")if(this.parsingContext.rdfstar)p=this.parsingContext.idStack[c+1][0];else throw new t.ErrorCoded(`Found illegal @id '${l}'`,t.ERROR_CODES.INVALID_ID_VALUE);else p=this.resourceToTerm(a,f);return this.nullableTermToArray(p)}}else return this.parsingContext.emittedStack[c+1]||l&&typeof l=="object"&&Object.keys(l).length===0?this.parsingContext.idStack[c+1]||(this.parsingContext.idStack[c+1]=[this.dataFactory.blankNode()]):[]}case"string":return this.nullableTermToArray(this.stringValueToTerm(c,await this.getContextSelfOrPropertyScoped(a,o),o,l,null));case"boolean":return this.nullableTermToArray(this.stringValueToTerm(c,await this.getContextSelfOrPropertyScoped(a,o),o,(!!l).toString(),this.dataFactory.namedNode(Yt.XSD_BOOLEAN)));case"number":return this.nullableTermToArray(this.stringValueToTerm(c,await this.getContextSelfOrPropertyScoped(a,o),o,l,this.dataFactory.namedNode(l%1===0&&l<1e21?Yt.XSD_INTEGER:Yt.XSD_DOUBLE)));default:return this.parsingContext.emitError(new Error(`Could not determine the RDF type of a ${h}`)),[]}}async getContextSelfOrPropertyScoped(a,o){const l=a.getContextRaw()[o];return l&&typeof l=="object"&&"@context"in l&&(a=await this.parsingContext.parseContext(l,a.getContextRaw(),!0)),a}nullableTermToArray(a){return a?[a]:[]}predicateToTerm(a,o){const l=a.expandTerm(o,!0,this.parsingContext.getExpandOptions());if(!l)return null;if(l[0]==="_"&&l[1]===":")return this.parsingContext.produceGeneralizedRdf?this.dataFactory.blankNode(l.substr(2)):null;if(Yt.isValidIri(l))return this.dataFactory.namedNode(l);if(l&&this.parsingContext.strictValues)this.parsingContext.emitError(new t.ErrorCoded(`Invalid predicate IRI: ${l}`,t.ERROR_CODES.INVALID_IRI_MAPPING));else return null;return null}resourceToTerm(a,o){if(o.startsWith("_:"))return this.dataFactory.blankNode(o.substr(2));const l=a.expandTerm(o,!1,this.parsingContext.getExpandOptions());if(!Yt.isValidIri(l))if(l&&this.parsingContext.strictValues)this.parsingContext.emitError(new Error(`Invalid resource IRI: ${l}`));else return null;return this.dataFactory.namedNode(l)}createVocabOrBaseTerm(a,o){if(o.startsWith("_:"))return this.dataFactory.blankNode(o.substr(2));const l=this.parsingContext.getExpandOptions();let c=a.expandTerm(o,!0,l);if(c===o&&(c=a.expandTerm(o,!1,l)),!Yt.isValidIri(c))if(c&&this.parsingContext.strictValues&&!c.startsWith("@"))this.parsingContext.emitError(new Error(`Invalid term IRI: ${c}`));else return null;return this.dataFactory.namedNode(c)}intToString(a,o){return typeof a=="number"?Number.isFinite(a)?a%1===0&&(!o||o.value!==Yt.XSD_DOUBLE)?Number(a).toString():a.toExponential(15).replace(/(\d)0*e\+?/,"$1E"):a>0?"INF":"-INF":a}stringValueToTerm(a,o,l,c,d){const h=Yt.getContextValueType(o,l);if(h)if(h==="@id"){if(!d)return this.resourceToTerm(o,this.intToString(c,d))}else if(h==="@vocab"){if(!d)return this.createVocabOrBaseTerm(o,this.intToString(c,d))}else d=this.dataFactory.namedNode(h);if(!d){const f=Yt.getContextValueLanguage(o,l),p=Yt.getContextValueDirection(o,l);return p&&this.parsingContext.rdfDirection?this.createLanguageDirectionLiteral(a,this.intToString(c,d),f,p):this.dataFactory.literal(this.intToString(c,d),f)}return this.dataFactory.literal(this.intToString(c,d),d)}createLanguageDirectionLiteral(a,o,l,c){if(this.parsingContext.rdfDirection==="i18n-datatype")return l||(l=""),this.dataFactory.literal(o,this.dataFactory.namedNode(`https://www.w3.org/ns/i18n#${l}_${c}`));{const d=this.dataFactory.blankNode(),h=this.getDefaultGraph();return this.parsingContext.emitQuad(a,this.dataFactory.quad(d,this.dataFactory.namedNode(Yt.RDF+"value"),this.dataFactory.literal(o),h)),l&&this.parsingContext.emitQuad(a,this.dataFactory.quad(d,this.dataFactory.namedNode(Yt.RDF+"language"),this.dataFactory.literal(l),h)),this.parsingContext.emitQuad(a,this.dataFactory.quad(d,this.dataFactory.namedNode(Yt.RDF+"direction"),this.dataFactory.literal(c),h)),d}}valueToJsonString(a){return s(a)}async unaliasKeyword(a,o,l,c,d){if(Number.isInteger(a))return a;if(!c){const h=this.parsingContext.unaliasedKeywordCacheStack[l];if(h)return h}if(!t.Util.isPotentialKeyword(a)){d=d||await this.parsingContext.getContext(o);let h=d.getContextRaw()[a];h&&typeof h=="object"&&(h=h["@id"]),t.Util.isValidKeyword(h)&&(a=h)}return c?a:this.parsingContext.unaliasedKeywordCacheStack[l]=a}async unaliasKeywordParent(a,o){return await this.unaliasKeyword(o>0&&a[o-1],a,o-1)}async unaliasKeywords(a,o,l,c){const d={};for(const h in a)d[await this.unaliasKeyword(h,o,l+1,!0,c)]=a[h];return d}async isLiteral(a,o){for(let l=o;l>=0;l--){if(await this.unaliasKeyword(a[l],a,l)==="@annotation")return!1;if(this.parsingContext.literalStack[l]||this.parsingContext.jsonLiteralStack[l])return!0}return!1}async getDepthOffsetGraph(a,o){for(let l=a-1;l>0;l--)if(await this.unaliasKeyword(o[l],o,l)==="@graph"){const c=(await u.EntryHandlerContainer.getContainerHandler(this.parsingContext,o,l)).containers;return u.EntryHandlerContainer.isComplexGraphContainer(c)?-1:a-l-1}return-1}validateReverseSubject(a){if(a.termType==="Literal")throw new t.ErrorCoded(`Found illegal literal in subject position: ${a.value}`,t.ERROR_CODES.INVALID_REVERSE_PROPERTY_VALUE)}getDefaultGraph(){return this.parsingContext.defaultGraph||this.dataFactory.defaultGraph()}async getGraphContainerValue(a,o){let l=this.getDefaultGraph();const{containers:c,depth:d}=await u.EntryHandlerContainer.getContainerHandler(this.parsingContext,a,o);if("@graph"in c){const h=u.EntryHandlerContainer.getContainerGraphIndex(c,d,a),f=this.parsingContext.graphContainerTermStack[d];if(l=f?f[h]:null,!l){let p=null;if("@id"in c){const y=await this.getContainerKey(a[d],a,d);y!==null&&(p=await this.resourceToTerm(await this.parsingContext.getContext(a),y))}p||(p=this.dataFactory.blankNode()),this.parsingContext.graphContainerTermStack[d]||(this.parsingContext.graphContainerTermStack[d]={}),l=this.parsingContext.graphContainerTermStack[d][h]=p}}return l}async getPropertiesDepth(a,o){let l=o;for(let c=o-1;c>0;c--)if(typeof a[c]!="number"){const d=await this.unaliasKeyword(a[c],a,c);if(d==="@reverse")return c;if(d==="@nest")l=c;else return l}return l}async getContainerKey(a,o,l){const c=await this.unaliasKeyword(a,o,l);return c==="@none"?null:c}validateReverseInEmbeddedNode(a,o,l){if(l&&o&&!this.parsingContext.rdfstarReverseInEmbedded)throw new t.ErrorCoded(`Illegal reverse property in embedded node in ${a}`,t.ERROR_CODES.INVALID_EMBEDDED_NODE)}emitQuadChecked(a,o,l,c,d,h,f){let p;if(h?(this.validateReverseSubject(c),p=this.dataFactory.quad(c,l,o,d)):p=this.dataFactory.quad(o,l,c,d),f){if(p.graph.termType!=="DefaultGraph"&&(p=this.dataFactory.quad(p.subject,p.predicate,p.object)),this.parsingContext.idStack[a-1])throw new t.ErrorCoded("Illegal multiple properties in an embedded node",t.ERROR_CODES.INVALID_EMBEDDED_NODE);this.parsingContext.idStack[a-1]=[p]}else this.parsingContext.emitQuad(a,p);const y=this.parsingContext.annotationsBuffer[a];if(y){for(const b of y)this.emitAnnotation(a,p,b);delete this.parsingContext.annotationsBuffer[a]}}emitAnnotation(a,o,l){let c;l.reverse?(this.validateReverseSubject(l.object),c=this.dataFactory.quad(l.object,l.predicate,o)):c=this.dataFactory.quad(o,l.predicate,l.object),this.parsingContext.emitQuad(a,c);for(const d of l.nestedAnnotations)this.emitAnnotation(a,c,d)}};return n.XSD="http://www.w3.org/2001/XMLSchema#",n.XSD_BOOLEAN=n.XSD+"boolean",n.XSD_INTEGER=n.XSD+"integer",n.XSD_DOUBLE=n.XSD+"double",n.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",ef.Util=n,ef}var Z6;function HK(){if(Z6)return Zd;Z6=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.EntryHandlerArrayValue=void 0;const t=to(),e=Jr();let u=class{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(n,r,a,o,l){return this.test(n,r,null,a,o)}async test(n,r,a,o,l){return typeof o[l]=="number"}async handle(n,r,a,o,l,c){let d=await r.unaliasKeywordParent(o,c);if(d==="@list"){let h=null,f=0;for(let p=c-2;p>0;p--){const y=o[p];if(typeof y=="string"||typeof y=="number"){f=p,h=y;break}}if(h!==null){const p=await r.valueToTerm(await n.getContext(o),h,l,c,o);for(const y of p)await this.handleListElement(n,r,y,l,c,o.slice(0,f),f);p.length===0&&await this.handleListElement(n,r,null,l,c,o.slice(0,f),f)}}else if(d==="@set")await n.newOnValueJob(o.slice(0,-2),l,c-2,!1);else if(d!==void 0&&d!=="@type"){for(let f=c-1;f>0;f--)if(typeof o[f]!="number"){d=await r.unaliasKeyword(o[f],o,f);break}const h=await n.getContext(o.slice(0,-1));if("@list"in t.Util.getContextValueContainer(h,d)){n.emittedStack[c+1]=!0;const f=await r.valueToTerm(await n.getContext(o),d,l,c,o);for(const p of f)await this.handleListElement(n,r,p,l,c,o.slice(0,-1),c-1);f.length===0&&await this.handleListElement(n,r,null,l,c,o.slice(0,-1),c-1)}else n.shiftStack(c,1),await n.newOnValueJob(o.slice(0,-1),l,c-1,!1),n.contextTree.removeContext(o.slice(0,-1))}}async handleListElement(n,r,a,o,l,c,d){let h=n.listPointerStack[l];if(o!==null&&(await r.unaliasKeywords(o,c,l))["@value"]!==null){if(!h||!h.value){const f=r.dataFactory.blankNode();h={value:f,listRootDepth:d,listId:f}}else{const f=r.dataFactory.blankNode();n.emitQuad(l,r.dataFactory.quad(h.value,r.rdfRest,f,r.getDefaultGraph())),h.value=f}a&&n.emitQuad(l,r.dataFactory.quad(h.value,r.rdfFirst,a,r.getDefaultGraph()))}else h||(h={listRootDepth:d,listId:r.rdfNil});n.listPointerStack[l]=h,n.rdfstar&&n.annotationsBuffer[l]&&n.emitError(new e.ErrorCoded("Found an illegal annotation inside a list",e.ERROR_CODES.INVALID_ANNOTATION))}};return Zd.EntryHandlerArrayValue=u,Zd}var uf={},eC;function $K(){if(eC)return uf;eC=1,Object.defineProperty(uf,"__esModule",{value:!0}),uf.EntryHandlerInvalidFallback=void 0;let t=class{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(u,s,n,r,a){return!1}async test(u,s,n,r,a){return!0}async handle(u,s,n,r,a,o){u.emittedStack[o]=!1}};return uf.EntryHandlerInvalidFallback=t,uf}var cf={},lf={},tC;function ns(){if(tC)return lf;tC=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.EntryHandlerKeyword=void 0;let t=class{constructor(u){this.keyword=u}isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(u,s,n,r,a){return!1}async test(u,s,n,r,a){return n===this.keyword}};return lf.EntryHandlerKeyword=t,lf}var rC;function QK(){if(rC)return cf;rC=1,Object.defineProperty(cf,"__esModule",{value:!0}),cf.EntryHandlerKeywordContext=void 0;const t=Jr(),e=ns();let u=class extends e.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(n,r,a,o,l,c){n.streamingProfile&&(n.processingStack[c]||n.processingType[c]||n.idStack[c]!==void 0)&&n.emitError(new t.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",t.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const d=n.getContext(o),h=n.parseContext(l,(await d).getContextRaw());n.contextTree.setContext(o.slice(0,-1),h),n.emitContext(l),await n.validateContext(await h)}};return cf.EntryHandlerKeywordContext=u,cf}var df={},nC;function VK(){if(nC)return df;nC=1,Object.defineProperty(df,"__esModule",{value:!0}),df.EntryHandlerKeywordGraph=void 0;const t=ns();let e=class extends t.EntryHandlerKeyword{constructor(){super("@graph")}async handle(s,n,r,a,o,l){s.graphStack[l+1]=!0}};return df.EntryHandlerKeywordGraph=e,df}var ff={},iC;function kK(){if(iC)return ff;iC=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.EntryHandlerKeywordId=void 0;const t=Jr(),e=ns();let u=class extends e.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(n,r,a,o,l,c){if(typeof l!="string"){if(n.rdfstar&&typeof l=="object"){const h=Object.keys(l);h.length===1&&h[0]==="@id"&&n.emitError(new t.ErrorCoded(`Invalid embedded node without property with @id ${l["@id"]}`,t.ERROR_CODES.INVALID_EMBEDDED_NODE))}else n.emitError(new t.ErrorCoded(`Found illegal @id '${l}'`,t.ERROR_CODES.INVALID_ID_VALUE));return}const d=await r.getPropertiesDepth(o,c);if(n.idStack[d]!==void 0&&(n.idStack[d][0].listHead?n.emitError(new t.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${o[c-1]}'`,t.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):n.emitError(new t.ErrorCoded(`Found duplicate @ids '${n.idStack[d][0].value}' and '${l}'`,t.ERROR_CODES.COLLIDING_KEYWORDS))),n.rdfstar&&n.annotationsBuffer[c])for(const h of n.annotationsBuffer[c])h.depth===c&&n.emitError(new t.ErrorCoded(`Found an illegal @id inside an annotation: ${l}`,t.ERROR_CODES.INVALID_ANNOTATION));n.idStack[d]=r.nullableTermToArray(await r.resourceToTerm(await n.getContext(o),l))}};return ff.EntryHandlerKeywordId=u,ff}var hf={},aC;function zK(){if(aC)return hf;aC=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.EntryHandlerKeywordIncluded=void 0;const t=Jr(),e=ns();let u=class extends e.EntryHandlerKeyword{constructor(){super("@included")}async handle(n,r,a,o,l,c){typeof l!="object"&&n.emitError(new t.ErrorCoded(`Found illegal @included '${l}'`,t.ERROR_CODES.INVALID_INCLUDED_VALUE));const d=await r.unaliasKeywords(l,o,c,await n.getContext(o));"@value"in d&&n.emitError(new t.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(l)}'`,t.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in d&&n.emitError(new t.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(l)}'`,t.ERROR_CODES.INVALID_INCLUDED_VALUE)),n.emittedStack[c]=!1}};return hf.EntryHandlerKeywordIncluded=u,hf}var pf={},sC;function GK(){if(sC)return pf;sC=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.EntryHandlerKeywordNest=void 0;const t=Jr(),e=ns();let u=class extends e.EntryHandlerKeyword{constructor(){super("@nest")}async handle(n,r,a,o,l,c){typeof l!="object"&&n.emitError(new t.ErrorCoded(`Found invalid @nest entry for '${a}': '${l}'`,t.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await r.unaliasKeywords(l,o,c,await n.getContext(o))&&n.emitError(new t.ErrorCoded(`Found an invalid @value node for '${a}'`,t.ERROR_CODES.INVALID_NEST_VALUE)),n.emittedStack[c]=!1}};return pf.EntryHandlerKeywordNest=u,pf}var yf={},oC;function WK(){if(oC)return yf;oC=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.EntryHandlerKeywordType=void 0;const t=Jr(),e=to(),u=Gb(),s=ns();let n=class extends s.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(a,o,l,c,d,h){const f=c[h],p=await a.getContext(c),y=o.rdfType,b=await o.unaliasKeywordParent(c,h),m=e.Util.isPropertyReverse(p,f,b),g=e.Util.isPropertyInEmbeddedNode(b);o.validateReverseInEmbeddedNode(l,m,g);const v=e.Util.isPropertyInAnnotationObject(b),_=Array.isArray(d)?d:[d];for(const A of _){typeof A!="string"&&a.emitError(new t.ErrorCoded(`Found illegal @type '${A}'`,t.ERROR_CODES.INVALID_TYPE_VALUE));const D=o.createVocabOrBaseTerm(p,A);D&&await u.EntryHandlerPredicate.handlePredicateObject(a,o,c,h,y,D,m,g,v)}let w=Promise.resolve(p),S=!1;for(const A of _.sort()){const D=e.Util.getContextValue(p,"@context",A,null);D&&(S=!0,w=w.then(L=>a.parseContext(D,L.getContextRaw())))}a.streamingProfile&&(S||!a.streamingProfileAllowOutOfOrderPlainType)&&(a.processingStack[h]||a.idStack[h])&&a.emitError(new t.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",t.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),S&&(w=w.then(A=>A.getContextRaw()["@propagate"]!==!0?new t.JsonLdContextNormalized(Object.assign(Object.assign({},A.getContextRaw()),{"@propagate":!1,"@__propagateFallback":p.getContextRaw()})):A),a.contextTree.setContext(c.slice(0,c.length-1),w)),a.processingType[h]=!0}};return yf.EntryHandlerKeywordType=n,yf}var bf={},uC;function JK(){if(uC)return bf;uC=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.EntryHandlerKeywordUnknownFallback=void 0;const t=Jr();let e=class o7{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(s,n,r,a,o){const l=await n.unaliasKeyword(r[a],r,a);return t.Util.isPotentialKeyword(l)?!(!o&&l==="@list"):!1}async test(s,n,r,a,o){return t.Util.isPotentialKeyword(r)}async handle(s,n,r,a,o,l){const c=o7.VALID_KEYWORDS_TYPES[r];c!==void 0?c&&typeof o!==c.type&&s.emitError(new t.ErrorCoded(`Invalid value type for '${r}' with value '${o}'`,c.errorCode)):s.strictValues&&s.emitError(new Error(`Unknown keyword '${r}' with value '${o}'`)),s.emittedStack[l]=!1}};return e.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:t.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:t.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null},bf.EntryHandlerKeywordUnknownFallback=e,bf}var gf={},cC;function XK(){if(cC)return gf;cC=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.EntryHandlerKeywordValue=void 0;const t=ns();let e=class extends t.EntryHandlerKeyword{constructor(){super("@value")}async validate(s,n,r,a,o){const l=r[a];return l&&!s.literalStack[a]&&await this.test(s,n,l,r,a)&&(s.literalStack[a]=!0),super.validate(s,n,r,a,o)}async test(s,n,r,a,o){return await n.unaliasKeyword(a[o],a.slice(0,a.length-1),o-1,!0)==="@value"}async handle(s,n,r,a,o,l){s.literalStack[l]=!0,delete s.unidentifiedValuesBuffer[l],delete s.unidentifiedGraphsBuffer[l],s.emittedStack[l]=!1}};return gf.EntryHandlerKeywordValue=e,gf}var mf={},_f={},lC;function KK(){if(lC)return _f;lC=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.ContextTree=void 0;let t=class u7{constructor(){this.subTrees={}}getContext(u){if(u.length>0){const[s,...n]=u,r=this.subTrees[s];if(r){const a=r.getContext(n);if(a)return a.then(({context:o,depth:l})=>({context:o,depth:l+1}))}}return this.context?this.context.then(s=>({context:s,depth:0})):null}setContext(u,s){if(u.length===0)this.context=s;else{const[n,...r]=u;let a=this.subTrees[n];a||(a=this.subTrees[n]=new u7),a.setContext(r,s)}}removeContext(u){this.setContext(u,null)}};return _f.ContextTree=t,_f}var dC;function YK(){if(dC)return mf;dC=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.ParsingContext=void 0;const t=Jr(),e=Ay(),u=KK(),s=l7();let n=class c7{constructor(a){this.contextParser=new t.ContextParser({documentLoader:a.documentLoader,skipValidation:a.skipContextValidation}),this.streamingProfile=!!a.streamingProfile,this.baseIRI=a.baseIRI,this.produceGeneralizedRdf=!!a.produceGeneralizedRdf,this.allowSubjectList=!!a.allowSubjectList,this.processingMode=a.processingMode||s.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!a.strictValues,this.validateValueIndexes=!!a.validateValueIndexes,this.defaultGraph=a.defaultGraph,this.rdfDirection=a.rdfDirection,this.normalizeLanguageTags=a.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=a.streamingProfileAllowOutOfOrderPlainType,this.rdfstar=a.rdfstar!==!1,this.rdfstarReverseInEmbedded=a.rdfstarReverseInEmbedded,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new u.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.annotationsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=a.parser,a.context?(this.rootContext=this.parseContext(a.context),this.rootContext.then(o=>this.validateContext(o))):this.rootContext=Promise.resolve(new t.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(a,o,l){return this.contextParser.parse(a,{baseIRI:this.baseIRI,ignoreProtection:l,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:o,processingMode:this.activeProcessingMode})}validateContext(a){const o=a.getContextRaw()["@version"];if(o){if(this.activeProcessingMode&&o>this.activeProcessingMode)throw new e.ErrorCoded(`Unsupported JSON-LD version '${o}' under active processing mode ${this.activeProcessingMode}.`,e.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&o0&&l.context.getContextRaw()["@propagate"]===!1&&l.depth!==o&&!c);return l.depth===0&&l.context.getContextRaw()["@propagate"]===!1&&l.depth!==o&&(l.context=new t.JsonLdContextNormalized({})),l}async newOnValueJob(a,o,l,c){await this.parser.newOnValueJob(a,o,l,c)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const a of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(a.depth,a.keys),this.parser.flushStacks(a.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}else return!1}emitQuad(a,o){a===1&&(this.topLevelProperties=!0),this.parser.push(o)}emitError(a){this.parser.emit("error",a)}emitContext(a){this.parser.emit("context",a)}getUnidentifiedValueBufferSafe(a){let o=this.unidentifiedValuesBuffer[a];return o||(o=[],this.unidentifiedValuesBuffer[a]=o),o}getUnidentifiedGraphBufferSafe(a){let o=this.unidentifiedGraphsBuffer[a];return o||(o=[],this.unidentifiedGraphsBuffer[a]=o),o}getAnnotationsBufferSafe(a){let o=this.annotationsBuffer[a];return o||(o=[],this.annotationsBuffer[a]=o),o}getExpandOptions(){return c7.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(a,o){const l=this.idStack[a+o];if(l&&(this.idStack[a]=l,this.emittedStack[a]=!0,delete this.idStack[a+o]),this.pendingContainerFlushBuffers.length)for(const c of this.pendingContainerFlushBuffers)c.depth>=a+o&&(c.depth-=o,c.keys.splice(a,o));this.unidentifiedValuesBuffer[a+o]&&(this.unidentifiedValuesBuffer[a]=this.unidentifiedValuesBuffer[a+o],delete this.unidentifiedValuesBuffer[a+o]),this.annotationsBuffer[a+o-1]&&(this.annotationsBuffer[a-1]||(this.annotationsBuffer[a-1]=[]),this.annotationsBuffer[a-1]=[...this.annotationsBuffer[a-1],...this.annotationsBuffer[a+o-1]],delete this.annotationsBuffer[a+o-1])}};return n.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}},mf.ParsingContext=n,mf}var vf={},fC;function ZK(){if(fC)return vf;fC=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.EntryHandlerKeywordAnnotation=void 0;const t=ns(),e=Jr();let u=class extends t.EntryHandlerKeyword{constructor(){super("@annotation")}async handle(n,r,a,o,l,c){(typeof l=="string"||typeof l=="object"&&l["@value"])&&n.emitError(new e.ErrorCoded(`Found illegal annotation value: ${JSON.stringify(l)}`,e.ERROR_CODES.INVALID_ANNOTATION))}};return vf.EntryHandlerKeywordAnnotation=u,vf}var hC;function l7(){if(hC)return Yd;hC=1,Object.defineProperty(Yd,"__esModule",{value:!0}),Yd.JsonLdParser=void 0;const t=Eq(),e=Jr(),u=Wt(),s=HK(),n=s7(),r=$K(),a=Gb(),o=QK(),l=VK(),c=kK(),d=zK(),h=GK(),f=WK(),p=JK(),y=XK(),b=YK(),m=to(),g=lq(),v=ZK();let _=class wo extends u.Transform{constructor(S){super({readableObjectMode:!0}),S=S||{},this.options=S,this.parsingContext=new b.ParsingContext(Object.assign({parser:this},S)),this.util=new m.Util({dataFactory:S.dataFactory,parsingContext:this.parsingContext}),this.jsonParser=new t,this.contextJobs=[],this.typeJobs=[],this.contextAwaitingJobs=[],this.lastDepth=0,this.lastKeys=[],this.lastOnValueJob=Promise.resolve(),this.attachJsonParserListeners(),this.on("end",()=>{typeof this.jsonParser.mode<"u"&&this.emit("error",new Error("Unclosed document"))})}static fromHttpResponse(S,A,D,L){let E,O=["application/activity+json"];if(L&&L.wellKnownMediaTypes&&(O=L.wellKnownMediaTypes),A!=="application/ld+json"&&!O.includes(A)){if(A!=="application/json"&&!A.endsWith("+json"))throw new e.ErrorCoded(`Unsupported JSON-LD media type ${A}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED);if(D&&D.has("Link")&&D.forEach((j,U)=>{if(U==="link"){const M=(0,g.parse)(j);for(const q of M.get("rel","http://www.w3.org/ns/json-ld#context")){if(E)throw new e.ErrorCoded("Multiple JSON-LD context link headers were found on "+S,e.ERROR_CODES.MULTIPLE_CONTEXT_LINK_HEADERS);E=q.uri}}}),!E&&!(L!=null&&L.ignoreMissingContextLinkHeader))throw new e.ErrorCoded(`Missing context link header for media type ${A} on ${S}`,e.ERROR_CODES.LOADING_DOCUMENT_FAILED)}let P;if(D&&D.has("Content-Type")){const j=D.get("Content-Type"),U=/; *profile=([^"]*)/.exec(j);U&&U[1]==="http://www.w3.org/ns/json-ld#streaming"&&(P=!0)}return new wo(Object.assign({baseIRI:S,context:E,streamingProfile:P},L||{}))}import(S){if("pipe"in S){S.on("error",D=>A.emit("error",D));const A=S.pipe(new wo(this.options));return A}else{const A=new u.PassThrough({readableObjectMode:!0});S.on("error",L=>D.emit("error",L)),S.on("data",L=>A.push(L)),S.on("end",()=>A.push(null));const D=A.pipe(new wo(this.options));return D}}_transform(S,A,D){this.jsonParser.write(S),this.lastOnValueJob.then(()=>D(),L=>D(L))}async newOnValueJob(S,A,D,L){let E=!0;if(L&&D1&&(U=this.parsingContext.validationStack[this.parsingContext.validationStack.length-1].property);for(let M=Math.max(1,this.parsingContext.validationStack.length-1);M=0?this.parsingContext.idStack[S-U-1]:[await this.util.getGraphContainerValue(A,S)];if(M)for(const q of M){this.parsingContext.emittedStack[S]=!0;for(const Q of E)this.util.emitQuadChecked(S,j,Q.predicate,Q.object,q,Q.reverse,Q.isEmbedded)}else{const q=this.parsingContext.getUnidentifiedGraphBufferSafe(S-await this.util.getDepthOffsetGraph(S,A)-1);for(const Q of E)Q.reverse?q.push({object:j,predicate:Q.predicate,subject:Q.object,isEmbedded:Q.isEmbedded}):q.push({object:Q.object,predicate:Q.predicate,subject:j,isEmbedded:Q.isEmbedded})}}this.parsingContext.unidentifiedValuesBuffer.splice(S,1),this.parsingContext.literalStack.splice(S,1),this.parsingContext.jsonLiteralStack.splice(S,1)}const O=this.parsingContext.unidentifiedGraphsBuffer[S];if(O){for(const j of D){const U=S===1&&j.termType==="BlankNode"&&!this.parsingContext.topLevelProperties?this.util.getDefaultGraph():j;this.parsingContext.emittedStack[S]=!0;for(const M of O)this.parsingContext.emitQuad(S,this.util.dataFactory.quad(M.subject,M.predicate,M.object,U))}this.parsingContext.unidentifiedGraphsBuffer.splice(S,1)}const P=this.parsingContext.annotationsBuffer[S];if(P){P.length>0&&S===1&&this.parsingContext.emitError(new e.ErrorCoded("Annotations can not be made on top-level nodes",e.ERROR_CODES.INVALID_ANNOTATION));const j=this.parsingContext.getAnnotationsBufferSafe(S-1);for(const U of P)j.push(U);delete this.parsingContext.annotationsBuffer[S]}}async validateKey(S,A,D){for(const L of wo.ENTRY_HANDLERS)if(await L.validate(this.parsingContext,this.util,S,A,D))return{valid:!0,property:D||L.isPropertyHandler()};return{valid:!1,property:!1}}attachJsonParserListeners(){this.jsonParser.onValue=S=>{const A=this.jsonParser.stack.length,D=new Array(A+1).fill(0).map((L,E)=>E===A?this.jsonParser.key:this.jsonParser.stack[E].key);if(!this.isParsingContextInner(A)){const L=()=>this.newOnValueJob(D,S,A,!0);if(!this.parsingContext.streamingProfile&&!this.parsingContext.contextTree.getContext(D.slice(0,-1)))if(D[A]==="@context"){let E=this.contextJobs[A];E||(E=this.contextJobs[A]=[]),E.push(L)}else this.contextAwaitingJobs.push({job:L,keys:D,depth:A});else this.lastOnValueJob=this.lastOnValueJob.then(L);!this.parsingContext.streamingProfile&&A===0&&(this.lastOnValueJob=this.lastOnValueJob.then(()=>this.executeBufferedJobs()))}},this.jsonParser.onError=S=>{this.emit("error",S)}}isParsingContextInner(S){for(let A=S;A>0;A--)if(this.jsonParser.stack[A-1].key==="@context")return!0;return!1}async executeBufferedJobs(){for(const A of this.contextJobs)if(A)for(const D of A)await D();this.parsingContext.unaliasedKeywordCacheStack.splice(0);const S=[];for(const A of this.contextAwaitingJobs)await this.util.unaliasKeyword(A.keys[A.depth],A.keys,A.depth,!0)==="@type"||typeof A.keys[A.depth]=="number"&&await this.util.unaliasKeyword(A.keys[A.depth-1],A.keys,A.depth-1,!0)==="@type"?this.typeJobs.push({job:A.job,keys:A.keys.slice(0,A.keys.length-1)}):S.push(A);for(const A of S){if(this.typeJobs.length>0){const D=[],L=[];for(let P=0;PP.keys.length-j.keys.length);for(const P of E)await P.job();const O=L.sort().reverse();for(const P of O)this.typeJobs.splice(P,1)}await A.job()}}};return _.DEFAULT_PROCESSING_MODE="1.1",_.ENTRY_HANDLERS=[new s.EntryHandlerArrayValue,new o.EntryHandlerKeywordContext,new c.EntryHandlerKeywordId,new d.EntryHandlerKeywordIncluded,new l.EntryHandlerKeywordGraph,new h.EntryHandlerKeywordNest,new f.EntryHandlerKeywordType,new y.EntryHandlerKeywordValue,new v.EntryHandlerKeywordAnnotation,new n.EntryHandlerContainer,new p.EntryHandlerKeywordUnknownFallback,new a.EntryHandlerPredicate,new r.EntryHandlerInvalidFallback],Yd.JsonLdParser=_,Yd}var pC;function eY(){return pC||(pC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(l7(),t)}(G2)),G2}var wf={},yC;function f7(){if(yC)return wf;yC=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.DocumentLoaderMediated=void 0;const t=rs(),e=Jr(),u=eo();let s=class d7 extends e.FetchDocumentLoader{constructor(r,a){super(d7.createFetcher(r,a)),this.mediatorHttp=r,this.context=a}static createFetcher(r,a){return async(o,l)=>{const c=await r.mediate({input:o,init:l,context:a});return c.json=async()=>JSON.parse(await u(t.ActorHttp.toNodeReadable(c.body))),c}}};return wf.DocumentLoaderMediated=s,wf}var bC;function tY(){if(bC)return Kd;bC=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.ActorRdfParseJsonLd=void 0;const t=au(),e=Lt,u=eY(),s=f7();let n=class extends t.ActorRdfParseFixedMediaTypes{constructor(a){super(a)}async testHandle(a,o,l){if(l.has(e.KeysRdfParseHtmlScript.processingHtmlScript)&&o!=="application/ld+json")throw new Error("JSON-LD in script tags can only have media type 'application/ld+json'");if(!o||!(o in this.mediaTypePriorities||o.endsWith("+json")))throw new Error(`Unrecognized media type: ${o}`);return await this.testHandleChecked(a)}async runHandle(a,o,l){var h;return{data:u.JsonLdParser.fromHttpResponse(((h=a.metadata)==null?void 0:h.baseIRI)??"",o,a.headers,{documentLoader:l.get(e.KeysRdfParseJsonLd.documentLoader)??new s.DocumentLoaderMediated(this.mediatorHttp,l),strictValues:l.get(e.KeysRdfParseJsonLd.strictValues),...l.get(e.KeysRdfParseJsonLd.parserOptions)}).import(a.data)}}};return Kd.ActorRdfParseJsonLd=n,Kd}var gC;function rY(){return gC||(gC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(tY(),t),u(f7(),t)}(z2)),z2}var J2={},Sf={},X2={},Tf={},mC;function nY(){if(mC)return Tf;mC=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.ActorRdfUpdateHypermedia=void 0;const t=ot;let e=class extends t.Actor{constructor(s,n){super(s),this.destinationType=n}async test(s){if(s.forceDestinationType&&this.destinationType!==s.forceDestinationType)throw new Error(`Actor ${this.name} is not able to handle destination type ${s.forceDestinationType}.`);return this.testMetadata(s)}};return Tf.ActorRdfUpdateHypermedia=e,Tf}var _C;function ZT(){return _C||(_C=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(nY(),t)}(X2)),X2}var Af={},E1={exports:{}},vC;function eA(){return vC||(vC=1,function(t,e){var u=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof I<"u"&&I,s=function(){function r(){this.fetch=!1,this.DOMException=u.DOMException}return r.prototype=u,new r}();(function(r){(function(a){var o=typeof r<"u"&&r||typeof self<"u"&&self||typeof o<"u"&&o,l={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function c(q){return q&&DataView.prototype.isPrototypeOf(q)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(q){return q&&d.indexOf(Object.prototype.toString.call(q))>-1};function f(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(q)||q==="")throw new TypeError('Invalid character in header field name: "'+q+'"');return q.toLowerCase()}function p(q){return typeof q!="string"&&(q=String(q)),q}function y(q){var Q={next:function(){var Z=q.shift();return{done:Z===void 0,value:Z}}};return l.iterable&&(Q[Symbol.iterator]=function(){return Q}),Q}function b(q){this.map={},q instanceof b?q.forEach(function(Q,Z){this.append(Z,Q)},this):Array.isArray(q)?q.forEach(function(Q){this.append(Q[0],Q[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(Q){this.append(Q,q[Q])},this)}b.prototype.append=function(q,Q){q=f(q),Q=p(Q);var Z=this.map[q];this.map[q]=Z?Z+", "+Q:Q},b.prototype.delete=function(q){delete this.map[f(q)]},b.prototype.get=function(q){return q=f(q),this.has(q)?this.map[q]:null},b.prototype.has=function(q){return this.map.hasOwnProperty(f(q))},b.prototype.set=function(q,Q){this.map[f(q)]=p(Q)},b.prototype.forEach=function(q,Q){for(var Z in this.map)this.map.hasOwnProperty(Z)&&q.call(Q,this.map[Z],Z,this)},b.prototype.keys=function(){var q=[];return this.forEach(function(Q,Z){q.push(Z)}),y(q)},b.prototype.values=function(){var q=[];return this.forEach(function(Q){q.push(Q)}),y(q)},b.prototype.entries=function(){var q=[];return this.forEach(function(Q,Z){q.push([Z,Q])}),y(q)},l.iterable&&(b.prototype[Symbol.iterator]=b.prototype.entries);function m(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function g(q){return new Promise(function(Q,Z){q.onload=function(){Q(q.result)},q.onerror=function(){Z(q.error)}})}function v(q){var Q=new FileReader,Z=g(Q);return Q.readAsArrayBuffer(q),Z}function _(q){var Q=new FileReader,Z=g(Q);return Q.readAsText(q),Z}function w(q){for(var Q=new Uint8Array(q),Z=new Array(Q.length),K=0;K-1?Q:q}function E(q,Q){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q=Q||{};var Z=Q.body;if(q instanceof E){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,Q.headers||(this.headers=new b(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!Z&&q._bodyInit!=null&&(Z=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=Q.credentials||this.credentials||"same-origin",(Q.headers||!this.headers)&&(this.headers=new b(Q.headers)),this.method=L(Q.method||this.method||"GET"),this.mode=Q.mode||this.mode||null,this.signal=Q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Z)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Z),(this.method==="GET"||this.method==="HEAD")&&(Q.cache==="no-store"||Q.cache==="no-cache")){var K=/([?&])_=[^&]*/;if(K.test(this.url))this.url=this.url.replace(K,"$1_="+new Date().getTime());else{var fe=/\?/;this.url+=(fe.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function O(q){var Q=new FormData;return q.trim().split("&").forEach(function(Z){if(Z){var K=Z.split("="),fe=K.shift().replace(/\+/g," "),X=K.join("=").replace(/\+/g," ");Q.append(decodeURIComponent(fe),decodeURIComponent(X))}}),Q}function P(q){var Q=new b,Z=q.replace(/\r?\n[\t ]+/g," ");return Z.split("\r").map(function(K){return K.indexOf(` +`)===0?K.substr(1,K.length):K}).forEach(function(K){var fe=K.split(":"),X=fe.shift().trim();if(X){var he=fe.join(":").trim();Q.append(X,he)}}),Q}A.call(E.prototype);function j(q,Q){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Q||(Q={}),this.type="default",this.status=Q.status===void 0?200:Q.status,this.ok=this.status>=200&&this.status<300,this.statusText=Q.statusText===void 0?"":""+Q.statusText,this.headers=new b(Q.headers),this.url=Q.url||"",this._initBody(q)}A.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new b(this.headers),url:this.url})},j.error=function(){var q=new j(null,{status:0,statusText:""});return q.type="error",q};var U=[301,302,303,307,308];j.redirect=function(q,Q){if(U.indexOf(Q)===-1)throw new RangeError("Invalid status code");return new j(null,{status:Q,headers:{location:q}})},a.DOMException=o.DOMException;try{new a.DOMException}catch{a.DOMException=function(Q,Z){this.message=Q,this.name=Z;var K=Error(Q);this.stack=K.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function M(q,Q){return new Promise(function(Z,K){var fe=new E(q,Q);if(fe.signal&&fe.signal.aborted)return K(new a.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function he(){X.abort()}X.onload=function(){var ie={status:X.status,statusText:X.statusText,headers:P(X.getAllResponseHeaders()||"")};ie.url="responseURL"in X?X.responseURL:ie.headers.get("X-Request-URL");var ae="response"in X?X.response:X.responseText;setTimeout(function(){Z(new j(ae,ie))},0)},X.onerror=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},X.ontimeout=function(){setTimeout(function(){K(new TypeError("Network request failed"))},0)},X.onabort=function(){setTimeout(function(){K(new a.DOMException("Aborted","AbortError"))},0)};function xe(ie){try{return ie===""&&o.location.href?o.location.href:ie}catch{return ie}}X.open(fe.method,xe(fe.url),!0),fe.credentials==="include"?X.withCredentials=!0:fe.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&(l.blob?X.responseType="blob":l.arrayBuffer&&fe.headers.get("Content-Type")&&fe.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(X.responseType="arraybuffer")),Q&&typeof Q.headers=="object"&&!(Q.headers instanceof b)?Object.getOwnPropertyNames(Q.headers).forEach(function(ie){X.setRequestHeader(ie,p(Q.headers[ie]))}):fe.headers.forEach(function(ie,ae){X.setRequestHeader(ae,ie)}),fe.signal&&(fe.signal.addEventListener("abort",he),X.onreadystatechange=function(){X.readyState===4&&fe.signal.removeEventListener("abort",he)}),X.send(typeof fe._bodyInit>"u"?null:fe._bodyInit)})}return M.polyfill=!0,o.fetch||(o.fetch=M,o.Headers=b,o.Request=E,o.Response=j),a.Headers=b,a.Request=E,a.Response=j,a.fetch=M,a})({})})(s),s.fetch.ponyfill=!0,delete s.fetch.polyfill;var n=u.fetch?u:s;e=n.fetch,e.default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e}(E1,E1.exports)),E1.exports}var wC;function h7(){if(wC)return Af;wC=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.QuadDestinationPatchSparqlUpdate=void 0;const t=rs(),e=eA(),u=Oy(),s=Wt();let n=class{constructor(a,o,l){this.url=a,this.context=o,this.mediatorHttp=l}insert(a){return this.wrapSparqlUpdateRequest("INSERT",a)}async delete(a){return this.wrapSparqlUpdateRequest("DELETE",a)}async wrapSparqlUpdateRequest(a,o){const l=o.map(f=>{let p=`${(0,u.termToString)(f.subject)} ${(0,u.termToString)(f.predicate)} ${(0,u.termToString)(f.object)} .`;return f.graph.termType==="DefaultGraph"?p=` ${p} +`:p=` GRAPH ${(0,u.termToString)(f.graph)} { ${p} } +`,p}).prepend([`${a} DATA { +`]).append(["}"]),c=new s.Readable;c.wrap(l);const d=new e.Headers({"content-type":"application/sparql-update"}),h=await this.mediatorHttp.mediate({context:this.context,init:{headers:d,method:"PATCH",body:t.ActorHttp.toWebReadableStream(c)},input:this.url});await(0,t.validateAndCloseHttpResponse)(this.url,h)}async deleteGraphs(a,o,l){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}async createGraphs(a,o){throw new Error("Patch-based SPARQL Update destinations don't support named graphs")}};return Af.QuadDestinationPatchSparqlUpdate=n,Af}var SC;function iY(){if(SC)return Sf;SC=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.ActorRdfUpdateHypermediaPatchSparqlUpdate=void 0;const t=ZT(),e=h7();let u=class extends t.ActorRdfUpdateHypermedia{constructor(n){super(n,"patchSparqlUpdate")}async testMetadata(n){if(!n.forceDestinationType&&!n.metadata.patchSparqlUpdate)throw new Error(`Actor ${this.name} could not detect a destination with 'application/sparql-update' as 'Accept-Patch' header.`);if(!n.forceDestinationType&&!n.exists)throw new Error(`Actor ${this.name} can only patch a destination that already exists.`);return!0}async run(n){return this.logInfo(n.context,`Identified as patchSparqlUpdate destination: ${n.url}`),{destination:new e.QuadDestinationPatchSparqlUpdate(n.url,n.context,this.mediatorHttp)}}};return Sf.ActorRdfUpdateHypermediaPatchSparqlUpdate=u,Sf}var TC;function aY(){return TC||(TC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(iY(),t),u(h7(),t)}(J2)),J2}var K2={},Ef={},Of={},AC;function p7(){if(AC)return Of;AC=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.QuadDestinationPutLdp=void 0;const t=rs(),e=eA();let u=class{constructor(n,r,a,o,l,c){this.url=n,this.context=r,this.mediaTypes=a,this.mediatorHttp=o,this.mediatorRdfSerializeMediatypes=l,this.mediatorRdfSerialize=c}insert(n){return this.wrapRdfUpdateRequest("INSERT",n)}async delete(n){throw new Error("Put-based LDP destinations don't support deletions")}async wrapRdfUpdateRequest(n,r){const{mediaTypes:a}=await this.mediatorRdfSerializeMediatypes.mediate({context:this.context,mediaTypes:!0}),o=this.mediaTypes.filter(f=>f in a),l=o.length>0?o[0]:Object.keys(a).sort((f,p)=>a[p]-a[f])[0],{handle:{data:c}}=await this.mediatorRdfSerialize.mediate({context:this.context,handle:{quadStream:r,context:this.context},handleMediaType:l}),d=new e.Headers({"content-type":l}),h=await this.mediatorHttp.mediate({context:this.context,init:{headers:d,method:"PUT",body:t.ActorHttp.toWebReadableStream(c)},input:this.url});await(0,t.validateAndCloseHttpResponse)(this.url,h)}async deleteGraphs(n,r,a){throw new Error("Put-based LDP destinations don't support named graphs")}async createGraphs(n,r){throw new Error("Put-based LDP destinations don't support named graphs")}};return Of.QuadDestinationPutLdp=u,Of}var EC;function sY(){if(EC)return Ef;EC=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.ActorRdfUpdateHypermediaPutLdp=void 0;const t=ZT(),e=p7();let u=class extends t.ActorRdfUpdateHypermedia{constructor(n){super(n,"putLdp")}async testMetadata(n){if(!n.forceDestinationType){if(!n.metadata.allowHttpMethods||!n.metadata.allowHttpMethods.includes("PUT"))throw new Error(`Actor ${this.name} could not detect a destination with 'Allow: PUT' header.`);if(n.exists)throw new Error(`Actor ${this.name} can only put on a destination that does not already exists.`)}return!0}async run(n){return this.logInfo(n.context,`Identified as putLdp destination: ${n.url}`),{destination:new e.QuadDestinationPutLdp(n.url,n.context,n.metadata.putAccepted||[],this.mediatorHttp,this.mediatorRdfSerializeMediatypes,this.mediatorRdfSerialize)}}};return Ef.ActorRdfUpdateHypermediaPutLdp=u,Ef}var OC;function oY(){return OC||(OC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(sY(),t),u(p7(),t)}(K2)),K2}var Y2={},Rf={},xf={},Z2={},If={},RC={},xC;function uY(){return xC||(xC=1,function(){(function(t){(function(e){var u={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function s(E){return E&&DataView.prototype.isPrototypeOf(E)}if(u.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(E){return E&&n.indexOf(Object.prototype.toString.call(E))>-1};function a(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function o(E){return typeof E!="string"&&(E=String(E)),E}function l(E){var O={next:function(){var P=E.shift();return{done:P===void 0,value:P}}};return u.iterable&&(O[Symbol.iterator]=function(){return O}),O}function c(E){this.map={},E instanceof c?E.forEach(function(O,P){this.append(P,O)},this):Array.isArray(E)?E.forEach(function(O){this.append(O[0],O[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(O){this.append(O,E[O])},this)}c.prototype.append=function(E,O){E=a(E),O=o(O);var P=this.map[E];this.map[E]=P?P+", "+O:O},c.prototype.delete=function(E){delete this.map[a(E)]},c.prototype.get=function(E){return E=a(E),this.has(E)?this.map[E]:null},c.prototype.has=function(E){return this.map.hasOwnProperty(a(E))},c.prototype.set=function(E,O){this.map[a(E)]=o(O)},c.prototype.forEach=function(E,O){for(var P in this.map)this.map.hasOwnProperty(P)&&E.call(O,this.map[P],P,this)},c.prototype.keys=function(){var E=[];return this.forEach(function(O,P){E.push(P)}),l(E)},c.prototype.values=function(){var E=[];return this.forEach(function(O){E.push(O)}),l(E)},c.prototype.entries=function(){var E=[];return this.forEach(function(O,P){E.push([P,O])}),l(E)},u.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);function d(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function h(E){return new Promise(function(O,P){E.onload=function(){O(E.result)},E.onerror=function(){P(E.error)}})}function f(E){var O=new FileReader,P=h(O);return O.readAsArrayBuffer(E),P}function p(E){var O=new FileReader,P=h(O);return O.readAsText(E),P}function y(E){for(var O=new Uint8Array(E),P=new Array(O.length),j=0;j-1?O:E}function _(E,O){O=O||{};var P=O.body;if(E instanceof _){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,O.headers||(this.headers=new c(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!P&&E._bodyInit!=null&&(P=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new c(O.headers)),this.method=v(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function w(E){var O=new FormData;return E.trim().split("&").forEach(function(P){if(P){var j=P.split("="),U=j.shift().replace(/\+/g," "),M=j.join("=").replace(/\+/g," ");O.append(decodeURIComponent(U),decodeURIComponent(M))}}),O}function S(E){var O=new c,P=E.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(j){var U=j.split(":"),M=U.shift().trim();if(M){var q=U.join(":").trim();O.append(M,q)}}),O}m.call(_.prototype);function A(E,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new c(O.headers),this.url=O.url||"",this._initBody(E)}m.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},A.error=function(){var E=new A(null,{status:0,statusText:""});return E.type="error",E};var D=[301,302,303,307,308];A.redirect=function(E,O){if(D.indexOf(O)===-1)throw new RangeError("Invalid status code");return new A(null,{status:O,headers:{location:E}})},e.DOMException=t.DOMException;try{new e.DOMException}catch{e.DOMException=function(O,P){this.message=O,this.name=P;var j=Error(O);this.stack=j.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function L(E,O){return new Promise(function(P,j){var U=new _(E,O);if(U.signal&&U.signal.aborted)return j(new e.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function q(){M.abort()}M.onload=function(){var Q={status:M.status,statusText:M.statusText,headers:S(M.getAllResponseHeaders()||"")};Q.url="responseURL"in M?M.responseURL:Q.headers.get("X-Request-URL");var Z="response"in M?M.response:M.responseText;P(new A(Z,Q))},M.onerror=function(){j(new TypeError("Network request failed"))},M.ontimeout=function(){j(new TypeError("Network request failed"))},M.onabort=function(){j(new e.DOMException("Aborted","AbortError"))},M.open(U.method,U.url,!0),U.credentials==="include"?M.withCredentials=!0:U.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&u.blob&&(M.responseType="blob"),U.headers.forEach(function(Q,Z){M.setRequestHeader(Z,Q)}),U.signal&&(U.signal.addEventListener("abort",q),M.onreadystatechange=function(){M.readyState===4&&U.signal.removeEventListener("abort",q)}),M.send(typeof U._bodyInit>"u"?null:U._bodyInit)})}return L.polyfill=!0,t.fetch||(t.fetch=L,t.Headers=c,t.Request=_,t.Response=A),e.Headers=c,e.Request=_,e.Response=A,e.fetch=L,Object.defineProperty(e,"__esModule",{value:!0}),e})({})})(typeof self<"u"?self:I)}()),RC}var ew={},Pf={},IC;function cY(){if(IC)return Pf;IC=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.SparqlXmlParser=void 0;const t=Et(),e=Lq(),u=Wt();let s=class{constructor(r){r=r||{},this.dataFactory=r.dataFactory||new t.DataFactory,this.prefixVariableQuestionMark=!!r.prefixVariableQuestionMark}parseXmlResultsStream(r){const a=_=>v.emit("error",_);r.on("error",a);const o=new e.SaxesParser,l=[];let c=!1,d=!1;const h=[];let f={},p="",y="",b,m="",g=[];o.on("error",a),o.on("opentag",_=>{_.name==="variable"&&this.stackEquals(l,["sparql","head"])?h.push(this.dataFactory.variable(_.attributes.name)):_.name==="results"&&this.stackEquals(l,["sparql"])?d=!0:_.name==="result"&&this.stackEquals(l,["sparql","results"])?f={}:_.name==="binding"&&this.stackEquals(l,["sparql","results","result"])?(p=_.attributes.name||"",y="",b="",m="",g=[]):_.name==="triple"&&this.stackBeginsWith(l,["sparql","results","result"])?g.push({components:{}}):l[l.length-1]==="triple"&&this.stackBeginsWith(l,["sparql","results","result","binding"])?(y="",b="",m="",["subject","predicate","object"].includes(_.name)?g[g.length-1].currentComponent=_.name:a(new Error(`Illegal quoted triple component '${_.name}' found on line ${o.line+1}`))):this.stackBeginsWith(l,["sparql","results","result","binding"])&&(y=_.name,"xml:lang"in _.attributes?b=_.attributes["xml:lang"]:"datatype"in _.attributes?b=this.dataFactory.namedNode(_.attributes.datatype):b=void 0),l.push(_.name)}),o.on("closetag",_=>{if(this.stackEquals(l,["sparql","head"])&&(v.emit("variables",h),c=!0),this.stackEquals(l,["sparql","results","result"])&&v.push(f),this.stackBeginsWith(l,["sparql","results","result","binding"])){let w;if(!p&&y)a(new Error(`Terms should have a name on line ${o.line+1}`));else if(y==="uri")w=this.dataFactory.namedNode(m);else if(y==="bnode")w=this.dataFactory.blankNode(m);else if(y==="literal")w=this.dataFactory.literal(m,b);else if(l[l.length-1]==="triple"){const S=g.pop();S&&S.components.subject&&S.components.predicate&&S.components.object?w=this.dataFactory.quad(S.components.subject,S.components.predicate,S.components.object):a(new Error(`Incomplete quoted triple on line ${o.line+1}`))}else y&&a(new Error(`Invalid term type '${y}' on line ${o.line+1}`));if(w)if(g.length>0){const S=g[g.length-1];S.components[S.currentComponent]&&a(new Error(`The ${S.currentComponent} in a quoted triple on line ${o.line+1} was already defined before`)),S.components[S.currentComponent]=w}else{const S=this.prefixVariableQuestionMark?"?"+p:p;f[S]=w}y=void 0}l.pop()}),o.on("text",_=>{this.stackBeginsWith(l,["sparql","results","result","binding"])&&l[l.length-1]===y&&(m=_)});const v=r.on("end",_=>{d?c||v.emit("variables",[]):v.emit("error",new Error("No valid SPARQL query results were found."))}).pipe(new u.Transform({objectMode:!0,transform(_,w,S){o.write(_),S()}}));return v}parseXmlBooleanStream(r){return new Promise((a,o)=>{const l=new e.SaxesParser,c=[];l.on("error",o),l.on("opentag",d=>{c.push(d.name)}),l.on("closetag",d=>{c.pop()}),l.on("text",d=>{this.stackEquals(c,["sparql","boolean"])&&a(d==="true")}),r.on("error",o).on("data",d=>l.write(d)).on("end",()=>o(new Error("No valid ASK response was found.")))})}stackEquals(r,a){return r.length===a.length&&r.every((o,l)=>a[l]===o)}stackBeginsWith(r,a){return r.length>=a.length&&a.every((o,l)=>r[l]===o)}};return Pf.SparqlXmlParser=s,Pf}var PC;function lY(){return PC||(PC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(cY(),t)}(ew)),ew}var Df={},DC;function dY(){if(DC)return Df;DC=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.ReadableWebToNodeStream=void 0;const t=Wt();class e extends t.Readable{constructor(s){super(),this.bytesRead=0,this.released=!1,this.reader=s.getReader()}async _read(){if(this.released){this.push(null);return}this.pendingRead=this.reader.read();const s=await this.pendingRead;delete this.pendingRead,s.done||this.released?this.push(null):(this.bytesRead+=s.value.length,this.push(s.value))}async waitForReadToComplete(){this.pendingRead&&await this.pendingRead}async close(){await this.syncAndRelease()}async syncAndRelease(){this.released=!0,await this.waitForReadToComplete(),await this.reader.releaseLock()}}return Df.ReadableWebToNodeStream=e,Df}var NC;function fY(){if(NC)return If;NC=1,Object.defineProperty(If,"__esModule",{value:!0}),If.SparqlEndpointFetcher=void 0,uY();const t=my(),e=Oq(),u=lY(),s=eo(),n=dY(),r=ts,a=e7();let o=class js{constructor(c){c=c||{},this.method=c.method||"POST",this.additionalUrlParams=c.additionalUrlParams||new URLSearchParams,this.defaultHeaders=c.defaultHeaders||new Headers,this.fetchCb=c.fetch,this.sparqlJsonParser=new e.SparqlJsonParser(c),this.sparqlXmlParser=new u.SparqlXmlParser(c),this.sparqlParsers={[js.CONTENTTYPE_SPARQL_JSON]:{parseBooleanStream:d=>this.sparqlJsonParser.parseJsonBooleanStream(d),parseResultsStream:d=>this.sparqlJsonParser.parseJsonResultsStream(d)},[js.CONTENTTYPE_SPARQL_XML]:{parseBooleanStream:d=>this.sparqlXmlParser.parseXmlBooleanStream(d),parseResultsStream:d=>this.sparqlXmlParser.parseXmlResultsStream(d)}},this.timeout=c.timeout}getQueryType(c){const d=new t.Parser({sparqlStar:!0}).parse(c);return d.type==="query"?d.queryType==="DESCRIBE"?"CONSTRUCT":d.queryType:"UNKNOWN"}getUpdateTypes(c){const d=new t.Parser({sparqlStar:!0}).parse(c);if(d.type==="update"){const h={};for(const f of d.updates)"type"in f?h[f.type]=!0:h[f.updateType]=!0;return h}else return"UNKNOWN"}async fetchBindings(c,d){const[h,f]=await this.fetchRawStream(c,d,js.CONTENTTYPE_SPARQL),p=this.sparqlParsers[h];if(!p)throw new Error("Unknown SPARQL results content type: "+h);return p.parseResultsStream(f)}async fetchAsk(c,d){const[h,f]=await this.fetchRawStream(c,d,js.CONTENTTYPE_SPARQL),p=this.sparqlParsers[h];if(!p)throw new Error("Unknown SPARQL results content type: "+h);return p.parseBooleanStream(f)}async fetchTriples(c,d){return(await this.fetchRawStream(c,d,js.CONTENTTYPE_TURTLE))[1].pipe(new r.StreamParser({format:js.CONTENTTYPE_TURTLE}))}async fetchUpdate(c,d){const h=globalThis.AbortController||await Promise.resolve().then(()=>Uo()),f=new h,p={};this.defaultHeaders.forEach((b,m)=>{p[m]=b});const y={method:"POST",headers:Object.assign(Object.assign({},p),{"content-type":"application/sparql-update"}),body:d,signal:f.signal};await this.handleFetchCall(c,y,{ignoreBody:!0}),f.abort()}async fetchRawStream(c,d,h){let f=this.method==="POST"?c:c+"?query="+encodeURIComponent(d);const p=new Headers(this.defaultHeaders);let y;return p.append("Accept",h),this.method==="POST"?(p.append("Content-Type","application/x-www-form-urlencoded"),y=new URLSearchParams,y.set("query",d),this.additionalUrlParams.forEach((b,m)=>{y.set(m,b)}),p.append("Content-Length",y.toString().length.toString())):this.additionalUrlParams.toString()!==""&&(f+=`&${this.additionalUrlParams.toString()}`),this.handleFetchCall(f,{headers:p,method:this.method,body:y})}async handleFetchCall(c,d,h={}){let f;if(this.timeout){const m=new AbortController;d.signal=m.signal,f=setTimeout(()=>m.abort(),this.timeout)}const p=await(this.fetchCb||fetch)(c,d);clearTimeout(f);let y;h.ignoreBody||(y=a(p.body)?p.body:new n.ReadableWebToNodeStream(p.body));let b=p.headers.get("Content-Type")||"";if(b.indexOf(";")>0&&(b=b.substr(0,b.indexOf(";"))),!p.ok){const m=/^[^?]*/u.exec(c)[0];let g="empty response";throw y&&(g=await s(y)),new Error(`Invalid SPARQL endpoint response from ${m} (HTTP status ${p.status}): +${g}`)}return[b,y]}};return o.CONTENTTYPE_SPARQL_JSON="application/sparql-results+json",o.CONTENTTYPE_SPARQL_XML="application/sparql-results+xml",o.CONTENTTYPE_SPARQL=`${o.CONTENTTYPE_SPARQL_JSON};q=1.0,${o.CONTENTTYPE_SPARQL_XML};q=0.7`,o.CONTENTTYPE_TURTLE="text/turtle",If.SparqlEndpointFetcher=o,If}var CC;function y7(){return CC||(CC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(fY(),t)}(Z2)),Z2}var jC;function b7(){if(jC)return xf;jC=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.QuadDestinationSparql=void 0;const t=y7(),e=Oy(),u=eo();let s=class{constructor(r,a,o){this.url=r,this.context=a,this.mediatorHttp=o,this.endpointFetcher=new t.SparqlEndpointFetcher({fetch:(l,c)=>this.mediatorHttp.mediate({input:l,init:c,context:this.context}),prefixVariableQuestionMark:!0})}insert(r){return this.wrapSparqlUpdateRequest("INSERT",r)}async delete(r){return this.wrapSparqlUpdateRequest("DELETE",r)}async wrapSparqlUpdateRequest(r,a){const o=a.map(c=>{let d=`${(0,e.termToString)(c.subject)} ${(0,e.termToString)(c.predicate)} ${(0,e.termToString)(c.object)} .`;return c.graph.termType==="DefaultGraph"?d=` ${d} +`:d=` GRAPH ${(0,e.termToString)(c.graph)} { ${d} } +`,d}).prepend([`${r} DATA { +`]).append(["}"]),l=await u(o);await this.endpointFetcher.fetchUpdate(this.url,l)}async deleteGraphs(r,a,o){const l=Array.isArray(r)?r:[r],c=[];for(const d of l){let h;typeof d=="string"?h=d:d.termType==="DefaultGraph"?h="DEFAULT":h=`GRAPH <${d.value}>`,c.push(`${o?"DROP":"CLEAR"} ${a?"":"SILENT "}${h}`)}await this.endpointFetcher.fetchUpdate(this.url,c.join("; "))}async createGraphs(r,a){const o=[];for(const l of r)o.push(`CREATE${a?"":" SILENT"} GRAPH <${l.value}>`);await this.endpointFetcher.fetchUpdate(this.url,o.join("; "))}};return xf.QuadDestinationSparql=s,xf}var LC;function hY(){if(LC)return Rf;LC=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.ActorRdfUpdateHypermediaSparql=void 0;const t=ZT(),e=b7();let u=class extends t.ActorRdfUpdateHypermedia{constructor(n){super(n,"sparql")}async testMetadata(n){if(!n.forceDestinationType&&!n.metadata.sparqlService&&!(this.checkUrlSuffixSparql&&n.url.endsWith("/sparql"))&&!(this.checkUrlSuffixUpdate&&n.url.endsWith("/update")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql or /update.`);return!0}async run(n){return this.logInfo(n.context,`Identified as sparql destination: ${n.url}`),{destination:new e.QuadDestinationSparql(n.metadata.sparqlService||n.url,n.context,this.mediatorHttp)}}};return Rf.ActorRdfUpdateHypermediaSparql=u,Rf}var MC;function pY(){return MC||(MC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(hY(),t),u(b7(),t)}(Y2)),Y2}var tw={},Nf={},FC;function yY(){if(FC)return Nf;FC=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.ActorQueryOperationAsk=void 0;const t=wt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"ask")}async testOperation(s,n){return!0}async runOperation(s,n){const r=await this.mediatorQueryOperation.mediate({operation:s.input,context:n}),{bindingsStream:a}=t.ActorQueryOperation.getSafeBindings(r);return{type:"boolean",execute:async()=>(await a.take(1).toArray()).length===1}}};return Nf.ActorQueryOperationAsk=e,Nf}var qC;function bY(){return qC||(qC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(yY(),t)}(tw)),tw}var rw={},Cf={},BC;function gY(){if(BC)return Cf;BC=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.ActorQueryOperationBgpJoin=void 0;const t=wt(),e=Ot();let u=class g7 extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"bgp")}async testOperation(n,r){return!0}async runOperation(n,r){return this.mediatorQueryOperation.mediate({operation:g7.FACTORY.createJoin(n.patterns),context:r})}};return Cf.ActorQueryOperationBgpJoin=u,u.FACTORY=new e.Factory,Cf}var UC;function mY(){return UC||(UC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(gY(),t)}(rw)),rw}var nw={},jf={},HC;function _Y(){if(HC)return jf;HC=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.ActorQueryOperationDistinctHash=void 0;const t=wt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"distinct")}async testOperation(s,n){return!0}async runOperation(s,n){const r=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:s.input,context:n}));return{type:"bindings",bindingsStream:r.bindingsStream.filter(await this.newHashFilter(n)),metadata:r.metadata}}async newHashFilter(s){const{hashFunction:n}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:s}),r={};return a=>{const o=n(a);return!(o in r)&&(r[o]=!0)}}};return jf.ActorQueryOperationDistinctHash=e,jf}var $C;function vY(){return $C||($C=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(_Y(),t)}(nw)),nw}var iw={},Lf={},Mf={},QC;function m7(){if(QC)return Mf;QC=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.BindingsToQuadsIterator=void 0;const t=Nt(),e=Et(),u=un(),s=new e.DataFactory;let n=class O0 extends t.MultiTransformIterator{constructor(a,o){super(o,{autoStart:!1}),this.template=a,this.blankNodeCounter=0}static bindTerm(a,o){return o.termType==="Variable"?a.get(o):o}static bindQuad(a,o){try{return(0,u.mapTermsNested)(o,l=>{const c=O0.bindTerm(a,l);if(!c)throw new Error("Unbound term");return c})}catch{}}static localizeBlankNode(a,o){return o.termType==="BlankNode"?s.blankNode(`${o.value}${a}`):o}static localizeQuad(a,o){return(0,u.mapTermsNested)(o,l=>O0.localizeBlankNode(a,l))}bindTemplate(a,o,l){return o.map(O0.localizeQuad.bind(null,l)).map(d=>O0.bindQuad.bind(null,a)(d)).filter(Boolean)}_createTransformer(a){return new t.ArrayIterator(this.bindTemplate(a,this.template,this.blankNodeCounter++),{autoStart:!1})}};return Mf.BindingsToQuadsIterator=n,Mf}var VC;function wY(){if(VC)return Lf;VC=1,Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.ActorQueryOperationConstruct=void 0;const t=wt(),e=un(),u=Ot(),s=m7();let n=class _7 extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"construct")}static getVariables(a){return(0,e.uniqTerms)([].concat.apply([],a.map(o=>(0,e.getVariables)((0,e.getTermsNested)(o)))))}async testOperation(a,o){return!0}async runOperation(a,o){const l=_7.getVariables(a.template),c={type:u.Algebra.types.PROJECT,input:a.input,variables:l},d=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:c,context:o})),h=new s.BindingsToQuadsIterator(a.template,d.bindingsStream);return{metadata:()=>d.metadata().then(p=>({...p,order:void 0,cardinality:{type:p.cardinality.type,value:p.cardinality.value*a.template.length},canContainUndefs:!1,availableOrders:void 0})),quadStream:h,type:"quads"}}};return Lf.ActorQueryOperationConstruct=n,Lf}var kC;function v7(){return kC||(kC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(wY(),t),u(m7(),t)}(iw)),iw}var aw={},Ff={},zC;function SY(){if(zC)return Ff;zC=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.ActorQueryOperationFromQuad=void 0;const t=wt(),e=Ot();let u=class hr extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"from")}static copyOperation(n,r){const a={};for(const o of Object.keys(n))Array.isArray(n[o])&&o!=="template"?o==="variables"?a[o]=n[o]:a[o]=n[o].map(r):hr.ALGEBRA_TYPES.includes(n[o].type)?a[o]=r(n[o]):a[o]=n[o];return a}static applyOperationDefaultGraph(n,r){if(n.type==="bgp"&&n.patterns.length>0||n.type==="path"||n.type==="pattern"){if(n.type==="bgp")return hr.joinOperations(n.patterns.map(o=>{if(o.graph.termType!=="DefaultGraph")return hr.FACTORY.createBgp([o]);const l=r.map(c=>hr.FACTORY.createBgp([Object.assign(hr.FACTORY.createPattern(o.subject,o.predicate,o.object,c),{metadata:o.metadata})]));return hr.unionOperations(l)}));if(n.graph.termType!=="DefaultGraph")return n;const a=r.map(o=>n.type==="path"?hr.FACTORY.createPath(n.subject,n.predicate,n.object,o):Object.assign(hr.FACTORY.createPattern(n.subject,n.predicate,n.object,o),{metadata:n.metadata}));return hr.unionOperations(a)}return hr.copyOperation(n,a=>this.applyOperationDefaultGraph(a,r))}static applyOperationNamedGraph(n,r,a){if(n.type==="bgp"&&n.patterns.length>0||n.type==="path"||n.type==="pattern"){const o=n.type==="bgp"?n.patterns[0].graph:n.graph;if(o.termType==="DefaultGraph")return{type:e.Algebra.types.BGP,patterns:[]};if(o.termType==="Variable"){if(r.length===1){const c=r[0],d={};d[`?${o.value}`]=c;const h=hr.FACTORY.createValues([o],[d]);let f;return n.type==="bgp"?f=hr.FACTORY.createBgp(n.patterns.map(p=>hr.FACTORY.createPattern(p.subject,p.predicate,p.object,c))):n.type==="path"?f=hr.FACTORY.createPath(n.subject,n.predicate,n.object,c):f=hr.FACTORY.createPattern(n.subject,n.predicate,n.object,c),hr.FACTORY.createJoin([h,f])}return hr.unionOperations(r.map(c=>hr.applyOperationNamedGraph(n,[c],a)))}return[...r,...a].some(c=>c.equals(o))?n:{type:e.Algebra.types.BGP,patterns:[]}}return hr.copyOperation(n,o=>this.applyOperationNamedGraph(o,r,a))}static joinOperations(n){if(n.length===1)return n[0];if(n.length>1)return hr.FACTORY.createJoin(n);throw new Error("A join can only be applied on at least one operation")}static unionOperations(n){if(n.length===1)return n[0];if(n.length>1)return hr.FACTORY.createUnion(n);throw new Error("A union can only be applied on at least one operation")}static createOperation(n){let r=n.input;return n.default.length>0&&(r=hr.applyOperationDefaultGraph(r,n.default)),(n.named.length>0||n.default.length>0)&&(r=hr.applyOperationNamedGraph(r,n.named,n.default)),r}async testOperation(n,r){return!0}async runOperation(n,r){const a=hr.createOperation(n);return this.mediatorQueryOperation.mediate({operation:a,context:r})}};return Ff.ActorQueryOperationFromQuad=u,u.FACTORY=new e.Factory,u.ALGEBRA_TYPES=Object.keys(e.Algebra.types).map(s=>e.Algebra.types[s]),Ff}var GC;function TY(){return GC||(GC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(SY(),t)}(aw)),aw}var sw={},qf={},WC;function AY(){if(WC)return qf;WC=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.ActorQueryOperationProject=void 0;const t=wt(),e=ET(),u=Et(),s=new u.DataFactory;let n=class extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"project")}async testOperation(a,o){return!0}async runOperation(a,o){const l=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:a.input,context:o})),c=await l.metadata(),d=a.variables,h=c.variables.filter(b=>!d.some(m=>b.value===m.value)),f=d.filter(b=>!c.variables.some(m=>b.value===m.value));if(f.length>0)throw new Error(`Variables '${f.map(b=>`?${b.value}`)}' are used in the projection result, but are not assigned.`);let p=h.length===0?l.bindingsStream:l.bindingsStream.map(b=>{for(const m of h)b=b.delete(m);return b}),y=0;return p=p.map(b=>{y++;const m=new Map;return b.map(g=>{if(g instanceof e.BlankNodeBindingsScoped){let v=m.get(g.value);return v||(v=s.blankNode(`${g.value}${y}`),m.set(g.value,v)),v}return g})}),{type:"bindings",bindingsStream:p,metadata:async()=>({...c,variables:d})}}};return qf.ActorQueryOperationProject=n,qf}var JC;function EY(){return JC||(JC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(AY(),t)}(sw)),sw}var ow={},Bf={},Uf={},XC;function is(){var f,p,b,m,g,v,_,w,S,A,D,L,E,O,P,j,U,M,q,Q,Z,K,fe,X,he,xe,l3,ae,Oe,Ne,ge,de,w7,$,N,R,T,Da,B,Na,V,d3,z,Y,q1,ce,B1,Ie,pr,qe,f3,F,R0,re,Ca,Re,h3;if(XC)return Uf;XC=1,Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.LRUCache=void 0;const t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,e=new Set,u=typeof process=="object"&&process?process:{},s=(ke,me,Se,W)=>{typeof u.emitWarning=="function"?u.emitWarning(ke,me,Se,W):console.error(`[${Se}] ${me}: ${ke}`)};let n=globalThis.AbortController,r=globalThis.AbortSignal;if(typeof n>"u"){r=class{constructor(){wr(this,"onabort");wr(this,"_onabort",[]);wr(this,"reason");wr(this,"aborted",!1)}addEventListener(W,we){this._onabort.push(we)}},n=class{constructor(){wr(this,"signal",new r);me()}abort(W){var we,Te;if(!this.signal.aborted){this.signal.reason=W,this.signal.aborted=!0;for(const Le of this.signal._onabort)Le(W);(Te=(we=this.signal).onabort)==null||Te.call(we,W)}}};let ke=((f=u.env)==null?void 0:f.LRU_CACHE_IGNORE_AC_WARNING)!=="1";const me=()=>{ke&&(ke=!1,s("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",me))}}const a=ke=>!e.has(ke),o=ke=>ke&&ke===Math.floor(ke)&&ke>0&&isFinite(ke),l=ke=>o(ke)?ke<=Math.pow(2,8)?Uint8Array:ke<=Math.pow(2,16)?Uint16Array:ke<=Math.pow(2,32)?Uint32Array:ke<=Number.MAX_SAFE_INTEGER?c:null:null;class c extends Array{constructor(me){super(me),this.fill(0)}}const y=class y{constructor(me,Se){wr(this,"heap");wr(this,"length");if(!_e(y,p))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new Se(me),this.length=0}static create(me){const Se=l(me);if(!Se)return[];_t(y,p,!0);const W=new y(me,Se);return _t(y,p,!1),W}push(me){this.heap[this.length++]=me}pop(){return this.heap[--this.length]}};p=new WeakMap,xt(y,p,!1);let d=y;const Qe=class Qe{constructor(me){xt(this,xe);xt(this,de);xt(this,T);xt(this,B);xt(this,V);xt(this,Y);xt(this,ce);xt(this,Ie);xt(this,qe);xt(this,F);xt(this,re);xt(this,Re);xt(this,b,void 0);xt(this,m,void 0);xt(this,g,void 0);xt(this,v,void 0);xt(this,_,void 0);xt(this,w,void 0);wr(this,"ttl");wr(this,"ttlResolution");wr(this,"ttlAutopurge");wr(this,"updateAgeOnGet");wr(this,"updateAgeOnHas");wr(this,"allowStale");wr(this,"noDisposeOnSet");wr(this,"noUpdateTTL");wr(this,"maxEntrySize");wr(this,"sizeCalculation");wr(this,"noDeleteOnFetchRejection");wr(this,"noDeleteOnStaleGet");wr(this,"allowStaleOnFetchAbort");wr(this,"allowStaleOnFetchRejection");wr(this,"ignoreFetchAbort");xt(this,S,void 0);xt(this,A,void 0);xt(this,D,void 0);xt(this,L,void 0);xt(this,E,void 0);xt(this,O,void 0);xt(this,P,void 0);xt(this,j,void 0);xt(this,U,void 0);xt(this,M,void 0);xt(this,q,void 0);xt(this,Q,void 0);xt(this,Z,void 0);xt(this,K,void 0);xt(this,fe,void 0);xt(this,X,void 0);xt(this,he,void 0);xt(this,ae,()=>{});xt(this,Oe,()=>{});xt(this,Ne,()=>{});xt(this,ge,()=>!1);xt(this,$,me=>{});xt(this,N,(me,Se,W)=>{});xt(this,R,(me,Se,W,we)=>{if(W||we)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});wr(this,z,"LRUCache");const{max:Se=0,ttl:W,ttlResolution:we=1,ttlAutopurge:Te,updateAgeOnGet:Le,updateAgeOnHas:$e,allowStale:We,dispose:tt,disposeAfter:lt,noDisposeOnSet:ut,noUpdateTTL:le,maxSize:C=0,maxEntrySize:ee=0,sizeCalculation:pe,fetchMethod:De,memoMethod:Ue,noDeleteOnFetchRejection:Fe,noDeleteOnStaleGet:Ye,allowStaleOnFetchRejection:Ve,allowStaleOnFetchAbort:Je,ignoreFetchAbort:nt}=me;if(Se!==0&&!o(Se))throw new TypeError("max option must be a nonnegative integer");const yt=Se?l(Se):Array;if(!yt)throw new Error("invalid max value: "+Se);if(_t(this,b,Se),_t(this,m,C),this.maxEntrySize=ee||_e(this,m),this.sizeCalculation=pe,this.sizeCalculation){if(!_e(this,m)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Ue!==void 0&&typeof Ue!="function")throw new TypeError("memoMethod must be a function if defined");if(_t(this,w,Ue),De!==void 0&&typeof De!="function")throw new TypeError("fetchMethod must be a function if specified");if(_t(this,_,De),_t(this,X,!!De),_t(this,D,new Map),_t(this,L,new Array(Se).fill(void 0)),_t(this,E,new Array(Se).fill(void 0)),_t(this,O,new yt(Se)),_t(this,P,new yt(Se)),_t(this,j,0),_t(this,U,0),_t(this,M,d.create(Se)),_t(this,S,0),_t(this,A,0),typeof tt=="function"&&_t(this,g,tt),typeof lt=="function"?(_t(this,v,lt),_t(this,q,[])):(_t(this,v,void 0),_t(this,q,void 0)),_t(this,fe,!!_e(this,g)),_t(this,he,!!_e(this,v)),this.noDisposeOnSet=!!ut,this.noUpdateTTL=!!le,this.noDeleteOnFetchRejection=!!Fe,this.allowStaleOnFetchRejection=!!Ve,this.allowStaleOnFetchAbort=!!Je,this.ignoreFetchAbort=!!nt,this.maxEntrySize!==0){if(_e(this,m)!==0&&!o(_e(this,m)))throw new TypeError("maxSize must be a positive integer if specified");if(!o(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");ct(this,de,w7).call(this)}if(this.allowStale=!!We,this.noDeleteOnStaleGet=!!Ye,this.updateAgeOnGet=!!Le,this.updateAgeOnHas=!!$e,this.ttlResolution=o(we)||we===0?we:1,this.ttlAutopurge=!!Te,this.ttl=W||0,this.ttl){if(!o(this.ttl))throw new TypeError("ttl must be a positive integer if specified");ct(this,xe,l3).call(this)}if(_e(this,b)===0&&this.ttl===0&&_e(this,m)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!_e(this,b)&&!_e(this,m)){const ft="LRU_CACHE_UNBOUNDED";a(ft)&&(e.add(ft),s("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",ft,Qe))}}static unsafeExposeInternals(me){return{starts:_e(me,Z),ttls:_e(me,K),sizes:_e(me,Q),keyMap:_e(me,D),keyList:_e(me,L),valList:_e(me,E),next:_e(me,O),prev:_e(me,P),get head(){return _e(me,j)},get tail(){return _e(me,U)},free:_e(me,M),isBackgroundFetch:Se=>{var W;return ct(W=me,Ie,pr).call(W,Se)},backgroundFetch:(Se,W,we,Te)=>{var Le;return ct(Le=me,ce,B1).call(Le,Se,W,we,Te)},moveToTail:Se=>{var W;return ct(W=me,F,R0).call(W,Se)},indexes:Se=>{var W;return ct(W=me,T,Da).call(W,Se)},rindexes:Se=>{var W;return ct(W=me,B,Na).call(W,Se)},isStale:Se=>{var W;return _e(W=me,ge).call(W,Se)}}}get max(){return _e(this,b)}get maxSize(){return _e(this,m)}get calculatedSize(){return _e(this,A)}get size(){return _e(this,S)}get fetchMethod(){return _e(this,_)}get memoMethod(){return _e(this,w)}get dispose(){return _e(this,g)}get disposeAfter(){return _e(this,v)}getRemainingTTL(me){return _e(this,D).has(me)?1/0:0}*entries(){for(const me of ct(this,T,Da).call(this))_e(this,E)[me]!==void 0&&_e(this,L)[me]!==void 0&&!ct(this,Ie,pr).call(this,_e(this,E)[me])&&(yield[_e(this,L)[me],_e(this,E)[me]])}*rentries(){for(const me of ct(this,B,Na).call(this))_e(this,E)[me]!==void 0&&_e(this,L)[me]!==void 0&&!ct(this,Ie,pr).call(this,_e(this,E)[me])&&(yield[_e(this,L)[me],_e(this,E)[me]])}*keys(){for(const me of ct(this,T,Da).call(this)){const Se=_e(this,L)[me];Se!==void 0&&!ct(this,Ie,pr).call(this,_e(this,E)[me])&&(yield Se)}}*rkeys(){for(const me of ct(this,B,Na).call(this)){const Se=_e(this,L)[me];Se!==void 0&&!ct(this,Ie,pr).call(this,_e(this,E)[me])&&(yield Se)}}*values(){for(const me of ct(this,T,Da).call(this))_e(this,E)[me]!==void 0&&!ct(this,Ie,pr).call(this,_e(this,E)[me])&&(yield _e(this,E)[me])}*rvalues(){for(const me of ct(this,B,Na).call(this))_e(this,E)[me]!==void 0&&!ct(this,Ie,pr).call(this,_e(this,E)[me])&&(yield _e(this,E)[me])}[Symbol.iterator](){return this.entries()}find(me,Se={}){for(const W of ct(this,T,Da).call(this)){const we=_e(this,E)[W],Te=ct(this,Ie,pr).call(this,we)?we.__staleWhileFetching:we;if(Te!==void 0&&me(Te,_e(this,L)[W],this))return this.get(_e(this,L)[W],Se)}}forEach(me,Se=this){for(const W of ct(this,T,Da).call(this)){const we=_e(this,E)[W],Te=ct(this,Ie,pr).call(this,we)?we.__staleWhileFetching:we;Te!==void 0&&me.call(Se,Te,_e(this,L)[W],this)}}rforEach(me,Se=this){for(const W of ct(this,B,Na).call(this)){const we=_e(this,E)[W],Te=ct(this,Ie,pr).call(this,we)?we.__staleWhileFetching:we;Te!==void 0&&me.call(Se,Te,_e(this,L)[W],this)}}purgeStale(){let me=!1;for(const Se of ct(this,B,Na).call(this,{allowStale:!0}))_e(this,ge).call(this,Se)&&(ct(this,re,Ca).call(this,_e(this,L)[Se],"expire"),me=!0);return me}info(me){const Se=_e(this,D).get(me);if(Se===void 0)return;const W=_e(this,E)[Se],we=ct(this,Ie,pr).call(this,W)?W.__staleWhileFetching:W;if(we===void 0)return;const Te={value:we};if(_e(this,K)&&_e(this,Z)){const Le=_e(this,K)[Se],$e=_e(this,Z)[Se];if(Le&&$e){const We=Le-(t.now()-$e);Te.ttl=We,Te.start=Date.now()}}return _e(this,Q)&&(Te.size=_e(this,Q)[Se]),Te}dump(){const me=[];for(const Se of ct(this,T,Da).call(this,{allowStale:!0})){const W=_e(this,L)[Se],we=_e(this,E)[Se],Te=ct(this,Ie,pr).call(this,we)?we.__staleWhileFetching:we;if(Te===void 0||W===void 0)continue;const Le={value:Te};if(_e(this,K)&&_e(this,Z)){Le.ttl=_e(this,K)[Se];const $e=t.now()-_e(this,Z)[Se];Le.start=Math.floor(Date.now()-$e)}_e(this,Q)&&(Le.size=_e(this,Q)[Se]),me.unshift([W,Le])}return me}load(me){this.clear();for(const[Se,W]of me){if(W.start){const we=Date.now()-W.start;W.start=t.now()-we}this.set(Se,W.value,W)}}set(me,Se,W={}){var le,C,ee,pe,De;if(Se===void 0)return this.delete(me),this;const{ttl:we=this.ttl,start:Te,noDisposeOnSet:Le=this.noDisposeOnSet,sizeCalculation:$e=this.sizeCalculation,status:We}=W;let{noUpdateTTL:tt=this.noUpdateTTL}=W;const lt=_e(this,R).call(this,me,Se,W.size||0,$e);if(this.maxEntrySize&<>this.maxEntrySize)return We&&(We.set="miss",We.maxEntrySizeExceeded=!0),ct(this,re,Ca).call(this,me,"set"),this;let ut=_e(this,S)===0?void 0:_e(this,D).get(me);if(ut===void 0)ut=_e(this,S)===0?_e(this,U):_e(this,M).length!==0?_e(this,M).pop():_e(this,S)===_e(this,b)?ct(this,Y,q1).call(this,!1):_e(this,S),_e(this,L)[ut]=me,_e(this,E)[ut]=Se,_e(this,D).set(me,ut),_e(this,O)[_e(this,U)]=ut,_e(this,P)[ut]=_e(this,U),_t(this,U,ut),$y(this,S)._++,_e(this,N).call(this,ut,lt,We),We&&(We.set="add"),tt=!1;else{ct(this,F,R0).call(this,ut);const Ue=_e(this,E)[ut];if(Se!==Ue){if(_e(this,X)&&ct(this,Ie,pr).call(this,Ue)){Ue.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:Fe}=Ue;Fe!==void 0&&!Le&&(_e(this,fe)&&((le=_e(this,g))==null||le.call(this,Fe,me,"set")),_e(this,he)&&((C=_e(this,q))==null||C.push([Fe,me,"set"])))}else Le||(_e(this,fe)&&((ee=_e(this,g))==null||ee.call(this,Ue,me,"set")),_e(this,he)&&((pe=_e(this,q))==null||pe.push([Ue,me,"set"])));if(_e(this,$).call(this,ut),_e(this,N).call(this,ut,lt,We),_e(this,E)[ut]=Se,We){We.set="replace";const Fe=Ue&&ct(this,Ie,pr).call(this,Ue)?Ue.__staleWhileFetching:Ue;Fe!==void 0&&(We.oldValue=Fe)}}else We&&(We.set="update")}if(we!==0&&!_e(this,K)&&ct(this,xe,l3).call(this),_e(this,K)&&(tt||_e(this,Ne).call(this,ut,we,Te),We&&_e(this,Oe).call(this,We,ut)),!Le&&_e(this,he)&&_e(this,q)){const Ue=_e(this,q);let Fe;for(;Fe=Ue==null?void 0:Ue.shift();)(De=_e(this,v))==null||De.call(this,...Fe)}return this}pop(){var me;try{for(;_e(this,S);){const Se=_e(this,E)[_e(this,j)];if(ct(this,Y,q1).call(this,!0),ct(this,Ie,pr).call(this,Se)){if(Se.__staleWhileFetching)return Se.__staleWhileFetching}else if(Se!==void 0)return Se}}finally{if(_e(this,he)&&_e(this,q)){const Se=_e(this,q);let W;for(;W=Se==null?void 0:Se.shift();)(me=_e(this,v))==null||me.call(this,...W)}}}has(me,Se={}){const{updateAgeOnHas:W=this.updateAgeOnHas,status:we}=Se,Te=_e(this,D).get(me);if(Te!==void 0){const Le=_e(this,E)[Te];if(ct(this,Ie,pr).call(this,Le)&&Le.__staleWhileFetching===void 0)return!1;if(_e(this,ge).call(this,Te))we&&(we.has="stale",_e(this,Oe).call(this,we,Te));else return W&&_e(this,ae).call(this,Te),we&&(we.has="hit",_e(this,Oe).call(this,we,Te)),!0}else we&&(we.has="miss");return!1}peek(me,Se={}){const{allowStale:W=this.allowStale}=Se,we=_e(this,D).get(me);if(we===void 0||!W&&_e(this,ge).call(this,we))return;const Te=_e(this,E)[we];return ct(this,Ie,pr).call(this,Te)?Te.__staleWhileFetching:Te}async fetch(me,Se={}){const{allowStale:W=this.allowStale,updateAgeOnGet:we=this.updateAgeOnGet,noDeleteOnStaleGet:Te=this.noDeleteOnStaleGet,ttl:Le=this.ttl,noDisposeOnSet:$e=this.noDisposeOnSet,size:We=0,sizeCalculation:tt=this.sizeCalculation,noUpdateTTL:lt=this.noUpdateTTL,noDeleteOnFetchRejection:ut=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:le=this.allowStaleOnFetchRejection,ignoreFetchAbort:C=this.ignoreFetchAbort,allowStaleOnFetchAbort:ee=this.allowStaleOnFetchAbort,context:pe,forceRefresh:De=!1,status:Ue,signal:Fe}=Se;if(!_e(this,X))return Ue&&(Ue.fetch="get"),this.get(me,{allowStale:W,updateAgeOnGet:we,noDeleteOnStaleGet:Te,status:Ue});const Ye={allowStale:W,updateAgeOnGet:we,noDeleteOnStaleGet:Te,ttl:Le,noDisposeOnSet:$e,size:We,sizeCalculation:tt,noUpdateTTL:lt,noDeleteOnFetchRejection:ut,allowStaleOnFetchRejection:le,allowStaleOnFetchAbort:ee,ignoreFetchAbort:C,status:Ue,signal:Fe};let Ve=_e(this,D).get(me);if(Ve===void 0){Ue&&(Ue.fetch="miss");const Je=ct(this,ce,B1).call(this,me,Ve,Ye,pe);return Je.__returned=Je}else{const Je=_e(this,E)[Ve];if(ct(this,Ie,pr).call(this,Je)){const Ir=W&&Je.__staleWhileFetching!==void 0;return Ue&&(Ue.fetch="inflight",Ir&&(Ue.returnedStale=!0)),Ir?Je.__staleWhileFetching:Je.__returned=Je}const nt=_e(this,ge).call(this,Ve);if(!De&&!nt)return Ue&&(Ue.fetch="hit"),ct(this,F,R0).call(this,Ve),we&&_e(this,ae).call(this,Ve),Ue&&_e(this,Oe).call(this,Ue,Ve),Je;const yt=ct(this,ce,B1).call(this,me,Ve,Ye,pe),et=yt.__staleWhileFetching!==void 0&&W;return Ue&&(Ue.fetch=nt?"stale":"refresh",et&&nt&&(Ue.returnedStale=!0)),et?yt.__staleWhileFetching:yt.__returned=yt}}async forceFetch(me,Se={}){const W=await this.fetch(me,Se);if(W===void 0)throw new Error("fetch() returned undefined");return W}memo(me,Se={}){const W=_e(this,w);if(!W)throw new Error("no memoMethod provided to constructor");const{context:we,forceRefresh:Te,...Le}=Se,$e=this.get(me,Le);if(!Te&&$e!==void 0)return $e;const We=W(me,$e,{options:Le,context:we});return this.set(me,We,Le),We}get(me,Se={}){const{allowStale:W=this.allowStale,updateAgeOnGet:we=this.updateAgeOnGet,noDeleteOnStaleGet:Te=this.noDeleteOnStaleGet,status:Le}=Se,$e=_e(this,D).get(me);if($e!==void 0){const We=_e(this,E)[$e],tt=ct(this,Ie,pr).call(this,We);return Le&&_e(this,Oe).call(this,Le,$e),_e(this,ge).call(this,$e)?(Le&&(Le.get="stale"),tt?(Le&&W&&We.__staleWhileFetching!==void 0&&(Le.returnedStale=!0),W?We.__staleWhileFetching:void 0):(Te||ct(this,re,Ca).call(this,me,"expire"),Le&&W&&(Le.returnedStale=!0),W?We:void 0)):(Le&&(Le.get="hit"),tt?We.__staleWhileFetching:(ct(this,F,R0).call(this,$e),we&&_e(this,ae).call(this,$e),We))}else Le&&(Le.get="miss")}delete(me){return ct(this,re,Ca).call(this,me,"delete")}clear(){return ct(this,Re,h3).call(this,"delete")}};z=Symbol.toStringTag,b=new WeakMap,m=new WeakMap,g=new WeakMap,v=new WeakMap,_=new WeakMap,w=new WeakMap,S=new WeakMap,A=new WeakMap,D=new WeakMap,L=new WeakMap,E=new WeakMap,O=new WeakMap,P=new WeakMap,j=new WeakMap,U=new WeakMap,M=new WeakMap,q=new WeakMap,Q=new WeakMap,Z=new WeakMap,K=new WeakMap,fe=new WeakMap,X=new WeakMap,he=new WeakMap,xe=new WeakSet,l3=function(){const me=new c(_e(this,b)),Se=new c(_e(this,b));_t(this,K,me),_t(this,Z,Se),_t(this,Ne,(Te,Le,$e=t.now())=>{if(Se[Te]=Le!==0?$e:0,me[Te]=Le,Le!==0&&this.ttlAutopurge){const We=setTimeout(()=>{_e(this,ge).call(this,Te)&&ct(this,re,Ca).call(this,_e(this,L)[Te],"expire")},Le+1);We.unref&&We.unref()}}),_t(this,ae,Te=>{Se[Te]=me[Te]!==0?t.now():0}),_t(this,Oe,(Te,Le)=>{if(me[Le]){const $e=me[Le],We=Se[Le];if(!$e||!We)return;Te.ttl=$e,Te.start=We,Te.now=W||we();const tt=Te.now-We;Te.remainingTTL=$e-tt}});let W=0;const we=()=>{const Te=t.now();if(this.ttlResolution>0){W=Te;const Le=setTimeout(()=>W=0,this.ttlResolution);Le.unref&&Le.unref()}return Te};this.getRemainingTTL=Te=>{const Le=_e(this,D).get(Te);if(Le===void 0)return 0;const $e=me[Le],We=Se[Le];if(!$e||!We)return 1/0;const tt=(W||we())-We;return $e-tt},_t(this,ge,Te=>{const Le=Se[Te],$e=me[Te];return!!$e&&!!Le&&(W||we())-Le>$e})},ae=new WeakMap,Oe=new WeakMap,Ne=new WeakMap,ge=new WeakMap,de=new WeakSet,w7=function(){const me=new c(_e(this,b));_t(this,A,0),_t(this,Q,me),_t(this,$,Se=>{_t(this,A,_e(this,A)-me[Se]),me[Se]=0}),_t(this,R,(Se,W,we,Te)=>{if(ct(this,Ie,pr).call(this,W))return 0;if(!o(we))if(Te){if(typeof Te!="function")throw new TypeError("sizeCalculation must be a function");if(we=Te(W,Se),!o(we))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return we}),_t(this,N,(Se,W,we)=>{if(me[Se]=W,_e(this,m)){const Te=_e(this,m)-me[Se];for(;_e(this,A)>Te;)ct(this,Y,q1).call(this,!0)}_t(this,A,_e(this,A)+me[Se]),we&&(we.entrySize=W,we.totalCalculatedSize=_e(this,A))})},$=new WeakMap,N=new WeakMap,R=new WeakMap,T=new WeakSet,Da=function*({allowStale:me=this.allowStale}={}){if(_e(this,S))for(let Se=_e(this,U);!(!ct(this,V,d3).call(this,Se)||((me||!_e(this,ge).call(this,Se))&&(yield Se),Se===_e(this,j)));)Se=_e(this,P)[Se]},B=new WeakSet,Na=function*({allowStale:me=this.allowStale}={}){if(_e(this,S))for(let Se=_e(this,j);!(!ct(this,V,d3).call(this,Se)||((me||!_e(this,ge).call(this,Se))&&(yield Se),Se===_e(this,U)));)Se=_e(this,O)[Se]},V=new WeakSet,d3=function(me){return me!==void 0&&_e(this,D).get(_e(this,L)[me])===me},Y=new WeakSet,q1=function(me){var Te,Le;const Se=_e(this,j),W=_e(this,L)[Se],we=_e(this,E)[Se];return _e(this,X)&&ct(this,Ie,pr).call(this,we)?we.__abortController.abort(new Error("evicted")):(_e(this,fe)||_e(this,he))&&(_e(this,fe)&&((Te=_e(this,g))==null||Te.call(this,we,W,"evict")),_e(this,he)&&((Le=_e(this,q))==null||Le.push([we,W,"evict"]))),_e(this,$).call(this,Se),me&&(_e(this,L)[Se]=void 0,_e(this,E)[Se]=void 0,_e(this,M).push(Se)),_e(this,S)===1?(_t(this,j,_t(this,U,0)),_e(this,M).length=0):_t(this,j,_e(this,O)[Se]),_e(this,D).delete(W),$y(this,S)._--,Se},ce=new WeakSet,B1=function(me,Se,W,we){const Te=Se===void 0?void 0:_e(this,E)[Se];if(ct(this,Ie,pr).call(this,Te))return Te;const Le=new n,{signal:$e}=W;$e==null||$e.addEventListener("abort",()=>Le.abort($e.reason),{signal:Le.signal});const We={signal:Le.signal,options:W,context:we},tt=(pe,De=!1)=>{const{aborted:Ue}=Le.signal,Fe=W.ignoreFetchAbort&&pe!==void 0;if(W.status&&(Ue&&!De?(W.status.fetchAborted=!0,W.status.fetchError=Le.signal.reason,Fe&&(W.status.fetchAbortIgnored=!0)):W.status.fetchResolved=!0),Ue&&!Fe&&!De)return ut(Le.signal.reason);const Ye=C;return _e(this,E)[Se]===C&&(pe===void 0?Ye.__staleWhileFetching?_e(this,E)[Se]=Ye.__staleWhileFetching:ct(this,re,Ca).call(this,me,"fetch"):(W.status&&(W.status.fetchUpdated=!0),this.set(me,pe,We.options))),pe},lt=pe=>(W.status&&(W.status.fetchRejected=!0,W.status.fetchError=pe),ut(pe)),ut=pe=>{const{aborted:De}=Le.signal,Ue=De&&W.allowStaleOnFetchAbort,Fe=Ue||W.allowStaleOnFetchRejection,Ye=Fe||W.noDeleteOnFetchRejection,Ve=C;if(_e(this,E)[Se]===C&&(!Ye||Ve.__staleWhileFetching===void 0?ct(this,re,Ca).call(this,me,"fetch"):Ue||(_e(this,E)[Se]=Ve.__staleWhileFetching)),Fe)return W.status&&Ve.__staleWhileFetching!==void 0&&(W.status.returnedStale=!0),Ve.__staleWhileFetching;if(Ve.__returned===Ve)throw pe},le=(pe,De)=>{var Fe;const Ue=(Fe=_e(this,_))==null?void 0:Fe.call(this,me,Te,We);Ue&&Ue instanceof Promise&&Ue.then(Ye=>pe(Ye===void 0?void 0:Ye),De),Le.signal.addEventListener("abort",()=>{(!W.ignoreFetchAbort||W.allowStaleOnFetchAbort)&&(pe(void 0),W.allowStaleOnFetchAbort&&(pe=Ye=>tt(Ye,!0)))})};W.status&&(W.status.fetchDispatched=!0);const C=new Promise(le).then(tt,lt),ee=Object.assign(C,{__abortController:Le,__staleWhileFetching:Te,__returned:void 0});return Se===void 0?(this.set(me,ee,{...We.options,status:void 0}),Se=_e(this,D).get(me)):_e(this,E)[Se]=ee,ee},Ie=new WeakSet,pr=function(me){if(!_e(this,X))return!1;const Se=me;return!!Se&&Se instanceof Promise&&Se.hasOwnProperty("__staleWhileFetching")&&Se.__abortController instanceof n},qe=new WeakSet,f3=function(me,Se){_e(this,P)[Se]=me,_e(this,O)[me]=Se},F=new WeakSet,R0=function(me){me!==_e(this,U)&&(me===_e(this,j)?_t(this,j,_e(this,O)[me]):ct(this,qe,f3).call(this,_e(this,P)[me],_e(this,O)[me]),ct(this,qe,f3).call(this,_e(this,U),me),_t(this,U,me))},re=new WeakSet,Ca=function(me,Se){var we,Te,Le,$e;let W=!1;if(_e(this,S)!==0){const We=_e(this,D).get(me);if(We!==void 0)if(W=!0,_e(this,S)===1)ct(this,Re,h3).call(this,Se);else{_e(this,$).call(this,We);const tt=_e(this,E)[We];if(ct(this,Ie,pr).call(this,tt)?tt.__abortController.abort(new Error("deleted")):(_e(this,fe)||_e(this,he))&&(_e(this,fe)&&((we=_e(this,g))==null||we.call(this,tt,me,Se)),_e(this,he)&&((Te=_e(this,q))==null||Te.push([tt,me,Se]))),_e(this,D).delete(me),_e(this,L)[We]=void 0,_e(this,E)[We]=void 0,We===_e(this,U))_t(this,U,_e(this,P)[We]);else if(We===_e(this,j))_t(this,j,_e(this,O)[We]);else{const lt=_e(this,P)[We];_e(this,O)[lt]=_e(this,O)[We];const ut=_e(this,O)[We];_e(this,P)[ut]=_e(this,P)[We]}$y(this,S)._--,_e(this,M).push(We)}}if(_e(this,he)&&((Le=_e(this,q))!=null&&Le.length)){const We=_e(this,q);let tt;for(;tt=We==null?void 0:We.shift();)($e=_e(this,v))==null||$e.call(this,...tt)}return W},Re=new WeakSet,h3=function(me){var Se,W,we;for(const Te of ct(this,B,Na).call(this,{allowStale:!0})){const Le=_e(this,E)[Te];if(ct(this,Ie,pr).call(this,Le))Le.__abortController.abort(new Error("deleted"));else{const $e=_e(this,L)[Te];_e(this,fe)&&((Se=_e(this,g))==null||Se.call(this,Le,$e,me)),_e(this,he)&&((W=_e(this,q))==null||W.push([Le,$e,me]))}}if(_e(this,D).clear(),_e(this,E).fill(void 0),_e(this,L).fill(void 0),_e(this,K)&&_e(this,Z)&&(_e(this,K).fill(0),_e(this,Z).fill(0)),_e(this,Q)&&_e(this,Q).fill(0),_t(this,j,0),_t(this,U,0),_e(this,M).length=0,_t(this,A,0),_t(this,S,0),_e(this,he)&&_e(this,q)){const Te=_e(this,q);let Le;for(;Le=Te==null?void 0:Te.shift();)(we=_e(this,v))==null||we.call(this,...Le)}};let h=Qe;return Uf.LRUCache=h,Uf}var KC;function OY(){if(KC)return Bf;KC=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.ActorQueryOperationReducedHash=void 0;const t=wt(),e=is();let u=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"reduced")}async testOperation(n,r){return!0}async runOperation(n,r){const a=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:n.input,context:r}));return{type:"bindings",bindingsStream:a.bindingsStream.filter(await this.newHashFilter(r)),metadata:a.metadata}}async newHashFilter(n){const{hashFunction:r}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:n}),a=new e.LRUCache({max:this.cacheSize});return o=>{const l=r(o);return a.has(l)?!1:(a.set(l,!0),!0)}}};return Bf.ActorQueryOperationReducedHash=u,Bf}var YC;function RY(){return YC||(YC=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(OY(),t)}(ow)),ow}var uw={},Hf={},ZC;function xY(){if(ZC)return Hf;ZC=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.ActorQueryOperationSlice=void 0;const t=wt(),e=Lt;let u=class extends t.ActorQueryOperationTypedMediated{constructor(n){super(n,"slice")}async testOperation(n,r){return!0}async runOperation(n,r){n.length&&(r=r.set(e.KeysQueryOperation.limitIndicator,n.length));const a=await this.mediatorQueryOperation.mediate({operation:n.input,context:r});if(a.type==="bindings")return{type:"bindings",bindingsStream:this.sliceStream(a.bindingsStream,n),metadata:this.sliceMetadata(a,n)};if(a.type==="quads")return{type:"quads",quadStream:this.sliceStream(a.quadStream,n),metadata:this.sliceMetadata(a,n)};throw new Error(`Invalid query output type: Expected 'bindings' or 'quads' but got '${a.type}'`)}sliceStream(n,r){const a=!!r.length||r.length===0,{start:o}=r,l=a?r.start+r.length-1:Number.POSITIVE_INFINITY;return n.transform({offset:o,limit:Math.max(l-o+1,0),autoStart:!1})}sliceMetadata(n,r){const a=!!r.length||r.length===0;return()=>n.metadata().then(o=>{const l={...o.cardinality};return Number.isFinite(l.value)&&(l.value=Math.max(0,l.value-r.start),a&&(l.value=Math.min(l.value,r.length))),{...o,cardinality:l}})}};return Hf.ActorQueryOperationSlice=u,Hf}var e8;function IY(){return e8||(e8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(xY(),t)}(uw)),uw}var cw={},$f={},t8;function PY(){if(t8)return $f;t8=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.ActorQueryOperationUnion=void 0;const t=wt(),e=jn(),u=Nt(),s=un();let n=class U1 extends t.ActorQueryOperationTypedMediated{constructor(a){super(a,"union")}static unionVariables(a){return(0,s.uniqTerms)(a.flat())}static async unionMetadata(a,o,l,c){let d=(await c.mediate({mode:"initialize",context:l})).metadata;for(const f of a)d={...f,...(await c.mediate({mode:"append",accumulatedMetadata:d,appendingMetadata:f,context:l})).metadata};d.state=new e.MetadataValidationState;const h=()=>d.state.invalidate();for(const f of a)f.state.addInvalidateListener(h);return o&&(d.variables=U1.unionVariables(a.map(f=>f.variables))),d}async testOperation(a,o){return!0}async runOperation(a,o){const l=await Promise.all(a.input.map(d=>this.mediatorQueryOperation.mediate({operation:d,context:o})));let c;for(const d of l)if(c===void 0)c=d.type;else if(c!==d.type)throw new Error(`Unable to union ${c} and ${d.type}`);if(c==="bindings"||a.input.length===0){const d=l.map(t.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new u.UnionIterator(d.map(p=>p.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>U1.unionMetadata(p,!0,o,this.mediatorRdfMetadataAccumulate))}}if(c==="quads"){const d=l.map(t.ActorQueryOperation.getSafeQuads);return{type:"quads",quadStream:new u.UnionIterator(d.map(p=>p.quadStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>U1.unionMetadata(p,!1,o,this.mediatorRdfMetadataAccumulate))}}throw new Error(`Unable to union ${c}`)}};return $f.ActorQueryOperationUnion=n,$f}var r8;function S7(){return r8||(r8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(PY(),t)}(cw)),cw}var lw={},Qf={},dw={},Vf={},kf={},n8;function T7(){if(n8)return kf;n8=1,Object.defineProperty(kf,"__esModule",{value:!0}),kf.PathVariableObjectIterator=void 0;const t=wt(),e=Nt(),u=Et(),s=er(),n=Ot(),r=new u.DataFactory,a=new n.Factory;let o=class extends e.BufferedIterator{constructor(c,d,h,f,p,y,b=16){super({autoStart:!0}),this.subject=c,this.predicate=d,this.graph=h,this.context=f,this.mediatorQueryOperation=p,this.maxRunningOperations=b,this.termHashes=new Map,this.runningOperations=[],this.pendingOperations=[],this._push(this.subject,y)}_end(c){for(const d of this.runningOperations)d.destroy();super._end(c)}_push(c,d=!0){let h;if(d&&(h=(0,s.termToString)(c),this.termHashes.has(h)))return;const f=r.variable("b");this.pendingOperations.push({variable:f,operation:a.createPath(c,this.predicate,f,this.graph)}),h&&(this.termHashes.set(h,c),super._push(c))}_read(c,d){const h=this;(async function(){for(;h.runningOperations.lengthh.destroy(g)),m.on("readable",()=>{h.readable=!0,h._fillBufferAsync()}),m.on("end",()=>{h.runningOperations.splice(h.runningOperations.indexOf(m),1),h.readable=!0,h._fillBufferAsync()})),h.setProperty("metadata",b.metadata)}let f=0,p;for(;f!==(f=c);)for(let y=0;y0;y++)(p=h.runningOperations[y].read())!==null&&(c--,h._push(p));h.runningOperations.length===0&&h.pendingOperations.length===0&&h.close()})().then(()=>{d()},f=>this.destroy(f))}};return kf.PathVariableObjectIterator=o,kf}var i8;function DY(){if(i8)return Vf;i8=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.ActorAbstractPath=void 0;const t=wt(),e=Lt,u=Nt(),s=Et(),n=er(),r=Ot(),a=T7(),o=new s.DataFactory;let l=class ha extends t.ActorQueryOperationTypedMediated{constructor(d,h){super(d,"path"),this.predicateType=h}async testOperation(d,h){if(d.predicate.type!==this.predicateType)throw new Error(`This Actor only supports ${this.predicateType} Path operations.`);return!0}generateVariable(d,h){return h?d&&(d.subject.value===h||d.object.value===h)?this.generateVariable(d,`${h}b`):o.variable(h):this.generateVariable(d,"b")}async isPathArbitraryLengthDistinct(d,h){return d.get(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey)?(d=d.set(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!1),{context:d,operation:void 0}):(d=d.set(e.KeysQueryOperation.isPathArbitraryLengthDistinctKey,!0),{context:d,operation:t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:ha.FACTORY.createDistinct(h),context:d}))})}async predicateStarGraphVariable(d,h,f,p,y,b){const m=this.getPathSources(f),g=this.generateVariable(ha.FACTORY.createPath(d,f,h,p)),v=ha.FACTORY.createUnion([this.assignPatternSources(ha.FACTORY.createPattern(d,g,h,p),m),this.assignPatternSources(ha.FACTORY.createPattern(h,g,d,p),m)]),_=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:y,operation:v})),w=new Set;return{bindingsStream:new u.MultiTransformIterator(_.bindingsStream,{multiTransform:A=>{const D=A.get(p);return w.has(D.value)?new u.EmptyIterator:(w.add(D.value),new u.TransformIterator(async()=>{const L=new u.BufferedIterator;return await this.getObjectsPredicateStar(d,f,D,y,{},L,{count:0}),L.transform({transform(E,O,P){P(b.bindings([[h,E],[p,D]])),O()}})},{maxBufferSize:128}))},autoStart:!1}),metadata:_.metadata}}async getObjectsPredicateStarEval(d,h,f,p,y,b,m){if(p.termType==="Variable")return this.predicateStarGraphVariable(d,f,h,p,y,m);const g=new a.PathVariableObjectIterator(d,h,p,y,this.mediatorQueryOperation,b);return{bindingsStream:g.transform({autoStart:!1,transform(_,w,S){S(m.bindings([[f,_]])),w()}}),async metadata(){const _=await new Promise(w=>{g.getProperty("metadata",S=>w(S()))});return _.cardinality.value++,_}}}async getObjectsPredicateStar(d,h,f,p,y,b,m){const g=(0,n.termToString)(d);if(y[g])return;b._push(d),y[g]=d,m.count++;const v=this.generateVariable(),_=ha.FACTORY.createPath(d,h,v,f),w=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:_,context:p}));return w.bindingsStream.on("data",async S=>{const A=S.get(v);await this.getObjectsPredicateStar(A,h,f,p,y,b,m)}),w.bindingsStream.on("end",()=>{--m.count===0&&b.close()}),w.metadata}async getSubjectAndObjectBindingsPredicateStar(d,h,f,p,y,b,m,g,v,_,w,S){const A=(0,n.termToString)(p)+(0,n.termToString)(b);if(v[A])return;if(w.count++,v[A]=!0,_._push(S.bindings([[d,f],[h,p]])),A in g){const L=await g[A];for(const E of L)await this.getSubjectAndObjectBindingsPredicateStar(d,h,f,E,y,b,m,g,v,_,w,S);--w.count===0&&_.close();return}const D=new Promise(async(L,E)=>{const O=[],P=this.generateVariable(),j=ha.FACTORY.createPath(p,y,P,b),U=t.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:j,context:m}));U.bindingsStream.on("data",async M=>{const q=M.get(P);O.push(q),await this.getSubjectAndObjectBindingsPredicateStar(d,h,f,q,y,b,m,g,v,_,w,S)}),U.bindingsStream.on("error",E),U.bindingsStream.on("end",()=>{--w.count===0&&_.close(),L(O)})});g[A]=D}getPathSources(d){switch(d.type){case r.Algebra.types.ALT:case r.Algebra.types.SEQ:return d.input.flatMap(h=>this.getPathSources(h));case r.Algebra.types.INV:case r.Algebra.types.ONE_OR_MORE_PATH:case r.Algebra.types.ZERO_OR_MORE_PATH:case r.Algebra.types.ZERO_OR_ONE_PATH:return this.getPathSources(d.path);case r.Algebra.types.LINK:case r.Algebra.types.NPS:{const h=t.ActorQueryOperation.getOperationSource(d);if(!h)throw new Error("Could not find a required source on a link path operation");return[h]}}}assignPatternSources(d,h){if(h.length===0)throw new Error("Attempted to assign zero sources to a pattern during property path handling");return h.length===1?t.ActorQueryOperation.assignOperationSource(d,h[0]):ha.FACTORY.createUnion(h.map(f=>t.ActorQueryOperation.assignOperationSource(d,f)),!0)}};return Vf.ActorAbstractPath=l,l.FACTORY=new r.Factory,Vf}var a8;function as(){return a8||(a8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(DY(),t),u(T7(),t)}(dw)),dw}var s8;function NY(){if(s8)return Qf;s8=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.ActorQueryOperationPathAlt=void 0;const t=as(),e=S7(),u=wt(),s=Nt(),n=Ot();let r=class extends t.ActorAbstractPath{constructor(o){super(o,n.Algebra.types.ALT)}async runOperation(o,l){const c=o.predicate,d=(await Promise.all(c.input.map(p=>this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createPath(o.subject,p,o.object,o.graph)})))).map(u.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new s.UnionIterator(d.map(p=>p.bindingsStream),{autoStart:!1}),metadata:()=>Promise.all(d.map(p=>p.metadata())).then(p=>e.ActorQueryOperationUnion.unionMetadata(p,!0,l,this.mediatorRdfMetadataAccumulate))}}};return Qf.ActorQueryOperationPathAlt=r,Qf}var o8;function CY(){return o8||(o8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(NY(),t)}(lw)),lw}var fw={},zf={},u8;function jY(){if(u8)return zf;u8=1,Object.defineProperty(zf,"__esModule",{value:!0}),zf.ActorQueryOperationPathInv=void 0;const t=as(),e=Ot();let u=class extends t.ActorAbstractPath{constructor(n){super(n,e.Algebra.types.INV)}async runOperation(n,r){const a=n.predicate,o=t.ActorAbstractPath.FACTORY.createPath(n.object,a.path,n.subject,n.graph);return this.mediatorQueryOperation.mediate({operation:o,context:r})}};return zf.ActorQueryOperationPathInv=u,zf}var c8;function LY(){return c8||(c8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(jY(),t)}(fw)),fw}var hw={},Gf={},l8;function MY(){if(l8)return Gf;l8=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.ActorQueryOperationPathLink=void 0;const t=as(),e=Ot();let u=class extends t.ActorAbstractPath{constructor(n){super(n,e.Algebra.types.LINK)}async runOperation(n,r){const a=n.predicate,o=Object.assign(t.ActorAbstractPath.FACTORY.createPattern(n.subject,a.iri,n.object,n.graph),{metadata:a.metadata});return this.mediatorQueryOperation.mediate({operation:o,context:r})}};return Gf.ActorQueryOperationPathLink=u,Gf}var d8;function FY(){return d8||(d8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(MY(),t)}(hw)),hw}var pw={},Wf={},f8;function qY(){if(f8)return Wf;f8=1,Object.defineProperty(Wf,"__esModule",{value:!0}),Wf.ActorQueryOperationPathNps=void 0;const t=as(),e=wt(),u=Ot();let s=class extends t.ActorAbstractPath{constructor(r){super(r,u.Algebra.types.NPS)}async runOperation(r,a){const o=r.predicate,l=this.generateVariable(r),c=Object.assign(t.ActorAbstractPath.FACTORY.createPattern(r.subject,l,r.object,r.graph),{metadata:o.metadata}),d=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:c,context:a}));return{type:"bindings",bindingsStream:d.bindingsStream.map(f=>o.iris.some(p=>p.equals(f.get(l)))?null:f.delete(l)),metadata:d.metadata}}};return Wf.ActorQueryOperationPathNps=s,Wf}var h8;function BY(){return h8||(h8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(qY(),t)}(pw)),pw}var yw={},Jf={},p8;function UY(){if(p8)return Jf;p8=1,Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.ActorQueryOperationClear=void 0;const t=wt(),e=Et(),u=new e.DataFactory;let s=class extends t.ActorQueryOperationTypedMediated{constructor(r){super(r,"clear")}async testOperation(r,a){return t.ActorQueryOperation.throwOnReadOnly(a),!0}async runOperation(r,a){let o;r.source==="DEFAULT"?o=u.defaultGraph():typeof r.source=="string"?o=r.source:o=[r.source];const{execute:l}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:o,requireExistence:!r.silent,dropGraphs:!1},context:a});return{type:"void",execute:l}}};return Jf.ActorQueryOperationClear=s,Jf}var y8;function HY(){return y8||(y8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(UY(),t)}(yw)),yw}var bw={},Xf={},b8;function $Y(){if(b8)return Xf;b8=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.ActorQueryOperationUpdateCompositeUpdate=void 0;const t=wt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"compositeupdate")}async testOperation(s,n){return t.ActorQueryOperation.throwOnReadOnly(n),!0}async runOperation(s,n){return{type:"void",execute:()=>(async()=>{for(const a of s.updates)await t.ActorQueryOperation.getSafeVoid(await this.mediatorQueryOperation.mediate({operation:a,context:n})).execute()})()}}};return Xf.ActorQueryOperationUpdateCompositeUpdate=e,Xf}var g8;function QY(){return g8||(g8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u($Y(),t)}(bw)),bw}var gw={},Kf={},m8;function VY(){if(m8)return Kf;m8=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.ActorQueryOperationCreate=void 0;const t=wt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"create")}async testOperation(s,n){return t.ActorQueryOperation.throwOnReadOnly(n),!0}async runOperation(s,n){const{execute:r}=await this.mediatorUpdateQuads.mediate({createGraphs:{graphs:[s.source],requireNonExistence:!s.silent},context:n});return{type:"void",execute:r}}};return Kf.ActorQueryOperationCreate=e,Kf}var _8;function kY(){return _8||(_8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(VY(),t)}(gw)),gw}var mw={},Yf={},v8;function zY(){if(v8)return Yf;v8=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.ActorQueryOperationDrop=void 0;const t=wt(),e=Et(),u=new e.DataFactory;let s=class extends t.ActorQueryOperationTypedMediated{constructor(r){super(r,"drop")}async testOperation(r,a){return t.ActorQueryOperation.throwOnReadOnly(a),!0}async runOperation(r,a){let o;r.source==="DEFAULT"?o=u.defaultGraph():typeof r.source=="string"?o=r.source:o=[r.source];const{execute:l}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:o,requireExistence:!r.silent,dropGraphs:!0},context:a});return{type:"void",execute:l}}};return Yf.ActorQueryOperationDrop=s,Yf}var w8;function GY(){return w8||(w8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(zY(),t)}(mw)),mw}var _w={},Zf={},S8;function WY(){if(S8)return Zf;S8=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.ActorQueryOperationLoad=void 0;const t=wt(),e=Lt,u=Et(),s=Ot(),n=new u.DataFactory;let r=class A7 extends t.ActorQueryOperationTypedMediated{constructor(o){super(o,"load"),this.factory=new s.Factory}async testOperation(o,l){return t.ActorQueryOperation.throwOnReadOnly(l),!0}async runOperation(o,l){let c=l;o.silent&&(c=c.set(e.KeysInitQuery.lenient,!0));const{querySource:d}=await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{value:o.source.value},context:c});let f=A7.getSafeQuads(await this.mediatorQueryOperation.mediate({operation:this.factory.createConstruct(t.ActorQueryOperation.assignOperationSource(this.factory.createPattern(n.variable("s"),n.variable("p"),n.variable("o")),d),[this.factory.createPattern(n.variable("s"),n.variable("p"),n.variable("o"))]),context:c})).quadStream;o.destination&&(f=f.map(y=>n.quad(y.subject,y.predicate,y.object,o.destination)));const{execute:p}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:f,context:l});return{type:"void",execute:p}}};return Zf.ActorQueryOperationLoad=r,Zf}var T8;function JY(){return T8||(T8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(WY(),t)}(_w)),_w}var vw={},eh={},A8;function XY(){if(A8)return eh;A8=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.ActorQueryOperationJoin=void 0;const t=wt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"join")}async testOperation(s,n){return!0}async runOperation(s,n){const r=(await Promise.all(s.input.map(async a=>({output:await this.mediatorQueryOperation.mediate({operation:a,context:n}),operation:a})))).map(({output:a,operation:o})=>({output:t.ActorQueryOperation.getSafeBindings(a),operation:o}));return this.mediatorJoin.mediate({type:"inner",entries:r,context:n})}};return eh.ActorQueryOperationJoin=e,eh}var E8;function KY(){return E8||(E8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(XY(),t)}(vw)),vw}var ww={},th={},O8;function YY(){if(O8)return th;O8=1,Object.defineProperty(th,"__esModule",{value:!0}),th.ActorQueryOperationMinus=void 0;const t=wt();let e=class extends t.ActorQueryOperationTypedMediated{constructor(s){super(s,"minus")}async testOperation(s,n){return!0}async runOperation(s,n){const r=(await Promise.all(s.input.map(async a=>({output:await this.mediatorQueryOperation.mediate({operation:a,context:n}),operation:a})))).map(({output:a,operation:o})=>({output:t.ActorQueryOperation.getSafeBindings(a),operation:o}));return this.mediatorJoin.mediate({type:"minus",entries:r,context:n})}};return th.ActorQueryOperationMinus=e,th}var R8;function ZY(){return R8||(R8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(YY(),t)}(ww)),ww}var Sw={},rh={},x8;function eZ(){if(x8)return rh;x8=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.ActorQueryOperationPathSeq=void 0;const t=as(),e=wt(),u=Ot();let s=class extends t.ActorAbstractPath{constructor(r){super(r,u.Algebra.types.SEQ)}async runOperation(r,a){const o=r.predicate;let l=r.subject;const c=[],d=await Promise.all(o.input.map((p,y)=>{const b=y===o.input.length-1?r.object:this.generateVariable(r,`b${y}`),m=t.ActorAbstractPath.FACTORY.createPath(l,p,b,r.graph),g=this.mediatorQueryOperation.mediate({context:a,operation:m});return l=b,y({output:e.ActorQueryOperation.getSafeBindings(await p),operation:y}))),h=e.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:"inner",entries:d,context:a}));return{type:"bindings",bindingsStream:h.bindingsStream.transform({transform(p,y,b){for(const m of c)p=p.delete(m);b(p),y()}}),async metadata(){const p=await h.metadata(),y=p.variables.filter(b=>!c.some(m=>m.value===b.value));return{...p,variables:y}}}}};return rh.ActorQueryOperationPathSeq=s,rh}var I8;function tZ(){return I8||(I8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(eZ(),t)}(Sw)),Sw}var Tw={},nh={},P8;function rZ(){if(P8)return nh;P8=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.ActorRdfJoinMultiSmallest=void 0;const t=wt(),e=Ln(),u=Ot();let s=class E7 extends e.ActorRdfJoin{constructor(r){super(r,{logicalType:"inner",physicalName:"multi-smallest",limitEntries:3,limitEntriesMin:!0,canHandleUndefs:!0,isLeaf:!1})}async sortJoinEntries(r,a){return(await this.mediatorJoinEntriesSort.mediate({entries:r,context:a})).entries}async getOutput(r){const a=await this.sortJoinEntries(await e.ActorRdfJoin.getEntriesWithMetadatas([...r.entries]),r.context),o=a[0],l=a[1];a.splice(0,2);const c={output:t.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:r.type,entries:[o,l],context:r.context})),operation:E7.FACTORY.createJoin([o.operation,l.operation],!1)};return a.push(c),{result:await this.mediatorJoin.mediate({type:r.type,entries:a,context:r.context})}}async getJoinCoefficients(r,a){a=[...a],a=(await this.sortJoinEntries(r.entries.map((d,h)=>({...d,metadata:a[h]})),r.context)).map(d=>d.metadata);const l=e.ActorRdfJoin.getRequestInitialTimes(a),c=e.ActorRdfJoin.getRequestItemTimes(a);return{iterations:a[0].cardinality.value*a[1].cardinality.value*a.slice(2).reduce((d,h)=>d*h.cardinality.value,1),persistedItems:0,blockingItems:0,requestTime:l[0]+a[0].cardinality.value*c[0]+l[1]+a[1].cardinality.value*c[1]+a.slice(2).reduce((d,h,f)=>d+l.slice(2)[f]+h.cardinality.value*c.slice(2)[f],0)}}};return nh.ActorRdfJoinMultiSmallest=s,s.FACTORY=new u.Factory,nh}var D8;function nZ(){return D8||(D8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(rZ(),t)}(Tw)),Tw}var Aw={},ih={},Ew={},ah={},sh={},N8;function O7(){if(N8)return sh;N8=1,Object.defineProperty(sh,"__esModule",{value:!0}),sh.bindingsToString=void 0;const t=er();function e(u){const s={};for(const n of u.keys())s[n.value]=(0,t.termToString)(u.get(n));return JSON.stringify(s,null," ")}return sh.bindingsToString=e,sh}var C8;function R7(){if(C8)return ah;C8=1,Object.defineProperty(ah,"__esModule",{value:!0}),ah.Bindings=void 0;const t=ot,e=AT,u=O7();let s=class ni{constructor(r,a,o){this.type="bindings",this.dataFactory=r,this.entries=a,this.contextHolder=o}has(r){return this.entries.has(typeof r=="string"?r:r.value)}get(r){return this.entries.get(typeof r=="string"?r:r.value)}set(r,a){return new ni(this.dataFactory,this.entries.set(typeof r=="string"?r:r.value,a),this.contextHolder)}delete(r){return new ni(this.dataFactory,this.entries.delete(typeof r=="string"?r:r.value),this.contextHolder)}keys(){return this.mapIterable(this.iteratorToIterable(this.entries.keys()),r=>this.dataFactory.variable(r))}values(){return this.iteratorToIterable(this.entries.values())}forEach(r){for(const[a,o]of this.entries.entries())r(o,this.dataFactory.variable(a))}get size(){return this.entries.size}[Symbol.iterator](){return this.mapIterable(this.iteratorToIterable(this.entries.entries()),([r,a])=>[this.dataFactory.variable(r),a])[Symbol.iterator]()}equals(r){var a;if(!r)return!1;if(this===r)return!0;if(this.size!==r.size)return!1;for(const o of this.keys())if(!((a=this.get(o))!=null&&a.equals(r.get(o))))return!1;return!0}filter(r){return new ni(this.dataFactory,(0,e.Map)(this.entries.filter((a,o)=>r(a,this.dataFactory.variable(o)))),this.contextHolder)}map(r){return new ni(this.dataFactory,(0,e.Map)(this.entries.map((a,o)=>r(a,this.dataFactory.variable(o)))),this.contextHolder)}merge(r){const a=new Set([...this.iteratorToIterable(this.entries.keys()),...[...r.keys()].map(l=>l.value)]),o=[];for(const l of a){const c=this.entries.get(l),d=r.get(this.dataFactory.variable(l));if(c&&d&&!c.equals(d))return;const h=c||d;o.push([l,h])}return this.createBindingsWithContexts(o,r)}mergeWith(r,a){const o=new Set([...this.iteratorToIterable(this.entries.keys()),...[...a.keys()].map(c=>c.value)]),l=[];for(const c of o){const d=this.dataFactory.variable(c),h=this.entries.get(c),f=a.get(d);let p;h&&f&&!h.equals(f)?p=r(h,f,d):p=h||f,l.push([c,p])}return this.createBindingsWithContexts(l,a)}createBindingsWithContexts(r,a){if(this.contextHolder&&this.contextHolder.context){let o=this.contextHolder.context;return"contextHolder"in a&&a.contextHolder&&a.contextHolder.context&&(o=ni.mergeContext(this.contextHolder.contextMergeHandlers,o,a.contextHolder.context)),new ni(this.dataFactory,(0,e.Map)(r),{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:o})}return new ni(this.dataFactory,(0,e.Map)(r),a.contextHolder)}static mergeContext(r,a,o){const l=[...a.keys(),...o.keys()],c={},d={},h=new Set(o.keys().map(p=>p.name)),f=a.keys().filter(p=>h.has(p.name));for(const p of l){if(d[p.name]===1)continue;d[p.name]=1;const y=f.some(b=>b.name===p.name);if(r[p.name]&&y){c[p.name]=r[p.name].run(a.get(p),o.get(p));continue}if(!(!r[p.name]&&y)){if(!a.get(p)){c[p.name]=o.get(p);continue}o.get(p)||(c[p.name]=a.get(p))}}return new t.ActionContext(c)}setContextEntry(r,a){return this.setContextEntryRaw(r,a)}setContextEntryRaw(r,a){var o;return this.contextHolder&&this.contextHolder.context?new ni(this.dataFactory,this.entries,{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:this.contextHolder.context.set(r,a)}):new ni(this.dataFactory,this.entries,{contextMergeHandlers:((o=this.contextHolder)==null?void 0:o.contextMergeHandlers)??{},context:new t.ActionContext().set(r,a)})}deleteContextEntry(r){return this.deleteContextEntryRaw(r)}deleteContextEntryRaw(r){var a;return this.contextHolder?new ni(this.dataFactory,this.entries,{contextMergeHandlers:this.contextHolder.contextMergeHandlers,context:(a=this.contextHolder.context)==null?void 0:a.delete(r)}):new ni(this.dataFactory,this.entries)}getContext(){var r;return(r=this.contextHolder)==null?void 0:r.context}getContextEntry(r){var a;return(a=this.getContext())==null?void 0:a.get(r)}toString(){return(0,u.bindingsToString)(this)}*mapIterable(r,a){for(const o of r)yield a(o)}iteratorToIterable(r){return{[Symbol.iterator]:()=>r}}};return ah.Bindings=s,ah}var oh={},j8;function iZ(){if(j8)return oh;j8=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.BindingsFactory=void 0;const t=AT,e=Et(),u=R7();let s=class x7{constructor(r=new e.DataFactory,a){this.dataFactory=r,this.contextMergeHandlers=a}static async create(r,a){return new x7(new e.DataFactory,(await r.mediate({context:a})).mergeHandlers)}bindings(r=[]){return new u.Bindings(this.dataFactory,(0,t.Map)(r.map(([a,o])=>[a.value,o])),this.contextMergeHandlers?{contextMergeHandlers:this.contextMergeHandlers}:void 0)}fromBindings(r){return this.bindings([...r])}fromRecord(r){return this.bindings(Object.entries(r).map(([a,o])=>[this.dataFactory.variable(a),o]))}};return oh.BindingsFactory=s,oh}var L8;function xr(){return L8||(L8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(R7(),t),u(iZ(),t),u(O7(),t)}(Ew)),Ew}var M8;function aZ(){if(M8)return ih;M8=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.ActorRdfJoinMultiSmallestFilterBindings=void 0;const t=xr(),e=wt(),u=Ln(),s=Lt,n=Nt(),r=Ot();let a=class I7 extends u.ActorRdfJoin{constructor(l){super(l,{logicalType:"inner",physicalName:"multi-smallest-filter-bindings",limitEntries:2,limitEntriesMin:!0,isLeaf:!1})}async sortJoinEntries(l,c){let{entries:d}=await this.mediatorJoinEntriesSort.mediate({entries:l,context:c});d=d.sort((m,g)=>m.operationModified&&!g.operationModified?-1:0);const h=d.splice(0,1)[0];let f,p=-1,y=0;for(const[m,g]of d.entries()){const v=h.metadata.variables.filter(_=>g.metadata.variables.some(w=>_.equals(w))).length;(!f||v>y||v===y&&(g.metadata.variables.lengthh.metadata.variables.some(L=>D.equals(L))),b={},m=p.clone().map(D=>D.filter((L,E)=>y.some(O=>O.equals(E)))).filter(D=>{const L=(0,t.bindingsToString)(D);return!(L in b)&&(b[L]=!0)}),g=new u.ChunkedIterator(m,this.blockSize,{autoStart:!1}),v=e.ActorQueryOperation.getOperationSource(h.operation),w={output:{type:"bindings",bindingsStream:new n.UnionIterator(g.map(D=>v.source.queryBindings(h.operation,v.context?l.context.merge(v.context):l.context,{filterBindings:{bindings:D,metadata:d.metadata}}))),metadata:h.output.metadata},operation:h.operation,operationModified:!0};h.output.bindingsStream.destroy();const S={output:e.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({type:l.type,entries:[d,w],context:l.context.set(s.KeysRdfJoin.lastPhysicalJoin,this.physicalName)})),operation:I7.FACTORY.createJoin([d.operation,w.operation],!1),operationModified:!0},A=f;return A.unshift(S),{result:await this.mediatorJoin.mediate({type:l.type,entries:A,context:l.context}),physicalPlanMetadata:{firstIndex:c.indexOf(d),secondIndex:c.indexOf(h)}}}async getJoinCoefficients(l,c){if(l.context.get(s.KeysRdfJoin.lastPhysicalJoin)===this.physicalName)throw new Error(`Actor ${this.name} can not be called recursively`);c=[...c];const{first:d,second:h,remaining:f}=await this.sortJoinEntries(l.entries.map((w,S)=>({...w,metadata:c[S]})),l.context),p=e.ActorQueryOperation.getOperationSource(h.operation);if(!p)throw new Error(`Actor ${this.name} can only process if entries[1] has a source`);const y=h.operation,b=await p.source.getSelectorShape(l.context);if(!e.ActorQueryOperation.doesShapeAcceptOperation(b,y,{filterBindings:!0}))throw new Error(`Actor ${this.name} can only process if entries[1] accept filterBindings`);c=[d.metadata,h.metadata,...f.map(w=>w.metadata)];const m=u.ActorRdfJoin.getRequestInitialTimes(c),g=u.ActorRdfJoin.getRequestItemTimes(c),{selectivity:v}=await this.mediatorJoinSelectivity.mediate({entries:[d,h],context:l.context}),_=f.reduce((w,S)=>w*S.metadata.cardinality.value*this.selectivityModifier,1);return{iterations:v*this.selectivityModifier*h.metadata.cardinality.value*_,persistedItems:d.metadata.cardinality.value,blockingItems:d.metadata.cardinality.value,requestTime:m[0]+c[0].cardinality.value*g[0]+m[1]+_*g[1]}}};return ih.ActorRdfJoinMultiSmallestFilterBindings=a,a.FACTORY=new r.Factory,ih}var F8;function sZ(){return F8||(F8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(aZ(),t)}(Aw)),Aw}var Ow={},uh={},q8;function oZ(){if(q8)return uh;q8=1,Object.defineProperty(uh,"__esModule",{value:!0}),uh.ActorOptimizeQueryOperationFilterPushdown=void 0;const t=Ii(),e=un(),u=Ot();let s=class extends t.ActorOptimizeQueryOperation{constructor(r){super(r)}async test(r){return!0}async run(r){const a=this;return{operation:u.Util.mapOperation(r.operation,{filter(l,c){const d=a.getExpressionVariables(l.expression);return{recurse:!0,result:a.filterPushdown(l.expression,d,l.input,c,r.context)}}}),context:r.context}}getExpressionVariables(r){switch(r.expressionType){case u.Algebra.expressionTypes.AGGREGATE:case u.Algebra.expressionTypes.WILDCARD:throw new Error(`Getting expression variables is not supported for ${r.expressionType}`);case u.Algebra.expressionTypes.EXISTENCE:return u.Util.inScopeVariables(r.input);case u.Algebra.expressionTypes.NAMED:return[];case u.Algebra.expressionTypes.OPERATOR:return(0,e.uniqTerms)(r.args.flatMap(a=>this.getExpressionVariables(a)));case u.Algebra.expressionTypes.TERM:return r.term.termType==="Variable"?[r.term]:[]}}getOverlappingOperations(r,a){const o=[],l=[],c=[];for(const d of r.input){const h=u.Util.inScopeVariables(d);this.variablesSubSetOf(a,h)?o.push(d):this.variablesIntersect(a,h)?l.push(d):c.push(d)}return{fullyOverlapping:o,partiallyOverlapping:l,notOverlapping:c}}filterPushdown(r,a,o,l,c){switch(o.type){case u.Algebra.types.EXTEND:return this.variablesIntersect([o.variable],a)?l.createFilter(o,r):l.createExtend(this.filterPushdown(r,a,o.input,l,c),o.variable,o.expression);case u.Algebra.types.FILTER:return l.createFilter(this.filterPushdown(r,a,o.input,l,c),o.expression);case u.Algebra.types.JOIN:{if(o.input.length===0)return l.createFilter(o,r);const{fullyOverlapping:d,partiallyOverlapping:h,notOverlapping:f}=this.getOverlappingOperations(o,a),p=[];return this.logDebug(c,`Push down filter across join entries with ${d.length} fully overlapping, ${h.length} partially overlapping, and ${f.length} not overlapping`),d.length>0&&p.push(l.createJoin(d.map(y=>this.filterPushdown(r,a,y,l,c)))),h.length>0&&p.push(l.createFilter(l.createJoin(h,!1),r)),f.length>0&&p.push(...f),p.length===1?p[0]:l.createJoin(p)}case u.Algebra.types.NOP:return o;case u.Algebra.types.PROJECT:return this.variablesIntersect(o.variables,a)?l.createProject(this.filterPushdown(r,a,o.input,l,c),o.variables):o;case u.Algebra.types.UNION:{const{fullyOverlapping:d,partiallyOverlapping:h,notOverlapping:f}=this.getOverlappingOperations(o,a),p=[];return this.logDebug(c,`Push down filter across union entries with ${d.length} fully overlapping, ${h.length} partially overlapping, and ${f.length} not overlapping`),d.length>0&&p.push(l.createUnion(d.map(y=>this.filterPushdown(r,a,y,l,c)))),h.length>0&&p.push(l.createFilter(l.createUnion(h,!1),r)),f.length>0&&p.push(...f),p.length===1?p[0]:l.createUnion(p)}case u.Algebra.types.VALUES:return this.variablesIntersect(o.variables,a)?l.createFilter(o,r):o;case u.Algebra.types.LEFT_JOIN:case u.Algebra.types.MINUS:case u.Algebra.types.ALT:case u.Algebra.types.ASK:case u.Algebra.types.BGP:case u.Algebra.types.CONSTRUCT:case u.Algebra.types.DESCRIBE:case u.Algebra.types.DISTINCT:case u.Algebra.types.EXPRESSION:case u.Algebra.types.FROM:case u.Algebra.types.GRAPH:case u.Algebra.types.GROUP:case u.Algebra.types.INV:case u.Algebra.types.LINK:case u.Algebra.types.NPS:case u.Algebra.types.ONE_OR_MORE_PATH:case u.Algebra.types.ORDER_BY:case u.Algebra.types.PATTERN:case u.Algebra.types.REDUCED:case u.Algebra.types.SEQ:case u.Algebra.types.SERVICE:case u.Algebra.types.SLICE:case u.Algebra.types.PATH:case u.Algebra.types.ZERO_OR_MORE_PATH:case u.Algebra.types.ZERO_OR_ONE_PATH:case u.Algebra.types.COMPOSITE_UPDATE:case u.Algebra.types.DELETE_INSERT:case u.Algebra.types.LOAD:case u.Algebra.types.CLEAR:case u.Algebra.types.CREATE:case u.Algebra.types.DROP:case u.Algebra.types.ADD:case u.Algebra.types.MOVE:case u.Algebra.types.COPY:return l.createFilter(o,r)}}variablesIntersect(r,a){return r.some(o=>a.some(l=>o.equals(l)))}variablesSubSetOf(r,a){return r.length<=a.length&&r.every(o=>a.some(l=>o.equals(l)))}};return uh.ActorOptimizeQueryOperationFilterPushdown=s,uh}var B8;function uZ(){return B8||(B8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(oZ(),t)}(Ow)),Ow}var Rw={},ch={},Rs={},U8;function P7(){if(U8)return Rs;U8=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.ActorDereferenceHttpBase=Rs.mediaTypesToAcceptString=void 0;const t=UT(),e=rs(),u=eA(),s=Pi(),n=eo(),r=/^[^ ;]*/u;function a(l,c){const d="*/*;q=0.1",h=[],f=Object.entries(l).map(([y,b])=>({mediaType:y,priority:b})).sort((y,b)=>b.priority===y.priority?y.mediaType.localeCompare(b.mediaType):b.priority-y.priority);let p=f.length-1;for(const{mediaType:y,priority:b}of f){const m=y+(b===1?"":`;q=${b.toFixed(3).replace(/0*$/u,"")}`);if(p+m.length>c){for(;p+d.length>c;){const g=h.pop()??"";p-=g.length+1}h.push(d);break}h.push(m),p+=m.length}return h.length===0?"*/*":h.join(",")}Rs.mediaTypesToAcceptString=a;let o=class extends t.ActorDereference{constructor(c){super(c)}async test({url:c}){if(!/^https?:/u.test(c))throw new Error(`Cannot retrieve ${c} because it is not an HTTP(S) URL.`);return!0}async run(c){var g,v;let d=!0;const h=new u.Headers(c.headers);h.append("Accept",a(await((g=c.mediaTypes)==null?void 0:g.call(c))??{},this.getMaxAcceptHeaderLength()));let f;const p=Date.now();try{f=await this.mediatorHttp.mediate({context:c.context,init:{headers:h,method:c.method},input:c.url})}catch(_){return this.handleDereferenceErrors(c,_)}const y=(0,s.resolve)(f.url,c.url),b=Date.now()-p;if(f.status!==200){d=!1;const _=f.body?await n(e.ActorHttp.toNodeReadable(f.body)):"empty response";if(!c.acceptErrors){const w=new Error(`Could not retrieve ${c.url} (HTTP status ${f.status}): +${_}`);return this.handleDereferenceErrors(c,w,f.headers,b)}}const m=(v=r.exec(f.headers.get("content-type")??""))==null?void 0:v[0];return{url:y,data:d?e.ActorHttp.toNodeReadable(f.body):(0,t.emptyReadable)(),exists:d,requestTime:b,headers:f.headers,mediaType:m==="text/plain"?void 0:m}}};return Rs.ActorDereferenceHttpBase=o,Rs}var H8;function cZ(){if(H8)return ch;H8=1,Object.defineProperty(ch,"__esModule",{value:!0}),ch.ActorDereferenceHttp=void 0;const t=P7();class e extends t.ActorDereferenceHttpBase{getMaxAcceptHeaderLength(){return this.maxAcceptHeaderLengthBrowser}}return ch.ActorDereferenceHttp=e,ch}var $8;function lZ(){return $8||($8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(cZ(),t),u(P7(),t)}(Rw)),Rw}var xw={},lh={},Q8;function dZ(){if(Q8)return lh;Q8=1,Object.defineProperty(lh,"__esModule",{value:!0}),lh.ActorHttpProxy=void 0;const t=rs(),e=Lt;let u=class extends t.ActorHttp{constructor(n){super(n)}async test(n){const r=n.context.get(e.KeysHttpProxy.httpProxyHandler);if(!r)throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`);if(!await r.getProxy(n))throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`);return{time:Number.POSITIVE_INFINITY}}async run(n){const r=typeof n.input=="string"?n.input:n.input.url,a=n.context.get(e.KeysHttpProxy.httpProxyHandler),o=await this.mediatorHttp.mediate({...await a.getProxy(n),context:n.context.delete(e.KeysHttpProxy.httpProxyHandler)});return Object.defineProperty(o,"url",{configurable:!0,enumerable:!0,get:()=>o.headers.get("x-final-url")??r}),o}};return lh.ActorHttpProxy=u,lh}var dh={},V8;function fZ(){if(V8)return dh;V8=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.ProxyHandlerStatic=void 0;let t=class{constructor(u){this.prefixUrl=u}async getProxy(u){return{init:u.init,input:this.modifyInput(u.input)}}modifyInput(u){return typeof u=="string"?this.prefixUrl+u:new Request(this.prefixUrl+u.url,u)}};return dh.ProxyHandlerStatic=t,dh}var k8;function hZ(){return k8||(k8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(dZ(),t),u(fZ(),t)}(xw)),xw}var Iw={},fh={},z8;function pZ(){if(z8)return fh;z8=1,Object.defineProperty(fh,"__esModule",{value:!0}),fh.ActorContextPreprocessQuerySourceIdentify=void 0;const t=Sy(),e=Lt,u=ot,s=is();let n=class extends t.ActorContextPreprocess{constructor(a){super(a),this.cache=this.cacheSize?new s.LRUCache({max:this.cacheSize}):void 0;const o=this.cache;o&&this.httpInvalidator.addInvalidateListener(({url:l})=>l?o.delete(l):o.clear())}async test(a){return!0}async run(a){let o=a.context;if(o.has(e.KeysInitQuery.querySourcesUnidentified)){const l=a.context.get(e.KeysInitQuery.querySourcesUnidentified),c=await Promise.all(l.map(h=>this.expandSource(h))),d=await Promise.all(c.map(async h=>this.identifySource(h,a.context)));o=a.context.delete(e.KeysInitQuery.querySourcesUnidentified).set(e.KeysQueryOperation.querySources,d)}return{context:o}}async expandSource(a){return typeof a=="string"||"match"in a?{value:a}:{...a,context:(await this.mediatorContextPreprocess.mediate({context:u.ActionContext.ensureActionContext(a.context??{})})).context}}identifySource(a,o){let l;return typeof a.value=="string"&&this.cache&&(l=this.cache.get(a.value)),l||(l=this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:a,context:o}).then(({querySource:c})=>c),typeof a.value=="string"&&this.cache&&this.cache.set(a.value,l)),l}};return fh.ActorContextPreprocessQuerySourceIdentify=n,fh}var G8;function yZ(){return G8||(G8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(pZ(),t)}(Iw)),Iw}var Pw={},hh={},W8;function bZ(){if(W8)return hh;W8=1,Object.defineProperty(hh,"__esModule",{value:!0}),hh.ActorRdfUpdateQuadsHypermedia=void 0;const t=YT(),e=is();let u=class extends t.ActorRdfUpdateQuadsDestination{constructor(n){super(n),this.cache=this.cacheSize?new e.LRUCache({max:this.cacheSize}):void 0;const r=this.cache;r&&this.httpInvalidator.addInvalidateListener(({url:a})=>a?r.delete(a):r.clear())}async test(n){if(!(0,t.getContextDestinationUrl)((0,t.getContextDestination)(n.context)))throw new Error(`Actor ${this.name} can only update quads against a single destination URL.`);return!0}getDestination(n){const r=(0,t.getContextDestination)(n);let a=(0,t.getContextDestinationUrl)(r);if(this.cache&&this.cache.has(a))return this.cache.get(a);const o=(async()=>{var h;let l,c;try{const f=await this.mediatorDereferenceRdf.mediate({context:n,url:a,acceptErrors:!0});c=f.exists,a=f.url;const p=await this.mediatorMetadata.mediate({context:n,url:a,quads:f.data,triples:(h=f.metadata)==null?void 0:h.triples});l=(await this.mediatorMetadataExtract.mediate({context:n,url:a,metadata:p.metadata,headers:f.headers,requestTime:f.requestTime})).metadata}catch{l={},c=!1}const{destination:d}=await this.mediatorRdfUpdateHypermedia.mediate({context:n,url:a,metadata:l,exists:c,forceDestinationType:(0,t.getDataDestinationType)(r)});return d})();return this.cache&&this.cache.set(a,o),o}};return hh.ActorRdfUpdateQuadsHypermedia=u,hh}var J8;function gZ(){return J8||(J8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(bZ(),t)}(Pw)),Pw}var Dw={},ph={},X8;function mZ(){if(X8)return ph;X8=1,Object.defineProperty(ph,"__esModule",{value:!0}),ph.ActionObserverHttp=void 0;const t=ot;class e extends t.ActionObserver{constructor(s){super(s),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(s,n,r){this.requests++}}return ph.ActionObserverHttp=e,ph}var yh={},K8;function _Z(){if(K8)return yh;K8=1,Object.defineProperty(yh,"__esModule",{value:!0}),yh.ActorQueryResultSerializeSparqlJson=void 0;const t=Gi(),e=Nt(),u=Wt();let s=class x0 extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(r){super(r)}static bindingToJsonBindings(r){if(r.termType==="Literal"){const a=r,o={value:a.value,type:"literal"},{language:l,datatype:c}=a;return l?o["xml:lang"]=l:c&&c.value!=="http://www.w3.org/2001/XMLSchema#string"&&(o.datatype=c.value),o}return r.termType==="BlankNode"?{value:r.value,type:"bnode"}:r.termType==="Quad"?{value:{subject:x0.bindingToJsonBindings(r.subject),predicate:x0.bindingToJsonBindings(r.predicate),object:x0.bindingToJsonBindings(r.object)},type:"triple"}:{value:r.value,type:"uri"}}async testHandleChecked(r,a){if(!["bindings","boolean"].includes(r.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(r,a,o){const l=new u.Readable,c={};if(r.type==="bindings"){const d=await r.metadata();d.variables.length>0&&(c.vars=d.variables.map(h=>h.value))}if(l.push(`{"head": ${JSON.stringify(c)}, +`),r.type==="bindings"){const d=r.bindingsStream;l.push(`"results": { "bindings": [ +`);let h=!0;function*f(p){yield p()}l.wrap((0,e.wrap)(d).map(p=>{const y=`${h?"":`, +`}${JSON.stringify(Object.fromEntries([...p].map(([b,m])=>[b.value,x0.bindingToJsonBindings(m)])))}`;return h=!1,y}).append((0,e.wrap)(f(()=>` +]}${this.emitMetadata?`, +"metadata": { "httpRequests": ${this.httpObserver.requests} }`:""}} +`))))}else l.wrap((0,e.wrap)(r.execute().then(d=>[`"boolean":${d} +} +`])));return{data:l}}};return yh.ActorQueryResultSerializeSparqlJson=s,yh}var Y8;function Z8(){return Y8||(Y8=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(mZ(),t),u(_Z(),t)}(Dw)),Dw}var Nw={},bh={},e5;function vZ(){if(e5)return bh;e5=1,Object.defineProperty(bh,"__esModule",{value:!0}),bh.ActionObserverHttp=void 0;const t=ot;let e=class extends t.ActionObserver{constructor(s){super(s),this.requests=0,this.bus.subscribeObserver(this),this.httpInvalidator.addInvalidateListener(()=>{this.requests=0})}onRun(s,n,r){this.requests++}};return bh.ActionObserverHttp=e,bh}var gh={},t5;function wZ(){if(t5)return gh;t5=1,Object.defineProperty(gh,"__esModule",{value:!0}),gh.ActorQueryResultSerializeStats=void 0;const t=Gi(),e=Nt(),u=Wt(),s=Sa();let n=class extends t.ActorQueryResultSerializeFixedMediaTypes{constructor(a){super(a)}async testHandleChecked(a,o){if(!["bindings","quads"].includes(a.type))throw new Error("This actor can only handle bindings streams or quad streams.");return!0}pushHeader(a){const o=["Result","Delay (ms)","HTTP requests"].join(",");a.push(`${o} +`)}createStat(a,o){return`${[o,this.delay(a),this.httpObserver.requests].join(",")} +`}createFooter(a){return`${["TOTAL",this.delay(a),this.httpObserver.requests].join(",")} +`}async runHandle(a,o,l){const c=new u.Readable,d=a.type==="bindings"?a.bindingsStream:a.quadStream,h=this.now();let f=1;function*p(b){yield b()}const y=(0,e.wrap)(d).map(()=>this.createStat(h,f++)).append((0,e.wrap)(p(()=>this.createFooter(h))));return this.pushHeader(c),c.wrap(y),{data:c}}now(){if(typeof performance>"u"){const a=s.hrtime();return a[0]*1e3+a[1]/1e6}return performance.now()}delay(a){return this.now()-a}};return gh.ActorQueryResultSerializeStats=n,gh}var r5;function n5(){return r5||(r5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(vZ(),t),u(wZ(),t)}(Nw)),Nw}var Cw={},mh={},jw={},_h={},i5;function SZ(){if(i5)return _h;i5=1,Object.defineProperty(_h,"__esModule",{value:!0}),_h.ActorQuerySourceIdentifyHypermedia=void 0;const t=ot;class e extends t.Actor{constructor(s,n){super(s),this.sourceType=n}async test(s){if(s.forceSourceType&&this.sourceType!==s.forceSourceType)throw new Error(`Actor ${this.name} is not able to handle source type ${s.forceSourceType}.`);return this.testMetadata(s)}}return _h.ActorQuerySourceIdentifyHypermedia=e,_h}var a5;function tA(){return a5||(a5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(SZ(),t)}(jw)),jw}var vh={},Lw={},wh={},s5;function TZ(){if(s5)return wh;s5=1,Object.defineProperty(wh,"__esModule",{value:!0}),wh.ActorQuerySourceIdentify=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return wh.ActorQuerySourceIdentify=e,wh}var Qr={},o5;function AZ(){if(o5)return Qr;o5=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.filterMatchingQuotedQuads=Qr.quadsOrderToBindingsOrder=Qr.quadsMetadataToBindingsMetadata=Qr.setMetadata=Qr.getDuplicateElementLinks=Qr.getVariables=Qr.isTermVariable=Qr.quadsToBindings=void 0;const t=wt(),e=jn(),u=Et(),s=er(),n=un(),r=CF(),a=new u.DataFactory;function o(b,m,g,v){const _=c(m),w=m.graph.termType==="Variable"&&!v,S=d(m),A=(0,n.reduceTermsNested)(m,(L,E,O)=>(E.termType==="Variable"&&(L[O.join("_")]=E.value),L),{}),D=new t.ClosableTransformIterator(async()=>{let L=b;return w&&(L=L.filter(E=>E.graph.termType!=="DefaultGraph")),S&&(L=L.filter(E=>{for(const O in S){const P=O.split("_"),j=(0,n.getValueNestedPath)(E,P);for(const U of S[O])if(!j.equals((0,n.getValueNestedPath)(E,U)))return!1}return!0})),L.map(E=>g.bindings(Object.keys(A).map(O=>{const P=O.split("_"),j=A[O],U=(0,n.getValueNestedPath)(E,P);return[a.variable(j),U]})))},{autoStart:!1,onClose:()=>b.destroy()});return h(D,b,A,_,w||!!S),D}Qr.quadsToBindings=o;function l(b){return b.termType==="Variable"}Qr.isTermVariable=l;function c(b){return(0,n.uniqTerms)((0,n.getTermsNested)(b).filter(l))}Qr.getVariables=c;function d(b){const m={};let g=!1;if((0,n.forEachTermsNested)(b,(_,w)=>{if(_.termType==="Variable"){const S=(0,s.termToString)(_),A=(m[S]||(m[S]=[])).push(w);g=g||A>1}}),!g)return;const v={};for(const _ in m){const w=m[_],S=w.slice(1);S.length>0&&(v[w[0].join("_")]=S)}return v}Qr.getDuplicateElementLinks=d;function h(b,m,g,v,_){const w=A=>{"canContainUndefs"in A||(A.canContainUndefs=!1),_&&(A.cardinality.type="estimate"),b.setProperty("metadata",f((0,e.validateMetadataQuads)(A),g,v)),A.state&&A.state.addInvalidateListener(()=>{h(b,m,g,v,_)})},S=m.getProperty("metadata");S?w(S):m.getProperty("metadata",w)}Qr.setMetadata=h;function f(b,m,g){return{...b,canContainUndefs:!1,order:b.order?p(b.order,m):void 0,availableOrders:b.availableOrders?b.availableOrders.map(v=>({cost:v.cost,terms:p(v.terms,m)})):void 0,variables:g}}Qr.quadsMetadataToBindingsMetadata=f;function p(b,m){const g={};return b.map(v=>{const _=m[v.term];if(_&&!g[_])return g[_]=!0,{term:a.variable(_),direction:v.direction}}).filter(Boolean)}Qr.quadsOrderToBindingsOrder=p;function y(b,m){return(0,n.someTerms)(b,g=>g.termType==="Quad")&&(m=m.filter(g=>(0,r.matchPatternMappings)(g,b))),m}return Qr.filterMatchingQuotedQuads=y,Qr}var u5;function xy(){return u5||(u5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(TZ(),t),u(AZ(),t)}(Lw)),Lw}var c5;function D7(){if(c5)return vh;c5=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.QuerySourceQpf=void 0;const t=xy(),e=Lt,u=Nt(),s=Et(),n=er(),r=Oy(),a=un(),o=Ot(),l=new o.Factory,c=new s.DataFactory;let d=class p3{constructor(p,y,b,m,g,v,_,w,S,A,D,L){this.referenceValue=S,this.mediatorMetadata=p,this.mediatorMetadataExtract=y,this.mediatorDereferenceRdf=b,this.bindingsFactory=m,this.subjectUri=g,this.predicateUri=v,this.objectUri=_,this.graphUri=w,this.url=S,this.bindingsRestricted=D,this.cachedQuads={};const E=this.getSearchForm(A);if(!E)throw new Error("Illegal state: found no TPF/QPF search form anymore in metadata.");if(this.searchForm=E,this.defaultGraph=A.defaultGraph?c.namedNode(A.defaultGraph):void 0,L){let O=(0,u.wrap)(L);this.defaultGraph&&(O=this.reverseMapQuadsToDefaultGraph(O)),O.setProperty("metadata",A),this.cacheQuads(O,c.variable(""),c.variable(""),c.variable(""),c.variable(""))}}async getSelectorShape(){return this.bindingsRestricted?p3.SELECTOR_SHAPE_BR:p3.SELECTOR_SHAPE}queryBindings(p,y,b){if(p.type!=="pattern")throw new Error(`Attempted to pass non-pattern operation '${p.type}' to QuerySourceQpf`);const m=!!y.get(e.KeysQueryOperation.unionDefaultGraph);let g=this.match(p.subject,p.predicate,p.object,p.graph,m,y,b);return g=(0,t.filterMatchingQuotedQuads)(p,g),(0,t.quadsToBindings)(g,p,this.bindingsFactory,m)}getSearchForm(p){if(!p.searchForms||!p.searchForms.values)return;const{searchForms:y}=p;for(const b of y.values)if(this.graphUri&&this.subjectUri in b.mappings&&this.predicateUri in b.mappings&&this.objectUri in b.mappings&&this.graphUri in b.mappings&&Object.keys(b.mappings).length===4||this.subjectUri in b.mappings&&this.predicateUri in b.mappings&&this.objectUri in b.mappings&&Object.keys(b.mappings).length===3)return b}createFragmentUri(p,y,b,m,g){const v={},_=[{uri:this.subjectUri,term:y},{uri:this.predicateUri,term:b},{uri:this.objectUri,term:m},{uri:this.graphUri,term:g}];for(const w of _)w.uri&&(this.bindingsRestricted||w.term.termType!=="Variable"&&(w.term.termType!=="Quad"||(0,a.everyTermsNested)(w.term,S=>S.termType!=="Variable")))&&(v[w.uri]=(0,n.termToString)(w.term));return p.getUri(v)}match(p,y,b,m,g,v,_){let w=!1;if(m.termType==="DefaultGraph")if(this.defaultGraph)w=!0,m=this.defaultGraph;else if(Object.keys(this.searchForm.mappings).length===4&&!this.defaultGraph)if(g)m=c.variable("g");else{const L=new u.ArrayIterator([],{autoStart:!1});return L.setProperty("metadata",{requestTime:0,cardinality:{type:"exact",value:0},first:null,next:null,last:null,canContainUndefs:!1}),L}else Object.keys(this.searchForm.mappings).length===3&&(m=c.variable("g"));if(!(_!=null&&_.filterBindings)){const L=this.getCachedQuads(p,y,b,m);if(L)return L}const S=this;let A;const D=async function(){var j;let L=S.createFragmentUri(S.searchForm,p,y,b,m);_!=null&&_.filterBindings&&(L=await S.getBindingsRestrictedLink(p,y,b,m,L,_.filterBindings));const E=await S.mediatorDereferenceRdf.mediate({context:v,url:L});L=E.url;const O=await S.mediatorMetadata.mediate({context:v,url:L,quads:E.data,triples:(j=E.metadata)==null?void 0:j.triples}),{metadata:P}=await S.mediatorMetadataExtract.mediate({context:v,url:L,metadata:O.metadata,requestTime:E.requestTime});return A.setProperty("metadata",{...P,canContainUndefs:!1,subsetOf:S.url}),O.data}();return A=new u.TransformIterator(async()=>{const L=await D,E=c.defaultGraph();let O=(0,u.wrap)(L).transform({filter(P){return(0,a.matchPattern)(P,p,y,b,m)?!0:w&&(0,a.matchPattern)(P,p,y,b,E)}});return(w||m.termType==="Variable")&&(O=this.reverseMapQuadsToDefaultGraph(O)),O},{autoStart:!1}),_!=null&&_.filterBindings?A:(this.cacheQuads(A,p,y,b,m),this.getCachedQuads(p,y,b,m))}async getBindingsRestrictedLink(p,y,b,m,g,v){const _=[];for(const S of await v.bindings.toArray()){const A=["("];for(const D of v.metadata.variables){const L=S.get(D);A.push(L?(0,r.termToString)(L):"UNDEF"),A.push(" ")}A.push(")"),_.push(A.join(""))}_.length===0&&_.push("()");const w=encodeURIComponent(`(${v.metadata.variables.map(S=>`?${S.value}`).join(" ")}) { ${_.join(" ")} }`);return`${g}&values=${w}`}reverseMapQuadsToDefaultGraph(p){const y=c.defaultGraph();return p.map(b=>(0,a.mapTerms)(b,(m,g)=>g==="graph"&&m.equals(this.defaultGraph)?y:m))}getPatternId(p,y,b,m){return JSON.stringify({s:p.termType==="Variable"?"":h(p),p:y.termType==="Variable"?"":h(y),o:b.termType==="Variable"?"":h(b),g:m.termType==="Variable"?"":h(m)})}cacheQuads(p,y,b,m,g){const v=this.getPatternId(y,b,m,g);this.cachedQuads[v]=p.clone()}getCachedQuads(p,y,b,m){const g=this.getPatternId(p,y,b,m),v=this.cachedQuads[g];if(v)return v.clone()}queryQuads(p,y){throw new Error("queryQuads is not implemented in QuerySourceQpf")}queryBoolean(p,y){throw new Error("queryBoolean is not implemented in QuerySourceQpf")}queryVoid(p,y){throw new Error("queryVoid is not implemented in QuerySourceQpf")}};vh.QuerySourceQpf=d,d.SELECTOR_SHAPE={type:"operation",operation:{operationType:"pattern",pattern:l.createPattern(c.variable("s"),c.variable("p"),c.variable("o"),c.variable("g"))},variablesOptional:[c.variable("s"),c.variable("p"),c.variable("o"),c.variable("g")]},d.SELECTOR_SHAPE_BR={type:"operation",operation:{operationType:"pattern",pattern:l.createPattern(c.variable("s"),c.variable("p"),c.variable("o"),c.variable("g"))},variablesOptional:[c.variable("s"),c.variable("p"),c.variable("o"),c.variable("g")],filterBindings:!0};function h(f){return f.termType==="DefaultGraph"?"|":(0,n.termToString)(f)}return vh}var l5;function EZ(){if(l5)return mh;l5=1,Object.defineProperty(mh,"__esModule",{value:!0}),mh.ActorQuerySourceIdentifyHypermediaQpf=void 0;const t=xr(),e=tA(),u=D7();let s=class extends e.ActorQuerySourceIdentifyHypermedia{constructor(r){super(r,"qpf")}async test(r){if(r.forceSourceType&&r.forceSourceType!=="qpf"&&r.forceSourceType!=="brtpf")throw new Error(`Actor ${this.name} is not able to handle source type ${r.forceSourceType}.`);return this.testMetadata(r)}async testMetadata(r){const{searchForm:a}=await this.createSource(r.url,r.metadata,r.context,r.forceSourceType==="brtpf");if(r.handledDatasets&&r.handledDatasets[a.dataset])throw new Error(`Actor ${this.name} can only be applied for the first page of a QPF dataset.`);return{filterFactor:1}}async run(r){this.logInfo(r.context,`Identified as qpf source: ${r.url}`);const a=await this.createSource(r.url,r.metadata,r.context,r.forceSourceType==="brtpf",r.quads);return{source:a,dataset:a.searchForm.dataset}}async createSource(r,a,o,l,c){return new u.QuerySourceQpf(this.mediatorMetadata,this.mediatorMetadataExtract,this.mediatorDereferenceRdf,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o),this.subjectUri,this.predicateUri,this.objectUri,this.graphUri,r,a,l,c)}};return mh.ActorQuerySourceIdentifyHypermediaQpf=s,mh}var d5;function OZ(){return d5||(d5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(EZ(),t),u(D7(),t)}(Cw)),Cw}var Mw={},Sh={},Th={},f5;function N7(){if(f5)return Th;f5=1,Object.defineProperty(Th,"__esModule",{value:!0}),Th.QuerySourceSparql=void 0;const t=Lt,e=Nt(),u=y7(),s=is(),n=Et(),r=Ot(),a=new r.Factory,o=new n.DataFactory,l=o.variable("count"),c={type:"estimate",value:Number.POSITIVE_INFINITY};let d=class ii{constructor(f,p,y,b,m,g,v,_){this.referenceValue=f,this.url=f,this.context=p,this.mediatorHttp=y,this.bindMethod=b,this.bindingsFactory=m,this.endpointFetcher=new u.SparqlEndpointFetcher({method:g?"GET":"POST",fetch:(w,S)=>this.mediatorHttp.mediate({input:w,init:S,context:this.lastSourceContext}),prefixVariableQuestionMark:!0}),this.cache=v>0?new s.LRUCache({max:v}):void 0,this.countTimeout=_}async getSelectorShape(){return ii.SELECTOR_SHAPE}queryBindings(f,p,y){let b;y!=null&&y.joinBindings?b=ii.addBindingsToOperation(this.bindMethod,f,y.joinBindings):b=Promise.resolve(f);const m=new e.TransformIterator(async()=>{const g=await b,v=r.Util.inScopeVariables(g),_=p.get(t.KeysInitQuery.queryString),w=!(y!=null&&y.joinBindings)&&_?_:ii.operationToSelectQuery(g,v),S=ii.operationCanContainUndefs(g);return this.queryBindingsRemote(this.url,w,v,p,S)},{autoStart:!1});return this.attachMetadata(m,p,b),m}queryQuads(f,p){this.lastSourceContext=this.context.merge(p);const y=this.endpointFetcher.fetchTriples(this.url,p.get(t.KeysInitQuery.queryString)??ii.operationToQuery(f));this.lastSourceContext=void 0;const b=(0,e.wrap)(y,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY});return this.attachMetadata(b,p,Promise.resolve(f.input)),b}queryBoolean(f,p){this.lastSourceContext=this.context.merge(p);const y=this.endpointFetcher.fetchAsk(this.url,p.get(t.KeysInitQuery.queryString)??ii.operationToQuery(f));return this.lastSourceContext=void 0,y}queryVoid(f,p){this.lastSourceContext=this.context.merge(p);const y=this.endpointFetcher.fetchUpdate(this.url,p.get(t.KeysInitQuery.queryString)??ii.operationToQuery(f));return this.lastSourceContext=void 0,y}attachMetadata(f,p,y){let b=[],m=!1;new Promise(async(g,v)=>{var w;let _;try{const S=await y;b=r.Util.inScopeVariables(S),_=ii.operationToCountQuery(S),m=ii.operationCanContainUndefs(S);const A=(w=this.cache)==null?void 0:w.get(_);if(A!==void 0)return g(A);const D=setTimeout(()=>g(c),this.countTimeout),L=await this.queryBindingsRemote(this.url,_,[l],p,!1);L.on("data",E=>{var j;clearTimeout(D);const O=E.get(l),P={type:"estimate",value:Number.POSITIVE_INFINITY};if(O){const U=Number.parseInt(O.value,10);Number.isNaN(U)||(P.type="exact",P.value=U,(j=this.cache)==null||j.set(_,P))}return g(P)}),L.on("error",()=>{clearTimeout(D),g(c)}),L.on("end",()=>{clearTimeout(D),g(c)})}catch(S){return v(S)}}).then(g=>f.setProperty("metadata",{cardinality:g,canContainUndefs:m,variables:b})).catch(()=>f.setProperty("metadata",{cardinality:c,canContainUndefs:m,variables:b}))}static async addBindingsToOperation(f,p,y){const b=await y.bindings.toArray();switch(f){case"values":return a.createJoin([a.createValues(y.metadata.variables,b.map(m=>Object.fromEntries([...m].map(([g,v])=>[`?${g.value}`,v])))),p],!1);case"union":throw new Error('Not implemented yet: "union" case');case"filter":throw new Error('Not implemented yet: "filter" case')}}static operationToSelectQuery(f,p){return ii.operationToQuery(a.createProject(f,p))}static operationToCountQuery(f){return ii.operationToQuery(a.createProject(a.createExtend(a.createGroup(f,[],[a.createBoundAggregate(o.variable("var0"),"count",a.createWildcardExpression(),!1)]),o.variable("count"),a.createTermExpression(o.variable("var0"))),[o.variable("count")]))}static operationToQuery(f){return(0,r.toSparql)(f,{sparqlStar:!0})}static operationCanContainUndefs(f){let p=!1;return r.Util.recurseOperation(f,{leftjoin(){return p=!0,!1},values(y){return p=y.bindings.some(b=>y.variables.some(m=>!(`?${m.value}`in b))),!1}}),p}async queryBindingsRemote(f,p,y,b,m){this.lastSourceContext=this.context.merge(b);const g=await this.endpointFetcher.fetchBindings(f,p);this.lastSourceContext=void 0;const v=(0,e.wrap)(g,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY}).map(_=>this.bindingsFactory.bindings(y.map(w=>{const S=_[`?${w.value}`];return!m&&!S&&v.emit("error",new Error(`The endpoint ${f} failed to provide a binding for ${w.value}.`)),[w,S]})));return v}toString(){return`QuerySourceSparql(${this.url})`}};return Th.QuerySourceSparql=d,d.SELECTOR_SHAPE={type:"disjunction",children:[{type:"operation",operation:{operationType:"type",type:r.Algebra.types.PROJECT},joinBindings:!0},{type:"operation",operation:{operationType:"type",type:r.Algebra.types.CONSTRUCT}},{type:"operation",operation:{operationType:"type",type:r.Algebra.types.DESCRIBE}},{type:"operation",operation:{operationType:"type",type:r.Algebra.types.ASK}},{type:"operation",operation:{operationType:"type",type:r.Algebra.types.COMPOSITE_UPDATE}}]},Th}var h5;function RZ(){if(h5)return Sh;h5=1,Object.defineProperty(Sh,"__esModule",{value:!0}),Sh.ActorQuerySourceIdentifyHypermediaSparql=void 0;const t=xr(),e=tA(),u=N7();let s=class extends e.ActorQuerySourceIdentifyHypermedia{constructor(r){super(r,"sparql")}async testMetadata(r){if(!r.forceSourceType&&!r.metadata.sparqlService&&!(this.checkUrlSuffix&&r.url.endsWith("/sparql")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql.`);return{filterFactor:1}}async run(r){return this.logInfo(r.context,`Identified ${r.url} as sparql source with service URL: ${r.metadata.sparqlService||r.url}`),{source:new u.QuerySourceSparql(r.forceSourceType?r.url:r.metadata.sparqlService||r.url,r.context,this.mediatorHttp,this.bindMethod,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,r.context),this.forceHttpGet,this.cacheSize,this.countTimeout)}}};return Sh.ActorQuerySourceIdentifyHypermediaSparql=s,Sh}var p5;function xZ(){return p5||(p5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(RZ(),t),u(N7(),t)}(Mw)),Mw}var Fw={},Ah={},qw={},Eh={},Oh={},y5;function C7(){if(y5)return Oh;y5=1,Object.defineProperty(Oh,"__esModule",{value:!0}),Oh.QuerySourceRdfJs=void 0;const t=xy(),e=Lt,u=jn(),s=Nt(),n=Et(),r=un(),a=Ot(),o=new a.Factory,l=new n.DataFactory;let c=class An{constructor(h,f){this.source=h,this.referenceValue=h,this.bindingsFactory=f}static nullifyVariables(h,f){return!h||h.termType==="Variable"||!f&&h.termType==="Quad"&&(0,r.someTermsNested)(h,p=>p.termType==="Variable")?void 0:h}static hasDuplicateVariables(h){const f=(0,r.filterTermsNested)(h,p=>p.termType==="Variable");return f.length>1&&(0,r.uniqTerms)(f).lengthb.destroy(g)),(0,t.quadsToBindings)(b,h,this.bindingsFactory,!!f.get(e.KeysQueryOperation.unionDefaultGraph))}async setMetadata(h,f){var m;const p=!!((m=this.source.features)!=null&&m.quotedTripleFiltering);let y;if(this.source.countQuads)y=await this.source.countQuads(An.nullifyVariables(f.subject,p),An.nullifyVariables(f.predicate,p),An.nullifyVariables(f.object,p),An.nullifyVariables(f.graph,p));else{let g=0;y=await new Promise((v,_)=>{const w=this.source.match(An.nullifyVariables(f.subject,p),An.nullifyVariables(f.predicate,p),An.nullifyVariables(f.object,p),An.nullifyVariables(f.graph,p));w.on("error",_),w.on("end",()=>v(g)),w.on("data",()=>g++)})}const b=!p&&(0,r.someTerms)(f,g=>g.termType==="Quad")||An.hasDuplicateVariables(f);h.setProperty("metadata",{state:new u.MetadataValidationState,cardinality:{type:b?"estimate":"exact",value:y},canContainUndefs:!1})}queryQuads(h,f){throw new Error("queryQuads is not implemented in QuerySourceQpf")}queryBoolean(h,f){throw new Error("queryBoolean is not implemented in QuerySourceQpf")}queryVoid(h,f){throw new Error("queryVoid is not implemented in QuerySourceQpf")}toString(){return`QuerySourceRdfJs(${this.source.constructor.name})`}};return Oh.QuerySourceRdfJs=c,c.SELECTOR_SHAPE={type:"operation",operation:{operationType:"pattern",pattern:o.createPattern(l.variable("s"),l.variable("p"),l.variable("o"))},variablesOptional:[l.variable("s"),l.variable("p"),l.variable("o")]},Oh}var b5;function IZ(){if(b5)return Eh;b5=1,Object.defineProperty(Eh,"__esModule",{value:!0}),Eh.ActorQuerySourceIdentifyRdfJs=void 0;const t=xr(),e=xy(),u=ot,s=C7();let n=class extends e.ActorQuerySourceIdentify{constructor(a){super(a)}async test(a){const o=a.querySourceUnidentified;if(o.type!==void 0&&o.type!=="rdfjs")throw new Error(`${this.name} requires a single query source with rdfjs type to be present in the context.`);if(typeof o.value=="string"||!("match"in o.value))throw new Error(`${this.name} received an invalid rdfjs query source.`);return!0}async run(a){return{querySource:{source:new s.QuerySourceRdfJs(a.querySourceUnidentified.value,await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a.context)),context:a.querySourceUnidentified.context??new u.ActionContext}}}};return Eh.ActorQuerySourceIdentifyRdfJs=n,Eh}var Bw={},g5;function PZ(){return g5||(g5=1,Object.defineProperty(Bw,"__esModule",{value:!0})),Bw}var m5;function rA(){return m5||(m5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(IZ(),t),u(PZ(),t),u(C7(),t)}(qw)),qw}var Rh={},Uw={},xh={},Ih={},Ph={},_5;function j7(){if(_5)return Ph;_5=1,Object.defineProperty(Ph,"__esModule",{value:!0}),Ph.TermDictionaryNumberRecordFullTerms=void 0;const t=Et(),e=er();let u=class{constructor(n=new t.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=n}encode(n){const r=(0,e.termToString)(n);let a=this.dictionary[r];return a===void 0&&(a=this.lastId++,this.dictionary[r]=a,this.reverseDictionary[a]=n),a}encodeOptional(n){const r=(0,e.termToString)(n);return this.dictionary[r]}decode(n){const r=this.reverseDictionary[n];if(r===void 0)throw new Error(`The value ${n} is not present in this dictionary`);return r}*encodings(){for(const n of Object.keys(this.reverseDictionary))yield Number.parseInt(n,10)}findQuotedTriples(n){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(n){throw new Error("findQuotedTriplesEncoded is not supported")}};return Ph.TermDictionaryNumberRecordFullTerms=u,Ph}var Dh={},Nh={},Hw={},v5;function Xi(){return v5||(v5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.arePatternsQuoted=t.quadHasVariables=t.quadToPattern=t.encodeOptionalTerms=t.orderQuadComponents=t.getComponentOrderScore=t.getBestIndex=t.QUAD_TERM_NAMES_INVERSE=void 0;const e=un();t.QUAD_TERM_NAMES_INVERSE=Object.fromEntries(e.QUAD_TERM_NAMES.map((c,d)=>[c,d]));function u(c,d){if(c.length===1||d.every(p=>p!==void 0))return 0;const h=[];for(let p=0;p({score:s(p,h),index:y})).sort((p,y)=>y.score-p.score)[0].index}t.getBestIndex=u;function s(c,d){return c.map((h,f)=>d.includes(h)?c.length-f:0).reduce((h,f)=>h+f,0)}t.getComponentOrderScore=s;function n(c,d){return c.map(h=>{const f=t.QUAD_TERM_NAMES_INVERSE[h];return d[f]})}t.orderQuadComponents=n;function r(c,d){const h=c.map(f=>{if(f){if(f.termType==="Quad"&&o(f))return;const p=d.encodeOptional(f);return p===void 0?"none":p}return f});if(!h.includes("none"))return h}t.encodeOptionalTerms=r;function a(c,d,h,f,p){let y=!1;return[[c||void 0,d||void 0,h||void 0,f||void 0].map(m=>{if(m){if(m.termType==="Variable")return;if(m.termType==="Quad"){if(p)return m;y=!0;return}}return m}),y]}t.quadToPattern=a;function o(c){for(const d of e.QUAD_TERM_NAMES){const h=c[d];if(h.termType==="Variable"||h.termType==="Quad"&&o(h))return!0}return!1}t.quadHasVariables=o;function l(c){return c.map(d=>(d==null?void 0:d.termType)==="Quad"&&o(d))}t.arePatternsQuoted=l}(Hw)),Hw}var w5;function nA(){if(w5)return Nh;w5=1,Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.RdfStoreIndexNestedMap=void 0;const t=Xi();let e=class{constructor(s){this.features={quotedTripleFiltering:!1},this.dictionary=s.dictionary,this.nestedMap=new Map}set(s,n){const r=this.nestedMap;let a=r.get(s[0]);a||(a=new Map,r.set(s[0],a));let o=a.get(s[1]);o||(o=new Map,a.set(s[1],o));let l=o.get(s[2]);l||(l=new Map,o.set(s[2],l));const c=l.has(s[3]);return c||l.set(s[3],n),!c}remove(s){const n=this.nestedMap,r=n.get(s[0]);if(!r)return!1;const a=r.get(s[1]);if(!a)return!1;const o=a.get(s[2]);if(!o)return!1;const l=o.delete(s[3]);return l&&o.size===0&&(a.delete(s[2]),a.size===0&&(r.delete(s[1]),r.size===0&&n.delete(s[0]))),l}get(s){const n=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!(!n||n.includes(void 0)))return this.getEncoded(n)}getEncoded(s){const n=this.nestedMap.get(s[0]);if(!n)return;const r=n.get(s[1]);if(!r)return;const a=r.get(s[2]);if(a)return a.get(s[3])}*find(s){const n=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!n)return;const[r,a,o,l]=n,[c,d,h,f]=s;let p,y,b,m,g,v,_;const w=this.nestedMap,S=r!==void 0?w.has(r)?[r]:[]:w.keys();for(const A of S){g=w.get(A),p=c||this.dictionary.decode(A);const D=a!==void 0?g.has(a)?[a]:[]:g.keys();for(const L of D){v=g.get(L),y=d||this.dictionary.decode(L);const E=o!==void 0?v.has(o)?[o]:[]:v.keys();for(const O of E){_=v.get(O),b=h||this.dictionary.decode(O);const P=l!==void 0?_.has(l)?[l]:[]:_.keys();for(const j of P)m=f||this.dictionary.decode(j),yield[p,y,b,m]}}}}*findEncoded(s,n){const[r,a,o,l]=s;let c,d,h;const f=this.nestedMap,p=r!==void 0?f.has(r)?[r]:[]:f.keys();for(const y of p){c=f.get(y);const b=a!==void 0?c.has(a)?[a]:[]:c.keys();for(const m of b){d=c.get(m);const g=o!==void 0?d.has(o)?[o]:[]:d.keys();for(const v of g){h=d.get(v);const _=l!==void 0?h.has(l)?[l]:[]:h.keys();for(const w of _)yield[y,m,v,w]}}}}count(s){let n=0;const r=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!r)return 0;const a=r[0],o=r[1],l=r[2],c=r[3];let d,h,f;const p=this.nestedMap,y=a!==void 0?p.has(a)?[a]:[]:p.keys();for(const b of y){d=p.get(b);const m=o!==void 0?d.has(o)?[o]:[]:d.keys();for(const g of m){h=d.get(g);const v=l!==void 0?h.has(l)?[l]:[]:h.keys();for(const _ of v)f=h.get(_),c!==void 0?f.has(c)&&n++:n+=f.size}}return n}};return Nh.RdfStoreIndexNestedMap=e,Nh}var S5;function L7(){if(S5)return Dh;S5=1,Object.defineProperty(Dh,"__esModule",{value:!0}),Dh.TermDictionaryQuotedIndexed=void 0;const t=Et(),e=nA(),u=Xi();let s=class pa{constructor(r,a=new t.DataFactory){this.quotedTriplesDictionary=[],this.features={quotedTriples:!0},this.plainTermDictionary=r;const o={indexCombinations:[],indexConstructor:void 0,dictionary:this,dataFactory:a};this.quotedTriplesReverseDictionaries=[new e.RdfStoreIndexNestedMap(o),new e.RdfStoreIndexNestedMap(o),new e.RdfStoreIndexNestedMap(o)],this.dataFactory=a}encode(r){return r.termType==="Quad"?this.encodeQuotedTriple(r,!1):this.plainTermDictionary.encode(r)}encodeQuotedTriple(r,a){if(r.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const o=(0,u.encodeOptionalTerms)([r.subject,r.predicate,r.object,r.graph],this),l=o&&o.every(f=>f!==void 0)?this.quotedTriplesReverseDictionaries[0].getEncoded(o):void 0;if(l!==void 0||a)return l===void 0?void 0:pa.BITMASK|l;const c=[this.encode(r.subject),this.encode(r.predicate),this.encode(r.object)],d=this.quotedTriplesDictionary.length+1;this.quotedTriplesDictionary.push(c);const h=this.encode(this.dataFactory.defaultGraph());return this.quotedTriplesReverseDictionaries[0].set([c[0],c[1],c[2],h],d),this.quotedTriplesReverseDictionaries[1].set([c[1],c[2],c[0],h],d),this.quotedTriplesReverseDictionaries[2].set([c[2],c[0],c[1],h],d),pa.BITMASK|d}encodeOptional(r){return r.termType==="Quad"?this.encodeQuotedTriple(r,!0):this.plainTermDictionary.encodeOptional(r)}decode(r){if(pa.BITMASK&r){const a=(~pa.BITMASK&r)-1;if(a>=this.quotedTriplesDictionary.length)throw new Error(`The value ${r} is not present in the quoted triples range of the dictionary`);const o=this.quotedTriplesDictionary[a];return this.dataFactory.quad(this.decode(o[0]),this.decode(o[1]),this.decode(o[2]))}return this.plainTermDictionary.decode(r)}*encodings(){for(const r of this.plainTermDictionary.encodings())yield r;for(const r of this.quotedTriplesDictionary.keys())yield pa.BITMASK|1+r}*findQuotedTriples(r){for(const a of this.findQuotedTriplesEncoded(r))yield this.decode(a)}*findQuotedTriplesEncoded(r){const[a,o]=(0,u.quadToPattern)(r.subject,r.predicate,r.object,r.graph,!0);for(const l of this.patternToIterable(a[0]))for(const c of this.patternToIterable(a[1]))for(const d of this.patternToIterable(a[2]))for(const h of this.patternToIterable(a[3]))if(l&&c||!c&&!d){const f=[l,c,d,h];for(const p of this.quotedTriplesReverseDictionaries[0].findEncoded(f,a))yield pa.BITMASK|this.quotedTriplesReverseDictionaries[0].getEncoded(p)}else if(!l&&c){const f=[c,d,l,h];for(const p of this.quotedTriplesReverseDictionaries[1].findEncoded(f,a))yield pa.BITMASK|this.quotedTriplesReverseDictionaries[1].getEncoded(p)}else{const f=[d,l,c,h];for(const p of this.quotedTriplesReverseDictionaries[2].findEncoded(f,a))yield pa.BITMASK|this.quotedTriplesReverseDictionaries[2].getEncoded(p)}}*patternToIterable(r){if((r==null?void 0:r.termType)==="Quad"){yield*this.findQuotedTriplesEncoded(r);return}if(r===void 0){yield void 0;return}const a=this.encodeOptional(r);a!==void 0&&(yield a)}};return s.BITMASK=1<<31,Dh.TermDictionaryQuotedIndexed=s,Dh}var Ch={},T5;function M7(){if(T5)return Ch;T5=1,Object.defineProperty(Ch,"__esModule",{value:!0}),Ch.RdfStoreIndexNestedMapQuoted=void 0;const t=Xi(),e=nA();let u=class extends e.RdfStoreIndexNestedMap{constructor(n){super(n),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(n,r){for(const a of this.dictionary.findQuotedTriplesEncoded(r))n.has(a)&&(yield a)}*find(n){const r=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!r)return;const[a,o,l,c]=r,[d,h,f,p]=n,[y,b,m,g]=(0,t.arePatternsQuoted)(n);let v,_,w,S,A,D,L;const E=this.nestedMap,O=d!==void 0?y?this.getQuotedPatternKeys(E,d):E.has(a)?[a]:[]:E.keys();for(const P of O){A=E.get(P),v=!y&&d?d:this.dictionary.decode(P);const j=h!==void 0?b?this.getQuotedPatternKeys(A,h):A.has(o)?[o]:[]:A.keys();for(const U of j){D=A.get(U),_=!b&&h?h:this.dictionary.decode(U);const M=f!==void 0?m?this.getQuotedPatternKeys(D,f):D.has(l)?[l]:[]:D.keys();for(const q of M){L=D.get(q),w=!m&&f?f:this.dictionary.decode(q);const Q=p!==void 0?g?this.getQuotedPatternKeys(L,p):L.has(c)?[c]:[]:L.keys();for(const Z of Q)S=!g&&p?p:this.dictionary.decode(Z),yield[v,_,w,S]}}}}*findEncoded(n,r){const[a,o,l,c]=n,[d,h,f,p]=r,[y,b,m,g]=(0,t.arePatternsQuoted)(r);let v,_,w;const S=this.nestedMap,A=d!==void 0?y?this.getQuotedPatternKeys(S,d):S.has(a)?[a]:[]:S.keys();for(const D of A){v=S.get(D);const L=h!==void 0?b?this.getQuotedPatternKeys(v,h):v.has(o)?[o]:[]:v.keys();for(const E of L){_=v.get(E);const O=f!==void 0?m?this.getQuotedPatternKeys(_,f):_.has(l)?[l]:[]:_.keys();for(const P of O){w=_.get(P);const j=p!==void 0?g?this.getQuotedPatternKeys(w,p):w.has(c)?[c]:[]:w.keys();for(const U of j)yield[Number.parseInt(D,10),Number.parseInt(E,10),Number.parseInt(P,10),Number.parseInt(U,10)]}}}}count(n){let r=0;const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!a)return 0;const[o,l,c,d]=a,[h,f,p,y]=n,[b,m,g,v]=(0,t.arePatternsQuoted)(n);let _,w,S;const A=this.nestedMap,D=h!==void 0?b?this.getQuotedPatternKeys(A,h):A.has(o)?[o]:[]:A.keys();for(const L of D){_=A.get(L);const E=f!==void 0?m?this.getQuotedPatternKeys(_,f):_.has(l)?[l]:[]:_.keys();for(const O of E){w=_.get(O);const P=p!==void 0?g?this.getQuotedPatternKeys(w,p):w.has(c)?[c]:[]:w.keys();for(const j of P)S=w.get(j),y!==void 0?v?r+=[...this.getQuotedPatternKeys(S,y)].length:S.has(d)&&r++:r+=S.size}}return r}};return Ch.RdfStoreIndexNestedMapQuoted=u,Ch}var A5;function F7(){if(A5)return Ih;A5=1,Object.defineProperty(Ih,"__esModule",{value:!0}),Ih.RdfStore=void 0;const t=Nt(),e=Et(),u=un(),s=B7(),n=j7(),r=L7(),a=M7(),o=Xi();let l=class I0{constructor(d){this.features={quotedTripleFiltering:!0},this._size=0,this.options=d,this.dataFactory=d.dataFactory,this.dictionary=d.dictionary,this.indexesWrapped=I0.constructIndexesWrapped(d),this.indexesWrappedComponentOrders=this.indexesWrapped.map(h=>h.componentOrder)}static createDefault(){return new I0({indexCombinations:I0.DEFAULT_INDEX_COMBINATIONS,indexConstructor:d=>new a.RdfStoreIndexNestedMapQuoted(d),dictionary:new r.TermDictionaryQuotedIndexed(new n.TermDictionaryNumberRecordFullTerms),dataFactory:new e.DataFactory})}static constructIndexesWrapped(d){const h=[];if(d.indexCombinations.length===0)throw new Error("At least one index combination is required");for(const f of d.indexCombinations){if(!I0.isCombinationValid(f))throw new Error(`Invalid index combination: ${f}`);h.push({index:d.indexConstructor(d),componentOrder:f,componentOrderInverse:Object.fromEntries(f.map((p,y)=>[p,y]))})}return h}static isCombinationValid(d){for(const h of u.QUAD_TERM_NAMES)if(!d.includes(h))return!1;return d.length===4}get size(){return this._size}addQuad(d){const h=[this.dictionary.encode(d.subject),this.dictionary.encode(d.predicate),this.dictionary.encode(d.object),this.dictionary.encode(d.graph)];let f=!1;for(const p of this.indexesWrapped)f=p.index.set((0,o.orderQuadComponents)(p.componentOrder,h),!0);return f?(this._size++,!0):!1}removeQuad(d){const h=[this.dictionary.encodeOptional(d.subject),this.dictionary.encodeOptional(d.predicate),this.dictionary.encodeOptional(d.object),this.dictionary.encodeOptional(d.graph)];if(h.includes(void 0))return!1;let f=!1;for(const p of this.indexesWrapped)if(f=p.index.remove((0,o.orderQuadComponents)(p.componentOrder,h)),!f)break;return f?(this._size--,!0):!1}remove(d){return d.on("data",h=>this.removeQuad(h)),d}removeMatches(d,h,f,p){return this.remove(this.match(d,h,f,p))}deleteGraph(d){return typeof d=="string"&&(d=this.dataFactory.namedNode(d)),this.removeMatches(void 0,void 0,void 0,d)}import(d){return d.on("data",h=>this.addQuad(h)),d}*readQuads(d,h,f,p){const y=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(_=>_.index.features.quotedTripleFiltering),[b,m]=(0,o.quadToPattern)(d,h,f,p,y),g=this.indexesWrapped[(0,o.getBestIndex)(this.indexesWrappedComponentOrders,b)],v=(0,o.orderQuadComponents)(g.componentOrder,b);for(const _ of g.index.find(v)){const w=this.dataFactory.quad(_[g.componentOrderInverse.subject],_[g.componentOrderInverse.predicate],_[g.componentOrderInverse.object],_[g.componentOrderInverse.graph]);m?(0,u.matchPattern)(w,d,h,f,p)&&(yield w):yield w}}getQuads(d,h,f,p){return[...this.readQuads(d,h,f,p)]}match(d,h,f,p){return(0,t.wrap)(this.readQuads(d,h,f,p))}countQuads(d,h,f,p){const y=!!this.dictionary.features.quotedTriples&&Object.values(this.indexesWrapped).every(v=>v.index.features.quotedTripleFiltering),[b]=(0,o.quadToPattern)(d,h,f,p,y);if(b.every(v=>v===void 0))return this.size;const m=this.indexesWrapped[(0,o.getBestIndex)(this.indexesWrappedComponentOrders,b)],g=(0,o.orderQuadComponents)(m.componentOrder,b);return m.index.count(g)}asDataset(){return new s.DatasetCoreWrapper(this)}};return l.DEFAULT_INDEX_COMBINATIONS=[["graph","subject","predicate","object"],["graph","predicate","object","subject"],["graph","object","subject","predicate"]],Ih.RdfStore=l,Ih}var E5;function B7(){if(E5)return xh;E5=1,Object.defineProperty(xh,"__esModule",{value:!0}),xh.DatasetCoreWrapper=void 0;const t=F7();let e=class q7{constructor(s){this.store=s}get size(){return this.store.size}add(s){return this.store.addQuad(s),this}delete(s){return this.store.removeQuad(s),this}has(s){for(const n of this.store.readQuads(s.subject,s.predicate,s.object,s.graph))return!0;return!1}match(s,n,r,a){const o=new t.RdfStore(this.store.options);for(const l of this.store.readQuads(s,n,r,a))o.addQuad(l);return new q7(o)}[Symbol.iterator](){return this.store.readQuads()}};return xh.DatasetCoreWrapper=e,xh}var $w={},O5;function DZ(){return O5||(O5=1,Object.defineProperty($w,"__esModule",{value:!0})),$w}var jh={},R5;function NZ(){if(R5)return jh;R5=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.TermDictionaryNumberMap=void 0;const t=Et(),e=er();let u=class{constructor(n=new t.DataFactory){this.lastId=0,this.dictionary=new Map,this.reverseDictionary=new Map,this.features={quotedTriples:!1},this.dataFactory=n}encode(n){const r=(0,e.termToString)(n);let a=this.dictionary.get(r);return a===void 0&&(a=this.lastId++,this.dictionary.set(r,a),this.reverseDictionary.set(a,r)),a}encodeOptional(n){const r=(0,e.termToString)(n);return this.dictionary.get(r)}decode(n){const r=this.reverseDictionary.get(n);if(r===void 0)throw new Error(`The value ${n} is not present in this dictionary`);return(0,e.stringToTerm)(r,this.dataFactory)}encodings(){return this.reverseDictionary.keys()}findQuotedTriples(n){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(n){throw new Error("findQuotedTriplesEncoded is not supported")}};return jh.TermDictionaryNumberMap=u,jh}var Lh={},x5;function CZ(){if(x5)return Lh;x5=1,Object.defineProperty(Lh,"__esModule",{value:!0}),Lh.TermDictionaryNumberRecord=void 0;const t=Et(),e=er();let u=class{constructor(n=new t.DataFactory){this.lastId=0,this.dictionary={},this.reverseDictionary={},this.features={quotedTriples:!1},this.dataFactory=n}encode(n){const r=(0,e.termToString)(n);let a=this.dictionary[r];return a===void 0&&(a=this.lastId++,this.dictionary[r]=a,this.reverseDictionary[a]=r),a}encodeOptional(n){const r=(0,e.termToString)(n);return this.dictionary[r]}decode(n){const r=this.reverseDictionary[n];if(r===void 0)throw new Error(`The value ${n} is not present in this dictionary`);return(0,e.stringToTerm)(r,this.dataFactory)}*encodings(){for(const n of Object.keys(this.reverseDictionary))yield Number.parseInt(n,10)}findQuotedTriples(n){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(n){throw new Error("findQuotedTriplesEncoded is not supported")}};return Lh.TermDictionaryNumberRecord=u,Lh}var Mh={},I5;function jZ(){if(I5)return Mh;I5=1,Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.TermDictionaryQuoted=void 0;const t=Et(),e=un();let u=class Ls{constructor(n,r,a=new t.DataFactory){this.features={quotedTriples:!0},this.plainTermDictionary=n,this.quotedTriplesDictionary=r,this.dataFactory=a}encode(n){return n.termType==="Quad"?Ls.BITMASK|1+this.quotedTriplesDictionary.encode(n):this.plainTermDictionary.encode(n)}encodeOptional(n){if(n.termType==="Quad"){const r=this.quotedTriplesDictionary.encodeOptional(n);return r===void 0?r:Ls.BITMASK|1+r}return this.plainTermDictionary.encodeOptional(n)}decode(n){if(Ls.BITMASK&n){const r=(~Ls.BITMASK&n)-1;return this.quotedTriplesDictionary.decode(r)}return this.plainTermDictionary.decode(n)}*encodings(){for(const n of this.plainTermDictionary.encodings())yield n;for(const n of this.quotedTriplesDictionary.encodings())yield Ls.BITMASK|1+n}*findQuotedTriples(n){for(const r of this.findQuotedTriplesEncoded(n))yield this.decode(r)}*findQuotedTriplesEncoded(n){for(let r of this.quotedTriplesDictionary.encodings()){r=Ls.BITMASK|1+r;const a=this.decode(r);(0,e.matchPattern)(a,n.subject,n.predicate,n.object,n.graph)&&(yield r)}}};return u.BITMASK=1<<31,Mh.TermDictionaryQuoted=u,Mh}var Fh={},P5;function LZ(){if(P5)return Fh;P5=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.TermDictionaryQuotedReferential=void 0;const t=Et(),e=un(),u=Xi();let s=class ya{constructor(r,a=new t.DataFactory){this.quotedTriplesDictionary=[],this.quotedTriplesReverseDictionary={},this.features={quotedTriples:!0},this.plainTermDictionary=r,this.dataFactory=a}encode(r){return r.termType==="Quad"?this.encodeQuotedTriple(r,!1):this.plainTermDictionary.encode(r)}encodeQuotedTriple(r,a){var o;if(r.graph.termType!=="DefaultGraph")throw new Error("Encoding of quoted quads outside of the default graph is not allowed");const l=(o=(0,u.encodeOptionalTerms)([r.subject,r.predicate,r.object,void 0],this))===null||o===void 0?void 0:o.slice(0,3),c=l&&l.every(f=>f!==void 0)?this.quotedTriplesReverseDictionary[l.join(ya.SEPARATOR)]:void 0;if(c!==void 0||a)return c===void 0?void 0:ya.BITMASK|c;const d=[this.encode(r.subject),this.encode(r.predicate),this.encode(r.object)],h=this.quotedTriplesDictionary.length+1;return this.quotedTriplesDictionary.push(d),this.quotedTriplesReverseDictionary[d.join(ya.SEPARATOR)]=h,ya.BITMASK|h}encodeOptional(r){return r.termType==="Quad"?this.encodeQuotedTriple(r,!0):this.plainTermDictionary.encodeOptional(r)}decode(r){if(ya.BITMASK&r){const a=(~ya.BITMASK&r)-1;if(a>=this.quotedTriplesDictionary.length)throw new Error(`The value ${r} is not present in the quoted triples range of the dictionary`);const o=this.quotedTriplesDictionary[a];return this.dataFactory.quad(this.decode(o[0]),this.decode(o[1]),this.decode(o[2]))}return this.plainTermDictionary.decode(r)}*encodings(){for(const r of this.plainTermDictionary.encodings())yield r;for(const r of this.quotedTriplesDictionary.keys())yield ya.BITMASK|1+r}*findQuotedTriples(r){for(const a of this.findQuotedTriplesEncoded(r))yield this.decode(a)}*findQuotedTriplesEncoded(r){for(let a of this.quotedTriplesDictionary.keys()){a=ya.BITMASK|1+a;const o=this.decode(a);(0,e.matchPattern)(o,r.subject,r.predicate,r.object,r.graph)&&(yield a)}}};return s.BITMASK=1<<31,s.SEPARATOR="_",Fh.TermDictionaryQuotedReferential=s,Fh}var qh={},D5;function MZ(){if(D5)return qh;D5=1,Object.defineProperty(qh,"__esModule",{value:!0}),qh.TermDictionarySymbol=void 0;const t=Et(),e=er();let u=class{constructor(n=new t.DataFactory){this.features={quotedTriples:!1},this.dataFactory=n}encode(n){return Symbol.for(`rdf::${(0,e.termToString)(n)}`)}encodeOptional(n){return this.encode(n)}decode(n){const r=Symbol.keyFor(n);if(r===void 0)throw new Error(`The value ${String(n)} is not present in this dictionary`);return(0,e.stringToTerm)(r.slice(5),this.dataFactory)}encodings(){throw new Error("encodings is not supported")}findQuotedTriples(n){throw new Error("findQuotedTriples is not supported")}findQuotedTriplesEncoded(n){throw new Error("findQuotedTriplesEncoded is not supported")}};return qh.TermDictionarySymbol=u,qh}var Qw={},N5;function FZ(){return N5||(N5=1,Object.defineProperty(Qw,"__esModule",{value:!0})),Qw}var Bh={},C5;function U7(){if(C5)return Bh;C5=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.RdfStoreIndexNestedMapRecursive=void 0;const t=Xi();let e=class{constructor(s){this.features={quotedTripleFiltering:!1},this.dictionary=s.dictionary,this.nestedMap=new Map}set(s,n){let r=this.nestedMap,a=!1;for(const[o,l]of s.entries()){const c=r;let d=c.get(l);d?o===s.length-1&&(a=!0):(d=o===s.length-1?n:new Map,c.set(l,d)),r=d}return!a}remove(s){const n=this.nestedMap,r=n.get(s[0]);if(!r)return!1;const a=r.get(s[1]);if(!a)return!1;const o=a.get(s[2]);if(!o)return!1;const l=o.delete(s[3]);return l&&o.size===0&&(a.delete(s[2]),a.size===0&&(r.delete(s[1]),r.size===0&&n.delete(s[0]))),l}get(s){const n=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!(!n||n.includes(void 0)))return this.getEncoded(n)}getEncoded(s){const n=this.nestedMap.get(s[0]);if(!n)return;const r=n.get(s[1]);if(!r)return;const a=r.get(s[2]);if(a)return a.get(s[3])}*find(s){const n=(0,t.encodeOptionalTerms)(s,this.dictionary);if(n)for(const r of this.findEncoded(n,s))yield[n[0]!==void 0?s[0]:this.dictionary.decode(r[0]),n[1]!==void 0?s[1]:this.dictionary.decode(r[1]),n[2]!==void 0?s[2]:this.dictionary.decode(r[2]),n[3]!==void 0?s[3]:this.dictionary.decode(r[3])]}*findEncoded(s,n){return yield*this.findEncodedInner(0,s,n,this.nestedMap,[])}*findEncodedInner(s,n,r,a,o){if(s===n.length)yield[...o];else{const l=n[s];if(r[s]){const d=l;if(d!==void 0){const h=a.get(d);h&&(o[s]=l,yield*this.findEncodedInner(s+1,n,r,h,o))}}else for(const[d,h]of a.entries())o[s]=d,yield*this.findEncodedInner(s+1,n,r,h,o)}}count(s){return this.countInner(0,s,this.nestedMap)}countInner(s,n,r){const a=n[s];let o=0;if(a){const l=this.dictionary.encodeOptional(a);if(l!==void 0){if(s===n.length-1)return r.has(l)?1:0;const c=r.get(l);c&&(o+=this.countInner(s+1,n,c))}}else{if(s===n.length-1)return r.size;for(const l of r.values())o+=this.countInner(s+1,n,l)}return o}};return Bh.RdfStoreIndexNestedMapRecursive=e,Bh}var Uh={},j5;function qZ(){if(j5)return Uh;j5=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.RdfStoreIndexNestedMapRecursiveQuoted=void 0;const t=Xi(),e=U7();let u=class extends e.RdfStoreIndexNestedMapRecursive{constructor(n){super(n),this.features={quotedTripleFiltering:!0}}*findEncoded(n,r){return yield*this.findEncodedInnerQuoted(0,n,r,(0,t.arePatternsQuoted)(r),this.nestedMap,[])}*findEncodedInnerQuoted(n,r,a,o,l,c){if(n===r.length)yield[...c];else{const d=r[n],h=a[n];if(h)if(o[n]){const f=this.dictionary.findQuotedTriplesEncoded(h);for(const p of f){const y=l.get(p);y&&(c[n]=p,yield*this.findEncodedInnerQuoted(n+1,r,a,o,y,c))}}else{const f=d;if(f!==void 0){const p=l.get(f);p&&(c[n]=d,yield*this.findEncodedInnerQuoted(n+1,r,a,o,p,c))}}else for(const[f,p]of l.entries())c[n]=f,yield*this.findEncodedInnerQuoted(n+1,r,a,o,p,c)}}countInner(n,r,a){const o=r[n];let l=0;if(o)if(o.termType==="Quad"&&(0,t.quadHasVariables)(o)){const c=this.dictionary.findQuotedTriplesEncoded(o);for(const d of c)if(n===r.length-1)a.has(d)&&l++;else{const h=a.get(d);h&&(l+=this.countInner(n+1,r,h))}}else{const c=this.dictionary.encodeOptional(o);if(c!==void 0){if(n===r.length-1)return a.has(c)?1:0;const d=a.get(c);d&&(l+=this.countInner(n+1,r,d))}}else{if(n===r.length-1)return a.size;for(const c of a.values())l+=this.countInner(n+1,r,c)}return l}};return Uh.RdfStoreIndexNestedMapRecursiveQuoted=u,Uh}var Hh={},L5;function H7(){if(L5)return Hh;L5=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.RdfStoreIndexNestedRecord=void 0;const t=Xi();let e=class{constructor(s){this.features={quotedTripleFiltering:!1},this.dictionary=s.dictionary,this.nestedRecords={}}set(s,n){const r=this.nestedRecords,a=r[s[0]]||(r[s[0]]={}),o=a[s[1]]||(a[s[1]]={}),l=o[s[2]]||(o[s[2]]={});return l[s[3]]?!1:(l[s[3]]=n,!0)}remove(s){const n=this.nestedRecords,r=n[s[0]];if(!r)return!1;const a=r[s[1]];if(!a)return!1;const o=a[s[2]];return!o||!o[s[3]]?!1:(delete o[s[3]],Object.keys(o).length===0&&(delete a[s[2]],Object.keys(a).length===0&&(delete r[s[1]],Object.keys(r).length===0&&delete n[s[0]])),!0)}get(s){const n=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!(!n||n.includes(void 0)))return this.getEncoded(n)}getEncoded(s){var n,r,a;return(a=(r=(n=this.nestedRecords[s[0]])===null||n===void 0?void 0:n[s[1]])===null||r===void 0?void 0:r[s[2]])===null||a===void 0?void 0:a[s[3]]}*find(s){const n=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!n)return;const[r,a,o,l]=n,[c,d,h,f]=s;let p,y,b,m,g,v,_;const w=this.nestedRecords,S=r!==void 0?r in w?[r]:[]:Object.keys(w);for(const A of S){g=w[A],p=c||this.dictionary.decode(Number.parseInt(A,10));const D=a!==void 0?a in g?[a]:[]:Object.keys(g);for(const L of D){v=g[L],y=d||this.dictionary.decode(Number.parseInt(L,10));const E=o!==void 0?o in v?[o]:[]:Object.keys(v);for(const O of E){_=v[O],b=h||this.dictionary.decode(Number.parseInt(O,10));const P=l!==void 0?l in _?[l]:[]:Object.keys(_);for(const j of P)m=f||this.dictionary.decode(Number.parseInt(j,10)),yield[p,y,b,m]}}}}*findEncoded(s,n){const[r,a,o,l]=s;let c,d,h;const f=this.nestedRecords,p=r!==void 0?r in f?[r]:[]:Object.keys(f);for(const y of p){c=f[y];const b=a!==void 0?a in c?[a]:[]:Object.keys(c);for(const m of b){d=c[m];const g=o!==void 0?o in d?[o]:[]:Object.keys(d);for(const v of g){h=d[v];const _=l!==void 0?l in h?[l]:[]:Object.keys(h);for(const w of _)yield[Number.parseInt(y,10),Number.parseInt(m,10),Number.parseInt(v,10),Number.parseInt(w,10)]}}}}count(s){let n=0;const r=(0,t.encodeOptionalTerms)(s,this.dictionary);if(!r)return 0;const a=r[0],o=r[1],l=r[2],c=r[3];let d,h,f;const p=this.nestedRecords,y=a!==void 0?a in p?[a]:[]:Object.keys(p);for(const b of y){d=p[b];const m=o!==void 0?o in d?[o]:[]:Object.keys(d);for(const g of m){h=d[g];const v=l!==void 0?l in h?[l]:[]:Object.keys(h);for(const _ of v)f=h[_],c!==void 0?c in f&&n++:n+=Object.keys(f).length}}return n}};return Hh.RdfStoreIndexNestedRecord=e,Hh}var $h={},M5;function BZ(){if(M5)return $h;M5=1,Object.defineProperty($h,"__esModule",{value:!0}),$h.RdfStoreIndexNestedRecordQuoted=void 0;const t=Xi(),e=H7();let u=class extends e.RdfStoreIndexNestedRecord{constructor(n){super(n),this.features={quotedTripleFiltering:!0}}*getQuotedPatternKeys(n,r){for(const a of this.dictionary.findQuotedTriplesEncoded(r))a in n&&(yield a)}*find(n){const r=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!r)return;const[a,o,l,c]=r,[d,h,f,p]=n,[y,b,m,g]=(0,t.arePatternsQuoted)(n);let v,_,w,S,A,D,L;const E=this.nestedRecords,O=d!==void 0?y?this.getQuotedPatternKeys(E,d):a in E?[a]:[]:Object.keys(E);for(const P of O){A=E[P],v=!y&&d?d:this.dictionary.decode(Number.parseInt(P,10));const j=h!==void 0?b?this.getQuotedPatternKeys(A,h):o in A?[o]:[]:Object.keys(A);for(const U of j){D=A[U],_=!b&&h?h:this.dictionary.decode(Number.parseInt(U,10));const M=f!==void 0?m?this.getQuotedPatternKeys(D,f):l in D?[l]:[]:Object.keys(D);for(const q of M){L=D[q],w=!m&&f?f:this.dictionary.decode(Number.parseInt(q,10));const Q=p!==void 0?g?this.getQuotedPatternKeys(L,p):c in L?[c]:[]:Object.keys(L);for(const Z of Q)S=!g&&p?p:this.dictionary.decode(Number.parseInt(Z,10)),yield[v,_,w,S]}}}}*findEncoded(n,r){const[a,o,l,c]=n,[d,h,f,p]=r,[y,b,m,g]=(0,t.arePatternsQuoted)(r);let v,_,w;const S=this.nestedRecords,A=d!==void 0?y?this.getQuotedPatternKeys(S,d):a in S?[a]:[]:Object.keys(S);for(const D of A){v=S[D];const L=h!==void 0?b?this.getQuotedPatternKeys(v,h):o in v?[o]:[]:Object.keys(v);for(const E of L){_=v[E];const O=f!==void 0?m?this.getQuotedPatternKeys(_,f):l in _?[l]:[]:Object.keys(_);for(const P of O){w=_[P];const j=p!==void 0?g?this.getQuotedPatternKeys(w,p):c in w?[c]:[]:Object.keys(w);for(const U of j)yield[Number.parseInt(D,10),Number.parseInt(E,10),Number.parseInt(P,10),Number.parseInt(U,10)]}}}}count(n){let r=0;const a=(0,t.encodeOptionalTerms)(n,this.dictionary);if(!a)return 0;const[o,l,c,d]=a,[h,f,p,y]=n,[b,m,g,v]=(0,t.arePatternsQuoted)(n);let _,w,S;const A=this.nestedRecords,D=h!==void 0?b?this.getQuotedPatternKeys(A,h):o in A?[o]:[]:Object.keys(A);for(const L of D){_=A[L];const E=f!==void 0?m?this.getQuotedPatternKeys(_,f):l in _?[l]:[]:Object.keys(_);for(const O of E){w=_[O];const P=p!==void 0?g?this.getQuotedPatternKeys(w,p):c in w?[c]:[]:Object.keys(w);for(const j of P)S=w[j],y!==void 0?v?r+=[...this.getQuotedPatternKeys(S,y)].length:d in S&&r++:r+=Object.keys(S).length}}return r}};return $h.RdfStoreIndexNestedRecordQuoted=u,$h}var Vw={},F5;function UZ(){return F5||(F5=1,Object.defineProperty(Vw,"__esModule",{value:!0})),Vw}var kw={},q5;function HZ(){return q5||(q5=1,Object.defineProperty(kw,"__esModule",{value:!0})),kw}var B5;function $Z(){return B5||(B5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(B7(),t),u(DZ(),t),u(NZ(),t),u(CZ(),t),u(j7(),t),u(jZ(),t),u(L7(),t),u(LZ(),t),u(MZ(),t),u(FZ(),t),u(nA(),t),u(M7(),t),u(U7(),t),u(qZ(),t),u(H7(),t),u(BZ(),t),u(UZ(),t),u(Xi(),t),u(HZ(),t),u(F7(),t)}(Uw)),Uw}var U5;function $7(){if(U5)return Rh;U5=1,Object.defineProperty(Rh,"__esModule",{value:!0}),Rh.storeStream=void 0;const t=$Z();function e(u){const s=t.RdfStore.createDefault();return new Promise((n,r)=>s.import(u).on("error",r).once("end",()=>n(s)))}return Rh.storeStream=e,Rh}var H5;function QZ(){if(H5)return Ah;H5=1,Object.defineProperty(Ah,"__esModule",{value:!0}),Ah.ActorQuerySourceIdentifyHypermediaNone=void 0;const t=rA(),e=xr(),u=tA(),s=$7();let n=class extends u.ActorQuerySourceIdentifyHypermedia{constructor(a){super(a,"file")}async testMetadata(a){return{filterFactor:0}}async run(a){this.logInfo(a.context,`Identified as file source: ${a.url}`);const o=new t.QuerySourceRdfJs(await(0,s.storeStream)(a.quads),await e.BindingsFactory.create(this.mediatorMergeBindingsContext,a.context));return o.toString=()=>`QuerySourceRdfJs(${a.url})`,o.referenceValue=a.url,{source:o}}};return Ah.ActorQuerySourceIdentifyHypermediaNone=n,Ah}var $5;function VZ(){return $5||($5=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(QZ(),t)}(Fw)),Fw}var zw={},Qh={},Gw={},Vh={},kh={},Ww={},xs={},Q5;function Ki(){if(Q5)return xs;Q5=1,Object.defineProperty(xs,"__esModule",{value:!0}),xs.asTermType=xs.ExpressionType=void 0;var t;(function(u){u.Aggregate="aggregate",u.Existence="existence",u.Named="named",u.Operator="operator",u.SpecialOperator="specialOperator",u.Term="term",u.Variable="variable",u.AsyncExtension="asyncExtension",u.SyncExtension="syncExtension"})(t||(xs.ExpressionType=t={}));function e(u){if(u==="namedNode"||u==="literal"||u==="blankNode"||u==="quad")return u}return xs.asTermType=e,xs}var zh={},V5;function kZ(){if(V5)return zh;V5=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.Variable=void 0;const t=Ki();let e=class{constructor(s){this.expressionType=t.ExpressionType.Variable,this.name=s}};return zh.Variable=e,zh}var At={},Gh={},Jw={},k5;function Cn(){return k5||(k5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.NamedOperators=t.SetFunctions=t.SetFunction=t.Operators=t.SpecialOperators=t.RegularOperators=t.SpecialOperator=t.RegularOperator=t.TypeURL=t.TypeAlias=void 0;var e;(function(a){a.SPARQL_NUMERIC="SPARQL_NUMERIC",a.SPARQL_STRINGLY="SPARQL_STRINGLY"})(e||(t.TypeAlias=e={}));var u;(function(a){a.XSD_ANY_URI="http://www.w3.org/2001/XMLSchema#anyURI",a.XSD_STRING="http://www.w3.org/2001/XMLSchema#string",a.RDF_LANG_STRING="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString",a.XSD_BOOLEAN="http://www.w3.org/2001/XMLSchema#boolean",a.XSD_DATE_TIME="http://www.w3.org/2001/XMLSchema#dateTime",a.XSD_DATE_TIME_STAMP="http://www.w3.org/2001/XMLSchema#dateTimeStamp",a.XSD_DATE="http://www.w3.org/2001/XMLSchema#date",a.XSD_G_MONTH="http://www.w3.org/2001/XMLSchema#gMonth",a.XSD_G_MONTHDAY="http://www.w3.org/2001/XMLSchema#gMonthDay",a.XSD_G_YEAR="http://www.w3.org/2001/XMLSchema#gYear",a.XSD_G_YEAR_MONTH="http://www.w3.org/2001/XMLSchema#gYearMonth",a.XSD_TIME="http://www.w3.org/2001/XMLSchema#time",a.XSD_G_DAY="http://www.w3.org/2001/XMLSchema#gDay",a.XSD_DECIMAL="http://www.w3.org/2001/XMLSchema#decimal",a.XSD_FLOAT="http://www.w3.org/2001/XMLSchema#float",a.XSD_DOUBLE="http://www.w3.org/2001/XMLSchema#double",a.XSD_INTEGER="http://www.w3.org/2001/XMLSchema#integer",a.XSD_NON_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonPositiveInteger",a.XSD_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#negativeInteger",a.XSD_LONG="http://www.w3.org/2001/XMLSchema#long",a.XSD_INT="http://www.w3.org/2001/XMLSchema#int",a.XSD_SHORT="http://www.w3.org/2001/XMLSchema#short",a.XSD_BYTE="http://www.w3.org/2001/XMLSchema#byte",a.XSD_NON_NEGATIVE_INTEGER="http://www.w3.org/2001/XMLSchema#nonNegativeInteger",a.XSD_POSITIVE_INTEGER="http://www.w3.org/2001/XMLSchema#positiveInteger",a.XSD_UNSIGNED_LONG="http://www.w3.org/2001/XMLSchema#unsignedLong",a.XSD_UNSIGNED_INT="http://www.w3.org/2001/XMLSchema#unsignedInt",a.XSD_UNSIGNED_SHORT="http://www.w3.org/2001/XMLSchema#unsignedShort",a.XSD_UNSIGNED_BYTE="http://www.w3.org/2001/XMLSchema#unsignedByte",a.XSD_NORMALIZED_STRING="http://www.w3.org/2001/XMLSchema#normalizedString",a.XSD_TOKEN="http://www.w3.org/2001/XMLSchema#token",a.XSD_LANGUAGE="http://www.w3.org/2001/XMLSchema#language",a.XSD_NM_TOKEN="http://www.w3.org/2001/XMLSchema#NMTOKEN",a.XSD_NAME="http://www.w3.org/2001/XMLSchema#name",a.XSD_NC_NAME="http://www.w3.org/2001/XMLSchema#NCName",a.XSD_ENTITY="http://www.w3.org/2001/XMLSchema#ENTITY",a.XSD_ID="http://www.w3.org/2001/XMLSchema#ID",a.XSD_ID_REF="http://www.w3.org/2001/XMLSchema#IDREF",a.XSD_DURATION="http://www.w3.org/2001/XMLSchema#duration",a.XSD_YEAR_MONTH_DURATION="http://www.w3.org/2001/XMLSchema#yearMonthDuration",a.XSD_DAY_TIME_DURATION="http://www.w3.org/2001/XMLSchema#dayTimeDuration"})(u||(t.TypeURL=u={}));var s;(function(a){a.NOT="!",a.UMINUS="uminus",a.UPLUS="uplus",a.EQUAL="=",a.NOT_EQUAL="!=",a.LT="<",a.GT=">",a.LTE="<=",a.GTE=">=",a.MULTIPLICATION="*",a.DIVISION="/",a.ADDITION="+",a.SUBTRACTION="-",a.IS_IRI="isiri",a.IS_URI="isuri",a.IS_BLANK="isblank",a.IS_LITERAL="isliteral",a.IS_NUMERIC="isnumeric",a.STR="str",a.LANG="lang",a.DATATYPE="datatype",a.IRI="iri",a.URI="uri",a.STRDT="strdt",a.STRLANG="strlang",a.UUID="uuid",a.STRUUID="struuid",a.STRLEN="strlen",a.SUBSTR="substr",a.UCASE="ucase",a.LCASE="lcase",a.STRSTARTS="strstarts",a.STRENDS="strends",a.CONTAINS="contains",a.STRBEFORE="strbefore",a.STRAFTER="strafter",a.ENCODE_FOR_URI="encode_for_uri",a.LANG_MATCHES="langmatches",a.REGEX="regex",a.REPLACE="replace",a.ABS="abs",a.ROUND="round",a.CEIL="ceil",a.FLOOR="floor",a.RAND="rand",a.NOW="now",a.YEAR="year",a.MONTH="month",a.DAY="day",a.HOURS="hours",a.MINUTES="minutes",a.SECONDS="seconds",a.TIMEZONE="timezone",a.TZ="tz",a.MD5="md5",a.SHA1="sha1",a.SHA256="sha256",a.SHA384="sha384",a.SHA512="sha512",a.TRIPLE="triple",a.SUBJECT="subject",a.PREDICATE="predicate",a.OBJECT="object",a.IS_TRIPLE="istriple"})(s||(t.RegularOperator=s={}));var n;(function(a){a.BOUND="bound",a.IF="if",a.COALESCE="coalesce",a.LOGICAL_OR="||",a.LOGICAL_AND="&&",a.SAME_TERM="sameterm",a.IN="in",a.NOT_IN="notin",a.CONCAT="concat",a.BNODE="bnode"})(n||(t.SpecialOperator=n={})),t.RegularOperators=new Set(Object.values(s)),t.SpecialOperators=new Set(Object.values(n)),t.Operators=new Set([...t.RegularOperators,...t.SpecialOperators]);var r;(function(a){a.COUNT="count",a.SUM="sum",a.MIN="min",a.MAX="max",a.AVG="avg",a.GROUP_CONCAT="group_concat",a.SAMPLE="sample"})(r||(t.SetFunction=r={})),t.SetFunctions=new Set(Object.values(r)),t.NamedOperators=new Set([u.XSD_STRING,u.XSD_FLOAT,u.XSD_DOUBLE,u.XSD_DECIMAL,u.XSD_INTEGER,u.XSD_DATE_TIME,u.XSD_DATE,u.XSD_BOOLEAN,u.XSD_TIME,u.XSD_DURATION,u.XSD_DAY_TIME_DURATION,u.XSD_YEAR_MONTH_DURATION])}(Jw)),Jw}var gt={},z5;function on(){if(z5)return gt;z5=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.NoExistenceHook=gt.NoAggregator=gt.ExtensionFunctionError=gt.UnknownNamedOperator=gt.UnknownOperator=gt.InvalidTermType=gt.InvalidExpressionType=gt.InvalidExpression=gt.InvalidArity=gt.UnexpectedError=gt.ParseError=gt.EmptyAggregateError=gt.IncompatibleLanguageOperation=gt.InvalidTimezoneCall=gt.CastError=gt.InvalidCompareArgumentTypes=gt.InvalidArgumentTypes=gt.InError=gt.CoalesceError=gt.RDFEqualTypeError=gt.EBVCoercionError=gt.UnboundVariableError=gt.InvalidLexicalForm=gt.isExpressionError=gt.ExpressionError=void 0;class t extends Error{}gt.ExpressionError=t;function e(O){return O instanceof t}gt.isExpressionError=e;class u extends t{constructor(P){super(`Invalid lexical form '${E(P)}'`),this.arg=P}}gt.InvalidLexicalForm=u;class s extends t{constructor(P,j){super(`Unbound variable '${E(P)}'`),this.variable=P,this.bindings=j}}gt.UnboundVariableError=s;class n extends t{constructor(P){super(`Cannot coerce term to EBV '${E(P)}'`),this.arg=P}}gt.EBVCoercionError=n;class r extends t{constructor(P){super("Equality test for literals with unsupported datatypes"),this.args=P}}gt.RDFEqualTypeError=r;class a extends t{constructor(P){super("All COALESCE arguments threw errors"),this.errors=P}}gt.CoalesceError=a;class o extends t{constructor(P){super(`Some argument to IN errorred and none where equal. ${P.map(j=>`(${j.toString()}) `).join("and ")}`),this.errors=P}}gt.InError=o;class l extends t{constructor(P,j){super(`Argument types not valid for operator: '${E(j)}' with '${E(P)}`),this.args=P,this.op=j}}gt.InvalidArgumentTypes=l;class c extends t{constructor(P,j){super(`Compared argument types are supported: '${P.termType}' and '${j.termType}'`),this.arg0=P,this.arg1=j}}gt.InvalidCompareArgumentTypes=c;class d extends t{constructor(P,j){super(`Invalid cast: '${E(P)}' to '${E(j)}'`),this.arg=P}}gt.CastError=d;class h extends t{constructor(P){super(`TIMEZONE call on ${P} which has no timezone`),this.dateString=P}}gt.InvalidTimezoneCall=h;class f extends t{constructor(P,j){super(`Operation on incompatible language literals '${E(P)}' and '${E(j)}'`),this.arg1=P,this.arg2=j}}gt.IncompatibleLanguageOperation=f;class p extends t{constructor(){super("Empty aggregate expression")}}gt.EmptyAggregateError=p;class y extends t{constructor(P,j){super(`Failed to parse ${P} as ${j}.`)}}gt.ParseError=y;class b extends Error{constructor(P,j){super(`Programmer Error '${P}'`),this.payload=j}}gt.UnexpectedError=b;class m extends Error{constructor(P,j){super(`The number of args does not match the arity of the operator '${E(j)}'.`),this.args=P,this.op=j}}gt.InvalidArity=m;class g extends Error{constructor(P){super(`Invalid SPARQL Expression '${E(P)}'`)}}gt.InvalidExpression=g;class v extends Error{constructor(P){super(`Invalid expression type for SPARQL Expression '${E(P)}'`),this.expr=P}}gt.InvalidExpressionType=v;class _ extends Error{constructor(P){super(`Invalid term type for term '${E(P)}'`),this.term=P}}gt.InvalidTermType=_;class w extends Error{constructor(P){super(`Unknown operator: '${E(P)}`)}}gt.UnknownOperator=w;class S extends Error{constructor(P){super(`Unknown named operator: '${E(P)}'`)}}gt.UnknownNamedOperator=S;class A extends Error{constructor(P,j){j instanceof Error?super(`Error thrown in ${P}: ${j.message}${j.stack?` +${j.stack}`:""}`):super(`Error thrown in ${P}`)}}gt.ExtensionFunctionError=A;class D extends Error{constructor(P){super(`Aggregate expression ${E(P)} found, but no aggregate hook provided.`)}}gt.NoAggregator=D;class L extends Error{constructor(){super("EXISTS found, but no existence hook provided.")}}gt.NoExistenceHook=L;function E(O){return JSON.stringify(O)}return gt}var jr={},$t={},G5;function ou(){if(G5)return $t;G5=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.extractTimeZone=$t.extractRawTimeZone=$t.dayTimeDurationsToSeconds=$t.yearMonthDurationsToMonths=$t.trimToDayTimeDuration=$t.trimToYearMonthDuration=$t.toUTCDate=$t.toJSDate=$t.negateDuration=$t.toDateTimeRepresentation=$t.defaultedDateTimeRepresentation=$t.simplifyDurationRepresentation=$t.defaultedDurationRepresentation=$t.defaultedYearMonthDurationRepresentation=$t.defaultedDayTimeDurationRepresentation=void 0;function t(b){return{day:b.day??0,hours:b.hours??0,minutes:b.minutes??0,seconds:b.seconds??0}}$t.defaultedDayTimeDurationRepresentation=t;function e(b){return{year:b.year??0,month:b.month??0}}$t.defaultedYearMonthDurationRepresentation=e;function u(b){return{...t(b),...e(b)}}$t.defaultedDurationRepresentation=u;function s(b){const m=u(b),g={},v=m.year+Math.trunc(m.month/12);v&&(g.year=v,m.month%=12),m.month&&(g.month=m.month);const _=m.day+Math.trunc(m.hours/24)+Math.trunc(m.minutes/(24*60))+Math.trunc(m.seconds/(24*60*60));_&&(g.day=_,m.hours%=24,m.minutes%=24*60,m.seconds%=24*60*60);const w=m.hours+Math.trunc(m.minutes/60)+Math.trunc(m.seconds/(60*60));w&&(g.hours=w,m.minutes%=60,m.seconds%=60*60);const S=m.minutes+Math.trunc(m.seconds/60);return S&&(g.minutes=S,m.seconds%=60),m.seconds&&(g.seconds=m.seconds),g}$t.simplifyDurationRepresentation=s;function n(b){return{...b,day:b.day??1,hours:b.hours??0,month:b.month??1,year:b.year??0,seconds:b.seconds??0,minutes:b.minutes??0}}$t.defaultedDateTimeRepresentation=n;function r({date:b,timeZone:m}){return{year:b.getFullYear(),month:b.getMonth()+1,day:b.getDate(),hours:b.getHours(),minutes:b.getMinutes(),seconds:b.getSeconds(),zoneHours:m.zoneHours,zoneMinutes:m.zoneMinutes}}$t.toDateTimeRepresentation=r;function a(b){return{year:b.year===void 0?void 0:-1*b.year,month:b.month===void 0?void 0:-1*b.month,day:b.day===void 0?void 0:-1*b.day,hours:b.hours===void 0?void 0:-1*b.hours,minutes:b.minutes===void 0?void 0:-1*b.minutes,seconds:b.seconds===void 0?void 0:-1*b.seconds}}$t.negateDuration=a;function o(b){const m=new Date(b.year,b.month-1,b.day,b.hours,b.minutes,Math.trunc(b.seconds),b.seconds%1*1e3);return b.year>=0&&b.year<100&&m.setFullYear(m.getFullYear()-1900),m}$t.toJSDate=o;function l(b,m){const g=o(n(b)),v=g.getTimezoneOffset(),_=b.zoneHours??m.zoneHours,w=b.zoneMinutes??m.zoneMinutes;return new Date(g.getTime()-(v+_*60+w)*60*1e3)}$t.toUTCDate=l;function c(b){return{year:b.year,month:b.month}}$t.trimToYearMonthDuration=c;function d(b){return{day:b.day,hours:b.hours,minutes:b.minutes,seconds:b.seconds}}$t.trimToDayTimeDuration=d;function h(b){return b.year*12+b.month}$t.yearMonthDurationsToMonths=h;function f(b){return((b.day*24+b.hours)*60+b.minutes)*60+b.seconds}$t.dayTimeDurationsToSeconds=f;function p(b){return/(Z|([+-]\d\d:\d\d))?$/u.exec(b)[0]}$t.extractRawTimeZone=p;function y(b){return{zoneHours:b.getTimezoneOffset()/60,zoneMinutes:b.getTimezoneOffset()%60}}return $t.extractTimeZone=y,$t}var ca={},W5;function Q7(){if(W5)return ca;W5=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.elapsedDuration=ca.addDurationToDateTime=ca.maximumDayInMonthFor=void 0;const t=ou();function e(r,a,o=0){const l=r-o,c=a-o,d=Math.floor(l/c);return{intDiv:d,remainder:r-d*c}}function u(r,a){const{intDiv:o,remainder:l}=e(a,13,1),c=r+o;return[1,3,5,7,8,10,12].includes(l)?31:[4,6,9,11].includes(l)?30:l===2&&(e(c,400).remainder===0||e(c,100).remainder!==0&&e(c,4).remainder===0)?29:28}ca.maximumDayInMonthFor=u;function s(r,a){const o={...r};let l=e(r.month+a.month,13,1);for(o.month=l.remainder,o.year=r.year+a.year+l.intDiv,l=e(r.seconds+a.seconds,60),o.seconds=l.remainder,l=e(r.minutes+a.minutes+l.intDiv,60),o.minutes=l.remainder,l=e(r.hours+a.hours+l.intDiv,24),o.hours=l.remainder,o.day=r.day+a.day+l.intDiv;;){let c;if(o.day<1)o.day+=u(o.year,o.month-1),c=-1;else if(o.day>u(o.year,o.month))o.day-=u(o.year,o.month),c=1;else break;l=e(o.month+c,13,1),o.month=l.remainder,o.year+=l.intDiv}return o}ca.addDurationToDateTime=s;function n(r,a,o){const l=(0,t.toUTCDate)(r,o),c=(0,t.toUTCDate)(a,o),d=l.getTime()-c.getTime();return{day:Math.floor(d/(1e3*60*60*24)),hours:Math.floor(d%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(d%(1e3*60*60)/(1e3*60)),seconds:d%(1e3*60)}}return ca.elapsedDuration=n,ca}var J5;function y3(){if(J5)return jr;J5=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.parseDayTimeDuration=jr.parseYearMonthDuration=jr.parseDuration=jr.parseTime=jr.parseDate=jr.parseDateTime=jr.parseXSDInteger=jr.parseXSDDecimal=jr.parseXSDFloat=void 0;const t=ou(),e=on(),u=Q7();function s(y){const b=Number(y);return Number.isNaN(b)?y==="NaN"?Number.NaN:y==="INF"||y==="+INF"?Number.POSITIVE_INFINITY:y==="-INF"?Number.NEGATIVE_INFINITY:void 0:b}jr.parseXSDFloat=s;function n(y){const b=Number(y);return Number.isNaN(b)?void 0:b}jr.parseXSDDecimal=n;function r(y){const b=Number.parseInt(y,10);return Number.isNaN(b)?void 0:b}jr.parseXSDInteger=r;function a(y){const[b,m]=y.split("T");return{...l(b),...c(m)}}jr.parseDateTime=a;function o(y){if(y==="")return{zoneHours:void 0,zoneMinutes:void 0};if(y==="Z")return{zoneHours:0,zoneMinutes:0};const m=y.replaceAll(/^([+|-])(\d\d):(\d\d)$/gu,"$11!$2!$3").split("!").map(Number);return{zoneHours:m[0]*m[1],zoneMinutes:m[0]*m[2]}}function l(y){const b=y.replaceAll(/^(-)?([123456789]*\d{4})-(\d\d)-(\d\d)(Z|([+-]\d\d:\d\d))?$/gu,"$11!$2!$3!$4!$5");if(b===y)throw new e.ParseError(y,"date");const m=b.split("!"),g=m.slice(0,-1).map(Number),v={year:g[0]*g[1],month:g[2],day:g[3],...o(m[4])};if(!(v.month>=1&&v.month<=12)||!(v.day>=1&&v.day<=(0,u.maximumDayInMonthFor)(v.year,v.month)))throw new e.ParseError(y,"date");return v}jr.parseDate=l;function c(y){const b=y.replaceAll(/^(\d\d):(\d\d):(\d\d(\.\d+)?)(Z|([+-]\d\d:\d\d))?$/gu,"$1!$2!$3!$5");if(b===y)throw new e.ParseError(y,"time");const m=b.split("!"),g=m.slice(0,-1).map(Number),v={hours:g[0],minutes:g[1],seconds:g[2],...o(m[3])};if(v.seconds>=60||v.minutes>=60||v.hours>24||v.hours===24&&(v.minutes!==0||v.seconds!==0))throw new e.ParseError(y,"time");return v}function d(y){const b=c(y);return b.hours%=24,b}jr.parseTime=d;function h(y){const[b,m]=y.split("T"),g=b.replaceAll(/^(-)?P(\d+Y)?(\d+M)?(\d+D)?$/gu,"$11S!$2!$3!$4");if(g===b)throw new e.ParseError(y,"duration");const v=g.split("!");if(m!==void 0){const S=m.replaceAll(/^(\d+H)?(\d+M)?(\d+(\.\d+)?S)?$/gu,"$1!$2!$3");if(m===""||m===S)throw new e.ParseError(y,"duration");v.push(...S.split("!"))}const _=v.map(S=>S.slice(0,-1));if(!_.slice(1).some(Boolean))throw new e.ParseError(y,"duration");const w=Number(_[0]);return(0,t.simplifyDurationRepresentation)({year:_[1]?w*Number(_[1]):void 0,month:_[2]?w*Number(_[2]):void 0,day:_[3]?w*Number(_[3]):void 0,hours:_[4]?w*Number(_[4]):void 0,minutes:_[5]?w*Number(_[5]):void 0,seconds:_[6]?w*Number(_[6]):void 0})}jr.parseDuration=h;function f(y){const b=h(y);if(["hours","minutes","seconds","day"].some(m=>!!b[m]))throw new e.ParseError(y,"yearMonthDuration");return b}jr.parseYearMonthDuration=f;function p(y){const b=h(y);if(["year","month"].some(m=>!!b[m]))throw new e.ParseError(y,"dayTimeDuration");return b}return jr.parseDayTimeDuration=p,jr}var Xw={},fr={},Wh={},X5;function V7(){if(X5)return Wh;X5=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.OverloadTree=void 0;const t=Kn(),e=Wb();let u=class b3{constructor(n,r){this.identifier=n,this.implementation=void 0,this.generalOverloads=Object.create(null),this.literalOverLoads=[],this.depth=r??0,this.promotionCount=void 0}getSubtree(n){const r=(0,e.asGeneralType)(n);if(r)return this.generalOverloads[r];for(const[a,o]of this.literalOverLoads)if(n===a)return o}getImplementationExact(n){let r=this;for(const a of n)if(r=r.getSubtree(a),!r)return;return r.implementation}search(n,r,a){let o=a[this.identifier],l=0;for(;l({node:h,index:d+1})));c.length>0;){const{index:h,node:f}=c.pop();if(h===n.length&&f.implementation)return this.addToCache(a,n,f.implementation),f.implementation;c.push(...f.getSubTreeWithArg(n[h],r).map(p=>({node:p,index:h+1})))}}addToCache(n,r,a){function o(c,d){return d in c||(c[d]={}),c[d]}let l=o(n,this.identifier);for(const c of r){const d=(0,t.isLiteralTermExpression)(c),h=d?d.dataType:c.termType;l.cache=l.cache??{},l=o(l.cache,h)}l.func=a}addOverload(n,r){this._addOverload([...n],r,0)}_addOverload(n,r,a){const[o,...l]=n;if(!o){(this.promotionCount===void 0||a<=this.promotionCount)&&(this.promotionCount=a,this.implementation=r);return}let c=this.getSubtree(o);if(!c){const d=new b3(this.identifier,this.depth+1),h=(0,e.asGeneralType)(o);h&&(this.generalOverloads[h]=d);const f=(0,e.asOverrideType)(o);f&&this.literalOverLoads.push([f,d]),c=d}if(c._addOverload(l,r,a),e.typePromotion[o])for(const d of e.typePromotion[o])this.addPromotedOverload(d.typeToPromote,r,d.conversionFunction,l,a)}addPromotedOverload(n,r,a,o,l){let c=this.getSubtree(n);if(!c){const d=new b3(this.identifier,this.depth+1);this.literalOverLoads.push([n,d]),c=d}c._addOverload(o,d=>h=>r(d)([...h.slice(0,this.depth),a(h[this.depth]),...h.slice(this.depth+1,h.length)]),l+1)}getSubTreeWithArg(n,r){const a=[],o=(0,t.isLiteralTermExpression)(n);if(this.generalOverloads.term&&a.push(this.generalOverloads.term),this.generalOverloads[n.termType]&&a.push(this.generalOverloads[n.termType]),o){const l=(0,e.asKnownLiteralType)(o.dataType);let c;l?c=e.superTypeDictTable[l]:c=(0,e.getSuperTypes)(o.dataType,r);const d=this.literalOverLoads.filter(([h,f])=>h in c).map(([h,f])=>[c[h],f]);d.sort(([h,f],[p,y])=>h-p),a.push(...d.map(([h,f])=>f))}return a}};return Wh.OverloadTree=u,Wh}var K5;function Yi(){if(K5)return fr;K5=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.expressionToVar=fr.dateTime=fr.langString=fr.string=fr.double=fr.float=fr.decimal=fr.integer=fr.bool=fr.Builder=fr.declare=void 0;const t=Et(),e=Kn(),u=Kn(),s=Cn(),n=Cn(),r=on(),a=V7(),o=new t.DataFactory;function l(_){return new c(_)}fr.declare=l;class c{constructor(w){this.overloadTree=new a.OverloadTree(w),this.collected=!1}collect(){if(this.collected)throw new Error("Builders can only be collected once!");return this.collected=!0,this.overloadTree}static wrapInvalidLexicalProtected(w){return S=>A=>{for(const[D,L]of A.entries())if(L instanceof u.NonLexicalLiteral)throw new r.InvalidLexicalForm(A[D].toRDF());return w(S)(A)}}set(w,S,A=!0){return this.overloadTree.addOverload(w,A?c.wrapInvalidLexicalProtected(S):S),this}copy({from:w,to:S}){const A=this.overloadTree.getImplementationExact(w);if(!A)throw new r.UnexpectedError("Tried to copy implementation, but types not found",{from:w,to:S});return this.set(S,A)}onUnary(w,S,A=!0){return this.set([w],D=>([L])=>S(D)(L),A)}onUnaryTyped(w,S,A=!0){return this.set([w],D=>([L])=>S(D)(L.typedValue),A)}onBinary(w,S,A=!0){return this.set(w,D=>([L,E])=>S(D)(L,E),A)}onBinaryTyped(w,S,A=!0){return this.set(w,D=>([L,E])=>S(D)(L.typedValue,E.typedValue),A)}onTernaryTyped(w,S,A=!0){return this.set(w,D=>([L,E,O])=>S(D)(L.typedValue,E.typedValue,O.typedValue),A)}onTernary(w,S,A=!0){return this.set(w,D=>([L,E,O])=>S(D)(L,E,O),A)}onQuaternaryTyped(w,S,A=!0){return this.set(w,D=>([L,E,O,P])=>S(D)(L.typedValue,E.typedValue,O.typedValue,P.typedValue),A)}onTerm1(w,S=!1){return this.set(["term"],A=>([D])=>w(A)(D),S)}onTerm3(w){return this.set(["term","term","term"],S=>([A,D,L])=>w(S)(A,D,L))}onQuad1(w){return this.set(["quad"],S=>([A])=>w(S)(A))}onLiteral1(w,S=!0){return this.set(["literal"],A=>([D])=>w(A)(D),S)}onBoolean1(w,S=!0){return this.set([s.TypeURL.XSD_BOOLEAN],A=>([D])=>w(A)(D),S)}onBoolean1Typed(w,S=!0){return this.set([s.TypeURL.XSD_BOOLEAN],A=>([D])=>w(A)(D.typedValue),S)}onString1(w,S=!0){return this.set([s.TypeURL.XSD_STRING],A=>([D])=>w(A)(D),S)}onString1Typed(w,S=!0){return this.set([s.TypeURL.XSD_STRING],A=>([D])=>w(A)(D.typedValue),S)}onLangString1(w,S=!0){return this.set([s.TypeURL.RDF_LANG_STRING],A=>([D])=>w(A)(D),S)}onStringly1(w,S=!0){return this.set([s.TypeAlias.SPARQL_STRINGLY],A=>([D])=>w(A)(D),S)}onStringly1Typed(w,S=!0){return this.set([s.TypeAlias.SPARQL_STRINGLY],A=>([D])=>w(A)(D.typedValue),S)}onNumeric1(w,S=!0){return this.set([s.TypeAlias.SPARQL_NUMERIC],A=>([D])=>w(A)(D),S)}onDateTime1(w,S=!0){return this.set([s.TypeURL.XSD_DATE_TIME],A=>([D])=>w(A)(D),S)}numericConverter(w,S=!0){const A=D=>L=>w(D)(L.typedValue);return this.onUnary(n.TypeURL.XSD_INTEGER,D=>L=>h(A(D)(L)),S).onUnary(n.TypeURL.XSD_DECIMAL,D=>L=>f(A(D)(L)),S).onUnary(n.TypeURL.XSD_FLOAT,D=>L=>p(A(D)(L)),S).onUnary(n.TypeURL.XSD_DOUBLE,D=>L=>y(A(D)(L)),S)}arithmetic(w,S=!0){const A=D=>(L,E)=>w(D)(L.typedValue,E.typedValue);return this.onBinary([n.TypeURL.XSD_INTEGER,n.TypeURL.XSD_INTEGER],D=>(L,E)=>h(A(D)(L,E)),S).onBinary([n.TypeURL.XSD_DECIMAL,n.TypeURL.XSD_DECIMAL],D=>(L,E)=>f(A(D)(L,E)),S).onBinary([n.TypeURL.XSD_FLOAT,n.TypeURL.XSD_FLOAT],D=>(L,E)=>p(A(D)(L,E)),S).onBinary([n.TypeURL.XSD_DOUBLE,n.TypeURL.XSD_DOUBLE],D=>(L,E)=>y(A(D)(L,E)),S)}numberTest(w){return this.numeric(S=>([A,D])=>{const L=w(S)(A.typedValue,D.typedValue);return d(L)})}stringTest(w,S=!0){return this.set([s.TypeURL.XSD_STRING,s.TypeURL.XSD_STRING],A=>([D,L])=>{const E=w(A)(D.typedValue,L.typedValue);return d(E)},S)}booleanTest(w,S=!0){return this.set([s.TypeURL.XSD_BOOLEAN,s.TypeURL.XSD_BOOLEAN],A=>([D,L])=>{const E=w(A)(D.typedValue,L.typedValue);return d(E)},S)}dateTimeTest(w,S=!0){return this.set([s.TypeURL.XSD_DATE_TIME,s.TypeURL.XSD_DATE_TIME],A=>([D,L])=>{const E=w(A)(D.typedValue,L.typedValue);return d(E)},S)}numeric(w){return this.set([s.TypeAlias.SPARQL_NUMERIC,s.TypeAlias.SPARQL_NUMERIC],w)}}fr.Builder=c;function d(_){return new e.BooleanLiteral(_)}fr.bool=d;function h(_){return new e.IntegerLiteral(_)}fr.integer=h;function f(_){return new e.DecimalLiteral(_)}fr.decimal=f;function p(_){return new e.FloatLiteral(_)}fr.float=p;function y(_){return new e.DoubleLiteral(_)}fr.double=y;function b(_){return new e.StringLiteral(_)}fr.string=b;function m(_,w){return new e.LangStringLiteral(_,w)}fr.langString=m;function g(_,w){return new e.DateTimeLiteral(_,w)}fr.dateTime=g;function v(_){return o.variable(_.name.slice(1))}return fr.expressionToVar=v,fr}var Y5;function Wb(){return Y5||(Y5=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.typePromotion=t.isSubTypeOf=t.getSuperTypeDict=t.isInternalSubType=t.asGeneralType=t.asOverrideType=t.asKnownLiteralType=t.asTypeAlias=t.typeAliasCheck=t.extensionTableInit=t.getSuperTypes=t.superTypeDictTable=t.extensionTableInput=void 0;const e=Kn(),u=Yi(),s=Cn();t.extensionTableInput={[s.TypeURL.XSD_DATE_TIME_STAMP]:s.TypeURL.XSD_DATE_TIME,[s.TypeURL.XSD_DAY_TIME_DURATION]:s.TypeURL.XSD_DURATION,[s.TypeURL.XSD_YEAR_MONTH_DURATION]:s.TypeURL.XSD_DURATION,[s.TypeURL.RDF_LANG_STRING]:s.TypeAlias.SPARQL_STRINGLY,[s.TypeURL.XSD_STRING]:s.TypeAlias.SPARQL_STRINGLY,[s.TypeURL.XSD_NORMALIZED_STRING]:s.TypeURL.XSD_STRING,[s.TypeURL.XSD_TOKEN]:s.TypeURL.XSD_NORMALIZED_STRING,[s.TypeURL.XSD_LANGUAGE]:s.TypeURL.XSD_TOKEN,[s.TypeURL.XSD_NM_TOKEN]:s.TypeURL.XSD_TOKEN,[s.TypeURL.XSD_NAME]:s.TypeURL.XSD_TOKEN,[s.TypeURL.XSD_NC_NAME]:s.TypeURL.XSD_NAME,[s.TypeURL.XSD_ENTITY]:s.TypeURL.XSD_NC_NAME,[s.TypeURL.XSD_ID]:s.TypeURL.XSD_NC_NAME,[s.TypeURL.XSD_ID_REF]:s.TypeURL.XSD_NC_NAME,[s.TypeURL.XSD_DOUBLE]:s.TypeAlias.SPARQL_NUMERIC,[s.TypeURL.XSD_FLOAT]:s.TypeAlias.SPARQL_NUMERIC,[s.TypeURL.XSD_DECIMAL]:s.TypeAlias.SPARQL_NUMERIC,[s.TypeURL.XSD_INTEGER]:s.TypeURL.XSD_DECIMAL,[s.TypeURL.XSD_NON_POSITIVE_INTEGER]:s.TypeURL.XSD_INTEGER,[s.TypeURL.XSD_NEGATIVE_INTEGER]:s.TypeURL.XSD_NON_POSITIVE_INTEGER,[s.TypeURL.XSD_LONG]:s.TypeURL.XSD_INTEGER,[s.TypeURL.XSD_INT]:s.TypeURL.XSD_LONG,[s.TypeURL.XSD_SHORT]:s.TypeURL.XSD_INT,[s.TypeURL.XSD_BYTE]:s.TypeURL.XSD_SHORT,[s.TypeURL.XSD_NON_NEGATIVE_INTEGER]:s.TypeURL.XSD_INTEGER,[s.TypeURL.XSD_POSITIVE_INTEGER]:s.TypeURL.XSD_NON_NEGATIVE_INTEGER,[s.TypeURL.XSD_UNSIGNED_LONG]:s.TypeURL.XSD_NON_NEGATIVE_INTEGER,[s.TypeURL.XSD_UNSIGNED_INT]:s.TypeURL.XSD_UNSIGNED_LONG,[s.TypeURL.XSD_UNSIGNED_SHORT]:s.TypeURL.XSD_UNSIGNED_INT,[s.TypeURL.XSD_UNSIGNED_BYTE]:s.TypeURL.XSD_UNSIGNED_SHORT,[s.TypeURL.XSD_DATE_TIME]:"term",[s.TypeURL.XSD_BOOLEAN]:"term",[s.TypeURL.XSD_DATE]:"term",[s.TypeURL.XSD_G_MONTH]:"term",[s.TypeURL.XSD_G_MONTHDAY]:"term",[s.TypeURL.XSD_G_YEAR]:"term",[s.TypeURL.XSD_G_YEAR_MONTH]:"term",[s.TypeURL.XSD_TIME]:"term",[s.TypeURL.XSD_G_DAY]:"term",[s.TypeURL.XSD_DURATION]:"term",[s.TypeAlias.SPARQL_NUMERIC]:"term",[s.TypeAlias.SPARQL_STRINGLY]:"term",[s.TypeURL.XSD_ANY_URI]:"term"},t.superTypeDictTable=Object.create(null);function n(b,m){const g=m.cache.get(b);if(g)return g;const v=m.discoverer(b);if(v==="term"){const S=Object.create(null);return S.__depth=0,S[b]=0,m.cache.set(b,S),S}let _;const w=c(v);return w?_={...t.superTypeDictTable[w]}:_={...n(v,m)},_.__depth++,_[b]=_.__depth,m.cache.set(b,_),_}t.getSuperTypes=n;function r(){for(const[b,m]of Object.entries(t.extensionTableInput)){const g=b;t.superTypeDictTable[g]||a(g,m,t.superTypeDictTable)}}t.extensionTableInit=r,r();function a(b,m,g){if(m==="term"||m===void 0){const v=Object.create(null);v.__depth=0,v[b]=0,g[b]=v;return}g[m]||a(m,t.extensionTableInput[m],g),g[b]={...g[m],[b]:g[m].__depth+1,__depth:g[m].__depth+1}}t.typeAliasCheck=Object.create(null);function o(){for(const b of Object.values(s.TypeAlias))t.typeAliasCheck[b]=!0}o();function l(b){if(b in t.typeAliasCheck)return b}t.asTypeAlias=l;function c(b){if(b in t.superTypeDictTable)return b}t.asKnownLiteralType=c;function d(b){if(c(b)??b==="term")return b}t.asOverrideType=d;function h(b){if(b==="term"||(0,e.asTermType)(b))return b}t.asGeneralType=h;function f(b,m){return b!=="term"&&t.superTypeDictTable[b]&&t.superTypeDictTable[b][m]!==void 0}t.isInternalSubType=f;function p(b,m){const g=c(b);return g?t.superTypeDictTable[g]:n(b,m)}t.getSuperTypeDict=p;function y(b,m,g){return b==="term"?!1:p(b,g)[m]!==void 0}t.isSubTypeOf=y,t.typePromotion={[s.TypeURL.XSD_STRING]:[{typeToPromote:s.TypeURL.XSD_ANY_URI,conversionFunction:b=>(0,u.string)(b.str())}],[s.TypeURL.XSD_DOUBLE]:[{typeToPromote:s.TypeURL.XSD_FLOAT,conversionFunction:b=>(0,u.double)(b.typedValue)},{typeToPromote:s.TypeURL.XSD_DECIMAL,conversionFunction:b=>(0,u.double)(b.typedValue)}],[s.TypeURL.XSD_FLOAT]:[{typeToPromote:s.TypeURL.XSD_DECIMAL,conversionFunction:b=>(0,u.float)(b.typedValue)}]}}(Xw)),Xw}var Z5;function ro(){if(Z5)return Gh;Z5=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.TermTransformer=void 0;const t=er(),e=Ot(),u=Kn(),s=Cn(),n=on(),r=on(),a=y3(),o=y3(),l=Wb();let c=class{constructor(h){this.superTypeProvider=h}transformRDFTermUnsafe(h){return this.transformTerm({term:h,type:e.Algebra.types.EXPRESSION,expressionType:e.Algebra.expressionTypes.TERM})}transformTerm(h){if(!h.term)throw new n.InvalidExpression(h);switch(h.term.termType){case"Variable":return new u.Variable(t.termToString(h.term));case"Literal":return this.transformLiteral(h.term);case"NamedNode":return new u.NamedNode(h.term.value);case"BlankNode":return new u.BlankNode(h.term.value);case"Quad":return new u.Quad(h.term,this.superTypeProvider);default:throw new n.InvalidTermType(h)}}transformLiteral(h){if(!h.datatype||[null,void 0,""].includes(h.datatype.value))return h.language?new u.LangStringLiteral(h.value,h.language):new u.StringLiteral(h.value);const f=h.datatype.value,p=(0,l.getSuperTypeDict)(f,this.superTypeProvider);try{if(s.TypeURL.XSD_STRING in p)return new u.StringLiteral(h.value,f);if(s.TypeURL.RDF_LANG_STRING in p)return new u.LangStringLiteral(h.value,h.language);if(s.TypeURL.XSD_YEAR_MONTH_DURATION in p)return new u.YearMonthDurationLiteral((0,a.parseYearMonthDuration)(h.value),h.value,f);if(s.TypeURL.XSD_DAY_TIME_DURATION in p)return new u.DayTimeDurationLiteral((0,a.parseDayTimeDuration)(h.value),h.value,f);if(s.TypeURL.XSD_DURATION in p)return new u.DurationLiteral((0,a.parseDuration)(h.value),h.value,f);if(s.TypeURL.XSD_DATE_TIME in p){const m=new Date(h.value);return Number.isNaN(m.getTime())?new u.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):new u.DateTimeLiteral((0,a.parseDateTime)(h.value),h.value,f)}if(s.TypeURL.XSD_DATE in p)return new u.DateLiteral((0,a.parseDate)(h.value),h.value,f);if(s.TypeURL.XSD_TIME in p)return new u.TimeLiteral((0,a.parseTime)(h.value),h.value,f);if(s.TypeURL.XSD_BOOLEAN in p)return h.value!=="true"&&h.value!=="false"&&h.value!=="1"&&h.value!=="0"?new u.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):new u.BooleanLiteral(h.value==="true"||h.value==="1",h.value);if(s.TypeURL.XSD_DECIMAL in p){const m=o.parseXSDDecimal(h.value);return m===void 0?new u.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):s.TypeURL.XSD_INTEGER in p?new u.IntegerLiteral(m,f,h.value):new u.DecimalLiteral(m,f,h.value)}const y=s.TypeURL.XSD_FLOAT in p,b=s.TypeURL.XSD_DOUBLE in p;if(y||b){const m=o.parseXSDFloat(h.value);return m===void 0?new u.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value):y?new u.FloatLiteral(m,f,h.value):new u.DoubleLiteral(m,f,h.value)}return new u.Literal(h.value,f,h.value)}catch(y){if(y instanceof Error&&(0,r.isExpressionError)(y))return new u.NonLexicalLiteral(void 0,f,this.superTypeProvider,h.value);throw y}}};return Gh.TermTransformer=c,Gh}var yi={},ej;function zZ(){if(ej)return yi;ej=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.serializeDuration=yi.serializeTime=yi.serializeDate=yi.serializeDateTime=void 0;function t(a,o=2){return a.toLocaleString(void 0,{minimumIntegerDigits:o,useGrouping:!1})}function e(a){return`${s({year:a.year,month:a.month,day:a.day})}T${n(a)}`}yi.serializeDateTime=e;function u(a){return a.zoneHours===void 0||a.zoneMinutes===void 0?"":a.zoneHours===0&&a.zoneMinutes===0?"Z":`${a.zoneHours>=0?`+${t(a.zoneHours)}`:t(a.zoneHours)}:${t(Math.abs(a.zoneMinutes))}`}function s(a){return`${t(a.year,4)}-${t(a.month)}-${t(a.day)}${u(a)}`}yi.serializeDate=s;function n(a){return`${t(a.hours)}:${t(a.minutes)}:${t(a.seconds)}${u(a)}`}yi.serializeTime=n;function r(a,o="PT0S"){if(!Object.values(a).some(m=>(m||0)!==0))return o;const l=Object.values(a).some(m=>(m||0)<0)?"-":"",c=a.year?`${Math.abs(a.year)}Y`:"",d=a.month?`${Math.abs(a.month)}M`:"",h=a.day?`${Math.abs(a.day)}D`:"",f=`${l}P${c}${d}${h}`;if(!(a.hours||a.minutes||a.seconds))return f;const p=a.hours?`${Math.abs(a.hours)}H`:"",y=a.minutes?`${Math.abs(a.minutes)}M`:"",b=a.seconds?`${Math.abs(a.seconds)}S`:"";return`${f}T${p}${y}${b}`}return yi.serializeDuration=r,yi}var tj;function GZ(){if(tj)return At;tj=1,Object.defineProperty(At,"__esModule",{value:!0}),At.isNonLexicalLiteral=At.NonLexicalLiteral=At.YearMonthDurationLiteral=At.DayTimeDurationLiteral=At.DurationLiteral=At.DateLiteral=At.TimeLiteral=At.DateTimeLiteral=At.StringLiteral=At.LangStringLiteral=At.BooleanLiteral=At.DoubleLiteral=At.FloatLiteral=At.DecimalLiteral=At.IntegerLiteral=At.NumericLiteral=At.Literal=At.isLiteralTermExpression=At.Quad=At.BlankNode=At.NamedNode=At.Term=void 0;const t=Et(),e=ro(),u=Cn(),s=Cn(),n=on(),r=zZ(),a=Wb(),o=Ki(),l=new t.DataFactory;let c=class{constructor(){this.expressionType=o.ExpressionType.Term}str(){throw new n.InvalidArgumentTypes([this],u.RegularOperator.STR)}coerceEBV(){throw new n.EBVCoercionError(this)}};At.Term=c;class d extends c{constructor(Q){super(),this.value=Q,this.termType="namedNode"}toRDF(){return l.namedNode(this.value)}str(){return this.value}}At.NamedNode=d;class h extends c{constructor(Q){super(),this.termType="blankNode",this.value=typeof Q=="string"?l.blankNode(Q):Q}toRDF(){return this.value}}At.BlankNode=h;class f extends c{constructor(Q,Z){super(),this.termType="quad",this.transformer=new e.TermTransformer(Z),this.valueTerm=Q}toRDF(){return this.valueTerm}get subject(){return this.transformer.transformRDFTermUnsafe(this.RDFsubject)}get predicate(){return this.transformer.transformRDFTermUnsafe(this.RDFpredicate)}get object(){return this.transformer.transformRDFTermUnsafe(this.RDFobject)}get RDFsubject(){return this.toRDF().subject}get RDFpredicate(){return this.toRDF().predicate}get RDFobject(){return this.toRDF().object}}At.Quad=f;function p(q){if(q.termType==="literal")return q}At.isLiteralTermExpression=p;class y extends c{constructor(Q,Z,K,fe){super(),this.typedValue=Q,this.dataType=Z,this.strValue=K,this.language=fe,this.termType="literal"}toRDF(){return l.literal(this.strValue??this.str(),this.language??l.namedNode(this.dataType))}str(){return this.strValue??this.typedValue.toString()}}At.Literal=y;class b extends y{constructor(Q,Z,K,fe){super(Q,Z,K,fe),this.typedValue=Q,this.strValue=K,this.language=fe}coerceEBV(){return!!this.typedValue}toRDF(){const Q=super.toRDF();return Number.isFinite(this.typedValue)||(Q.value=Q.value.replace("Infinity","INF")),Q}str(){return this.strValue??this.specificFormatter(this.typedValue)}}At.NumericLiteral=b;class m extends b{constructor(Q,Z,K,fe){super(Q,Z??s.TypeURL.XSD_INTEGER,K,fe),this.typedValue=Q,this.strValue=K,this.language=fe}specificFormatter(Q){return Q.toFixed(0)}}At.IntegerLiteral=m;class g extends b{constructor(Q,Z,K,fe){super(Q,Z??s.TypeURL.XSD_DECIMAL,K,fe),this.typedValue=Q,this.strValue=K,this.language=fe}specificFormatter(Q){return Q.toString()}}At.DecimalLiteral=g;class v extends b{constructor(Q,Z,K,fe){super(Q,Z??s.TypeURL.XSD_FLOAT,K,fe),this.typedValue=Q,this.strValue=K,this.language=fe}specificFormatter(Q){return Q.toString()}}At.FloatLiteral=v;class _ extends b{constructor(Q,Z,K,fe){super(Q,Z??s.TypeURL.XSD_DOUBLE,K,fe),this.typedValue=Q,this.strValue=K,this.language=fe}specificFormatter(Q){if(!Number.isFinite(Q))return Q>0?"INF":Q<0?"-INF":"NaN";const Z=Q.toExponential(),[K,fe]=Z.split("e"),X=fe.replace(/\+/u,"");return`${K.includes(".")?K:`${K}.0`}E${X}`}}At.DoubleLiteral=_;class w extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.XSD_BOOLEAN,Z),this.typedValue=Q,this.strValue=Z}coerceEBV(){return this.typedValue}}At.BooleanLiteral=w;class S extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.RDF_LANG_STRING,Q,Z),this.typedValue=Q,this.language=Z}coerceEBV(){return this.str().length>0}}At.LangStringLiteral=S;class A extends y{constructor(Q,Z){super(Q,Z??s.TypeURL.XSD_STRING,Q),this.typedValue=Q}coerceEBV(){return this.str().length>0}}At.StringLiteral=A;class D extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.XSD_DATE_TIME,Z),this.typedValue=Q,this.strValue=Z}str(){return(0,r.serializeDateTime)(this.typedValue)}}At.DateTimeLiteral=D;class L extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.XSD_TIME,Z),this.typedValue=Q,this.strValue=Z}str(){return(0,r.serializeTime)(this.typedValue)}}At.TimeLiteral=L;class E extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.XSD_DATE,Z),this.typedValue=Q,this.strValue=Z}str(){return(0,r.serializeDate)(this.typedValue)}}At.DateLiteral=E;class O extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.XSD_DURATION,Z),this.typedValue=Q,this.strValue=Z}str(){return(0,r.serializeDuration)(this.typedValue)}}At.DurationLiteral=O;class P extends O{constructor(Q,Z,K){super(Q,Z,K??s.TypeURL.XSD_DAY_TIME_DURATION),this.typedValue=Q,this.strValue=Z}}At.DayTimeDurationLiteral=P;class j extends y{constructor(Q,Z,K){super(Q,K??s.TypeURL.XSD_YEAR_MONTH_DURATION,Z),this.typedValue=Q,this.strValue=Z}str(){return(0,r.serializeDuration)(this.typedValue,"P0M")}}At.YearMonthDurationLiteral=j;class U extends y{constructor(Q,Z,K,fe,X){super({toString:()=>"undefined"},Z,fe,X),this.openWorldType=K}coerceEBV(){if((0,a.isSubTypeOf)(this.dataType,s.TypeURL.XSD_BOOLEAN,this.openWorldType)||(0,a.isSubTypeOf)(this.dataType,s.TypeAlias.SPARQL_NUMERIC,this.openWorldType))return!1;throw new n.EBVCoercionError(this)}toRDF(){return l.literal(this.str(),this.language??l.namedNode(this.dataType))}str(){return this.strValue??""}}At.NonLexicalLiteral=U;function M(q){if(q instanceof U)return q}return At.isNonLexicalLiteral=M,At}var Jh={},rj;function WZ(){if(rj)return Jh;rj=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.Operator=void 0;const t=Ki();let e=class{constructor(s,n){this.args=s,this.apply=n,this.expressionType=t.ExpressionType.Operator}};return Jh.Operator=e,Jh}var Xh={},nj;function JZ(){if(nj)return Xh;nj=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.SpecialOperator=void 0;const t=Ki();let e=class{constructor(s,n,r){this.args=s,this.applyAsync=n,this.applySynchronously=r,this.expressionType=t.ExpressionType.SpecialOperator}};return Xh.SpecialOperator=e,Xh}var Kh={},ij;function XZ(){if(ij)return Kh;ij=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.Named=void 0;const t=Ki();let e=class{constructor(s,n,r){this.name=s,this.args=n,this.apply=r,this.expressionType=t.ExpressionType.Named}};return Kh.Named=e,Kh}var Yh={},aj;function KZ(){if(aj)return Yh;aj=1,Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.Aggregate=void 0;const t=Ki();let e=class{constructor(s,n){this.name=s,this.expression=n,this.expressionType=t.ExpressionType.Aggregate}};return Yh.Aggregate=e,Yh}var Zh={},sj;function YZ(){if(sj)return Zh;sj=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.Existence=void 0;const t=Ki();let e=class{constructor(s){this.expression=s,this.expressionType=t.ExpressionType.Existence}};return Zh.Existence=e,Zh}var ep={},oj;function ZZ(){if(oj)return ep;oj=1,Object.defineProperty(ep,"__esModule",{value:!0}),ep.AsyncExtension=void 0;const t=Ki();let e=class{constructor(s,n,r){this.name=s,this.args=n,this.apply=r,this.expressionType=t.ExpressionType.AsyncExtension}};return ep.AsyncExtension=e,ep}var tp={},uj;function eee(){if(uj)return tp;uj=1,Object.defineProperty(tp,"__esModule",{value:!0}),tp.SyncExtension=void 0;const t=Ki();let e=class{constructor(s,n,r){this.name=s,this.args=n,this.apply=r,this.expressionType=t.ExpressionType.SyncExtension}};return tp.SyncExtension=e,tp}var cj;function Kn(){return cj||(cj=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Ki(),t),u(kZ(),t),u(GZ(),t),u(WZ(),t),u(JZ(),t),u(XZ(),t),u(KZ(),t),u(YZ(),t),u(ZZ(),t),u(eee(),t)}(Ww)),Ww}var Kw={},bi={},lj;function g3(){if(lj)return bi;lj=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.SpecialFunction=bi.NamedFunction=bi.RegularFunction=bi.BaseFunction=void 0;const t=on();class e{constructor(o,l){this.operator=o,this.apply=(c,d)=>(this.monomorph(c,d.superTypeProvider,d.functionArgumentsCache)??this.handleInvalidTypes(c))(d)(c),this.arity=l.arity,this.overloads=l.overloads}monomorph(o,l,c){return this.overloads.search(o,l,c)}}bi.BaseFunction=e;class u extends e{constructor(o,l){super(o,l),this.functionClass="regular"}handleInvalidTypes(o){throw new t.InvalidArgumentTypes(o,this.operator)}}bi.RegularFunction=u;class s extends e{constructor(o,l){super(o,l),this.functionClass="named"}handleInvalidTypes(o){throw new t.InvalidArgumentTypes(o,this.operator)}}bi.NamedFunction=s;class n{constructor(o,l){this.operator=o,this.functionClass="special",this.arity=l.arity,this.applySynchronously=l.applySynchronously,this.applyAsync=l.applyAsync,this.checkArity=l.checkArity??r(this.arity)}}bi.SpecialFunction=n;function r(a){return o=>a===Number.POSITIVE_INFINITY?!0:o.length===a}return bi}var rp={},dj;function tee(){if(dj)return rp;dj=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.namedDefinitions=void 0;const t=Kn(),e=Kn(),u=Cn(),s=ou(),n=on(),r=y3(),a=Yi(),o={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_STRING).onNumeric1(()=>_=>(0,a.string)((0,a.float)(_.typedValue).str())).onBoolean1Typed(()=>_=>(0,a.string)((0,a.bool)(_).str())).onTerm1(()=>_=>(0,a.string)(_.str())).collect()},l={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_FLOAT).onNumeric1(()=>_=>(0,a.float)(_.typedValue)).onBoolean1Typed(()=>_=>(0,a.float)(_?1:0)).onUnary(u.TypeURL.XSD_STRING,()=>_=>{const w=(0,r.parseXSDFloat)(_.str());if(w===void 0)throw new n.CastError(_,u.TypeURL.XSD_FLOAT);return(0,a.float)(w)},!1).collect()},c={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_DOUBLE).onNumeric1(()=>_=>(0,a.double)(_.typedValue)).onBoolean1Typed(()=>_=>(0,a.double)(_?1:0)).onUnary(u.TypeURL.XSD_STRING,()=>_=>{const w=(0,r.parseXSDFloat)(_.str());if(w===void 0)throw new n.CastError(_,u.TypeURL.XSD_DOUBLE);return(0,a.double)(w)},!1).collect()},d={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_DECIMAL).onNumeric1(()=>_=>{const w=(0,r.parseXSDDecimal)(_.str());if(w===void 0)throw new n.CastError(_,u.TypeURL.XSD_DECIMAL);return(0,a.decimal)(w)}).onString1(()=>_=>{const w=_.str(),S=/^([+-])?(\d+(\.\d+)?)$/u.test(w)?(0,r.parseXSDDecimal)(w):void 0;if(S===void 0)throw new n.CastError(_,u.TypeURL.XSD_DECIMAL);return(0,a.decimal)(S)},!1).onBoolean1Typed(()=>_=>(0,a.decimal)(_?1:0)).collect()},h={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_INTEGER).onBoolean1Typed(()=>_=>(0,a.integer)(_?1:0)).onNumeric1(()=>_=>{const w=(0,r.parseXSDInteger)(_.str());if(w===void 0)throw new n.CastError(_,u.TypeURL.XSD_INTEGER);return(0,a.integer)(w)},!1).onString1(()=>_=>{const w=_.str(),S=/^\d+$/u.test(w)?(0,r.parseXSDInteger)(w):void 0;if(S===void 0)throw new n.CastError(_,u.TypeURL.XSD_INTEGER);return(0,a.integer)(S)}).collect()},f={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_DATE_TIME).onUnary(u.TypeURL.XSD_DATE_TIME,()=>_=>_).onUnary(u.TypeURL.XSD_STRING,()=>_=>(0,a.dateTime)((0,r.parseDateTime)(_.str()),_.str()),!1).onUnary(u.TypeURL.XSD_DATE,()=>_=>new t.DateTimeLiteral({..._.typedValue,hours:0,minutes:0,seconds:0})).collect()},p={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_BOOLEAN).onNumeric1(()=>_=>(0,a.bool)(_.coerceEBV()),!0).onUnary(u.TypeURL.XSD_BOOLEAN,()=>_=>(0,a.bool)(_.coerceEBV()),!0).onUnary(u.TypeURL.XSD_STRING,()=>_=>{switch(_.str()){case"true":return(0,a.bool)(!0);case"false":return(0,a.bool)(!1);case"1":return(0,a.bool)(!0);case"0":return(0,a.bool)(!1);default:throw new n.CastError(_,u.TypeURL.XSD_BOOLEAN)}},!1).collect()},y={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_TIME).onUnary(u.TypeURL.XSD_TIME,()=>_=>new t.TimeLiteral(_.typedValue,_.strValue)).onUnary(u.TypeURL.XSD_DATE_TIME,()=>_=>new t.TimeLiteral(_.typedValue)).onStringly1(()=>_=>new t.TimeLiteral((0,r.parseTime)(_.str()))).collect()},b={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_DATE).onUnary(u.TypeURL.XSD_DATE,()=>_=>new t.DateLiteral(_.typedValue,_.strValue)).onUnary(u.TypeURL.XSD_DATE_TIME,()=>_=>new t.DateLiteral(_.typedValue)).onStringly1(()=>_=>new t.DateLiteral((0,r.parseDate)(_.str()))).collect()},m={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_DURATION).onUnary(u.TypeURL.XSD_DURATION,()=>_=>new t.DurationLiteral(_.typedValue,_.strValue)).onStringly1(()=>_=>new e.DurationLiteral((0,r.parseDuration)(_.str()))).collect()},g={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_DAY_TIME_DURATION).onUnary(u.TypeURL.XSD_DURATION,()=>_=>new t.DayTimeDurationLiteral((0,s.trimToDayTimeDuration)(_.typedValue))).onStringly1(()=>_=>new t.DayTimeDurationLiteral((0,r.parseDayTimeDuration)(_.str()))).collect()},v={arity:1,overloads:(0,a.declare)(u.TypeURL.XSD_YEAR_MONTH_DURATION).onUnary(u.TypeURL.XSD_DURATION,()=>_=>new t.YearMonthDurationLiteral((0,s.trimToYearMonthDuration)(_.typedValue))).onStringly1(()=>_=>new t.YearMonthDurationLiteral((0,r.parseYearMonthDuration)(_.str()))).collect()};return rp.namedDefinitions={[u.TypeURL.XSD_STRING]:o,[u.TypeURL.XSD_FLOAT]:l,[u.TypeURL.XSD_DOUBLE]:c,[u.TypeURL.XSD_DECIMAL]:d,[u.TypeURL.XSD_INTEGER]:h,[u.TypeURL.XSD_DATE_TIME]:f,[u.TypeURL.XSD_DATE]:b,[u.TypeURL.XSD_BOOLEAN]:p,[u.TypeURL.XSD_TIME]:y,[u.TypeURL.XSD_DURATION]:m,[u.TypeURL.XSD_DAY_TIME_DURATION]:g,[u.TypeURL.XSD_YEAR_MONTH_DURATION]:v},rp}var np={},Yw={exports:{}},fj;function ree(){return fj||(fj=1,function(t){(function(e){var u,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,n=Math.ceil,r=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",l=1e14,c=14,d=9007199254740991,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,p=1e9;function y(A){var D,L,E,O=ae.prototype={constructor:ae,toString:null,valueOf:null},P=new ae(1),j=20,U=4,M=-7,q=21,Q=-1e7,Z=1e7,K=!1,fe=1,X=0,he={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},xe="0123456789abcdefghijklmnopqrstuvwxyz",ie=!0;function ae($,N){var R,T,x,B,k,V,J,z,Y=this;if(!(Y instanceof ae))return new ae($,N);if(N==null){if($&&$._isBigNumber===!0){Y.s=$.s,!$.c||$.e>Z?Y.c=Y.e=null:$.e=10;k/=10,B++);B>Z?Y.c=Y.e=null:(Y.e=B,Y.c=[$]);return}z=String($)}else{if(!s.test(z=String($)))return E(Y,z,V);Y.s=z.charCodeAt(0)==45?(z=z.slice(1),-1):1}(B=z.indexOf("."))>-1&&(z=z.replace(".","")),(k=z.search(/e/i))>0?(B<0&&(B=k),B+=+z.slice(k+1),z=z.substring(0,k)):B<0&&(B=z.length)}else{if(v(N,2,xe.length,"Base"),N==10&&ie)return Y=new ae($),de(Y,j+Y.e+1,U);if(z=String($),V=typeof $=="number"){if($*0!=0)return E(Y,z,V,N);if(Y.s=1/$<0?(z=z.slice(1),-1):1,ae.DEBUG&&z.replace(/^0\.0*|\./,"").length>15)throw Error(o+$)}else Y.s=z.charCodeAt(0)===45?(z=z.slice(1),-1):1;for(R=xe.slice(0,N),B=k=0,J=z.length;kB){B=J;continue}}else if(!x&&(z==z.toUpperCase()&&(z=z.toLowerCase())||z==z.toLowerCase()&&(z=z.toUpperCase()))){x=!0,k=-1,B=0;continue}return E(Y,String($),V,N)}V=!1,z=L(z,N,10,Y.s),(B=z.indexOf("."))>-1?z=z.replace(".",""):B=z.length}for(k=0;z.charCodeAt(k)===48;k++);for(J=z.length;z.charCodeAt(--J)===48;);if(z=z.slice(k,++J)){if(J-=k,V&&ae.DEBUG&&J>15&&($>d||$!==r($)))throw Error(o+Y.s*$);if((B=B-k-1)>Z)Y.c=Y.e=null;else if(B=-p&&x<=p&&x===r(x)){if(T[0]===0){if(x===0&&T.length===1)return!0;break e}if(N=(x+1)%c,N<1&&(N+=c),String(T[0]).length==N){for(N=0;N=l||R!==r(R))break e;if(R!==0)return!0}}}else if(T===null&&x===null&&(B===null||B===1||B===-1))return!0;throw Error(a+"Invalid BigNumber: "+$)},ae.maximum=ae.max=function(){return Ne(arguments,-1)},ae.minimum=ae.min=function(){return Ne(arguments,1)},ae.random=function(){var $=9007199254740992,N=Math.random()*$&2097151?function(){return r(Math.random()*$)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(R){var T,x,B,k,V,J=0,z=[],Y=new ae(P);if(R==null?R=j:v(R,0,p),k=n(R/c),K)if(crypto.getRandomValues){for(T=crypto.getRandomValues(new Uint32Array(k*=2));J>>11),V>=9e15?(x=crypto.getRandomValues(new Uint32Array(2)),T[J]=x[0],T[J+1]=x[1]):(z.push(V%1e14),J+=2);J=k/2}else if(crypto.randomBytes){for(T=crypto.randomBytes(k*=7);J=9e15?crypto.randomBytes(7).copy(T,J):(z.push(V%1e14),J+=7);J=k/7}else throw K=!1,Error(a+"crypto unavailable");if(!K)for(;J=10;V/=10,J++);Jx-1&&(V[k+1]==null&&(V[k+1]=0),V[k+1]+=V[k]/x|0,V[k]%=x)}return V.reverse()}return function(R,T,x,B,k){var V,J,z,Y,te,ce,Ae,Ie,Ee=R.indexOf("."),qe=j,G=U;for(Ee>=0&&(Y=X,X=0,R=R.replace(".",""),Ie=new ae(T),ce=Ie.pow(R.length-Ee),X=Y,Ie.c=N(S(m(ce.c),ce.e,"0"),10,x,$),Ie.e=Ie.c.length),Ae=N(R,T,x,k?(V=xe,$):(V=$,xe)),z=Y=Ae.length;Ae[--Y]==0;Ae.pop());if(!Ae[0])return V.charAt(0);if(Ee<0?--z:(ce.c=Ae,ce.e=z,ce.s=B,ce=D(ce,Ie,qe,G,x),Ae=ce.c,te=ce.r,z=ce.e),J=z+qe+1,Ee=Ae[J],Y=x/2,te=te||J<0||Ae[J+1]!=null,te=G<4?(Ee!=null||te)&&(G==0||G==(ce.s<0?3:2)):Ee>Y||Ee==Y&&(G==4||te||G==6&&Ae[J-1]&1||G==(ce.s<0?8:7)),J<1||!Ae[0])R=te?S(V.charAt(1),-qe,V.charAt(0)):V.charAt(0);else{if(Ae.length=J,te)for(--x;++Ae[--J]>x;)Ae[J]=0,J||(++z,Ae=[1].concat(Ae));for(Y=Ae.length;!Ae[--Y];);for(Ee=0,R="";Ee<=Y;R+=V.charAt(Ae[Ee++]));R=S(R,z,V.charAt(0))}return R}}(),D=function(){function $(T,x,B){var k,V,J,z,Y=0,te=T.length,ce=x%f,Ae=x/f|0;for(T=T.slice();te--;)J=T[te]%f,z=T[te]/f|0,k=Ae*J+z*ce,V=ce*J+k%f*f+Y,Y=(V/B|0)+(k/f|0)+Ae*z,T[te]=V%B;return Y&&(T=[Y].concat(T)),T}function N(T,x,B,k){var V,J;if(B!=k)J=B>k?1:-1;else for(V=J=0;Vx[V]?1:-1;break}return J}function R(T,x,B,k){for(var V=0;B--;)T[B]-=V,V=T[B]1;T.splice(0,1));}return function(T,x,B,k,V){var J,z,Y,te,ce,Ae,Ie,Ee,qe,G,F,H,re,be,Re,Ce,Qe,ke=T.s==x.s?1:-1,me=T.c,Se=x.c;if(!me||!me[0]||!Se||!Se[0])return new ae(!T.s||!x.s||(me?Se&&me[0]==Se[0]:!Se)?NaN:me&&me[0]==0||!Se?ke*0:ke/0);for(Ee=new ae(ke),qe=Ee.c=[],z=T.e-x.e,ke=B+z+1,V||(V=l,z=b(T.e/c)-b(x.e/c),ke=ke/c|0),Y=0;Se[Y]==(me[Y]||0);Y++);if(Se[Y]>(me[Y]||0)&&z--,ke<0)qe.push(1),te=!0;else{for(be=me.length,Ce=Se.length,Y=0,ke+=2,ce=r(V/(Se[0]+1)),ce>1&&(Se=$(Se,ce,V),me=$(me,ce,V),Ce=Se.length,be=me.length),re=Ce,G=me.slice(0,Ce),F=G.length;F=V/2&&Re++;do{if(ce=0,J=N(Se,G,Ce,F),J<0){if(H=G[0],Ce!=F&&(H=H*V+(G[1]||0)),ce=r(H/Re),ce>1)for(ce>=V&&(ce=V-1),Ae=$(Se,ce,V),Ie=Ae.length,F=G.length;N(Ae,G,Ie,F)==1;)ce--,R(Ae,Ce=10;ke/=10,Y++);de(Ee,B+(Ee.e=Y+z*c-1)+1,k,te)}else Ee.e=z,Ee.r=+te;return Ee}}();function Oe($,N,R,T){var x,B,k,V,J;if(R==null?R=U:v(R,0,8),!$.c)return $.toString();if(x=$.c[0],k=$.e,N==null)J=m($.c),J=T==1||T==2&&(k<=M||k>=q)?w(J,k):S(J,k,"0");else if($=de(new ae($),N,R),B=$.e,J=m($.c),V=J.length,T==1||T==2&&(N<=B||B<=M)){for(;VV){if(--N>0)for(J+=".";N--;J+="0");}else if(N+=B-V,N>0)for(B+1==V&&(J+=".");N--;J+="0");return $.s<0&&x?"-"+J:J}function Ne($,N){for(var R,T,x=1,B=new ae($[0]);x<$.length;x++)T=new ae($[x]),(!T.s||(R=g(B,T))===N||R===0&&B.s===N)&&(B=T);return B}function ge($,N,R){for(var T=1,x=N.length;!N[--x];N.pop());for(x=N[0];x>=10;x/=10,T++);return(R=T+R*c-1)>Z?$.c=$.e=null:R=10;V/=10,x++);if(B=N-x,B<0)B+=c,k=N,J=te[z=0],Y=r(J/ce[x-k-1]%10);else if(z=n((B+1)/c),z>=te.length)if(T){for(;te.length<=z;te.push(0));J=Y=0,x=1,B%=c,k=B-c+1}else break e;else{for(J=V=te[z],x=1;V>=10;V/=10,x++);B%=c,k=B-c+x,Y=k<0?0:r(J/ce[x-k-1]%10)}if(T=T||N<0||te[z+1]!=null||(k<0?J:J%ce[x-k-1]),T=R<4?(Y||T)&&(R==0||R==($.s<0?3:2)):Y>5||Y==5&&(R==4||T||R==6&&(B>0?k>0?J/ce[x-k]:0:te[z-1])%10&1||R==($.s<0?8:7)),N<1||!te[0])return te.length=0,T?(N-=$.e+1,te[0]=ce[(c-N%c)%c],$.e=-N||0):te[0]=$.e=0,$;if(B==0?(te.length=z,V=1,z--):(te.length=z+1,V=ce[c-B],te[z]=k>0?r(J/ce[x-k]%ce[k])*V:0),T)for(;;)if(z==0){for(B=1,k=te[0];k>=10;k/=10,B++);for(k=te[0]+=V,V=1;k>=10;k/=10,V++);B!=V&&($.e++,te[0]==l&&(te[0]=1));break}else{if(te[z]+=V,te[z]!=l)break;te[z--]=0,V=1}for(B=te.length;te[--B]===0;te.pop());}$.e>Z?$.c=$.e=null:$.e=q?w(N,R):S(N,R,"0"),$.s<0?"-"+N:N)}return O.absoluteValue=O.abs=function(){var $=new ae(this);return $.s<0&&($.s=1),$},O.comparedTo=function($,N){return g(this,new ae($,N))},O.decimalPlaces=O.dp=function($,N){var R,T,x,B=this;if($!=null)return v($,0,p),N==null?N=U:v(N,0,8),de(new ae(B),$+B.e+1,N);if(!(R=B.c))return null;if(T=((x=R.length-1)-b(this.e/c))*c,x=R[x])for(;x%10==0;x/=10,T--);return T<0&&(T=0),T},O.dividedBy=O.div=function($,N){return D(this,new ae($,N),j,U)},O.dividedToIntegerBy=O.idiv=function($,N){return D(this,new ae($,N),0,1)},O.exponentiatedBy=O.pow=function($,N){var R,T,x,B,k,V,J,z,Y,te=this;if($=new ae($),$.c&&!$.isInteger())throw Error(a+"Exponent not an integer: "+oe($));if(N!=null&&(N=new ae(N)),V=$.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!$.c||!$.c[0])return Y=new ae(Math.pow(+oe(te),V?$.s*(2-_($)):+oe($))),N?Y.mod(N):Y;if(J=$.s<0,N){if(N.c?!N.c[0]:!N.s)return new ae(NaN);T=!J&&te.isInteger()&&N.isInteger(),T&&(te=te.mod(N))}else{if($.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||V&&te.c[1]>=24e7:te.c[0]<8e13||V&&te.c[0]<=9999975e7)))return B=te.s<0&&_($)?-0:0,te.e>-1&&(B=1/B),new ae(J?1/B:B);X&&(B=n(X/c+2))}for(V?(R=new ae(.5),J&&($.s=1),z=_($)):(x=Math.abs(+oe($)),z=x%2),Y=new ae(P);;){if(z){if(Y=Y.times(te),!Y.c)break;B?Y.c.length>B&&(Y.c.length=B):T&&(Y=Y.mod(N))}if(x){if(x=r(x/2),x===0)break;z=x%2}else if($=$.times(R),de($,$.e+1,1),$.e>14)z=_($);else{if(x=+oe($),x===0)break;z=x%2}te=te.times(te),B?te.c&&te.c.length>B&&(te.c.length=B):T&&(te=te.mod(N))}return T?Y:(J&&(Y=P.div(Y)),N?Y.mod(N):B?de(Y,X,U,k):Y)},O.integerValue=function($){var N=new ae(this);return $==null?$=U:v($,0,8),de(N,N.e+1,$)},O.isEqualTo=O.eq=function($,N){return g(this,new ae($,N))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function($,N){return g(this,new ae($,N))>0},O.isGreaterThanOrEqualTo=O.gte=function($,N){return(N=g(this,new ae($,N)))===1||N===0},O.isInteger=function(){return!!this.c&&b(this.e/c)>this.c.length-2},O.isLessThan=O.lt=function($,N){return g(this,new ae($,N))<0},O.isLessThanOrEqualTo=O.lte=function($,N){return(N=g(this,new ae($,N)))===-1||N===0},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.minus=function($,N){var R,T,x,B,k=this,V=k.s;if($=new ae($,N),N=$.s,!V||!N)return new ae(NaN);if(V!=N)return $.s=-N,k.plus($);var J=k.e/c,z=$.e/c,Y=k.c,te=$.c;if(!J||!z){if(!Y||!te)return Y?($.s=-N,$):new ae(te?k:NaN);if(!Y[0]||!te[0])return te[0]?($.s=-N,$):new ae(Y[0]?k:U==3?-0:0)}if(J=b(J),z=b(z),Y=Y.slice(),V=J-z){for((B=V<0)?(V=-V,x=Y):(z=J,x=te),x.reverse(),N=V;N--;x.push(0));x.reverse()}else for(T=(B=(V=Y.length)<(N=te.length))?V:N,V=N=0;N0)for(;N--;Y[R++]=0);for(N=l-1;T>V;){if(Y[--T]=0;){for(R=0,ce=H[x]%qe,Ae=H[x]/qe|0,k=J,B=x+k;B>x;)z=F[--k]%qe,Y=F[k]/qe|0,V=Ae*z+Y*ce,z=ce*z+V%qe*qe+Ie[B]+R,R=(z/Ee|0)+(V/qe|0)+Ae*Y,Ie[B--]=z%Ee;Ie[B]=R}return R?++T:Ie.splice(0,1),ge($,Ie,T)},O.negated=function(){var $=new ae(this);return $.s=-$.s||null,$},O.plus=function($,N){var R,T=this,x=T.s;if($=new ae($,N),N=$.s,!x||!N)return new ae(NaN);if(x!=N)return $.s=-N,T.minus($);var B=T.e/c,k=$.e/c,V=T.c,J=$.c;if(!B||!k){if(!V||!J)return new ae(x/0);if(!V[0]||!J[0])return J[0]?$:new ae(V[0]?T:x*0)}if(B=b(B),k=b(k),V=V.slice(),x=B-k){for(x>0?(k=B,R=J):(x=-x,R=V),R.reverse();x--;R.push(0));R.reverse()}for(x=V.length,N=J.length,x-N<0&&(R=J,J=V,V=R,N=x),x=0;N;)x=(V[--N]=V[N]+J[N]+x)/l|0,V[N]=l===V[N]?0:V[N]%l;return x&&(V=[x].concat(V),++k),ge($,V,k)},O.precision=O.sd=function($,N){var R,T,x,B=this;if($!=null&&$!==!!$)return v($,1,p),N==null?N=U:v(N,0,8),de(new ae(B),$,N);if(!(R=B.c))return null;if(x=R.length-1,T=x*c+1,x=R[x]){for(;x%10==0;x/=10,T--);for(x=R[0];x>=10;x/=10,T++);}return $&&B.e+1>T&&(T=B.e+1),T},O.shiftedBy=function($){return v($,-d,d),this.times("1e"+$)},O.squareRoot=O.sqrt=function(){var $,N,R,T,x,B=this,k=B.c,V=B.s,J=B.e,z=j+4,Y=new ae("0.5");if(V!==1||!k||!k[0])return new ae(!V||V<0&&(!k||k[0])?NaN:k?B:1/0);if(V=Math.sqrt(+oe(B)),V==0||V==1/0?(N=m(k),(N.length+J)%2==0&&(N+="0"),V=Math.sqrt(+N),J=b((J+1)/2)-(J<0||J%2),V==1/0?N="5e"+J:(N=V.toExponential(),N=N.slice(0,N.indexOf("e")+1)+J),R=new ae(N)):R=new ae(V+""),R.c[0]){for(J=R.e,V=J+z,V<3&&(V=0);;)if(x=R,R=Y.times(x.plus(D(B,x,z,1))),m(x.c).slice(0,V)===(N=m(R.c)).slice(0,V))if(R.e0&&Ie>0){for(B=Ie%V||V,Y=Ae.substr(0,B);B0&&(Y+=z+Ae.slice(B)),ce&&(Y="-"+Y)}T=te?Y+(R.decimalSeparator||"")+((J=+R.fractionGroupSize)?te.replace(new RegExp("\\d{"+J+"}\\B","g"),"$&"+(R.fractionGroupSeparator||"")):te):Y}return(R.prefix||"")+T+(R.suffix||"")},O.toFraction=function($){var N,R,T,x,B,k,V,J,z,Y,te,ce,Ae=this,Ie=Ae.c;if($!=null&&(V=new ae($),!V.isInteger()&&(V.c||V.s!==1)||V.lt(P)))throw Error(a+"Argument "+(V.isInteger()?"out of range: ":"not an integer: ")+oe(V));if(!Ie)return new ae(Ae);for(N=new ae(P),z=R=new ae(P),T=J=new ae(P),ce=m(Ie),B=N.e=ce.length-Ae.e-1,N.c[0]=h[(k=B%c)<0?c+k:k],$=!$||V.comparedTo(N)>0?B>0?N:z:V,k=Z,Z=1/0,V=new ae(ce),J.c[0]=0;Y=D(V,N,0,1),x=R.plus(Y.times(T)),x.comparedTo($)!=1;)R=T,T=x,z=J.plus(Y.times(x=z)),J=x,N=V.minus(Y.times(x=N)),V=x;return x=D($.minus(R),T,0,1),J=J.plus(x.times(z)),R=R.plus(x.times(T)),J.s=z.s=Ae.s,B=B*2,te=D(z,T,B,U).minus(Ae).abs().comparedTo(D(J,R,B,U).minus(Ae).abs())<1?[z,T]:[J,R],Z=k,te},O.toNumber=function(){return+oe(this)},O.toPrecision=function($,N){return $!=null&&v($,1,p),Oe(this,$,N,2)},O.toString=function($){var N,R=this,T=R.s,x=R.e;return x===null?T?(N="Infinity",T<0&&(N="-"+N)):N="NaN":($==null?N=x<=M||x>=q?w(m(R.c),x):S(m(R.c),x,"0"):$===10&&ie?(R=de(new ae(R),j+x+1,U),N=S(m(R.c),R.e,"0")):(v($,2,xe.length,"Base"),N=L(S(m(R.c),x,"0"),10,$,T,!0)),T<0&&R.c[0]&&(N="-"+N)),N},O.valueOf=O.toJSON=function(){return oe(this)},O._isBigNumber=!0,A!=null&&ae.set(A),ae}function b(A){var D=A|0;return A>0||A===D?D:D-1}function m(A){for(var D,L,E=1,O=A.length,P=A[0]+"";Eq^L?1:-1;for(U=(M=O.length)<(q=P.length)?M:q,j=0;jP[j]^L?1:-1;return M==q?0:M>q^L?1:-1}function v(A,D,L,E){if(AL||A!==r(A))throw Error(a+(E||"Argument")+(typeof A=="number"?AL?" out of range: ":" not an integer: ":" not a primitive number: ")+String(A))}function _(A){var D=A.c.length-1;return b(A.e/c)==D&&A.c[D]%2!=0}function w(A,D){return(A.length>1?A.charAt(0)+"."+A.slice(1):A)+(D<0?"e":"e+")+D}function S(A,D,L){var E,O;if(D<0){for(O=L+".";++D;O+=L);A=O+A}else if(E=A.length,++D>E){for(O=L,D-=E;--D;O+=L);A+=O}else D>>25)+w|0,A+=(_&w|~_&S)+v[1]-389564586|0,A=(A<<12|A>>>20)+_|0,S+=(A&_|~A&w)+v[2]+606105819|0,S=(S<<17|S>>>15)+A|0,w+=(S&A|~S&_)+v[3]-1044525330|0,w=(w<<22|w>>>10)+S|0,_+=(w&S|~w&A)+v[4]-176418897|0,_=(_<<7|_>>>25)+w|0,A+=(_&w|~_&S)+v[5]+1200080426|0,A=(A<<12|A>>>20)+_|0,S+=(A&_|~A&w)+v[6]-1473231341|0,S=(S<<17|S>>>15)+A|0,w+=(S&A|~S&_)+v[7]-45705983|0,w=(w<<22|w>>>10)+S|0,_+=(w&S|~w&A)+v[8]+1770035416|0,_=(_<<7|_>>>25)+w|0,A+=(_&w|~_&S)+v[9]-1958414417|0,A=(A<<12|A>>>20)+_|0,S+=(A&_|~A&w)+v[10]-42063|0,S=(S<<17|S>>>15)+A|0,w+=(S&A|~S&_)+v[11]-1990404162|0,w=(w<<22|w>>>10)+S|0,_+=(w&S|~w&A)+v[12]+1804603682|0,_=(_<<7|_>>>25)+w|0,A+=(_&w|~_&S)+v[13]-40341101|0,A=(A<<12|A>>>20)+_|0,S+=(A&_|~A&w)+v[14]-1502002290|0,S=(S<<17|S>>>15)+A|0,w+=(S&A|~S&_)+v[15]+1236535329|0,w=(w<<22|w>>>10)+S|0,_+=(w&A|S&~A)+v[1]-165796510|0,_=(_<<5|_>>>27)+w|0,A+=(_&S|w&~S)+v[6]-1069501632|0,A=(A<<9|A>>>23)+_|0,S+=(A&w|_&~w)+v[11]+643717713|0,S=(S<<14|S>>>18)+A|0,w+=(S&_|A&~_)+v[0]-373897302|0,w=(w<<20|w>>>12)+S|0,_+=(w&A|S&~A)+v[5]-701558691|0,_=(_<<5|_>>>27)+w|0,A+=(_&S|w&~S)+v[10]+38016083|0,A=(A<<9|A>>>23)+_|0,S+=(A&w|_&~w)+v[15]-660478335|0,S=(S<<14|S>>>18)+A|0,w+=(S&_|A&~_)+v[4]-405537848|0,w=(w<<20|w>>>12)+S|0,_+=(w&A|S&~A)+v[9]+568446438|0,_=(_<<5|_>>>27)+w|0,A+=(_&S|w&~S)+v[14]-1019803690|0,A=(A<<9|A>>>23)+_|0,S+=(A&w|_&~w)+v[3]-187363961|0,S=(S<<14|S>>>18)+A|0,w+=(S&_|A&~_)+v[8]+1163531501|0,w=(w<<20|w>>>12)+S|0,_+=(w&A|S&~A)+v[13]-1444681467|0,_=(_<<5|_>>>27)+w|0,A+=(_&S|w&~S)+v[2]-51403784|0,A=(A<<9|A>>>23)+_|0,S+=(A&w|_&~w)+v[7]+1735328473|0,S=(S<<14|S>>>18)+A|0,w+=(S&_|A&~_)+v[12]-1926607734|0,w=(w<<20|w>>>12)+S|0,_+=(w^S^A)+v[5]-378558|0,_=(_<<4|_>>>28)+w|0,A+=(_^w^S)+v[8]-2022574463|0,A=(A<<11|A>>>21)+_|0,S+=(A^_^w)+v[11]+1839030562|0,S=(S<<16|S>>>16)+A|0,w+=(S^A^_)+v[14]-35309556|0,w=(w<<23|w>>>9)+S|0,_+=(w^S^A)+v[1]-1530992060|0,_=(_<<4|_>>>28)+w|0,A+=(_^w^S)+v[4]+1272893353|0,A=(A<<11|A>>>21)+_|0,S+=(A^_^w)+v[7]-155497632|0,S=(S<<16|S>>>16)+A|0,w+=(S^A^_)+v[10]-1094730640|0,w=(w<<23|w>>>9)+S|0,_+=(w^S^A)+v[13]+681279174|0,_=(_<<4|_>>>28)+w|0,A+=(_^w^S)+v[0]-358537222|0,A=(A<<11|A>>>21)+_|0,S+=(A^_^w)+v[3]-722521979|0,S=(S<<16|S>>>16)+A|0,w+=(S^A^_)+v[6]+76029189|0,w=(w<<23|w>>>9)+S|0,_+=(w^S^A)+v[9]-640364487|0,_=(_<<4|_>>>28)+w|0,A+=(_^w^S)+v[12]-421815835|0,A=(A<<11|A>>>21)+_|0,S+=(A^_^w)+v[15]+530742520|0,S=(S<<16|S>>>16)+A|0,w+=(S^A^_)+v[2]-995338651|0,w=(w<<23|w>>>9)+S|0,_+=(S^(w|~A))+v[0]-198630844|0,_=(_<<6|_>>>26)+w|0,A+=(w^(_|~S))+v[7]+1126891415|0,A=(A<<10|A>>>22)+_|0,S+=(_^(A|~w))+v[14]-1416354905|0,S=(S<<15|S>>>17)+A|0,w+=(A^(S|~_))+v[5]-57434055|0,w=(w<<21|w>>>11)+S|0,_+=(S^(w|~A))+v[12]+1700485571|0,_=(_<<6|_>>>26)+w|0,A+=(w^(_|~S))+v[3]-1894986606|0,A=(A<<10|A>>>22)+_|0,S+=(_^(A|~w))+v[10]-1051523|0,S=(S<<15|S>>>17)+A|0,w+=(A^(S|~_))+v[1]-2054922799|0,w=(w<<21|w>>>11)+S|0,_+=(S^(w|~A))+v[8]+1873313359|0,_=(_<<6|_>>>26)+w|0,A+=(w^(_|~S))+v[15]-30611744|0,A=(A<<10|A>>>22)+_|0,S+=(_^(A|~w))+v[6]-1560198380|0,S=(S<<15|S>>>17)+A|0,w+=(A^(S|~_))+v[13]+1309151649|0,w=(w<<21|w>>>11)+S|0,_+=(S^(w|~A))+v[4]-145523070|0,_=(_<<6|_>>>26)+w|0,A+=(w^(_|~S))+v[11]-1120210379|0,A=(A<<10|A>>>22)+_|0,S+=(_^(A|~w))+v[2]+718787259|0,S=(S<<15|S>>>17)+A|0,w+=(A^(S|~_))+v[9]-343485551|0,w=(w<<21|w>>>11)+S|0,g[0]=_+g[0]|0,g[1]=w+g[1]|0,g[2]=S+g[2]|0,g[3]=A+g[3]|0}function r(g){var v=[],_;for(_=0;_<64;_+=4)v[_>>2]=g.charCodeAt(_)+(g.charCodeAt(_+1)<<8)+(g.charCodeAt(_+2)<<16)+(g.charCodeAt(_+3)<<24);return v}function a(g){var v=[],_;for(_=0;_<64;_+=4)v[_>>2]=g[_]+(g[_+1]<<8)+(g[_+2]<<16)+(g[_+3]<<24);return v}function o(g){var v=g.length,_=[1732584193,-271733879,-1732584194,271733878],w,S,A,D,L,E;for(w=64;w<=v;w+=64)n(_,r(g.substring(w-64,w)));for(g=g.substring(w-64),S=g.length,A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w=0;w>2]|=g.charCodeAt(w)<<(w%4<<3);if(A[w>>2]|=128<<(w%4<<3),w>55)for(n(_,A),w=0;w<16;w+=1)A[w]=0;return D=v*8,D=D.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(D[2],16),E=parseInt(D[1],16)||0,A[14]=L,A[15]=E,n(_,A),_}function l(g){var v=g.length,_=[1732584193,-271733879,-1732584194,271733878],w,S,A,D,L,E;for(w=64;w<=v;w+=64)n(_,a(g.subarray(w-64,w)));for(g=w-64>2]|=g[w]<<(w%4<<3);if(A[w>>2]|=128<<(w%4<<3),w>55)for(n(_,A),w=0;w<16;w+=1)A[w]=0;return D=v*8,D=D.toString(16).match(/(.*?)(.{0,8})$/),L=parseInt(D[2],16),E=parseInt(D[1],16)||0,A[14]=L,A[15]=E,n(_,A),_}function c(g){var v="",_;for(_=0;_<4;_+=1)v+=s[g>>_*8+4&15]+s[g>>_*8&15];return v}function d(g){var v;for(v=0;vA?new ArrayBuffer(0):(D=A-S,L=new ArrayBuffer(D),E=new Uint8Array(L),O=new Uint8Array(this,S,D),E.set(O),L)}}();function h(g){return/[\u0080-\uFFFF]/.test(g)&&(g=unescape(encodeURIComponent(g))),g}function f(g,v){var _=g.length,w=new ArrayBuffer(_),S=new Uint8Array(w),A;for(A=0;A<_;A+=1)S[A]=g.charCodeAt(A);return v?S:w}function p(g){return String.fromCharCode.apply(null,new Uint8Array(g))}function y(g,v,_){var w=new Uint8Array(g.byteLength+v.byteLength);return w.set(new Uint8Array(g)),w.set(new Uint8Array(v),g.byteLength),_?w:w.buffer}function b(g){var v=[],_=g.length,w;for(w=0;w<_-1;w+=2)v.push(parseInt(g.substr(w,2),16));return String.fromCharCode.apply(String,v)}function m(){this.reset()}return m.prototype.append=function(g){return this.appendBinary(h(g)),this},m.prototype.appendBinary=function(g){this._buff+=g,this._length+=g.length;var v=this._buff.length,_;for(_=64;_<=v;_+=64)n(this._hash,r(this._buff.substring(_-64,_)));return this._buff=this._buff.substring(_-64),this},m.prototype.end=function(g){var v=this._buff,_=v.length,w,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],A;for(w=0;w<_;w+=1)S[w>>2]|=v.charCodeAt(w)<<(w%4<<3);return this._finish(S,_),A=d(this._hash),g&&(A=b(A)),this.reset(),A},m.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(g){return this._buff=g.buff,this._length=g.length,this._hash=g.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(g,v){var _=v,w,S,A;if(g[_>>2]|=128<<(_%4<<3),_>55)for(n(this._hash,g),_=0;_<16;_+=1)g[_]=0;w=this._length*8,w=w.toString(16).match(/(.*?)(.{0,8})$/),S=parseInt(w[2],16),A=parseInt(w[1],16)||0,g[14]=S,g[15]=A,n(this._hash,g)},m.hash=function(g,v){return m.hashBinary(h(g),v)},m.hashBinary=function(g,v){var _=o(g),w=d(_);return v?b(w):w},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(g){var v=y(this._buff.buffer,g,!0),_=v.length,w;for(this._length+=g.byteLength,w=64;w<=_;w+=64)n(this._hash,a(v.subarray(w-64,w)));return this._buff=w-64<_?new Uint8Array(v.buffer.slice(w-64)):new Uint8Array(0),this},m.ArrayBuffer.prototype.end=function(g){var v=this._buff,_=v.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],S,A;for(S=0;S<_;S+=1)w[S>>2]|=v[S]<<(S%4<<3);return this._finish(w,_),A=d(this._hash),g&&(A=b(A)),this.reset(),A},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var g=m.prototype.getState.call(this);return g.buff=p(g.buff),g},m.ArrayBuffer.prototype.setState=function(g){return g.buff=f(g.buff,!0),m.prototype.setState.call(this,g)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(g,v){var _=l(new Uint8Array(g)),w=d(_);return v?b(w):w},m})}(Zw)),Zw.exports}var eS={},ip={},O1={},pj;function k7(){if(pj)return O1;pj=1,Object.defineProperty(O1,"__esModule",{value:!0}),O1.default=u;let t;const e=new Uint8Array(16);function u(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}return O1}var _o={},ap={},sp={},yj;function iee(){if(yj)return sp;yj=1,Object.defineProperty(sp,"__esModule",{value:!0}),sp.default=void 0;var t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return sp.default=t,sp}var bj;function Jb(){if(bj)return ap;bj=1,Object.defineProperty(ap,"__esModule",{value:!0}),ap.default=void 0;var t=e(iee());function e(n){return n&&n.__esModule?n:{default:n}}function u(n){return typeof n=="string"&&t.default.test(n)}var s=u;return ap.default=s,ap}var gj;function Xb(){if(gj)return _o;gj=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=void 0,_o.unsafeStringify=s;var t=e(Jb());function e(a){return a&&a.__esModule?a:{default:a}}const u=[];for(let a=0;a<256;++a)u.push((a+256).toString(16).slice(1));function s(a,o=0){return u[a[o+0]]+u[a[o+1]]+u[a[o+2]]+u[a[o+3]]+"-"+u[a[o+4]]+u[a[o+5]]+"-"+u[a[o+6]]+u[a[o+7]]+"-"+u[a[o+8]]+u[a[o+9]]+"-"+u[a[o+10]]+u[a[o+11]]+u[a[o+12]]+u[a[o+13]]+u[a[o+14]]+u[a[o+15]]}function n(a,o=0){const l=s(a,o);if(!(0,t.default)(l))throw TypeError("Stringified UUID is invalid");return l}var r=n;return _o.default=r,_o}var mj;function aee(){if(mj)return ip;mj=1,Object.defineProperty(ip,"__esModule",{value:!0}),ip.default=void 0;var t=u(k7()),e=Xb();function u(c){return c&&c.__esModule?c:{default:c}}let s,n,r=0,a=0;function o(c,d,h){let f=d&&h||0;const p=d||new Array(16);c=c||{};let y=c.node||s,b=c.clockseq!==void 0?c.clockseq:n;if(y==null||b==null){const S=c.random||(c.rng||t.default)();y==null&&(y=s=[S[0]|1,S[1],S[2],S[3],S[4],S[5]]),b==null&&(b=n=(S[6]<<8|S[7])&16383)}let m=c.msecs!==void 0?c.msecs:Date.now(),g=c.nsecs!==void 0?c.nsecs:a+1;const v=m-r+(g-a)/1e4;if(v<0&&c.clockseq===void 0&&(b=b+1&16383),(v<0||m>r)&&c.nsecs===void 0&&(g=0),g>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");r=m,a=g,n=b,m+=122192928e5;const _=((m&268435455)*1e4+g)%4294967296;p[f++]=_>>>24&255,p[f++]=_>>>16&255,p[f++]=_>>>8&255,p[f++]=_&255;const w=m/4294967296*1e4&268435455;p[f++]=w>>>8&255,p[f++]=w&255,p[f++]=w>>>24&15|16,p[f++]=w>>>16&255,p[f++]=b>>>8|128,p[f++]=b&255;for(let S=0;S<6;++S)p[f+S]=y[S];return d||(0,e.unsafeStringify)(p)}var l=o;return ip.default=l,ip}var op={},xa={},up={},_j;function z7(){if(_j)return up;_j=1,Object.defineProperty(up,"__esModule",{value:!0}),up.default=void 0;var t=e(Jb());function e(n){return n&&n.__esModule?n:{default:n}}function u(n){if(!(0,t.default)(n))throw TypeError("Invalid UUID");let r;const a=new Uint8Array(16);return a[0]=(r=parseInt(n.slice(0,8),16))>>>24,a[1]=r>>>16&255,a[2]=r>>>8&255,a[3]=r&255,a[4]=(r=parseInt(n.slice(9,13),16))>>>8,a[5]=r&255,a[6]=(r=parseInt(n.slice(14,18),16))>>>8,a[7]=r&255,a[8]=(r=parseInt(n.slice(19,23),16))>>>8,a[9]=r&255,a[10]=(r=parseInt(n.slice(24,36),16))/1099511627776&255,a[11]=r/4294967296&255,a[12]=r>>>24&255,a[13]=r>>>16&255,a[14]=r>>>8&255,a[15]=r&255,a}var s=u;return up.default=s,up}var vj;function G7(){if(vj)return xa;vj=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.URL=xa.DNS=void 0,xa.default=a;var t=Xb(),e=u(z7());function u(o){return o&&o.__esModule?o:{default:o}}function s(o){o=unescape(encodeURIComponent(o));const l=[];for(let c=0;c>5]>>>g%32&255,_=parseInt(m.charAt(v>>>4&15)+m.charAt(v&15),16);y.push(_)}return y}function u(p){return(p+64>>>9<<4)+14+1}function s(p,y){p[y>>5]|=128<>5]|=(p[m/8]&255)<>16)+(y>>16)+(b>>16)<<16|b&65535}function a(p,y){return p<>>32-y}function o(p,y,b,m,g,v){return r(a(r(r(y,p),r(m,v)),g),b)}function l(p,y,b,m,g,v,_){return o(y&b|~y&m,p,y,g,v,_)}function c(p,y,b,m,g,v,_){return o(y&m|b&~m,p,y,g,v,_)}function d(p,y,b,m,g,v,_){return o(y^b^m,p,y,g,v,_)}function h(p,y,b,m,g,v,_){return o(b^(y|~m),p,y,g,v,_)}var f=t;return cp.default=f,cp}var Sj;function oee(){if(Sj)return op;Sj=1,Object.defineProperty(op,"__esModule",{value:!0}),op.default=void 0;var t=u(G7()),e=u(see());function u(r){return r&&r.__esModule?r:{default:r}}var n=(0,t.default)("v3",48,e.default);return op.default=n,op}var lp={},dp={},Tj;function uee(){if(Tj)return dp;Tj=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.default=void 0;var e={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return dp.default=e,dp}var Aj;function cee(){if(Aj)return lp;Aj=1,Object.defineProperty(lp,"__esModule",{value:!0}),lp.default=void 0;var t=s(uee()),e=s(k7()),u=Xb();function s(a){return a&&a.__esModule?a:{default:a}}function n(a,o,l){if(t.default.randomUUID&&!o&&!a)return t.default.randomUUID();a=a||{};const c=a.random||(a.rng||e.default)();if(c[6]=c[6]&15|64,c[8]=c[8]&63|128,o){l=l||0;for(let d=0;d<16;++d)o[l+d]=c[d];return o}return(0,u.unsafeStringify)(c)}var r=n;return lp.default=r,lp}var fp={},hp={},Ej;function lee(){if(Ej)return hp;Ej=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.default=void 0;function t(n,r,a,o){switch(n){case 0:return r&a^~r&o;case 1:return r^a^o;case 2:return r&a^r&o^a&o;case 3:return r^a^o}}function e(n,r){return n<>>32-r}function u(n){const r=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const d=unescape(encodeURIComponent(n));n=[];for(let h=0;h>>0;m=b,b=y,y=e(p,30)>>>0,p=f,f=_}a[0]=a[0]+f>>>0,a[1]=a[1]+p>>>0,a[2]=a[2]+y>>>0,a[3]=a[3]+b>>>0,a[4]=a[4]+m>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,a[0]&255,a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,a[1]&255,a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,a[2]&255,a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,a[3]&255,a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,a[4]&255]}var s=u;return hp.default=s,hp}var Oj;function dee(){if(Oj)return fp;Oj=1,Object.defineProperty(fp,"__esModule",{value:!0}),fp.default=void 0;var t=u(G7()),e=u(lee());function u(r){return r&&r.__esModule?r:{default:r}}var n=(0,t.default)("v5",80,e.default);return fp.default=n,fp}var pp={},Rj;function fee(){if(Rj)return pp;Rj=1,Object.defineProperty(pp,"__esModule",{value:!0}),pp.default=void 0;var t="00000000-0000-0000-0000-000000000000";return pp.default=t,pp}var yp={},xj;function hee(){if(xj)return yp;xj=1,Object.defineProperty(yp,"__esModule",{value:!0}),yp.default=void 0;var t=e(Jb());function e(n){return n&&n.__esModule?n:{default:n}}function u(n){if(!(0,t.default)(n))throw TypeError("Invalid UUID");return parseInt(n.slice(14,15),16)}var s=u;return yp.default=s,yp}var Ij;function W7(){return Ij||(Ij=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return a.default}});var e=d(aee()),u=d(oee()),s=d(cee()),n=d(dee()),r=d(fee()),a=d(hee()),o=d(Jb()),l=d(Xb()),c=d(z7());function d(h){return h&&h.__esModule?h:{default:h}}}(eS)),eS}var bp={},Pj;function Kb(){if(Pj)return bp;Pj=1,Object.defineProperty(bp,"__esModule",{value:!0}),bp.orderTypes=void 0;const t=is(),e=uu(),u=ro(),s=Cn(),n=on();function r(c,d,h=!1,f,p){if(c===d)return 0;if(c===void 0)return-1;if(d===void 0)return 1;if(c.termType!==d.termType)return l[c.termType]"term"),cache:f??new t.LRUCache({max:1e3})},defaultTimeZone:{zoneHours:0,zoneMinutes:0}},m=new u.TermTransformer(b.superTypeProvider),g=m.transformLiteral(c),v=m.transformLiteral(d);try{return y.apply([g,v],b).typedValue?0:p.apply([g,v],b).typedValue?1:-1}catch{const _=o(g.dataType,v.dataType);return _!==0?_:o(g.str(),v.str())}}function o(c,d){return c===d?0:cC=>(0,b.bool)(!C.coerceEBV())).collect()},w={arity:1,overloads:(0,b.declare)(l.RegularOperator.UPLUS).numericConverter(()=>C=>C).collect()},S={arity:1,overloads:(0,b.declare)(l.RegularOperator.UMINUS).numericConverter(()=>C=>-C).collect()},A={arity:2,overloads:(0,b.declare)(l.RegularOperator.MULTIPLICATION).arithmetic(()=>(C,ee)=>new t.BigNumber(C).times(ee).toNumber()).collect()},D={arity:2,overloads:(0,b.declare)(l.RegularOperator.DIVISION).arithmetic(()=>(C,ee)=>new t.BigNumber(C).div(ee).toNumber()).onBinaryTyped([c.TypeURL.XSD_INTEGER,c.TypeURL.XSD_INTEGER],()=>(C,ee)=>{if(ee===0)throw new h.ExpressionError("Integer division by 0");return(0,b.decimal)(new t.BigNumber(C).div(ee).toNumber())}).collect()},L={arity:2,overloads:(0,b.declare)(l.RegularOperator.ADDITION).arithmetic(()=>(C,ee)=>new t.BigNumber(C).plus(ee).toNumber()).set([c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>new a.DateTimeLiteral((0,p.addDurationToDateTime)(C.typedValue,(0,d.defaultedDurationRepresentation)(ee.typedValue)))).copy({from:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],to:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([c.TypeURL.XSD_DATE,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>new a.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(C.typedValue),(0,d.defaultedDurationRepresentation)(ee.typedValue)))).copy({from:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_DAY_TIME_DURATION],to:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([c.TypeURL.XSD_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>new a.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(C.typedValue),(0,d.defaultedDurationRepresentation)(ee.typedValue)))).copy({from:[c.TypeURL.XSD_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],to:[c.TypeURL.XSD_TIME,c.TypeURL.XSD_YEAR_MONTH_DURATION]}).collect()},E={arity:2,overloads:(0,b.declare)(l.RegularOperator.SUBTRACTION).arithmetic(()=>(C,ee)=>new t.BigNumber(C).minus(ee).toNumber()).set([c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DATE_TIME],({defaultTimeZone:C})=>([ee,pe])=>new a.DayTimeDurationLiteral((0,p.elapsedDuration)(ee.typedValue,pe.typedValue,C))).copy({from:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_DATE]}).copy({from:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_TIME,c.TypeURL.XSD_TIME]}).set([c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>new a.DateTimeLiteral((0,p.addDurationToDateTime)(C.typedValue,(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(ee.typedValue))))).copy({from:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],to:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([c.TypeURL.XSD_DATE,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>new a.DateLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(C.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(ee.typedValue))))).copy({from:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_DAY_TIME_DURATION],to:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_YEAR_MONTH_DURATION]}).set([c.TypeURL.XSD_TIME,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>new a.TimeLiteral((0,p.addDurationToDateTime)((0,d.defaultedDateTimeRepresentation)(C.typedValue),(0,d.defaultedDurationRepresentation)((0,d.negateDuration)(ee.typedValue))))).collect()},O={arity:2,overloads:(0,b.declare)(l.RegularOperator.EQUAL).numberTest(()=>(C,ee)=>C===ee).stringTest(()=>(C,ee)=>C.localeCompare(ee)===0).set([c.TypeURL.RDF_LANG_STRING,c.TypeURL.RDF_LANG_STRING],()=>([C,ee])=>(0,b.bool)(C.str()===ee.str()&&C.language===ee.language)).set([c.TypeAlias.SPARQL_STRINGLY,c.TypeAlias.SPARQL_STRINGLY],()=>()=>(0,b.bool)(!1)).booleanTest(()=>(C,ee)=>C===ee).dateTimeTest(({defaultTimeZone:C})=>(ee,pe)=>(0,d.toUTCDate)(ee,C).getTime()===(0,d.toUTCDate)(pe,C).getTime()).copy({from:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_DATE]}).set(["quad","quad"],C=>([ee,pe])=>{const De=new y.RegularFunction(c.RegularOperator.EQUAL,O);return(0,b.bool)(De.apply([ee.subject,pe.subject],C).coerceEBV()&&De.apply([ee.predicate,pe.predicate],C).coerceEBV()&&De.apply([ee.object,pe.object],C).coerceEBV())},!1).set(["term","term"],()=>([C,ee])=>(0,b.bool)(P(C,ee)),!1).set([c.TypeURL.XSD_DURATION,c.TypeURL.XSD_DURATION],()=>([C,ee])=>(0,b.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(C.typedValue))===(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(ee.typedValue))&&(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(C.typedValue))===(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(ee.typedValue)))).set([c.TypeURL.XSD_TIME,c.TypeURL.XSD_TIME],({defaultTimeZone:C})=>([ee,pe])=>(0,b.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(ee.typedValue),C).getTime()===(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(pe.typedValue),C).getTime())).collect()};function P(C,ee){const pe=C.toRDF(),De=ee.toRDF(),Ue=pe.equals(De);if(!Ue&&pe.termType==="Literal"&&De.termType==="Literal")throw new h.RDFEqualTypeError([C,ee]);return Ue}const j={arity:2,overloads:(0,b.declare)(l.RegularOperator.NOT_EQUAL).set(["term","term"],C=>([ee,pe])=>(0,b.bool)(!g.regularFunctions[l.RegularOperator.EQUAL].apply([ee,pe],C).typedValue)).collect()},U={arity:2,overloads:(0,b.declare)(l.RegularOperator.LT).numberTest(()=>(C,ee)=>C(C,ee)=>C.localeCompare(ee)===-1).booleanTest(()=>(C,ee)=>C([C,ee])=>(0,b.bool)((0,f.orderTypes)(C.toRDF(),ee.toRDF(),!0)===-1),!1).dateTimeTest(({defaultTimeZone:C})=>(ee,pe)=>(0,d.toUTCDate)(ee,C).getTime()<(0,d.toUTCDate)(pe,C).getTime()).copy({from:[c.TypeURL.XSD_DATE_TIME,c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_DATE,c.TypeURL.XSD_DATE]}).set([c.TypeURL.XSD_YEAR_MONTH_DURATION,c.TypeURL.XSD_YEAR_MONTH_DURATION],()=>([C,ee])=>(0,b.bool)((0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(C.typedValue))<(0,d.yearMonthDurationsToMonths)((0,d.defaultedYearMonthDurationRepresentation)(ee.typedValue)))).set([c.TypeURL.XSD_DAY_TIME_DURATION,c.TypeURL.XSD_DAY_TIME_DURATION],()=>([C,ee])=>(0,b.bool)((0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(C.typedValue))<(0,d.dayTimeDurationsToSeconds)((0,d.defaultedDayTimeDurationRepresentation)(ee.typedValue)))).set([c.TypeURL.XSD_TIME,c.TypeURL.XSD_TIME],({defaultTimeZone:C})=>([ee,pe])=>(0,b.bool)((0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(ee.typedValue),C).getTime()<(0,d.toUTCDate)((0,d.defaultedDateTimeRepresentation)(pe.typedValue),C).getTime())).collect()},M={arity:2,overloads:(0,b.declare)(l.RegularOperator.GT).set(["term","term"],C=>([ee,pe])=>g.regularFunctions[l.RegularOperator.LT].apply([pe,ee],C)).collect()},q={arity:2,overloads:(0,b.declare)(l.RegularOperator.LTE).set(["term","term"],C=>([ee,pe])=>(0,b.bool)(g.regularFunctions[l.RegularOperator.LT].apply([ee,pe],C).typedValue||g.regularFunctions[l.RegularOperator.EQUAL].apply([ee,pe],C).typedValue)).collect()},Q={arity:2,overloads:(0,b.declare)(l.RegularOperator.GTE).set(["term","term"],C=>([ee,pe])=>g.regularFunctions[l.RegularOperator.LTE].apply([pe,ee],C)).collect()},Z={arity:1,overloads:(0,b.declare)(l.RegularOperator.IS_IRI).onTerm1(()=>C=>(0,b.bool)(C.termType==="namedNode")).collect()},K={arity:1,overloads:(0,b.declare)(l.RegularOperator.IS_BLANK).onTerm1(()=>C=>(0,b.bool)(C.termType==="blankNode")).collect()},fe={arity:1,overloads:(0,b.declare)(l.RegularOperator.IS_LITERAL).onTerm1(()=>C=>(0,b.bool)(C.termType==="literal")).collect()},X={arity:1,overloads:(0,b.declare)(l.RegularOperator.IS_NUMERIC).onNumeric1(()=>()=>(0,b.bool)(!0)).onTerm1(()=>()=>(0,b.bool)(!1)).collect()},he={arity:1,overloads:(0,b.declare)(l.RegularOperator.STR).onTerm1(()=>C=>(0,b.string)(C.str())).collect()},xe={arity:1,overloads:(0,b.declare)(l.RegularOperator.LANG).onLiteral1(()=>C=>(0,b.string)(C.language??"")).collect()},ie={arity:1,overloads:(0,b.declare)(l.RegularOperator.DATATYPE).onLiteral1(()=>C=>new a.NamedNode(C.dataType)).collect()},ae={arity:1,overloads:(0,b.declare)(l.RegularOperator.IRI).set(["namedNode"],C=>ee=>{const pe=ee[0],De=(0,s.resolve)(pe.str(),C.baseIRI??"");return new a.NamedNode(De)}).onString1(C=>ee=>{const pe=(0,s.resolve)(ee.str(),C.baseIRI??"");return new a.NamedNode(pe)}).collect()},Oe={arity:2,overloads:(0,b.declare)(l.RegularOperator.STRDT).set([c.TypeURL.XSD_STRING,"namedNode"],({superTypeProvider:C})=>([ee,pe])=>{const De=v.literal(ee.typedValue,v.namedNode(pe.value));return new o.TermTransformer(C).transformLiteral(De)}).collect()},Ne={arity:2,overloads:(0,b.declare)(l.RegularOperator.STRLANG).onBinaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>(C,ee)=>new a.LangStringLiteral(C,ee.toLowerCase())).collect()},ge={arity:0,overloads:(0,b.declare)(l.RegularOperator.UUID).set([],()=>()=>new a.NamedNode(`urn:uuid:${r.v4()}`)).collect()},de={arity:0,overloads:(0,b.declare)(l.RegularOperator.STRUUID).set([],()=>()=>(0,b.string)(r.v4())).collect()},oe={arity:1,overloads:(0,b.declare)(l.RegularOperator.STRLEN).onStringly1(()=>C=>(0,b.integer)([...C.typedValue].length)).collect()},$={arity:[2,3],overloads:(0,b.declare)(l.RegularOperator.SUBSTR).onBinaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_INTEGER],()=>(C,ee)=>(0,b.string)([...C].slice(ee-1).join(""))).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.XSD_INTEGER],()=>(C,ee)=>{const pe=[...C.typedValue].slice(ee.typedValue-1).join("");return(0,b.langString)(pe,C.language)}).onTernaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_INTEGER,c.TypeURL.XSD_INTEGER],()=>(C,ee,pe)=>(0,b.string)([...C].slice(ee-1,pe+ee-1).join(""))).onTernary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.XSD_INTEGER,c.TypeURL.XSD_INTEGER],()=>(C,ee,pe)=>{const De=[...C.typedValue].slice(ee.typedValue-1,pe.typedValue+ee.typedValue-1).join("");return(0,b.langString)(De,C.language)}).collect()},N={arity:1,overloads:(0,b.declare)(l.RegularOperator.UCASE).onString1Typed(()=>C=>(0,b.string)(C.toUpperCase())).onLangString1(()=>C=>(0,b.langString)(C.typedValue.toUpperCase(),C.language)).collect()},R={arity:1,overloads:(0,b.declare)(l.RegularOperator.LCASE).onString1Typed(()=>C=>(0,b.string)(C.toLowerCase())).onLangString1(()=>C=>(0,b.langString)(C.typedValue.toLowerCase(),C.language)).collect()},T={arity:2,overloads:(0,b.declare)(l.RegularOperator.STRSTARTS).onBinaryTyped([c.TypeAlias.SPARQL_STRINGLY,c.TypeURL.XSD_STRING],()=>(C,ee)=>(0,b.bool)(C.startsWith(ee))).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.RDF_LANG_STRING],()=>(C,ee)=>{if(C.language!==ee.language)throw new h.IncompatibleLanguageOperation(C,ee);return(0,b.bool)(C.typedValue.startsWith(ee.typedValue))}).collect()},x={arity:2,overloads:(0,b.declare)(l.RegularOperator.STRENDS).onBinaryTyped([c.TypeAlias.SPARQL_STRINGLY,c.TypeURL.XSD_STRING],()=>(C,ee)=>(0,b.bool)(C.endsWith(ee))).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.RDF_LANG_STRING],()=>(C,ee)=>{if(C.language!==ee.language)throw new h.IncompatibleLanguageOperation(C,ee);return(0,b.bool)(C.typedValue.endsWith(ee.typedValue))}).collect()},B={arity:2,overloads:(0,b.declare)(l.RegularOperator.CONTAINS).onBinaryTyped([c.TypeAlias.SPARQL_STRINGLY,c.TypeURL.XSD_STRING],()=>(C,ee)=>(0,b.bool)(C.includes(ee))).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.RDF_LANG_STRING],()=>(C,ee)=>{if(C.language!==ee.language)throw new h.IncompatibleLanguageOperation(C,ee);return(0,b.bool)(C.typedValue.includes(ee.typedValue))}).collect()},k={arity:2,overloads:(0,b.declare)(l.RegularOperator.STRBEFORE).onBinaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>(C,ee)=>(0,b.string)(C.slice(0,Math.max(0,C.indexOf(ee))))).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.XSD_STRING],()=>(C,ee)=>{const[pe,De]=[C.typedValue,ee.typedValue],Ue=C.typedValue.slice(0,Math.max(0,pe.indexOf(De)));return Ue||!De?(0,b.langString)(Ue,C.language):(0,b.string)(Ue)}).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.RDF_LANG_STRING],()=>(C,ee)=>{if(C.language!==ee.language)throw new h.IncompatibleLanguageOperation(C,ee);const[pe,De]=[C.typedValue,ee.typedValue],Ue=C.typedValue.slice(0,Math.max(0,pe.indexOf(De)));return Ue||!De?(0,b.langString)(Ue,C.language):(0,b.string)(Ue)}).collect()},V={arity:2,overloads:(0,b.declare)(l.RegularOperator.STRAFTER).onBinaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>(C,ee)=>(0,b.string)(C.slice(C.indexOf(ee)).slice(ee.length))).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.XSD_STRING],()=>(C,ee)=>{const[pe,De]=[C.typedValue,ee.typedValue],Ue=pe.slice(pe.indexOf(De)).slice(De.length);return Ue||!De?(0,b.langString)(Ue,C.language):(0,b.string)(Ue)}).onBinary([c.TypeURL.RDF_LANG_STRING,c.TypeURL.RDF_LANG_STRING],()=>(C,ee)=>{if(C.language!==ee.language)throw new h.IncompatibleLanguageOperation(C,ee);const[pe,De]=[C.typedValue,ee.typedValue],Ue=pe.slice(pe.indexOf(De)).slice(De.length);return Ue||!De?(0,b.langString)(Ue,C.language):(0,b.string)(Ue)}).collect()},J={arity:1,overloads:(0,b.declare)(l.RegularOperator.ENCODE_FOR_URI).onStringly1Typed(()=>C=>(0,b.string)(encodeURI(C))).collect()},z={arity:2,overloads:(0,b.declare)(l.RegularOperator.LANG_MATCHES).onBinaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>(C,ee)=>(0,b.bool)(m.langMatches(C,ee))).collect()};function Y(){return(C,ee)=>(0,b.bool)(m.matches(C,ee))}function te(){return(C,ee,pe)=>(0,b.bool)(m.matches(C,ee,pe))}const ce={arity:[2,3],overloads:(0,b.declare)(l.RegularOperator.REGEX).onBinaryTyped([c.TypeAlias.SPARQL_STRINGLY,c.TypeURL.XSD_STRING],Y).onTernaryTyped([c.TypeAlias.SPARQL_STRINGLY,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],te).collect()},Ae={arity:[3,4],overloads:(0,b.declare)(l.RegularOperator.REPLACE).onTernaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>(C,ee,pe)=>(0,b.string)(m.replace(C,ee,pe))).set([c.TypeURL.RDF_LANG_STRING,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>([C,ee,pe])=>{const De=m.replace(C.typedValue,ee.typedValue,pe.typedValue);return(0,b.langString)(De,C.language)}).onQuaternaryTyped([c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>(C,ee,pe,De)=>(0,b.string)(m.replace(C,ee,pe,De))).set([c.TypeURL.RDF_LANG_STRING,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING,c.TypeURL.XSD_STRING],()=>([C,ee,pe,De])=>{const Ue=m.replace(C.typedValue,ee.typedValue,pe.typedValue,De.typedValue);return(0,b.langString)(Ue,C.language)}).collect()},Ie={arity:1,overloads:(0,b.declare)(l.RegularOperator.ABS).numericConverter(()=>C=>Math.abs(C)).collect()},Ee={arity:1,overloads:(0,b.declare)(l.RegularOperator.ROUND).numericConverter(()=>C=>Math.round(C)).collect()},qe={arity:1,overloads:(0,b.declare)(l.RegularOperator.CEIL).numericConverter(()=>C=>Math.ceil(C)).collect()},G={arity:1,overloads:(0,b.declare)(l.RegularOperator.FLOOR).numericConverter(()=>C=>Math.floor(C)).collect()},F={arity:0,overloads:(0,b.declare)(l.RegularOperator.RAND).set([],()=>()=>(0,b.double)(Math.random())).collect()},H={arity:0,overloads:(0,b.declare)(l.RegularOperator.NOW).set([],C=>()=>new a.DateTimeLiteral((0,d.toDateTimeRepresentation)({date:C.now,timeZone:C.defaultTimeZone}))).collect()},re={arity:1,overloads:(0,b.declare)(l.RegularOperator.YEAR).onDateTime1(()=>C=>(0,b.integer)(C.typedValue.year)).set([c.TypeURL.XSD_DATE],()=>([C])=>(0,b.integer)(C.typedValue.year)).collect()},be={arity:1,overloads:(0,b.declare)(l.RegularOperator.MONTH).onDateTime1(()=>C=>(0,b.integer)(C.typedValue.month)).set([c.TypeURL.XSD_DATE],()=>([C])=>(0,b.integer)(C.typedValue.month)).collect()},Re={arity:1,overloads:(0,b.declare)(l.RegularOperator.DAY).onDateTime1(()=>C=>(0,b.integer)(C.typedValue.day)).set([c.TypeURL.XSD_DATE],()=>([C])=>(0,b.integer)(C.typedValue.day)).collect()},Ce={arity:1,overloads:(0,b.declare)(l.RegularOperator.HOURS).onDateTime1(()=>C=>(0,b.integer)(C.typedValue.hours)).set([c.TypeURL.XSD_TIME],()=>([C])=>(0,b.integer)(C.typedValue.hours)).collect()},Qe={arity:1,overloads:(0,b.declare)(l.RegularOperator.MINUTES).onDateTime1(()=>C=>(0,b.integer)(C.typedValue.minutes)).set([c.TypeURL.XSD_TIME],()=>([C])=>(0,b.integer)(C.typedValue.minutes)).collect()},ke={arity:1,overloads:(0,b.declare)(l.RegularOperator.SECONDS).onDateTime1(()=>C=>(0,b.decimal)(C.typedValue.seconds)).set([c.TypeURL.XSD_TIME],()=>([C])=>(0,b.integer)(C.typedValue.seconds)).collect()},me={arity:1,overloads:(0,b.declare)(l.RegularOperator.TIMEZONE).onDateTime1(()=>C=>{const ee={hours:C.typedValue.zoneHours,minutes:C.typedValue.zoneMinutes};if(ee.hours===void 0&&ee.minutes===void 0)throw new h.InvalidTimezoneCall(C.str());return new a.DayTimeDurationLiteral(ee)}).copy({from:[c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_DATE]}).copy({from:[c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_TIME]}).collect()},Se={arity:1,overloads:(0,b.declare)(l.RegularOperator.TZ).onDateTime1(()=>C=>(0,b.string)((0,d.extractRawTimeZone)(C.str()))).copy({from:[c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_DATE]}).copy({from:[c.TypeURL.XSD_DATE_TIME],to:[c.TypeURL.XSD_TIME]}).collect()},W={arity:1,overloads:(0,b.declare)(l.RegularOperator.MD5).onString1Typed(()=>C=>(0,b.string)((0,n.hash)(C))).collect()},we={arity:1,overloads:(0,b.declare)(l.RegularOperator.SHA1).onString1Typed(()=>C=>(0,b.string)((0,e.sha1)().update(C).digest("hex"))).collect()},Te={arity:1,overloads:(0,b.declare)(l.RegularOperator.SHA256).onString1Typed(()=>C=>(0,b.string)((0,e.sha256)().update(C).digest("hex"))).collect()},Le={arity:1,overloads:(0,b.declare)(l.RegularOperator.SHA384).onString1Typed(()=>C=>(0,b.string)((0,e.sha384)().update(C).digest("hex"))).collect()},$e={arity:1,overloads:(0,b.declare)(l.RegularOperator.SHA512).onString1Typed(()=>C=>(0,b.string)((0,e.sha512)().update(C).digest("hex"))).collect()},We={arity:3,overloads:(0,b.declare)(l.RegularOperator.TRIPLE).onTerm3(C=>(...ee)=>new a.Quad(v.quad(ee[0].toRDF(),ee[1].toRDF(),ee[2].toRDF()),C.superTypeProvider)).collect()},tt={arity:1,overloads:(0,b.declare)(l.RegularOperator.SUBJECT).onQuad1(()=>C=>C.subject).collect()},lt={arity:1,overloads:(0,b.declare)(l.RegularOperator.PREDICATE).onQuad1(()=>C=>C.predicate).collect()},ut={arity:1,overloads:(0,b.declare)(l.RegularOperator.OBJECT).onQuad1(()=>C=>C.object).collect()},le={arity:1,overloads:(0,b.declare)(l.RegularOperator.IS_TRIPLE).onTerm1(()=>C=>(0,b.bool)(C.termType==="quad")).collect()};return np.definitions={"!":_,uplus:w,uminus:S,"*":A,"/":D,"+":L,"-":E,"=":O,"!=":j,"<":U,">":M,"<=":q,">=":Q,isiri:Z,isuri:Z,isblank:K,isliteral:fe,isnumeric:X,str:he,lang:xe,datatype:ie,iri:ae,uri:ae,strdt:Oe,strlang:Ne,uuid:ge,struuid:de,strlen:oe,substr:$,ucase:N,lcase:R,strstarts:T,strends:x,contains:B,strbefore:k,strafter:V,encode_for_uri:J,langmatches:z,regex:ce,replace:Ae,abs:Ie,round:Ee,ceil:qe,floor:G,rand:F,now:H,year:re,month:be,day:Re,hours:Ce,minutes:Qe,seconds:ke,timezone:me,tz:Se,md5:W,sha1:we,sha256:Te,sha384:Le,sha512:$e,triple:We,subject:tt,predicate:lt,object:ut,istriple:le},np}var gp={},Cj;function bee(){if(Cj)return gp;Cj=1,Object.defineProperty(gp,"__esModule",{value:!0}),gp.specialDefinitions=void 0;const t=W7(),e=Kn(),u=Cn(),s=on(),n=Yi(),r=uu(),a={arity:1,async applyAsync({args:D,mapping:L}){return o({args:D,mapping:L})},applySynchronously({args:D,mapping:L}){return o({args:D,mapping:L})}};function o({args:D,mapping:L}){const E=D[0];if(E.expressionType!==e.ExpressionType.Variable)throw new s.InvalidArgumentTypes(D,u.SpecialOperator.BOUND);const O=L.has((0,n.expressionToVar)(E));return(0,n.bool)(O)}const l={arity:3,async applyAsync({args:D,mapping:L,evaluate:E}){const P=(await E(D[0],L)).coerceEBV();return E(P?D[1]:D[2],L)},applySynchronously({args:D,mapping:L,evaluate:E}){const P=E(D[0],L).coerceEBV();return E(P?D[1]:D[2],L)}},c={arity:Number.POSITIVE_INFINITY,async applyAsync({args:D,mapping:L,evaluate:E}){const O=[];for(const P of D)try{return await E(P,L)}catch(j){O.push(j)}throw new s.CoalesceError(O)},applySynchronously({args:D,mapping:L,evaluate:E}){const O=[];for(const P of D)try{return E(P,L)}catch(j){O.push(j)}throw new s.CoalesceError(O)}},d={arity:2,async applyAsync({args:D,mapping:L,evaluate:E}){const[O,P]=D;try{if((await E(O,L)).coerceEBV())return(0,n.bool)(!0);const q=(await E(P,L)).coerceEBV();return(0,n.bool)(q)}catch(j){if(!(await E(P,L)).coerceEBV())throw j;return(0,n.bool)(!0)}},applySynchronously({args:D,mapping:L,evaluate:E}){const[O,P]=D;try{if(E(O,L).coerceEBV())return(0,n.bool)(!0);const q=E(P,L).coerceEBV();return(0,n.bool)(q)}catch(j){if(!E(P,L).coerceEBV())throw j;return(0,n.bool)(!0)}}},h={arity:2,async applyAsync({args:D,mapping:L,evaluate:E}){const[O,P]=D;try{if(!(await E(O,L)).coerceEBV())return(0,n.bool)(!1);const q=(await E(P,L)).coerceEBV();return(0,n.bool)(q)}catch(j){if((await E(P,L)).coerceEBV())throw j;return(0,n.bool)(!1)}},applySynchronously({args:D,mapping:L,evaluate:E}){const[O,P]=D;try{if(!E(O,L).coerceEBV())return(0,n.bool)(!1);const q=E(P,L).coerceEBV();return(0,n.bool)(q)}catch(j){if(E(P,L).coerceEBV())throw j;return(0,n.bool)(!1)}}},f={arity:2,async applyAsync({args:D,mapping:L,evaluate:E}){const[O,P]=D.map(M=>E(M,L)),[j,U]=await Promise.all([O,P]);return(0,n.bool)(j.toRDF().equals(U.toRDF()))},applySynchronously({args:D,mapping:L,evaluate:E}){const[O,P]=D.map(j=>E(j,L));return(0,n.bool)(O.toRDF().equals(P.toRDF()))}},p={arity:Number.POSITIVE_INFINITY,checkArity(D){return D.length>0},async applyAsync(D){const{args:L,mapping:E,evaluate:O}=D,[P,...j]=L,U=await O(P,E);return y(U,{...D,args:j},[])},applySynchronously(D){const{args:L,mapping:E,evaluate:O}=D,[P,...j]=L,U=O(P,E);return b(U,{...D,args:j},[])}};async function y(D,L,E){const{args:O,mapping:P,evaluate:j}=L;if(O.length===0)return E.every(M=>!M)?(0,n.bool)(!1):Promise.reject(new s.InError(E));try{const U=O.shift(),M=await j(U,P);return r.regularFunctions[u.RegularOperator.EQUAL].apply([D,M],L).typedValue?(0,n.bool)(!0):y(D,L,[...E,!1])}catch(U){return y(D,L,[...E,U])}}function b(D,L,E){const{args:O,mapping:P,evaluate:j}=L;if(O.length===0){if(E.every(M=>!M))return(0,n.bool)(!1);throw new s.InError(E)}try{const U=O.shift(),M=j(U,P);return r.regularFunctions[u.RegularOperator.EQUAL].apply([D,M],L).typedValue?(0,n.bool)(!0):b(D,L,[...E,!1])}catch(U){return b(D,L,[...E,U])}}const m={arity:Number.POSITIVE_INFINITY,checkArity(D){return D.length>0},async applyAsync(D){const E=await r.specialFunctions[u.SpecialOperator.IN].applyAsync(D);return(0,n.bool)(!E.typedValue)},applySynchronously(D){const E=r.specialFunctions[u.SpecialOperator.IN].applySynchronously(D);return(0,n.bool)(!E.typedValue)}},g=(0,n.declare)(u.SpecialOperator.CONCAT).onStringly1(()=>D=>D).collect(),v={arity:Number.POSITIVE_INFINITY,async applyAsync(D){const{args:L,mapping:E,evaluate:O,functionArgumentsCache:P,superTypeProvider:j}=D,U=L.map(async K=>O(K,E)).map(async K=>{const fe=g.search([await K],j,P);if(!fe)throw new s.InvalidArgumentTypes(L,u.SpecialOperator.CONCAT);return fe(D)([await K])}),M=await Promise.all(U),Q=M.map(K=>K.typedValue).join(""),Z=_(M)?M[0].language:void 0;return Z?(0,n.langString)(Q,Z):(0,n.string)(Q)},applySynchronously(D){const{args:L,mapping:E,evaluate:O,superTypeProvider:P,functionArgumentsCache:j}=D,U=L.map(Z=>O(Z,E)).map(Z=>{const K=g.search([Z],P,j);if(!K)throw new s.InvalidArgumentTypes(L,u.SpecialOperator.CONCAT);return K(D)([Z])}),q=U.map(Z=>Z.typedValue).join(""),Q=_(U)?U[0].language:void 0;return Q?(0,n.langString)(q,Q):(0,n.string)(q)}};function _(D){return D.length>0&&D.every(L=>L.language===D[0].language)}const w=(0,n.declare)(u.SpecialOperator.BNODE).onString1(()=>D=>D).collect(),S={arity:Number.POSITIVE_INFINITY,checkArity(D){return D.length===0||D.length===1},async applyAsync(D){const{args:L,mapping:E,evaluate:O,superTypeProvider:P,functionArgumentsCache:j}=D,U=L.length===1?await O(L[0],E):void 0;let M;if(U){const q=w.search([U],P,j);if(!q)throw new s.InvalidArgumentTypes(L,u.SpecialOperator.BNODE);M=q(D)([U]).str()}if(D.bnode){const q=await D.bnode(M);return new e.BlankNode(q)}return A(M)},applySynchronously(D){const{args:L,mapping:E,evaluate:O,superTypeProvider:P,functionArgumentsCache:j}=D,U=L.length===1?O(L[0],E):void 0;let M;if(U){const q=w.search([U],P,j);if(!q)throw new s.InvalidArgumentTypes(L,u.SpecialOperator.BNODE);M=q(D)([U]).str()}if(D.bnode){const q=D.bnode(M);return new e.BlankNode(q)}return A(M)}};function A(D){return new e.BlankNode(D??t.v4())}return gp.specialDefinitions={bound:a,if:l,coalesce:c,"&&":h,"||":d,sameterm:f,in:p,notin:m,concat:v,bnode:S},gp}var jj;function uu(){return jj||(jj=1,function(t){var e=I&&I.__createBinding||(Object.create?function(l,c,d,h){h===void 0&&(h=d);var f=Object.getOwnPropertyDescriptor(c,d);(!f||("get"in f?!c.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(l,h,f)}:function(l,c,d,h){h===void 0&&(h=d),l[h]=c[d]}),u=I&&I.__exportStar||function(l,c){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(c,d)&&e(c,l,d)};Object.defineProperty(t,"__esModule",{value:!0}),t.OverloadTree=t.namedFunctions=t.specialFunctions=t.regularFunctions=void 0;const s=g3(),n=tee(),r=yee(),a=bee();u(g3(),t),t.regularFunctions=Object.fromEntries(Object.entries(r.definitions).map(([l,c])=>[l,new s.RegularFunction(l,c)])),t.specialFunctions=Object.fromEntries(Object.entries(a.specialDefinitions).map(([l,c])=>[l,new s.SpecialFunction(l,c)])),t.namedFunctions=Object.fromEntries(Object.entries(n.namedDefinitions).map(([l,c])=>[l,new s.NamedFunction(l,c)]));var o=V7();Object.defineProperty(t,"OverloadTree",{enumerable:!0,get:function(){return o.OverloadTree}})}(Kw)),Kw}var Lj;function J7(){if(Lj)return kh;Lj=1,Object.defineProperty(kh,"__esModule",{value:!0}),kh.AlgebraTransformer=void 0;const t=Ot(),e=Kn(),u=uu(),s=Cn(),n=on(),r=on(),a=ro();let o=class P0 extends a.TermTransformer{constructor(c){super(c.superTypeProvider),this.algebraConfig=c,this.creatorConfig={type:c.type,creator:c.creator}}transformAlgebra(c){const d=t.Algebra.expressionTypes;switch(c.expressionType){case d.TERM:return this.transformTerm(c);case d.OPERATOR:return this.transformOperator(c);case d.NAMED:return this.transformNamed(c);case d.EXISTENCE:return P0.transformExistence(c);case d.AGGREGATE:return P0.transformAggregate(c);case d.WILDCARD:return P0.transformWildcard(c)}}static transformWildcard(c){return new e.NamedNode(c.wildcard.value)}transformOperator(c){const d=c.operator.toLowerCase();if(s.SpecialOperators.has(d)){const y=d,b=c.args.map(g=>this.transformAlgebra(g)),m=u.specialFunctions[y];if(!m.checkArity(b))throw new n.InvalidArity(b,y);return new e.SpecialOperator(b,m.applyAsync,m.applySynchronously)}if(!s.Operators.has(d))throw new n.UnknownOperator(c.operator);const h=d,f=c.args.map(y=>this.transformAlgebra(y)),p=u.regularFunctions[h];if(!P0.hasCorrectArity(f,p.arity))throw new n.InvalidArity(f,h);return new e.Operator(f,y=>p.apply(y,this.algebraConfig))}wrapSyncFunction(c,d){return h=>{try{const f=c(h.map(p=>p.toRDF()));return this.transformRDFTermUnsafe(f)}catch(f){throw new r.ExtensionFunctionError(d,f)}}}wrapAsyncFunction(c,d){return async h=>{try{const f=await c(h.map(p=>p.toRDF()));return this.transformRDFTermUnsafe(f)}catch(f){throw new r.ExtensionFunctionError(d,f)}}}transformNamed(c){const d=c.name.value,h=c.args.map(f=>this.transformAlgebra(f));if(s.NamedOperators.has(d)){const f=c.name.value,p=u.namedFunctions[f];return new e.Named(c.name,h,y=>p.apply(y,this.algebraConfig))}if(this.creatorConfig.type==="sync"){const f=this.creatorConfig.creator(c.name);if(f){const p=this.wrapSyncFunction(f,c.name.value);return new e.SyncExtension(c.name,h,p)}}else{const f=this.creatorConfig.creator(c.name);if(f){const p=this.wrapAsyncFunction(f,c.name.value);return new e.AsyncExtension(c.name,h,p)}}throw new n.UnknownNamedOperator(c.name.value)}static hasCorrectArity(c,d){return Array.isArray(d)?d.includes(c.length):c.length===d}static transformAggregate(c){const d=c.aggregator;return new e.Aggregate(d,c)}static transformExistence(c){return new e.Existence(c)}};return kh.AlgebraTransformer=o,kh}var mp={},_p={},Mj;function X7(){if(Mj)return _p;Mj=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.BaseExpressionEvaluator=void 0;const t=Yi(),e=on();let u=class{constructor(n){this.termTransformer=n}term(n){return n}variable(n,r){const a=r.get((0,t.expressionToVar)(n));if(!a)throw new e.UnboundVariableError(n.name,r);return this.termTransformer.transformRDFTermUnsafe(a)}};return _p.BaseExpressionEvaluator=u,_p}var Fj;function gee(){if(Fj)return mp;Fj=1,Object.defineProperty(mp,"__esModule",{value:!0}),mp.AsyncRecursiveEvaluator=void 0;const t=Kn(),e=ro(),u=on(),s=X7();let n=class extends s.BaseExpressionEvaluator{constructor(a,o){super(o??new e.TermTransformer(a.superTypeProvider)),this.context=a,this.subEvaluators={[t.ExpressionType.Term]:(l,c)=>this.term(l),[t.ExpressionType.Variable]:(l,c)=>this.variable(l,c),[t.ExpressionType.Operator]:(l,c)=>this.evalOperator(l,c),[t.ExpressionType.SpecialOperator]:(l,c)=>this.evalSpecialOperator(l,c),[t.ExpressionType.Named]:(l,c)=>this.evalNamed(l,c),[t.ExpressionType.Existence]:(l,c)=>this.evalExistence(l,c),[t.ExpressionType.Aggregate]:(l,c)=>this.evalAggregate(l),[t.ExpressionType.AsyncExtension]:(l,c)=>this.evalAsyncExtension(l,c)}}async evaluate(a,o){const l=this.subEvaluators[a.expressionType];if(!l)throw new u.InvalidExpressionType(a);return l.bind(this)(a,o)}async evalOperator(a,o){const l=a.args.map(d=>this.evaluate(d,o)),c=await Promise.all(l);return a.apply(c)}async evalSpecialOperator(a,o){const l=this.evaluate.bind(this),c={args:a.args,mapping:o,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:l,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return a.applyAsync(c)}async _evalAsyncArgs(a,o){const l=a.map(c=>this.evaluate(c,o));return await Promise.all(l)}async evalNamed(a,o){return a.apply(await this._evalAsyncArgs(a.args,o))}async evalAsyncExtension(a,o){return await a.apply(await this._evalAsyncArgs(a.args,o))}async evalExistence(a,o){if(!this.context.exists)throw new u.NoExistenceHook;return new t.BooleanLiteral(await this.context.exists(a.expression,o))}async evalAggregate(a){if(!this.context.aggregate)throw new u.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(await this.context.aggregate(a.expression))}};return mp.AsyncRecursiveEvaluator=n,mp}var qj;function Y7(){if(qj)return Vh;qj=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.AsyncEvaluator=void 0;const t=is(),e=J7(),u=ou(),s=gee();let n=class K7{static completeContext(a){const o=a.now??new Date(Date.now());return{now:o,baseIRI:a.baseIRI??void 0,functionArgumentsCache:a.functionArgumentsCache??{},superTypeProvider:{cache:a.typeCache??new t.LRUCache({max:1e3}),discoverer:a.getSuperType??(()=>"term")},extensionFunctionCreator:a.extensionFunctionCreator,exists:a.exists,aggregate:a.aggregate,bnode:a.bnode,defaultTimeZone:a.defaultTimeZone??(0,u.extractTimeZone)(o)}}constructor(a,o={}){this.algExpr=a;const l=o.extensionFunctionCreator??(()=>{}),c=K7.completeContext(o),d=new e.AlgebraTransformer({type:"async",creator:l,...c});this.expr=d.transformAlgebra(a),this.evaluator=new s.AsyncRecursiveEvaluator(c,d)}async evaluate(a){return(await this.evaluator.evaluate(this.expr,a)).toRDF()}async evaluateAsEBV(a){return(await this.evaluator.evaluate(this.expr,a)).coerceEBV()}async evaluateAsInternal(a){return await this.evaluator.evaluate(this.expr,a)}};return Vh.AsyncEvaluator=n,Vh}var vp={},wp={},Bj;function mee(){if(Bj)return wp;Bj=1,Object.defineProperty(wp,"__esModule",{value:!0}),wp.SyncRecursiveEvaluator=void 0;const t=Kn(),e=ro(),u=on(),s=X7();let n=class extends s.BaseExpressionEvaluator{constructor(a,o){super(o??new e.TermTransformer(a.superTypeProvider)),this.context=a,this.subEvaluators={[t.ExpressionType.Term]:(l,c)=>this.term(l),[t.ExpressionType.Variable]:(l,c)=>this.variable(l,c),[t.ExpressionType.Operator]:(l,c)=>this.evalOperator(l,c),[t.ExpressionType.SpecialOperator]:(l,c)=>this.evalSpecialOperator(l,c),[t.ExpressionType.Named]:(l,c)=>this.evalNamed(l,c),[t.ExpressionType.Existence]:(l,c)=>this.evalExistence(l,c),[t.ExpressionType.Aggregate]:(l,c)=>this.evalAggregate(l),[t.ExpressionType.SyncExtension]:(l,c)=>this.evalSyncExtension(l,c)}}evaluate(a,o){const l=this.subEvaluators[a.expressionType];if(!l)throw new u.InvalidExpressionType(a);return l.bind(this)(a,o)}evalOperator(a,o){const l=a.args.map(c=>this.evaluate(c,o));return a.apply(l)}evalSpecialOperator(a,o){const l=this.evaluate.bind(this),c={args:a.args,mapping:o,superTypeProvider:this.context.superTypeProvider,now:this.context.now,baseIRI:this.context.baseIRI,functionArgumentsCache:this.context.functionArgumentsCache,evaluate:l,bnode:this.context.bnode,defaultTimeZone:this.context.defaultTimeZone};return a.applySynchronously(c)}evalNamed(a,o){const l=a.args.map(c=>this.evaluate(c,o));return a.apply(l)}evalSyncExtension(a,o){const l=a.args.map(c=>this.evaluate(c,o));return a.apply(l)}evalExistence(a,o){if(!this.context.exists)throw new u.NoExistenceHook;return new t.BooleanLiteral(this.context.exists(a.expression,o))}evalAggregate(a){if(!this.context.aggregate)throw new u.NoAggregator;return this.termTransformer.transformRDFTermUnsafe(this.context.aggregate(a.expression))}};return wp.SyncRecursiveEvaluator=n,wp}var Uj;function eB(){if(Uj)return vp;Uj=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.SyncEvaluator=void 0;const t=is(),e=J7(),u=ou(),s=mee();let n=class Z7{static completeContext(a){const o=a.now??new Date(Date.now());return{now:o,baseIRI:a.baseIRI??void 0,functionArgumentsCache:a.functionArgumentsCache??{},superTypeProvider:{cache:a.typeCache??new t.LRUCache({max:1e3}),discoverer:a.getSuperType??(()=>"term")},extensionFunctionCreator:a.extensionFunctionCreator,exists:a.exists,aggregate:a.aggregate,bnode:a.bnode,defaultTimeZone:a.defaultTimeZone??(0,u.extractTimeZone)(o)}}constructor(a,o={}){this.algExpr=a,this.context=o;const l=o.extensionFunctionCreator??(()=>{}),c=Z7.completeContext(o),d=new e.AlgebraTransformer({type:"sync",creator:l,...c});this.expr=d.transformAlgebra(a),this.evaluator=new s.SyncRecursiveEvaluator(c,d)}evaluate(a){return this.evaluator.evaluate(this.expr,a).toRDF()}evaluateAsEBV(a){return this.evaluator.evaluate(this.expr,a).coerceEBV()}evaluateAsInternal(a){return this.evaluator.evaluate(this.expr,a)}};return vp.SyncEvaluator=n,vp}var Sp={},Tp={},Ap={},Ep={},Is={},Hj;function ss(){if(Hj)return Is;Hj=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.Aggregator=Is.AggregatorComponent=void 0;const t=er(),e=ro(),u=Cn(),s=Wb();class n{static emptyValue(){}constructor(o,l){this.sharedContext=l,this.separator=o.separator||" ",this.termTransformer=new e.TermTransformer(l.superTypeProvider)}termToNumericOrError(o){if(o.termType!=="Literal")throw new Error(`Term with value ${o.value} has type ${o.termType} and is not a numeric literal`);if(!(0,s.isSubTypeOf)(o.datatype.value,u.TypeAlias.SPARQL_NUMERIC,this.sharedContext.superTypeProvider))throw new Error(`Term datatype ${o.datatype.value} with value ${o.value} has type ${o.termType} and is not a numeric literal`);return this.termTransformer.transformLiteral(o)}}Is.AggregatorComponent=n;let r=class{constructor(o,l){this.aggregatorComponent=l,this.variableValues=new Map,this.distinct=o.distinct}static emptyValue(o){return o.emptyValue()}result(){return this.aggregatorComponent.result()}put(o,l=""){this.canSkip(o,l)||(this.aggregatorComponent.put(o),this.addSeen(o,l))}canSkip(o,l){const c=this.variableValues.get(l);return this.distinct&&c!==void 0&&c.has(t.termToString(o))}addSeen(o,l){this.distinct&&(this.variableValues.has(l)||this.variableValues.set(l,new Set),this.variableValues.get(l).add(t.termToString(o)))}};return Is.Aggregator=r,Is}var $j;function _ee(){if($j)return Ep;$j=1,Object.defineProperty(Ep,"__esModule",{value:!0}),Ep.Average=void 0;const t=Kn(),e=uu(),u=Yi(),s=Cn(),n=ss();let r=class tB extends n.AggregatorComponent{constructor(){super(...arguments),this.summer=e.regularFunctions[s.RegularOperator.ADDITION],this.divider=e.regularFunctions[s.RegularOperator.DIVISION],this.state=void 0}static emptyValue(){return(0,u.integer)(0).toRDF()}put(o){if(this.state===void 0){const l=this.termToNumericOrError(o);this.state={sum:l,count:1}}else{const l=this.termToNumericOrError(o);this.state.sum=this.summer.apply([this.state.sum,l],this.sharedContext),this.state.count++}}result(){if(this.state===void 0)return tB.emptyValue();const o=new t.IntegerLiteral(this.state.count);return this.divider.apply([this.state.sum,o],this.sharedContext).toRDF()}};return Ep.Average=r,Ep}var Op={},Qj;function vee(){if(Qj)return Op;Qj=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.Count=void 0;const t=Yi(),e=ss();let u=class rB extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}static emptyValue(){return(0,t.integer)(0).toRDF()}put(){this.state===void 0&&(this.state=0),this.state++}result(){return this.state===void 0?rB.emptyValue():(0,t.integer)(this.state).toRDF()}};return Op.Count=u,Op}var Rp={},Vj;function wee(){if(Vj)return Rp;Vj=1,Object.defineProperty(Rp,"__esModule",{value:!0}),Rp.GroupConcat=void 0;const t=Yi(),e=ss();let u=class nB extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.lastLanguageValid=!0,this.lastLanguage=void 0}static emptyValue(){return(0,t.string)("").toRDF()}put(n){this.state===void 0?(this.state=n.value,n.termType==="Literal"&&(this.lastLanguage=n.language)):(this.state+=this.separator+n.value,this.lastLanguageValid&&n.termType==="Literal"&&this.lastLanguage!==n.language&&(this.lastLanguageValid=!1,this.lastLanguage=void 0))}result(){return this.state===void 0?nB.emptyValue():this.lastLanguageValid&&this.lastLanguage?(0,t.langString)(this.state,this.lastLanguage).toRDF():(0,t.string)(this.state).toRDF()}};return Rp.GroupConcat=u,Rp}var xp={},kj;function See(){if(kj)return xp;kj=1,Object.defineProperty(xp,"__esModule",{value:!0}),xp.Max=void 0;const t=Kb(),e=ss();let u=class iB extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(n){if(n.termType!=="Literal")throw new Error(`Term with value ${n.value} has type ${n.termType} and is not a literal`);this.state===void 0?this.state=n:(0,t.orderTypes)(this.state,n)===-1&&(this.state=n)}result(){return this.state===void 0?iB.emptyValue():this.state}};return xp.Max=u,xp}var Ip={},zj;function Tee(){if(zj)return Ip;zj=1,Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.Min=void 0;const t=Kb(),e=ss();let u=class aB extends e.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(n){if(n.termType!=="Literal")throw new Error(`Term with value ${n.value} has type ${n.termType} and is not a literal`);this.state===void 0?this.state=n:(0,t.orderTypes)(this.state,n)===1&&(this.state=n)}result(){return this.state===void 0?aB.emptyValue():this.state}};return Ip.Min=u,Ip}var Pp={},Gj;function Aee(){if(Gj)return Pp;Gj=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.Sample=void 0;const t=ss();let e=class sB extends t.AggregatorComponent{constructor(){super(...arguments),this.state=void 0}put(s){this.state===void 0&&(this.state=s)}result(){return this.state===void 0?sB.emptyValue():this.state}};return Pp.Sample=e,Pp}var Dp={},Wj;function Eee(){if(Wj)return Dp;Wj=1,Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.Sum=void 0;const t=uu(),e=Yi(),u=Cn(),s=ss();let n=class oB extends s.AggregatorComponent{constructor(){super(...arguments),this.state=void 0,this.summer=t.regularFunctions[u.RegularOperator.ADDITION]}static emptyValue(){return(0,e.integer)(0).toRDF()}put(a){if(this.state===void 0)this.state=this.termToNumericOrError(a);else{const o=this.termToNumericOrError(a);this.state=this.summer.apply([this.state,o],this.sharedContext)}}result(){return this.state===void 0?oB.emptyValue():this.state.toRDF()}};return Dp.Sum=n,Dp}var Jj;function Oee(){if(Jj)return Ap;Jj=1,Object.defineProperty(Ap,"__esModule",{value:!0}),Ap.aggregators=void 0;const t=_ee(),e=vee(),u=wee(),s=See(),n=Tee(),r=Aee(),a=Eee();return Ap.aggregators={count:e.Count,sum:a.Sum,min:n.Min,max:s.Max,avg:t.Average,group_concat:u.GroupConcat,sample:r.Sample},Ap}var Np={},Xj;function Ree(){if(Xj)return Np;Xj=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.WildcardCountAggregator=void 0;const t=er(),e=Yi();let u=class{constructor(n){this.bindingValues=new Map,this.counter=0,this.distinct=n.distinct}putBindings(n){this.handleDistinct(n)||(this.counter+=1)}static emptyValue(){return(0,e.integer)(0).toRDF()}result(){return(0,e.integer)(this.counter).toRDF()}handleDistinct(n){if(this.distinct){const r=[...n];r.sort((d,h)=>d[0].value.localeCompare(h[0].value));const a=r.map(([d])=>d.value).join(","),o=r.map(([,d])=>t.termToString(d)).join(","),l=this.bindingValues.get(a),c=l!==void 0&&l.has(o);return l||this.bindingValues.set(a,new Set),this.bindingValues.get(a).add(o),c}return!1}};return Np.WildcardCountAggregator=u,Np}var Kj;function uB(){if(Kj)return Tp;Kj=1,Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.BaseAggregateEvaluator=void 0;const t=Ot(),e=Oee(),u=ss(),s=Ree(),n=on();let r=class{constructor(o,l,c){this.throwError=!1,this.isWildcard=!1,this.errorOccurred=!1,this.expression=o,this.aggregator=new u.Aggregator(o,new e.aggregators[o.aggregator](o,l)),this.throwError=c??!1,this.isWildcard=o.expression.expressionType===t.Algebra.expressionTypes.WILDCARD,this.isWildcard&&(this.wildcardAggregator=new s.WildcardCountAggregator(o))}static emptyValue(o,l=!1){let c;if(o.expression.expressionType===t.Algebra.expressionTypes.WILDCARD?c=s.WildcardCountAggregator.emptyValue():c=u.Aggregator.emptyValue(e.aggregators[o.aggregator]),c===void 0&&l)throw new n.EmptyAggregateError;return c}result(){if(!this.errorOccurred)return this.isWildcard?this.wildcardAggregator.result():this.aggregator.result()}};return Tp.BaseAggregateEvaluator=r,Tp}var Yj;function xee(){if(Yj)return Sp;Yj=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.AggregateEvaluator=void 0;const t=uB(),e=eB();let u=class extends t.BaseAggregateEvaluator{constructor(n,r,a){super(n,e.SyncEvaluator.completeContext(r??{}),a),this.evaluator=new e.SyncEvaluator(n.expression,r)}put(n){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(n);else try{const r=this.evaluator.evaluate(n);this.aggregator.put(r)}catch(r){this.safeThrow(r)}}safeThrow(n){if(this.throwError)throw n;this.errorOccurred=!0}};return Sp.AggregateEvaluator=u,Sp}var Cp={},Zj;function Iee(){if(Zj)return Cp;Zj=1,Object.defineProperty(Cp,"__esModule",{value:!0}),Cp.AsyncAggregateEvaluator=void 0;const t=Y7(),e=uB();let u=class extends e.BaseAggregateEvaluator{constructor(n,r,a){super(n,t.AsyncEvaluator.completeContext(r??{}),a),this.evaluator=new t.AsyncEvaluator(n.expression,r),this.errorOccurred=!1}async put(n){if(!this.errorOccurred)if(this.isWildcard)this.wildcardAggregator.putBindings(n);else try{const r=await this.evaluator.evaluate(n);if(!r||this.errorOccurred)return;this.aggregator.put(r)}catch(r){this.safeThrow(r)}}safeThrow(n){if(this.throwError)throw n;this.errorOccurred=!0}};return Cp.AsyncAggregateEvaluator=u,Cp}var eL;function cu(){return eL||(eL=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAggregateEvaluator=t.orderTypes=t.isExpressionError=t.ExpressionError=t.AggregateEvaluator=t.SyncEvaluator=t.AsyncEvaluator=void 0;var e=Y7();Object.defineProperty(t,"AsyncEvaluator",{enumerable:!0,get:function(){return e.AsyncEvaluator}});var u=eB();Object.defineProperty(t,"SyncEvaluator",{enumerable:!0,get:function(){return u.SyncEvaluator}});var s=xee();Object.defineProperty(t,"AggregateEvaluator",{enumerable:!0,get:function(){return s.AggregateEvaluator}});var n=on();Object.defineProperty(t,"ExpressionError",{enumerable:!0,get:function(){return n.ExpressionError}}),Object.defineProperty(t,"isExpressionError",{enumerable:!0,get:function(){return n.isExpressionError}});var r=Kb();Object.defineProperty(t,"orderTypes",{enumerable:!0,get:function(){return r.orderTypes}});var a=Iee();Object.defineProperty(t,"AsyncAggregateEvaluator",{enumerable:!0,get:function(){return a.AsyncAggregateEvaluator}})}(Gw)),Gw}var tL;function Pee(){if(tL)return Qh;tL=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.ActorQueryOperationExtend=void 0;const t=xr(),e=wt(),u=cu();let s=class extends e.ActorQueryOperationTypedMediated{constructor(r){super(r,"extend")}async testOperation(r,a){const o=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a);return new u.AsyncEvaluator(r.expression,e.ActorQueryOperation.getAsyncExpressionContext(a,this.mediatorQueryOperation,o)),!0}async runOperation(r,a){const{expression:o,input:l,variable:c}=r,d=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:l,context:a}));if((await d.metadata()).variables.some(m=>m.equals(c)))throw new Error(`Illegal binding to variable '${c.value}' that has already been bound`);const h=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a),f={...e.ActorQueryOperation.getAsyncExpressionContext(a,this.mediatorQueryOperation,h)},p=new u.AsyncEvaluator(o,f),y=async(m,g,v)=>{try{const _=await p.evaluate(m),w=m.set(c,_);v(w)}catch(_){(0,u.isExpressionError)(_)?(v(m),this.logWarn(a,`Expression error for extend operation (${_.message})with bindings '${(0,t.bindingsToString)(m)}'`)):b.emit("error",_)}g()},b=d.bindingsStream.transform({autoStart:!1,transform:y});return{type:"bindings",bindingsStream:b,async metadata(){const m=await d.metadata();return{...m,variables:[...m.variables,c]}}}}};return Qh.ActorQueryOperationExtend=s,Qh}var rL;function Dee(){return rL||(rL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Pee(),t)}(zw)),zw}var tS={},jp={},nL;function Nee(){if(nL)return jp;nL=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.ActorQueryOperationFilter=void 0;const t=xr(),e=wt(),u=cu();let s=class extends e.ActorQueryOperationTypedMediated{constructor(r){super(r,"filter")}async testOperation(r,a){const o=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a),l={...e.ActorQueryOperation.getAsyncExpressionContext(a,this.mediatorQueryOperation,o)};return new u.AsyncEvaluator(r.expression,l),!0}async runOperation(r,a){const o=await this.mediatorQueryOperation.mediate({operation:r.input,context:a}),l=e.ActorQueryOperation.getSafeBindings(o);e.ActorQueryOperation.validateQueryOutput(l,"bindings");const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a),d={...e.ActorQueryOperation.getAsyncExpressionContext(a,this.mediatorQueryOperation,c)},h=new u.AsyncEvaluator(r.expression,d),f=async(y,b,m)=>{try{await h.evaluateAsEBV(y)&&m(y)}catch(g){(0,u.isExpressionError)(g)?this.logWarn(a,"Error occurred while filtering.",()=>({error:g,bindings:(0,t.bindingsToString)(y)})):p.emit("error",g)}b()},p=l.bindingsStream.transform({transform:f,autoStart:!1});return{type:"bindings",bindingsStream:p,metadata:l.metadata}}};return jp.ActorQueryOperationFilter=s,jp}var iL;function Cee(){return iL||(iL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Nee(),t)}(tS)),tS}var rS={},Lp={},Mp={},aL;function jee(){if(aL)return Mp;aL=1,Object.defineProperty(Mp,"__esModule",{value:!0}),Mp.GroupsState=void 0;const t=cu(),e=Et(),u=new e.DataFactory;let s=class{constructor(r,a,o,l){this.hashFunction=r,this.pattern=a,this.sparqleeConfig=o,this.bindingsFactory=l,this.groups=new Map,this.groupsInitializer=new Map,this.groupVariables=new Set(this.pattern.variables.map(c=>c.value)),this.waitCounter=1,this.resultHasBeenCalled=!1}consumeBindings(r){const a=this.resultCheck();if(a)return a;this.waitCounter++;const o=r.filter((h,f)=>this.groupVariables.has(f.value)),l=this.hashBindings(o);let c=this.groupsInitializer.get(l),d;if(c){const h=c;d=(async()=>{const f=await h;await Promise.all(this.pattern.aggregates.map(async p=>{const y=p.variable.value;await f.aggregators[y].put(r)}))})().then(async()=>{this.subtractWaitCounterAndCollect()})}else c=(async()=>{const h={};await Promise.all(this.pattern.aggregates.map(async p=>{const y=p.variable.value;h[y]=new t.AsyncAggregateEvaluator(p,this.sparqleeConfig),await h[y].put(r)}));const f={aggregators:h,bindings:o};return this.groups.set(l,f),this.subtractWaitCounterAndCollect(),f})(),this.groupsInitializer.set(l,c),d=c;return d}subtractWaitCounterAndCollect(){--this.waitCounter===0&&this.handleResultCollection()}handleResultCollection(){let r=[...this.groups].map(([a,o])=>{const{bindings:l,aggregators:c}=o;let d=l;for(const h in c){const f=c[h].result();f&&(d=d.set(u.variable(h),f))}return d});if(r.length===0&&this.groupVariables.size===0){const a=[];for(const o of this.pattern.aggregates){const l=o.variable,c=t.AsyncAggregateEvaluator.emptyValue(o);c!==void 0&&a.push([l,c])}r=[this.bindingsFactory.bindings(a)]}this.waitResolver(r)}resultCheck(){if(this.resultHasBeenCalled)return Promise.reject(new Error("Calling any function after calling collectResult is invalid."))}collectResults(){const r=this.resultCheck();if(r)return r;this.resultHasBeenCalled=!0;const a=new Promise(o=>{this.waitResolver=o});return this.subtractWaitCounterAndCollect(),a}hashBindings(r){return this.hashFunction(r)}};return Mp.GroupsState=s,Mp}var sL;function Lee(){if(sL)return Lp;sL=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.ActorQueryOperationGroup=void 0;const t=xr(),e=wt(),u=cu(),s=Nt(),n=jee();let r=class extends e.ActorQueryOperationTypedMediated{constructor(o){super(o,"group")}async testOperation(o,l){const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l);for(const d of o.aggregates)new u.AsyncEvaluator(d.expression,e.ActorQueryOperation.getAsyncExpressionContext(l,this.mediatorQueryOperation,c));return!0}async runOperation(o,l){const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l),{hashFunction:d}=await this.mediatorHashBindings.mediate({allowHashCollisions:!0,context:l}),{input:h,aggregates:f}=o,p=await this.mediatorQueryOperation.mediate({operation:h,context:l}),y=e.ActorQueryOperation.getSafeBindings(p),b=[...o.variables,...f.map(v=>v.variable)],m=e.ActorQueryOperation.getAsyncExpressionContext(l,this.mediatorQueryOperation,c);return{type:"bindings",bindingsStream:new s.TransformIterator(()=>new Promise((v,_)=>{const w=new n.GroupsState(d,o,m,c);y.bindingsStream.on("end",async()=>{try{const S=new s.ArrayIterator(await w.collectResults(),{autoStart:!1});v(S)}catch(S){_(S)}}),y.bindingsStream.on("error",_),y.bindingsStream.on("data",S=>{w.consumeBindings(S).catch(_)})}),{autoStart:!1}),metadata:async()=>({...await y.metadata(),variables:b})}}};return Lp.ActorQueryOperationGroup=r,Lp}var oL;function Mee(){return oL||(oL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Lee(),t)}(rS)),rS}var nS={},Fp={},uL;function Fee(){if(uL)return Fp;uL=1,Object.defineProperty(Fp,"__esModule",{value:!0}),Fp.ActorQueryOperationLeftJoin=void 0;const t=xr(),e=wt(),u=cu();let s=class extends e.ActorQueryOperationTypedMediated{constructor(r){super(r,"leftjoin")}async testOperation(r,a){return!0}async runOperation(r,a){const o=(await Promise.all(r.input.map(async c=>({output:await this.mediatorQueryOperation.mediate({operation:c,context:a}),operation:c})))).map(({output:c,operation:d})=>({output:e.ActorQueryOperation.getSafeBindings(c),operation:d})),l=await this.mediatorJoin.mediate({type:"optional",entries:o,context:a});if(r.expression){const d=(await o[1].output.metadata()).variables,h=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a),f={...e.ActorQueryOperation.getAsyncExpressionContext(a,this.mediatorQueryOperation,h)},p=new u.AsyncEvaluator(r.expression,f),y=l.bindingsStream.transform({autoStart:!1,transform:async(b,m,g)=>{if(!d.every(v=>b.has(v.value)))return g(b),m();try{await p.evaluateAsEBV(b)&&g(b)}catch(v){(0,u.isExpressionError)(v)?this.logWarn(a,"Error occurred while filtering.",()=>({error:v,bindings:b})):y.emit("error",v)}m()}});l.bindingsStream=y}return l}};return Fp.ActorQueryOperationLeftJoin=s,Fp}var cL;function qee(){return cL||(cL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Fee(),t)}(nS)),nS}var iS={},qp={},lL;function Bee(){if(lL)return qp;lL=1,Object.defineProperty(qp,"__esModule",{value:!0}),qp.ActorQueryOperationNop=void 0;const t=xr(),e=wt(),u=jn(),s=Nt();let n=class extends e.ActorQueryOperationTypedMediated{constructor(a){super(a,"nop")}async testOperation(a,o){return!0}async runOperation(a,o){const l=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o);return{bindingsStream:new s.SingletonIterator(l.bindings()),metadata:()=>Promise.resolve({state:new u.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}};return qp.ActorQueryOperationNop=n,qp}var dL;function Uee(){return dL||(dL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Bee(),t)}(iS)),iS}var aS={},Bp={},Up={},fL;function Hee(){if(fL)return Up;fL=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.SortIterator=void 0;const t=Nt();let e=class extends t.TransformIterator{constructor(s,n,r){super(s,r);const a=r&&r.window;this.windowLength=Number.isFinite(a)&&a>0?a:Number.POSITIVE_INFINITY,this.sort=n,this.sorted=[]}_read(s,n){let r,{length:a}=this.sorted;for(;a!==this.windowLength&&(r=this.source.read(),r!==null);){let o=0,l=a-1,c,d;for(;o<=l;)c=Math.trunc((o+l)/2),d=this.sort(r,this.sorted[c]),d<0?o=c+1:d>0?l=c-1:(o=c,l=-1);this.sorted.splice(o,0,r),a++}a===this.windowLength&&this._push(this.sorted.pop()),n()}_flush(s){let{length:n}=this.sorted;for(;n--;)this._push(this.sorted.pop());s()}};return Up.SortIterator=e,Up}var hL;function $ee(){if(hL)return Bp;hL=1,Object.defineProperty(Bp,"__esModule",{value:!0}),Bp.ActorQueryOperationOrderBy=void 0;const t=xr(),e=wt(),u=cu(),s=Ot(),n=Hee();let r=class extends e.ActorQueryOperationTypedMediated{constructor(o){super(o,"orderby"),this.window=o.window??Number.POSITIVE_INFINITY}async testOperation(o,l){const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l);for(let d of o.expressions)d=this.extractSortExpression(d),new u.AsyncEvaluator(d,e.ActorQueryOperation.getAsyncExpressionContext(l,this.mediatorQueryOperation,c));return!0}async runOperation(o,l){const c=await this.mediatorQueryOperation.mediate({operation:o.input,context:l}),d=e.ActorQueryOperation.getSafeBindings(c),h={window:this.window},f=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l),p={...e.ActorQueryOperation.getAsyncExpressionContext(l,this.mediatorQueryOperation,f)};let{bindingsStream:y}=d;for(let b=o.expressions.length-1;b>=0;b--){let m=o.expressions[b];const g=this.isAscending(m);m=this.extractSortExpression(m);const v=new u.AsyncEvaluator(m,p),_=async(A,D,L)=>{try{const E=await v.evaluate(A);L({bindings:A,result:E})}catch(E){(0,u.isExpressionError)(E)||y.emit("error",E),L({bindings:A,result:void 0})}D()},w=y.transform({transform:_});y=new n.SortIterator(w,(A,D)=>{let L=(0,u.orderTypes)(A.result,D.result);return g||(L*=-1),L},h).map(({bindings:A})=>A)}return{type:"bindings",bindingsStream:y,metadata:d.metadata}}extractSortExpression(o){const{expressionType:l,operator:c}=o;return l!==s.Algebra.expressionTypes.OPERATOR?o:c==="desc"?o.args[0]:o}isAscending(o){const{expressionType:l,operator:c}=o;return l!==s.Algebra.expressionTypes.OPERATOR?!0:c!=="desc"}};return Bp.ActorQueryOperationOrderBy=r,Bp}var pL;function Qee(){return pL||(pL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u($ee(),t)}(aS)),aS}var sS={},Hp={},yL;function Vee(){if(yL)return Hp;yL=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.ActorQueryOperationService=void 0;const t=xr(),e=wt(),u=jn(),s=Nt();let n=class extends e.ActorQueryOperationTypedMediated{constructor(a){super(a,"service")}async testOperation(a,o){if(a.name.termType!=="NamedNode")throw new Error(`${this.name} can only query services by IRI, while a ${a.name.termType} was given.`);return!0}async runOperation(a,o){const{querySource:l}=await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{value:a.name.value,type:this.forceSparqlEndpoint?"sparql":void 0},context:o});let c;try{c=e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.ActorQueryOperation.assignOperationSource(a.input,l),context:o}))}catch(d){if(a.silent){const h=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o);c={bindingsStream:new s.SingletonIterator(h.bindings()),type:"bindings",metadata:async()=>({state:new u.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})},this.logWarn(o,`An error occurred when executing a SERVICE clause: ${d.message}`)}else throw d}return c}};return Hp.ActorQueryOperationService=n,Hp}var bL;function kee(){return bL||(bL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Vee(),t)}(sS)),sS}var oS={},$p={},gL;function zee(){if(gL)return $p;gL=1,Object.defineProperty($p,"__esModule",{value:!0}),$p.ActorQueryOperationValues=void 0;const t=xr(),e=wt(),u=jn(),s=Nt(),n=Et(),r=new n.DataFactory;let a=class extends e.ActorQueryOperationTyped{constructor(l){super(l,"values")}async testOperation(l,c){return!0}async runOperation(l,c){const d=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,c),h=new s.ArrayIterator(l.bindings.map(y=>d.bindings(Object.entries(y).map(([b,m])=>[r.variable(b.slice(1)),m])))),f=l.variables;return{type:"bindings",bindingsStream:h,metadata:()=>Promise.resolve({state:new u.MetadataValidationState,cardinality:{type:"exact",value:l.bindings.length},canContainUndefs:l.bindings.some(y=>f.some(b=>!(`?${b.value}`in y))),variables:f})}}};return $p.ActorQueryOperationValues=a,$p}var mL;function Gee(){return mL||(mL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(zee(),t)}(oS)),oS}var uS={},Qp={},_L;function Wee(){if(_L)return Qp;_L=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.ActorQueryOperationPathOneOrMore=void 0;const t=as(),e=xr(),u=wt(),s=Nt(),n=Ot();let r=class extends t.ActorAbstractPath{constructor(o){super(o,n.Algebra.types.ONE_OR_MORE_PATH)}async runOperation(o,l){const c=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,l),d=await this.isPathArbitraryLengthDistinct(l,o);if(d.operation)return d.operation;l=d.context;const h=o.predicate;if(o.subject.termType!=="Variable"&&o.object.termType==="Variable"){const b=o.object,m=await this.getObjectsPredicateStarEval(o.subject,h.path,b,o.graph,l,!1,c),g=o.graph.termType==="Variable"?[b,o.graph]:[b];return{type:"bindings",bindingsStream:m.bindingsStream,metadata:async()=>({...await m.metadata(),variables:g})}}if(o.subject.termType==="Variable"&&o.object.termType==="Variable"){const b=t.ActorAbstractPath.FACTORY.createDistinct(t.ActorAbstractPath.FACTORY.createPath(o.subject,o.predicate.path,o.object,o.graph)),m=u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:b})),g=o.subject,v=o.object,_={},w=new s.MultiTransformIterator(m.bindingsStream,{multiTransform:A=>{const D=A.get(g),L=A.get(v),E=o.graph.termType==="Variable"?A.get(o.graph):o.graph;return new s.TransformIterator(async()=>{const O=new s.BufferedIterator;return await this.getSubjectAndObjectBindingsPredicateStar(g,v,D,L,h.path,E,l,_,{},O,{count:0},c),O.transform({transform(P,j,U){o.graph.termType==="Variable"&&(P=P.set(o.graph,E)),U(P),j()}})},{maxBufferSize:128})},autoStart:!1}),S=o.graph.termType==="Variable"?[g,v,o.graph]:[g,v];return{type:"bindings",bindingsStream:w,metadata:async()=>({...await m.metadata(),variables:S})}}if(o.subject.termType==="Variable"&&o.object.termType!=="Variable")return this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createPath(o.object,t.ActorAbstractPath.FACTORY.createOneOrMorePath(t.ActorAbstractPath.FACTORY.createInv(h.path)),o.subject,o.graph)});const f=this.generateVariable(),p=u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:l,operation:t.ActorAbstractPath.FACTORY.createPath(o.subject,h,f,o.graph)}));return{type:"bindings",bindingsStream:p.bindingsStream.transform({filter:b=>o.object.equals(b.get(f)),transform(b,m,g){const v=o.graph.termType==="Variable"?c.bindings([[o.graph,b.get(o.graph)]]):c.bindings();g(v),m()}}),metadata:async()=>({...await p.metadata(),variables:o.graph.termType==="Variable"?[o.graph]:[]})}}};return Qp.ActorQueryOperationPathOneOrMore=r,Qp}var vL;function Jee(){return vL||(vL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Wee(),t)}(uS)),uS}var cS={},Vp={},wL;function Xee(){if(wL)return Vp;wL=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.ActorQueryOperationPathZeroOrMore=void 0;const t=as(),e=xr(),u=wt(),s=Nt(),n=er(),r=Ot();let a=class extends t.ActorAbstractPath{constructor(l){super(l,r.Algebra.types.ZERO_OR_MORE_PATH)}async runOperation(l,c){const d=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,c),h=await this.isPathArbitraryLengthDistinct(c,l);if(h.operation)return h.operation;c=h.context;const f=l.predicate,p=this.getPathSources(f),y=l.subject.termType==="Variable",b=l.object.termType==="Variable";if(l.subject.termType==="Variable"&&l.object.termType==="Variable"){const S=this.generateVariable(l),A=this.assignPatternSources(t.ActorAbstractPath.FACTORY.createPattern(l.subject,S,l.object,l.graph),p),D=u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:A})),L=l.subject,E=l.object,O=new Set,P={},j=new s.MultiTransformIterator(D.bindingsStream,{multiTransform:M=>{const q=M.get(L),Q=M.get(E),Z=l.graph.termType==="Variable"?M.get(l.graph):l.graph,K=(0,n.termToString)(q)+(0,n.termToString)(Z),fe=(0,n.termToString)(Q)+(0,n.termToString)(Z);return new s.TransformIterator(async()=>{if(O.has(K)&&O.has(fe))return new s.EmptyIterator;const X=new s.BufferedIterator,he={count:0};return O.has(K)||(O.add(K),await this.getSubjectAndObjectBindingsPredicateStar(L,E,q,q,f.path,Z,c,P,{},X,he,d)),O.has(fe)||(O.add(fe),await this.getSubjectAndObjectBindingsPredicateStar(L,E,Q,Q,f.path,Z,c,P,{},X,he,d)),X.transform({transform(xe,ie,ae){l.graph.termType==="Variable"&&(xe=xe.set(l.graph,Z)),ae(xe),ie()}})})}}),U=l.graph.termType==="Variable"?[L,l.object,l.graph]:[L,l.object];return{type:"bindings",bindingsStream:j,metadata:async()=>({...await D.metadata(),variables:U})}}if(!y&&!b){const S=this.generateVariable(),A=await this.getObjectsPredicateStarEval(l.subject,f.path,S,l.graph,c,!0,d);return{type:"bindings",bindingsStream:A.bindingsStream.transform({filter:L=>l.object.equals(L.get(S)),transform(L,E,O){const P=l.graph.termType==="Variable"?d.bindings([[l.graph,L.get(l.graph)]]):d.bindings();O(P),E()}}),metadata:async()=>({...await A.metadata(),variables:l.graph.termType==="Variable"?[l.graph]:[]})}}const m=y?l.object:l.subject,g=y?l.subject:l.object,v=y?t.ActorAbstractPath.FACTORY.createInv(f.path):f.path,_=await this.getObjectsPredicateStarEval(m,v,g,l.graph,c,!0,d),w=l.graph.termType==="Variable"?[g,l.graph]:[g];return{type:"bindings",bindingsStream:_.bindingsStream,metadata:async()=>({...await _.metadata(),variables:w})}}};return Vp.ActorQueryOperationPathZeroOrMore=a,Vp}var SL;function Kee(){return SL||(SL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Xee(),t)}(cS)),cS}var lS={},kp={},TL;function Yee(){if(TL)return kp;TL=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.ActorQueryOperationPathZeroOrOne=void 0;const t=as(),e=xr(),u=wt(),s=jn(),n=Nt(),r=Ot();let a=class extends t.ActorAbstractPath{constructor(l){super(l,r.Algebra.types.ZERO_OR_ONE_PATH)}async runOperation(l,c){const d=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,c),h=l.predicate,f=this.getPathSources(h),p=[];if(l.subject.termType!=="Variable"&&l.object.termType!=="Variable"&&l.subject.equals(l.object))return{type:"bindings",bindingsStream:new n.SingletonIterator(d.bindings()),metadata:()=>Promise.resolve({state:new s.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]})};const y=await this.isPathArbitraryLengthDistinct(c,l);if(y.operation)return y.operation;c=y.context;const b=u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createPath(l.subject,h.path,l.object,l.graph)}));let m;if(l.subject.termType==="Variable"&&l.object.termType==="Variable"){const g=this.generateVariable(l),v=u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:c,operation:t.ActorAbstractPath.FACTORY.createFilter(this.assignPatternSources(t.ActorAbstractPath.FACTORY.createPattern(l.subject,g,l.object,l.graph),f),t.ActorAbstractPath.FACTORY.createOperatorExpression("=",[t.ActorAbstractPath.FACTORY.createTermExpression(l.subject),t.ActorAbstractPath.FACTORY.createTermExpression(l.object)]))})).bindingsStream.map(_=>_.delete(g));m=new n.UnionIterator([v,b.bindingsStream],{autoStart:!1})}else l.subject.termType==="Variable"&&p.push(d.bindings([[l.subject,l.object]])),l.object.termType==="Variable"&&p.push(d.bindings([[l.object,l.subject]])),m=b.bindingsStream.prepend(p);return{type:"bindings",bindingsStream:m,metadata:b.metadata}}};return kp.ActorQueryOperationPathZeroOrOne=a,kp}var AL;function Zee(){return AL||(AL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Yee(),t)}(lS)),lS}var dS={},zp={},EL;function ete(){if(EL)return zp;EL=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.ActorQueryOperationUpdateDeleteInsert=void 0;const t=v7(),e=xr(),u=wt(),s=Nt();let n=class extends u.ActorQueryOperationTypedMediated{constructor(a){super(a,"deleteinsert"),this.blankNodeCounter=0}async testOperation(a,o){return u.ActorQueryOperation.throwOnReadOnly(o),!0}async runOperation(a,o){const l=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,o),c=a.where?u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:a.where,context:o})).bindingsStream:new s.ArrayIterator([l.bindings()],{autoStart:!1});let d,h;a.insert&&(d=new t.BindingsToQuadsIterator(a.insert.map(t.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),c.clone()),this.blankNodeCounter++),a.delete&&(h=new t.BindingsToQuadsIterator(a.delete.map(t.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),c.clone()),this.blankNodeCounter++);const{execute:f}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:d,quadStreamDelete:h,context:o});return{type:"void",execute:f}}};return zp.ActorQueryOperationUpdateDeleteInsert=n,zp}var OL;function tte(){return OL||(OL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(ete(),t)}(dS)),dS}var fS={},Gp={},hS={},Wp={},RL;function rte(){if(RL)return Wp;RL=1,Object.defineProperty(Wp,"__esModule",{value:!0}),Wp.ActorQueryProcess=void 0;const t=ot;let e=class extends t.Actor{constructor(s){super(s)}};return Wp.ActorQueryProcess=e,Wp}var xL;function Yb(){return xL||(xL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(rte(),t)}(hS)),hS}var IL;function nte(){if(IL)return Gp;IL=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.ActorQueryProcessSequential=void 0;const t=xr(),e=wt(),u=Yb(),s=Lt,n=ot;let r=class extends u.ActorQueryProcess{constructor(o){super(o)}async test(o){if(o.context.get(s.KeysInitQuery.explain)||o.context.get(new n.ActionContextKey("explain")))throw new Error(`${this.name} is not able to explain queries.`);return!0}async run(o){let{operation:l,context:c}=await this.parse(o.query,o.context);return{operation:l,context:c}=await this.optimize(l,c),{result:await this.evaluate(l,c)}}async parse(o,l){l=(await this.mediatorContextPreprocess.mediate({context:l,initialize:!0})).context;let c;if(typeof o=="string"){l=l.set(s.KeysInitQuery.queryString,o);const d=l.get(s.KeysInitQuery.baseIRI),h=l.get(s.KeysInitQuery.queryFormat),f=await this.mediatorQueryParse.mediate({context:l,query:o,queryFormat:h,baseIRI:d});c=f.operation,f.baseIRI&&(l=l.set(s.KeysInitQuery.baseIRI,f.baseIRI))}else c=o;if(l.has(s.KeysInitQuery.initialBindings)){const d=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l);c=(0,e.materializeOperation)(c,l.get(s.KeysInitQuery.initialBindings),d),l=l.delete(s.KeysInitQuery.queryString)}return{operation:c,context:l}}async optimize(o,l){return l=l.set(s.KeysInitQuery.query,o),{operation:o,context:l}=await this.mediatorOptimizeQueryOperation.mediate({context:l,operation:o}),l=l.set(s.KeysInitQuery.query,o),{operation:o,context:l}}async evaluate(o,l){const c=await this.mediatorQueryOperation.mediate({context:l,operation:o});return c.context=l,c}};return Gp.ActorQueryProcessSequential=r,Gp}var PL;function ite(){return PL||(PL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(nte(),t)}(fS)),fS}var pS={},Jp={},Xp={},Kp={},Yp={},DL;function ate(){if(DL)return Yp;DL=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.LinkedRdfSourcesAsyncRdfIterator=void 0;const t=jn(),e=Nt();let u=class extends e.BufferedIterator{constructor(n,r,a,o,l,c,d,h){if(super({autoStart:!1,...h}),this.started=!1,this.currentIterators=[],this.iteratorsPendingCreation=0,this.iteratorsPendingTermination=0,this.accumulatedMetadata=Promise.resolve(void 0),this._reading=!1,this.cacheSize=n,this.operation=r,this.queryBindingsOptions=a,this.context=o,this.firstUrl=l,this.maxIterators=c,this.sourceStateGetter=d,this.maxIterators<=0)throw new Error(`LinkedRdfSourcesAsyncRdfIterator.maxIterators must be larger than zero, but got ${this.maxIterators}`)}kickstart(){this.started||this._fillBufferAsync()}getProperty(n,r){return n==="metadata"&&!this.started&&(this.preflightMetadata||(this.preflightMetadata=new Promise((a,o)=>{this.sourceStateGetter({url:this.firstUrl},{}).then(l=>{const c=l.source.queryBindings(this.operation,this.context);c.getProperty("metadata",d=>{d.state=new t.MetadataValidationState,c.destroy(),this.accumulateMetadata(l.metadata,d).then(h=>{const f={...l.metadata,...d,...h};a(f)}).catch(()=>{a({...l.metadata,state:new t.MetadataValidationState})})})}).catch(o)})),this.preflightMetadata.then(a=>this.setProperty("metadata",a)).catch(()=>{})),super.getProperty(n,r)}_end(n){for(const r of this.currentIterators)r.destroy();super._end(n)}_read(n,r){if(this.started){for(const a of this.currentIterators){for(;n>0;){const o=a.read();if(o===null)break;n--,this._push(o)}if(n<=0)break}n>=0&&this.canStartNewIterator()?this.sourceStateGetter({url:this.firstUrl},{}).then(a=>{this.startIteratorsForNextUrls(a.handledDatasets,!1),r()}):r()}else this.started=!0,this.sourceStateGetter({url:this.firstUrl},{}).then(a=>{this.startIterator(a),r()}).catch(a=>setTimeout(()=>this.destroy(a)))}canStartNewIterator(){return this.currentIterators.length+this.iteratorsPendingCreation+this.iteratorsPendingTermination0}startIterator(n){try{const r=n.source.queryBindings(this.operation,this.context,this.queryBindingsOptions);this.currentIterators.push(r);let a=!1,o=!1;r._destination=this,r.on("error",l=>this.destroy(l)),r.on("readable",()=>this._fillBuffer()),r.on("end",()=>{this.currentIterators.splice(this.currentIterators.indexOf(r),1),a=!0,o||this.iteratorsPendingTermination++,o&&this.startIteratorsForNextUrls(n.handledDatasets,!0)}),r.getProperty("metadata",l=>{this.accumulatedMetadata=this.accumulatedMetadata.then(c=>(async()=>(c||(c=n.metadata),this.accumulateMetadata(c,l)))().then(d=>{const h={...n.metadata,...l,...d};return h.state=new t.MetadataValidationState,this.updateMetadata(h),this.preflightMetadata&&this.preflightMetadata.then(f=>f.state.invalidate()).catch(()=>{}),this.getSourceLinks(h).then(f=>Promise.all(f)).then(async f=>{const p=await this.getLinkQueue();for(const y of f)p.push(y,n.link);o=!0,a&&this.iteratorsPendingTermination--,this.startIteratorsForNextUrls(n.handledDatasets,!0)}).catch(f=>this.destroy(f)),h})).catch(c=>(this.destroy(c),{}))})}catch(r){this.destroy(r)}}updateMetadata(n){const r=this.getProperty("metadata");this.setProperty("metadata",n),r==null||r.state.invalidate()}isRunning(){return!this.done}startIteratorsForNextUrls(n,r){this.getLinkQueue().then(a=>{for(;this.canStartNewIterator()&&this.isRunning();){const o=a.pop();if(o)this.iteratorsPendingCreation++,this.sourceStateGetter(o,n).then(l=>{this.iteratorsPendingCreation--,this.startIterator(l)}).catch(l=>this.emit("error",l));else break}r&&this.isCloseable(a,!0)&&this.close()}).catch(a=>this.destroy(a))}isCloseable(n,r){return n.isEmpty()&&!this.areIteratorsRunning()}};return Yp.LinkedRdfSourcesAsyncRdfIterator=u,Yp}var NL;function ste(){if(NL)return Kp;NL=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.MediatedLinkedRdfSourcesAsyncRdfIterator=void 0;const t=Lt,e=Et(),u=Ot(),s=ate(),n=new e.DataFactory,r=new u.Factory;let a=class extends s.LinkedRdfSourcesAsyncRdfIterator{constructor(l,c,d,h,f,p,y,b,m,g,v,_){super(l,c,d,h,p,y,b,m?{maxBufferSize:Number.POSITIVE_INFINITY}:void 0),this.wasForcefullyClosed=!1,this.forceSourceType=f,this.mediatorMetadataAccumulate=g,this.mediatorRdfResolveHypermediaLinks=v,this.mediatorRdfResolveHypermediaLinksQueue=_,this.handledUrls={[p]:!0},this.aggregatedStore=m}close(){if(!this.aggregatedStore){super.close();return}this.getLinkQueue().then(l=>{this.isCloseable(l,!1)?(this.aggregatedStore&&setTimeout(()=>this.aggregatedStore.end()),super.close()):this.wasForcefullyClosed=!0}).catch(l=>super.destroy(l))}destroy(l){if(!this.aggregatedStore){super.destroy(l);return}this.getLinkQueue().then(c=>{l??this.isCloseable(c,!1)?(this.aggregatedStore&&setTimeout(()=>this.aggregatedStore.end()),super.destroy(l)):this.wasForcefullyClosed=!0}).catch(c=>super.destroy(c))}isCloseable(l,c){return(c?l.isEmpty():this.wasForcefullyClosed||l.isEmpty())&&!this.areIteratorsRunning()}canStartNewIterator(){return!this.wasForcefullyClosed&&this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||super.canStartNewIterator()}canStartNewIteratorConsiderReadable(){return!this.aggregatedStore}isRunning(){return this.aggregatedStore&&this.aggregatedStore.hasRunningIterators()||!this.done}getLinkQueue(){return this.linkQueue||(this.linkQueue=this.mediatorRdfResolveHypermediaLinksQueue.mediate({firstUrl:this.firstUrl,context:this.context}).then(l=>l.linkQueue)),this.linkQueue}async getSourceLinks(l){try{const{links:c}=await this.mediatorRdfResolveHypermediaLinks.mediate({context:this.context,metadata:l});return c.filter(d=>this.handledUrls[d.url]?!1:(this.handledUrls[d.url]=!0,!0))}catch{return[]}}startIterator(l){var c;if(this.aggregatedStore&&!this.aggregatedStore.containedSources.has(l.link.url)){(c=this.aggregatedStore)==null||c.containedSources.add(l.link.url);const d=l.source.queryBindings(r.createPattern(n.variable("s"),n.variable("p"),n.variable("o"),n.variable("g")),this.context.set(t.KeysQueryOperation.unionDefaultGraph,!0)).map(h=>n.quad(h.get("s"),h.get("p"),h.get("o"),h.get("g")));this.aggregatedStore.import(d).on("end",()=>{super.startIterator(l)})}else super.startIterator(l)}async accumulateMetadata(l,c){return(await this.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:l,appendingMetadata:c,context:this.context})).metadata}updateMetadata(l){var c;super.updateMetadata(l),(c=this.aggregatedStore)==null||c.setBaseMetadata(l,!0)}};return Kp.MediatedLinkedRdfSourcesAsyncRdfIterator=a,Kp}var Zp={},yS={},e0={},CL;function cB(){if(CL)return e0;CL=1,Object.defineProperty(e0,"__esModule",{value:!0}),e0.PendingStreamsIndex=void 0;const t=er(),e=un();let u=class Ms{constructor(){this.indexedStreams=new Map,this.allStreams=[]}termToString(n){return n&&n.termType!=="Variable"?(0,t.termToString)(n):Ms.ID_VARIABLE}addPatternListener(n,r,a,o,l){this.allStreams.push(n);const c=`${this.termToString(r)}${Ms.ID_SEPARATOR}${this.termToString(a)}${Ms.ID_SEPARATOR}${this.termToString(o)}${Ms.ID_SEPARATOR}${this.termToString(l)}`;let d=this.indexedStreams.get(c);d||(d=[],this.indexedStreams.set(c,d)),d.push(n)}getPendingStreamsForQuad(n){let r=[(0,e.getTerms)(n).map(o=>(0,t.termToString)(o))];for(let o=0;o{if(!this.ended&&!this.store.countQuads(a.subject,a.predicate,a.object,a.graph))for(const o of this.pendingStreams.getPendingStreamsForQuad(a))o.isInitialized&&(o.push(a),o.emit("quad",a))})}import(r){if(this.ended)throw new Error("Attempted to import into an ended StreamingStore");return this.importToListeners(r),this.store.import(r)}match(r,a,o,l){const c=this.store.match(r,a,o,l);let d=c;if(!this.ended){const h=new e.PassThrough({objectMode:!0});this.pendingStreams.addPatternListener(h,r,a,o,l),d=c.pipe(h,{end:!1}),d._pipeSource=c;const f=c._read;c._read=p=>{h.isInitialized=!0,f.call(c,p)}}return d}getStore(){return this.store}};return t0.StreamingStore=s,t0}var LL;function ute(){return LL||(LL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(cB(),t),u(ote(),t)}(yS)),yS}var ML;function cte(){if(ML)return Zp;ML=1,Object.defineProperty(Zp,"__esModule",{value:!0}),Zp.StreamingStoreMetadata=void 0;const t=wt(),e=jn(),u=ute();let s=class extends u.StreamingStore{constructor(r,a){super(r),this.started=!1,this.containedSources=new Set,this.runningIterators=new Set,this.iteratorCreatedListeners=new Set,this.baseMetadata={state:new e.MetadataValidationState,cardinality:{type:"exact",value:0},canContainUndefs:!1,variables:[]},this.metadataAccumulator=a}import(r){return this.ended||super.import(r),r}hasRunningIterators(){return this.runningIterators.size>0}match(r,a,o,l){const c=super.match(r,a,o,l),d=new t.ClosableTransformIterator(c,{autoStart:!1,onClose:()=>{this.runningIterators.delete(d)}});let h=this.getStore().countQuads(r,a,o,l);const f={state:new e.MetadataValidationState,cardinality:{type:"estimate",value:h},canContainUndefs:!1};d.setProperty("metadata",f),d.setProperty("lastCount",h),c.on("quad",()=>{d.setProperty("lastCount",++h),this.updateMetadataState(d,h)}),this.runningIterators.add(d);for(const p of this.iteratorCreatedListeners)p();return d}setBaseMetadata(r,a){if(this.baseMetadata={...r},this.baseMetadata.cardinality={type:"exact",value:0},a)for(const o of this.runningIterators){const l=o.getProperty("lastCount");this.updateMetadataState(o,l)}}updateMetadataState(r,a){const o={state:new e.MetadataValidationState,cardinality:{type:"estimate",value:a},canContainUndefs:!1,variables:[]};this.metadataAccumulator(this.baseMetadata,o).then(l=>{l.state=new e.MetadataValidationState;const c=r.getProperty("metadata");r.setProperty("metadata",l),c==null||c.state.invalidate()}).catch(()=>{})}addIteratorCreatedListener(r){this.iteratorCreatedListeners.add(r)}removeIteratorCreatedListener(r){this.iteratorCreatedListeners.delete(r)}};return Zp.StreamingStoreMetadata=s,Zp}var FL;function lB(){if(FL)return Xp;FL=1,Object.defineProperty(Xp,"__esModule",{value:!0}),Xp.QuerySourceHypermedia=void 0;const t=rA(),e=Lt,u=Nt(),s=is(),n=Wt(),r=ste(),a=cte();let o=class{constructor(c,d,h,f,p,y,b,m){this.referenceValue=d,this.cacheSize=c,this.firstUrl=d,this.forceSourceType=h,this.maxIterators=f,this.mediators=y,this.aggregateStore=p,this.logWarning=b,this.bindingsFactory=m,this.sourcesState=new s.LRUCache({max:this.cacheSize})}async getSelectorShape(c){return(await this.getSourceCached({url:this.firstUrl},{},c,this.getAggregateStore(c))).source.getSelectorShape(c)}queryBindings(c,d,h){const f=this.getAggregateStore(d);if(f&&c.type==="pattern"&&f.started)return new t.QuerySourceRdfJs(f,this.bindingsFactory).queryBindings(c,d);this.sourcesState.size===0&&this.getSourceCached({url:this.firstUrl},{},d,f).catch(y=>p.destroy(y));const p=new r.MediatedLinkedRdfSourcesAsyncRdfIterator(this.cacheSize,c,h,d,this.forceSourceType,this.firstUrl,this.maxIterators,(y,b)=>this.getSourceCached(y,b,d,f),f,this.mediators.mediatorMetadataAccumulate,this.mediators.mediatorRdfResolveHypermediaLinks,this.mediators.mediatorRdfResolveHypermediaLinksQueue);if(f){f.started=!0;const y=()=>p.kickstart();f.addIteratorCreatedListener(y),p.on("end",()=>f.removeIteratorCreatedListener(y))}return p}queryQuads(c,d){return new u.TransformIterator(async()=>(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryQuads(c,d))}async queryBoolean(c,d){return await(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryBoolean(c,d)}async queryVoid(c,d){return await(await this.getSourceCached({url:this.firstUrl},{},d,this.getAggregateStore(d))).source.queryVoid(c,d)}async getSource(c,d,h,f){var v;c.context&&(h=h.merge(c.context));let p=c.url,y,b;try{const _=await this.mediators.mediatorDereferenceRdf.mediate({context:h,url:p});p=_.url;const w=await this.mediators.mediatorMetadata.mediate({context:h,url:p,quads:_.data,triples:(v=_.metadata)==null?void 0:v.triples});w.data.on("error",()=>{}),b=(await this.mediators.mediatorMetadataExtract.mediate({context:h,url:p,metadata:w.metadata,headers:_.headers,requestTime:_.requestTime})).metadata,y=w.data,c.transform&&(y=await c.transform(y))}catch(_){y=new n.Readable,y.read=()=>(setTimeout(()=>y.emit("error",_)),null),{metadata:b}=await this.mediators.mediatorMetadataAccumulate.mediate({context:h,mode:"initialize"}),this.logWarning(`Metadata extraction for ${p} failed: ${_.message}`)}f==null||f.setBaseMetadata(b,!1),f==null||f.containedSources.add(c.url),f==null||f.import(y);const{source:m,dataset:g}=await this.mediators.mediatorQuerySourceIdentifyHypermedia.mediate({context:h,forceSourceType:c.url===this.firstUrl?this.forceSourceType:void 0,handledDatasets:d,metadata:b,quads:y,url:p});return g&&(d[g]=!0),{link:c,source:m,metadata:b,handledDatasets:d}}getSourceCached(c,d,h,f){let p=this.sourcesState.get(c.url);return p||(p=this.getSource(c,d,h,f),(c.url===this.firstUrl||f===void 0)&&this.sourcesState.set(c.url,p),p)}getAggregateStore(c){let d;if(this.aggregateStore){const h=c.get(e.KeysQuerySourceIdentify.hypermediaSourcesAggregatedStores);if(h)return d=h.get(this.firstUrl),d||(d=new a.StreamingStoreMetadata(void 0,async(f,p)=>(await this.mediators.mediatorMetadataAccumulate.mediate({mode:"append",accumulatedMetadata:f,appendingMetadata:p,context:c})).metadata),h.set(this.firstUrl,d)),d}}toString(){return`QuerySourceHypermedia(${this.firstUrl})`}};return Xp.QuerySourceHypermedia=o,Xp}var qL;function lte(){if(qL)return Jp;qL=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.ActorQuerySourceIdentifyHypermedia=void 0;const t=xr(),e=xy(),u=Lt,s=ot,n=lB();let r=class extends e.ActorQuerySourceIdentify{constructor(o){super(o)}async test(o){if(typeof o.querySourceUnidentified.value!="string")throw new TypeError(`${this.name} requires a single query source with a URL value to be present in the context.`);return!0}async run(o){var l;return{querySource:{source:new n.QuerySourceHypermedia(this.cacheSize,o.querySourceUnidentified.value,o.querySourceUnidentified.type,this.maxIterators,this.aggregateTraversalStore&&!!((l=o.querySourceUnidentified.context)!=null&&l.get(u.KeysQuerySourceIdentify.traverse)),{mediatorMetadata:this.mediatorMetadata,mediatorMetadataExtract:this.mediatorMetadataExtract,mediatorMetadataAccumulate:this.mediatorMetadataAccumulate,mediatorDereferenceRdf:this.mediatorDereferenceRdf,mediatorQuerySourceIdentifyHypermedia:this.mediatorQuerySourceIdentifyHypermedia,mediatorRdfResolveHypermediaLinks:this.mediatorRdfResolveHypermediaLinks,mediatorRdfResolveHypermediaLinksQueue:this.mediatorRdfResolveHypermediaLinksQueue},c=>this.logWarn(o.context,c),await t.BindingsFactory.create(this.mediatorMergeBindingsContext,o.context)),context:o.querySourceUnidentified.context??new s.ActionContext}}}};return Jp.ActorQuerySourceIdentifyHypermedia=r,Jp}var BL;function dte(){return BL||(BL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(lte(),t),u(lB(),t)}(pS)),pS}var bS={},r0={},UL;function fte(){if(UL)return r0;UL=1,Object.defineProperty(r0,"__esModule",{value:!0}),r0.ActorRdfJoinNone=void 0;const t=xr(),e=Ln(),u=jn(),s=Nt();let n=class extends e.ActorRdfJoin{constructor(a){super(a,{logicalType:"inner",physicalName:"none",limitEntries:0})}async test(a){if(a.entries.length>0)throw new Error(`Actor ${this.name} can only join zero entries`);return await this.getJoinCoefficients()}async getOutput(a){const o=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,a.context);return{result:{bindingsStream:new s.ArrayIterator([o.bindings()],{autoStart:!1}),metadata:()=>Promise.resolve({state:new u.MetadataValidationState,cardinality:{type:"exact",value:1},canContainUndefs:!1,variables:[]}),type:"bindings"}}}async getJoinCoefficients(){return{iterations:0,persistedItems:0,blockingItems:0,requestTime:0}}};return r0.ActorRdfJoinNone=n,r0}var HL;function hte(){return HL||(HL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(fte(),t)}(bS)),bS}var gS={},n0={},$L;function pte(){if($L)return n0;$L=1,Object.defineProperty(n0,"__esModule",{value:!0}),n0.ActorRdfJoinMultiBind=void 0;const t=xr(),e=wt(),u=Ln(),s=Lt,n=Nt(),r=Ot();let a=class m3 extends u.ActorRdfJoin{constructor(l){super(l,{logicalType:"inner",physicalName:"bind",canHandleUndefs:!0,isLeaf:!1})}static createBindStream(l,c,d,h,f,p){const y=l==="depth-first",b=m=>{const g=d.map(_=>(0,e.materializeOperation)(_,m,p,{bindFilter:!0})),v=_=>_.merge(m);return new n.TransformIterator(async()=>(await h(g,m)).transform({map:v}),{maxBufferSize:128,autoStart:y})};switch(l){case"depth-first":return new n.MultiTransformIterator(c,{autoStart:!1,multiTransform:b,optional:f});case"breadth-first":return new n.UnionIterator(c.transform({map:b,optional:f}),{autoStart:!1});default:throw new Error(`Received request for unknown bind order: ${l}`)}}async getOutput(l){const c=await t.BindingsFactory.create(this.mediatorMergeBindingsContext,l.context),d=await u.ActorRdfJoin.getEntriesWithMetadatas(l.entries),h=await u.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,d,l.context);this.logDebug(l.context,"First entry for Bind Join: ",()=>({entry:h[0].operation,metadata:h[0].metadata}));for(const[m,g]of h.entries())m!==0&&g.output.bindingsStream.close();const f=h[0].output,p=[...h];p.splice(0,1);const y=l.context.set(s.KeysQueryOperation.joinLeftMetadata,h[0].metadata).set(s.KeysQueryOperation.joinRightMetadatas,p.map(m=>m.metadata));return{result:{type:"bindings",bindingsStream:m3.createBindStream(this.bindOrder,f.bindingsStream,p.map(m=>m.operation),async(m,g)=>{const v=m.length===1?m[0]:m3.FACTORY.createJoin(m);return e.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:v,context:y==null?void 0:y.set(s.KeysQueryOperation.joinBindings,g)})).bindingsStream},!1,c),metadata:()=>this.constructResultMetadata(h,h.map(m=>m.metadata),l.context)},physicalPlanMetadata:{bindIndex:d.indexOf(h[0]),bindOperation:h[0].operation,bindOperationCardinality:h[0].metadata.cardinality,bindOrder:this.bindOrder}}}canBindWithOperation(l){let c=!0;return r.Util.recurseOperation(l,{[r.Algebra.types.EXTEND](){return c=!1,!1},[r.Algebra.types.GROUP](){return c=!1,!1}}),c}async getJoinCoefficients(l,c){const d=await u.ActorRdfJoin.sortJoinEntries(this.mediatorJoinEntriesSort,l.entries.map((w,S)=>({...w,metadata:c[S]})),l.context);c=d.map(w=>w.metadata);const h=u.ActorRdfJoin.getRequestInitialTimes(c),f=u.ActorRdfJoin.getRequestItemTimes(c),p=[...d],y=[...h],b=[...f];if(p.splice(0,1),y.splice(0,1),b.splice(0,1),p.some(w=>!this.canBindWithOperation(w.operation)))throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);if(p.some(w=>w.operationModified))throw new Error(`Actor ${this.name} can not be used over remaining entries with modified operations`);const m=await Promise.all(p.map(async w=>(await this.mediatorJoinSelectivity.mediate({entries:[d[0],w],context:l.context})).selectivity*this.selectivityModifier)),g=p.map((w,S)=>w.metadata.cardinality.value*m[S]).reduce((w,S)=>w+S,0),v=y.reduce((w,S)=>w+S,0),_=b.reduce((w,S)=>w+S,0);return{iterations:c[0].cardinality.value*g,persistedItems:0,blockingItems:0,requestTime:h[0]+c[0].cardinality.value*(f[0]+v+g*_)}}};return n0.ActorRdfJoinMultiBind=a,a.FACTORY=new r.Factory,n0}var QL;function dB(){return QL||(QL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(pte(),t)}(gS)),gS}var mS={},i0={},VL;function yte(){if(VL)return i0;VL=1,Object.defineProperty(i0,"__esModule",{value:!0}),i0.ActorRdfJoinOptionalBind=void 0;const t=dB(),e=xr(),u=wt(),s=Ln(),n=Lt,r=Ot();let a=class extends s.ActorRdfJoin{constructor(l){super(l,{logicalType:"optional",physicalName:"bind",limitEntries:2,canHandleUndefs:!0,isLeaf:!1})}async getOutput(l){const c=await e.BindingsFactory.create(this.mediatorMergeBindingsContext,l.context);l.entries[1].output.bindingsStream.close();const d=l.context.set(n.KeysQueryOperation.joinLeftMetadata,await l.entries[0].output.metadata()).set(n.KeysQueryOperation.joinRightMetadatas,[await l.entries[1].output.metadata()]);return{result:{type:"bindings",bindingsStream:t.ActorRdfJoinMultiBind.createBindStream(this.bindOrder,l.entries[0].output.bindingsStream,[l.entries[1].operation],async(f,p)=>{const y=f[0];return u.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:y,context:d==null?void 0:d.set(n.KeysQueryOperation.joinBindings,p)})).bindingsStream},!0,c),metadata:async()=>await this.constructResultMetadata(l.entries,await s.ActorRdfJoin.getMetadatas(l.entries),l.context,{canContainUndefs:!0})}}}async getJoinCoefficients(l,c){if(s.ActorRdfJoin.overlappingVariables(c).length===0)throw new Error(`Actor ${this.name} only join entries with at least one common variable`);const d=s.ActorRdfJoin.getRequestInitialTimes(c),h=s.ActorRdfJoin.getRequestItemTimes(c);if(l.entries[1].operation.type===r.Algebra.types.EXTEND||l.entries[1].operation.type===r.Algebra.types.GROUP)throw new Error(`Actor ${this.name} can not bind on Extend and Group operations`);const f=(await this.mediatorJoinSelectivity.mediate({entries:l.entries,context:l.context})).selectivity*this.selectivityModifier;return{iterations:c[0].cardinality.value*c[1].cardinality.value*f,persistedItems:0,blockingItems:0,requestTime:d[0]+c[0].cardinality.value*(h[0]+d[1]+f*c[1].cardinality.value*h[1])}}};return i0.ActorRdfJoinOptionalBind=a,i0}var kL;function bte(){return kL||(kL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(yte(),t)}(mS)),mS}var _S={},a0={},zL;function gte(){if(zL)return a0;zL=1,Object.defineProperty(a0,"__esModule",{value:!0}),a0.ActorQueryProcessExplainParsed=void 0;const t=Yb(),e=Lt,u=ot;let s=class extends t.ActorQueryProcess{constructor(r){super(r)}async test(r){if((r.context.get(e.KeysInitQuery.explain)||r.context.get(new u.ActionContextKey("explain")))!=="parsed")throw new Error(`${this.name} can only explain in 'parsed' mode.`);return!0}async run(r){const{operation:a}=await this.queryProcessor.parse(r.query,r.context);return{result:{explain:!0,type:"parsed",data:a}}}};return a0.ActorQueryProcessExplainParsed=s,a0}var GL;function mte(){return GL||(GL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(gte(),t)}(_S)),_S}var vS={},s0={},WL;function _te(){if(WL)return s0;WL=1,Object.defineProperty(s0,"__esModule",{value:!0}),s0.ActorQueryProcessExplainLogical=void 0;const t=Yb(),e=Lt,u=ot;let s=class extends t.ActorQueryProcess{constructor(r){super(r)}async test(r){if((r.context.get(e.KeysInitQuery.explain)||r.context.get(new u.ActionContextKey("explain")))!=="logical")throw new Error(`${this.name} can only explain in 'logical' mode.`);return!0}async run(r){let{operation:a,context:o}=await this.queryProcessor.parse(r.query,r.context);return{operation:a,context:o}=await this.queryProcessor.optimize(a,o),{result:{explain:!0,type:"logical",data:a}}}};return s0.ActorQueryProcessExplainLogical=s,s0}var JL;function vte(){return JL||(JL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(_te(),t)}(vS)),vS}var wS={},o0={},Ps={},XL;function fB(){if(XL)return Ps;XL=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.numberToString=Ps.MemoryPhysicalQueryPlanLogger=void 0;const t=er();let e=class{constructor(){this.planNodes=new Map}logOperation(n,r,a,o,l,c){const d={actor:l,logicalOperator:n,physicalOperator:r,rawNode:a,children:[],metadata:c};if(this.planNodes.set(a,d),this.rootNode){if(!o)throw new Error("Detected more than one parent-less node");const h=this.planNodes.get(o);if(!h)throw new Error("Could not find parent node");h.children.push(d)}else{if(o)throw new Error("No root node has been set yet, while a parent is being referenced");this.rootNode=d}}stashChildren(n,r){const a=this.planNodes.get(n);if(!a)throw new Error("Could not find plan node");a.children=r?a.children.filter(r):[]}unstashChild(n,r){const a=this.planNodes.get(n);if(a){const o=this.planNodes.get(r);if(!o)throw new Error("Could not find plan parent node");o.children.push(a)}}appendMetadata(n,r){const a=this.planNodes.get(n);a&&(a.metadata={...a.metadata,...r})}toJson(){return this.rootNode?this.planNodeToJson(this.rootNode):{}}planNodeToJson(n){var a;const r={logical:n.logicalOperator,physical:n.physicalOperator,...this.getLogicalMetadata(n.rawNode),...this.compactMetadata(n.metadata)};if(n.children.length>0&&(r.children=n.children.map(o=>this.planNodeToJson(o))),r.physical==="bind"&&r.children){const o={};for(const c of r.children){const d=((a=c.children)==null?void 0:a.at(-1))??c,h=this.getPlanHash(d).join(",");o[h]||(o[h]=[]),o[h].push(c)}const l=[];for(const c of Object.values(o))l.push({occurrences:c.length,firstOccurrence:c[0]});r.childrenCompact=l,delete r.children}return r}getPlanHash(n){let r=[`${n.logical}-${n.physical}`];return n.children?r=[...r,...n.children.flatMap(a=>this.getPlanHash(a))]:n.childrenCompact&&(r=[...r,...n.childrenCompact.flatMap(a=>this.getPlanHash(a.firstOccurrence))]),r}compactMetadata(n){return Object.fromEntries(Object.entries(n).map(([r,a])=>[r,this.compactMetadataValue(a)]))}compactMetadataValue(n){return n&&typeof n=="object"&&"termType"in n?this.getLogicalMetadata(n):n}getLogicalMetadata(n){var a;const r={};if("type"in n){const o=n;switch((a=o.metadata)!=null&&a.scopedSource&&(r.source=o.metadata.scopedSource.source.toString()),o.type){case"pattern":r.pattern=this.quadToString(o);break;case"project":r.variables=o.variables.map(l=>l.value);break}}return r}quadToString(n){return`${(0,t.termToString)(n.subject)} ${(0,t.termToString)(n.predicate)} ${(0,t.termToString)(n.object)}${n.graph.termType==="DefaultGraph"?"":` ${(0,t.termToString)(n.graph)}`}`}toCompactString(){const n=this.toJson(),r=[],a=new Map;if("logical"in n?this.nodeToCompactString(r,a,"",n):r.push("Empty"),a.size>0){r.push(""),r.push("sources:");for(const[o,l]of a.entries())r.push(` ${l}: ${o}`)}return r.join(` +`)}nodeToCompactString(n,r,a,o,l){let c;o.source&&(c=r.get(o.source),c===void 0&&(c=r.size,r.set(o.source,c))),n.push(`${a}${o.logical}${o.physical?`(${o.physical})`:""}${o.pattern?` (${o.pattern})`:""}${o.variables?` (${o.variables.join(",")})`:""}${o.bindOperation?` bindOperation:(${o.bindOperation.pattern}) bindCardEst:${o.bindOperationCardinality.type==="estimate"?"~":""}${u(o.bindOperationCardinality.value)}`:""}${o.cardinality?` cardEst:${o.cardinality.type==="estimate"?"~":""}${u(o.cardinality.value)}`:""}${o.source?` src:${c}`:""}${o.cardinalityReal?` cardReal:${o.cardinalityReal}`:""}${o.timeSelf?` timeSelf:${u(o.timeSelf)}ms`:""}${o.timeLife?` timeLife:${u(o.timeLife)}ms`:""}${l?` ${l}`:""}`);for(const d of o.children??[])this.nodeToCompactString(n,r,`${a} `,d);for(const d of o.childrenCompact??[])this.nodeToCompactString(n,r,`${a} `,d.firstOccurrence,`compacted-occurrences:${d.occurrences}`)}};Ps.MemoryPhysicalQueryPlanLogger=e;function u(s){return s.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:3})}return Ps.numberToString=u,Ps}var KL;function wte(){if(KL)return o0;KL=1,Object.defineProperty(o0,"__esModule",{value:!0}),o0.ActorQueryProcessExplainPhysical=void 0;const t=Yb(),e=Lt,u=ot,s=fB();let n=class extends t.ActorQueryProcess{constructor(a){super(a)}async test(a){const o=a.context.get(e.KeysInitQuery.explain)||a.context.get(new u.ActionContextKey("explain"));if(o!=="physical"&&o!=="physical-json")throw new Error(`${this.name} can only explain in 'physical' or 'physical-json' mode.`);return!0}async run(a){let{operation:o,context:l}=await this.queryProcessor.parse(a.query,a.context);({operation:o,context:l}=await this.queryProcessor.optimize(o,l));const c=new s.MemoryPhysicalQueryPlanLogger;l=l.set(e.KeysInitQuery.physicalQueryPlanLogger,c);const d=await this.queryProcessor.evaluate(o,l);switch(d.type){case"bindings":await d.bindingsStream.toArray();break;case"quads":await d.quadStream.toArray();break;case"boolean":await d.execute();break;case"void":await d.execute();break}const h=a.context.get(e.KeysInitQuery.explain)??a.context.getSafe(new u.ActionContextKey("explain"));return{result:{explain:!0,type:h,data:h==="physical"?c.toCompactString():c.toJson()}}}};return o0.ActorQueryProcessExplainPhysical=n,o0}var YL;function Ste(){return YL||(YL=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(wte(),t),u(fB(),t)}(wS)),wS}var SS={},u0={},ZL;function Tte(){if(ZL)return u0;ZL=1,Object.defineProperty(u0,"__esModule",{value:!0}),u0.ActorOptimizeQueryOperationPruneEmptySourceOperations=void 0;const t=Ii(),e=wt(),u=Lt,s=Et(),n=Ot(),r=new n.Factory,a=new s.DataFactory;let o=class extends t.ActorOptimizeQueryOperation{constructor(c){super(c)}async test(c){if(e.ActorQueryOperation.getOperationSource(c.operation))throw new Error(`Actor ${this.name} does not work with top-level operation sources.`);return!0}async run(c){let d=c.operation;const h=[],f=this;n.Util.recurseOperation(d,{[n.Algebra.types.UNION](y){return f.collectMultiOperationInputs(y.input,h,n.Algebra.types.PATTERN),!0},[n.Algebra.types.ALT](y){return f.collectMultiOperationInputs(y.input,h,n.Algebra.types.LINK),!1},[n.Algebra.types.SERVICE](){return!1}});const p=new Set;return await Promise.all(h.map(async y=>{const b=y.type==="link"?r.createPattern(a.variable("?s"),y.iri,a.variable("?o")):y;await this.hasSourceResults(e.ActorQueryOperation.getOperationSource(y),b,c.context)||p.add(y)})),p.size>0&&(this.logDebug(c.context,`Pruning ${p.size} source-specific operations`),d=n.Util.mapOperation(d,{[n.Algebra.types.UNION](y,b){return f.mapMultiOperation(y,p,m=>b.createUnion(m))},[n.Algebra.types.ALT](y,b){return f.mapMultiOperation(y,p,m=>b.createAlt(m))}}),d=n.Util.mapOperation(d,{[n.Algebra.types.PROJECT](y,b){let m=!1;return n.Util.recurseOperation(y,{[n.Algebra.types.UNION](g){return g.input.length===0&&(m=!0),!0},[n.Algebra.types.ALT](g){return g.input.length===0&&(m=!0),!0}}),m?{recurse:!1,result:b.createUnion([])}:{recurse:!0,result:y}}})),{operation:d,context:c.context}}collectMultiOperationInputs(c,d,h){for(const f of c)e.ActorQueryOperation.getOperationSource(f)&&f.type===h&&d.push(f)}mapMultiOperation(c,d,h){const f=c.input.filter(p=>!d.has(p));return f.length===c.input.length?{result:c,recurse:!0}:f.length===0?{result:h([]),recurse:!1}:f.length===1?{result:f[0],recurse:!0}:{result:h(f),recurse:!0}}async hasSourceResults(c,d,h){var p;if((p=c.context)!=null&&p.get(u.KeysQuerySourceIdentify.traverse))return!0;if(this.useAskIfSupported){const y=r.createAsk(d);if(e.ActorQueryOperation.doesShapeAcceptOperation(await c.source.getSelectorShape(h),y))return c.source.queryBoolean(y,h)}const f=c.source.queryBindings(d,h);return new Promise((y,b)=>{f.on("error",b),f.getProperty("metadata",m=>{f.destroy(),y(m.cardinality.value>0)})})}};return u0.ActorOptimizeQueryOperationPruneEmptySourceOperations=o,u0}var eM;function Ate(){return eM||(eM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Tte(),t)}(SS)),SS}var TS={},c0={},tM;function Ete(){if(tM)return c0;tM=1,Object.defineProperty(c0,"__esModule",{value:!0}),c0.ActorQuerySourceIdentifySerialized=void 0;const t=xy(),e=$7(),u=Wt();let s=class extends t.ActorQuerySourceIdentify{constructor(r){super(r)}async test(r){if(!this.isStringSource(r.querySourceUnidentified))throw new Error(`${this.name} requires a single query source with serialized type to be present in the context.`);return!0}async run(r){return await this.mediatorQuerySourceIdentify.mediate({querySourceUnidentified:{type:"rdfjs",value:await this.getRdfSource(r.context,r.querySourceUnidentified),context:r.querySourceUnidentified.context},context:r.context})}async getRdfSource(r,a){const o=new u.Readable({objectMode:!0});o._read=()=>{},o.push(a.value),o.push(null);const l={context:r,handle:{metadata:{baseIRI:a.baseIRI},data:o,context:r},handleMediaType:a.mediaType},c=await this.mediatorRdfParse.mediate(l);return await(0,e.storeStream)(c.handle.data)}isStringSource(r){return"type"in r?r.type==="serialized":typeof r.value!="string"?!1:"mediaType"in r}};return c0.ActorQuerySourceIdentifySerialized=s,c0}var rM;function Ote(){return rM||(rM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Ete(),t)}(TS)),TS}var AS={},l0={},nM;function Rte(){if(nM)return l0;nM=1,Object.defineProperty(l0,"__esModule",{value:!0}),l0.ActorOptimizeQueryOperationJoinConnected=void 0;const t=Ii(),e=Ot();let u=class H1 extends t.ActorOptimizeQueryOperation{async test(n){return!0}async run(n){return{operation:e.Util.mapOperation(n.operation,{join(a,o){return{recurse:!1,result:H1.cluster(a,o)}}}),context:n.context}}static cluster(n,r){const a=n.input.map(d=>({inScopeVariables:Object.fromEntries(e.Util.inScopeVariables(d).map(h=>[h.value,!0])),entries:[d]}));let o,l=a;do o=l,l=H1.clusterIteration(o);while(o.length!==l.length);const c=l.map(d=>r.createJoin(d.entries));return c.length===1?c[0]:r.createJoin(c,!1)}static clusterIteration(n){const r=[];for(const a of n){let o=!1;for(const l of r)if(H1.haveOverlappingVariables(a.inScopeVariables,l.inScopeVariables)){l.entries=[...l.entries,...a.entries],l.inScopeVariables={...l.inScopeVariables,...a.inScopeVariables},o=!0;break}o||r.push({inScopeVariables:a.inScopeVariables,entries:a.entries})}return r}static haveOverlappingVariables(n,r){for(const a of Object.keys(n))if(r[a])return!0;return!1}};return l0.ActorOptimizeQueryOperationJoinConnected=u,l0}var iM;function xte(){return iM||(iM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Rte(),t)}(AS)),AS}var ES={},d0={},aM;function Ite(){if(aM)return d0;aM=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.ActorOptimizeQueryOperationBgpToJoin=void 0;const t=Ii(),e=Ot();let u=class extends t.ActorOptimizeQueryOperation{async test(n){return!0}async run(n){return{operation:e.Util.mapOperation(n.operation,{bgp(a,o){return{recurse:!1,result:o.createJoin(a.patterns)}}}),context:n.context}}};return d0.ActorOptimizeQueryOperationBgpToJoin=u,d0}var sM;function Pte(){return sM||(sM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Ite(),t)}(ES)),ES}var OS={},f0={},oM;function Dte(){if(oM)return f0;oM=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.ActorOptimizeQueryOperationJoinBgp=void 0;const t=Ii(),e=Ot();let u=class extends t.ActorOptimizeQueryOperation{async test(n){return!0}async run(n){return{operation:e.Util.mapOperation(n.operation,{join(a,o){return a.input.every(l=>l.type==="bgp")?{recurse:!1,result:o.createBgp(a.input.flatMap(l=>l.patterns))}:{recurse:!1,result:a}}}),context:n.context}}};return f0.ActorOptimizeQueryOperationJoinBgp=u,f0}var uM;function Nte(){return uM||(uM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Dte(),t)}(OS)),OS}var RS={},h0={},cM;function Cte(){if(cM)return h0;cM=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.ActorOptimizeQueryOperationAssignSourcesExhaustive=void 0;const t=Ii(),e=wt(),u=YT(),s=Lt,n=Ot();let r=class extends t.ActorOptimizeQueryOperation{constructor(o){super(o)}async test(o){return!0}async run(o){const l=o.context.get(s.KeysQueryOperation.querySources)??[];if(l.length===0)return{operation:o.operation,context:o.context};if(l.length===1){const c=l[0],d=o.context.get(s.KeysRdfUpdateQuads.destination);if(!d||c.source.referenceValue===(0,u.getDataDestinationValue)(d))try{const h=await c.source.getSelectorShape(o.context);if(e.ActorQueryOperation.doesShapeAcceptOperation(h,o.operation))return{operation:e.ActorQueryOperation.assignOperationSource(o.operation,c),context:o.context}}catch{}}return{operation:this.assignExhaustive(o.operation,l),context:o.context.delete(s.KeysInitQuery.queryString)}}assignExhaustive(o,l){const c=this;return n.Util.mapOperation(o,{[n.Algebra.types.PATTERN](d,h){return l.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,l[0]),recurse:!1}:{result:h.createUnion(l.map(f=>e.ActorQueryOperation.assignOperationSource(d,f))),recurse:!1}},[n.Algebra.types.LINK](d,h){return l.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,l[0]),recurse:!1}:{result:h.createAlt(l.map(f=>e.ActorQueryOperation.assignOperationSource(d,f))),recurse:!1}},[n.Algebra.types.NPS](d,h){return l.length===1?{result:e.ActorQueryOperation.assignOperationSource(d,l[0]),recurse:!1}:{result:h.createAlt(l.map(f=>e.ActorQueryOperation.assignOperationSource(d,f))),recurse:!1}},[n.Algebra.types.SERVICE](d){return{result:d,recurse:!1}},[n.Algebra.types.CONSTRUCT](d,h){return{result:h.createConstruct(c.assignExhaustive(d.input,l),d.template),recurse:!1}},[n.Algebra.types.DELETE_INSERT](d,h){return{result:h.createDeleteInsert(d.delete,d.insert,d.where?c.assignExhaustive(d.where,l):void 0),recurse:!1}}})}};return h0.ActorOptimizeQueryOperationAssignSourcesExhaustive=r,h0}var lM;function jte(){return lM||(lM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Cte(),t)}(RS)),RS}var xS={},p0={},dM;function Lte(){if(dM)return p0;dM=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.ActorOptimizeQueryOperationDescribeToConstructsSubject=void 0;const t=Ii(),e=Et(),u=Ot(),s=new e.DataFactory,n=new u.Factory;let r=class extends t.ActorOptimizeQueryOperation{constructor(o){super(o)}async test(o){if(o.operation.type!==u.Algebra.types.DESCRIBE)throw new Error(`Actor ${this.name} only supports describe operations, but got ${o.operation.type}`);return!0}async run(o){const l=o.operation,c=l.terms.filter(h=>h.termType!=="Variable").map(h=>{const f=[s.quad(h,s.variable("__predicate"),s.variable("__object"))];return f.forEach(y=>y.type="pattern"),{input:{type:u.Algebra.types.BGP,patterns:f},template:f,type:"construct"}});if(c.length!==l.terms.length){let h=[];l.terms.filter(f=>f.termType==="Variable").forEach((f,p)=>{const y=[s.quad(f,s.variable(`__predicate${p}`),s.variable(`__object${p}`))];y.forEach(b=>b.type="pattern"),h=[...h,...y]}),c.push({input:{type:u.Algebra.types.JOIN,input:[l.input,{type:u.Algebra.types.BGP,patterns:h}]},template:h,type:u.Algebra.types.CONSTRUCT})}return{operation:n.createUnion(c,!1),context:o.context}}};return p0.ActorOptimizeQueryOperationDescribeToConstructsSubject=r,p0}var fM;function Mte(){return fM||(fM=1,function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(Lte(),t)}(xS)),xS}var Fte=function(t){const e=new(vV()).LoggerVoid,u=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/^3.0.0/components/ActorInit.jsonld#ActorInit_default_bus"}),s=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-context-preprocess/^3.0.0/components/ActorContextPreprocess.jsonld#ActorContextPreprocess_default_bus"}),n=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-hash-bindings/^3.0.0/components/ActorHashBindings.jsonld#ActorHashBindings_default_bus"}),r=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-optimize-query-operation/^3.0.0/components/ActorOptimizeQueryOperation.jsonld#ActorOptimizeQueryOperation_default_bus"}),a=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-parse/^3.0.0/components/ActorQueryParse.jsonld#ActorQueryParse_default_bus"}),o=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-result-serialize/^3.0.0/components/ActorQueryResultSerialize.jsonld#ActorQueryResultSerialize_default_bus"}),l=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify-hypermedia/^3.0.0/components/ActorQuerySourceIdentifyHypermedia.jsonld#ActorQuerySourceIdentifyHypermedia_default_bus"}),c=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference/^3.0.0/components/ActorDereference.jsonld#ActorDereference_default_bus"}),d=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-dereference-rdf/^3.0.0/components/ActorDereferenceRdf.jsonld#ActorDereferenceRdf_default_bus"}),h=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-entries-sort/^3.0.0/components/ActorRdfJoinEntriesSort.jsonld#ActorRdfJoinEntriesSort_default_bus"}),f=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join-selectivity/^3.0.0/components/ActorRdfJoinSelectivity.jsonld#ActorRdfJoinSelectivity_default_bus"}),p=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata/^3.0.0/components/ActorRdfMetadata.jsonld#ActorRdfMetadata_default_bus"}),y=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-accumulate/^3.0.0/components/ActorRdfMetadataAccumulate.jsonld#ActorRdfMetadataAccumulate_default_bus"}),b=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-extract/^3.0.0/components/ActorRdfMetadataExtract.jsonld#ActorRdfMetadataExtract_default_bus"}),m=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse/^3.0.0/components/ActorRdfParse.jsonld#ActorRdfParse_default_bus"}),g=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-html/^3.0.0/components/ActorRdfParseHtml.jsonld#ActorRdfParseHtml_default_bus"}),v=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links-queue/^3.0.0/components/ActorRdfResolveHypermediaLinksQueue.jsonld#ActorRdfResolveHypermediaLinksQueue_default_bus"}),_=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links/^3.0.0/components/ActorRdfResolveHypermediaLinks.jsonld#ActorRdfResolveHypermediaLinks_default_bus"}),w=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/^3.0.0/components/ActorRdfSerialize.jsonld#ActorRdfSerialize_default_bus"}),S=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/^3.0.0/components/ActorRdfUpdateHypermedia.jsonld#ActorRdfUpdateHypermedia_default_bus"}),A=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-quads/^3.0.0/components/ActorRdfUpdateQuads.jsonld#ActorRdfUpdateQuads_default_bus"}),D=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_default_bus"}),L=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/^3.0.0/components/ActorHttp.jsonld#ActorHttp_fallback_bus"}),E=new(wt()).BusQueryOperation({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-operation/^3.0.0/components/ActorQueryOperation.jsonld#ActorQueryOperation_default_bus"}),O=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-process/^3.0.0/components/ActorQueryProcess.jsonld#ActorQueryProcess_default_bus"}),P=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-source-identify/^3.0.0/components/ActorQuerySourceIdentify.jsonld#ActorQuerySourceIdentify_default_bus"}),j=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join/^3.0.0/components/ActorRdfJoin.jsonld#ActorRdfJoin_default_bus"}),U=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/^3.0.0/components/ActorHttpInvalidate.jsonld#ActorHttpInvalidate_default_bus"}),M=new ot.Bus({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-merge-bindings-context/^3.0.0/components/ActorMergeBindingsContext.jsonld#ActorMergeBindingsContext_default_bus"});new(JV()).ActorContextPreprocessConvertShortcuts({contextKeyShortcuts:{baseIRI:"@comunica/actor-init-query:baseIRI",datetime:"@comunica/actor-http-memento:datetime",destination:"@comunica/bus-rdf-update-quads:destination",explain:"@comunica/actor-init-query:explain",extensionFunctionCreator:"@comunica/actor-init-query:extensionFunctionCreator",extensionFunctions:"@comunica/actor-init-query:extensionFunctions",fetch:"@comunica/bus-http:fetch",functionArgumentsCache:"@comunica/actor-init-query:functionArgumentsCache",httpAuth:"@comunica/bus-http:auth",httpBodyTimeout:"@comunica/bus-http:http-body-timeout",httpIncludeCredentials:"@comunica/bus-http:include-credentials",httpProxyHandler:"@comunica/actor-http-proxy:httpProxyHandler",httpRetryCount:"@comunica/bus-http:http-retry-count",httpRetryDelay:"@comunica/bus-http:http-retry-delay",httpRetryOnServerError:"@comunica/bus-http:http-retry-on-server-error",httpTimeout:"@comunica/bus-http:http-timeout",initialBindings:"@comunica/actor-init-query:initialBindings",lenient:"@comunica/actor-init-query:lenient",log:"@comunica/core:log",noCache:"@comunica/actor-init-query:noCache",queryFormat:"@comunica/actor-init-query:queryFormat",queryTimestamp:"@comunica/actor-init-query:queryTimestamp",readOnly:"@comunica/bus-query-operation:readOnly",recoverBrokenLinks:"@comunica/bus-http-wayback:recover-broken-links",sources:"@comunica/actor-init-query:querySourcesUnidentified",traverse:"@comunica/bus-query-source-identify:traverse",unionDefaultGraph:"@comunica/bus-query-operation:unionDefaultGraph"},name:"urn:comunica:default:context-preprocess/actors#convert-shortcuts",bus:s}),new(KV()).ActorContextPreprocessSetDefaults({logger:e,name:"urn:comunica:default:context-preprocess/actors#set-defaults",bus:s}),new(ZV()).ActorContextPreprocessSourceToDestination({name:"urn:comunica:default:context-preprocess/actors#source-to-destination",bus:s});const q=new(QF()).ActorContextPreprocessQuerySourceSkolemize({name:"urn:comunica:default:context-preprocess/actors#query-source-skolemize",bus:s}),Q=new(dR()).MediatorCombinePipeline({name:"urn:comunica:default:context-preprocess/mediators#main",bus:s});new(sk()).ActorHashBindingsSha1({name:"urn:comunica:default:hash-bindings/actors#sha1",bus:n});const Z=new(_n()).MediatorRace({name:"urn:comunica:default:hash-bindings/mediators#main",bus:n});new(lk()).ActorOptimizeQueryOperationRewriteCopy({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-copy",bus:r}),new(fk()).ActorOptimizeQueryOperationRewriteMove({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-move",bus:r}),new(pk()).ActorOptimizeQueryOperationRewriteAdd({name:"urn:comunica:default:optimize-query-operation/actors#rewrite-add",bus:r});const K=new(bk()).ActorOptimizeQueryOperationGroupSources({name:"urn:comunica:default:optimize-query-operation/actors#group-sources",bus:r}),fe=new(dR()).MediatorCombinePipeline({filterErrors:!0,name:"urn:comunica:default:optimize-query-operation/mediators#main",bus:r});new(_k()).ActorQueryParseSparql({prefixes:{dbpedia:"http://dbpedia.org/resource/","dbpedia-owl":"http://dbpedia.org/ontology/",dbpprop:"http://dbpedia.org/property/",dc:"http://purl.org/dc/terms/",dc11:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",owl:"http://www.w3.org/2002/07/owl#",rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",schema:"http://schema.org/",skos:"http://www.w3.org/2008/05/skos#",xsd:"http://www.w3.org/2001/XMLSchema#"},name:"urn:comunica:default:query-parse/actors#sparql",bus:a}),new(kz()).ActorQueryParseGraphql({name:"urn:comunica:default:query-parse/actors#graphql",bus:a});const X=new(_n()).MediatorRace({name:"urn:comunica:default:query-parse/mediators#main",bus:a});new(nG()).ActorQueryResultSerializeJson({mediaTypePriorities:{"application/json":1},mediaTypeFormats:{"application/json":"https://comunica.linkeddatafragments.org/#results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#json",bus:o}),new(aG()).ActorQueryResultSerializeSimple({mediaTypePriorities:{simple:.9},mediaTypeFormats:{simple:"https://comunica.linkeddatafragments.org/#results_simple"},name:"urn:comunica:default:query-result-serialize/actors#simple",bus:o}),new(oG()).ActorQueryResultSerializeSparqlCsv({mediaTypePriorities:{"text/csv":.75},mediaTypeFormats:{"text/csv":"http://www.w3.org/ns/formats/SPARQL_Results_CSV"},name:"urn:comunica:default:query-result-serialize/actors#csv",bus:o}),new(lG()).ActorQueryResultSerializeSparqlTsv({mediaTypePriorities:{"text/tab-separated-values":.75},mediaTypeFormats:{"text/tab-separated-values":"http://www.w3.org/ns/formats/SPARQL_Results_TSV"},name:"urn:comunica:default:query-result-serialize/actors#sparql-tsv",bus:o}),new(hG()).ActorQueryResultSerializeSparqlXml({mediaTypePriorities:{"application/sparql-results+xml":.8},mediaTypeFormats:{"application/sparql-results+xml":"http://www.w3.org/ns/formats/SPARQL_Results_XML"},name:"urn:comunica:default:query-result-serialize/actors#sparql-xml",bus:o}),new(yG()).ActorQueryResultSerializeTable({columnWidth:50,mediaTypePriorities:{table:.6},mediaTypeFormats:{table:"https://comunica.linkeddatafragments.org/#results_table"},name:"urn:comunica:default:query-result-serialize/actors#table",bus:o}),new(OG()).ActorQueryResultSerializeTree({mediaTypePriorities:{tree:.5},mediaTypeFormats:{tree:"https://comunica.linkeddatafragments.org/#results_tree"},name:"urn:comunica:default:query-result-serialize/actors#tree",bus:o});const he=new(_n()).MediatorRace({name:"urn:comunica:default:query-result-serialize/mediators#serialize",bus:o}),xe=new(Ra()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:query-result-serialize/mediators#mediaType",bus:o}),ie=new(Ra()).MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:query-result-serialize/mediators#mediaTypeFormat",bus:o}),ae=new(Zc()).MediatorNumber({field:"filterFactor",type:"max",ignoreErrors:!0,name:"urn:comunica:default:query-source-identify-hypermedia/mediators#main",bus:l}),Oe=new(NG()).ActorDereferenceFallback({name:"urn:comunica:default:dereference/actors#fallback",bus:c}),Ne=new(_n()).MediatorRace({name:"urn:comunica:default:dereference/mediators#main",bus:c}),ge=new(_n()).MediatorRace({name:"urn:comunica:default:dereference-rdf/mediators#main",bus:d});new(MG()).ActorRdfJoinEntriesSortCardinality({name:"urn:comunica:default:rdf-join-entries-sort/actors#cardinality",bus:h});const de=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-join-entries-sort/mediators#main",bus:h});new(UG()).ActorRdfJoinSelectivityVariableCounting({name:"urn:comunica:default:rdf-join-selectivity/actors#variable-counting",bus:f});const oe=new(Zc()).MediatorNumber({field:"accuracy",type:"max",ignoreErrors:!0,name:"urn:comunica:default:rdf-join-selectivity/mediators#main",bus:f});new(QG()).ActorRdfMetadataPrimaryTopic({metadataToData:!1,dataToMetadataOnInvalidMetadataGraph:!0,name:"urn:comunica:default:rdf-metadata/actors#primary-topic",bus:p}),new(kG()).ActorRdfMetadataAll({name:"urn:comunica:default:rdf-metadata/actors#all",bus:p});const $=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-metadata/mediators#main",bus:p});new(WG()).ActorRdfMetadataAccumulateCanContainUndefs({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cancontainundefs",bus:y}),new(XG()).ActorRdfMetadataAccumulateCardinality({name:"urn:comunica:default:rdf-metadata-accumulate/actors#cardinality",bus:y}),new(YG()).ActorRdfMetadataAccumulatePageSize({name:"urn:comunica:default:rdf-metadata-accumulate/actors#pagesize",bus:y}),new(eW()).ActorRdfMetadataAccumulateRequestTime({name:"urn:comunica:default:rdf-metadata-accumulate/actors#requesttime",bus:y});const N=new(Ra()).MediatorCombineUnion({field:"metadata",name:"urn:comunica:default:rdf-metadata-accumulate/mediators#main",bus:y});new(iW()).ActorRdfMetadataExtractHydraControls({name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-controls",bus:b}),new(sW()).ActorRdfMetadataExtractHydraCount({predicates:["http://www.w3.org/ns/hydra/core#totalItems","http://rdfs.org/ns/void#triples"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-count",bus:b}),new(uW()).ActorRdfMetadataExtractHydraPagesize({predicates:["http://www.w3.org/ns/hydra/core#itemsPerPage"],name:"urn:comunica:default:rdf-metadata-extract/actors#hydra-pagesize",bus:b}),new(lW()).ActorRdfMetadataExtractRequestTime({name:"urn:comunica:default:rdf-metadata-extract/actors#request-time",bus:b}),new(fW()).ActorRdfMetadataExtractAllowHttpMethods({name:"urn:comunica:default:rdf-metadata-extract/actors#allow-http-methods",bus:b}),new(pW()).ActorRdfMetadataExtractPutAccepted({name:"urn:comunica:default:rdf-metadata-extract/actors#put-accepted",bus:b}),new(bW()).ActorRdfMetadataExtractPatchSparqlUpdate({name:"urn:comunica:default:rdf-metadata-extract/actors#patch-sparql-update",bus:b}),new(mW()).ActorRdfMetadataExtractSparqlService({inferHttpsEndpoint:!0,name:"urn:comunica:default:rdf-metadata-extract/actors#sparql-service",bus:b});const R=new(Ra()).MediatorCombineUnion({filterErrors:!0,field:"metadata",name:"urn:comunica:default:rdf-metadata-extract/mediators#main",bus:b});new(GW()).ActorRdfParseN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},priorityScale:1,name:"urn:comunica:default:rdf-parse/actors#n3",bus:m}),new(nJ()).ActorRdfParseRdfXml({mediaTypePriorities:{"application/rdf+xml":1},mediaTypeFormats:{"application/rdf+xml":"http://www.w3.org/ns/formats/RDF_XML"},priorityScale:.5,name:"urn:comunica:default:rdf-parse/actors#rdfxml",bus:m}),new(SJ()).ActorRdfParseXmlRdfa({mediaTypePriorities:{"application/xml":1,"image/svg+xml":1,"text/xml":1},mediaTypeFormats:{"application/xml":"http://www.w3.org/ns/formats/RDFa","image/svg+xml":"http://www.w3.org/ns/formats/RDFa","text/xml":"http://www.w3.org/ns/formats/RDFa"},priorityScale:.3,name:"urn:comunica:default:rdf-parse/actors#xmlrdfa",bus:m}),new(xJ()).ActorRdfParseShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-parse/actors#shaclc",bus:m});const T=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-parse/mediators#parse",bus:m}),x=new(Ra()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-parse/mediators#mediaType",bus:m});new(DJ()).ActorRdfParseHtml({busRdfParseHtml:g,mediaTypePriorities:{"application/xhtml+xml":.9,"text/html":1},mediaTypeFormats:{"application/xhtml+xml":"http://www.w3.org/ns/formats/HTML","text/html":"http://www.w3.org/ns/formats/HTML"},priorityScale:.2,name:"urn:comunica:default:rdf-parse/actors#html",bus:m}),new($J()).ActorRdfParseHtmlMicrodata({name:"urn:comunica:default:rdf-parse-html/actors#microdata",bus:g}),new(VJ()).ActorRdfParseHtmlRdfa({name:"urn:comunica:default:rdf-parse-html/actors#rdfa",bus:g}),new(XJ()).ActorRdfResolveHypermediaLinksQueueFifo({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/actors#fifo",bus:v});const B=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links-queue/mediators#main",bus:v});new(eX()).ActorRdfResolveHypermediaLinksNext({name:"urn:comunica:default:rdf-resolve-hypermedia-links/actors#next",bus:_});const k=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-resolve-hypermedia-links/mediators#main",bus:_});new(iX()).ActorRdfSerializeN3({mediaTypePriorities:{"application/n-quads":1,"application/n-triples":.8,"application/trig":.95,"text/n3":.35,"text/turtle":.6},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","application/trig":"http://www.w3.org/ns/formats/TriG","text/n3":"http://www.w3.org/ns/formats/N3","text/turtle":"http://www.w3.org/ns/formats/Turtle"},name:"urn:comunica:default:rdf-serialize/actors#n3",bus:w}),new(cX()).ActorRdfSerializeJsonLd({jsonStringifyIndentSpaces:2,mediaTypePriorities:{"application/ld+json":1},mediaTypeFormats:{"application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-serialize/actors#jsonld",bus:w}),new(OX()).ActorRdfSerializeShaclc({mediaTypePriorities:{"text/shaclc":1,"text/shaclc-ext":.5},mediaTypeFormats:{"text/shaclc":"http://www.w3.org/ns/formats/Shaclc","text/shaclc-ext":"http://www.w3.org/ns/formats/ShaclcExtended"},priorityScale:.1,name:"urn:comunica:default:rdf-serialize/actors#shaclc",bus:w});const V=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-serialize/mediators#serialize",bus:w}),J=new(Ra()).MediatorCombineUnion({field:"mediaTypes",name:"urn:comunica:default:rdf-serialize/mediators#mediaType",bus:w}),z=new(Ra()).MediatorCombineUnion({field:"mediaTypeFormats",name:"urn:comunica:default:rdf-serialize/mediators#mediaTypeFormat",bus:w}),Y=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-update-hypermedia/mediators#main",bus:S});new(CX()).ActorRdfUpdateQuadsRdfJsStore({name:"urn:comunica:default:rdf-update-quads/actors#rdfjs-store",bus:A});const te=new(_n()).MediatorRace({name:"urn:comunica:default:rdf-update-quads/mediators#main",bus:A}),ce=new(HX()).ActorHttpFetch({agentOptions:{keepAlive:!0,maxSockets:5},name:"urn:comunica:default:http/actors#fetch",bus:D}),Ae=new(Zc()).MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#no-fallback",bus:D}),Ie=new(Zc()).MediatorNumber({field:"time",type:"min",ignoreErrors:!0,name:"urn:comunica:default:http/mediators#main",bus:L});new(QX()).ActorQueryOperationSource({name:"urn:comunica:default:query-operation/actors#source",bus:E});const Ee=new(Zc()).MediatorNumber({field:"httpRequests",type:"min",ignoreErrors:!0,name:"urn:comunica:default:query-operation/mediators#main",bus:E}),qe=new(_n()).MediatorRace({name:"urn:comunica:default:query-process/mediators#main",bus:O}),G=new(_n()).MediatorRace({name:"urn:comunica:default:query-source-identify/mediators#main",bus:P}),F=new(kX()).MediatorJoinCoefficientsFixed({cpuWeight:10,memoryWeight:1,timeWeight:2,ioWeight:10,name:"urn:comunica:default:rdf-join/mediators#main",bus:j}),H=new(T1()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-context-preprocess-query-source-identify/^3.0.0/components/ActorContextPreprocessQuerySourceIdentify.jsonld#IActorContextPreprocessQuerySourceIdentifyArgs_default_invalidator",bus:U}),re=new(WX()).MediatorAll({name:"urn:comunica:default:http-invalidate/mediators#main",bus:U}),be=new(T1()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-update-quads-hypermedia/^3.0.0/components/ActorRdfUpdateQuadsHypermedia.jsonld#IActorRdfUpdateQuadsHypermediaArgs_default_invalidator",bus:U}),Re=new(T1()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:U}),Ce=new(T1()).ActorHttpInvalidateListenable({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/ActionObserverHttp.jsonld#IActionObserverHttpArgs_default_invalidator",bus:U}),Qe=new(Ra()).MediatorCombineUnion({field:"mergeHandlers",name:"urn:comunica:default:merge-bindings-context/mediators#main",bus:M});new(ZX()).ActorRdfJoinSingle({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-single",bus:j}),new(tK()).ActorRdfJoinMultiEmpty({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-multi-empty",bus:j}),new(nK()).ActorRdfJoinMultiBindSource({selectivityModifier:1e-4,blockSize:16,mediatorJoinEntriesSort:de,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind-source",bus:j}),new(lK()).ActorRdfJoinHash({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-hash",bus:j}),new(fK()).ActorRdfJoinSymmetricHash({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-symmetric-hash",bus:j}),new(pK()).ActorRdfJoinNestedLoop({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-nested-loop",bus:j}),new(bK()).ActorRdfJoinMinusHash({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#minus-hash",bus:j}),new(_K()).ActorRdfJoinMinusHashUndef({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#minus-hash-undef",bus:j}),new(A1()).ActorRdfJoinOptionalHash({canHandleUndefs:!1,blocking:!1,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#optional-hash-def-nonblocking",bus:j}),new(A1()).ActorRdfJoinOptionalHash({canHandleUndefs:!1,blocking:!0,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#optional-hash-def-blocking",bus:j}),new(A1()).ActorRdfJoinOptionalHash({canHandleUndefs:!0,blocking:!1,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#optional-hash-undef-nonblocking",bus:j}),new(A1()).ActorRdfJoinOptionalHash({canHandleUndefs:!0,blocking:!0,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#optional-hash-undef-blocking",bus:j}),new(AK()).ActorRdfJoinOptionalNestedLoop({mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#optional-nested-loop",bus:j}),new(xK()).ActorDereferenceRdfParse({mediatorDereference:Ne,mediatorParse:T,mediatorParseMediatypes:x,mediaMappings:{htm:"text/html",html:"text/html",json:"application/json",jsonld:"application/ld+json",n3:"text/n3",nq:"application/n-quads",nquads:"application/n-quads",nt:"application/n-triples",ntriples:"application/n-triples",owl:"application/rdf+xml",rdf:"application/rdf+xml",rdfxml:"application/rdf+xml",shaclc:"text/shaclc",shaclce:"text/shaclc-ext",shc:"text/shaclc",shce:"text/shaclc-ext",svg:"image/svg+xml",svgz:"image/svg+xml",trig:"application/trig",ttl:"text/turtle",turtle:"text/turtle",xht:"application/xhtml+xml",xhtml:"application/xhtml+xml",xml:"application/xml"},name:"urn:comunica:default:dereference-rdf/actors#parse",bus:d}),new(DK()).ActorRdfParseHtmlScript({mediatorRdfParseMediatypes:x,mediatorRdfParseHandle:T,name:"urn:comunica:default:rdf-parse-html/actors#script",bus:g}),new(CK()).ActorQueryResultSerializeRdf({mediatorRdfSerialize:V,mediatorMediaTypeCombiner:J,mediatorMediaTypeFormatCombiner:z,name:"urn:comunica:default:query-result-serialize/actors#rdf",bus:o}),new(LK()).ActorHttpWayback({mediatorHttp:Ae,name:"urn:comunica:default:http/actors#wayback",bus:L}),new(rY()).ActorRdfParseJsonLd({mediatorHttp:Ie,mediaTypePriorities:{"application/json":.15,"application/ld+json":1},mediaTypeFormats:{"application/json":"http://www.w3.org/ns/formats/JSON-LD","application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:.9,name:"urn:comunica:default:rdf-parse/actors#jsonld",bus:m}),new(aY()).ActorRdfUpdateHypermediaPatchSparqlUpdate({mediatorHttp:Ie,name:"urn:comunica:default:rdf-update-hypermedia/actors#patch-sparql-update",bus:S}),new(oY()).ActorRdfUpdateHypermediaPutLdp({mediatorHttp:Ie,mediatorRdfSerializeMediatypes:J,mediatorRdfSerialize:V,name:"urn:comunica:default:rdf-update-hypermedia/actors#put-ldp",bus:S}),new(pY()).ActorRdfUpdateHypermediaSparql({mediatorHttp:Ie,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,name:"urn:comunica:default:rdf-update-hypermedia/actors#sparql",bus:S}),new(bY()).ActorQueryOperationAsk({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#ask",bus:E}),new(mY()).ActorQueryOperationBgpJoin({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#bgp",bus:E}),new(vY()).ActorQueryOperationDistinctHash({mediatorHashBindings:Z,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#distinct",bus:E}),new(v7()).ActorQueryOperationConstruct({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#construct",bus:E}),new(TY()).ActorQueryOperationFromQuad({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#from",bus:E}),new(EY()).ActorQueryOperationProject({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#project",bus:E}),new(RY()).ActorQueryOperationReducedHash({mediatorHashBindings:Z,cacheSize:100,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#reduced",bus:E}),new(IY()).ActorQueryOperationSlice({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#slice",bus:E}),new(S7()).ActorQueryOperationUnion({mediatorRdfMetadataAccumulate:N,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#union",bus:E}),new(CY()).ActorQueryOperationPathAlt({mediatorRdfMetadataAccumulate:N,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-alt",bus:E}),new(LY()).ActorQueryOperationPathInv({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-inv",bus:E}),new(FY()).ActorQueryOperationPathLink({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-link",bus:E}),new(BY()).ActorQueryOperationPathNps({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-nps",bus:E}),new(HY()).ActorQueryOperationClear({mediatorUpdateQuads:te,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-clear",bus:E}),new(QY()).ActorQueryOperationUpdateCompositeUpdate({mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-composite",bus:E}),new(kY()).ActorQueryOperationCreate({mediatorUpdateQuads:te,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-create",bus:E}),new(GY()).ActorQueryOperationDrop({mediatorUpdateQuads:te,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-drop",bus:E}),new(JY()).ActorQueryOperationLoad({mediatorUpdateQuads:te,mediatorQuerySourceIdentify:G,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-load",bus:E}),new(KY()).ActorQueryOperationJoin({mediatorJoin:F,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#join",bus:E}),new(ZY()).ActorQueryOperationMinus({mediatorJoin:F,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#minus",bus:E}),new(tZ()).ActorQueryOperationPathSeq({mediatorJoin:F,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-seq",bus:E}),new(nZ()).ActorRdfJoinMultiSmallest({mediatorJoinEntriesSort:de,mediatorJoin:F,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest",bus:j}),new(sZ()).ActorRdfJoinMultiSmallestFilterBindings({selectivityModifier:1e-4,blockSize:64,mediatorJoinEntriesSort:de,mediatorJoin:F,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-multi-smallest-filter-bindings",bus:j});const ke=new(uZ()).ActorOptimizeQueryOperationFilterPushdown({name:"urn:comunica:default:optimize-query-operation/actors#filter-pushdown",bus:r,beforeActors:[K]});new(lZ()).ActorDereferenceHttp({mediatorHttp:Ie,maxAcceptHeaderLength:1024,maxAcceptHeaderLengthBrowser:128,name:"urn:comunica:default:dereference/actors#http",bus:c,beforeActors:[Oe]}),new(hZ()).ActorHttpProxy({mediatorHttp:Ie,name:"urn:comunica:default:http/actors#proxy",bus:D,beforeActors:[ce]}),new(yZ()).ActorContextPreprocessQuerySourceIdentify({cacheSize:100,httpInvalidator:H,mediatorQuerySourceIdentify:G,mediatorContextPreprocess:Q,name:"urn:comunica:default:context-preprocess/actors#query-source-identify",bus:s,beforeActors:[q]});const me=new V3.ActorInitQuery({mediatorQueryProcess:qe,mediatorQueryResultSerialize:he,mediatorQueryResultSerializeMediaTypeCombiner:xe,mediatorQueryResultSerializeMediaTypeFormatCombiner:ie,mediatorHttpInvalidate:re,defaultQueryInputFormat:"sparql",allowNoSources:!1,name:"urn:comunica:default:init/actors#query",bus:u});new(gZ()).ActorRdfUpdateQuadsHypermedia({cacheSize:100,httpInvalidator:be,mediatorDereferenceRdf:ge,mediatorMetadata:$,mediatorMetadataExtract:R,mediatorRdfUpdateHypermedia:Y,name:"urn:comunica:default:rdf-update-quads/actors#hypermedia",bus:A});const Se=new(Z8()).ActionObserverHttp({httpInvalidator:Re,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-sparql-json/^3.0.0/components/ActorQueryResultSerializeSparqlJson.jsonld#ActorQueryResultSerializeSparqlJson_default_observer",bus:D}),W=new(n5()).ActionObserverHttp({httpInvalidator:Ce,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-result-serialize-stats/^3.0.0/components/ActorQueryResultSerializeStats.jsonld#ActorQueryResultSerializeStats_default_observer",bus:D});new(OZ()).ActorQuerySourceIdentifyHypermediaQpf({mediatorMetadata:$,mediatorMetadataExtract:R,mediatorDereferenceRdf:ge,mediatorMergeBindingsContext:Qe,subjectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject",predicateUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate",objectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#object",graphUri:"http://www.w3.org/ns/sparql-service-description#graph",name:"urn:comunica:default:query-source-identify-hypermedia/actors#qpf",bus:l}),new(xZ()).ActorQuerySourceIdentifyHypermediaSparql({mediatorHttp:Ie,mediatorMergeBindingsContext:Qe,checkUrlSuffix:!0,forceHttpGet:!1,cacheSize:1024,bindMethod:"values",countTimeout:3e3,name:"urn:comunica:default:rdf-resolve-quad-pattern/actors#sparql",bus:l}),new(VZ()).ActorQuerySourceIdentifyHypermediaNone({mediatorMergeBindingsContext:Qe,name:"urn:comunica:default:query-source-identify-hypermedia/actors#none",bus:l}),new(Dee()).ActorQueryOperationExtend({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#extend",bus:E}),new(Cee()).ActorQueryOperationFilter({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#filter",bus:E}),new(Mee()).ActorQueryOperationGroup({mediatorHashBindings:Z,mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#group",bus:E}),new(qee()).ActorQueryOperationLeftJoin({mediatorJoin:F,mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#leftjoin",bus:E}),new(Uee()).ActorQueryOperationNop({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#nop",bus:E}),new(Qee()).ActorQueryOperationOrderBy({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#orderby",bus:E}),new(kee()).ActorQueryOperationService({forceSparqlEndpoint:!1,mediatorMergeBindingsContext:Qe,mediatorQuerySourceIdentify:G,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#service",bus:E}),new(Gee()).ActorQueryOperationValues({mediatorMergeBindingsContext:Qe,name:"urn:comunica:default:query-operation/actors#values",bus:E}),new(Jee()).ActorQueryOperationPathOneOrMore({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-one-or-more",bus:E}),new(Kee()).ActorQueryOperationPathZeroOrMore({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-zero-or-more",bus:E}),new(Zee()).ActorQueryOperationPathZeroOrOne({mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#path-zero-or-one",bus:E}),new(tte()).ActorQueryOperationUpdateDeleteInsert({mediatorUpdateQuads:te,mediatorMergeBindingsContext:Qe,mediatorQueryOperation:Ee,name:"urn:comunica:default:query-operation/actors#update-delete-insert",bus:E});const we=new(ite()).ActorQueryProcessSequential({mediatorContextPreprocess:Q,mediatorQueryParse:X,mediatorOptimizeQueryOperation:fe,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:Qe,name:"urn:comunica:default:query-process/actors#sequential",bus:O}),Te=new(dte()).ActorQuerySourceIdentifyHypermedia({cacheSize:100,maxIterators:64,aggregateTraversalStore:!0,mediatorDereferenceRdf:ge,mediatorMetadata:$,mediatorMetadataExtract:R,mediatorMetadataAccumulate:N,mediatorQuerySourceIdentifyHypermedia:ae,mediatorRdfResolveHypermediaLinks:k,mediatorRdfResolveHypermediaLinksQueue:B,mediatorMergeBindingsContext:Qe,name:"urn:comunica:default:query-source-identify/actors#hypermedia",bus:P});new(hte()).ActorRdfJoinNone({mediatorMergeBindingsContext:Qe,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-none",bus:j}),new(dB()).ActorRdfJoinMultiBind({bindOrder:"depth-first",selectivityModifier:1e-4,mediatorJoinEntriesSort:de,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:Qe,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#inner-multi-bind",bus:j}),new(bte()).ActorRdfJoinOptionalBind({bindOrder:"depth-first",selectivityModifier:1e-6,mediatorQueryOperation:Ee,mediatorMergeBindingsContext:Qe,mediatorJoinSelectivity:oe,name:"urn:comunica:default:rdf-join/actors#optional-bind",bus:j}),new(Z8()).ActorQueryResultSerializeSparqlJson({emitMetadata:!0,httpObserver:Se,mediaTypePriorities:{"application/sparql-results+json":.8},mediaTypeFormats:{"application/sparql-results+json":"http://www.w3.org/ns/formats/SPARQL_Results_JSON"},name:"urn:comunica:default:query-result-serialize/actors#sparql-json",bus:o}),new(n5()).ActorQueryResultSerializeStats({httpObserver:W,mediaTypePriorities:{stats:.5},mediaTypeFormats:{stats:"https://comunica.linkeddatafragments.org/#results_stats"},name:"urn:comunica:default:query-result-serialize/actors#stats",bus:o}),new(mte()).ActorQueryProcessExplainParsed({queryProcessor:we,name:"urn:comunica:default:query-process/actors#explain-parsed",bus:O}),new(vte()).ActorQueryProcessExplainLogical({queryProcessor:we,name:"urn:comunica:default:query-process/actors#explain-logical",bus:O}),new(Ste()).ActorQueryProcessExplainPhysical({queryProcessor:we,name:"urn:comunica:default:query-process/actors#explain-physical",bus:O});const Le=new(Ate()).ActorOptimizeQueryOperationPruneEmptySourceOperations({useAskIfSupported:!1,name:"urn:comunica:default:optimize-query-operation/actors#prune-empty-source-operations",bus:r,beforeActors:[ke]});new(rA()).ActorQuerySourceIdentifyRdfJs({mediatorMergeBindingsContext:Qe,name:"urn:comunica:default:query-source-identify/actors#rdfjs",bus:P,beforeActors:[Te]}),new(Ote()).ActorQuerySourceIdentifySerialized({mediatorRdfParse:T,mediatorQuerySourceIdentify:G,name:"urn:comunica:default:query-source-identify/actors#serialized",bus:P,beforeActors:[Te]});const $e=new(xte()).ActorOptimizeQueryOperationJoinConnected({name:"urn:comunica:default:optimize-query-operation/actors#join-connected",bus:r,beforeActors:[Le]}),We=new(Pte()).ActorOptimizeQueryOperationBgpToJoin({name:"urn:comunica:default:optimize-query-operation/actors#bgp-to-join",bus:r,beforeActors:[$e]}),tt=new(Nte()).ActorOptimizeQueryOperationJoinBgp({name:"urn:comunica:default:optimize-query-operation/actors#join-bgp",bus:r,beforeActors:[We]}),lt=new(jte()).ActorOptimizeQueryOperationAssignSourcesExhaustive({name:"urn:comunica:default:optimize-query-operation/actors#assign-sources-exhaustive",bus:r,beforeActors:[tt]});return new(Mte()).ActorOptimizeQueryOperationDescribeToConstructsSubject({name:"urn:comunica:default:optimize-query-operation/actors#describe-to-constructs-subject",bus:r,beforeActors:[lt]}),me};Object.defineProperty(yb,"__esModule",{value:!0});yb.QueryEngine=void 0;const qte=V3,Bte=Fte;class Ute extends qte.QueryEngineBase{constructor(e=Bte()){super(e)}}yb.QueryEngine=Ute;(function(t){var e=I&&I.__createBinding||(Object.create?function(s,n,r,a){a===void 0&&(a=r);var o=Object.getOwnPropertyDescriptor(n,r);(!o||("get"in o?!n.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return n[r]}}),Object.defineProperty(s,a,o)}:function(s,n,r,a){a===void 0&&(a=r),s[a]=n[r]}),u=I&&I.__exportStar||function(s,n){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&e(n,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),u(yb,t)})(D9);var Js=globalThis&&globalThis.__awaiter||function(t,e,u,s){function n(r){return r instanceof u?r:new u(function(a){a(r)})}return new(u||(u=Promise))(function(r,a){function o(d){try{c(s.next(d))}catch(h){a(h)}}function l(d){try{c(s.throw(d))}catch(h){a(h)}}function c(d){d.done?r(d.value):n(d.value).then(o,l)}c((s=s.apply(t,e||[])).next())})};const Zb=new D9.QueryEngine;function Hte(t,e){return Js(this,void 0,void 0,function*(){let u=yield $te(e||t);return u=u.replace("{url}",t),yield Qte(u)})}function $te(t){return Js(this,void 0,void 0,function*(){var e,u;const n=(e=(yield fetch(t,{method:"HEAD"})).headers.get("Link-Template"))===null||e===void 0?void 0:e.split(",").map(a=>{const o=a.trim().split(";"),l=o[0].slice(1,-1),c=o[1].trim().split("=")[1].slice(1,-1);return{url:l,rel:c}}),r=(u=n==null?void 0:n.find(a=>a.rel==="eventlog"))===null||u===void 0?void 0:u.url;if(!r)throw new Error("No event log found");return console.log("Found event log: "+r),r})}function Qte(t){return Js(this,void 0,void 0,function*(){const e=` + PREFIX ldes: + PREFIX tree: + PREFIX as: + + SELECT ?member + WHERE { + ?id a ldes:EventStream; + tree:member ?member. + }`;return(yield Zb.queryBindings(e,{sources:[t],lenient:!0})).transform({map:s=>Js(this,void 0,void 0,function*(){const n=s.get("member").value;return yield Vte(n)})})})}function Vte(t){return Js(this,void 0,void 0,function*(){const e=` + PREFIX as: + + SELECT ?id ?actorUrl ?actorName ?object ?targetUrl ?targetName ?context + WHERE { + ?id as:actor ?actorUrl; + as:object ?object. + OPTIONAL { ?id as:target ?targetUrl. } + OPTIONAL { ?actorUrl as:name ?actorName. } + OPTIONAL { ?targetUrl as:name ?targetName. } + OPTIONAL { ?id as:context ?context. } + } LIMIT 1`,u=yield(yield Zb.queryBindings(e,{sources:[t],lenient:!0})).toArray();u.length!==1&&console.warn(`Found ${u.length} results for content, expected 1.`);const s=u.map(n=>{var r,a,o,l;return{id:n.get("id").value,actorUrl:n.get("actorUrl").value,actorName:(r=n.get("actorName"))===null||r===void 0?void 0:r.value,object:n.get("object").value,targetUrl:(a=n.get("targetUrl"))===null||a===void 0?void 0:a.value,targetName:(o=n.get("targetName"))===null||o===void 0?void 0:o.value,context:(l=n.get("context"))===null||l===void 0?void 0:l.value,types:[],objectTypes:[],objectRelationship:{}}})[0];return s.types=yield hM(s.id,t),s.objectTypes=yield hM(s.object,t),s.objectTypes.includes("https://www.w3.org/ns/activitystreams#Relationship")&&(s.objectRelationship=yield kte(s.object,t)),s})}function hM(t,e){return Js(this,void 0,void 0,function*(){if(!t)return[];const u=` + SELECT ?type + WHERE { + <${t}> a ?type. + }`;return(yield(yield Zb.queryBindings(u,{sources:[e],lenient:!0})).toArray()).map(n=>n.get("type").value)})}function kte(t,e){return Js(this,void 0,void 0,function*(){if(!t)return{object:void 0,relationship:void 0,subject:void 0};const u=` + PREFIX as: + + SELECT ?subject ?relationship ?object + WHERE { + <${t}> as:subject ?subject; + as:relationship ?relationship; + as:object ?object. + } LIMIT 1`;return(yield(yield Zb.queryBindings(u,{sources:[e],lenient:!0})).toArray()).map(n=>({subject:n.get("subject").value,relationship:n.get("relationship").value,object:n.get("object").value}))[0]||{}})}const zte={name:"ScholarlyBrowser",components:{MDBContainer:F$,MDBCard:m$,MDBCardBody:v$,MDBCardText:A$,MDBInput:Y$,MDBCardTitle:S$},data(){return{artifactUrl:"",serviceNodeUrl:"",members:[],loading:!1,noEventLog:!1,lastUpdated:0}},created(){this.$watch("$route.query.artifactUrl",()=>{this.artifactUrl=this.$route.query.artifactUrl||"",this.artifactUrl.trim(),this.urlUpdated()}),this.$watch("$route.query.serviceNodeUrl",()=>{this.serviceNodeUrl=this.$route.query.serviceNodeUrl||"",this.serviceNodeUrl.trim(),this.urlUpdated()})},methods:{async urlUpdated(){if(this.noEventLog=!1,this.loading=!1,this.members=[],!(Date.now()-this.lastUpdated<1e3)&&(this.lastUpdated=Date.now(),this.$router.push({query:{artifactUrl:this.artifactUrl,serviceNodeUrl:this.serviceNodeUrl}}),!!this.artifactUrl)){this.loading=!0;try{const t=await Hte(this.artifactUrl.trim(),this.serviceNodeUrl.trim());t.on("data",async e=>{e=await e,e.mainTypes=await this.getMainTypes(e.types),e.secondaryTypes=await this.getSecondaryTypes(e.types),e.objectTypes=await Promise.all(await(e==null?void 0:e.objectTypes.map(async u=>await this.getPrefixedProperty(u))))??[],this.members.push(e),this.loading=!1}),t.on("end",()=>{this.loading=!1})}catch{this.noEventLog=!0,this.loading=!1;return}}},async getMainTypes(t){return await Promise.all(t.filter(e=>e.startsWith("https://www.w3.org/ns/activitystreams#")).map(async e=>await this.getPrefixedProperty(e)))},async getSecondaryTypes(t){return await Promise.all(t.filter(e=>!e.startsWith("https://www.w3.org/ns/activitystreams#")).map(async e=>await this.getPrefixedProperty(e)))},async getPrefixedProperty(t){const e=await fetch(`https://prefixcc-proxy.smessie.com/?q=${encodeURIComponent(t)}`,{method:"HEAD"});return e.url.includes(`/?q=${encodeURIComponent(t)}`)?t:e.url.split("prefixcc-proxy.smessie.com/")[1]},getStyleByMainType(t){switch(t){case"as:Create":return"success";case"as:Remove":return"dark";case"as:Announce":return"warning";case"as:Offer":return"primary";case"as:Accept":return"info";case"as:Reject":return"danger";case"as:Undo":return"secondary";case"as:Update":default:return"light"}}}},Gte=""+new URL("../forkme_right_gray.png",import.meta.url).href;const Wte=(t,e)=>{const u=t.__vccOpts||t;for(const[s,n]of e)u[s]=n;return u},Di=t=>(UU("data-v-e979a9d8"),t=t(),HU(),t),Jte=Di(()=>Bt("a",{href:"https://github.com/MellonScholarlyCommunication/scholarly-browser"},[Bt("img",{loading:"lazy",width:"149",height:"149",src:Gte,class:"attachment-full size-full fork",alt:"Fork me on GitHub","data-recalc-dims":"1"})],-1)),Xte=Di(()=>Bt("h1",null,"Scholarly Browser",-1)),Kte=Di(()=>Bt("small",null,"Provide an optional service node URL to retrieve the event notifications from the service node.",-1)),Yte={key:0,class:"status-message"},Zte={key:1,class:"status-message"},ere=Di(()=>Bt("b",null,"No event log found.",-1)),tre=Di(()=>Bt("b",null,"Actor: ",-1)),rre=["href"],nre=Di(()=>Bt("b",null,"Target: ",-1)),ire=["href"],are={key:1},sre=Di(()=>Bt("b",null,"Context: ",-1)),ore=["href"],ure={key:1},cre=Di(()=>Bt("b",null,"Object: ",-1)),lre=["href"],dre={key:0},fre=Di(()=>Bt("b",null,"Subject: ",-1)),hre=["href"],pre=Di(()=>Bt("b",null,"Relationship: ",-1)),yre=["href"],bre=Di(()=>Bt("b",null,"Object: ",-1)),gre=["href"];function mre(t,e,u,s,n,r){const a=po("MDBInput"),o=po("MDBCardText"),l=po("MDBCardBody"),c=po("MDBCard"),d=po("MDBCardTitle"),h=po("MDBContainer");return jt(),nr(Rn,null,[Jte,ir(h,null,{default:Lr(()=>[Xte,ir(c,null,{default:Lr(()=>[ir(l,{class:"w-100"},{default:Lr(()=>[ir(o,null,{default:Lr(()=>[ir(a,{label:"Artifact URL",modelValue:n.artifactUrl,"onUpdate:modelValue":e[0]||(e[0]=f=>n.artifactUrl=f),onChange:r.urlUpdated},null,8,["modelValue","onChange"]),ir(a,{label:"Service Node URL",modelValue:n.serviceNodeUrl,"onUpdate:modelValue":e[1]||(e[1]=f=>n.serviceNodeUrl=f),onChange:r.urlUpdated,class:"mt-3"},null,8,["modelValue","onChange"]),Kte]),_:1})]),_:1})]),_:1}),ir(c,null,{default:Lr(()=>[ir(l,{class:"w-100"},{default:Lr(()=>[ir(o,null,{default:Lr(()=>[n.loading?(jt(),nr("p",Yte,"Loading notifications...")):Vr("",!0),n.noEventLog?(jt(),nr("p",Zte,[ere,m0(" Make sure the provided URL contains a ldes:EventStream Link header.")])):Vr("",!0),(jt(!0),nr(Rn,null,qA(n.members,(f,p)=>(jt(),xi(c,{key:p,border:r.getStyleByMainType(f.mainTypes[0])},{default:Lr(()=>[ir(l,{class:"w-100",style:{"padding-bottom":"0"}},{default:Lr(()=>[ir(d,null,{default:Lr(()=>[m0(Or(f.mainTypes.join(", ")),1)]),_:2},1024),ir(d,{subtitle:"",class:"mb-2 text-muted"},{default:Lr(()=>[m0(Or(f.secondaryTypes.join(", ")),1)]),_:2},1024),ir(o,null,{default:Lr(()=>[Bt("p",null,[tre,Bt("a",{href:f.actorUrl},Or(f.actorName??f.actorUrl),9,rre)]),Bt("p",null,[nre,f.targetUrl?(jt(),nr("a",{key:0,href:f.targetUrl},Or(f.targetName??f.targetUrl),9,ire)):(jt(),nr("i",are,""))]),Bt("p",null,[sre,f.context?(jt(),nr("a",{key:0,href:"?url="+f.context},Or(f.context),9,ore)):(jt(),nr("i",ure,""))]),Bt("p",null,[cre,Bt("a",{href:"?url="+f.object},Or(f.object),9,lre)]),Bt("ul",null,[(jt(!0),nr(Rn,null,qA(f.objectTypes,(y,b)=>(jt(),nr("li",{key:b},[m0(Or(y)+" ",1),y==="as:Relationship"?(jt(),nr("ul",dre,[Bt("li",null,[fre,Bt("a",{href:f.objectRelationship.subject},Or(f.objectRelationship.subject),9,hre)]),Bt("li",null,[pre,Bt("a",{href:f.objectRelationship.relationship},Or(f.objectRelationship.relationship),9,yre)]),Bt("li",null,[bre,Bt("a",{href:f.objectRelationship.object},Or(f.objectRelationship.object),9,gre)])])):Vr("",!0)]))),128))])]),_:2},1024)]),_:2},1024)]),_:2},1032,["border"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})],64)}const _re=Wte(zte,[["render",mre],["__scopeId","data-v-e979a9d8"]]),hB=Ri({__name:"App",setup(t){return(e,u)=>(jt(),nr("main",null,[ir(_re)]))}});/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const So=typeof window<"u";function vre(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Zt=Object.assign;function IS(t,e){const u={};for(const s in e){const n=e[s];u[s]=Oi(n)?n.map(t):t(n)}return u}const L0=()=>{},Oi=Array.isArray,wre=/\/$/,Sre=t=>t.replace(wre,"");function PS(t,e,u="/"){let s,n={},r="",a="";const o=e.indexOf("#");let l=e.indexOf("?");return o=0&&(l=-1),l>-1&&(s=e.slice(0,l),r=e.slice(l+1,o>-1?o:e.length),n=t(r)),o>-1&&(s=s||e.slice(0,o),a=e.slice(o,e.length)),s=Ore(s??e,u),{fullPath:s+(r&&"?")+r+a,path:s,query:n,hash:a}}function Tre(t,e){const u=e.query?t(e.query):"";return e.path+(u&&"?")+u+(e.hash||"")}function pM(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Are(t,e,u){const s=e.matched.length-1,n=u.matched.length-1;return s>-1&&s===n&&$o(e.matched[s],u.matched[n])&&pB(e.params,u.params)&&t(e.query)===t(u.query)&&e.hash===u.hash}function $o(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function pB(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const u in t)if(!Ere(t[u],e[u]))return!1;return!0}function Ere(t,e){return Oi(t)?yM(t,e):Oi(e)?yM(e,t):t===e}function yM(t,e){return Oi(e)?t.length===e.length&&t.every((u,s)=>u===e[s]):t.length===1&&t[0]===e}function Ore(t,e){if(t.startsWith("/"))return t;if(!t)return e;const u=e.split("/"),s=t.split("/"),n=s[s.length-1];(n===".."||n===".")&&s.push("");let r=u.length-1,a,o;for(a=0;a1&&r--;else break;return u.slice(0,r).join("/")+"/"+s.slice(a-(a===s.length?1:0)).join("/")}var Z0;(function(t){t.pop="pop",t.push="push"})(Z0||(Z0={}));var M0;(function(t){t.back="back",t.forward="forward",t.unknown=""})(M0||(M0={}));function Rre(t){if(!t)if(So){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Sre(t)}const xre=/^[^#]+#/;function Ire(t,e){return t.replace(xre,"#")+e}function Pre(t,e){const u=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-u.left-(e.left||0),top:s.top-u.top-(e.top||0)}}const eg=()=>({left:window.pageXOffset,top:window.pageYOffset});function Dre(t){let e;if("el"in t){const u=t.el,s=typeof u=="string"&&u.startsWith("#"),n=typeof u=="string"?s?document.getElementById(u.slice(1)):document.querySelector(u):u;if(!n)return;e=Pre(n,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function bM(t,e){return(history.state?history.state.position-e:-1)+t}const _3=new Map;function Nre(t,e){_3.set(t,e)}function Cre(t){const e=_3.get(t);return _3.delete(t),e}let jre=()=>location.protocol+"//"+location.host;function yB(t,e){const{pathname:u,search:s,hash:n}=e,r=t.indexOf("#");if(r>-1){let o=n.includes(t.slice(r))?t.slice(r).length:1,l=n.slice(o);return l[0]!=="/"&&(l="/"+l),pM(l,"")}return pM(u,t)+s+n}function Lre(t,e,u,s){let n=[],r=[],a=null;const o=({state:f})=>{const p=yB(t,location),y=u.value,b=e.value;let m=0;if(f){if(u.value=p,e.value=f,a&&a===y){a=null;return}m=b?f.position-b.position:0}else s(p);n.forEach(g=>{g(u.value,y,{delta:m,type:Z0.pop,direction:m?m>0?M0.forward:M0.back:M0.unknown})})};function l(){a=u.value}function c(f){n.push(f);const p=()=>{const y=n.indexOf(f);y>-1&&n.splice(y,1)};return r.push(p),p}function d(){const{history:f}=window;f.state&&f.replaceState(Zt({},f.state,{scroll:eg()}),"")}function h(){for(const f of r)f();r=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:h}}function gM(t,e,u,s=!1,n=!1){return{back:t,current:e,forward:u,replaced:s,position:window.history.length,scroll:n?eg():null}}function Mre(t){const{history:e,location:u}=window,s={value:yB(t,u)},n={value:e.state};n.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,d){const h=t.indexOf("#"),f=h>-1?(u.host&&document.querySelector("base")?t:t.slice(h))+l:jre()+t+l;try{e[d?"replaceState":"pushState"](c,"",f),n.value=c}catch(p){console.error(p),u[d?"replace":"assign"](f)}}function a(l,c){const d=Zt({},e.state,gM(n.value.back,l,n.value.forward,!0),c,{position:n.value.position});r(l,d,!0),s.value=l}function o(l,c){const d=Zt({},n.value,e.state,{forward:l,scroll:eg()});r(d.current,d,!0);const h=Zt({},gM(s.value,l,null),{position:d.position+1},c);r(l,h,!1),s.value=l}return{location:s,state:n,push:o,replace:a}}function Fre(t){t=Rre(t);const e=Mre(t),u=Lre(t,e.state,e.location,e.replace);function s(r,a=!0){a||u.pauseListeners(),history.go(r)}const n=Zt({location:"",base:t,go:s,createHref:Ire.bind(null,t)},e,u);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>e.state.value}),n}function qre(t){return typeof t=="string"||t&&typeof t=="object"}function bB(t){return typeof t=="string"||typeof t=="symbol"}const Ia={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},gB=Symbol("");var mM;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(mM||(mM={}));function Qo(t,e){return Zt(new Error,{type:t,[gB]:!0},e)}function da(t,e){return t instanceof Error&&gB in t&&(e==null||!!(t.type&e))}const _M="[^/]+?",Bre={sensitive:!1,strict:!1,start:!0,end:!0},Ure=/[.+*?^${}()[\]/\\]/g;function Hre(t,e){const u=Zt({},Bre,e),s=[];let n=u.start?"^":"";const r=[];for(const c of t){const d=c.length?[]:[90];u.strict&&!c.length&&(n+="/");for(let h=0;he.length?e.length===1&&e[0]===40+40?1:-1:0}function Qre(t,e){let u=0;const s=t.score,n=e.score;for(;u0&&e[e.length-1]<0}const Vre={type:0,value:""},kre=/[a-zA-Z0-9_]/;function zre(t){if(!t)return[[]];if(t==="/")return[[Vre]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(p){throw new Error(`ERR (${u})/"${c}": ${p}`)}let u=0,s=u;const n=[];let r;function a(){r&&n.push(r),r=[]}let o=0,l,c="",d="";function h(){c&&(u===0?r.push({type:0,value:c}):u===1||u===2||u===3?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;o{a(v)}:L0}function a(d){if(bB(d)){const h=s.get(d);h&&(s.delete(d),u.splice(u.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=u.indexOf(d);h>-1&&(u.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function o(){return u}function l(d){let h=0;for(;h=0&&(d.record.path!==u[h].record.path||!mB(d,u[h]));)h++;u.splice(h,0,d),d.record.name&&!SM(d)&&s.set(d.record.name,d)}function c(d,h){let f,p={},y,b;if("name"in d&&d.name){if(f=s.get(d.name),!f)throw Qo(1,{location:d});b=f.record.name,p=Zt(wM(h.params,f.keys.filter(v=>!v.optional).map(v=>v.name)),d.params&&wM(d.params,f.keys.map(v=>v.name))),y=f.stringify(p)}else if("path"in d)y=d.path,f=u.find(v=>v.re.test(y)),f&&(p=f.parse(y),b=f.record.name);else{if(f=h.name?s.get(h.name):u.find(v=>v.re.test(h.path)),!f)throw Qo(1,{location:d,currentLocation:h});b=f.record.name,p=Zt({},h.params,d.params),y=f.stringify(p)}const m=[];let g=f;for(;g;)m.unshift(g.record),g=g.parent;return{name:b,path:y,params:p,matched:m,meta:Kre(m)}}return t.forEach(d=>r(d)),{addRoute:r,resolve:c,removeRoute:a,getRoutes:o,getRecordMatcher:n}}function wM(t,e){const u={};for(const s of e)s in t&&(u[s]=t[s]);return u}function Jre(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Xre(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Xre(t){const e={},u=t.props||!1;if("component"in t)e.default=u;else for(const s in t.components)e[s]=typeof u=="object"?u[s]:u;return e}function SM(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Kre(t){return t.reduce((e,u)=>Zt(e,u.meta),{})}function TM(t,e){const u={};for(const s in t)u[s]=s in e?e[s]:t[s];return u}function mB(t,e){return e.children.some(u=>u===t||mB(t,u))}const _B=/#/g,Yre=/&/g,Zre=/\//g,ene=/=/g,tne=/\?/g,vB=/\+/g,rne=/%5B/g,nne=/%5D/g,wB=/%5E/g,ine=/%60/g,SB=/%7B/g,ane=/%7C/g,TB=/%7D/g,sne=/%20/g;function iA(t){return encodeURI(""+t).replace(ane,"|").replace(rne,"[").replace(nne,"]")}function one(t){return iA(t).replace(SB,"{").replace(TB,"}").replace(wB,"^")}function v3(t){return iA(t).replace(vB,"%2B").replace(sne,"+").replace(_B,"%23").replace(Yre,"%26").replace(ine,"`").replace(SB,"{").replace(TB,"}").replace(wB,"^")}function une(t){return v3(t).replace(ene,"%3D")}function cne(t){return iA(t).replace(_B,"%23").replace(tne,"%3F")}function lne(t){return t==null?"":cne(t).replace(Zre,"%2F")}function tb(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function dne(t){const e={};if(t===""||t==="?")return e;const s=(t[0]==="?"?t.slice(1):t).split("&");for(let n=0;nr&&v3(r)):[s&&v3(s)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+u,r!=null&&(e+="="+r))})}return e}function fne(t){const e={};for(const u in t){const s=t[u];s!==void 0&&(e[u]=Oi(s)?s.map(n=>n==null?null:""+n):s==null?s:""+s)}return e}const hne=Symbol(""),EM=Symbol(""),aA=Symbol(""),AB=Symbol(""),w3=Symbol("");function y0(){let t=[];function e(s){return t.push(s),()=>{const n=t.indexOf(s);n>-1&&t.splice(n,1)}}function u(){t=[]}return{add:e,list:()=>t.slice(),reset:u}}function Fa(t,e,u,s,n){const r=s&&(s.enterCallbacks[n]=s.enterCallbacks[n]||[]);return()=>new Promise((a,o)=>{const l=h=>{h===!1?o(Qo(4,{from:u,to:e})):h instanceof Error?o(h):qre(h)?o(Qo(2,{from:e,to:h})):(r&&s.enterCallbacks[n]===r&&typeof h=="function"&&r.push(h),a())},c=t.call(s&&s.instances[n],e,u,l);let d=Promise.resolve(c);t.length<3&&(d=d.then(l)),d.catch(h=>o(h))})}function DS(t,e,u,s){const n=[];for(const r of t)for(const a in r.components){let o=r.components[a];if(!(e!=="beforeRouteEnter"&&!r.instances[a]))if(pne(o)){const c=(o.__vccOpts||o)[e];c&&n.push(Fa(c,u,s,r,a))}else{let l=o();n.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${r.path}"`));const d=vre(c)?c.default:c;r.components[a]=d;const f=(d.__vccOpts||d)[e];return f&&Fa(f,u,s,r,a)()}))}}return n}function pne(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function OM(t){const e=Ti(aA),u=Ti(AB),s=sr(()=>e.resolve(qt(t.to))),n=sr(()=>{const{matched:l}=s.value,{length:c}=l,d=l[c-1],h=u.matched;if(!d||!h.length)return-1;const f=h.findIndex($o.bind(null,d));if(f>-1)return f;const p=RM(l[c-2]);return c>1&&RM(d)===p&&h[h.length-1].path!==p?h.findIndex($o.bind(null,l[c-2])):f}),r=sr(()=>n.value>-1&&mne(u.params,s.value.params)),a=sr(()=>n.value>-1&&n.value===u.matched.length-1&&pB(u.params,s.value.params));function o(l={}){return gne(l)?e[qt(t.replace)?"replace":"push"](qt(t.to)).catch(L0):Promise.resolve()}return{route:s,href:sr(()=>s.value.href),isActive:r,isExactActive:a,navigate:o}}const yne=Ri({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:OM,setup(t,{slots:e}){const u=ob(OM(t)),{options:s}=Ti(aA),n=sr(()=>({[xM(t.activeClass,s.linkActiveClass,"router-link-active")]:u.isActive,[xM(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:u.isExactActive}));return()=>{const r=e.default&&e.default(u);return t.custom?r:x9("a",{"aria-current":u.isExactActive?t.ariaCurrentValue:null,href:u.href,onClick:u.navigate,class:n.value},r)}}}),bne=yne;function gne(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function mne(t,e){for(const u in e){const s=e[u],n=t[u];if(typeof s=="string"){if(s!==n)return!1}else if(!Oi(n)||n.length!==s.length||s.some((r,a)=>r!==n[a]))return!1}return!0}function RM(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const xM=(t,e,u)=>t??e??u,_ne=Ri({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:u}){const s=Ti(w3),n=sr(()=>t.route||s.value),r=Ti(EM,0),a=sr(()=>{let c=qt(r);const{matched:d}=n.value;let h;for(;(h=d[c])&&!h.components;)c++;return c}),o=sr(()=>n.value.matched[a.value]);x1(EM,sr(()=>a.value+1)),x1(hne,o),x1(w3,n);const l=En();return Io(()=>[l.value,o.value,t.name],([c,d,h],[f,p,y])=>{d&&(d.instances[h]=c,p&&p!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!$o(d,p)||!f)&&(d.enterCallbacks[h]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=n.value,d=t.name,h=o.value,f=h&&h.components[d];if(!f)return IM(u.default,{Component:f,route:c});const p=h.props[d],y=p?p===!0?c.params:typeof p=="function"?p(c):p:null,m=x9(f,Zt({},y,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(h.instances[d]=null)},ref:l}));return IM(u.default,{Component:m,route:c})||m}}});function IM(t,e){if(!t)return null;const u=t(e);return u.length===1?u[0]:u}const vne=_ne;function wne(t){const e=Wre(t.routes,t),u=t.parseQuery||dne,s=t.stringifyQuery||AM,n=t.history,r=y0(),a=y0(),o=y0(),l=IU(Ia);let c=Ia;So&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=IS.bind(null,ge=>""+ge),h=IS.bind(null,lne),f=IS.bind(null,tb);function p(ge,de){let oe,$;return bB(ge)?(oe=e.getRecordMatcher(ge),$=de):$=ge,e.addRoute($,oe)}function y(ge){const de=e.getRecordMatcher(ge);de&&e.removeRoute(de)}function b(){return e.getRoutes().map(ge=>ge.record)}function m(ge){return!!e.getRecordMatcher(ge)}function g(ge,de){if(de=Zt({},de||l.value),typeof ge=="string"){const x=PS(u,ge,de.path),B=e.resolve({path:x.path},de),k=n.createHref(x.fullPath);return Zt(x,B,{params:f(B.params),hash:tb(x.hash),redirectedFrom:void 0,href:k})}let oe;if("path"in ge)oe=Zt({},ge,{path:PS(u,ge.path,de.path).path});else{const x=Zt({},ge.params);for(const B in x)x[B]==null&&delete x[B];oe=Zt({},ge,{params:h(x)}),de.params=h(de.params)}const $=e.resolve(oe,de),N=ge.hash||"";$.params=d(f($.params));const R=Tre(s,Zt({},ge,{hash:one(N),path:$.path})),T=n.createHref(R);return Zt({fullPath:R,hash:N,query:s===AM?fne(ge.query):ge.query||{}},$,{redirectedFrom:void 0,href:T})}function v(ge){return typeof ge=="string"?PS(u,ge,l.value.path):Zt({},ge)}function _(ge,de){if(c!==ge)return Qo(8,{from:de,to:ge})}function w(ge){return D(ge)}function S(ge){return w(Zt(v(ge),{replace:!0}))}function A(ge){const de=ge.matched[ge.matched.length-1];if(de&&de.redirect){const{redirect:oe}=de;let $=typeof oe=="function"?oe(ge):oe;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=v($):{path:$},$.params={}),Zt({query:ge.query,hash:ge.hash,params:"path"in $?{}:ge.params},$)}}function D(ge,de){const oe=c=g(ge),$=l.value,N=ge.state,R=ge.force,T=ge.replace===!0,x=A(oe);if(x)return D(Zt(v(x),{state:typeof x=="object"?Zt({},N,x.state):N,force:R,replace:T}),de||oe);const B=oe;B.redirectedFrom=de;let k;return!R&&Are(s,$,oe)&&(k=Qo(16,{to:B,from:$}),he($,$,!0,!1)),(k?Promise.resolve(k):O(B,$)).catch(V=>da(V)?da(V,2)?V:X(V):K(V,B,$)).then(V=>{if(V){if(da(V,2))return D(Zt({replace:T},v(V.to),{state:typeof V.to=="object"?Zt({},N,V.to.state):N,force:R}),de||B)}else V=j(B,$,!0,T,N);return P(B,$,V),V})}function L(ge,de){const oe=_(ge,de);return oe?Promise.reject(oe):Promise.resolve()}function E(ge){const de=ae.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(ge):ge()}function O(ge,de){let oe;const[$,N,R]=Sne(ge,de);oe=DS($.reverse(),"beforeRouteLeave",ge,de);for(const x of $)x.leaveGuards.forEach(B=>{oe.push(Fa(B,ge,de))});const T=L.bind(null,ge,de);return oe.push(T),Ne(oe).then(()=>{oe=[];for(const x of r.list())oe.push(Fa(x,ge,de));return oe.push(T),Ne(oe)}).then(()=>{oe=DS(N,"beforeRouteUpdate",ge,de);for(const x of N)x.updateGuards.forEach(B=>{oe.push(Fa(B,ge,de))});return oe.push(T),Ne(oe)}).then(()=>{oe=[];for(const x of R)if(x.beforeEnter)if(Oi(x.beforeEnter))for(const B of x.beforeEnter)oe.push(Fa(B,ge,de));else oe.push(Fa(x.beforeEnter,ge,de));return oe.push(T),Ne(oe)}).then(()=>(ge.matched.forEach(x=>x.enterCallbacks={}),oe=DS(R,"beforeRouteEnter",ge,de),oe.push(T),Ne(oe))).then(()=>{oe=[];for(const x of a.list())oe.push(Fa(x,ge,de));return oe.push(T),Ne(oe)}).catch(x=>da(x,8)?x:Promise.reject(x))}function P(ge,de,oe){o.list().forEach($=>E(()=>$(ge,de,oe)))}function j(ge,de,oe,$,N){const R=_(ge,de);if(R)return R;const T=de===Ia,x=So?history.state:{};oe&&($||T?n.replace(ge.fullPath,Zt({scroll:T&&x&&x.scroll},N)):n.push(ge.fullPath,N)),l.value=ge,he(ge,de,oe,T),X()}let U;function M(){U||(U=n.listen((ge,de,oe)=>{if(!Oe.listening)return;const $=g(ge),N=A($);if(N){D(Zt(N,{replace:!0}),$).catch(L0);return}c=$;const R=l.value;So&&Nre(bM(R.fullPath,oe.delta),eg()),O($,R).catch(T=>da(T,12)?T:da(T,2)?(D(T.to,$).then(x=>{da(x,20)&&!oe.delta&&oe.type===Z0.pop&&n.go(-1,!1)}).catch(L0),Promise.reject()):(oe.delta&&n.go(-oe.delta,!1),K(T,$,R))).then(T=>{T=T||j($,R,!1),T&&(oe.delta&&!da(T,8)?n.go(-oe.delta,!1):oe.type===Z0.pop&&da(T,20)&&n.go(-1,!1)),P($,R,T)}).catch(L0)}))}let q=y0(),Q=y0(),Z;function K(ge,de,oe){X(ge);const $=Q.list();return $.length?$.forEach(N=>N(ge,de,oe)):console.error(ge),Promise.reject(ge)}function fe(){return Z&&l.value!==Ia?Promise.resolve():new Promise((ge,de)=>{q.add([ge,de])})}function X(ge){return Z||(Z=!ge,M(),q.list().forEach(([de,oe])=>ge?oe(ge):de()),q.reset()),ge}function he(ge,de,oe,$){const{scrollBehavior:N}=t;if(!So||!N)return Promise.resolve();const R=!oe&&Cre(bM(ge.fullPath,0))||($||!oe)&&history.state&&history.state.scroll||null;return t9().then(()=>N(ge,de,R)).then(T=>T&&Dre(T)).catch(T=>K(T,ge,de))}const xe=ge=>n.go(ge);let ie;const ae=new Set,Oe={currentRoute:l,listening:!0,addRoute:p,removeRoute:y,hasRoute:m,getRoutes:b,resolve:g,options:t,push:w,replace:S,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:r.add,beforeResolve:a.add,afterEach:o.add,onError:Q.add,isReady:fe,install(ge){const de=this;ge.component("RouterLink",bne),ge.component("RouterView",vne),ge.config.globalProperties.$router=de,Object.defineProperty(ge.config.globalProperties,"$route",{enumerable:!0,get:()=>qt(l)}),So&&!ie&&l.value===Ia&&(ie=!0,w(n.location).catch(N=>{}));const oe={};for(const N in Ia)Object.defineProperty(oe,N,{get:()=>l.value[N],enumerable:!0});ge.provide(aA,de),ge.provide(AB,zM(oe)),ge.provide(w3,l);const $=ge.unmount;ae.add(ge),ge.unmount=function(){ae.delete(ge),ae.size<1&&(c=Ia,U&&U(),U=null,l.value=Ia,ie=!1,Z=!1),$()}}};function Ne(ge){return ge.reduce((de,oe)=>de.then(()=>E(oe)),Promise.resolve())}return Oe}function Sne(t,e){const u=[],s=[],n=[],r=Math.max(e.matched.length,t.matched.length);for(let a=0;a$o(c,o))?s.push(o):u.push(o));const l=t.matched[a];l&&(e.matched.find(c=>$o(c,l))||n.push(l))}return[u,s,n]}const Tne=wne({history:Fre("/scholarly-browser/"),routes:[{path:"/",component:hB,props:!0}]}),EB=i$(hB);EB.use(Tne);EB.mount("#app"); diff --git a/index.html b/index.html index f09d355..427741f 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ Scholarly Browser - - + +