@ulb-darmstadt/shacl-form 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yc(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function wc(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}),t}var Hn={},pr={},Ea;function xc(){if(Ea)return pr;Ea=1,pr.byteLength=s,pr.toByteArray=u,pr.fromByteArray=y;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],e[n.charCodeAt(o)]=o;e[45]=62,e[95]=63;function a(b){var g=b.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=b.indexOf("=");x===-1&&(x=g);var _=x===g?0:4-x%4;return[x,_]}function s(b){var g=a(b),x=g[0],_=g[1];return(x+_)*3/4-_}function l(b,g,x){return(g+x)*3/4-x}function u(b){var g,x=a(b),_=x[0],k=x[1],E=new t(l(b,_,k)),v=0,c=k>0?_-4:_,h;for(h=0;h<c;h+=4)g=e[b.charCodeAt(h)]<<18|e[b.charCodeAt(h+1)]<<12|e[b.charCodeAt(h+2)]<<6|e[b.charCodeAt(h+3)],E[v++]=g>>16&255,E[v++]=g>>8&255,E[v++]=g&255;return k===2&&(g=e[b.charCodeAt(h)]<<2|e[b.charCodeAt(h+1)]>>4,E[v++]=g&255),k===1&&(g=e[b.charCodeAt(h)]<<10|e[b.charCodeAt(h+1)]<<4|e[b.charCodeAt(h+2)]>>2,E[v++]=g>>8&255,E[v++]=g&255),E}function f(b){return r[b>>18&63]+r[b>>12&63]+r[b>>6&63]+r[b&63]}function m(b,g,x){for(var _,k=[],E=g;E<x;E+=3)_=(b[E]<<16&16711680)+(b[E+1]<<8&65280)+(b[E+2]&255),k.push(f(_));return k.join("")}function y(b){for(var g,x=b.length,_=x%3,k=[],E=16383,v=0,c=x-_;v<c;v+=E)k.push(m(b,v,v+E>c?c:v+E));return _===1?(g=b[x-1],k.push(r[g>>2]+r[g<<4&63]+"==")):_===2&&(g=(b[x-2]<<8)+b[x-1],k.push(r[g>>10]+r[g>>4&63]+r[g<<2&63]+"=")),k.join("")}return pr}var Yr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ia;function _c(){return Ia||(Ia=1,Yr.read=function(r,e,t,n,o){var i,a,s=o*8-n-1,l=(1<<s)-1,u=l>>1,f=-7,m=t?o-1:0,y=t?-1:1,b=r[e+m];for(m+=y,i=b&(1<<-f)-1,b>>=-f,f+=s;f>0;i=i*256+r[e+m],m+=y,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=a*256+r[e+m],m+=y,f-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-u}return(b?-1:1)*a*Math.pow(2,i-n)},Yr.write=function(r,e,t,n,o,i){var a,s,l,u=i*8-o-1,f=(1<<u)-1,m=f>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,g=n?1:-1,x=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+m>=1?e+=y/l:e+=y*Math.pow(2,1-m),e*l>=2&&(a++,l/=2),a+m>=f?(s=0,a=f):a+m>=1?(s=(e*l-1)*Math.pow(2,o),a=a+m):(s=e*Math.pow(2,m-1)*Math.pow(2,o),a=0));o>=8;r[t+b]=s&255,b+=g,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;r[t+b]=a&255,b+=g,a/=256,u-=8);r[t+b-g]|=x*128}),Yr}/*!
1
+ var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function _c(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return n[r]}})}),t}var Hn={},hr={},Ia;function kc(){if(Ia)return hr;Ia=1,hr.byteLength=s,hr.toByteArray=u,hr.fromByteArray=y;for(var n=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)n[o]=r[o],e[r.charCodeAt(o)]=o;e[45]=62,e[95]=63;function a(b){var g=b.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=b.indexOf("=");x===-1&&(x=g);var _=x===g?0:4-x%4;return[x,_]}function s(b){var g=a(b),x=g[0],_=g[1];return(x+_)*3/4-_}function l(b,g,x){return(g+x)*3/4-x}function u(b){var g,x=a(b),_=x[0],k=x[1],E=new t(l(b,_,k)),v=0,c=k>0?_-4:_,h;for(h=0;h<c;h+=4)g=e[b.charCodeAt(h)]<<18|e[b.charCodeAt(h+1)]<<12|e[b.charCodeAt(h+2)]<<6|e[b.charCodeAt(h+3)],E[v++]=g>>16&255,E[v++]=g>>8&255,E[v++]=g&255;return k===2&&(g=e[b.charCodeAt(h)]<<2|e[b.charCodeAt(h+1)]>>4,E[v++]=g&255),k===1&&(g=e[b.charCodeAt(h)]<<10|e[b.charCodeAt(h+1)]<<4|e[b.charCodeAt(h+2)]>>2,E[v++]=g>>8&255,E[v++]=g&255),E}function f(b){return n[b>>18&63]+n[b>>12&63]+n[b>>6&63]+n[b&63]}function m(b,g,x){for(var _,k=[],E=g;E<x;E+=3)_=(b[E]<<16&16711680)+(b[E+1]<<8&65280)+(b[E+2]&255),k.push(f(_));return k.join("")}function y(b){for(var g,x=b.length,_=x%3,k=[],E=16383,v=0,c=x-_;v<c;v+=E)k.push(m(b,v,v+E>c?c:v+E));return _===1?(g=b[x-1],k.push(n[g>>2]+n[g<<4&63]+"==")):_===2&&(g=(b[x-2]<<8)+b[x-1],k.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),k.join("")}return hr}var Zr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ra;function Sc(){return Ra||(Ra=1,Zr.read=function(n,e,t,r,o){var i,a,s=o*8-r-1,l=(1<<s)-1,u=l>>1,f=-7,m=t?o-1:0,y=t?-1:1,b=n[e+m];for(m+=y,i=b&(1<<-f)-1,b>>=-f,f+=s;f>0;i=i*256+n[e+m],m+=y,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=a*256+n[e+m],m+=y,f-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-u}return(b?-1:1)*a*Math.pow(2,i-r)},Zr.write=function(n,e,t,r,o,i){var a,s,l,u=i*8-o-1,f=(1<<u)-1,m=f>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=r?0:i-1,g=r?1:-1,x=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+m>=1?e+=y/l:e+=y*Math.pow(2,1-m),e*l>=2&&(a++,l/=2),a+m>=f?(s=0,a=f):a+m>=1?(s=(e*l-1)*Math.pow(2,o),a=a+m):(s=e*Math.pow(2,m-1)*Math.pow(2,o),a=0));o>=8;n[t+b]=s&255,b+=g,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;n[t+b]=a&255,b+=g,a/=256,u-=8);n[t+b-g]|=x*128}),Zr}/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */var Ra;function vt(){return Ra||(Ra=1,function(r){const e=xc(),t=_c(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=s,r.SlowBuffer=E,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.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 i(){try{const S=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(S,d),S.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const d=new Uint8Array(S);return Object.setPrototypeOf(d,s.prototype),d}function s(S,d,p){if(typeof S=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(S)}return l(S,d,p)}s.poolSize=8192;function l(S,d,p){if(typeof S=="string")return y(S,d);if(ArrayBuffer.isView(S))return g(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ie(S,ArrayBuffer)||S&&ie(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(S,SharedArrayBuffer)||S&&ie(S.buffer,SharedArrayBuffer)))return x(S,d,p);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const $=S.valueOf&&S.valueOf();if($!=null&&$!==S)return s.from($,d,p);const J=_(S);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return s.from(S[Symbol.toPrimitive]("string"),d,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}s.from=function(S,d,p){return l(S,d,p)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function f(S,d,p){return u(S),S<=0?a(S):d!==void 0?typeof p=="string"?a(S).fill(d,p):a(S).fill(d):a(S)}s.alloc=function(S,d,p){return f(S,d,p)};function m(S){return u(S),a(S<0?0:k(S)|0)}s.allocUnsafe=function(S){return m(S)},s.allocUnsafeSlow=function(S){return m(S)};function y(S,d){if((typeof d!="string"||d==="")&&(d="utf8"),!s.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const p=v(S,d)|0;let $=a(p);const J=$.write(S,d);return J!==p&&($=$.slice(0,J)),$}function b(S){const d=S.length<0?0:k(S.length)|0,p=a(d);for(let $=0;$<d;$+=1)p[$]=S[$]&255;return p}function g(S){if(ie(S,Uint8Array)){const d=new Uint8Array(S);return x(d.buffer,d.byteOffset,d.byteLength)}return b(S)}function x(S,d,p){if(d<0||S.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<d+(p||0))throw new RangeError('"length" is outside of buffer bounds');let $;return d===void 0&&p===void 0?$=new Uint8Array(S):p===void 0?$=new Uint8Array(S,d):$=new Uint8Array(S,d,p),Object.setPrototypeOf($,s.prototype),$}function _(S){if(s.isBuffer(S)){const d=k(S.length)|0,p=a(d);return p.length===0||S.copy(p,0,0,d),p}if(S.length!==void 0)return typeof S.length!="number"||ke(S.length)?a(0):b(S);if(S.type==="Buffer"&&Array.isArray(S.data))return b(S.data)}function k(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function E(S){return+S!=S&&(S=0),s.alloc(+S)}s.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==s.prototype},s.compare=function(d,p){if(ie(d,Uint8Array)&&(d=s.from(d,d.offset,d.byteLength)),ie(p,Uint8Array)&&(p=s.from(p,p.offset,p.byteLength)),!s.isBuffer(d)||!s.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===p)return 0;let $=d.length,J=p.length;for(let oe=0,se=Math.min($,J);oe<se;++oe)if(d[oe]!==p[oe]){$=d[oe],J=p[oe];break}return $<J?-1:J<$?1:0},s.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(d,p){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return s.alloc(0);let $;if(p===void 0)for(p=0,$=0;$<d.length;++$)p+=d[$].length;const J=s.allocUnsafe(p);let oe=0;for($=0;$<d.length;++$){let se=d[$];if(ie(se,Uint8Array))oe+se.length>J.length?(s.isBuffer(se)||(se=s.from(se)),se.copy(J,oe)):Uint8Array.prototype.set.call(J,se,oe);else if(s.isBuffer(se))se.copy(J,oe);else throw new TypeError('"list" argument must be an Array of Buffers');oe+=se.length}return J};function v(S,d){if(s.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||ie(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const p=S.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&p===0)return 0;let J=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ue(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return le(S).length;default:if(J)return $?-1:ue(S).length;d=(""+d).toLowerCase(),J=!0}}s.byteLength=v;function c(S,d,p){let $=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,d>>>=0,p<=d))return"";for(S||(S="utf8");;)switch(S){case"hex":return K(this,d,p);case"utf8":case"utf-8":return A(this,d,p);case"ascii":return ee(this,d,p);case"latin1":case"binary":return C(this,d,p);case"base64":return j(this,d,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,d,p);default:if($)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),$=!0}}s.prototype._isBuffer=!0;function h(S,d,p){const $=S[d];S[d]=S[p],S[p]=$}s.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<d;p+=2)h(this,p,p+1);return this},s.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<d;p+=4)h(this,p,p+3),h(this,p+1,p+2);return this},s.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<d;p+=8)h(this,p,p+7),h(this,p+1,p+6),h(this,p+2,p+5),h(this,p+3,p+4);return this},s.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?A(this,0,d):c.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(d){if(!s.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:s.compare(this,d)===0},s.prototype.inspect=function(){let d="";const p=r.INSPECT_MAX_BYTES;return d=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(d+=" ... "),"<Buffer "+d+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(d,p,$,J,oe){if(ie(d,Uint8Array)&&(d=s.from(d,d.offset,d.byteLength)),!s.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(p===void 0&&(p=0),$===void 0&&($=d?d.length:0),J===void 0&&(J=0),oe===void 0&&(oe=this.length),p<0||$>d.length||J<0||oe>this.length)throw new RangeError("out of range index");if(J>=oe&&p>=$)return 0;if(J>=oe)return-1;if(p>=$)return 1;if(p>>>=0,$>>>=0,J>>>=0,oe>>>=0,this===d)return 0;let se=oe-J,ye=$-p;const Te=Math.min(se,ye),Ne=this.slice(J,oe),Ae=d.slice(p,$);for(let Ee=0;Ee<Te;++Ee)if(Ne[Ee]!==Ae[Ee]){se=Ne[Ee],ye=Ae[Ee];break}return se<ye?-1:ye<se?1:0};function R(S,d,p,$,J){if(S.length===0)return-1;if(typeof p=="string"?($=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,ke(p)&&(p=J?0:S.length-1),p<0&&(p=S.length+p),p>=S.length){if(J)return-1;p=S.length-1}else if(p<0)if(J)p=0;else return-1;if(typeof d=="string"&&(d=s.from(d,$)),s.isBuffer(d))return d.length===0?-1:D(S,d,p,$,J);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(S,d,p):Uint8Array.prototype.lastIndexOf.call(S,d,p):D(S,[d],p,$,J);throw new TypeError("val must be string, number or Buffer")}function D(S,d,p,$,J){let oe=1,se=S.length,ye=d.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(S.length<2||d.length<2)return-1;oe=2,se/=2,ye/=2,p/=2}function Te(Ae,Ee){return oe===1?Ae[Ee]:Ae.readUInt16BE(Ee*oe)}let Ne;if(J){let Ae=-1;for(Ne=p;Ne<se;Ne++)if(Te(S,Ne)===Te(d,Ae===-1?0:Ne-Ae)){if(Ae===-1&&(Ae=Ne),Ne-Ae+1===ye)return Ae*oe}else Ae!==-1&&(Ne-=Ne-Ae),Ae=-1}else for(p+ye>se&&(p=se-ye),Ne=p;Ne>=0;Ne--){let Ae=!0;for(let Ee=0;Ee<ye;Ee++)if(Te(S,Ne+Ee)!==Te(d,Ee)){Ae=!1;break}if(Ae)return Ne}return-1}s.prototype.includes=function(d,p,$){return this.indexOf(d,p,$)!==-1},s.prototype.indexOf=function(d,p,$){return R(this,d,p,$,!0)},s.prototype.lastIndexOf=function(d,p,$){return R(this,d,p,$,!1)};function N(S,d,p,$){p=Number(p)||0;const J=S.length-p;$?($=Number($),$>J&&($=J)):$=J;const oe=d.length;$>oe/2&&($=oe/2);let se;for(se=0;se<$;++se){const ye=parseInt(d.substr(se*2,2),16);if(ke(ye))return se;S[p+se]=ye}return se}function B(S,d,p,$){return fe(ue(d,S.length-p),S,p,$)}function I(S,d,p,$){return fe(he(d),S,p,$)}function M(S,d,p,$){return fe(le(d),S,p,$)}function q(S,d,p,$){return fe(X(d,S.length-p),S,p,$)}s.prototype.write=function(d,p,$,J){if(p===void 0)J="utf8",$=this.length,p=0;else if($===void 0&&typeof p=="string")J=p,$=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite($)?($=$>>>0,J===void 0&&(J="utf8")):(J=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const oe=this.length-p;if(($===void 0||$>oe)&&($=oe),d.length>0&&($<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let se=!1;for(;;)switch(J){case"hex":return N(this,d,p,$);case"utf8":case"utf-8":return B(this,d,p,$);case"ascii":case"latin1":case"binary":return I(this,d,p,$);case"base64":return M(this,d,p,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,d,p,$);default:if(se)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),se=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(S,d,p){return d===0&&p===S.length?e.fromByteArray(S):e.fromByteArray(S.slice(d,p))}function A(S,d,p){p=Math.min(S.length,p);const $=[];let J=d;for(;J<p;){const oe=S[J];let se=null,ye=oe>239?4:oe>223?3:oe>191?2:1;if(J+ye<=p){let Te,Ne,Ae,Ee;switch(ye){case 1:oe<128&&(se=oe);break;case 2:Te=S[J+1],(Te&192)===128&&(Ee=(oe&31)<<6|Te&63,Ee>127&&(se=Ee));break;case 3:Te=S[J+1],Ne=S[J+2],(Te&192)===128&&(Ne&192)===128&&(Ee=(oe&15)<<12|(Te&63)<<6|Ne&63,Ee>2047&&(Ee<55296||Ee>57343)&&(se=Ee));break;case 4:Te=S[J+1],Ne=S[J+2],Ae=S[J+3],(Te&192)===128&&(Ne&192)===128&&(Ae&192)===128&&(Ee=(oe&15)<<18|(Te&63)<<12|(Ne&63)<<6|Ae&63,Ee>65535&&Ee<1114112&&(se=Ee))}}se===null?(se=65533,ye=1):se>65535&&(se-=65536,$.push(se>>>10&1023|55296),se=56320|se&1023),$.push(se),J+=ye}return T($)}const Y=4096;function T(S){const d=S.length;if(d<=Y)return String.fromCharCode.apply(String,S);let p="",$=0;for(;$<d;)p+=String.fromCharCode.apply(String,S.slice($,$+=Y));return p}function ee(S,d,p){let $="";p=Math.min(S.length,p);for(let J=d;J<p;++J)$+=String.fromCharCode(S[J]&127);return $}function C(S,d,p){let $="";p=Math.min(S.length,p);for(let J=d;J<p;++J)$+=String.fromCharCode(S[J]);return $}function K(S,d,p){const $=S.length;(!d||d<0)&&(d=0),(!p||p<0||p>$)&&(p=$);let J="";for(let oe=d;oe<p;++oe)J+=qe[S[oe]];return J}function w(S,d,p){const $=S.slice(d,p);let J="";for(let oe=0;oe<$.length-1;oe+=2)J+=String.fromCharCode($[oe]+$[oe+1]*256);return J}s.prototype.slice=function(d,p){const $=this.length;d=~~d,p=p===void 0?$:~~p,d<0?(d+=$,d<0&&(d=0)):d>$&&(d=$),p<0?(p+=$,p<0&&(p=0)):p>$&&(p=$),p<d&&(p=d);const J=this.subarray(d,p);return Object.setPrototypeOf(J,s.prototype),J};function z(S,d,p){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+d>p)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=this[d],oe=1,se=0;for(;++se<p&&(oe*=256);)J+=this[d+se]*oe;return J},s.prototype.readUintBE=s.prototype.readUIntBE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=this[d+--p],oe=1;for(;p>0&&(oe*=256);)J+=this[d+--p]*oe;return J},s.prototype.readUint8=s.prototype.readUInt8=function(d,p){return d=d>>>0,p||z(d,1,this.length),this[d]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(d,p){return d=d>>>0,p||z(d,2,this.length),this[d]|this[d+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(d,p){return d=d>>>0,p||z(d,2,this.length),this[d]<<8|this[d+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(d,p){return d=d>>>0,p||z(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(d,p){return d=d>>>0,p||z(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},s.prototype.readBigUInt64LE=we(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,oe=this[++d]+this[++d]*2**8+this[++d]*2**16+$*2**24;return BigInt(J)+(BigInt(oe)<<BigInt(32))}),s.prototype.readBigUInt64BE=we(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=p*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],oe=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+$;return(BigInt(J)<<BigInt(32))+BigInt(oe)}),s.prototype.readIntLE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=this[d],oe=1,se=0;for(;++se<p&&(oe*=256);)J+=this[d+se]*oe;return oe*=128,J>=oe&&(J-=Math.pow(2,8*p)),J},s.prototype.readIntBE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=p,oe=1,se=this[d+--J];for(;J>0&&(oe*=256);)se+=this[d+--J]*oe;return oe*=128,se>=oe&&(se-=Math.pow(2,8*p)),se},s.prototype.readInt8=function(d,p){return d=d>>>0,p||z(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},s.prototype.readInt16LE=function(d,p){d=d>>>0,p||z(d,2,this.length);const $=this[d]|this[d+1]<<8;return $&32768?$|4294901760:$},s.prototype.readInt16BE=function(d,p){d=d>>>0,p||z(d,2,this.length);const $=this[d+1]|this[d]<<8;return $&32768?$|4294901760:$},s.prototype.readInt32LE=function(d,p){return d=d>>>0,p||z(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},s.prototype.readInt32BE=function(d,p){return d=d>>>0,p||z(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},s.prototype.readBigInt64LE=we(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+($<<24);return(BigInt(J)<<BigInt(32))+BigInt(p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),s.prototype.readBigInt64BE=we(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=(p<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(J)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+$)}),s.prototype.readFloatLE=function(d,p){return d=d>>>0,p||z(d,4,this.length),t.read(this,d,!0,23,4)},s.prototype.readFloatBE=function(d,p){return d=d>>>0,p||z(d,4,this.length),t.read(this,d,!1,23,4)},s.prototype.readDoubleLE=function(d,p){return d=d>>>0,p||z(d,8,this.length),t.read(this,d,!0,52,8)},s.prototype.readDoubleBE=function(d,p){return d=d>>>0,p||z(d,8,this.length),t.read(this,d,!1,52,8)};function Q(S,d,p,$,J,oe){if(!s.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>J||d<oe)throw new RangeError('"value" argument is out of bounds');if(p+$>S.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(d,p,$,J){if(d=+d,p=p>>>0,$=$>>>0,!J){const ye=Math.pow(2,8*$)-1;Q(this,d,p,$,ye,0)}let oe=1,se=0;for(this[p]=d&255;++se<$&&(oe*=256);)this[p+se]=d/oe&255;return p+$},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(d,p,$,J){if(d=+d,p=p>>>0,$=$>>>0,!J){const ye=Math.pow(2,8*$)-1;Q(this,d,p,$,ye,0)}let oe=$-1,se=1;for(this[p+oe]=d&255;--oe>=0&&(se*=256);)this[p+oe]=d/se&255;return p+$},s.prototype.writeUint8=s.prototype.writeUInt8=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,1,255,0),this[p]=d&255,p+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,65535,0),this[p]=d&255,this[p+1]=d>>>8,p+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,65535,0),this[p]=d>>>8,this[p+1]=d&255,p+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,4294967295,0),this[p+3]=d>>>24,this[p+2]=d>>>16,this[p+1]=d>>>8,this[p]=d&255,p+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,4294967295,0),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4};function W(S,d,p,$,J){pe(d,$,J,S,p,7);let oe=Number(d&BigInt(4294967295));S[p++]=oe,oe=oe>>8,S[p++]=oe,oe=oe>>8,S[p++]=oe,oe=oe>>8,S[p++]=oe;let se=Number(d>>BigInt(32)&BigInt(4294967295));return S[p++]=se,se=se>>8,S[p++]=se,se=se>>8,S[p++]=se,se=se>>8,S[p++]=se,p}function ae(S,d,p,$,J){pe(d,$,J,S,p,7);let oe=Number(d&BigInt(4294967295));S[p+7]=oe,oe=oe>>8,S[p+6]=oe,oe=oe>>8,S[p+5]=oe,oe=oe>>8,S[p+4]=oe;let se=Number(d>>BigInt(32)&BigInt(4294967295));return S[p+3]=se,se=se>>8,S[p+2]=se,se=se>>8,S[p+1]=se,se=se>>8,S[p]=se,p+8}s.prototype.writeBigUInt64LE=we(function(d,p=0){return W(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=we(function(d,p=0){return ae(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(d,p,$,J){if(d=+d,p=p>>>0,!J){const Te=Math.pow(2,8*$-1);Q(this,d,p,$,Te-1,-Te)}let oe=0,se=1,ye=0;for(this[p]=d&255;++oe<$&&(se*=256);)d<0&&ye===0&&this[p+oe-1]!==0&&(ye=1),this[p+oe]=(d/se>>0)-ye&255;return p+$},s.prototype.writeIntBE=function(d,p,$,J){if(d=+d,p=p>>>0,!J){const Te=Math.pow(2,8*$-1);Q(this,d,p,$,Te-1,-Te)}let oe=$-1,se=1,ye=0;for(this[p+oe]=d&255;--oe>=0&&(se*=256);)d<0&&ye===0&&this[p+oe+1]!==0&&(ye=1),this[p+oe]=(d/se>>0)-ye&255;return p+$},s.prototype.writeInt8=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,1,127,-128),d<0&&(d=255+d+1),this[p]=d&255,p+1},s.prototype.writeInt16LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,32767,-32768),this[p]=d&255,this[p+1]=d>>>8,p+2},s.prototype.writeInt16BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,32767,-32768),this[p]=d>>>8,this[p+1]=d&255,p+2},s.prototype.writeInt32LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,2147483647,-2147483648),this[p]=d&255,this[p+1]=d>>>8,this[p+2]=d>>>16,this[p+3]=d>>>24,p+4},s.prototype.writeInt32BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4},s.prototype.writeBigInt64LE=we(function(d,p=0){return W(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=we(function(d,p=0){return ae(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function U(S,d,p,$,J,oe){if(p+$>S.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function H(S,d,p,$,J){return d=+d,p=p>>>0,J||U(S,d,p,4),t.write(S,d,p,$,23,4),p+4}s.prototype.writeFloatLE=function(d,p,$){return H(this,d,p,!0,$)},s.prototype.writeFloatBE=function(d,p,$){return H(this,d,p,!1,$)};function V(S,d,p,$,J){return d=+d,p=p>>>0,J||U(S,d,p,8),t.write(S,d,p,$,52,8),p+8}s.prototype.writeDoubleLE=function(d,p,$){return V(this,d,p,!0,$)},s.prototype.writeDoubleBE=function(d,p,$){return V(this,d,p,!1,$)},s.prototype.copy=function(d,p,$,J){if(!s.isBuffer(d))throw new TypeError("argument should be a Buffer");if($||($=0),!J&&J!==0&&(J=this.length),p>=d.length&&(p=d.length),p||(p=0),J>0&&J<$&&(J=$),J===$||d.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),d.length-p<J-$&&(J=d.length-p+$);const oe=J-$;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(p,$,J):Uint8Array.prototype.set.call(d,this.subarray($,J),p),oe},s.prototype.fill=function(d,p,$,J){if(typeof d=="string"){if(typeof p=="string"?(J=p,p=0,$=this.length):typeof $=="string"&&(J=$,$=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(d.length===1){const se=d.charCodeAt(0);(J==="utf8"&&se<128||J==="latin1")&&(d=se)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(p<0||this.length<p||this.length<$)throw new RangeError("Out of range index");if($<=p)return this;p=p>>>0,$=$===void 0?this.length:$>>>0,d||(d=0);let oe;if(typeof d=="number")for(oe=p;oe<$;++oe)this[oe]=d;else{const se=s.isBuffer(d)?d:s.from(d,J),ye=se.length;if(ye===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(oe=0;oe<$-p;++oe)this[oe+p]=se[oe%ye]}return this};const F={};function Z(S,d,p){F[S]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(J){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:J,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(S,d){return`The "${S}" argument must be of type number. Received type ${typeof d}`},TypeError),Z("ERR_OUT_OF_RANGE",function(S,d,p){let $=`The value of "${S}" is out of range.`,J=p;return Number.isInteger(p)&&Math.abs(p)>2**32?J=te(String(p)):typeof p=="bigint"&&(J=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(J=te(J)),J+="n"),$+=` It must be ${d}. Received ${J}`,$},RangeError);function te(S){let d="",p=S.length;const $=S[0]==="-"?1:0;for(;p>=$+4;p-=3)d=`_${S.slice(p-3,p)}${d}`;return`${S.slice(0,p)}${d}`}function ce(S,d,p){L(d,"offset"),(S[d]===void 0||S[d+p]===void 0)&&G(d,S.length-(p+1))}function pe(S,d,p,$,J,oe){if(S>p||S<d){const se=typeof d=="bigint"?"n":"";let ye;throw d===0||d===BigInt(0)?ye=`>= 0${se} and < 2${se} ** ${(oe+1)*8}${se}`:ye=`>= -(2${se} ** ${(oe+1)*8-1}${se}) and < 2 ** ${(oe+1)*8-1}${se}`,new F.ERR_OUT_OF_RANGE("value",ye,S)}ce($,J,oe)}function L(S,d){if(typeof S!="number")throw new F.ERR_INVALID_ARG_TYPE(d,"number",S)}function G(S,d,p){throw Math.floor(S)!==S?(L(S,p),new F.ERR_OUT_OF_RANGE("offset","an integer",S)):d<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,S)}const re=/[^+/0-9A-Za-z-_]/g;function de(S){if(S=S.split("=")[0],S=S.trim().replace(re,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function ue(S,d){d=d||1/0;let p;const $=S.length;let J=null;const oe=[];for(let se=0;se<$;++se){if(p=S.charCodeAt(se),p>55295&&p<57344){if(!J){if(p>56319){(d-=3)>-1&&oe.push(239,191,189);continue}else if(se+1===$){(d-=3)>-1&&oe.push(239,191,189);continue}J=p;continue}if(p<56320){(d-=3)>-1&&oe.push(239,191,189),J=p;continue}p=(J-55296<<10|p-56320)+65536}else J&&(d-=3)>-1&&oe.push(239,191,189);if(J=null,p<128){if((d-=1)<0)break;oe.push(p)}else if(p<2048){if((d-=2)<0)break;oe.push(p>>6|192,p&63|128)}else if(p<65536){if((d-=3)<0)break;oe.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((d-=4)<0)break;oe.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return oe}function he(S){const d=[];for(let p=0;p<S.length;++p)d.push(S.charCodeAt(p)&255);return d}function X(S,d){let p,$,J;const oe=[];for(let se=0;se<S.length&&!((d-=2)<0);++se)p=S.charCodeAt(se),$=p>>8,J=p%256,oe.push(J),oe.push($);return oe}function le(S){return e.toByteArray(de(S))}function fe(S,d,p,$){let J;for(J=0;J<$&&!(J+p>=d.length||J>=S.length);++J)d[J+p]=S[J];return J}function ie(S,d){return S instanceof d||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===d.name}function ke(S){return S!==S}const qe=function(){const S="0123456789abcdef",d=new Array(256);for(let p=0;p<16;++p){const $=p*16;for(let J=0;J<16;++J)d[$+J]=S[p]+S[J]}return d}();function we(S){return typeof BigInt>"u"?Ue:S}function Ue(){throw new Error("BigInt not supported")}}(Hn)),Hn}var kc=vt();const fr="http://www.w3.org/1999/02/22-rdf-syntax-ns#",hr="http://www.w3.org/2001/XMLSchema#",Zr="http://www.w3.org/2000/10/swap/",Pe={xsd:{decimal:`${hr}decimal`,boolean:`${hr}boolean`,double:`${hr}double`,integer:`${hr}integer`,string:`${hr}string`},rdf:{type:`${fr}type`,nil:`${fr}nil`,first:`${fr}first`,rest:`${fr}rest`,langString:`${fr}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${Zr}reify#forSome`,forAll:`${Zr}reify#forAll`},log:{implies:`${Zr}log#implies`,isImpliedBy:`${Zr}log#isImpliedBy`}},{xsd:en}=Pe,Sc=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,Na={"\\":"\\","'":"'",'"':'"',n:`
7
- `,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Ec=/[\x00-\x20<>\\"\{\}\|\^\`]/,Ic={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Rc=/$0^/;class Nc{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._isImpliedBy=e.isImpliedBy,this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const t in this)!(t in Ic)&&this[t]instanceof RegExp&&(this[t]=Rc)}else this._n3Mode=e.n3!==!1;this.comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,t){let n=this._input,o=n.length;for(;;){let s,l;for(;s=this._newline.exec(n);)this.comments&&(l=this._comment.exec(s[0]))&&i("comment",l[1],"",this._line,s[0].length),n=n.substr(s[0].length,n.length),o=n.length,this._line++;if(!s&&(s=this._whitespace.exec(n))&&(n=n.substr(s[0].length,n.length)),this._endOfFile.test(n))return t&&(this.comments&&(l=this._comment.exec(n))&&i("comment",l[1],"",this._line,n.length),n=null,i("eof","","",this._line,0)),this._input=n;const u=this._line,f=n[0];let m="",y="",b="",g=null,x=0,_=!1;switch(f){case"^":if(n.length<3)break;if(n[1]==="^"){if(this._previousMarker="^^",n=n.substr(2),n[0]!=="<"){_=!0;break}}else{this._n3Mode&&(x=1,m="^");break}case"<":if(g=this._unescapedIri.exec(n))m="IRI",y=g[1];else if(g=this._iri.exec(n)){if(y=this._unescape(g[1]),y===null||Ec.test(y))return a(this);m="IRI"}else n.length>1&&n[1]==="<"?(m="<<",x=2):this._n3Mode&&n.length>1&&n[1]==="="&&(x=2,this._isImpliedBy?(m="abbreviation",y="<"):(m="inverse",y=">"));break;case">":n.length>1&&n[1]===">"&&(m=">>",x=2);break;case"_":((g=this._blank.exec(n))||t&&(g=this._blank.exec(`${n} `)))&&(m="blank",b="_",y=g[1]);break;case'"':if(g=this._simpleQuotedString.exec(n))y=g[1];else if({value:y,matchLength:x}=this._parseLiteral(n),y===null)return a(this);(g!==null||x!==0)&&(m="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(g=this._simpleApostropheString.exec(n))y=g[1];else if({value:y,matchLength:x}=this._parseLiteral(n),y===null)return a(this);(g!==null||x!==0)&&(m="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(g=this._variable.exec(n))&&(m="var",y=g[0]);break;case"@":this._previousMarker==="literal"&&(g=this._langcode.exec(n))?(m="langcode",y=g[1]):(g=this._keyword.exec(n))&&(m=g[0]);break;case".":if(n.length===1?t:n[1]<"0"||n[1]>"9"){m=".",x=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(g=this._number.exec(n)||t&&(g=this._number.exec(`${n} `)))&&(m="literal",y=g[0],b=typeof g[1]=="string"?en.double:typeof g[2]=="string"?en.decimal:en.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(g=this._sparqlKeyword.exec(n))?m=g[0].toUpperCase():_=!0;break;case"f":case"t":(g=this._boolean.exec(n))?(m="literal",y=g[0],b=en.boolean):_=!0;break;case"a":(g=this._shortPredicates.exec(n))?(m="abbreviation",y="a"):_=!0;break;case"=":this._n3Mode&&n.length>1&&(m="abbreviation",n[1]!==">"?(x=1,y="="):(x=2,y=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(x=1,m=f);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(m="{|",x=2):(m=f,x=1));break;case"|":n.length>=2&&n[1]==="}"&&(m="|}",x=2);break;default:_=!0}if(_&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(g=this._prefix.exec(n))?(m="prefix",y=g[1]||""):((g=this._prefixed.exec(n))||t&&(g=this._prefixed.exec(`${n} `)))&&(m="prefixed",b=g[1]||"",y=this._unescape(g[2]))),this._previousMarker==="^^")switch(m){case"prefixed":m="type";break;case"IRI":m="typeIRI";break;default:m=""}if(!m)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?a(this):this._input=n;const k=x||g[0].length,E=i(m,y,b,u,k);this.previousToken=E,this._previousMarker=m,n=n.substr(k,n.length)}function i(s,l,u,f,m){const y=n?o-n.length:o,b=y+m,g={type:s,value:l,prefix:u,line:f,start:y,end:b};return e(null,g),g}function a(s){e(s._syntaxError(/^\S*/.exec(n)[0]))}}_unescape(e){let t=!1;const n=e.replace(Sc,(o,i,a,s)=>{if(typeof i=="string")return String.fromCharCode(Number.parseInt(i,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 s in Na?Na[s]:(t=!0,"")});return t?null:n}_parseLiteral(e){if(e.length>=3){const t=e.match(/^(?:"""|"|'''|'|)/)[0],n=t.length;let o=Math.max(this._literalClosingPos,n);for(;(o=e.indexOf(t,o))>0;){let i=0;for(;e[o-i-1]==="\\";)i++;if(i%2===0){const a=e.substring(n,o),s=a.split(/\r\n|\r|\n/).length-1,l=o+n;if(n===1&&s!==0||n===3&&this._lineMode)break;return this._line+=s,{value:this._unescape(a),matchLength:l}}o++}this._literalClosingPos=e.length-n+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const t=new Error(`Unexpected "${e}" on line ${this._line}.`);return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,t){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof t=="function")queueMicrotask(()=>this._tokenizeToEnd(t,!0));else{const n=[];let o;if(this._tokenizeToEnd((i,a)=>i?o=i:n.push(a),!0),o)throw o;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=kc.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(t,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(t,!0)}),e.on("error",t)}}const{rdf:jc,xsd:Mt}=Pe;let ar,Tc=0;const Se={namedNode:cd,blankNode:ud,variable:fd,literal:pd,defaultGraph:$c,quad:Ii,triple:Ii,fromTerm:$r,fromQuad:hd};class at{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof at?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}let En=class extends at{get termType(){return"NamedNode"}},Ze=class dd extends at{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let t=e.lastIndexOf('"')+1;return t<e.length&&e[t++]==="@"?e.substr(t).toLowerCase():""}get datatype(){return new En(this.datatypeString)}get datatypeString(){const e=this.id,t=e.lastIndexOf('"')+1,n=t<e.length?e[t]:"";return n==="^"?e.substr(t+2):n!=="@"?Mt.string:jc.langString}equals(e){return e instanceof dd?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&this.datatype.value===e.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}},Ac=class extends at{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},Lc=class extends at{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},Oc=class extends at{constructor(){return super(""),ar||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};ar=new Oc;function Or(r,e,t){if(e=e||Se,!r)return e.defaultGraph();switch(r[0]){case"?":return e.variable(r.substr(1));case"_":return e.blankNode(r.substr(2));case'"':if(e===Se)return new Ze(r);if(r[r.length-1]==='"')return e.literal(r.substr(1,r.length-2));const n=r.lastIndexOf('"',r.length-1);return e.literal(r.substr(1,n-1),r[n+1]==="@"?r.substr(n+2):e.namedNode(r.substr(n+3)));case"[":r=JSON.parse(r);break;default:if(!t||!Array.isArray(r))return e.namedNode(r)}return e.quad(Or(r[0],e,!0),Or(r[1],e,!0),Or(r[2],e,!0),r[3]&&Or(r[3],e,!0))}function Zt(r,e){if(typeof r=="string")return r;if(r instanceof at&&r.termType!=="Quad")return r.id;if(!r)return ar.id;switch(r.termType){case"NamedNode":return r.value;case"BlankNode":return`_:${r.value}`;case"Variable":return`?${r.value}`;case"DefaultGraph":return"";case"Literal":return`"${r.value}"${r.language?`@${r.language}`:r.datatype&&r.datatype.value!==Mt.string?`^^${r.datatype.value}`:""}`;case"Quad":const t=[Zt(r.subject,!0),Zt(r.predicate,!0),Zt(r.object,!0)];return r.graph&&r.graph.termType!=="DefaultGraph"&&t.push(Zt(r.graph,!0)),e?t:JSON.stringify(t);default:throw new Error(`Unexpected termType: ${r.termType}`)}}let In=class extends at{constructor(e,t,n,o){super(""),this._subject=e,this._predicate=t,this._object=n,this._graph=o||ar}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}};function cd(r){return new En(r)}function ud(r){return new Ac(r||`n3-${Tc++}`)}function pd(r,e){if(typeof e=="string")return new Ze(`"${r}"@${e.toLowerCase()}`);let t=e?e.value:"";return t===""&&(typeof r=="boolean"?t=Mt.boolean:typeof r=="number"&&(Number.isFinite(r)?t=Number.isInteger(r)?Mt.integer:Mt.double:(t=Mt.double,Number.isNaN(r)||(r=r>0?"INF":"-INF")))),t===""||t===Mt.string?new Ze(`"${r}"`):new Ze(`"${r}"^^${t}`)}function fd(r){return new Lc(r)}function $c(){return ar}function Ii(r,e,t,n){return new In(r,e,t,n)}function $r(r){if(r instanceof at)return r;switch(r.termType){case"NamedNode":return cd(r.value);case"BlankNode":return ud(r.value);case"Variable":return fd(r.value);case"DefaultGraph":return ar;case"Literal":return pd(r.value,r.language||r.datatype);case"Quad":return hd(r);default:throw new Error(`Unexpected termType: ${r.termType}`)}}function hd(r){if(r instanceof In)return r;if(r.termType!=="Quad")throw new Error(`Unexpected termType: ${r.termType}`);return Ii($r(r.subject),$r(r.predicate),$r(r.object),$r(r.graph))}let ja=0;class Ri{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&bd(this,e.factory);const t=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",n=/turtle/.test(t),o=/trig/.test(t),i=/triple/.test(t),a=/quad/.test(t),s=this._n3Mode=/n3/.test(t),l=i||a;(this._supportsNamedGraphs=!(n||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(n||o||i||s),this._isImpliedBy=e.isImpliedBy,this._supportsRDFStar=t===""||/star|\*$/.test(t),l&&(this._resolveRelativeIRI=u=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new Nc({lineMode:l,n3:s,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){ja=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),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,t,n,o,i){const a=this._n3Mode;this._contextStack.push({type:e,subject:n,predicate:o,object:i,graph:t,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,t){const n=this._contextStack.pop();if(!n||n.type!==e)return this._error(`Unexpected ${t.type}`,t);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,t){let n;switch(e.type){case"IRI":case"typeIRI":const o=this._resolveIRI(e.value);if(o===null)return this._error("Invalid IRI",e);n=this._factory.namedNode(o);break;case"type":case"prefixed":const i=this._prefixes[e.prefix];if(i===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);n=this._factory.namedNode(i+e.value);break;case"blank":n=this._factory.blankNode(this._prefixes[e.prefix]+e.value);break;case"var":n=this._factory.variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!t&&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._factory.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._factory.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="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="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._factory.literal(e.value,this._factory.namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star 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 t=e.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${t}`,e):(this._subject=null,t==="]"?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._factory.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._factory.literal(e.value,this._factory.namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.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._factory.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-star 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 t=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:t?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 t=null,n=null,o=this._readListItem;const i=this._subject,a=this._contextStack,s=a[a.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,n=this._factory.blankNode(),this.RDF_FIRST,this._subject=t=this._factory.blankNode()),o=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,n=this._factory.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(o=this._readPredicate,this._subject===this.RDF_NIL)return o}else if(o=this._getContextEndReader(),this._object===this.RDF_NIL)return o;n=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,o=this._readListItemDataTypeOrLang):(t=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),o=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((t=this._readEntity(e))===void 0)return}if(n===null&&(this._subject=n=this._factory.blankNode()),i===null?s.predicate===null?s.subject=n:s.object=n:this._emit(i,this.RDF_REST,n,this._graph),t!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,n,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(n,this.RDF_FIRST,t,this._graph)}return o}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let t=this._factory.literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const n=this._readEntity(e);if(n===void 0)return;t=this._factory.literal(this._literalValue,n),e=null;break;case"langcode":t=this._factory.literal(this._literalValue,e.value),e=null;break}return{token:e,literal:t}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,t){const n=this._completeLiteral(e);if(n)return this._object=n.literal,t&&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 t,n=this._graph;const o=this._subject,i=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,t=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",e);const a=this._predicate,s=this._object;this._subject=this._factory.quad(o,a,s,this.DEFAULTGRAPH),t=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,t=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(n=this._readEntity(e))!==void 0){t=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(o!==null){const a=this._predicate,s=this._object;i?this._emit(s,a,o,n):this._emit(o,a,s,n)}return t}_readBlankNodePunctuation(e){let t;switch(e.type){case";":t=this._readPredicate;break;case",":t=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),t}_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 t=this._readEntity(e);return this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}_readBaseIRI(e){const t=e.type==="IRI"&&this._resolveIRI(e.value);return t?(this._setBase(t),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._factory.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 t;switch(e.type){case"IRI":case"prefixed":if((t=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._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):this._quantified[t.id]=this._factory[this._quantifier](this._factory.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 t=this._contextStack,n=t.length&&t[t.length-1];if(n&&n.type==="item"){const o=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,o,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let t,n;const o=this._factory.blankNode();if((n=this._readEntity(e))!==void 0)return this._predicate===null?(t=this._subject,this._subject=o):(t=this._object,this._object=o),this._emit(t,n,o,this._graph),this._readPath}_readBackwardPath(e){const t=this._factory.blankNode();let n,o;if((n=this._readEntity(e))!==void 0)return this._predicate===null?(o=this._subject,this._subject=t):(o=this._object,this._object=t),this._emit(t,n,o,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 t=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=t,this._readPredicate):(this._object=t,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,t,n,o){this._callback(null,this._factory.quad(e,t,n,o||this.DEFAULTGRAPH))}_error(e,t){const n=new Error(`${e} on line ${t.line}.`);n.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(n),this._callback=tn}_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 t=e.length;let n="",o=-1,i=-1,a=0,s="/";for(;o<t;){switch(s){case":":if(i<0&&e[++o]==="/"&&e[++o]==="/")for(;(i=o+1)<t&&e[i]!=="/";)o=i;break;case"?":case"#":o=t;break;case"/":if(e[o+1]===".")switch(s=e[++o+1],s){case"/":n+=e.substring(a,o-1),a=o+1;break;case void 0:case"?":case"#":return n+e.substring(a,o)+e.substr(o+1);case".":if(s=e[++o+1],s===void 0||s==="/"||s==="?"||s==="#"){if(n+=e.substring(a,o-2),(a=n.lastIndexOf("/"))>=i&&(n=n.substr(0,a)),s!=="/")return`${n}/${e.substr(o+1)}`;a=o+1}}}s=e[++o]}return n+e.substring(a)}parse(e,t,n){let o,i,a;if(t&&(t.onQuad||t.onPrefix||t.onComment)?(o=t.onQuad,i=t.onPrefix,a=t.onComment):(o=t,i=n),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${ja++}_`,this._prefixCallback=i||tn,this._inversePredicate=!1,this._quantified=Object.create(null),!o){const l=[];let u;if(this._callback=(f,m)=>{f?u=f:m&&l.push(m)},this._lexer.tokenize(e).every(f=>this._readCallback=this._readCallback(f)),u)throw u;return l}let s=(l,u)=>{l!==null?(this._callback(l),this._callback=tn):this._readCallback&&(this._readCallback=this._readCallback(u))};a&&(this._lexer.comments=!0,s=(l,u)=>{l!==null?(this._callback(l),this._callback=tn):this._readCallback&&(u.type==="comment"?a(u.value):this._readCallback=this._readCallback(u))}),this._callback=o,this._lexer.tokenize(e,s)}}function tn(){}function bd(r,e){r._factory=e,r.DEFAULTGRAPH=e.defaultGraph(),r.RDF_FIRST=e.namedNode(Pe.rdf.first),r.RDF_REST=e.namedNode(Pe.rdf.rest),r.RDF_NIL=e.namedNode(Pe.rdf.nil),r.N3_FORALL=e.namedNode(Pe.r.forAll),r.N3_FORSOME=e.namedNode(Pe.r.forSome),r.ABBREVIATIONS={a:e.namedNode(Pe.rdf.type),"=":e.namedNode(Pe.owl.sameAs),">":e.namedNode(Pe.log.implies),"<":e.namedNode(Pe.log.isImpliedBy)},r.QUANTIFIERS_GRAPH=e.namedNode("urn:n3:quantifiers")}bd(Ri.prototype,Se);function Ni(r){return!!r&&r.termType==="DefaultGraph"}function cn(r){return r.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}const Dc=/^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i,Mc=/^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/,Ta="./",Cc="../",Gn="?",Aa="#";class qi{constructor(e){this.base=e,this._baseLength=0,this._baseMatcher=null,this._pathReplacements=new Array(e.length+1)}static supports(e){return!Dc.test(e)}_getBaseMatcher(){if(this._baseMatcher)return this._baseMatcher;if(!qi.supports(this.base))return this._baseMatcher=/.^/;const e=/^[^:]*:\/*/.exec(this.base)[0],t=["^",cn(e)],n=[],o=[],i=/[^/?#]*([/?#])/y;let a,s=0,l=0,u=i.lastIndex=e.length;for(;!s&&!l&&(a=i.exec(this.base));)a[1]===Aa?l=i.lastIndex-1:(t.push(cn(a[0]),"(?:"),n.push(")?"),a[1]!==Gn?o.push(u=i.lastIndex):(s=u=i.lastIndex,l=this.base.indexOf(Aa,s),this._pathReplacements[s]=Gn));for(let f=0;f<o.length;f++)this._pathReplacements[o[f]]=Cc.repeat(o.length-f-1);return this._pathReplacements[o[o.length-1]]=Ta,this._baseLength=l>0?l:this.base.length,t.push(cn(this.base.substring(u,this._baseLength)),s?"(?:#|$)":"(?:[?#]|$)"),this._baseMatcher=new RegExp([...t,...n].join(""))}toRelative(e){const t=this._getBaseMatcher().exec(e);if(!t)return e;const n=t[0].length;if(n===this._baseLength&&n===e.length)return"";const o=this._pathReplacements[n];if(o){const i=e.substring(n);return o!==Gn&&!Mc.test(i)?e:o===Ta&&/^[^?#]/.test(i)?i:o+i}return e.substring(n-1)}}const br=Se.defaultGraph(),{rdf:Pc,xsd:Jt}=Pe,La=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,Oa=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,Bc={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class mr extends at{equals(e){return e===this}}class Fi{constructor(e,t){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=t.end===void 0?!0:!!t.end;else{let n="";this._outputStream={write(o,i,a){n+=o,a&&a()},end:o=>{o&&o(null,n)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=br,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseIri=new qi(t.baseIRI)))}get _inDefaultGraph(){return br.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,n,o,i){try{o.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`.
6
+ */var Na;function vt(){return Na||(Na=1,function(n){const e=kc(),t=Sc(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=E,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.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 i(){try{const S=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(S,d),S.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const d=new Uint8Array(S);return Object.setPrototypeOf(d,s.prototype),d}function s(S,d,p){if(typeof S=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(S)}return l(S,d,p)}s.poolSize=8192;function l(S,d,p){if(typeof S=="string")return y(S,d);if(ArrayBuffer.isView(S))return g(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(ie(S,ArrayBuffer)||S&&ie(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ie(S,SharedArrayBuffer)||S&&ie(S.buffer,SharedArrayBuffer)))return x(S,d,p);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const $=S.valueOf&&S.valueOf();if($!=null&&$!==S)return s.from($,d,p);const J=_(S);if(J)return J;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return s.from(S[Symbol.toPrimitive]("string"),d,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}s.from=function(S,d,p){return l(S,d,p)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function f(S,d,p){return u(S),S<=0?a(S):d!==void 0?typeof p=="string"?a(S).fill(d,p):a(S).fill(d):a(S)}s.alloc=function(S,d,p){return f(S,d,p)};function m(S){return u(S),a(S<0?0:k(S)|0)}s.allocUnsafe=function(S){return m(S)},s.allocUnsafeSlow=function(S){return m(S)};function y(S,d){if((typeof d!="string"||d==="")&&(d="utf8"),!s.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const p=v(S,d)|0;let $=a(p);const J=$.write(S,d);return J!==p&&($=$.slice(0,J)),$}function b(S){const d=S.length<0?0:k(S.length)|0,p=a(d);for(let $=0;$<d;$+=1)p[$]=S[$]&255;return p}function g(S){if(ie(S,Uint8Array)){const d=new Uint8Array(S);return x(d.buffer,d.byteOffset,d.byteLength)}return b(S)}function x(S,d,p){if(d<0||S.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<d+(p||0))throw new RangeError('"length" is outside of buffer bounds');let $;return d===void 0&&p===void 0?$=new Uint8Array(S):p===void 0?$=new Uint8Array(S,d):$=new Uint8Array(S,d,p),Object.setPrototypeOf($,s.prototype),$}function _(S){if(s.isBuffer(S)){const d=k(S.length)|0,p=a(d);return p.length===0||S.copy(p,0,0,d),p}if(S.length!==void 0)return typeof S.length!="number"||Se(S.length)?a(0):b(S);if(S.type==="Buffer"&&Array.isArray(S.data))return b(S.data)}function k(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function E(S){return+S!=S&&(S=0),s.alloc(+S)}s.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==s.prototype},s.compare=function(d,p){if(ie(d,Uint8Array)&&(d=s.from(d,d.offset,d.byteLength)),ie(p,Uint8Array)&&(p=s.from(p,p.offset,p.byteLength)),!s.isBuffer(d)||!s.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===p)return 0;let $=d.length,J=p.length;for(let oe=0,se=Math.min($,J);oe<se;++oe)if(d[oe]!==p[oe]){$=d[oe],J=p[oe];break}return $<J?-1:J<$?1:0},s.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(d,p){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return s.alloc(0);let $;if(p===void 0)for(p=0,$=0;$<d.length;++$)p+=d[$].length;const J=s.allocUnsafe(p);let oe=0;for($=0;$<d.length;++$){let se=d[$];if(ie(se,Uint8Array))oe+se.length>J.length?(s.isBuffer(se)||(se=s.from(se)),se.copy(J,oe)):Uint8Array.prototype.set.call(J,se,oe);else if(s.isBuffer(se))se.copy(J,oe);else throw new TypeError('"list" argument must be an Array of Buffers');oe+=se.length}return J};function v(S,d){if(s.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||ie(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const p=S.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&p===0)return 0;let J=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ue(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return le(S).length;default:if(J)return $?-1:ue(S).length;d=(""+d).toLowerCase(),J=!0}}s.byteLength=v;function c(S,d,p){let $=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,d>>>=0,p<=d))return"";for(S||(S="utf8");;)switch(S){case"hex":return K(this,d,p);case"utf8":case"utf-8":return A(this,d,p);case"ascii":return ee(this,d,p);case"latin1":case"binary":return C(this,d,p);case"base64":return j(this,d,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,d,p);default:if($)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),$=!0}}s.prototype._isBuffer=!0;function h(S,d,p){const $=S[d];S[d]=S[p],S[p]=$}s.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<d;p+=2)h(this,p,p+1);return this},s.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<d;p+=4)h(this,p,p+3),h(this,p+1,p+2);return this},s.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<d;p+=8)h(this,p,p+7),h(this,p+1,p+6),h(this,p+2,p+5),h(this,p+3,p+4);return this},s.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?A(this,0,d):c.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(d){if(!s.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:s.compare(this,d)===0},s.prototype.inspect=function(){let d="";const p=n.INSPECT_MAX_BYTES;return d=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(d+=" ... "),"<Buffer "+d+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(d,p,$,J,oe){if(ie(d,Uint8Array)&&(d=s.from(d,d.offset,d.byteLength)),!s.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(p===void 0&&(p=0),$===void 0&&($=d?d.length:0),J===void 0&&(J=0),oe===void 0&&(oe=this.length),p<0||$>d.length||J<0||oe>this.length)throw new RangeError("out of range index");if(J>=oe&&p>=$)return 0;if(J>=oe)return-1;if(p>=$)return 1;if(p>>>=0,$>>>=0,J>>>=0,oe>>>=0,this===d)return 0;let se=oe-J,ye=$-p;const Te=Math.min(se,ye),Ne=this.slice(J,oe),Ae=d.slice(p,$);for(let Ee=0;Ee<Te;++Ee)if(Ne[Ee]!==Ae[Ee]){se=Ne[Ee],ye=Ae[Ee];break}return se<ye?-1:ye<se?1:0};function R(S,d,p,$,J){if(S.length===0)return-1;if(typeof p=="string"?($=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,Se(p)&&(p=J?0:S.length-1),p<0&&(p=S.length+p),p>=S.length){if(J)return-1;p=S.length-1}else if(p<0)if(J)p=0;else return-1;if(typeof d=="string"&&(d=s.from(d,$)),s.isBuffer(d))return d.length===0?-1:D(S,d,p,$,J);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(S,d,p):Uint8Array.prototype.lastIndexOf.call(S,d,p):D(S,[d],p,$,J);throw new TypeError("val must be string, number or Buffer")}function D(S,d,p,$,J){let oe=1,se=S.length,ye=d.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(S.length<2||d.length<2)return-1;oe=2,se/=2,ye/=2,p/=2}function Te(Ae,Ee){return oe===1?Ae[Ee]:Ae.readUInt16BE(Ee*oe)}let Ne;if(J){let Ae=-1;for(Ne=p;Ne<se;Ne++)if(Te(S,Ne)===Te(d,Ae===-1?0:Ne-Ae)){if(Ae===-1&&(Ae=Ne),Ne-Ae+1===ye)return Ae*oe}else Ae!==-1&&(Ne-=Ne-Ae),Ae=-1}else for(p+ye>se&&(p=se-ye),Ne=p;Ne>=0;Ne--){let Ae=!0;for(let Ee=0;Ee<ye;Ee++)if(Te(S,Ne+Ee)!==Te(d,Ee)){Ae=!1;break}if(Ae)return Ne}return-1}s.prototype.includes=function(d,p,$){return this.indexOf(d,p,$)!==-1},s.prototype.indexOf=function(d,p,$){return R(this,d,p,$,!0)},s.prototype.lastIndexOf=function(d,p,$){return R(this,d,p,$,!1)};function N(S,d,p,$){p=Number(p)||0;const J=S.length-p;$?($=Number($),$>J&&($=J)):$=J;const oe=d.length;$>oe/2&&($=oe/2);let se;for(se=0;se<$;++se){const ye=parseInt(d.substr(se*2,2),16);if(Se(ye))return se;S[p+se]=ye}return se}function B(S,d,p,$){return fe(ue(d,S.length-p),S,p,$)}function I(S,d,p,$){return fe(he(d),S,p,$)}function M(S,d,p,$){return fe(le(d),S,p,$)}function q(S,d,p,$){return fe(X(d,S.length-p),S,p,$)}s.prototype.write=function(d,p,$,J){if(p===void 0)J="utf8",$=this.length,p=0;else if($===void 0&&typeof p=="string")J=p,$=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite($)?($=$>>>0,J===void 0&&(J="utf8")):(J=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const oe=this.length-p;if(($===void 0||$>oe)&&($=oe),d.length>0&&($<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");let se=!1;for(;;)switch(J){case"hex":return N(this,d,p,$);case"utf8":case"utf-8":return B(this,d,p,$);case"ascii":case"latin1":case"binary":return I(this,d,p,$);case"base64":return M(this,d,p,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,d,p,$);default:if(se)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),se=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(S,d,p){return d===0&&p===S.length?e.fromByteArray(S):e.fromByteArray(S.slice(d,p))}function A(S,d,p){p=Math.min(S.length,p);const $=[];let J=d;for(;J<p;){const oe=S[J];let se=null,ye=oe>239?4:oe>223?3:oe>191?2:1;if(J+ye<=p){let Te,Ne,Ae,Ee;switch(ye){case 1:oe<128&&(se=oe);break;case 2:Te=S[J+1],(Te&192)===128&&(Ee=(oe&31)<<6|Te&63,Ee>127&&(se=Ee));break;case 3:Te=S[J+1],Ne=S[J+2],(Te&192)===128&&(Ne&192)===128&&(Ee=(oe&15)<<12|(Te&63)<<6|Ne&63,Ee>2047&&(Ee<55296||Ee>57343)&&(se=Ee));break;case 4:Te=S[J+1],Ne=S[J+2],Ae=S[J+3],(Te&192)===128&&(Ne&192)===128&&(Ae&192)===128&&(Ee=(oe&15)<<18|(Te&63)<<12|(Ne&63)<<6|Ae&63,Ee>65535&&Ee<1114112&&(se=Ee))}}se===null?(se=65533,ye=1):se>65535&&(se-=65536,$.push(se>>>10&1023|55296),se=56320|se&1023),$.push(se),J+=ye}return T($)}const Y=4096;function T(S){const d=S.length;if(d<=Y)return String.fromCharCode.apply(String,S);let p="",$=0;for(;$<d;)p+=String.fromCharCode.apply(String,S.slice($,$+=Y));return p}function ee(S,d,p){let $="";p=Math.min(S.length,p);for(let J=d;J<p;++J)$+=String.fromCharCode(S[J]&127);return $}function C(S,d,p){let $="";p=Math.min(S.length,p);for(let J=d;J<p;++J)$+=String.fromCharCode(S[J]);return $}function K(S,d,p){const $=S.length;(!d||d<0)&&(d=0),(!p||p<0||p>$)&&(p=$);let J="";for(let oe=d;oe<p;++oe)J+=Be[S[oe]];return J}function w(S,d,p){const $=S.slice(d,p);let J="";for(let oe=0;oe<$.length-1;oe+=2)J+=String.fromCharCode($[oe]+$[oe+1]*256);return J}s.prototype.slice=function(d,p){const $=this.length;d=~~d,p=p===void 0?$:~~p,d<0?(d+=$,d<0&&(d=0)):d>$&&(d=$),p<0?(p+=$,p<0&&(p=0)):p>$&&(p=$),p<d&&(p=d);const J=this.subarray(d,p);return Object.setPrototypeOf(J,s.prototype),J};function z(S,d,p){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+d>p)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=this[d],oe=1,se=0;for(;++se<p&&(oe*=256);)J+=this[d+se]*oe;return J},s.prototype.readUintBE=s.prototype.readUIntBE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=this[d+--p],oe=1;for(;p>0&&(oe*=256);)J+=this[d+--p]*oe;return J},s.prototype.readUint8=s.prototype.readUInt8=function(d,p){return d=d>>>0,p||z(d,1,this.length),this[d]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(d,p){return d=d>>>0,p||z(d,2,this.length),this[d]|this[d+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(d,p){return d=d>>>0,p||z(d,2,this.length),this[d]<<8|this[d+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(d,p){return d=d>>>0,p||z(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(d,p){return d=d>>>0,p||z(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},s.prototype.readBigUInt64LE=xe(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,oe=this[++d]+this[++d]*2**8+this[++d]*2**16+$*2**24;return BigInt(J)+(BigInt(oe)<<BigInt(32))}),s.prototype.readBigUInt64BE=xe(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=p*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],oe=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+$;return(BigInt(J)<<BigInt(32))+BigInt(oe)}),s.prototype.readIntLE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=this[d],oe=1,se=0;for(;++se<p&&(oe*=256);)J+=this[d+se]*oe;return oe*=128,J>=oe&&(J-=Math.pow(2,8*p)),J},s.prototype.readIntBE=function(d,p,$){d=d>>>0,p=p>>>0,$||z(d,p,this.length);let J=p,oe=1,se=this[d+--J];for(;J>0&&(oe*=256);)se+=this[d+--J]*oe;return oe*=128,se>=oe&&(se-=Math.pow(2,8*p)),se},s.prototype.readInt8=function(d,p){return d=d>>>0,p||z(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},s.prototype.readInt16LE=function(d,p){d=d>>>0,p||z(d,2,this.length);const $=this[d]|this[d+1]<<8;return $&32768?$|4294901760:$},s.prototype.readInt16BE=function(d,p){d=d>>>0,p||z(d,2,this.length);const $=this[d+1]|this[d]<<8;return $&32768?$|4294901760:$},s.prototype.readInt32LE=function(d,p){return d=d>>>0,p||z(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},s.prototype.readInt32BE=function(d,p){return d=d>>>0,p||z(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},s.prototype.readBigInt64LE=xe(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+($<<24);return(BigInt(J)<<BigInt(32))+BigInt(p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),s.prototype.readBigInt64BE=xe(function(d){d=d>>>0,L(d,"offset");const p=this[d],$=this[d+7];(p===void 0||$===void 0)&&G(d,this.length-8);const J=(p<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(J)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+$)}),s.prototype.readFloatLE=function(d,p){return d=d>>>0,p||z(d,4,this.length),t.read(this,d,!0,23,4)},s.prototype.readFloatBE=function(d,p){return d=d>>>0,p||z(d,4,this.length),t.read(this,d,!1,23,4)},s.prototype.readDoubleLE=function(d,p){return d=d>>>0,p||z(d,8,this.length),t.read(this,d,!0,52,8)},s.prototype.readDoubleBE=function(d,p){return d=d>>>0,p||z(d,8,this.length),t.read(this,d,!1,52,8)};function Q(S,d,p,$,J,oe){if(!s.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>J||d<oe)throw new RangeError('"value" argument is out of bounds');if(p+$>S.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(d,p,$,J){if(d=+d,p=p>>>0,$=$>>>0,!J){const ye=Math.pow(2,8*$)-1;Q(this,d,p,$,ye,0)}let oe=1,se=0;for(this[p]=d&255;++se<$&&(oe*=256);)this[p+se]=d/oe&255;return p+$},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(d,p,$,J){if(d=+d,p=p>>>0,$=$>>>0,!J){const ye=Math.pow(2,8*$)-1;Q(this,d,p,$,ye,0)}let oe=$-1,se=1;for(this[p+oe]=d&255;--oe>=0&&(se*=256);)this[p+oe]=d/se&255;return p+$},s.prototype.writeUint8=s.prototype.writeUInt8=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,1,255,0),this[p]=d&255,p+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,65535,0),this[p]=d&255,this[p+1]=d>>>8,p+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,65535,0),this[p]=d>>>8,this[p+1]=d&255,p+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,4294967295,0),this[p+3]=d>>>24,this[p+2]=d>>>16,this[p+1]=d>>>8,this[p]=d&255,p+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,4294967295,0),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4};function W(S,d,p,$,J){pe(d,$,J,S,p,7);let oe=Number(d&BigInt(4294967295));S[p++]=oe,oe=oe>>8,S[p++]=oe,oe=oe>>8,S[p++]=oe,oe=oe>>8,S[p++]=oe;let se=Number(d>>BigInt(32)&BigInt(4294967295));return S[p++]=se,se=se>>8,S[p++]=se,se=se>>8,S[p++]=se,se=se>>8,S[p++]=se,p}function ae(S,d,p,$,J){pe(d,$,J,S,p,7);let oe=Number(d&BigInt(4294967295));S[p+7]=oe,oe=oe>>8,S[p+6]=oe,oe=oe>>8,S[p+5]=oe,oe=oe>>8,S[p+4]=oe;let se=Number(d>>BigInt(32)&BigInt(4294967295));return S[p+3]=se,se=se>>8,S[p+2]=se,se=se>>8,S[p+1]=se,se=se>>8,S[p]=se,p+8}s.prototype.writeBigUInt64LE=xe(function(d,p=0){return W(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=xe(function(d,p=0){return ae(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(d,p,$,J){if(d=+d,p=p>>>0,!J){const Te=Math.pow(2,8*$-1);Q(this,d,p,$,Te-1,-Te)}let oe=0,se=1,ye=0;for(this[p]=d&255;++oe<$&&(se*=256);)d<0&&ye===0&&this[p+oe-1]!==0&&(ye=1),this[p+oe]=(d/se>>0)-ye&255;return p+$},s.prototype.writeIntBE=function(d,p,$,J){if(d=+d,p=p>>>0,!J){const Te=Math.pow(2,8*$-1);Q(this,d,p,$,Te-1,-Te)}let oe=$-1,se=1,ye=0;for(this[p+oe]=d&255;--oe>=0&&(se*=256);)d<0&&ye===0&&this[p+oe+1]!==0&&(ye=1),this[p+oe]=(d/se>>0)-ye&255;return p+$},s.prototype.writeInt8=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,1,127,-128),d<0&&(d=255+d+1),this[p]=d&255,p+1},s.prototype.writeInt16LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,32767,-32768),this[p]=d&255,this[p+1]=d>>>8,p+2},s.prototype.writeInt16BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,2,32767,-32768),this[p]=d>>>8,this[p+1]=d&255,p+2},s.prototype.writeInt32LE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,2147483647,-2147483648),this[p]=d&255,this[p+1]=d>>>8,this[p+2]=d>>>16,this[p+3]=d>>>24,p+4},s.prototype.writeInt32BE=function(d,p,$){return d=+d,p=p>>>0,$||Q(this,d,p,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4},s.prototype.writeBigInt64LE=xe(function(d,p=0){return W(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=xe(function(d,p=0){return ae(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function U(S,d,p,$,J,oe){if(p+$>S.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function H(S,d,p,$,J){return d=+d,p=p>>>0,J||U(S,d,p,4),t.write(S,d,p,$,23,4),p+4}s.prototype.writeFloatLE=function(d,p,$){return H(this,d,p,!0,$)},s.prototype.writeFloatBE=function(d,p,$){return H(this,d,p,!1,$)};function V(S,d,p,$,J){return d=+d,p=p>>>0,J||U(S,d,p,8),t.write(S,d,p,$,52,8),p+8}s.prototype.writeDoubleLE=function(d,p,$){return V(this,d,p,!0,$)},s.prototype.writeDoubleBE=function(d,p,$){return V(this,d,p,!1,$)},s.prototype.copy=function(d,p,$,J){if(!s.isBuffer(d))throw new TypeError("argument should be a Buffer");if($||($=0),!J&&J!==0&&(J=this.length),p>=d.length&&(p=d.length),p||(p=0),J>0&&J<$&&(J=$),J===$||d.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),d.length-p<J-$&&(J=d.length-p+$);const oe=J-$;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(p,$,J):Uint8Array.prototype.set.call(d,this.subarray($,J),p),oe},s.prototype.fill=function(d,p,$,J){if(typeof d=="string"){if(typeof p=="string"?(J=p,p=0,$=this.length):typeof $=="string"&&(J=$,$=this.length),J!==void 0&&typeof J!="string")throw new TypeError("encoding must be a string");if(typeof J=="string"&&!s.isEncoding(J))throw new TypeError("Unknown encoding: "+J);if(d.length===1){const se=d.charCodeAt(0);(J==="utf8"&&se<128||J==="latin1")&&(d=se)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(p<0||this.length<p||this.length<$)throw new RangeError("Out of range index");if($<=p)return this;p=p>>>0,$=$===void 0?this.length:$>>>0,d||(d=0);let oe;if(typeof d=="number")for(oe=p;oe<$;++oe)this[oe]=d;else{const se=s.isBuffer(d)?d:s.from(d,J),ye=se.length;if(ye===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(oe=0;oe<$-p;++oe)this[oe+p]=se[oe%ye]}return this};const F={};function Z(S,d,p){F[S]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(J){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:J,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(S,d){return`The "${S}" argument must be of type number. Received type ${typeof d}`},TypeError),Z("ERR_OUT_OF_RANGE",function(S,d,p){let $=`The value of "${S}" is out of range.`,J=p;return Number.isInteger(p)&&Math.abs(p)>2**32?J=te(String(p)):typeof p=="bigint"&&(J=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(J=te(J)),J+="n"),$+=` It must be ${d}. Received ${J}`,$},RangeError);function te(S){let d="",p=S.length;const $=S[0]==="-"?1:0;for(;p>=$+4;p-=3)d=`_${S.slice(p-3,p)}${d}`;return`${S.slice(0,p)}${d}`}function ce(S,d,p){L(d,"offset"),(S[d]===void 0||S[d+p]===void 0)&&G(d,S.length-(p+1))}function pe(S,d,p,$,J,oe){if(S>p||S<d){const se=typeof d=="bigint"?"n":"";let ye;throw d===0||d===BigInt(0)?ye=`>= 0${se} and < 2${se} ** ${(oe+1)*8}${se}`:ye=`>= -(2${se} ** ${(oe+1)*8-1}${se}) and < 2 ** ${(oe+1)*8-1}${se}`,new F.ERR_OUT_OF_RANGE("value",ye,S)}ce($,J,oe)}function L(S,d){if(typeof S!="number")throw new F.ERR_INVALID_ARG_TYPE(d,"number",S)}function G(S,d,p){throw Math.floor(S)!==S?(L(S,p),new F.ERR_OUT_OF_RANGE("offset","an integer",S)):d<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,S)}const re=/[^+/0-9A-Za-z-_]/g;function de(S){if(S=S.split("=")[0],S=S.trim().replace(re,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function ue(S,d){d=d||1/0;let p;const $=S.length;let J=null;const oe=[];for(let se=0;se<$;++se){if(p=S.charCodeAt(se),p>55295&&p<57344){if(!J){if(p>56319){(d-=3)>-1&&oe.push(239,191,189);continue}else if(se+1===$){(d-=3)>-1&&oe.push(239,191,189);continue}J=p;continue}if(p<56320){(d-=3)>-1&&oe.push(239,191,189),J=p;continue}p=(J-55296<<10|p-56320)+65536}else J&&(d-=3)>-1&&oe.push(239,191,189);if(J=null,p<128){if((d-=1)<0)break;oe.push(p)}else if(p<2048){if((d-=2)<0)break;oe.push(p>>6|192,p&63|128)}else if(p<65536){if((d-=3)<0)break;oe.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((d-=4)<0)break;oe.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return oe}function he(S){const d=[];for(let p=0;p<S.length;++p)d.push(S.charCodeAt(p)&255);return d}function X(S,d){let p,$,J;const oe=[];for(let se=0;se<S.length&&!((d-=2)<0);++se)p=S.charCodeAt(se),$=p>>8,J=p%256,oe.push(J),oe.push($);return oe}function le(S){return e.toByteArray(de(S))}function fe(S,d,p,$){let J;for(J=0;J<$&&!(J+p>=d.length||J>=S.length);++J)d[J+p]=S[J];return J}function ie(S,d){return S instanceof d||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===d.name}function Se(S){return S!==S}const Be=function(){const S="0123456789abcdef",d=new Array(256);for(let p=0;p<16;++p){const $=p*16;for(let J=0;J<16;++J)d[$+J]=S[p]+S[J]}return d}();function xe(S){return typeof BigInt>"u"?Ue:S}function Ue(){throw new Error("BigInt not supported")}}(Hn)),Hn}var Ec=vt();const br="http://www.w3.org/1999/02/22-rdf-syntax-ns#",mr="http://www.w3.org/2001/XMLSchema#",en="http://www.w3.org/2000/10/swap/",Pe={xsd:{decimal:`${mr}decimal`,boolean:`${mr}boolean`,double:`${mr}double`,integer:`${mr}integer`,string:`${mr}string`},rdf:{type:`${br}type`,nil:`${br}nil`,first:`${br}first`,rest:`${br}rest`,langString:`${br}langString`},owl:{sameAs:"http://www.w3.org/2002/07/owl#sameAs"},r:{forSome:`${en}reify#forSome`,forAll:`${en}reify#forAll`},log:{implies:`${en}log#implies`,isImpliedBy:`${en}log#isImpliedBy`}},{xsd:tn}=Pe,Ic=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,ja={"\\":"\\","'":"'",'"':'"',n:`
7
+ `,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Rc=/[\x00-\x20<>\\"\{\}\|\^\`]/,Nc={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},jc=/$0^/;class Tc{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._isImpliedBy=e.isImpliedBy,this._lineMode=!!e.lineMode){this._n3Mode=!1;for(const t in this)!(t in Nc)&&this[t]instanceof RegExp&&(this[t]=jc)}else this._n3Mode=e.n3!==!1;this.comments=!!e.comments,this._literalClosingPos=0}_tokenizeToEnd(e,t){let r=this._input,o=r.length;for(;;){let s,l;for(;s=this._newline.exec(r);)this.comments&&(l=this._comment.exec(s[0]))&&i("comment",l[1],"",this._line,s[0].length),r=r.substr(s[0].length,r.length),o=r.length,this._line++;if(!s&&(s=this._whitespace.exec(r))&&(r=r.substr(s[0].length,r.length)),this._endOfFile.test(r))return t&&(this.comments&&(l=this._comment.exec(r))&&i("comment",l[1],"",this._line,r.length),r=null,i("eof","","",this._line,0)),this._input=r;const u=this._line,f=r[0];let m="",y="",b="",g=null,x=0,_=!1;switch(f){case"^":if(r.length<3)break;if(r[1]==="^"){if(this._previousMarker="^^",r=r.substr(2),r[0]!=="<"){_=!0;break}}else{this._n3Mode&&(x=1,m="^");break}case"<":if(g=this._unescapedIri.exec(r))m="IRI",y=g[1];else if(g=this._iri.exec(r)){if(y=this._unescape(g[1]),y===null||Rc.test(y))return a(this);m="IRI"}else r.length>1&&r[1]==="<"?(m="<<",x=2):this._n3Mode&&r.length>1&&r[1]==="="&&(x=2,this._isImpliedBy?(m="abbreviation",y="<"):(m="inverse",y=">"));break;case">":r.length>1&&r[1]===">"&&(m=">>",x=2);break;case"_":((g=this._blank.exec(r))||t&&(g=this._blank.exec(`${r} `)))&&(m="blank",b="_",y=g[1]);break;case'"':if(g=this._simpleQuotedString.exec(r))y=g[1];else if({value:y,matchLength:x}=this._parseLiteral(r),y===null)return a(this);(g!==null||x!==0)&&(m="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(g=this._simpleApostropheString.exec(r))y=g[1];else if({value:y,matchLength:x}=this._parseLiteral(r),y===null)return a(this);(g!==null||x!==0)&&(m="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(g=this._variable.exec(r))&&(m="var",y=g[0]);break;case"@":this._previousMarker==="literal"&&(g=this._langcode.exec(r))?(m="langcode",y=g[1]):(g=this._keyword.exec(r))&&(m=g[0]);break;case".":if(r.length===1?t:r[1]<"0"||r[1]>"9"){m=".",x=1;break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"+":case"-":(g=this._number.exec(r)||t&&(g=this._number.exec(`${r} `)))&&(m="literal",y=g[0],b=typeof g[1]=="string"?tn.double:typeof g[2]=="string"?tn.decimal:tn.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(g=this._sparqlKeyword.exec(r))?m=g[0].toUpperCase():_=!0;break;case"f":case"t":(g=this._boolean.exec(r))?(m="literal",y=g[0],b=tn.boolean):_=!0;break;case"a":(g=this._shortPredicates.exec(r))?(m="abbreviation",y="a"):_=!0;break;case"=":this._n3Mode&&r.length>1&&(m="abbreviation",r[1]!==">"?(x=1,y="="):(x=2,y=">"));break;case"!":if(!this._n3Mode)break;case",":case";":case"[":case"]":case"(":case")":case"}":this._lineMode||(x=1,m=f);break;case"{":!this._lineMode&&r.length>=2&&(r[1]==="|"?(m="{|",x=2):(m=f,x=1));break;case"|":r.length>=2&&r[1]==="}"&&(m="|}",x=2);break;default:_=!0}if(_&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(g=this._prefix.exec(r))?(m="prefix",y=g[1]||""):((g=this._prefixed.exec(r))||t&&(g=this._prefixed.exec(`${r} `)))&&(m="prefixed",b=g[1]||"",y=this._unescape(g[2]))),this._previousMarker==="^^")switch(m){case"prefixed":m="type";break;case"IRI":m="typeIRI";break;default:m=""}if(!m)return t||!/^'''|^"""/.test(r)&&/\n|\r/.test(r)?a(this):this._input=r;const k=x||g[0].length,E=i(m,y,b,u,k);this.previousToken=E,this._previousMarker=m,r=r.substr(k,r.length)}function i(s,l,u,f,m){const y=r?o-r.length:o,b=y+m,g={type:s,value:l,prefix:u,line:f,start:y,end:b};return e(null,g),g}function a(s){e(s._syntaxError(/^\S*/.exec(r)[0]))}}_unescape(e){let t=!1;const r=e.replace(Ic,(o,i,a,s)=>{if(typeof i=="string")return String.fromCharCode(Number.parseInt(i,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 s in ja?ja[s]:(t=!0,"")});return t?null:r}_parseLiteral(e){if(e.length>=3){const t=e.match(/^(?:"""|"|'''|'|)/)[0],r=t.length;let o=Math.max(this._literalClosingPos,r);for(;(o=e.indexOf(t,o))>0;){let i=0;for(;e[o-i-1]==="\\";)i++;if(i%2===0){const a=e.substring(r,o),s=a.split(/\r\n|\r|\n/).length-1,l=o+r;if(r===1&&s!==0||r===3&&this._lineMode)break;return this._line+=s,{value:this._unescape(a),matchLength:l}}o++}this._literalClosingPos=e.length-r+1}return{value:"",matchLength:0}}_syntaxError(e){this._input=null;const t=new Error(`Unexpected "${e}" on line ${this._line}.`);return t.context={token:void 0,line:this._line,previousToken:this.previousToken},t}_readStartingBom(e){return e.startsWith("\uFEFF")?e.substr(1):e}tokenize(e,t){if(this._line=1,typeof e=="string")if(this._input=this._readStartingBom(e),typeof t=="function")queueMicrotask(()=>this._tokenizeToEnd(t,!0));else{const r=[];let o;if(this._tokenizeToEnd((i,a)=>i?o=i:r.push(a),!0),o)throw o;return r}else this._pendingBuffer=null,typeof e.setEncoding=="function"&&e.setEncoding("utf8"),e.on("data",r=>{this._input!==null&&r.length!==0&&(this._pendingBuffer&&(r=Ec.Buffer.concat([this._pendingBuffer,r]),this._pendingBuffer=null),r[r.length-1]&128?this._pendingBuffer=r:(typeof this._input>"u"?this._input=this._readStartingBom(typeof r=="string"?r:r.toString()):this._input+=r,this._tokenizeToEnd(t,!1)))}),e.on("end",()=>{typeof this._input=="string"&&this._tokenizeToEnd(t,!0)}),e.on("error",t)}}const{rdf:Ac,xsd:Mt}=Pe;let lr,Lc=0;const _e={namedNode:ud,blankNode:pd,variable:hd,literal:fd,defaultGraph:Mc,quad:Ii,triple:Ii,fromTerm:Mr,fromQuad:bd};class at{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof at?this.id===e.id:!!e&&this.termType===e.termType&&this.value===e.value}hashCode(){return 0}toJSON(){return{termType:this.termType,value:this.value}}}let In=class extends at{get termType(){return"NamedNode"}},Ze=class cd extends at{get termType(){return"Literal"}get value(){return this.id.substring(1,this.id.lastIndexOf('"'))}get language(){const e=this.id;let t=e.lastIndexOf('"')+1;return t<e.length&&e[t++]==="@"?e.substr(t).toLowerCase():""}get datatype(){return new In(this.datatypeString)}get datatypeString(){const e=this.id,t=e.lastIndexOf('"')+1,r=t<e.length?e[t]:"";return r==="^"?e.substr(t+2):r!=="@"?Mt.string:Ac.langString}equals(e){return e instanceof cd?this.id===e.id:!!e&&!!e.datatype&&this.termType===e.termType&&this.value===e.value&&this.language===e.language&&this.datatype.value===e.datatype.value}toJSON(){return{termType:this.termType,value:this.value,language:this.language,datatype:{termType:"NamedNode",value:this.datatypeString}}}},Oc=class extends at{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},$c=class extends at{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},Dc=class extends at{constructor(){return super(""),lr||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};lr=new Dc;function Dr(n,e,t){if(e=e||_e,!n)return e.defaultGraph();switch(n[0]){case"?":return e.variable(n.substr(1));case"_":return e.blankNode(n.substr(2));case'"':if(e===_e)return new Ze(n);if(n[n.length-1]==='"')return e.literal(n.substr(1,n.length-2));const r=n.lastIndexOf('"',n.length-1);return e.literal(n.substr(1,r-1),n[r+1]==="@"?n.substr(r+2):e.namedNode(n.substr(r+3)));case"[":n=JSON.parse(n);break;default:if(!t||!Array.isArray(n))return e.namedNode(n)}return e.quad(Dr(n[0],e,!0),Dr(n[1],e,!0),Dr(n[2],e,!0),n[3]&&Dr(n[3],e,!0))}function er(n,e){if(typeof n=="string")return n;if(n instanceof at&&n.termType!=="Quad")return n.id;if(!n)return lr.id;switch(n.termType){case"NamedNode":return n.value;case"BlankNode":return`_:${n.value}`;case"Variable":return`?${n.value}`;case"DefaultGraph":return"";case"Literal":return`"${n.value}"${n.language?`@${n.language}`:n.datatype&&n.datatype.value!==Mt.string?`^^${n.datatype.value}`:""}`;case"Quad":const t=[er(n.subject,!0),er(n.predicate,!0),er(n.object,!0)];return n.graph&&n.graph.termType!=="DefaultGraph"&&t.push(er(n.graph,!0)),e?t:JSON.stringify(t);default:throw new Error(`Unexpected termType: ${n.termType}`)}}let Rn=class extends at{constructor(e,t,r,o){super(""),this._subject=e,this._predicate=t,this._object=r,this._graph=o||lr}get termType(){return"Quad"}get subject(){return this._subject}get predicate(){return this._predicate}get object(){return this._object}get graph(){return this._graph}toJSON(){return{termType:this.termType,subject:this._subject.toJSON(),predicate:this._predicate.toJSON(),object:this._object.toJSON(),graph:this._graph.toJSON()}}equals(e){return!!e&&this._subject.equals(e.subject)&&this._predicate.equals(e.predicate)&&this._object.equals(e.object)&&this._graph.equals(e.graph)}};function ud(n){return new In(n)}function pd(n){return new Oc(n||`n3-${Lc++}`)}function fd(n,e){if(typeof e=="string")return new Ze(`"${n}"@${e.toLowerCase()}`);let t=e?e.value:"";return t===""&&(typeof n=="boolean"?t=Mt.boolean:typeof n=="number"&&(Number.isFinite(n)?t=Number.isInteger(n)?Mt.integer:Mt.double:(t=Mt.double,Number.isNaN(n)||(n=n>0?"INF":"-INF")))),t===""||t===Mt.string?new Ze(`"${n}"`):new Ze(`"${n}"^^${t}`)}function hd(n){return new $c(n)}function Mc(){return lr}function Ii(n,e,t,r){return new Rn(n,e,t,r)}function Mr(n){if(n instanceof at)return n;switch(n.termType){case"NamedNode":return ud(n.value);case"BlankNode":return pd(n.value);case"Variable":return hd(n.value);case"DefaultGraph":return lr;case"Literal":return fd(n.value,n.language||n.datatype);case"Quad":return bd(n);default:throw new Error(`Unexpected termType: ${n.termType}`)}}function bd(n){if(n instanceof Rn)return n;if(n.termType!=="Quad")throw new Error(`Unexpected termType: ${n.termType}`);return Ii(Mr(n.subject),Mr(n.predicate),Mr(n.object),Mr(n.graph))}let Ta=0;class Ri{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&md(this,e.factory);const t=typeof e.format=="string"?e.format.match(/\w*$/)[0].toLowerCase():"",r=/turtle/.test(t),o=/trig/.test(t),i=/triple/.test(t),a=/quad/.test(t),s=this._n3Mode=/n3/.test(t),l=i||a;(this._supportsNamedGraphs=!(r||s))||(this._readPredicateOrNamedGraph=this._readPredicate),this._supportsQuads=!(r||o||i||s),this._isImpliedBy=e.isImpliedBy,this._supportsRDFStar=t===""||/star|\*$/.test(t),l&&(this._resolveRelativeIRI=u=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new Tc({lineMode:l,n3:s,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){Ta=0}_setBase(e){if(!e)this._base="",this._basePath="";else{const t=e.indexOf("#");t>=0&&(e=e.substr(0,t)),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,t,r,o,i){const a=this._n3Mode;this._contextStack.push({type:e,subject:r,predicate:o,object:i,graph:t,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,t){const r=this._contextStack.pop();if(!r||r.type!==e)return this._error(`Unexpected ${t.type}`,t);this._subject=r.subject,this._predicate=r.predicate,this._object=r.object,this._graph=r.graph,this._n3Mode&&(this._inversePredicate=r.inverse,this._prefixes._=r.blankPrefix,this._quantified=r.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,t){let r;switch(e.type){case"IRI":case"typeIRI":const o=this._resolveIRI(e.value);if(o===null)return this._error("Invalid IRI",e);r=this._factory.namedNode(o);break;case"type":case"prefixed":const i=this._prefixes[e.prefix];if(i===void 0)return this._error(`Undefined prefix "${e.prefix}:"`,e);r=this._factory.namedNode(i+e.value);break;case"blank":r=this._factory.blankNode(this._prefixes[e.prefix]+e.value);break;case"var":r=this._factory.variable(e.value.substr(1));break;default:return this._error(`Expected entity but got ${e.type}`,e)}return!t&&this._n3Mode&&r.id in this._quantified&&(r=this._quantified[r.id]),r}_readSubject(e){switch(this._predicate=null,e.type){case"[":return this._saveContext("blank",this._graph,this._subject=this._factory.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._factory.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="blankNode",this._readQuantifierList):this._error('Unexpected "@forSome"',e);case"@forAll":return this._n3Mode?(this._subject=null,this._predicate=this.N3_FORALL,this._quantifier="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._factory.literal(e.value,this._factory.namedNode(e.prefix));break;case"<<":return this._supportsRDFStar?(this._saveContext("<<",this._graph,null,null,null),this._graph=null,this._readSubject):this._error("Unexpected RDF-star 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 t=e.type;switch(t){case"inverse":this._inversePredicate=!0;case"abbreviation":this._predicate=this.ABBREVIATIONS[e.value];break;case".":case"]":case"}":return this._predicate===null?this._error(`Unexpected ${t}`,e):(this._subject=null,t==="]"?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._factory.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._factory.literal(e.value,this._factory.namedNode(e.prefix));break;case"[":return this._saveContext("blank",this._graph,this._subject,this._predicate,this._subject=this._factory.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._factory.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-star 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 t=this._predicate===null;return this._restoreContext("blank",e),this._object!==null?this._getContextEndReader():this._predicate!==null?this._readObject:t?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 t=null,r=null,o=this._readListItem;const i=this._subject,a=this._contextStack,s=a[a.length-1];switch(e.type){case"[":this._saveContext("blank",this._graph,r=this._factory.blankNode(),this.RDF_FIRST,this._subject=t=this._factory.blankNode()),o=this._readBlankNodeHead;break;case"(":this._saveContext("list",this._graph,r=this._factory.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(o=this._readPredicate,this._subject===this.RDF_NIL)return o}else if(o=this._getContextEndReader(),this._object===this.RDF_NIL)return o;r=this.RDF_NIL;break;case"literal":e.prefix.length===0?(this._literalValue=e.value,o=this._readListItemDataTypeOrLang):(t=this._factory.literal(e.value,this._factory.namedNode(e.prefix)),o=this._getContextEndReader());break;case"{":return this._n3Mode?(this._saveContext("formula",this._graph,this._subject,this._predicate,this._graph=this._factory.blankNode()),this._readSubject):this._error("Unexpected graph",e);default:if((t=this._readEntity(e))===void 0)return}if(r===null&&(this._subject=r=this._factory.blankNode()),i===null?s.predicate===null?s.subject=r:s.object=r:this._emit(i,this.RDF_REST,r,this._graph),t!==null){if(this._n3Mode&&(e.type==="IRI"||e.type==="prefixed"))return this._saveContext("item",this._graph,r,this.RDF_FIRST,t),this._subject=t,this._predicate=null,this._getPathReader(this._readListItem);this._emit(r,this.RDF_FIRST,t,this._graph)}return o}_readDataTypeOrLang(e){return this._completeObjectLiteral(e,!1)}_readListItemDataTypeOrLang(e){return this._completeObjectLiteral(e,!0)}_completeLiteral(e){let t=this._factory.literal(this._literalValue);switch(e.type){case"type":case"typeIRI":const r=this._readEntity(e);if(r===void 0)return;t=this._factory.literal(this._literalValue,r),e=null;break;case"langcode":t=this._factory.literal(this._literalValue,e.value),e=null;break}return{token:e,literal:t}}_completeSubjectLiteral(e){return this._subject=this._completeLiteral(e).literal,this._readPredicateOrNamedGraph}_completeObjectLiteral(e,t){const r=this._completeLiteral(e);if(r)return this._object=r.literal,t&&this._emit(this._subject,this.RDF_FIRST,this._object,this._graph),r.token===null?this._getContextEndReader():(this._readCallback=this._getContextEndReader(),this._readCallback(r.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 t,r=this._graph;const o=this._subject,i=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,t=this._contextStack.length?this._readSubject:this._readInTopContext,i&&(this._inversePredicate=!1);break;case";":t=this._readPredicate;break;case",":t=this._readObject;break;case"{|":if(!this._supportsRDFStar)return this._error("Unexpected RDF-star syntax",e);const a=this._predicate,s=this._object;this._subject=this._factory.quad(o,a,s,this.DEFAULTGRAPH),t=this._readPredicate;break;case"|}":if(this._subject.termType!=="Quad")return this._error("Unexpected asserted triple closing",e);this._subject=null,t=this._readPunctuation;break;default:if(this._supportsQuads&&this._graph===null&&(r=this._readEntity(e))!==void 0){t=this._readQuadPunctuation;break}return this._error(`Expected punctuation to follow "${this._object.id}"`,e)}if(o!==null){const a=this._predicate,s=this._object;i?this._emit(s,a,o,r):this._emit(o,a,s,r)}return t}_readBlankNodePunctuation(e){let t;switch(e.type){case";":t=this._readPredicate;break;case",":t=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),t}_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 t=this._readEntity(e);return this._prefixes[this._prefix]=t.value,this._prefixCallback(this._prefix,t),this._readDeclarationPunctuation}_readBaseIRI(e){const t=e.type==="IRI"&&this._resolveIRI(e.value);return t?(this._setBase(t),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._factory.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 t;switch(e.type){case"IRI":case"prefixed":if((t=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._factory.blankNode(),this.QUANTIFIERS_GRAPH):this._emit(this._subject,this.RDF_REST,this._subject=this._factory.blankNode(),this.QUANTIFIERS_GRAPH),this._emit(this._subject,this.RDF_FIRST,t,this.QUANTIFIERS_GRAPH)):this._quantified[t.id]=this._factory[this._quantifier](this._factory.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 t=this._contextStack,r=t.length&&t[t.length-1];if(r&&r.type==="item"){const o=this._subject;this._restoreContext("item",e),this._emit(this._subject,this.RDF_FIRST,o,this._graph)}return this._afterPath(e)}}_readForwardPath(e){let t,r;const o=this._factory.blankNode();if((r=this._readEntity(e))!==void 0)return this._predicate===null?(t=this._subject,this._subject=o):(t=this._object,this._object=o),this._emit(t,r,o,this._graph),this._readPath}_readBackwardPath(e){const t=this._factory.blankNode();let r,o;if((r=this._readEntity(e))!==void 0)return this._predicate===null?(o=this._subject,this._subject=t):(o=this._object,this._object=t),this._emit(t,r,o,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 t=this._factory.quad(this._subject,this._predicate,this._object,this._graph||this.DEFAULTGRAPH);return this._restoreContext("<<",e),this._subject===null?(this._subject=t,this._readPredicate):(this._object=t,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,t,r,o){this._callback(null,this._factory.quad(e,t,r,o||this.DEFAULTGRAPH))}_error(e,t){const r=new Error(`${e} on line ${t.line}.`);r.context={token:t,line:t.line,previousToken:this._lexer.previousToken},this._callback(r),this._callback=rn}_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 t=e.length;let r="",o=-1,i=-1,a=0,s="/";for(;o<t;){switch(s){case":":if(i<0&&e[++o]==="/"&&e[++o]==="/")for(;(i=o+1)<t&&e[i]!=="/";)o=i;break;case"?":case"#":o=t;break;case"/":if(e[o+1]===".")switch(s=e[++o+1],s){case"/":r+=e.substring(a,o-1),a=o+1;break;case void 0:case"?":case"#":return r+e.substring(a,o)+e.substr(o+1);case".":if(s=e[++o+1],s===void 0||s==="/"||s==="?"||s==="#"){if(r+=e.substring(a,o-2),(a=r.lastIndexOf("/"))>=i&&(r=r.substr(0,a)),s!=="/")return`${r}/${e.substr(o+1)}`;a=o+1}}}s=e[++o]}return r+e.substring(a)}parse(e,t,r){let o,i,a;if(t&&(t.onQuad||t.onPrefix||t.onComment)?(o=t.onQuad,i=t.onPrefix,a=t.onComment):(o=t,i=r),this._readCallback=this._readInTopContext,this._sparqlStyle=!1,this._prefixes=Object.create(null),this._prefixes._=this._blankNodePrefix?this._blankNodePrefix.substr(2):`b${Ta++}_`,this._prefixCallback=i||rn,this._inversePredicate=!1,this._quantified=Object.create(null),!o){const l=[];let u;if(this._callback=(f,m)=>{f?u=f:m&&l.push(m)},this._lexer.tokenize(e).every(f=>this._readCallback=this._readCallback(f)),u)throw u;return l}let s=(l,u)=>{l!==null?(this._callback(l),this._callback=rn):this._readCallback&&(this._readCallback=this._readCallback(u))};a&&(this._lexer.comments=!0,s=(l,u)=>{l!==null?(this._callback(l),this._callback=rn):this._readCallback&&(u.type==="comment"?a(u.value):this._readCallback=this._readCallback(u))}),this._callback=o,this._lexer.tokenize(e,s)}}function rn(){}function md(n,e){n._factory=e,n.DEFAULTGRAPH=e.defaultGraph(),n.RDF_FIRST=e.namedNode(Pe.rdf.first),n.RDF_REST=e.namedNode(Pe.rdf.rest),n.RDF_NIL=e.namedNode(Pe.rdf.nil),n.N3_FORALL=e.namedNode(Pe.r.forAll),n.N3_FORSOME=e.namedNode(Pe.r.forSome),n.ABBREVIATIONS={a:e.namedNode(Pe.rdf.type),"=":e.namedNode(Pe.owl.sameAs),">":e.namedNode(Pe.log.implies),"<":e.namedNode(Pe.log.isImpliedBy)},n.QUANTIFIERS_GRAPH=e.namedNode("urn:n3:quantifiers")}md(Ri.prototype,_e);function Ni(n){return!!n&&n.termType==="DefaultGraph"}function un(n){return n.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}const Cc=/^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i,Pc=/^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/,Aa="./",Bc="../",Gn="?",La="#";class qi{constructor(e){this.base=e,this._baseLength=0,this._baseMatcher=null,this._pathReplacements=new Array(e.length+1)}static supports(e){return!Cc.test(e)}_getBaseMatcher(){if(this._baseMatcher)return this._baseMatcher;if(!qi.supports(this.base))return this._baseMatcher=/.^/;const e=/^[^:]*:\/*/.exec(this.base)[0],t=["^",un(e)],r=[],o=[],i=/[^/?#]*([/?#])/y;let a,s=0,l=0,u=i.lastIndex=e.length;for(;!s&&!l&&(a=i.exec(this.base));)a[1]===La?l=i.lastIndex-1:(t.push(un(a[0]),"(?:"),r.push(")?"),a[1]!==Gn?o.push(u=i.lastIndex):(s=u=i.lastIndex,l=this.base.indexOf(La,s),this._pathReplacements[s]=Gn));for(let f=0;f<o.length;f++)this._pathReplacements[o[f]]=Bc.repeat(o.length-f-1);return this._pathReplacements[o[o.length-1]]=Aa,this._baseLength=l>0?l:this.base.length,t.push(un(this.base.substring(u,this._baseLength)),s?"(?:#|$)":"(?:[?#]|$)"),this._baseMatcher=new RegExp([...t,...r].join(""))}toRelative(e){const t=this._getBaseMatcher().exec(e);if(!t)return e;const r=t[0].length;if(r===this._baseLength&&r===e.length)return"";const o=this._pathReplacements[r];if(o){const i=e.substring(r);return o!==Gn&&!Pc.test(i)?e:o===Aa&&/^[^?#]/.test(i)?i:o+i}return e.substring(r-1)}}const gr=_e.defaultGraph(),{rdf:qc,xsd:Qt}=Pe,Oa=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,$a=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,Fc={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class vr extends at{equals(e){return e===this}}class Fi{constructor(e,t){if(this._prefixRegex=/$0^/,e&&typeof e.write!="function"&&(t=e,e=null),t=t||{},this._lists=t.lists,e)this._outputStream=e,this._endStream=t.end===void 0?!0:!!t.end;else{let r="";this._outputStream={write(o,i,a){r+=o,a&&a()},end:o=>{o&&o(null,r)}},this._endStream=!0}this._subject=null,/triple|quad/i.test(t.format)?(this._lineMode=!0,this._writeQuad=this._writeQuadLine):(this._lineMode=!1,this._graph=gr,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseIri=new qi(t.baseIRI)))}get _inDefaultGraph(){return gr.equals(this._graph)}_write(e,t){this._outputStream.write(e,"utf8",t)}_writeQuad(e,t,r,o,i){try{o.equals(this._graph)||(this._write((this._subject===null?"":this._inDefaultGraph?`.
8
8
  `:`
9
9
  }
10
- `)+(br.equals(o)?"":`${this._encodeIriOrBlank(o)} {
11
- `)),this._graph=o,this._subject=null),e.equals(this._subject)?t.equals(this._predicate)?this._write(`, ${this._encodeObject(n)}`,i):this._write(`;
12
- ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,i):this._write(`${(this._subject===null?"":`.
13
- `)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,i)}catch(a){i&&i(a)}}_writeQuadLine(e,t,n,o,i){delete this._prefixMatch,this._write(this.quadToString(e,t,n,o),i)}quadToString(e,t,n,o){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(t)} ${this._encodeObject(n)}${o&&o.value?` ${this._encodeIriOrBlank(o)} .
10
+ `)+(gr.equals(o)?"":`${this._encodeIriOrBlank(o)} {
11
+ `)),this._graph=o,this._subject=null),e.equals(this._subject)?t.equals(this._predicate)?this._write(`, ${this._encodeObject(r)}`,i):this._write(`;
12
+ ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(r)}`,i):this._write(`${(this._subject===null?"":`.
13
+ `)+this._encodeSubject(this._subject=e)} ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(r)}`,i)}catch(a){i&&i(a)}}_writeQuadLine(e,t,r,o,i){delete this._prefixMatch,this._write(this.quadToString(e,t,r,o),i)}quadToString(e,t,r,o){return`${this._encodeSubject(e)} ${this._encodeIriOrBlank(t)} ${this._encodeObject(r)}${o&&o.value?` ${this._encodeIriOrBlank(o)} .
14
14
  `:` .
15
- `}`}quadsToString(e){let t="";for(const n of e)t+=this.quadToString(n.subject,n.predicate,n.object,n.graph);return t}_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 t=e.value;this._baseIri&&(t=this._baseIri.toRelative(t)),La.test(t)&&(t=t.replace(Oa,$a));const n=this._prefixRegex.exec(t);return n?n[1]?this._prefixIRIs[n[1]]+n[2]:t:`<${t}>`}_encodeLiteral(e){let t=e.value;if(La.test(t)&&(t=t.replace(Oa,$a)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Jt.string)return`"${t}"`}else switch(e.datatype.value){case Jt.string:return`"${t}"`;case Jt.boolean:if(t==="true"||t==="false")return t;break;case Jt.integer:if(/^[+-]?\d+$/.test(t))return t;break;case Jt.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case Jt.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t;break}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===Pc.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:t,object:n,graph:o}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(n)}${Ni(o)?"":` ${this._encodeIriOrBlank(o)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,n,o,i){n===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):typeof o=="function"?this._writeQuad(e,t,n,br,o):this._writeQuad(e,t,n,o||br,i)}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}addPrefix(e,t,n){const o={};o[e]=t,this.addPrefixes(o,n)}addPrefixes(e,t){if(!this._prefixIRIs)return t&&t();let n=!1;for(let o in e){let i=e[o];typeof i!="string"&&(i=i.value),n=!0,this._subject!==null&&(this._write(this._inDefaultGraph?`.
15
+ `}`}quadsToString(e){let t="";for(const r of e)t+=this.quadToString(r.subject,r.predicate,r.object,r.graph);return t}_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 t=e.value;this._baseIri&&(t=this._baseIri.toRelative(t)),Oa.test(t)&&(t=t.replace($a,Da));const r=this._prefixRegex.exec(t);return r?r[1]?this._prefixIRIs[r[1]]+r[2]:t:`<${t}>`}_encodeLiteral(e){let t=e.value;if(Oa.test(t)&&(t=t.replace($a,Da)),e.language)return`"${t}"@${e.language}`;if(this._lineMode){if(e.datatype.value===Qt.string)return`"${t}"`}else switch(e.datatype.value){case Qt.string:return`"${t}"`;case Qt.boolean:if(t==="true"||t==="false")return t;break;case Qt.integer:if(/^[+-]?\d+$/.test(t))return t;break;case Qt.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case Qt.double:if(/^[+-]?(?:\d+\.\d*|\.?\d+)[eE][+-]?\d+$/.test(t))return t;break}return`"${t}"^^${this._encodeIriOrBlank(e.datatype)}`}_encodePredicate(e){return e.value===qc.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:t,object:r,graph:o}){return`<<${this._encodeSubject(e)} ${this._encodePredicate(t)} ${this._encodeObject(r)}${Ni(o)?"":` ${this._encodeIriOrBlank(o)}`}>>`}_blockedWrite(){throw new Error("Cannot write because the writer has been closed.")}addQuad(e,t,r,o,i){r===void 0?this._writeQuad(e.subject,e.predicate,e.object,e.graph,t):typeof o=="function"?this._writeQuad(e,t,r,gr,o):this._writeQuad(e,t,r,o||gr,i)}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}addPrefix(e,t,r){const o={};o[e]=t,this.addPrefixes(o,r)}addPrefixes(e,t){if(!this._prefixIRIs)return t&&t();let r=!1;for(let o in e){let i=e[o];typeof i!="string"&&(i=i.value),r=!0,this._subject!==null&&(this._write(this._inDefaultGraph?`.
16
16
  `:`
17
17
  }
18
18
  `),this._subject=null,this._graph=""),this._prefixIRIs[i]=o+=":",this._write(`@prefix ${o} <${i}>.
19
- `)}if(n){let o="",i="";for(const a in this._prefixIRIs)o+=o?`|${a}`:a,i+=(i?"|":"")+this._prefixIRIs[a];o=cn(o),this._prefixRegex=new RegExp(`^(?:${i})[^/]*$|^(${o})([_a-zA-Z0-9][\\-_a-zA-Z0-9]*)$`)}this._write(n?`
20
- `:"",t)}blank(e,t){let n=e,o,i;switch(e===void 0?n=[]:e.termType?n=[{predicate:e,object:t}]:"length"in e||(n=[e]),i=n.length){case 0:return new mr("[]");case 1:if(o=n[0],!(o.object instanceof mr))return new mr(`[ ${this._encodePredicate(o.predicate)} ${this._encodeObject(o.object)} ]`);default:let a="[";for(let s=0;s<i;s++)o=n[s],o.predicate.equals(e)?a+=`, ${this._encodeObject(o.object)}`:(a+=`${(s?`;
19
+ `)}if(r){let o="",i="";for(const a in this._prefixIRIs)o+=o?`|${a}`:a,i+=(i?"|":"")+this._prefixIRIs[a];o=un(o),this._prefixRegex=new RegExp(`^(?:${i})[^/]*$|^(${o})([_a-zA-Z0-9][\\-_a-zA-Z0-9]*)$`)}this._write(r?`
20
+ `:"",t)}blank(e,t){let r=e,o,i;switch(e===void 0?r=[]:e.termType?r=[{predicate:e,object:t}]:"length"in e||(r=[e]),i=r.length){case 0:return new vr("[]");case 1:if(o=r[0],!(o.object instanceof vr))return new vr(`[ ${this._encodePredicate(o.predicate)} ${this._encodeObject(o.object)} ]`);default:let a="[";for(let s=0;s<i;s++)o=r[s],o.predicate.equals(e)?a+=`, ${this._encodeObject(o.object)}`:(a+=`${(s?`;
21
21
  `:`
22
- `)+this._encodePredicate(o.predicate)} ${this._encodeObject(o.object)}`,e=o.predicate);return new mr(`${a}
23
- ]`)}}list(e){const t=e&&e.length||0,n=new Array(t);for(let o=0;o<t;o++)n[o]=this._encodeObject(e[o]);return new mr(`(${n.join(" ")})`)}end(e){this._subject!==null&&(this._write(this._inDefaultGraph?`.
22
+ `)+this._encodePredicate(o.predicate)} ${this._encodeObject(o.object)}`,e=o.predicate);return new vr(`${a}
23
+ ]`)}}list(e){const t=e&&e.length||0,r=new Array(t);for(let o=0;o<t;o++)r[o]=this._encodeObject(e[o]);return new vr(`(${r.join(" ")})`)}end(e){this._subject!==null&&(this._write(this._inDefaultGraph?`.
24
24
  `:`
25
25
  }
26
- `),this._subject=null),this._write=this._blockedWrite;let t=e&&((n,o)=>{t=null,e(n,o)});if(this._endStream)try{return this._outputStream.end(t)}catch{}t&&t()}}function $a(r){let e=Bc[r];return e===void 0&&(r.length===1?(e=r.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}var Vn={exports:{}},Wn={exports:{}},Jn,Da;function Oe(){if(Da)return Jn;Da=1;class r extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let n="";for(let o=0;o<t.length;o++)n+=` ${t[o].stack}
27
- `;super(n),this.name="AggregateError",this.errors=t}}return Jn={AggregateError:r,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},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(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.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(e,t,n){return e.set(t,n)},Boolean,Uint8Array},Jn}var Qn={exports:{}},Xn,Ma;function md(){return Ma||(Ma=1,Xn={format(r,...e){return r.replace(/%([sdifj])/g,function(...[t,n]){const o=e.shift();return n==="f"?o.toFixed(6):n==="j"?JSON.stringify(o):n==="s"&&typeof o=="object"?`${o.constructor!==Object?o.constructor.name:""} {}`.trim():o.toString()})},inspect(r){switch(typeof r){case"string":if(r.includes("'"))if(r.includes('"')){if(!r.includes("`")&&!r.includes("${"))return`\`${r}\``}else return`"${r}"`;return`'${r}'`;case"number":return isNaN(r)?"NaN":Object.is(r,-0)?String(r):r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}),Xn}var Kn,Ca;function He(){if(Ca)return Kn;Ca=1;const{format:r,inspect:e}=md(),{AggregateError:t}=Oe(),n=globalThis.AggregateError||t,o=Symbol("kIsNodeError"),i=["string","function","number","object","Function","Object","boolean","bigint","symbol"],a=/^([A-Z][a-z0-9]*)+$/,s="__node_internal_",l={};function u(_,k){if(!_)throw new l.ERR_INTERNAL_ASSERTION(k)}function f(_){let k="",E=_.length;const v=_[0]==="-"?1:0;for(;E>=v+4;E-=3)k=`_${_.slice(E-3,E)}${k}`;return`${_.slice(0,E)}${k}`}function m(_,k,E){if(typeof k=="function")return u(k.length<=E.length,`Code: ${_}; The provided arguments length (${E.length}) does not match the required ones (${k.length}).`),k(...E);const v=(k.match(/%[dfijoOs]/g)||[]).length;return u(v===E.length,`Code: ${_}; The provided arguments length (${E.length}) does not match the required ones (${v}).`),E.length===0?k:r(k,...E)}function y(_,k,E){E||(E=Error);class v extends E{constructor(...h){super(m(_,k,h))}toString(){return`${this.name} [${_}]: ${this.message}`}}Object.defineProperties(v.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${_}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),v.prototype.code=_,v.prototype[o]=!0,l[_]=v}function b(_){const k=s+_.name;return Object.defineProperty(_,"name",{value:k}),_}function g(_,k){if(_&&k&&_!==k){if(Array.isArray(k.errors))return k.errors.push(_),k;const E=new n([k,_],k.message);return E.code=k.code,E}return _||k}class x extends Error{constructor(k="The operation was aborted",E=void 0){if(E!==void 0&&typeof E!="object")throw new l.ERR_INVALID_ARG_TYPE("options","Object",E);super(k,E),this.code="ABORT_ERR",this.name="AbortError"}}return y("ERR_ASSERTION","%s",Error),y("ERR_INVALID_ARG_TYPE",(_,k,E)=>{u(typeof _=="string","'name' must be a string"),Array.isArray(k)||(k=[k]);let v="The ";_.endsWith(" argument")?v+=`${_} `:v+=`"${_}" ${_.includes(".")?"property":"argument"} `,v+="must be ";const c=[],h=[],R=[];for(const N of k)u(typeof N=="string","All expected entries have to be of type string"),i.includes(N)?c.push(N.toLowerCase()):a.test(N)?h.push(N):(u(N!=="object",'The value "object" should be written as "Object"'),R.push(N));if(h.length>0){const N=c.indexOf("object");N!==-1&&(c.splice(c,N,1),h.push("Object"))}if(c.length>0){switch(c.length){case 1:v+=`of type ${c[0]}`;break;case 2:v+=`one of type ${c[0]} or ${c[1]}`;break;default:{const N=c.pop();v+=`one of type ${c.join(", ")}, or ${N}`}}(h.length>0||R.length>0)&&(v+=" or ")}if(h.length>0){switch(h.length){case 1:v+=`an instance of ${h[0]}`;break;case 2:v+=`an instance of ${h[0]} or ${h[1]}`;break;default:{const N=h.pop();v+=`an instance of ${h.join(", ")}, or ${N}`}}R.length>0&&(v+=" or ")}switch(R.length){case 0:break;case 1:R[0].toLowerCase()!==R[0]&&(v+="an "),v+=`${R[0]}`;break;case 2:v+=`one of ${R[0]} or ${R[1]}`;break;default:{const N=R.pop();v+=`one of ${R.join(", ")}, or ${N}`}}if(E==null)v+=`. Received ${E}`;else if(typeof E=="function"&&E.name)v+=`. Received function ${E.name}`;else if(typeof E=="object"){var D;if((D=E.constructor)!==null&&D!==void 0&&D.name)v+=`. Received an instance of ${E.constructor.name}`;else{const N=e(E,{depth:-1});v+=`. Received ${N}`}}else{let N=e(E,{colors:!1});N.length>25&&(N=`${N.slice(0,25)}...`),v+=`. Received type ${typeof E} (${N})`}return v},TypeError),y("ERR_INVALID_ARG_VALUE",(_,k,E="is invalid")=>{let v=e(k);return v.length>128&&(v=v.slice(0,128)+"..."),`The ${_.includes(".")?"property":"argument"} '${_}' ${E}. Received ${v}`},TypeError),y("ERR_INVALID_RETURN_VALUE",(_,k,E)=>{var v;const c=E!=null&&(v=E.constructor)!==null&&v!==void 0&&v.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${_} to be returned from the "${k}" function but got ${c}.`},TypeError),y("ERR_MISSING_ARGS",(..._)=>{u(_.length>0,"At least one arg needs to be specified");let k;const E=_.length;switch(_=(Array.isArray(_)?_:[_]).map(v=>`"${v}"`).join(" or "),E){case 1:k+=`The ${_[0]} argument`;break;case 2:k+=`The ${_[0]} and ${_[1]} arguments`;break;default:{const v=_.pop();k+=`The ${_.join(", ")}, and ${v} arguments`}break}return`${k} must be specified`},TypeError),y("ERR_OUT_OF_RANGE",(_,k,E)=>{u(k,'Missing "range" argument');let v;if(Number.isInteger(E)&&Math.abs(E)>2**32)v=f(String(E));else if(typeof E=="bigint"){v=String(E);const c=BigInt(2)**BigInt(32);(E>c||E<-c)&&(v=f(v)),v+="n"}else v=e(E);return`The value of "${_}" is out of range. It must be ${k}. Received ${v}`},RangeError),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),y("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),y("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),y("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),y("ERR_STREAM_WRITE_AFTER_END","write after end",Error),y("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Kn={AbortError:x,aggregateTwoErrors:b(g),hideStackFrames:b,codes:l},Kn}var gr={exports:{}},Pa;function Ur(){if(Pa)return gr.exports;Pa=1;const{AbortController:r,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return gr.exports=r,gr.exports.AbortSignal=e,gr.exports.default=r,gr.exports}var rn={exports:{}},Ba;function Rn(){if(Ba)return rn.exports;Ba=1;var r=typeof Reflect=="object"?Reflect:null,e=r&&typeof r.apply=="function"?r.apply:function(h,R,D){return Function.prototype.apply.call(h,R,D)},t;r&&typeof r.ownKeys=="function"?t=r.ownKeys:Object.getOwnPropertySymbols?t=function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:t=function(h){return Object.getOwnPropertyNames(h)};function n(c){console&&console.warn&&console.warn(c)}var o=Number.isNaN||function(h){return h!==h};function i(){i.init.call(this)}rn.exports=i,rn.exports.once=k,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(c){if(typeof c!="number"||c<0||o(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");a=c}}),i.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},i.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||o(h))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this};function l(c){return c._maxListeners===void 0?i.defaultMaxListeners:c._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(h){for(var R=[],D=1;D<arguments.length;D++)R.push(arguments[D]);var N=h==="error",B=this._events;if(B!==void 0)N=N&&B.error===void 0;else if(!N)return!1;if(N){var I;if(R.length>0&&(I=R[0]),I instanceof Error)throw I;var M=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw M.context=I,M}var q=B[h];if(q===void 0)return!1;if(typeof q=="function")e(q,this,R);else for(var j=q.length,A=g(q,j),D=0;D<j;++D)e(A[D],this,R);return!0};function u(c,h,R,D){var N,B,I;if(s(R),B=c._events,B===void 0?(B=c._events=Object.create(null),c._eventsCount=0):(B.newListener!==void 0&&(c.emit("newListener",h,R.listener?R.listener:R),B=c._events),I=B[h]),I===void 0)I=B[h]=R,++c._eventsCount;else if(typeof I=="function"?I=B[h]=D?[R,I]:[I,R]:D?I.unshift(R):I.push(R),N=l(c),N>0&&I.length>N&&!I.warned){I.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(h)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=c,M.type=h,M.count=I.length,n(M)}return c}i.prototype.addListener=function(h,R){return u(this,h,R,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(h,R){return u(this,h,R,!0)};function f(){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 m(c,h,R){var D={fired:!1,wrapFn:void 0,target:c,type:h,listener:R},N=f.bind(D);return N.listener=R,D.wrapFn=N,N}i.prototype.once=function(h,R){return s(R),this.on(h,m(this,h,R)),this},i.prototype.prependOnceListener=function(h,R){return s(R),this.prependListener(h,m(this,h,R)),this},i.prototype.removeListener=function(h,R){var D,N,B,I,M;if(s(R),N=this._events,N===void 0)return this;if(D=N[h],D===void 0)return this;if(D===R||D.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete N[h],N.removeListener&&this.emit("removeListener",h,D.listener||R));else if(typeof D!="function"){for(B=-1,I=D.length-1;I>=0;I--)if(D[I]===R||D[I].listener===R){M=D[I].listener,B=I;break}if(B<0)return this;B===0?D.shift():x(D,B),D.length===1&&(N[h]=D[0]),N.removeListener!==void 0&&this.emit("removeListener",h,M||R)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(h){var R,D,N;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[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete D[h]),this;if(arguments.length===0){var B=Object.keys(D),I;for(N=0;N<B.length;++N)I=B[N],I!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=D[h],typeof R=="function")this.removeListener(h,R);else if(R!==void 0)for(N=R.length-1;N>=0;N--)this.removeListener(h,R[N]);return this};function y(c,h,R){var D=c._events;if(D===void 0)return[];var N=D[h];return N===void 0?[]:typeof N=="function"?R?[N.listener||N]:[N]:R?_(N):g(N,N.length)}i.prototype.listeners=function(h){return y(this,h,!0)},i.prototype.rawListeners=function(h){return y(this,h,!1)},i.listenerCount=function(c,h){return typeof c.listenerCount=="function"?c.listenerCount(h):b.call(c,h)},i.prototype.listenerCount=b;function b(c){var h=this._events;if(h!==void 0){var R=h[c];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function g(c,h){for(var R=new Array(h),D=0;D<h;++D)R[D]=c[D];return R}function x(c,h){for(;h+1<c.length;h++)c[h]=c[h+1];c.pop()}function _(c){for(var h=new Array(c.length),R=0;R<h.length;++R)h[R]=c[R].listener||c[R];return h}function k(c,h){return new Promise(function(R,D){function N(I){c.removeListener(h,B),D(I)}function B(){typeof c.removeListener=="function"&&c.removeListener("error",N),R([].slice.call(arguments))}v(c,h,B,{once:!0}),h!=="error"&&E(c,N,{once:!0})})}function E(c,h,R){typeof c.on=="function"&&v(c,"error",h,R)}function v(c,h,R,D){if(typeof c.on=="function")D.once?c.once(h,R):c.on(h,R);else if(typeof c.addEventListener=="function")c.addEventListener(h,function N(B){D.once&&c.removeEventListener(h,N),R(B)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}return rn.exports}var qa;function We(){return qa||(qa=1,function(r){const e=vt(),{format:t,inspect:n}=md(),{codes:{ERR_INVALID_ARG_TYPE:o}}=He(),{kResistStopPropagation:i,AggregateError:a,SymbolDispose:s}=Oe(),l=globalThis.AbortSignal||Ur().AbortSignal,u=globalThis.AbortController||Ur().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,m=globalThis.Blob||e.Blob,y=typeof m<"u"?function(_){return _ instanceof m}:function(_){return!1},b=(x,_)=>{if(x!==void 0&&(x===null||typeof x!="object"||!("aborted"in x)))throw new o(_,"AbortSignal",x)},g=(x,_)=>{if(typeof x!="function")throw new o(_,"Function",x)};r.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(x){let _=!1;return function(...k){_||(_=!0,x.apply(this,k))}},createDeferredPromise:function(){let x,_;return{promise:new Promise((E,v)=>{x=E,_=v}),resolve:x,reject:_}},promisify(x){return new Promise((_,k)=>{x((E,...v)=>E?k(E):_(...v))})},debuglog(){return function(){}},format:t,inspect:n,types:{isAsyncFunction(x){return x instanceof f},isArrayBufferView(x){return ArrayBuffer.isView(x)}},isBlob:y,deprecate(x,_){return x},addAbortListener:Rn().addAbortListener||function(_,k){if(_===void 0)throw new o("signal","AbortSignal",_);b(_,"signal"),g(k,"listener");let E;return _.aborted?queueMicrotask(()=>k()):(_.addEventListener("abort",k,{__proto__:null,once:!0,[i]:!0}),E=()=>{_.removeEventListener("abort",k)}),{__proto__:null,[s](){var v;(v=E)===null||v===void 0||v()}}},AbortSignalAny:l.any||function(_){if(_.length===1)return _[0];const k=new u,E=()=>k.abort();return _.forEach(v=>{b(v,"signals"),v.addEventListener("abort",E,{once:!0})}),k.signal.addEventListener("abort",()=>{_.forEach(v=>v.removeEventListener("abort",E))},{once:!0}),k.signal}},r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}(Qn)),Qn.exports}var nn={},Yn,Fa;function Qr(){if(Fa)return Yn;Fa=1;const{ArrayIsArray:r,ArrayPrototypeIncludes:e,ArrayPrototypeJoin:t,ArrayPrototypeMap:n,NumberIsInteger:o,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:a,NumberMIN_SAFE_INTEGER:s,NumberParseInt:l,ObjectPrototypeHasOwnProperty:u,RegExpPrototypeExec:f,String:m,StringPrototypeToUpperCase:y,StringPrototypeTrim:b}=Oe(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:x,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:k,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:v}}=He(),{normalizeEncoding:c}=We(),{isAsyncFunction:h,isArrayBufferView:R}=We().types,D={};function N(X){return X===(X|0)}function B(X){return X===X>>>0}const I=/^[0-7]+$/,M="must be a 32-bit unsigned integer or an octal string";function q(X,le,fe){if(typeof X>"u"&&(X=fe),typeof X=="string"){if(f(I,X)===null)throw new k(le,X,M);X=l(X,8)}return Y(X,le),X}const j=g((X,le,fe=s,ie=a)=>{if(typeof X!="number")throw new _(le,"number",X);if(!o(X))throw new E(le,"an integer",X);if(X<fe||X>ie)throw new E(le,`>= ${fe} && <= ${ie}`,X)}),A=g((X,le,fe=-2147483648,ie=2147483647)=>{if(typeof X!="number")throw new _(le,"number",X);if(!o(X))throw new E(le,"an integer",X);if(X<fe||X>ie)throw new E(le,`>= ${fe} && <= ${ie}`,X)}),Y=g((X,le,fe=!1)=>{if(typeof X!="number")throw new _(le,"number",X);if(!o(X))throw new E(le,"an integer",X);const ie=fe?1:0,ke=4294967295;if(X<ie||X>ke)throw new E(le,`>= ${ie} && <= ${ke}`,X)});function T(X,le){if(typeof X!="string")throw new _(le,"string",X)}function ee(X,le,fe=void 0,ie){if(typeof X!="number")throw new _(le,"number",X);if(fe!=null&&X<fe||ie!=null&&X>ie||(fe!=null||ie!=null)&&i(X))throw new E(le,`${fe!=null?`>= ${fe}`:""}${fe!=null&&ie!=null?" && ":""}${ie!=null?`<= ${ie}`:""}`,X)}const C=g((X,le,fe)=>{if(!e(fe,X)){const ke="must be one of: "+t(n(fe,qe=>typeof qe=="string"?`'${qe}'`:m(qe)),", ");throw new k(le,X,ke)}});function K(X,le){if(typeof X!="boolean")throw new _(le,"boolean",X)}function w(X,le,fe){return X==null||!u(X,le)?fe:X[le]}const z=g((X,le,fe=null)=>{const ie=w(fe,"allowArray",!1),ke=w(fe,"allowFunction",!1);if(!w(fe,"nullable",!1)&&X===null||!ie&&r(X)||typeof X!="object"&&(!ke||typeof X!="function"))throw new _(le,"Object",X)}),Q=g((X,le)=>{if(X!=null&&typeof X!="object"&&typeof X!="function")throw new _(le,"a dictionary",X)}),W=g((X,le,fe=0)=>{if(!r(X))throw new _(le,"Array",X);if(X.length<fe){const ie=`must be longer than ${fe}`;throw new k(le,X,ie)}});function ae(X,le){W(X,le);for(let fe=0;fe<X.length;fe++)T(X[fe],`${le}[${fe}]`)}function U(X,le){W(X,le);for(let fe=0;fe<X.length;fe++)K(X[fe],`${le}[${fe}]`)}function H(X,le){W(X,le);for(let fe=0;fe<X.length;fe++){const ie=X[fe],ke=`${le}[${fe}]`;if(ie==null)throw new _(ke,"AbortSignal",ie);ce(ie,ke)}}function V(X,le="signal"){if(T(X,le),D[X]===void 0)throw D[y(X)]!==void 0?new v(X+" (signals must use all capital letters)"):new v(X)}const F=g((X,le="buffer")=>{if(!R(X))throw new _(le,["Buffer","TypedArray","DataView"],X)});function Z(X,le){const fe=c(le),ie=X.length;if(fe==="hex"&&ie%2!==0)throw new k("encoding",le,`is invalid for data of length ${ie}`)}function te(X,le="Port",fe=!0){if(typeof X!="number"&&typeof X!="string"||typeof X=="string"&&b(X).length===0||+X!==+X>>>0||X>65535||X===0&&!fe)throw new x(le,X,fe);return X|0}const ce=g((X,le)=>{if(X!==void 0&&(X===null||typeof X!="object"||!("aborted"in X)))throw new _(le,"AbortSignal",X)}),pe=g((X,le)=>{if(typeof X!="function")throw new _(le,"Function",X)}),L=g((X,le)=>{if(typeof X!="function"||h(X))throw new _(le,"Function",X)}),G=g((X,le)=>{if(X!==void 0)throw new _(le,"undefined",X)});function re(X,le,fe){if(!e(fe,X))throw new _(le,`('${t(fe,"|")}')`,X)}const de=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ue(X,le){if(typeof X>"u"||!f(de,X))throw new k(le,X,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function he(X){if(typeof X=="string")return ue(X,"hints"),X;if(r(X)){const le=X.length;let fe="";if(le===0)return fe;for(let ie=0;ie<le;ie++){const ke=X[ie];ue(ke,"hints"),fe+=ke,ie!==le-1&&(fe+=", ")}return fe}throw new k("hints",X,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}return Yn={isInt32:N,isUint32:B,parseFileMode:q,validateArray:W,validateStringArray:ae,validateBooleanArray:U,validateAbortSignalArray:H,validateBoolean:K,validateBuffer:F,validateDictionary:Q,validateEncoding:Z,validateFunction:pe,validateInt32:A,validateInteger:j,validateNumber:ee,validateObject:z,validateOneOf:C,validatePlainFunction:L,validatePort:te,validateSignalName:V,validateString:T,validateUint32:Y,validateUndefined:G,validateUnion:re,validateAbortSignal:ce,validateLinkHeaderValue:he},Yn}var on={exports:{}},Zn={exports:{}},za;function Ut(){if(za)return Zn.exports;za=1;var r=Zn.exports={},e,t;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=n}catch{e=n}try{typeof clearTimeout=="function"?t=clearTimeout:t=o}catch{t=o}})();function i(x){if(e===setTimeout)return setTimeout(x,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(x,0);try{return e(x,0)}catch{try{return e.call(null,x,0)}catch{return e.call(this,x,0)}}}function a(x){if(t===clearTimeout)return clearTimeout(x);if((t===o||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(x);try{return t(x)}catch{try{return t.call(null,x)}catch{return t.call(this,x)}}}var s=[],l=!1,u,f=-1;function m(){!l||!u||(l=!1,u.length?s=u.concat(s):f=-1,s.length&&y())}function y(){if(!l){var x=i(m);l=!0;for(var _=s.length;_;){for(u=s,s=[];++f<_;)u&&u[f].run();f=-1,_=s.length}u=null,l=!1,a(x)}}r.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)_[k-1]=arguments[k];s.push(new b(x,_)),s.length===1&&!l&&i(y)};function b(x,_){this.fun=x,this.array=_}b.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={};function g(){}return r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(x){return[]},r.binding=function(x){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(x){throw new Error("process.chdir is not supported")},r.umask=function(){return 0},Zn.exports}var eo,Ua;function yt(){if(Ua)return eo;Ua=1;const{SymbolAsyncIterator:r,SymbolIterator:e,SymbolFor:t}=Oe(),n=t("nodejs.stream.destroyed"),o=t("nodejs.stream.errored"),i=t("nodejs.stream.readable"),a=t("nodejs.stream.writable"),s=t("nodejs.stream.disturbed"),l=t("nodejs.webstream.isClosedPromise"),u=t("nodejs.webstream.controllerErrorFunction");function f(w,z=!1){var Q;return!!(w&&typeof w.pipe=="function"&&typeof w.on=="function"&&(!z||typeof w.pause=="function"&&typeof w.resume=="function")&&(!w._writableState||((Q=w._readableState)===null||Q===void 0?void 0:Q.readable)!==!1)&&(!w._writableState||w._readableState))}function m(w){var z;return!!(w&&typeof w.write=="function"&&typeof w.on=="function"&&(!w._readableState||((z=w._writableState)===null||z===void 0?void 0:z.writable)!==!1))}function y(w){return!!(w&&typeof w.pipe=="function"&&w._readableState&&typeof w.on=="function"&&typeof w.write=="function")}function b(w){return w&&(w._readableState||w._writableState||typeof w.write=="function"&&typeof w.on=="function"||typeof w.pipe=="function"&&typeof w.on=="function")}function g(w){return!!(w&&!b(w)&&typeof w.pipeThrough=="function"&&typeof w.getReader=="function"&&typeof w.cancel=="function")}function x(w){return!!(w&&!b(w)&&typeof w.getWriter=="function"&&typeof w.abort=="function")}function _(w){return!!(w&&!b(w)&&typeof w.readable=="object"&&typeof w.writable=="object")}function k(w){return g(w)||x(w)||_(w)}function E(w,z){return w==null?!1:z===!0?typeof w[r]=="function":z===!1?typeof w[e]=="function":typeof w[r]=="function"||typeof w[e]=="function"}function v(w){if(!b(w))return null;const z=w._writableState,Q=w._readableState,W=z||Q;return!!(w.destroyed||w[n]||W!=null&&W.destroyed)}function c(w){if(!m(w))return null;if(w.writableEnded===!0)return!0;const z=w._writableState;return z!=null&&z.errored?!1:typeof z?.ended!="boolean"?null:z.ended}function h(w,z){if(!m(w))return null;if(w.writableFinished===!0)return!0;const Q=w._writableState;return Q!=null&&Q.errored?!1:typeof Q?.finished!="boolean"?null:!!(Q.finished||z===!1&&Q.ended===!0&&Q.length===0)}function R(w){if(!f(w))return null;if(w.readableEnded===!0)return!0;const z=w._readableState;return!z||z.errored?!1:typeof z?.ended!="boolean"?null:z.ended}function D(w,z){if(!f(w))return null;const Q=w._readableState;return Q!=null&&Q.errored?!1:typeof Q?.endEmitted!="boolean"?null:!!(Q.endEmitted||z===!1&&Q.ended===!0&&Q.length===0)}function N(w){return w&&w[i]!=null?w[i]:typeof w?.readable!="boolean"?null:v(w)?!1:f(w)&&w.readable&&!D(w)}function B(w){return w&&w[a]!=null?w[a]:typeof w?.writable!="boolean"?null:v(w)?!1:m(w)&&w.writable&&!c(w)}function I(w,z){return b(w)?v(w)?!0:!(z?.readable!==!1&&N(w)||z?.writable!==!1&&B(w)):null}function M(w){var z,Q;return b(w)?w.writableErrored?w.writableErrored:(z=(Q=w._writableState)===null||Q===void 0?void 0:Q.errored)!==null&&z!==void 0?z:null:null}function q(w){var z,Q;return b(w)?w.readableErrored?w.readableErrored:(z=(Q=w._readableState)===null||Q===void 0?void 0:Q.errored)!==null&&z!==void 0?z:null:null}function j(w){if(!b(w))return null;if(typeof w.closed=="boolean")return w.closed;const z=w._writableState,Q=w._readableState;return typeof z?.closed=="boolean"||typeof Q?.closed=="boolean"?z?.closed||Q?.closed:typeof w._closed=="boolean"&&A(w)?w._closed:null}function A(w){return typeof w._closed=="boolean"&&typeof w._defaultKeepAlive=="boolean"&&typeof w._removedConnection=="boolean"&&typeof w._removedContLen=="boolean"}function Y(w){return typeof w._sent100=="boolean"&&A(w)}function T(w){var z;return typeof w._consuming=="boolean"&&typeof w._dumped=="boolean"&&((z=w.req)===null||z===void 0?void 0:z.upgradeOrConnect)===void 0}function ee(w){if(!b(w))return null;const z=w._writableState,Q=w._readableState,W=z||Q;return!W&&Y(w)||!!(W&&W.autoDestroy&&W.emitClose&&W.closed===!1)}function C(w){var z;return!!(w&&((z=w[s])!==null&&z!==void 0?z:w.readableDidRead||w.readableAborted))}function K(w){var z,Q,W,ae,U,H,V,F,Z,te;return!!(w&&((z=(Q=(W=(ae=(U=(H=w[o])!==null&&H!==void 0?H:w.readableErrored)!==null&&U!==void 0?U:w.writableErrored)!==null&&ae!==void 0?ae:(V=w._readableState)===null||V===void 0?void 0:V.errorEmitted)!==null&&W!==void 0?W:(F=w._writableState)===null||F===void 0?void 0:F.errorEmitted)!==null&&Q!==void 0?Q:(Z=w._readableState)===null||Z===void 0?void 0:Z.errored)!==null&&z!==void 0?z:!((te=w._writableState)===null||te===void 0)&&te.errored))}return eo={isDestroyed:v,kIsDestroyed:n,isDisturbed:C,kIsDisturbed:s,isErrored:K,kIsErrored:o,isReadable:N,kIsReadable:i,kIsClosedPromise:l,kControllerErrorFunction:u,kIsWritable:a,isClosed:j,isDuplexNodeStream:y,isFinished:I,isIterable:E,isReadableNodeStream:f,isReadableStream:g,isReadableEnded:R,isReadableFinished:D,isReadableErrored:q,isNodeStream:b,isWebStream:k,isWritable:B,isWritableNodeStream:m,isWritableStream:x,isWritableEnded:c,isWritableFinished:h,isWritableErrored:M,isServerRequest:T,isServerResponse:Y,willEmitClose:ee,isTransformStream:_},eo}var Ha;function Nt(){if(Ha)return on.exports;Ha=1;const r=Ut(),{AbortError:e,codes:t}=He(),{ERR_INVALID_ARG_TYPE:n,ERR_STREAM_PREMATURE_CLOSE:o}=t,{kEmptyObject:i,once:a}=We(),{validateAbortSignal:s,validateFunction:l,validateObject:u,validateBoolean:f}=Qr(),{Promise:m,PromisePrototypeThen:y,SymbolDispose:b}=Oe(),{isClosed:g,isReadable:x,isReadableNodeStream:_,isReadableStream:k,isReadableFinished:E,isReadableErrored:v,isWritable:c,isWritableNodeStream:h,isWritableStream:R,isWritableFinished:D,isWritableErrored:N,isNodeStream:B,willEmitClose:I,kIsClosedPromise:M}=yt();let q;function j(C){return C.setHeader&&typeof C.abort=="function"}const A=()=>{};function Y(C,K,w){var z,Q;if(arguments.length===2?(w=K,K=i):K==null?K=i:u(K,"options"),l(w,"callback"),s(K.signal,"options.signal"),w=a(w),k(C)||R(C))return T(C,K,w);if(!B(C))throw new n("stream",["ReadableStream","WritableStream","Stream"],C);const W=(z=K.readable)!==null&&z!==void 0?z:_(C),ae=(Q=K.writable)!==null&&Q!==void 0?Q:h(C),U=C._writableState,H=C._readableState,V=()=>{C.writable||te()};let F=I(C)&&_(C)===W&&h(C)===ae,Z=D(C,!1);const te=()=>{Z=!0,C.destroyed&&(F=!1),!(F&&(!C.readable||W))&&(!W||ce)&&w.call(C)};let ce=E(C,!1);const pe=()=>{ce=!0,C.destroyed&&(F=!1),!(F&&(!C.writable||ae))&&(!ae||Z)&&w.call(C)},L=X=>{w.call(C,X)};let G=g(C);const re=()=>{G=!0;const X=N(C)||v(C);if(X&&typeof X!="boolean")return w.call(C,X);if(W&&!ce&&_(C,!0)&&!E(C,!1))return w.call(C,new o);if(ae&&!Z&&!D(C,!1))return w.call(C,new o);w.call(C)},de=()=>{G=!0;const X=N(C)||v(C);if(X&&typeof X!="boolean")return w.call(C,X);w.call(C)},ue=()=>{C.req.on("finish",te)};j(C)?(C.on("complete",te),F||C.on("abort",re),C.req?ue():C.on("request",ue)):ae&&!U&&(C.on("end",V),C.on("close",V)),!F&&typeof C.aborted=="boolean"&&C.on("aborted",re),C.on("end",pe),C.on("finish",te),K.error!==!1&&C.on("error",L),C.on("close",re),G?r.nextTick(re):U!=null&&U.errorEmitted||H!=null&&H.errorEmitted?F||r.nextTick(de):(!W&&(!F||x(C))&&(Z||c(C)===!1)||!ae&&(!F||c(C))&&(ce||x(C)===!1)||H&&C.req&&C.aborted)&&r.nextTick(de);const he=()=>{w=A,C.removeListener("aborted",re),C.removeListener("complete",te),C.removeListener("abort",re),C.removeListener("request",ue),C.req&&C.req.removeListener("finish",te),C.removeListener("end",V),C.removeListener("close",V),C.removeListener("finish",te),C.removeListener("end",pe),C.removeListener("error",L),C.removeListener("close",re)};if(K.signal&&!G){const X=()=>{const le=w;he(),le.call(C,new e(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)r.nextTick(X);else{q=q||We().addAbortListener;const le=q(K.signal,X),fe=w;w=a((...ie)=>{le[b](),fe.apply(C,ie)})}}return he}function T(C,K,w){let z=!1,Q=A;if(K.signal)if(Q=()=>{z=!0,w.call(C,new e(void 0,{cause:K.signal.reason}))},K.signal.aborted)r.nextTick(Q);else{q=q||We().addAbortListener;const ae=q(K.signal,Q),U=w;w=a((...H)=>{ae[b](),U.apply(C,H)})}const W=(...ae)=>{z||r.nextTick(()=>w.apply(C,ae))};return y(C[M].promise,W,W),A}function ee(C,K){var w;let z=!1;return K===null&&(K=i),(w=K)!==null&&w!==void 0&&w.cleanup&&(f(K.cleanup,"cleanup"),z=K.cleanup),new m((Q,W)=>{const ae=Y(C,K,U=>{z&&ae(),U?W(U):Q()})})}return on.exports=Y,on.exports.finished=ee,on.exports}var to,Ga;function sr(){if(Ga)return to;Ga=1;const r=Ut(),{aggregateTwoErrors:e,codes:{ERR_MULTIPLE_CALLBACK:t},AbortError:n}=He(),{Symbol:o}=Oe(),{kIsDestroyed:i,isDestroyed:a,isFinished:s,isServerRequest:l}=yt(),u=o("kDestroy"),f=o("kConstruct");function m(I,M,q){I&&(I.stack,M&&!M.errored&&(M.errored=I),q&&!q.errored&&(q.errored=I))}function y(I,M){const q=this._readableState,j=this._writableState,A=j||q;return j!=null&&j.destroyed||q!=null&&q.destroyed?(typeof M=="function"&&M(),this):(m(I,j,q),j&&(j.destroyed=!0),q&&(q.destroyed=!0),A.constructed?b(this,I,M):this.once(u,function(Y){b(this,e(Y,I),M)}),this)}function b(I,M,q){let j=!1;function A(Y){if(j)return;j=!0;const T=I._readableState,ee=I._writableState;m(Y,ee,T),ee&&(ee.closed=!0),T&&(T.closed=!0),typeof q=="function"&&q(Y),Y?r.nextTick(g,I,Y):r.nextTick(x,I)}try{I._destroy(M||null,A)}catch(Y){A(Y)}}function g(I,M){_(I,M),x(I)}function x(I){const M=I._readableState,q=I._writableState;q&&(q.closeEmitted=!0),M&&(M.closeEmitted=!0),(q!=null&&q.emitClose||M!=null&&M.emitClose)&&I.emit("close")}function _(I,M){const q=I._readableState,j=I._writableState;j!=null&&j.errorEmitted||q!=null&&q.errorEmitted||(j&&(j.errorEmitted=!0),q&&(q.errorEmitted=!0),I.emit("error",M))}function k(){const I=this._readableState,M=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),M&&(M.constructed=!0,M.destroyed=!1,M.closed=!1,M.closeEmitted=!1,M.errored=null,M.errorEmitted=!1,M.finalCalled=!1,M.prefinished=!1,M.ended=M.writable===!1,M.ending=M.writable===!1,M.finished=M.writable===!1)}function E(I,M,q){const j=I._readableState,A=I._writableState;if(A!=null&&A.destroyed||j!=null&&j.destroyed)return this;j!=null&&j.autoDestroy||A!=null&&A.autoDestroy?I.destroy(M):M&&(M.stack,A&&!A.errored&&(A.errored=M),j&&!j.errored&&(j.errored=M),q?r.nextTick(_,I,M):_(I,M))}function v(I,M){if(typeof I._construct!="function")return;const q=I._readableState,j=I._writableState;q&&(q.constructed=!1),j&&(j.constructed=!1),I.once(f,M),!(I.listenerCount(f)>1)&&r.nextTick(c,I)}function c(I){let M=!1;function q(j){if(M){E(I,j??new t);return}M=!0;const A=I._readableState,Y=I._writableState,T=Y||A;A&&(A.constructed=!0),Y&&(Y.constructed=!0),T.destroyed?I.emit(u,j):j?E(I,j,!0):r.nextTick(h,I)}try{I._construct(j=>{r.nextTick(q,j)})}catch(j){r.nextTick(q,j)}}function h(I){I.emit(f)}function R(I){return I?.setHeader&&typeof I.abort=="function"}function D(I){I.emit("close")}function N(I,M){I.emit("error",M),r.nextTick(D,I)}function B(I,M){!I||a(I)||(!M&&!s(I)&&(M=new n),l(I)?(I.socket=null,I.destroy(M)):R(I)?I.abort():R(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(M):typeof I.close=="function"?I.close():M?r.nextTick(N,I,M):r.nextTick(D,I),I.destroyed||(I[i]=!0))}return to={construct:v,destroyer:B,destroy:y,undestroy:k,errorOrDestroy:E},to}var ro,Va;function zi(){if(Va)return ro;Va=1;const{ArrayIsArray:r,ObjectSetPrototypeOf:e}=Oe(),{EventEmitter:t}=Rn();function n(i){t.call(this,i)}e(n.prototype,t.prototype),e(n,t),n.prototype.pipe=function(i,a){const s=this;function l(x){i.writable&&i.write(x)===!1&&s.pause&&s.pause()}s.on("data",l);function u(){s.readable&&s.resume&&s.resume()}i.on("drain",u),!i._isStdio&&(!a||a.end!==!1)&&(s.on("end",m),s.on("close",y));let f=!1;function m(){f||(f=!0,i.end())}function y(){f||(f=!0,typeof i.destroy=="function"&&i.destroy())}function b(x){g(),t.listenerCount(this,"error")===0&&this.emit("error",x)}o(s,"error",b),o(i,"error",b);function g(){s.removeListener("data",l),i.removeListener("drain",u),s.removeListener("end",m),s.removeListener("close",y),s.removeListener("error",b),i.removeListener("error",b),s.removeListener("end",g),s.removeListener("close",g),i.removeListener("close",g)}return s.on("end",g),s.on("close",g),i.on("close",g),i.emit("pipe",s),i};function o(i,a,s){if(typeof i.prependListener=="function")return i.prependListener(a,s);!i._events||!i._events[a]?i.on(a,s):r(i._events[a])?i._events[a].unshift(s):i._events[a]=[s,i._events[a]]}return ro={Stream:n,prependListener:o},ro}var no={exports:{}},Wa;function Nn(){return Wa||(Wa=1,function(r){const{SymbolDispose:e}=Oe(),{AbortError:t,codes:n}=He(),{isNodeStream:o,isWebStream:i,kControllerErrorFunction:a}=yt(),s=Nt(),{ERR_INVALID_ARG_TYPE:l}=n;let u;const f=(m,y)=>{if(typeof m!="object"||!("aborted"in m))throw new l(y,"AbortSignal",m)};r.exports.addAbortSignal=function(y,b){if(f(y,"signal"),!o(b)&&!i(b))throw new l("stream",["ReadableStream","WritableStream","Stream"],b);return r.exports.addAbortSignalNoValidate(y,b)},r.exports.addAbortSignalNoValidate=function(m,y){if(typeof m!="object"||!("aborted"in m))return y;const b=o(y)?()=>{y.destroy(new t(void 0,{cause:m.reason}))}:()=>{y[a](new t(void 0,{cause:m.reason}))};if(m.aborted)b();else{u=u||We().addAbortListener;const g=u(m,b);s(y,g[e])}return y}}(no)),no.exports}var oo,Ja;function qc(){if(Ja)return oo;Ja=1;const{StringPrototypeSlice:r,SymbolIterator:e,TypedArrayPrototypeSet:t,Uint8Array:n}=Oe(),{Buffer:o}=vt(),{inspect:i}=We();return oo=class{constructor(){this.head=null,this.tail=null,this.length=0}push(s){const l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(s){const l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}clear(){this.head=this.tail=null,this.length=0}join(s){if(this.length===0)return"";let l=this.head,u=""+l.data;for(;(l=l.next)!==null;)u+=s+l.data;return u}concat(s){if(this.length===0)return o.alloc(0);const l=o.allocUnsafe(s>>>0);let u=this.head,f=0;for(;u;)t(l,u.data,f),f+=u.data.length,u=u.next;return l}consume(s,l){const u=this.head.data;if(s<u.length){const f=u.slice(0,s);return this.head.data=u.slice(s),f}return s===u.length?this.shift():l?this._getString(s):this._getBuffer(s)}first(){return this.head.data}*[e](){for(let s=this.head;s;s=s.next)yield s.data}_getString(s){let l="",u=this.head,f=0;do{const m=u.data;if(s>m.length)l+=m,s-=m.length;else{s===m.length?(l+=m,++f,u.next?this.head=u.next:this.head=this.tail=null):(l+=r(m,0,s),this.head=u,u.data=r(m,s));break}++f}while((u=u.next)!==null);return this.length-=f,l}_getBuffer(s){const l=o.allocUnsafe(s),u=s;let f=this.head,m=0;do{const y=f.data;if(s>y.length)t(l,y,u-s),s-=y.length;else{s===y.length?(t(l,y,u-s),++m,f.next?this.head=f.next:this.head=this.tail=null):(t(l,new n(y.buffer,y.byteOffset,s),u-s),this.head=f,f.data=y.slice(s));break}++m}while((f=f.next)!==null);return this.length-=m,l}[Symbol.for("nodejs.util.inspect.custom")](s,l){return i(this,{...l,depth:0,customInspect:!1})}},oo}var io,Qa;function jn(){if(Qa)return io;Qa=1;const{MathFloor:r,NumberIsInteger:e}=Oe(),{validateInteger:t}=Qr(),{ERR_INVALID_ARG_VALUE:n}=He().codes;let o=16*1024,i=16;function a(f,m,y){return f.highWaterMark!=null?f.highWaterMark:m?f[y]:null}function s(f){return f?i:o}function l(f,m){t(m,"value",0),f?i=m:o=m}function u(f,m,y,b){const g=a(m,b,y);if(g!=null){if(!e(g)||g<0){const x=b?`options.${y}`:"options.highWaterMark";throw new n(x,g)}return r(g)}return s(f.objectMode)}return io={getHighWaterMark:u,getDefaultHighWaterMark:s,setDefaultHighWaterMark:l},io}var ao={},an={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Xa;function Fc(){return Xa||(Xa=1,function(r,e){var t=vt(),n=t.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?r.exports=t:(o(t,e),e.Buffer=i);function i(a,s,l){return n(a,s,l)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=n(a);return s!==void 0?typeof l=="string"?u.fill(s,l):u.fill(s):u.fill(0),u},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}}(an,an.exports)),an.exports}var Ka;function zc(){if(Ka)return ao;Ka=1;var r=Fc().Buffer,e=r.isEncoding||function(k){switch(k=""+k,k&&k.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 t(k){if(!k)return"utf8";for(var E;;)switch(k){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 k;default:if(E)return;k=(""+k).toLowerCase(),E=!0}}function n(k){var E=t(k);if(typeof E!="string"&&(r.isEncoding===e||!e(k)))throw new Error("Unknown encoding: "+k);return E||k}ao.StringDecoder=o;function o(k){this.encoding=n(k);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=y,E=4;break;case"utf8":this.fillLast=l,E=4;break;case"base64":this.text=b,this.end=g,E=3;break;default:this.write=x,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(E)}o.prototype.write=function(k){if(k.length===0)return"";var E,v;if(this.lastNeed){if(E=this.fillLast(k),E===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<k.length?E?E+this.text(k,v):this.text(k,v):E||""},o.prototype.end=f,o.prototype.text=u,o.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function i(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}function a(k,E,v){var c=E.length-1;if(c<v)return 0;var h=i(E[c]);return h>=0?(h>0&&(k.lastNeed=h-1),h):--c<v||h===-2?0:(h=i(E[c]),h>=0?(h>0&&(k.lastNeed=h-2),h):--c<v||h===-2?0:(h=i(E[c]),h>=0?(h>0&&(h===2?h=0:k.lastNeed=h-3),h):0))}function s(k,E,v){if((E[0]&192)!==128)return k.lastNeed=0,"�";if(k.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return k.lastNeed=1,"�";if(k.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return k.lastNeed=2,"�"}}function l(k){var E=this.lastTotal-this.lastNeed,v=s(this,k);if(v!==void 0)return v;if(this.lastNeed<=k.length)return k.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,E,0,k.length),this.lastNeed-=k.length}function u(k,E){var v=a(this,k,E);if(!this.lastNeed)return k.toString("utf8",E);this.lastTotal=v;var c=k.length-(v-this.lastNeed);return k.copy(this.lastChar,0,c),k.toString("utf8",E,c)}function f(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+"�":E}function m(k,E){if((k.length-E)%2===0){var v=k.toString("utf16le",E);if(v){var c=v.charCodeAt(v.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",E,k.length-1)}function y(k){var E=k&&k.length?this.write(k):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,v)}return E}function b(k,E){var v=(k.length-E)%3;return v===0?k.toString("base64",E):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",E,k.length-v))}function g(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function x(k){return k.toString(this.encoding)}function _(k){return k&&k.length?this.write(k):""}return ao}var so,Ya;function gd(){if(Ya)return so;Ya=1;const r=Ut(),{PromisePrototypeThen:e,SymbolAsyncIterator:t,SymbolIterator:n}=Oe(),{Buffer:o}=vt(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:a}=He().codes;function s(l,u,f){let m;if(typeof u=="string"||u instanceof o)return new l({objectMode:!0,...f,read(){this.push(u),this.push(null)}});let y;if(u&&u[t])y=!0,m=u[t]();else if(u&&u[n])y=!1,m=u[n]();else throw new i("iterable",["Iterable"],u);const b=new l({objectMode:!0,highWaterMark:1,...f});let g=!1;b._read=function(){g||(g=!0,_())},b._destroy=function(k,E){e(x(k),()=>r.nextTick(E,k),v=>r.nextTick(E,v||k))};async function x(k){const E=k!=null,v=typeof m.throw=="function";if(E&&v){const{value:c,done:h}=await m.throw(k);if(await c,h)return}if(typeof m.return=="function"){const{value:c}=await m.return();await c}}async function _(){for(;;){try{const{value:k,done:E}=y?await m.next():m.next();if(E)b.push(null);else{const v=k&&typeof k.then=="function"?await k:k;if(v===null)throw g=!1,new a;if(b.push(v))continue;g=!1}}catch(k){b.destroy(k)}break}}return b}return so=s,so}var lo,Za;function Tn(){if(Za)return lo;Za=1;const r=Ut(),{ArrayPrototypeIndexOf:e,NumberIsInteger:t,NumberIsNaN:n,NumberParseInt:o,ObjectDefineProperties:i,ObjectKeys:a,ObjectSetPrototypeOf:s,Promise:l,SafeSet:u,SymbolAsyncDispose:f,SymbolAsyncIterator:m,Symbol:y}=Oe();lo=ie,ie.ReadableState=fe;const{EventEmitter:b}=Rn(),{Stream:g,prependListener:x}=zi(),{Buffer:_}=vt(),{addAbortSignal:k}=Nn(),E=Nt();let v=We().debuglog("stream",O=>{v=O});const c=qc(),h=sr(),{getHighWaterMark:R,getDefaultHighWaterMark:D}=jn(),{aggregateTwoErrors:N,codes:{ERR_INVALID_ARG_TYPE:B,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:q,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:j},AbortError:A}=He(),{validateObject:Y}=Qr(),T=y("kPaused"),{StringDecoder:ee}=zc(),C=gd();s(ie.prototype,g.prototype),s(ie,g);const K=()=>{},{errorOrDestroy:w}=h,z=1,Q=2,W=4,ae=8,U=16,H=32,V=64,F=128,Z=256,te=512,ce=1024,pe=2048,L=4096,G=8192,re=16384,de=32768,ue=65536,he=1<<17,X=1<<18;function le(O){return{enumerable:!1,get(){return(this.state&O)!==0},set(P){P?this.state|=O:this.state&=~O}}}i(fe.prototype,{objectMode:le(z),ended:le(Q),endEmitted:le(W),reading:le(ae),constructed:le(U),sync:le(H),needReadable:le(V),emittedReadable:le(F),readableListening:le(Z),resumeScheduled:le(te),errorEmitted:le(ce),emitClose:le(pe),autoDestroy:le(L),destroyed:le(G),closed:le(re),closeEmitted:le(de),multiAwaitDrain:le(ue),readingMore:le(he),dataEmitted:le(X)});function fe(O,P,be){typeof be!="boolean"&&(be=P instanceof mt()),this.state=pe|L|U|H,O&&O.objectMode&&(this.state|=z),be&&O&&O.readableObjectMode&&(this.state|=z),this.highWaterMark=O?R(this,O,"readableHighWaterMark",be):D(!1),this.buffer=new c,this.length=0,this.pipes=[],this.flowing=null,this[T]=null,O&&O.emitClose===!1&&(this.state&=~pe),O&&O.autoDestroy===!1&&(this.state&=~L),this.errored=null,this.defaultEncoding=O&&O.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,O&&O.encoding&&(this.decoder=new ee(O.encoding),this.encoding=O.encoding)}function ie(O){if(!(this instanceof ie))return new ie(O);const P=this instanceof mt();this._readableState=new fe(O,this,P),O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.construct=="function"&&(this._construct=O.construct),O.signal&&!P&&k(O.signal,this)),g.call(this,O),h.construct(this,()=>{this._readableState.needReadable&&J(this,this._readableState)})}ie.prototype.destroy=h.destroy,ie.prototype._undestroy=h.undestroy,ie.prototype._destroy=function(O,P){P(O)},ie.prototype[b.captureRejectionSymbol]=function(O){this.destroy(O)},ie.prototype[f]=function(){let O;return this.destroyed||(O=this.readableEnded?null:new A,this.destroy(O)),new l((P,be)=>E(this,me=>me&&me!==O?be(me):P(null)))},ie.prototype.push=function(O,P){return ke(this,O,P,!1)},ie.prototype.unshift=function(O,P){return ke(this,O,P,!0)};function ke(O,P,be,me){v("readableAddChunk",P);const ge=O._readableState;let Fe;if((ge.state&z)===0&&(typeof P=="string"?(be=be||ge.defaultEncoding,ge.encoding!==be&&(me&&ge.encoding?P=_.from(P,be).toString(ge.encoding):(P=_.from(P,be),be=""))):P instanceof _?be="":g._isUint8Array(P)?(P=g._uint8ArrayToBuffer(P),be=""):P!=null&&(Fe=new B("chunk",["string","Buffer","Uint8Array"],P))),Fe)w(O,Fe);else if(P===null)ge.state&=~ae,d(O,ge);else if((ge.state&z)!==0||P&&P.length>0)if(me)if((ge.state&W)!==0)w(O,new j);else{if(ge.destroyed||ge.errored)return!1;qe(O,ge,P,!0)}else if(ge.ended)w(O,new q);else{if(ge.destroyed||ge.errored)return!1;ge.state&=~ae,ge.decoder&&!be?(P=ge.decoder.write(P),ge.objectMode||P.length!==0?qe(O,ge,P,!1):J(O,ge)):qe(O,ge,P,!1)}else me||(ge.state&=~ae,J(O,ge));return!ge.ended&&(ge.length<ge.highWaterMark||ge.length===0)}function qe(O,P,be,me){P.flowing&&P.length===0&&!P.sync&&O.listenerCount("data")>0?((P.state&ue)!==0?P.awaitDrainWriters.clear():P.awaitDrainWriters=null,P.dataEmitted=!0,O.emit("data",be)):(P.length+=P.objectMode?1:be.length,me?P.buffer.unshift(be):P.buffer.push(be),(P.state&V)!==0&&p(O)),J(O,P)}ie.prototype.isPaused=function(){const O=this._readableState;return O[T]===!0||O.flowing===!1},ie.prototype.setEncoding=function(O){const P=new ee(O);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;const be=this._readableState.buffer;let me="";for(const ge of be)me+=P.write(ge);return be.clear(),me!==""&&be.push(me),this._readableState.length=me.length,this};const we=1073741824;function Ue(O){if(O>we)throw new M("size","<= 1GiB",O);return O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++,O}function S(O,P){return O<=0||P.length===0&&P.ended?0:(P.state&z)!==0?1:n(O)?P.flowing&&P.length?P.buffer.first().length:P.length:O<=P.length?O:P.ended?P.length:0}ie.prototype.read=function(O){v("read",O),O===void 0?O=NaN:t(O)||(O=o(O,10));const P=this._readableState,be=O;if(O>P.highWaterMark&&(P.highWaterMark=Ue(O)),O!==0&&(P.state&=~F),O===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return v("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?Bn(this):p(this),null;if(O=S(O,P),O===0&&P.ended)return P.length===0&&Bn(this),null;let me=(P.state&V)!==0;if(v("need readable",me),(P.length===0||P.length-O<P.highWaterMark)&&(me=!0,v("length less than watermark",me)),P.ended||P.reading||P.destroyed||P.errored||!P.constructed)me=!1,v("reading, ended or constructing",me);else if(me){v("do read"),P.state|=ae|H,P.length===0&&(P.state|=V);try{this._read(P.highWaterMark)}catch(Fe){w(this,Fe)}P.state&=~H,P.reading||(O=S(be,P))}let ge;return O>0?ge=ya(O,P):ge=null,ge===null?(P.needReadable=P.length<=P.highWaterMark,O=0):(P.length-=O,P.multiAwaitDrain?P.awaitDrainWriters.clear():P.awaitDrainWriters=null),P.length===0&&(P.ended||(P.needReadable=!0),be!==O&&P.ended&&Bn(this)),ge!==null&&!P.errorEmitted&&!P.closeEmitted&&(P.dataEmitted=!0,this.emit("data",ge)),ge};function d(O,P){if(v("onEofChunk"),!P.ended){if(P.decoder){const be=P.decoder.end();be&&be.length&&(P.buffer.push(be),P.length+=P.objectMode?1:be.length)}P.ended=!0,P.sync?p(O):(P.needReadable=!1,P.emittedReadable=!0,$(O))}}function p(O){const P=O._readableState;v("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(v("emitReadable",P.flowing),P.emittedReadable=!0,r.nextTick($,O))}function $(O){const P=O._readableState;v("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&!P.errored&&(P.length||P.ended)&&(O.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,Ee(O)}function J(O,P){!P.readingMore&&P.constructed&&(P.readingMore=!0,r.nextTick(oe,O,P))}function oe(O,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){const be=P.length;if(v("maybeReadMore read 0"),O.read(0),be===P.length)break}P.readingMore=!1}ie.prototype._read=function(O){throw new I("_read()")},ie.prototype.pipe=function(O,P){const be=this,me=this._readableState;me.pipes.length===1&&(me.multiAwaitDrain||(me.multiAwaitDrain=!0,me.awaitDrainWriters=new u(me.awaitDrainWriters?[me.awaitDrainWriters]:[]))),me.pipes.push(O),v("pipe count=%d opts=%j",me.pipes.length,P);const Fe=(!P||P.end!==!1)&&O!==r.stdout&&O!==r.stderr?xa:ur;me.endEmitted?r.nextTick(Fe):be.once("end",Fe),O.on("unpipe",Ye);function Ye(At,ht){v("onunpipe"),At===be&&ht&&ht.hasUnpiped===!1&&(ht.hasUnpiped=!0,vc())}function xa(){v("onend"),O.end()}let Tt,_a=!1;function vc(){v("cleanup"),O.removeListener("close",zn),O.removeListener("finish",Un),Tt&&O.removeListener("drain",Tt),O.removeListener("error",Fn),O.removeListener("unpipe",Ye),be.removeListener("end",xa),be.removeListener("end",ur),be.removeListener("data",Sa),_a=!0,Tt&&me.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&Tt()}function ka(){_a||(me.pipes.length===1&&me.pipes[0]===O?(v("false write response, pause",0),me.awaitDrainWriters=O,me.multiAwaitDrain=!1):me.pipes.length>1&&me.pipes.includes(O)&&(v("false write response, pause",me.awaitDrainWriters.size),me.awaitDrainWriters.add(O)),be.pause()),Tt||(Tt=se(be,O),O.on("drain",Tt))}be.on("data",Sa);function Sa(At){v("ondata");const ht=O.write(At);v("dest.write",ht),ht===!1&&ka()}function Fn(At){if(v("onerror",At),ur(),O.removeListener("error",Fn),O.listenerCount("error")===0){const ht=O._writableState||O._readableState;ht&&!ht.errorEmitted?w(O,At):O.emit("error",At)}}x(O,"error",Fn);function zn(){O.removeListener("finish",Un),ur()}O.once("close",zn);function Un(){v("onfinish"),O.removeListener("close",zn),ur()}O.once("finish",Un);function ur(){v("unpipe"),be.unpipe(O)}return O.emit("pipe",be),O.writableNeedDrain===!0?ka():me.flowing||(v("pipe resume"),be.resume()),O};function se(O,P){return function(){const me=O._readableState;me.awaitDrainWriters===P?(v("pipeOnDrain",1),me.awaitDrainWriters=null):me.multiAwaitDrain&&(v("pipeOnDrain",me.awaitDrainWriters.size),me.awaitDrainWriters.delete(P)),(!me.awaitDrainWriters||me.awaitDrainWriters.size===0)&&O.listenerCount("data")&&O.resume()}}ie.prototype.unpipe=function(O){const P=this._readableState,be={hasUnpiped:!1};if(P.pipes.length===0)return this;if(!O){const ge=P.pipes;P.pipes=[],this.pause();for(let Fe=0;Fe<ge.length;Fe++)ge[Fe].emit("unpipe",this,{hasUnpiped:!1});return this}const me=e(P.pipes,O);return me===-1?this:(P.pipes.splice(me,1),P.pipes.length===0&&this.pause(),O.emit("unpipe",this,be),this)},ie.prototype.on=function(O,P){const be=g.prototype.on.call(this,O,P),me=this._readableState;return O==="data"?(me.readableListening=this.listenerCount("readable")>0,me.flowing!==!1&&this.resume()):O==="readable"&&!me.endEmitted&&!me.readableListening&&(me.readableListening=me.needReadable=!0,me.flowing=!1,me.emittedReadable=!1,v("on readable",me.length,me.reading),me.length?p(this):me.reading||r.nextTick(Te,this)),be},ie.prototype.addListener=ie.prototype.on,ie.prototype.removeListener=function(O,P){const be=g.prototype.removeListener.call(this,O,P);return O==="readable"&&r.nextTick(ye,this),be},ie.prototype.off=ie.prototype.removeListener,ie.prototype.removeAllListeners=function(O){const P=g.prototype.removeAllListeners.apply(this,arguments);return(O==="readable"||O===void 0)&&r.nextTick(ye,this),P};function ye(O){const P=O._readableState;P.readableListening=O.listenerCount("readable")>0,P.resumeScheduled&&P[T]===!1?P.flowing=!0:O.listenerCount("data")>0?O.resume():P.readableListening||(P.flowing=null)}function Te(O){v("readable nexttick read 0"),O.read(0)}ie.prototype.resume=function(){const O=this._readableState;return O.flowing||(v("resume"),O.flowing=!O.readableListening,Ne(this,O)),O[T]=!1,this};function Ne(O,P){P.resumeScheduled||(P.resumeScheduled=!0,r.nextTick(Ae,O,P))}function Ae(O,P){v("resume",P.reading),P.reading||O.read(0),P.resumeScheduled=!1,O.emit("resume"),Ee(O),P.flowing&&!P.reading&&O.read(0)}ie.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[T]=!0,this};function Ee(O){const P=O._readableState;for(v("flow",P.flowing);P.flowing&&O.read()!==null;);}ie.prototype.wrap=function(O){let P=!1;O.on("data",me=>{!this.push(me)&&O.pause&&(P=!0,O.pause())}),O.on("end",()=>{this.push(null)}),O.on("error",me=>{w(this,me)}),O.on("close",()=>{this.destroy()}),O.on("destroy",()=>{this.destroy()}),this._read=()=>{P&&O.resume&&(P=!1,O.resume())};const be=a(O);for(let me=1;me<be.length;me++){const ge=be[me];this[ge]===void 0&&typeof O[ge]=="function"&&(this[ge]=O[ge].bind(O))}return this},ie.prototype[m]=function(){return va(this)},ie.prototype.iterator=function(O){return O!==void 0&&Y(O,"options"),va(this,O)};function va(O,P){typeof O.read!="function"&&(O=ie.wrap(O,{objectMode:!0}));const be=bc(O,P);return be.stream=O,be}async function*bc(O,P){let be=K;function me(Ye){this===O?(be(),be=K):be=Ye}O.on("readable",me);let ge;const Fe=E(O,{writable:!1},Ye=>{ge=Ye?N(ge,Ye):null,be(),be=K});try{for(;;){const Ye=O.destroyed?null:O.read();if(Ye!==null)yield Ye;else{if(ge)throw ge;if(ge===null)return;await new l(me)}}}catch(Ye){throw ge=N(ge,Ye),ge}finally{(ge||P?.destroyOnReturn!==!1)&&(ge===void 0||O._readableState.autoDestroy)?h.destroyer(O,null):(O.off("readable",me),Fe())}}i(ie.prototype,{readable:{__proto__:null,get(){const O=this._readableState;return!!O&&O.readable!==!1&&!O.destroyed&&!O.errorEmitted&&!O.endEmitted},set(O){this._readableState&&(this._readableState.readable=!!O)}},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(O){this._readableState&&(this._readableState.flowing=O)}},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(O){this._readableState&&(this._readableState.destroyed=O)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),i(fe.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[T]!==!1},set(O){this[T]=!!O}}}),ie._fromList=ya;function ya(O,P){if(P.length===0)return null;let be;return P.objectMode?be=P.buffer.shift():!O||O>=P.length?(P.decoder?be=P.buffer.join(""):P.buffer.length===1?be=P.buffer.first():be=P.buffer.concat(P.length),P.buffer.clear()):be=P.buffer.consume(O,P.decoder),be}function Bn(O){const P=O._readableState;v("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,r.nextTick(mc,P,O))}function mc(O,P){if(v("endReadableNT",O.endEmitted,O.length),!O.errored&&!O.closeEmitted&&!O.endEmitted&&O.length===0){if(O.endEmitted=!0,P.emit("end"),P.writable&&P.allowHalfOpen===!1)r.nextTick(gc,P);else if(O.autoDestroy){const be=P._writableState;(!be||be.autoDestroy&&(be.finished||be.writable===!1))&&P.destroy()}}}function gc(O){O.writable&&!O.writableEnded&&!O.destroyed&&O.end()}ie.from=function(O,P){return C(ie,O,P)};let qn;function wa(){return qn===void 0&&(qn={}),qn}return ie.fromWeb=function(O,P){return wa().newStreamReadableFromReadableStream(O,P)},ie.toWeb=function(O,P){return wa().newReadableStreamFromStreamReadable(O,P)},ie.wrap=function(O,P){var be,me;return new ie({objectMode:(be=(me=O.readableObjectMode)!==null&&me!==void 0?me:O.objectMode)!==null&&be!==void 0?be:!0,...P,destroy(ge,Fe){h.destroyer(O,ge),Fe(ge)}}).wrap(O)},lo}var co,es;function Ui(){if(es)return co;es=1;const r=Ut(),{ArrayPrototypeSlice:e,Error:t,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:o,ObjectDefineProperties:i,ObjectSetPrototypeOf:a,StringPrototypeToLowerCase:s,Symbol:l,SymbolHasInstance:u}=Oe();co=Y,Y.WritableState=j;const{EventEmitter:f}=Rn(),m=zi().Stream,{Buffer:y}=vt(),b=sr(),{addAbortSignal:g}=Nn(),{getHighWaterMark:x,getDefaultHighWaterMark:_}=jn(),{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:v,ERR_STREAM_CANNOT_PIPE:c,ERR_STREAM_DESTROYED:h,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:D,ERR_STREAM_WRITE_AFTER_END:N,ERR_UNKNOWN_ENCODING:B}=He().codes,{errorOrDestroy:I}=b;a(Y.prototype,m.prototype),a(Y,m);function M(){}const q=l("kOnFinished");function j(L,G,re){typeof re!="boolean"&&(re=G instanceof mt()),this.objectMode=!!(L&&L.objectMode),re&&(this.objectMode=this.objectMode||!!(L&&L.writableObjectMode)),this.highWaterMark=L?x(this,L,"writableHighWaterMark",re):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const de=!!(L&&L.decodeStrings===!1);this.decodeStrings=!de,this.defaultEncoding=L&&L.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=w.bind(void 0,G),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,A(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!L||L.emitClose!==!1,this.autoDestroy=!L||L.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[q]=[]}function A(L){L.buffered=[],L.bufferedIndex=0,L.allBuffers=!0,L.allNoop=!0}j.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},o(j.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Y(L){const G=this instanceof mt();if(!G&&!n(Y,this))return new Y(L);this._writableState=new j(L,this,G),L&&(typeof L.write=="function"&&(this._write=L.write),typeof L.writev=="function"&&(this._writev=L.writev),typeof L.destroy=="function"&&(this._destroy=L.destroy),typeof L.final=="function"&&(this._final=L.final),typeof L.construct=="function"&&(this._construct=L.construct),L.signal&&g(L.signal,this)),m.call(this,L),b.construct(this,()=>{const re=this._writableState;re.writing||ae(this,re),F(this,re)})}o(Y,u,{__proto__:null,value:function(L){return n(this,L)?!0:this!==Y?!1:L&&L._writableState instanceof j}}),Y.prototype.pipe=function(){I(this,new c)};function T(L,G,re,de){const ue=L._writableState;if(typeof re=="function")de=re,re=ue.defaultEncoding;else{if(!re)re=ue.defaultEncoding;else if(re!=="buffer"&&!y.isEncoding(re))throw new B(re);typeof de!="function"&&(de=M)}if(G===null)throw new D;if(!ue.objectMode)if(typeof G=="string")ue.decodeStrings!==!1&&(G=y.from(G,re),re="buffer");else if(G instanceof y)re="buffer";else if(m._isUint8Array(G))G=m._uint8ArrayToBuffer(G),re="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],G);let he;return ue.ending?he=new N:ue.destroyed&&(he=new h("write")),he?(r.nextTick(de,he),I(L,he,!0),he):(ue.pendingcb++,ee(L,ue,G,re,de))}Y.prototype.write=function(L,G,re){return T(this,L,G,re)===!0},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){const L=this._writableState;L.corked&&(L.corked--,L.writing||ae(this,L))},Y.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=s(G)),!y.isEncoding(G))throw new B(G);return this._writableState.defaultEncoding=G,this};function ee(L,G,re,de,ue){const he=G.objectMode?1:re.length;G.length+=he;const X=G.length<G.highWaterMark;return X||(G.needDrain=!0),G.writing||G.corked||G.errored||!G.constructed?(G.buffered.push({chunk:re,encoding:de,callback:ue}),G.allBuffers&&de!=="buffer"&&(G.allBuffers=!1),G.allNoop&&ue!==M&&(G.allNoop=!1)):(G.writelen=he,G.writecb=ue,G.writing=!0,G.sync=!0,L._write(re,de,G.onwrite),G.sync=!1),X&&!G.errored&&!G.destroyed}function C(L,G,re,de,ue,he,X){G.writelen=de,G.writecb=X,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new h("write")):re?L._writev(ue,G.onwrite):L._write(ue,he,G.onwrite),G.sync=!1}function K(L,G,re,de){--G.pendingcb,de(re),W(G),I(L,re)}function w(L,G){const re=L._writableState,de=re.sync,ue=re.writecb;if(typeof ue!="function"){I(L,new v);return}re.writing=!1,re.writecb=null,re.length-=re.writelen,re.writelen=0,G?(G.stack,re.errored||(re.errored=G),L._readableState&&!L._readableState.errored&&(L._readableState.errored=G),de?r.nextTick(K,L,re,G,ue):K(L,re,G,ue)):(re.buffered.length>re.bufferedIndex&&ae(L,re),de?re.afterWriteTickInfo!==null&&re.afterWriteTickInfo.cb===ue?re.afterWriteTickInfo.count++:(re.afterWriteTickInfo={count:1,cb:ue,stream:L,state:re},r.nextTick(z,re.afterWriteTickInfo)):Q(L,re,1,ue))}function z({stream:L,state:G,count:re,cb:de}){return G.afterWriteTickInfo=null,Q(L,G,re,de)}function Q(L,G,re,de){for(!G.ending&&!L.destroyed&&G.length===0&&G.needDrain&&(G.needDrain=!1,L.emit("drain"));re-- >0;)G.pendingcb--,de();G.destroyed&&W(G),F(L,G)}function W(L){if(L.writing)return;for(let ue=L.bufferedIndex;ue<L.buffered.length;++ue){var G;const{chunk:he,callback:X}=L.buffered[ue],le=L.objectMode?1:he.length;L.length-=le,X((G=L.errored)!==null&&G!==void 0?G:new h("write"))}const re=L[q].splice(0);for(let ue=0;ue<re.length;ue++){var de;re[ue]((de=L.errored)!==null&&de!==void 0?de:new h("end"))}A(L)}function ae(L,G){if(G.corked||G.bufferProcessing||G.destroyed||!G.constructed)return;const{buffered:re,bufferedIndex:de,objectMode:ue}=G,he=re.length-de;if(!he)return;let X=de;if(G.bufferProcessing=!0,he>1&&L._writev){G.pendingcb-=he-1;const le=G.allNoop?M:ie=>{for(let ke=X;ke<re.length;++ke)re[ke].callback(ie)},fe=G.allNoop&&X===0?re:e(re,X);fe.allBuffers=G.allBuffers,C(L,G,!0,G.length,fe,"",le),A(G)}else{do{const{chunk:le,encoding:fe,callback:ie}=re[X];re[X++]=null;const ke=ue?1:le.length;C(L,G,!1,ke,le,fe,ie)}while(X<re.length&&!G.writing);X===re.length?A(G):X>256?(re.splice(0,X),G.bufferedIndex=0):G.bufferedIndex=X}G.bufferProcessing=!1}Y.prototype._write=function(L,G,re){if(this._writev)this._writev([{chunk:L,encoding:G}],re);else throw new E("_write()")},Y.prototype._writev=null,Y.prototype.end=function(L,G,re){const de=this._writableState;typeof L=="function"?(re=L,L=null,G=null):typeof G=="function"&&(re=G,G=null);let ue;if(L!=null){const he=T(this,L,G);he instanceof t&&(ue=he)}return de.corked&&(de.corked=1,this.uncork()),ue||(!de.errored&&!de.ending?(de.ending=!0,F(this,de,!0),de.ended=!0):de.finished?ue=new R("end"):de.destroyed&&(ue=new h("end"))),typeof re=="function"&&(ue||de.finished?r.nextTick(re,ue):de[q].push(re)),this};function U(L){return L.ending&&!L.destroyed&&L.constructed&&L.length===0&&!L.errored&&L.buffered.length===0&&!L.finished&&!L.writing&&!L.errorEmitted&&!L.closeEmitted}function H(L,G){let re=!1;function de(ue){if(re){I(L,ue??v());return}if(re=!0,G.pendingcb--,ue){const he=G[q].splice(0);for(let X=0;X<he.length;X++)he[X](ue);I(L,ue,G.sync)}else U(G)&&(G.prefinished=!0,L.emit("prefinish"),G.pendingcb++,r.nextTick(Z,L,G))}G.sync=!0,G.pendingcb++;try{L._final(de)}catch(ue){de(ue)}G.sync=!1}function V(L,G){!G.prefinished&&!G.finalCalled&&(typeof L._final=="function"&&!G.destroyed?(G.finalCalled=!0,H(L,G)):(G.prefinished=!0,L.emit("prefinish")))}function F(L,G,re){U(G)&&(V(L,G),G.pendingcb===0&&(re?(G.pendingcb++,r.nextTick((de,ue)=>{U(ue)?Z(de,ue):ue.pendingcb--},L,G)):U(G)&&(G.pendingcb++,Z(L,G))))}function Z(L,G){G.pendingcb--,G.finished=!0;const re=G[q].splice(0);for(let de=0;de<re.length;de++)re[de]();if(L.emit("finish"),G.autoDestroy){const de=L._readableState;(!de||de.autoDestroy&&(de.endEmitted||de.readable===!1))&&L.destroy()}}i(Y.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(L){this._writableState&&(this._writableState.destroyed=L)}},writable:{__proto__:null,get(){const L=this._writableState;return!!L&&L.writable!==!1&&!L.destroyed&&!L.errored&&!L.ending&&!L.ended},set(L){this._writableState&&(this._writableState.writable=!!L)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){const L=this._writableState;return L?!L.destroyed&&!L.ending&&L.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const te=b.destroy;Y.prototype.destroy=function(L,G){const re=this._writableState;return!re.destroyed&&(re.bufferedIndex<re.buffered.length||re[q].length)&&r.nextTick(W,re),te.call(this,L,G),this},Y.prototype._undestroy=b.undestroy,Y.prototype._destroy=function(L,G){G(L)},Y.prototype[f.captureRejectionSymbol]=function(L){this.destroy(L)};let ce;function pe(){return ce===void 0&&(ce={}),ce}return Y.fromWeb=function(L,G){return pe().newStreamWritableFromWritableStream(L,G)},Y.toWeb=function(L){return pe().newWritableStreamFromStreamWritable(L)},co}var uo,ts;function Uc(){if(ts)return uo;ts=1;const r=Ut(),e=vt(),{isReadable:t,isWritable:n,isIterable:o,isNodeStream:i,isReadableNodeStream:a,isWritableNodeStream:s,isDuplexNodeStream:l,isReadableStream:u,isWritableStream:f}=yt(),m=Nt(),{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:g}}=He(),{destroyer:x}=sr(),_=mt(),k=Tn(),E=Ui(),{createDeferredPromise:v}=We(),c=gd(),h=globalThis.Blob||e.Blob,R=typeof h<"u"?function(j){return j instanceof h}:function(j){return!1},D=globalThis.AbortController||Ur().AbortController,{FunctionPrototypeCall:N}=Oe();class B extends _{constructor(j){super(j),j?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),j?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}uo=function q(j,A){if(l(j))return j;if(a(j))return M({readable:j});if(s(j))return M({writable:j});if(i(j))return M({writable:!1,readable:!1});if(u(j))return M({readable:k.fromWeb(j)});if(f(j))return M({writable:E.fromWeb(j)});if(typeof j=="function"){const{value:T,write:ee,final:C,destroy:K}=I(j);if(o(T))return c(B,T,{objectMode:!0,write:ee,final:C,destroy:K});const w=T?.then;if(typeof w=="function"){let z;const Q=N(w,T,W=>{if(W!=null)throw new g("nully","body",W)},W=>{x(z,W)});return z=new B({objectMode:!0,readable:!1,write:ee,final(W){C(async()=>{try{await Q,r.nextTick(W,null)}catch(ae){r.nextTick(W,ae)}})},destroy:K})}throw new g("Iterable, AsyncIterable or AsyncFunction",A,T)}if(R(j))return q(j.arrayBuffer());if(o(j))return c(B,j,{objectMode:!0,writable:!1});if(u(j?.readable)&&f(j?.writable))return B.fromWeb(j);if(typeof j?.writable=="object"||typeof j?.readable=="object"){const T=j!=null&&j.readable?a(j?.readable)?j?.readable:q(j.readable):void 0,ee=j!=null&&j.writable?s(j?.writable)?j?.writable:q(j.writable):void 0;return M({readable:T,writable:ee})}const Y=j?.then;if(typeof Y=="function"){let T;return N(Y,j,ee=>{ee!=null&&T.push(ee),T.push(null)},ee=>{x(T,ee)}),T=new B({objectMode:!0,writable:!1,read(){}})}throw new b(A,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],j)};function I(q){let{promise:j,resolve:A}=v();const Y=new D,T=Y.signal;return{value:q(async function*(){for(;;){const C=j;j=null;const{chunk:K,done:w,cb:z}=await C;if(r.nextTick(z),w)return;if(T.aborted)throw new y(void 0,{cause:T.reason});({promise:j,resolve:A}=v()),yield K}}(),{signal:T}),write(C,K,w){const z=A;A=null,z({chunk:C,done:!1,cb:w})},final(C){const K=A;A=null,K({done:!0,cb:C})},destroy(C,K){Y.abort(),K(C)}}}function M(q){const j=q.readable&&typeof q.readable.read!="function"?k.wrap(q.readable):q.readable,A=q.writable;let Y=!!t(j),T=!!n(A),ee,C,K,w,z;function Q(W){const ae=w;w=null,ae?ae(W):W&&z.destroy(W)}return z=new B({readableObjectMode:!!(j!=null&&j.readableObjectMode),writableObjectMode:!!(A!=null&&A.writableObjectMode),readable:Y,writable:T}),T&&(m(A,W=>{T=!1,W&&x(j,W),Q(W)}),z._write=function(W,ae,U){A.write(W,ae)?U():ee=U},z._final=function(W){A.end(),C=W},A.on("drain",function(){if(ee){const W=ee;ee=null,W()}}),A.on("finish",function(){if(C){const W=C;C=null,W()}})),Y&&(m(j,W=>{Y=!1,W&&x(j,W),Q(W)}),j.on("readable",function(){if(K){const W=K;K=null,W()}}),j.on("end",function(){z.push(null)}),z._read=function(){for(;;){const W=j.read();if(W===null){K=z._read;return}if(!z.push(W))return}}),z._destroy=function(W,ae){!W&&w!==null&&(W=new y),K=null,ee=null,C=null,w===null?ae(W):(w=ae,x(A,W),x(j,W))},z}return uo}var po,rs;function mt(){if(rs)return po;rs=1;const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:t,ObjectSetPrototypeOf:n}=Oe();po=a;const o=Tn(),i=Ui();n(a.prototype,o.prototype),n(a,o);{const f=t(i.prototype);for(let m=0;m<f.length;m++){const y=f[m];a.prototype[y]||(a.prototype[y]=i.prototype[y])}}function a(f){if(!(this instanceof a))return new a(f);o.call(this,f),i.call(this,f),f?(this.allowHalfOpen=f.allowHalfOpen!==!1,f.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),f.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}r(a.prototype,{writable:{__proto__:null,...e(i.prototype,"writable")},writableHighWaterMark:{__proto__:null,...e(i.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...e(i.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...e(i.prototype,"writableBuffer")},writableLength:{__proto__:null,...e(i.prototype,"writableLength")},writableFinished:{__proto__:null,...e(i.prototype,"writableFinished")},writableCorked:{__proto__:null,...e(i.prototype,"writableCorked")},writableEnded:{__proto__:null,...e(i.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...e(i.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(f){this._readableState&&this._writableState&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}});let s;function l(){return s===void 0&&(s={}),s}a.fromWeb=function(f,m){return l().newStreamDuplexFromReadableWritablePair(f,m)},a.toWeb=function(f){return l().newReadableWritablePairFromDuplex(f)};let u;return a.from=function(f){return u||(u=Uc()),u(f,"body")},po}var fo,ns;function vd(){if(ns)return fo;ns=1;const{ObjectSetPrototypeOf:r,Symbol:e}=Oe();fo=a;const{ERR_METHOD_NOT_IMPLEMENTED:t}=He().codes,n=mt(),{getHighWaterMark:o}=jn();r(a.prototype,n.prototype),r(a,n);const i=e("kCallback");function a(u){if(!(this instanceof a))return new a(u);const f=u?o(this,u,"readableHighWaterMark",!0):null;f===0&&(u={...u,highWaterMark:null,readableHighWaterMark:f,writableHighWaterMark:u.writableHighWaterMark||0}),n.call(this,u),this._readableState.sync=!1,this[i]=null,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function s(u){typeof this._flush=="function"&&!this.destroyed?this._flush((f,m)=>{if(f){u?u(f):this.destroy(f);return}m!=null&&this.push(m),this.push(null),u&&u()}):(this.push(null),u&&u())}function l(){this._final!==s&&s.call(this)}return a.prototype._final=s,a.prototype._transform=function(u,f,m){throw new t("_transform()")},a.prototype._write=function(u,f,m){const y=this._readableState,b=this._writableState,g=y.length;this._transform(u,f,(x,_)=>{if(x){m(x);return}_!=null&&this.push(_),b.ended||g===y.length||y.length<y.highWaterMark?m():this[i]=m})},a.prototype._read=function(){if(this[i]){const u=this[i];this[i]=null,u()}},fo}var ho,os;function yd(){if(os)return ho;os=1;const{ObjectSetPrototypeOf:r}=Oe();ho=t;const e=vd();r(t.prototype,e.prototype),r(t,e);function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return t.prototype._transform=function(n,o,i){i(null,n)},ho}var bo,is;function Hi(){if(is)return bo;is=1;const r=Ut(),{ArrayIsArray:e,Promise:t,SymbolAsyncIterator:n,SymbolDispose:o}=Oe(),i=Nt(),{once:a}=We(),s=sr(),l=mt(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:x}=He(),{validateFunction:_,validateAbortSignal:k}=Qr(),{isIterable:E,isReadable:v,isReadableNodeStream:c,isNodeStream:h,isTransformStream:R,isWebStream:D,isReadableStream:N,isReadableFinished:B}=yt(),I=globalThis.AbortController||Ur().AbortController;let M,q,j;function A(W,ae,U){let H=!1;W.on("close",()=>{H=!0});const V=i(W,{readable:ae,writable:U},F=>{H=!F});return{destroy:F=>{H||(H=!0,s.destroyer(W,F||new b("pipe")))},cleanup:V}}function Y(W){return _(W[W.length-1],"streams[stream.length - 1]"),W.pop()}function T(W){if(E(W))return W;if(c(W))return ee(W);throw new f("val",["Readable","Iterable","AsyncIterable"],W)}async function*ee(W){q||(q=Tn()),yield*q.prototype[n].call(W)}async function C(W,ae,U,{end:H}){let V,F=null;const Z=pe=>{if(pe&&(V=pe),F){const L=F;F=null,L()}},te=()=>new t((pe,L)=>{V?L(V):F=()=>{V?L(V):pe()}});ae.on("drain",Z);const ce=i(ae,{readable:!1},Z);try{ae.writableNeedDrain&&await te();for await(const pe of W)ae.write(pe)||await te();H&&(ae.end(),await te()),U()}catch(pe){U(V!==pe?u(V,pe):pe)}finally{ce(),ae.off("drain",Z)}}async function K(W,ae,U,{end:H}){R(ae)&&(ae=ae.writable);const V=ae.getWriter();try{for await(const F of W)await V.ready,V.write(F).catch(()=>{});await V.ready,H&&await V.close(),U()}catch(F){try{await V.abort(F),U(F)}catch(Z){U(Z)}}}function w(...W){return z(W,a(Y(W)))}function z(W,ae,U){if(W.length===1&&e(W[0])&&(W=W[0]),W.length<2)throw new y("streams");const H=new I,V=H.signal,F=U?.signal,Z=[];k(F,"options.signal");function te(){ue(new x)}j=j||We().addAbortListener;let ce;F&&(ce=j(F,te));let pe,L;const G=[];let re=0;function de(fe){ue(fe,--re===0)}function ue(fe,ie){var ke;if(fe&&(!pe||pe.code==="ERR_STREAM_PREMATURE_CLOSE")&&(pe=fe),!(!pe&&!ie)){for(;G.length;)G.shift()(pe);(ke=ce)===null||ke===void 0||ke[o](),H.abort(),ie&&(pe||Z.forEach(qe=>qe()),r.nextTick(ae,pe,L))}}let he;for(let fe=0;fe<W.length;fe++){const ie=W[fe],ke=fe<W.length-1,qe=fe>0,we=ke||U?.end!==!1,Ue=fe===W.length-1;if(h(ie)){let S=function(d){d&&d.name!=="AbortError"&&d.code!=="ERR_STREAM_PREMATURE_CLOSE"&&de(d)};if(we){const{destroy:d,cleanup:p}=A(ie,ke,qe);G.push(d),v(ie)&&Ue&&Z.push(p)}ie.on("error",S),v(ie)&&Ue&&Z.push(()=>{ie.removeListener("error",S)})}if(fe===0)if(typeof ie=="function"){if(he=ie({signal:V}),!E(he))throw new m("Iterable, AsyncIterable or Stream","source",he)}else E(ie)||c(ie)||R(ie)?he=ie:he=l.from(ie);else if(typeof ie=="function"){if(R(he)){var X;he=T((X=he)===null||X===void 0?void 0:X.readable)}else he=T(he);if(he=ie(he,{signal:V}),ke){if(!E(he,!0))throw new m("AsyncIterable",`transform[${fe-1}]`,he)}else{var le;M||(M=yd());const S=new M({objectMode:!0}),d=(le=he)===null||le===void 0?void 0:le.then;if(typeof d=="function")re++,d.call(he,J=>{L=J,J!=null&&S.write(J),we&&S.end(),r.nextTick(de)},J=>{S.destroy(J),r.nextTick(de,J)});else if(E(he,!0))re++,C(he,S,de,{end:we});else if(N(he)||R(he)){const J=he.readable||he;re++,C(J,S,de,{end:we})}else throw new m("AsyncIterable or Promise","destination",he);he=S;const{destroy:p,cleanup:$}=A(he,!1,!0);G.push(p),Ue&&Z.push($)}}else if(h(ie)){if(c(he)){re+=2;const S=Q(he,ie,de,{end:we});v(ie)&&Ue&&Z.push(S)}else if(R(he)||N(he)){const S=he.readable||he;re++,C(S,ie,de,{end:we})}else if(E(he))re++,C(he,ie,de,{end:we});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],he);he=ie}else if(D(ie)){if(c(he))re++,K(T(he),ie,de,{end:we});else if(N(he)||E(he))re++,K(he,ie,de,{end:we});else if(R(he))re++,K(he.readable,ie,de,{end:we});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],he);he=ie}else he=l.from(ie)}return(V!=null&&V.aborted||F!=null&&F.aborted)&&r.nextTick(te),he}function Q(W,ae,U,{end:H}){let V=!1;if(ae.on("close",()=>{V||U(new g)}),W.pipe(ae,{end:!1}),H){let F=function(){V=!0,ae.end()};B(W)?r.nextTick(F):W.once("end",F)}else U();return i(W,{readable:!0,writable:!1},F=>{const Z=W._readableState;F&&F.code==="ERR_STREAM_PREMATURE_CLOSE"&&Z&&Z.ended&&!Z.errored&&!Z.errorEmitted?W.once("end",U).once("error",U):U(F)}),i(ae,{readable:!1,writable:!0},U)}return bo={pipelineImpl:z,pipeline:w},bo}var mo,as;function wd(){if(as)return mo;as=1;const{pipeline:r}=Hi(),e=mt(),{destroyer:t}=sr(),{isNodeStream:n,isReadable:o,isWritable:i,isWebStream:a,isTransformStream:s,isWritableStream:l,isReadableStream:u}=yt(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:y}}=He(),b=Nt();return mo=function(...x){if(x.length===0)throw new y("streams");if(x.length===1)return e.from(x[0]);const _=[...x];if(typeof x[0]=="function"&&(x[0]=e.from(x[0])),typeof x[x.length-1]=="function"){const M=x.length-1;x[M]=e.from(x[M])}for(let M=0;M<x.length;++M)if(!(!n(x[M])&&!a(x[M]))){if(M<x.length-1&&!(o(x[M])||u(x[M])||s(x[M])))throw new m(`streams[${M}]`,_[M],"must be readable");if(M>0&&!(i(x[M])||l(x[M])||s(x[M])))throw new m(`streams[${M}]`,_[M],"must be writable")}let k,E,v,c,h;function R(M){const q=c;c=null,q?q(M):M?h.destroy(M):!I&&!B&&h.destroy()}const D=x[0],N=r(x,R),B=!!(i(D)||l(D)||s(D)),I=!!(o(N)||u(N)||s(N));if(h=new e({writableObjectMode:!!(D!=null&&D.writableObjectMode),readableObjectMode:!!(N!=null&&N.readableObjectMode),writable:B,readable:I}),B){if(n(D))h._write=function(q,j,A){D.write(q,j)?A():k=A},h._final=function(q){D.end(),E=q},D.on("drain",function(){if(k){const q=k;k=null,q()}});else if(a(D)){const j=(s(D)?D.writable:D).getWriter();h._write=async function(A,Y,T){try{await j.ready,j.write(A).catch(()=>{}),T()}catch(ee){T(ee)}},h._final=async function(A){try{await j.ready,j.close().catch(()=>{}),E=A}catch(Y){A(Y)}}}const M=s(N)?N.readable:N;b(M,()=>{if(E){const q=E;E=null,q()}})}if(I){if(n(N))N.on("readable",function(){if(v){const M=v;v=null,M()}}),N.on("end",function(){h.push(null)}),h._read=function(){for(;;){const M=N.read();if(M===null){v=h._read;return}if(!h.push(M))return}};else if(a(N)){const q=(s(N)?N.readable:N).getReader();h._read=async function(){for(;;)try{const{value:j,done:A}=await q.read();if(!h.push(j))return;if(A){h.push(null);return}}catch{return}}}}return h._destroy=function(M,q){!M&&c!==null&&(M=new f),v=null,k=null,E=null,c===null?q(M):(c=q,n(N)&&t(N,M))},h},mo}var ss;function Hc(){if(ss)return nn;ss=1;const r=globalThis.AbortController||Ur().AbortController,{codes:{ERR_INVALID_ARG_VALUE:e,ERR_INVALID_ARG_TYPE:t,ERR_MISSING_ARGS:n,ERR_OUT_OF_RANGE:o},AbortError:i}=He(),{validateAbortSignal:a,validateInteger:s,validateObject:l}=Qr(),u=Oe().Symbol("kWeak"),f=Oe().Symbol("kResistStopPropagation"),{finished:m}=Nt(),y=wd(),{addAbortSignalNoValidate:b}=Nn(),{isWritable:g,isNodeStream:x}=yt(),{deprecate:_}=We(),{ArrayPrototypePush:k,Boolean:E,MathFloor:v,Number:c,NumberIsNaN:h,Promise:R,PromiseReject:D,PromiseResolve:N,PromisePrototypeThen:B,Symbol:I}=Oe(),M=I("kEmpty"),q=I("kEof");function j(F,Z){if(Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal"),x(F)&&!g(F))throw new e("stream",F,"must be writable");const te=y(this,F);return Z!=null&&Z.signal&&b(Z.signal,te),te}function A(F,Z){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal");let te=1;Z?.concurrency!=null&&(te=v(Z.concurrency));let ce=te-1;return Z?.highWaterMark!=null&&(ce=v(Z.highWaterMark)),s(te,"options.concurrency",1),s(ce,"options.highWaterMark",0),ce+=te,(async function*(){const L=We().AbortSignalAny([Z?.signal].filter(E)),G=this,re=[],de={signal:L};let ue,he,X=!1,le=0;function fe(){X=!0,ie()}function ie(){le-=1,ke()}function ke(){he&&!X&&le<te&&re.length<ce&&(he(),he=null)}async function qe(){try{for await(let we of G){if(X)return;if(L.aborted)throw new i;try{if(we=F(we,de),we===M)continue;we=N(we)}catch(Ue){we=D(Ue)}le+=1,B(we,ie,fe),re.push(we),ue&&(ue(),ue=null),!X&&(re.length>=ce||le>=te)&&await new R(Ue=>{he=Ue})}re.push(q)}catch(we){const Ue=D(we);B(Ue,ie,fe),re.push(Ue)}finally{X=!0,ue&&(ue(),ue=null)}}qe();try{for(;;){for(;re.length>0;){const we=await re[0];if(we===q)return;if(L.aborted)throw new i;we!==M&&(yield we),re.shift(),ke()}await new R(we=>{ue=we})}}finally{X=!0,he&&(he(),he=null)}}).call(this)}function Y(F=void 0){return F!=null&&l(F,"options"),F?.signal!=null&&a(F.signal,"options.signal"),(async function*(){let te=0;for await(const pe of this){var ce;if(F!=null&&(ce=F.signal)!==null&&ce!==void 0&&ce.aborted)throw new i({cause:F.signal.reason});yield[te++,pe]}}).call(this)}async function T(F,Z=void 0){for await(const te of w.call(this,F,Z))return!0;return!1}async function ee(F,Z=void 0){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);return!await T.call(this,async(...te)=>!await F(...te),Z)}async function C(F,Z){for await(const te of w.call(this,F,Z))return te}async function K(F,Z){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);async function te(ce,pe){return await F(ce,pe),M}for await(const ce of A.call(this,te,Z));}function w(F,Z){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);async function te(ce,pe){return await F(ce,pe)?ce:M}return A.call(this,te,Z)}class z extends n{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function Q(F,Z,te){var ce;if(typeof F!="function")throw new t("reducer",["Function","AsyncFunction"],F);te!=null&&l(te,"options"),te?.signal!=null&&a(te.signal,"options.signal");let pe=arguments.length>1;if(te!=null&&(ce=te.signal)!==null&&ce!==void 0&&ce.aborted){const ue=new i(void 0,{cause:te.signal.reason});throw this.once("error",()=>{}),await m(this.destroy(ue)),ue}const L=new r,G=L.signal;if(te!=null&&te.signal){const ue={once:!0,[u]:this,[f]:!0};te.signal.addEventListener("abort",()=>L.abort(),ue)}let re=!1;try{for await(const ue of this){var de;if(re=!0,te!=null&&(de=te.signal)!==null&&de!==void 0&&de.aborted)throw new i;pe?Z=await F(Z,ue,{signal:G}):(Z=ue,pe=!0)}if(!re&&!pe)throw new z}finally{L.abort()}return Z}async function W(F){F!=null&&l(F,"options"),F?.signal!=null&&a(F.signal,"options.signal");const Z=[];for await(const ce of this){var te;if(F!=null&&(te=F.signal)!==null&&te!==void 0&&te.aborted)throw new i(void 0,{cause:F.signal.reason});k(Z,ce)}return Z}function ae(F,Z){const te=A.call(this,F,Z);return(async function*(){for await(const pe of te)yield*pe}).call(this)}function U(F){if(F=c(F),h(F))return 0;if(F<0)throw new o("number",">= 0",F);return F}function H(F,Z=void 0){return Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal"),F=U(F),(async function*(){var ce;if(Z!=null&&(ce=Z.signal)!==null&&ce!==void 0&&ce.aborted)throw new i;for await(const L of this){var pe;if(Z!=null&&(pe=Z.signal)!==null&&pe!==void 0&&pe.aborted)throw new i;F--<=0&&(yield L)}}).call(this)}function V(F,Z=void 0){return Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal"),F=U(F),(async function*(){var ce;if(Z!=null&&(ce=Z.signal)!==null&&ce!==void 0&&ce.aborted)throw new i;for await(const L of this){var pe;if(Z!=null&&(pe=Z.signal)!==null&&pe!==void 0&&pe.aborted)throw new i;if(F-- >0&&(yield L),F<=0)return}}).call(this)}return nn.streamReturningOperators={asIndexedPairs:_(Y,"readable.asIndexedPairs will be removed in a future version."),drop:H,filter:w,flatMap:ae,map:A,take:V,compose:j},nn.promiseReturningOperators={every:ee,forEach:K,reduce:Q,toArray:W,some:T,find:C},nn}var go,ls;function xd(){if(ls)return go;ls=1;const{ArrayPrototypePop:r,Promise:e}=Oe(),{isIterable:t,isNodeStream:n,isWebStream:o}=yt(),{pipelineImpl:i}=Hi(),{finished:a}=Nt();_d();function s(...l){return new e((u,f)=>{let m,y;const b=l[l.length-1];if(b&&typeof b=="object"&&!n(b)&&!t(b)&&!o(b)){const g=r(l);m=g.signal,y=g.end}i(l,(g,x)=>{g?f(g):u(x)},{signal:m,end:y})})}return go={finished:a,pipeline:s},go}var ds;function _d(){if(ds)return Wn.exports;ds=1;const{Buffer:r}=vt(),{ObjectDefineProperty:e,ObjectKeys:t,ReflectApply:n}=Oe(),{promisify:{custom:o}}=We(),{streamReturningOperators:i,promiseReturningOperators:a}=Hc(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:s}}=He(),l=wd(),{setDefaultHighWaterMark:u,getDefaultHighWaterMark:f}=jn(),{pipeline:m}=Hi(),{destroyer:y}=sr(),b=Nt(),g=xd(),x=yt(),_=Wn.exports=zi().Stream;_.isDestroyed=x.isDestroyed,_.isDisturbed=x.isDisturbed,_.isErrored=x.isErrored,_.isReadable=x.isReadable,_.isWritable=x.isWritable,_.Readable=Tn();for(const E of t(i)){let c=function(...h){if(new.target)throw s();return _.Readable.from(n(v,this,h))};const v=i[E];e(c,"name",{__proto__:null,value:v.name}),e(c,"length",{__proto__:null,value:v.length}),e(_.Readable.prototype,E,{__proto__:null,value:c,enumerable:!1,configurable:!0,writable:!0})}for(const E of t(a)){let c=function(...h){if(new.target)throw s();return n(v,this,h)};const v=a[E];e(c,"name",{__proto__:null,value:v.name}),e(c,"length",{__proto__:null,value:v.length}),e(_.Readable.prototype,E,{__proto__:null,value:c,enumerable:!1,configurable:!0,writable:!0})}_.Writable=Ui(),_.Duplex=mt(),_.Transform=vd(),_.PassThrough=yd(),_.pipeline=m;const{addAbortSignal:k}=Nn();return _.addAbortSignal=k,_.finished=b,_.destroy=y,_.compose=l,_.setDefaultHighWaterMark=u,_.getDefaultHighWaterMark=f,e(_,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return g}}),e(m,o,{__proto__:null,enumerable:!0,get(){return g.pipeline}}),e(b,o,{__proto__:null,enumerable:!0,get(){return g.finished}}),_.Stream=_,_._isUint8Array=function(v){return v instanceof Uint8Array},_._uint8ArrayToBuffer=function(v){return r.from(v.buffer,v.byteOffset,v.byteLength)},Wn.exports}var cs;function Gc(){return cs||(cs=1,function(r){const e=_d(),t=xd(),n=e.Readable.destroy;r.exports=e.Readable,r.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,r.exports._isUint8Array=e._isUint8Array,r.exports.isDisturbed=e.isDisturbed,r.exports.isErrored=e.isErrored,r.exports.isReadable=e.isReadable,r.exports.Readable=e.Readable,r.exports.Writable=e.Writable,r.exports.Duplex=e.Duplex,r.exports.Transform=e.Transform,r.exports.PassThrough=e.PassThrough,r.exports.addAbortSignal=e.addAbortSignal,r.exports.finished=e.finished,r.exports.destroy=e.destroy,r.exports.destroy=n,r.exports.pipeline=e.pipeline,r.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),r.exports.Stream=e.Stream,r.exports.default=r.exports}(Vn)),Vn.exports}var kd=Gc();const vo=Symbol("iter");function Pr(r,e,t=4){if(t===0)return Object.assign(r,e);for(const n in e)r[n]=Pr(r[n]||Object.create(null),e[n],t-1);return r}function Sd(r,e,t=4){let n=!1;for(const o in r)if(o in e){const i=t===0?null:Sd(r[o],e[o],t-1);if(i!==!1)n=n||Object.create(null),n[o]=i;else if(t===3)return!1}return n}function Ed(r,e,t=4){let n=!1;for(const o in r)if(!(o in e))n=n||Object.create(null),n[o]=t===0?null:Pr({},r[o],t-1);else if(t!==0){const i=Ed(r[o],e[o],t-1);if(i!==!1)n=n||Object.create(null),n[o]=i;else if(t===3)return!1}return n}class Vc{constructor(e={}){this._id=1,this._ids=Object.create(null),this._ids[""]=1,this._entities=Object.create(null),this._entities[1]="",this._blankNodeIndex=0,this._factory=e.factory||Se}_termFromId(e){if(e[0]==="."){const t=this._entities,n=e.split(".");return this._factory.quad(this._termFromId(t[n[1]]),this._termFromId(t[n[2]]),this._termFromId(t[n[3]]),n[4]&&this._termFromId(t[n[4]]))}return Or(e,this._factory)}_termToNumericId(e){if(e.termType==="Quad"){const t=this._termToNumericId(e.subject),n=this._termToNumericId(e.predicate),o=this._termToNumericId(e.object);let i;return t&&n&&o&&(Ni(e.graph)||(i=this._termToNumericId(e.graph)))&&this._ids[i?`.${t}.${n}.${o}.${i}`:`.${t}.${n}.${o}`]}return this._ids[Zt(e)]}_termToNewNumericId(e){const t=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Ni(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:Zt(e);return this._ids[t]||(this._ids[this._entities[++this._id]=t]=this._id)}createBlankNode(e){let t,n;if(e)for(t=e=`_:${e}`,n=1;this._ids[t];)t=e+n++;else do t=`_:b${this._blankNodeIndex++}`;while(this._ids[t]);return this._ids[t]=++this._id,this._entities[this._id]=t,this._factory.blankNode(t.substr(2))}}class ze{constructor(e,t){this._size=0,this._graphs=Object.create(null),!t&&e&&!e[0]&&typeof e.match!="function"&&(t=e,e=null),t=t||{},this._factory=t.factory||Se,this._entityIndex=t.entityIndex||new Vc({factory:this._factory}),this._entities=this._entityIndex._entities,this._termFromId=this._entityIndex._termFromId.bind(this._entityIndex),this._termToNumericId=this._entityIndex._termToNumericId.bind(this._entityIndex),this._termToNewNumericId=this._entityIndex._termToNewNumericId.bind(this._entityIndex),e&&this.addAll(e)}get size(){let e=this._size;if(e!==null)return e;e=0;const t=this._graphs;let n,o;for(const i in t)for(const a in n=t[i].subjects)for(const s in o=n[a])e+=Object.keys(o[s]).length;return this._size=e}_addToIndex(e,t,n,o){const i=e[t]||(e[t]={}),a=i[n]||(i[n]={}),s=o in a;return s||(a[o]=null),!s}_removeFromIndex(e,t,n,o){const i=e[t],a=i[n];delete a[o];for(const s in a)return;delete i[n];for(const s in i)return;delete e[t]}*_findInIndex(e,t,n,o,i,a,s,l){let u,f,m;const y=this._entities,b=this._termFromId(y[l]),g={subject:null,predicate:null,object:null};t&&((u=e,e={})[t]=u[t]);for(const x in e)if(f=e[x]){g[i]=this._termFromId(y[x]),n&&((u=f,f={})[n]=u[n]);for(const _ in f)if(m=f[_]){g[a]=this._termFromId(y[_]);const k=o?o in m?[o]:[]:Object.keys(m);for(let E=0;E<k.length;E++)g[s]=this._termFromId(y[k[E]]),yield this._factory.quad(g.subject,g.predicate,g.object,b)}}}_loop(e,t){for(const n in e)t(n)}_loopByKey0(e,t,n){let o,i;if(o=e[t])for(i in o)n(i)}_loopByKey1(e,t,n){let o,i;for(o in e)i=e[o],i[t]&&n(o)}_loopBy2Keys(e,t,n,o){let i,a,s;if((i=e[t])&&(a=i[n]))for(s in a)o(s)}_countInIndex(e,t,n,o){let i=0,a,s,l;t&&((a=e,e={})[t]=a[t]);for(const u in e)if(s=e[u]){n&&((a=s,s={})[n]=a[n]);for(const f in s)(l=s[f])&&(o?o in l&&i++:i+=Object.keys(l).length)}return i}_getGraphs(e){return e=e===""?1:e&&(this._termToNumericId(e)||-1),typeof e!="number"?this._graphs:{[e]:this._graphs[e]}}_uniqueEntities(e){const t=Object.create(null);return n=>{n in t||(t[n]=!0,e(this._termFromId(this._entities[n],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,t,n,o){t||(o=e.graph,n=e.object,t=e.predicate,e=e.subject),o=o?this._termToNewNumericId(o):1;let i=this._graphs[o];return i||(i=this._graphs[o]={subjects:{},predicates:{},objects:{}},Object.freeze(i)),e=this._termToNewNumericId(e),t=this._termToNewNumericId(t),n=this._termToNewNumericId(n),this._addToIndex(i.subjects,e,t,n)?(this._addToIndex(i.predicates,t,n,e),this._addToIndex(i.objects,n,e,t),this._size=null,!0):!1}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}delete(e){return this.removeQuad(e),this}has(e,t,n,o){return e&&e.subject&&({subject:e,predicate:t,object:n,graph:o}=e),!this.readQuads(e,t,n,o).next().done}import(e){return e.on("data",t=>{this.addQuad(t)}),e}removeQuad(e,t,n,o){t||({subject:e,predicate:t,object:n,graph:o}=e),o=o?this._termToNumericId(o):1;const i=this._graphs;let a,s,l;if(!(e=e&&this._termToNumericId(e))||!(t=t&&this._termToNumericId(t))||!(n=n&&this._termToNumericId(n))||!(a=i[o])||!(s=a.subjects[e])||!(l=s[t])||!(n in l))return!1;this._removeFromIndex(a.subjects,e,t,n),this._removeFromIndex(a.predicates,t,n,e),this._removeFromIndex(a.objects,n,e,t),this._size!==null&&this._size--;for(e in a.subjects)return!0;return delete i[o],!0}removeQuads(e){for(let t=0;t<e.length;t++)this.removeQuad(e[t])}remove(e){return e.on("data",t=>{this.removeQuad(t)}),e}removeMatches(e,t,n,o){const i=new kd.Readable({objectMode:!0}),a=this.readQuads(e,t,n,o);return i._read=s=>{for(;--s>=0;){const{done:l,value:u}=a.next();if(l){i.push(null);return}i.push(u)}},this.remove(i)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,t,n,o){return[...this.readQuads(e,t,n,o)]}*readQuads(e,t,n,o){const i=this._getGraphs(o);let a,s,l,u;if(!(e&&!(s=this._termToNumericId(e))||t&&!(l=this._termToNumericId(t))||n&&!(u=this._termToNumericId(n))))for(const f in i)(a=i[f])&&(s?u?yield*this._findInIndex(a.objects,u,s,l,"object","subject","predicate",f):yield*this._findInIndex(a.subjects,s,l,null,"subject","predicate","object",f):l?yield*this._findInIndex(a.predicates,l,u,null,"predicate","object","subject",f):u?yield*this._findInIndex(a.objects,u,null,null,"object","subject","predicate",f):yield*this._findInIndex(a.subjects,null,null,null,"subject","predicate","object",f))}match(e,t,n,o){return new kt(this,e,t,n,o,{entityIndex:this._entityIndex})}countQuads(e,t,n,o){const i=this._getGraphs(o);let a=0,s,l,u,f;if(e&&!(l=this._termToNumericId(e))||t&&!(u=this._termToNumericId(t))||n&&!(f=this._termToNumericId(n)))return 0;for(const m in i)(s=i[m])&&(e?n?a+=this._countInIndex(s.objects,f,l,u):a+=this._countInIndex(s.subjects,l,u,f):t?a+=this._countInIndex(s.predicates,u,f,l):a+=this._countInIndex(s.objects,f,l,u));return a}forEach(e,t,n,o,i){this.some(a=>(e(a,this),!1),t,n,o,i)}every(e,t,n,o,i){return!this.some(a=>!e(a,this),t,n,o,i)}some(e,t,n,o,i){for(const a of this.readQuads(t,n,o,i))if(e(a,this))return!0;return!1}getSubjects(e,t,n){const o=[];return this.forSubjects(i=>{o.push(i)},e,t,n),o}forSubjects(e,t,n,o){const i=this._getGraphs(o);let a,s,l;if(e=this._uniqueEntities(e),!(t&&!(s=this._termToNumericId(t))||n&&!(l=this._termToNumericId(n))))for(o in i)(a=i[o])&&(s?l?this._loopBy2Keys(a.predicates,s,l,e):this._loopByKey1(a.subjects,s,e):l?this._loopByKey0(a.objects,l,e):this._loop(a.subjects,e))}getPredicates(e,t,n){const o=[];return this.forPredicates(i=>{o.push(i)},e,t,n),o}forPredicates(e,t,n,o){const i=this._getGraphs(o);let a,s,l;if(e=this._uniqueEntities(e),!(t&&!(s=this._termToNumericId(t))||n&&!(l=this._termToNumericId(n))))for(o in i)(a=i[o])&&(s?l?this._loopBy2Keys(a.objects,l,s,e):this._loopByKey0(a.subjects,s,e):l?this._loopByKey1(a.predicates,l,e):this._loop(a.predicates,e))}getObjects(e,t,n){const o=[];return this.forObjects(i=>{o.push(i)},e,t,n),o}forObjects(e,t,n,o){const i=this._getGraphs(o);let a,s,l;if(e=this._uniqueEntities(e),!(t&&!(s=this._termToNumericId(t))||n&&!(l=this._termToNumericId(n))))for(o in i)(a=i[o])&&(s?l?this._loopBy2Keys(a.subjects,s,l,e):this._loopByKey1(a.objects,s,e):l?this._loopByKey0(a.predicates,l,e):this._loop(a.objects,e))}getGraphs(e,t,n){const o=[];return this.forGraphs(i=>{o.push(i)},e,t,n),o}forGraphs(e,t,n,o){for(const i in this._graphs)this.some(a=>(e(a.graph),!0),t,n,o,this._termFromId(this._entities[i]))}createBlankNode(e){return this._entityIndex.createBlankNode(e)}extractLists({remove:e=!1,ignoreErrors:t=!1}={}){const n={},o=t?()=>!0:(s,l)=>{throw new Error(`${s.value} ${l}`)},i=this.getQuads(null,Pe.rdf.rest,Pe.rdf.nil,null),a=e?[...i]:[];return i.forEach(s=>{const l=[];let u=!1,f,m;const y=s.graph;let b=s.subject;for(;b&&!u;){const g=this.getQuads(null,null,b,null),x=this.getQuads(b,null,null,null);let _,k=null,E=null,v=null;for(let c=0;c<x.length&&!u;c++)_=x[c],_.graph.equals(y)?f?u=o(b,"has non-list arcs out"):_.predicate.value===Pe.rdf.first?k?u=o(b,"has multiple rdf:first arcs"):a.push(k=_):_.predicate.value===Pe.rdf.rest?E?u=o(b,"has multiple rdf:rest arcs"):a.push(E=_):g.length?u=o(b,"can't be subject and object"):(f=_,m="subject"):u=o(b,"not confined to single graph");for(let c=0;c<g.length&&!u;++c)_=g[c],f?u=o(b,"can't have coreferences"):_.predicate.value===Pe.rdf.rest?v?u=o(b,"has incoming rdf:rest arcs"):v=_:(f=_,m="object");k?l.unshift(k.object):u=o(b,"has no list head"),b=v&&v.subject}u?e=!1:f&&(n[f[m].value]=l)}),e&&this.removeQuads(a),n}addAll(e){if(e instanceof kt&&(e=e.filtered),Array.isArray(e))this.addQuads(e);else if(e instanceof ze&&e._entityIndex===this._entityIndex)e._size!==0&&(this._graphs=Pr(this._graphs,e._graphs),this._size=null);else for(const t of e)this.add(t);return this}contains(e){if(e instanceof kt&&(e=e.filtered),e===this)return!0;if(!(e instanceof ze)||this._entityIndex!==e._entityIndex)return e.every(u=>this.has(u));const t=this._graphs,n=e._graphs;let o,i,a,s,l;for(const u in n){if(!(o=t[u]))return!1;o=o.subjects;for(const f in i=n[u].subjects){if(!(a=o[f]))return!1;for(const m in s=i[f]){if(!(l=a[m]))return!1;for(const y in s[m])if(!(y in l))return!1}}}return!0}deleteMatches(e,t,n,o){for(const i of this.match(e,t,n,o))this.removeQuad(i);return this}difference(e){if(e&&e instanceof kt&&(e=e.filtered),e===this)return new ze({entityIndex:this._entityIndex});if(e instanceof ze&&e._entityIndex===this._entityIndex){const t=new ze({entityIndex:this._entityIndex}),n=Ed(this._graphs,e._graphs);return n&&(t._graphs=n,t._size=null),t}return this.filter(t=>!e.has(t))}equals(e){return e instanceof kt&&(e=e.filtered),e===this||this.size===e.size&&this.contains(e)}filter(e){const t=new ze({entityIndex:this._entityIndex});for(const n of this)e(n,this)&&t.add(n);return t}intersection(e){if(e instanceof kt&&(e=e.filtered),e===this){const t=new ze({entityIndex:this._entityIndex});return t._graphs=Pr(Object.create(null),this._graphs),t._size=this._size,t}else if(e instanceof ze&&this._entityIndex===e._entityIndex){const t=new ze({entityIndex:this._entityIndex}),n=Sd(e._graphs,this._graphs);return n&&(t._graphs=n,t._size=null),t}return this.filter(t=>e.has(t))}map(e){const t=new ze({entityIndex:this._entityIndex});for(const n of this)t.add(e(n,this));return t}reduce(e,t){const n=this.readQuads();let o=t===void 0?n.next().value:t;for(const i of n)o=e(o,i,this);return o}toArray(){return this.getQuads()}toCanonical(){throw new Error("not implemented")}toStream(){return this.match()}toString(){return new Fi().quadsToString(this)}union(e){const t=new ze({entityIndex:this._entityIndex});return t._graphs=Pr(Object.create(null),this._graphs),t._size=this._size,t.addAll(e),t}*[Symbol.iterator](){yield*this.readQuads()}}function lt(r,e,t=0){const n=e[t];if(n&&!(n in r))return!1;let o=!1;for(const i in n?{[n]:r[n]}:r){const a=t===2?null:lt(r[i],e,t+1);a!==!1&&(o=o||Object.create(null),o[i]=a)}return o}class kt extends kd.Readable{constructor(e,t,n,o,i,a){super({objectMode:!0}),Object.assign(this,{n3Store:e,subject:t,predicate:n,object:o,graph:i,options:a})}get filtered(){if(!this._filtered){const{n3Store:e,graph:t,object:n,predicate:o,subject:i}=this,a=this._filtered=new ze({factory:e._factory,entityIndex:this.options.entityIndex});let s,l,u;if(i&&!(s=a._termToNumericId(i))||o&&!(l=a._termToNumericId(o))||n&&!(u=a._termToNumericId(n)))return a;const f=e._getGraphs(t);for(const m in f){let y,b,g,x;(x=f[m])&&(!s&&l?(b=lt(x.predicates,[l,u,s]))&&(y=lt(x.subjects,[s,l,u]),g=lt(x.objects,[u,s,l])):u?(g=lt(x.objects,[u,s,l]))&&(y=lt(x.subjects,[s,l,u]),b=lt(x.predicates,[l,u,s])):(y=lt(x.subjects,[s,l,u]))&&(b=lt(x.predicates,[l,u,s]),g=lt(x.objects,[u,s,l])),y&&(a._graphs[m]={subjects:y,predicates:b,objects:g}))}a._size=null}return this._filtered}get size(){return this.filtered.size}_read(e){e>0&&!this[vo]&&(this[vo]=this[Symbol.iterator]());const t=this[vo];for(;--e>=0;){const{done:n,value:o}=t.next();if(n){this.push(null);return}this.push(o)}}addAll(e){return this.filtered.addAll(e)}contains(e){return this.filtered.contains(e)}deleteMatches(e,t,n,o){return this.filtered.deleteMatches(e,t,n,o)}difference(e){return this.filtered.difference(e)}equals(e){return this.filtered.equals(e)}every(e,t,n,o,i){return this.filtered.every(e,t,n,o,i)}filter(e){return this.filtered.filter(e)}forEach(e,t,n,o,i){return this.filtered.forEach(e,t,n,o,i)}import(e){return this.filtered.import(e)}intersection(e){return this.filtered.intersection(e)}map(e){return this.filtered.map(e)}some(e,t,n,o,i){return this.filtered.some(e,t,n,o,i)}toCanonical(){return this.filtered.toCanonical()}toStream(){return this._filtered?this._filtered.toStream():this.n3Store.match(this.subject,this.predicate,this.object,this.graph)}union(e){return this._filtered?this._filtered.union(e):this.n3Store.match(this.subject,this.predicate,this.object,this.graph).addAll(e)}toArray(){return this._filtered?this._filtered.toArray():this.n3Store.getQuads(this.subject,this.predicate,this.object,this.graph)}reduce(e,t){return this.filtered.reduce(e,t)}toString(){return new Fi().quadsToString(this)}add(e){return this.filtered.add(e)}delete(e){return this.filtered.delete(e)}has(e){return this.filtered.has(e)}match(e,t,n,o){return new kt(this.filtered,e,t,n,o,this.options)}*[Symbol.iterator](){yield*this._filtered||this.n3Store.readQuads(this.subject,this.predicate,this.object,this.graph)}}const ve="http://www.w3.org/ns/shacl#",us="http://datashapes.org/dash#",It="http://www.w3.org/2001/XMLSchema#",Gi="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Vi="http://www.w3.org/2000/01/rdf-schema#",Wc="http://www.w3.org/2004/02/skos/core#",Jc="http://www.w3.org/2002/07/owl#",Qc="http://www.w3.org/ns/oa#",Xc="http://purl.org/dc/terms/",Kc="http://xmlns.com/foaf/0.1/",vn=Se.namedNode("loaded-shapes"),dt=Se.namedNode("loaded-data"),Be=Se.namedNode(Gi+"type"),ji=Se.namedNode(Xc+"conformsTo"),Yc=Se.namedNode(Vi+"subClassOf"),Wi=Se.namedNode(Jc+"imports"),sn=Se.namedNode(ve+"NodeShape"),Zc=Se.namedNode(ve+"IRI"),yn=Se.namedNode(ve+"property"),Ji=Se.namedNode(ve+"class"),Hr=Se.namedNode(ve+"targetClass"),eu=Se.namedNode(ve+"nodeKind"),tu=Se.namedNode(It+"string");function Br(r,e,t=ve,n){let o="";const i=ru(r,e,t,n);return i&&(o=i.value),o}function ru(r,e,t=ve,n){let o;const i=t+e;if(n?.length){for(const a of n)for(const s of r)if(s.predicate.value===i){if(s.object.id.endsWith(`@${a}`))return s.object;s.object.id.indexOf("@")<0?o=s.object:o||(o=s.object)}}else for(const a of r)if(a.predicate.value===i)return a.object;return o}function nu(r){r.querySelector("input,select,textarea")?.focus()}function An(r,e){return Br(r,"prefLabel",Wc,e)||Br(r,"label",Vi,e)||Br(r,"name",Kc,e)}function Id(r,e,t){const n=[];for(const o of r)n.push({value:o,label:An(e.getQuads(o,null,null,null),t),children:[]});return n}function Ti(r,e){for(const t in e)r=r.replace(e[t],"");return r}function Rd(r,e,t,n,o=new Set){for(const i of e.owlImports)o.has(i.id)||(o.add(i.id),n.push(...t.getSubjects(Be,r,i)));e.parent&&Rd(r,e.parent,t,n,o)}function Qi(r,e){let t;if(e.shaclIn){const o=e.config.lists[e.shaclIn];t=o?.length?o:[]}else t=e.config.store.getSubjects(Be,r,vn),t.push(...e.config.store.getSubjects(Be,r,dt)),Rd(r,e,e.config.store,t);const n=Id(t,e.config.store,e.config.languages);if(e.shaclIn===void 0)for(const o of e.config.store.getSubjects(Yc,r,null)){const i=Qi(o,e);for(const a of i){let s=!1;for(const l of n)e.config.store.countQuads(a.value,Be,l.value,null)>0&&(l.children.push(a),s=!0);s||n.push(a)}}return n}function Ai(r){let e;try{e=new URL(r)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"}function ps(r,e,t){if(e===void 0)return t;if(t===void 0)return e;const n=r.indexOf(e.language);if(n<0)return t;const o=r.indexOf(t.language);return o<0||o>n?e:t}function Nd(r,e,t){const n=document.createElement("div");n.classList.add("shacl-or-constraint");const o=[];if(e instanceof Rt){const i=[];let a=!1;r.length&&(a=t.store.countQuads(r[0],yn,null,null)>0);for(let u=0;u<r.length;u++)if(a){const f=t.store.getObjects(r[u],yn,null),m=[];let y="";for(const b of f){const g=new _n(b,e,t);m.push(g),y+=(y.length>1?" / ":"")+g.template.label}i.push(m),o.push({label:y,value:u.toString()})}else{const f=new _n(r[u],e,t);i.push([f]),o.push({label:f.template.label,value:u.toString()})}const s=t.theme.createListEditor("Please choose",null,!1,o),l=s.querySelector(".editor");l.onchange=()=>{if(l.value){const u=i[parseInt(l.value)];let f;u.length&&(f=u[0],n.replaceWith(u[0]));for(let m=1;m<u.length;m++)f.after(u[m]),f=u[m]}},n.appendChild(s)}else{const i=[];for(let l=0;l<r.length;l++){const u=t.store.getQuads(r[l],null,null,null);u.length&&(i.push(u),o.push({label:An(u,t.languages)||Ti(u[0].predicate.value,t.prefixes)+" = "+Ti(u[0].object.value,t.prefixes),value:l.toString()}))}const a=t.theme.createListEditor(e.template.label+"?",null,!1,o,e.template),s=a.querySelector(".editor");s.onchange=()=>{s.value&&n.replaceWith(hn(e.template.clone().merge(i[parseInt(s.value)]),void 0,!0))},n.appendChild(a)}return n}function ou(r,e,t){if(e instanceof Ze){const n=e.datatype;for(const o of r){const i=t.store.getQuads(o,null,null,null);for(const a of i)if(a.predicate.value===`${ve}datatype`&&a.object.equals(n))return i}}else{const n=t.store.getObjects(e,Be,null);for(const o of r){const i=t.store.getQuads(o,null,null,null);for(const a of i)if(n.length>0){if(a.predicate.value===`${ve}node`){for(const s of n)if(t.store.getQuads(a.object,Hr,s,null).length>0)return i}if(a.predicate.equals(Ji)){for(const s of n)if(a.object.equals(s))return i}}else if(a.predicate.equals(eu)&&a.object.equals(Zc))return i}}return console.error("couldn't resolve sh:or/sh:xone on property for value",e),[]}function iu(r,e,t){for(const n of r){let o=!1;const i=t.store.getObjects(n,yn,null);for(const a of i){const s=t.store.getObjects(a,`${ve}path`,null);for(const l of s)if(o=t.store.countQuads(e,l,null,null)>0,o)break}if(o)return i}return console.error("couldn't resolve sh:or/sh:xone on node for value",e),[]}const au={[`${ve}name`]:(r,e)=>{const t=e;r.name=ps(r.config.languages,r.name,t)},[`${ve}description`]:(r,e)=>{const t=e;r.description=ps(r.config.languages,r.description,t)},[`${ve}path`]:(r,e)=>{r.path=e.value},[`${ve}node`]:(r,e)=>{r.node=e},[`${ve}datatype`]:(r,e)=>{r.datatype=e},[`${ve}nodeKind`]:(r,e)=>{r.nodeKind=e},[`${ve}minCount`]:(r,e)=>{r.minCount=parseInt(e.value)},[`${ve}maxCount`]:(r,e)=>{r.maxCount=parseInt(e.value)},[`${ve}minLength`]:(r,e)=>{r.minLength=parseInt(e.value)},[`${ve}maxLength`]:(r,e)=>{r.maxLength=parseInt(e.value)},[`${ve}minInclusive`]:(r,e)=>{r.minInclusive=parseInt(e.value)},[`${ve}maxInclusive`]:(r,e)=>{r.maxInclusive=parseInt(e.value)},[`${ve}minExclusive`]:(r,e)=>{r.minExclusive=parseInt(e.value)},[`${ve}maxExclusive`]:(r,e)=>{r.maxExclusive=parseInt(e.value)},[`${ve}pattern`]:(r,e)=>{r.pattern=e.value},[`${ve}order`]:(r,e)=>{r.order=parseInt(e.value)},[`${us}singleLine`]:(r,e)=>{r.singleLine=e.value==="true"},[`${us}readonly`]:(r,e)=>{r.readonly=e.value==="true"},[`${Qc}styleClass`]:(r,e)=>{r.cssClass=e.value},[`${ve}and`]:(r,e)=>{r.shaclAnd=e.value},[`${ve}in`]:(r,e)=>{r.shaclIn=e.value},[`${ve}languageIn`]:(r,e)=>{r.languageIn=r.config.lists[e.value],r.datatype=Se.namedNode(Gi+"langString")},[`${ve}defaultValue`]:(r,e)=>{r.defaultValue=e},[`${ve}hasValue`]:(r,e)=>{r.hasValue=e},[`${ve}qualifiedValueShape`]:(r,e)=>{r.qualifiedValueShape=e},[`${ve}qualifiedMinCount`]:(r,e)=>{r.minCount=parseInt(e.value)},[`${ve}qualifiedMaxCount`]:(r,e)=>{r.maxCount=parseInt(e.value)},[Wi.id]:(r,e)=>{r.owlImports.push(e)},[Ji.id]:(r,e)=>{r.class=e;const t=r.config.store.getSubjects(Hr,e,null);t.length>0&&(r.node=t[0])},[`${ve}or`]:(r,e)=>{const t=r.config.lists[e.value];t?.length?r.shaclOr=t:console.error("list for sh:or not found:",e.value,"existing lists:",r.config.lists)},[`${ve}xone`]:(r,e)=>{const t=r.config.lists[e.value];t?.length?r.shaclXone=t:console.error("list for sh:xone not found:",e.value,"existing lists:",r.config.lists)}};class su{constructor(e,t,n){this.label="",this.owlImports=[],this.extendedShapes=[],this.parent=t,this.config=n,this.merge(e),this.qualifiedValueShape&&this.merge(n.store.getQuads(this.qualifiedValueShape,null,null,null))}merge(e){for(const t of e)au[t.predicate.id]?.call(this,this,t.object);if(this.label=this.name?.value||An(e,this.config.languages),!this.label&&!this.shaclAnd&&(this.label=this.path?Ti(this.path,this.config.prefixes):"unknown"),(this.node||this.shaclAnd)&&(this.node&&this.extendedShapes.push(this.node),this.shaclAnd)){const t=this.config.lists[this.shaclAnd];if(t?.length)for(const n of t)this.extendedShapes.push(n)}return this}clone(){const e=Object.assign({},this);return e.extendedShapes=[...this.extendedShapes],e.owlImports=[...this.owlImports],this.languageIn&&(e.languageIn=[...this.languageIn]),this.shaclOr&&(e.shaclOr=[...this.shaclOr]),this.shaclXone&&(e.shaclXone=[...this.shaclXone]),e.merge=this.merge.bind(e),e.clone=this.clone.bind(e),e}}const lu=`form { display:block; --label-width: 8em; --caret-size: 10px; }
26
+ `),this._subject=null),this._write=this._blockedWrite;let t=e&&((r,o)=>{t=null,e(r,o)});if(this._endStream)try{return this._outputStream.end(t)}catch{}t&&t()}}function Da(n){let e=Fc[n];return e===void 0&&(n.length===1?(e=n.charCodeAt(0).toString(16),e="\\u0000".substr(0,6-e.length)+e):(e=((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)+9216).toString(16),e="\\U00000000".substr(0,10-e.length)+e)),e}var Vn={exports:{}},Wn={exports:{}},Jn,Ma;function Oe(){if(Ma)return Jn;Ma=1;class n extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let r="";for(let o=0;o<t.length;o++)r+=` ${t[o].stack}
27
+ `;super(r),this.name="AggregateError",this.errors=t}}return Jn={AggregateError:n,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},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(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.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(e,t,r){return e.set(t,r)},Boolean,Uint8Array},Jn}var Qn={exports:{}},Xn,Ca;function gd(){return Ca||(Ca=1,Xn={format(n,...e){return n.replace(/%([sdifj])/g,function(...[t,r]){const o=e.shift();return r==="f"?o.toFixed(6):r==="j"?JSON.stringify(o):r==="s"&&typeof o=="object"?`${o.constructor!==Object?o.constructor.name:""} {}`.trim():o.toString()})},inspect(n){switch(typeof n){case"string":if(n.includes("'"))if(n.includes('"')){if(!n.includes("`")&&!n.includes("${"))return`\`${n}\``}else return`"${n}"`;return`'${n}'`;case"number":return isNaN(n)?"NaN":Object.is(n,-0)?String(n):n;case"bigint":return`${String(n)}n`;case"boolean":case"undefined":return String(n);case"object":return"{}"}}}),Xn}var Kn,Pa;function He(){if(Pa)return Kn;Pa=1;const{format:n,inspect:e}=gd(),{AggregateError:t}=Oe(),r=globalThis.AggregateError||t,o=Symbol("kIsNodeError"),i=["string","function","number","object","Function","Object","boolean","bigint","symbol"],a=/^([A-Z][a-z0-9]*)+$/,s="__node_internal_",l={};function u(_,k){if(!_)throw new l.ERR_INTERNAL_ASSERTION(k)}function f(_){let k="",E=_.length;const v=_[0]==="-"?1:0;for(;E>=v+4;E-=3)k=`_${_.slice(E-3,E)}${k}`;return`${_.slice(0,E)}${k}`}function m(_,k,E){if(typeof k=="function")return u(k.length<=E.length,`Code: ${_}; The provided arguments length (${E.length}) does not match the required ones (${k.length}).`),k(...E);const v=(k.match(/%[dfijoOs]/g)||[]).length;return u(v===E.length,`Code: ${_}; The provided arguments length (${E.length}) does not match the required ones (${v}).`),E.length===0?k:n(k,...E)}function y(_,k,E){E||(E=Error);class v extends E{constructor(...h){super(m(_,k,h))}toString(){return`${this.name} [${_}]: ${this.message}`}}Object.defineProperties(v.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${_}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),v.prototype.code=_,v.prototype[o]=!0,l[_]=v}function b(_){const k=s+_.name;return Object.defineProperty(_,"name",{value:k}),_}function g(_,k){if(_&&k&&_!==k){if(Array.isArray(k.errors))return k.errors.push(_),k;const E=new r([k,_],k.message);return E.code=k.code,E}return _||k}class x extends Error{constructor(k="The operation was aborted",E=void 0){if(E!==void 0&&typeof E!="object")throw new l.ERR_INVALID_ARG_TYPE("options","Object",E);super(k,E),this.code="ABORT_ERR",this.name="AbortError"}}return y("ERR_ASSERTION","%s",Error),y("ERR_INVALID_ARG_TYPE",(_,k,E)=>{u(typeof _=="string","'name' must be a string"),Array.isArray(k)||(k=[k]);let v="The ";_.endsWith(" argument")?v+=`${_} `:v+=`"${_}" ${_.includes(".")?"property":"argument"} `,v+="must be ";const c=[],h=[],R=[];for(const N of k)u(typeof N=="string","All expected entries have to be of type string"),i.includes(N)?c.push(N.toLowerCase()):a.test(N)?h.push(N):(u(N!=="object",'The value "object" should be written as "Object"'),R.push(N));if(h.length>0){const N=c.indexOf("object");N!==-1&&(c.splice(c,N,1),h.push("Object"))}if(c.length>0){switch(c.length){case 1:v+=`of type ${c[0]}`;break;case 2:v+=`one of type ${c[0]} or ${c[1]}`;break;default:{const N=c.pop();v+=`one of type ${c.join(", ")}, or ${N}`}}(h.length>0||R.length>0)&&(v+=" or ")}if(h.length>0){switch(h.length){case 1:v+=`an instance of ${h[0]}`;break;case 2:v+=`an instance of ${h[0]} or ${h[1]}`;break;default:{const N=h.pop();v+=`an instance of ${h.join(", ")}, or ${N}`}}R.length>0&&(v+=" or ")}switch(R.length){case 0:break;case 1:R[0].toLowerCase()!==R[0]&&(v+="an "),v+=`${R[0]}`;break;case 2:v+=`one of ${R[0]} or ${R[1]}`;break;default:{const N=R.pop();v+=`one of ${R.join(", ")}, or ${N}`}}if(E==null)v+=`. Received ${E}`;else if(typeof E=="function"&&E.name)v+=`. Received function ${E.name}`;else if(typeof E=="object"){var D;if((D=E.constructor)!==null&&D!==void 0&&D.name)v+=`. Received an instance of ${E.constructor.name}`;else{const N=e(E,{depth:-1});v+=`. Received ${N}`}}else{let N=e(E,{colors:!1});N.length>25&&(N=`${N.slice(0,25)}...`),v+=`. Received type ${typeof E} (${N})`}return v},TypeError),y("ERR_INVALID_ARG_VALUE",(_,k,E="is invalid")=>{let v=e(k);return v.length>128&&(v=v.slice(0,128)+"..."),`The ${_.includes(".")?"property":"argument"} '${_}' ${E}. Received ${v}`},TypeError),y("ERR_INVALID_RETURN_VALUE",(_,k,E)=>{var v;const c=E!=null&&(v=E.constructor)!==null&&v!==void 0&&v.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${_} to be returned from the "${k}" function but got ${c}.`},TypeError),y("ERR_MISSING_ARGS",(..._)=>{u(_.length>0,"At least one arg needs to be specified");let k;const E=_.length;switch(_=(Array.isArray(_)?_:[_]).map(v=>`"${v}"`).join(" or "),E){case 1:k+=`The ${_[0]} argument`;break;case 2:k+=`The ${_[0]} and ${_[1]} arguments`;break;default:{const v=_.pop();k+=`The ${_.join(", ")}, and ${v} arguments`}break}return`${k} must be specified`},TypeError),y("ERR_OUT_OF_RANGE",(_,k,E)=>{u(k,'Missing "range" argument');let v;if(Number.isInteger(E)&&Math.abs(E)>2**32)v=f(String(E));else if(typeof E=="bigint"){v=String(E);const c=BigInt(2)**BigInt(32);(E>c||E<-c)&&(v=f(v)),v+="n"}else v=e(E);return`The value of "${_}" is out of range. It must be ${k}. Received ${v}`},RangeError),y("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),y("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),y("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),y("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),y("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),y("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),y("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),y("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),y("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),y("ERR_STREAM_WRITE_AFTER_END","write after end",Error),y("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Kn={AbortError:x,aggregateTwoErrors:b(g),hideStackFrames:b,codes:l},Kn}var yr={exports:{}},Ba;function Gr(){if(Ba)return yr.exports;Ba=1;const{AbortController:n,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return yr.exports=n,yr.exports.AbortSignal=e,yr.exports.default=n,yr.exports}var nn={exports:{}},qa;function Nn(){if(qa)return nn.exports;qa=1;var n=typeof Reflect=="object"?Reflect:null,e=n&&typeof n.apply=="function"?n.apply:function(h,R,D){return Function.prototype.apply.call(h,R,D)},t;n&&typeof n.ownKeys=="function"?t=n.ownKeys:Object.getOwnPropertySymbols?t=function(h){return Object.getOwnPropertyNames(h).concat(Object.getOwnPropertySymbols(h))}:t=function(h){return Object.getOwnPropertyNames(h)};function r(c){console&&console.warn&&console.warn(c)}var o=Number.isNaN||function(h){return h!==h};function i(){i.init.call(this)}nn.exports=i,nn.exports.once=k,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(c){if(typeof c!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof c)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(c){if(typeof c!="number"||c<0||o(c))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+c+".");a=c}}),i.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},i.prototype.setMaxListeners=function(h){if(typeof h!="number"||h<0||o(h))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+h+".");return this._maxListeners=h,this};function l(c){return c._maxListeners===void 0?i.defaultMaxListeners:c._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(h){for(var R=[],D=1;D<arguments.length;D++)R.push(arguments[D]);var N=h==="error",B=this._events;if(B!==void 0)N=N&&B.error===void 0;else if(!N)return!1;if(N){var I;if(R.length>0&&(I=R[0]),I instanceof Error)throw I;var M=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw M.context=I,M}var q=B[h];if(q===void 0)return!1;if(typeof q=="function")e(q,this,R);else for(var j=q.length,A=g(q,j),D=0;D<j;++D)e(A[D],this,R);return!0};function u(c,h,R,D){var N,B,I;if(s(R),B=c._events,B===void 0?(B=c._events=Object.create(null),c._eventsCount=0):(B.newListener!==void 0&&(c.emit("newListener",h,R.listener?R.listener:R),B=c._events),I=B[h]),I===void 0)I=B[h]=R,++c._eventsCount;else if(typeof I=="function"?I=B[h]=D?[R,I]:[I,R]:D?I.unshift(R):I.push(R),N=l(c),N>0&&I.length>N&&!I.warned){I.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(h)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=c,M.type=h,M.count=I.length,r(M)}return c}i.prototype.addListener=function(h,R){return u(this,h,R,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(h,R){return u(this,h,R,!0)};function f(){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 m(c,h,R){var D={fired:!1,wrapFn:void 0,target:c,type:h,listener:R},N=f.bind(D);return N.listener=R,D.wrapFn=N,N}i.prototype.once=function(h,R){return s(R),this.on(h,m(this,h,R)),this},i.prototype.prependOnceListener=function(h,R){return s(R),this.prependListener(h,m(this,h,R)),this},i.prototype.removeListener=function(h,R){var D,N,B,I,M;if(s(R),N=this._events,N===void 0)return this;if(D=N[h],D===void 0)return this;if(D===R||D.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete N[h],N.removeListener&&this.emit("removeListener",h,D.listener||R));else if(typeof D!="function"){for(B=-1,I=D.length-1;I>=0;I--)if(D[I]===R||D[I].listener===R){M=D[I].listener,B=I;break}if(B<0)return this;B===0?D.shift():x(D,B),D.length===1&&(N[h]=D[0]),N.removeListener!==void 0&&this.emit("removeListener",h,M||R)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(h){var R,D,N;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[h]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete D[h]),this;if(arguments.length===0){var B=Object.keys(D),I;for(N=0;N<B.length;++N)I=B[N],I!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=D[h],typeof R=="function")this.removeListener(h,R);else if(R!==void 0)for(N=R.length-1;N>=0;N--)this.removeListener(h,R[N]);return this};function y(c,h,R){var D=c._events;if(D===void 0)return[];var N=D[h];return N===void 0?[]:typeof N=="function"?R?[N.listener||N]:[N]:R?_(N):g(N,N.length)}i.prototype.listeners=function(h){return y(this,h,!0)},i.prototype.rawListeners=function(h){return y(this,h,!1)},i.listenerCount=function(c,h){return typeof c.listenerCount=="function"?c.listenerCount(h):b.call(c,h)},i.prototype.listenerCount=b;function b(c){var h=this._events;if(h!==void 0){var R=h[c];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]};function g(c,h){for(var R=new Array(h),D=0;D<h;++D)R[D]=c[D];return R}function x(c,h){for(;h+1<c.length;h++)c[h]=c[h+1];c.pop()}function _(c){for(var h=new Array(c.length),R=0;R<h.length;++R)h[R]=c[R].listener||c[R];return h}function k(c,h){return new Promise(function(R,D){function N(I){c.removeListener(h,B),D(I)}function B(){typeof c.removeListener=="function"&&c.removeListener("error",N),R([].slice.call(arguments))}v(c,h,B,{once:!0}),h!=="error"&&E(c,N,{once:!0})})}function E(c,h,R){typeof c.on=="function"&&v(c,"error",h,R)}function v(c,h,R,D){if(typeof c.on=="function")D.once?c.once(h,R):c.on(h,R);else if(typeof c.addEventListener=="function")c.addEventListener(h,function N(B){D.once&&c.removeEventListener(h,N),R(B)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof c)}return nn.exports}var Fa;function We(){return Fa||(Fa=1,function(n){const e=vt(),{format:t,inspect:r}=gd(),{codes:{ERR_INVALID_ARG_TYPE:o}}=He(),{kResistStopPropagation:i,AggregateError:a,SymbolDispose:s}=Oe(),l=globalThis.AbortSignal||Gr().AbortSignal,u=globalThis.AbortController||Gr().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,m=globalThis.Blob||e.Blob,y=typeof m<"u"?function(_){return _ instanceof m}:function(_){return!1},b=(x,_)=>{if(x!==void 0&&(x===null||typeof x!="object"||!("aborted"in x)))throw new o(_,"AbortSignal",x)},g=(x,_)=>{if(typeof x!="function")throw new o(_,"Function",x)};n.exports={AggregateError:a,kEmptyObject:Object.freeze({}),once(x){let _=!1;return function(...k){_||(_=!0,x.apply(this,k))}},createDeferredPromise:function(){let x,_;return{promise:new Promise((E,v)=>{x=E,_=v}),resolve:x,reject:_}},promisify(x){return new Promise((_,k)=>{x((E,...v)=>E?k(E):_(...v))})},debuglog(){return function(){}},format:t,inspect:r,types:{isAsyncFunction(x){return x instanceof f},isArrayBufferView(x){return ArrayBuffer.isView(x)}},isBlob:y,deprecate(x,_){return x},addAbortListener:Nn().addAbortListener||function(_,k){if(_===void 0)throw new o("signal","AbortSignal",_);b(_,"signal"),g(k,"listener");let E;return _.aborted?queueMicrotask(()=>k()):(_.addEventListener("abort",k,{__proto__:null,once:!0,[i]:!0}),E=()=>{_.removeEventListener("abort",k)}),{__proto__:null,[s](){var v;(v=E)===null||v===void 0||v()}}},AbortSignalAny:l.any||function(_){if(_.length===1)return _[0];const k=new u,E=()=>k.abort();return _.forEach(v=>{b(v,"signals"),v.addEventListener("abort",E,{once:!0})}),k.signal.addEventListener("abort",()=>{_.forEach(v=>v.removeEventListener("abort",E))},{once:!0}),k.signal}},n.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}(Qn)),Qn.exports}var on={},Yn,za;function Xr(){if(za)return Yn;za=1;const{ArrayIsArray:n,ArrayPrototypeIncludes:e,ArrayPrototypeJoin:t,ArrayPrototypeMap:r,NumberIsInteger:o,NumberIsNaN:i,NumberMAX_SAFE_INTEGER:a,NumberMIN_SAFE_INTEGER:s,NumberParseInt:l,ObjectPrototypeHasOwnProperty:u,RegExpPrototypeExec:f,String:m,StringPrototypeToUpperCase:y,StringPrototypeTrim:b}=Oe(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:x,ERR_INVALID_ARG_TYPE:_,ERR_INVALID_ARG_VALUE:k,ERR_OUT_OF_RANGE:E,ERR_UNKNOWN_SIGNAL:v}}=He(),{normalizeEncoding:c}=We(),{isAsyncFunction:h,isArrayBufferView:R}=We().types,D={};function N(X){return X===(X|0)}function B(X){return X===X>>>0}const I=/^[0-7]+$/,M="must be a 32-bit unsigned integer or an octal string";function q(X,le,fe){if(typeof X>"u"&&(X=fe),typeof X=="string"){if(f(I,X)===null)throw new k(le,X,M);X=l(X,8)}return Y(X,le),X}const j=g((X,le,fe=s,ie=a)=>{if(typeof X!="number")throw new _(le,"number",X);if(!o(X))throw new E(le,"an integer",X);if(X<fe||X>ie)throw new E(le,`>= ${fe} && <= ${ie}`,X)}),A=g((X,le,fe=-2147483648,ie=2147483647)=>{if(typeof X!="number")throw new _(le,"number",X);if(!o(X))throw new E(le,"an integer",X);if(X<fe||X>ie)throw new E(le,`>= ${fe} && <= ${ie}`,X)}),Y=g((X,le,fe=!1)=>{if(typeof X!="number")throw new _(le,"number",X);if(!o(X))throw new E(le,"an integer",X);const ie=fe?1:0,Se=4294967295;if(X<ie||X>Se)throw new E(le,`>= ${ie} && <= ${Se}`,X)});function T(X,le){if(typeof X!="string")throw new _(le,"string",X)}function ee(X,le,fe=void 0,ie){if(typeof X!="number")throw new _(le,"number",X);if(fe!=null&&X<fe||ie!=null&&X>ie||(fe!=null||ie!=null)&&i(X))throw new E(le,`${fe!=null?`>= ${fe}`:""}${fe!=null&&ie!=null?" && ":""}${ie!=null?`<= ${ie}`:""}`,X)}const C=g((X,le,fe)=>{if(!e(fe,X)){const Se="must be one of: "+t(r(fe,Be=>typeof Be=="string"?`'${Be}'`:m(Be)),", ");throw new k(le,X,Se)}});function K(X,le){if(typeof X!="boolean")throw new _(le,"boolean",X)}function w(X,le,fe){return X==null||!u(X,le)?fe:X[le]}const z=g((X,le,fe=null)=>{const ie=w(fe,"allowArray",!1),Se=w(fe,"allowFunction",!1);if(!w(fe,"nullable",!1)&&X===null||!ie&&n(X)||typeof X!="object"&&(!Se||typeof X!="function"))throw new _(le,"Object",X)}),Q=g((X,le)=>{if(X!=null&&typeof X!="object"&&typeof X!="function")throw new _(le,"a dictionary",X)}),W=g((X,le,fe=0)=>{if(!n(X))throw new _(le,"Array",X);if(X.length<fe){const ie=`must be longer than ${fe}`;throw new k(le,X,ie)}});function ae(X,le){W(X,le);for(let fe=0;fe<X.length;fe++)T(X[fe],`${le}[${fe}]`)}function U(X,le){W(X,le);for(let fe=0;fe<X.length;fe++)K(X[fe],`${le}[${fe}]`)}function H(X,le){W(X,le);for(let fe=0;fe<X.length;fe++){const ie=X[fe],Se=`${le}[${fe}]`;if(ie==null)throw new _(Se,"AbortSignal",ie);ce(ie,Se)}}function V(X,le="signal"){if(T(X,le),D[X]===void 0)throw D[y(X)]!==void 0?new v(X+" (signals must use all capital letters)"):new v(X)}const F=g((X,le="buffer")=>{if(!R(X))throw new _(le,["Buffer","TypedArray","DataView"],X)});function Z(X,le){const fe=c(le),ie=X.length;if(fe==="hex"&&ie%2!==0)throw new k("encoding",le,`is invalid for data of length ${ie}`)}function te(X,le="Port",fe=!0){if(typeof X!="number"&&typeof X!="string"||typeof X=="string"&&b(X).length===0||+X!==+X>>>0||X>65535||X===0&&!fe)throw new x(le,X,fe);return X|0}const ce=g((X,le)=>{if(X!==void 0&&(X===null||typeof X!="object"||!("aborted"in X)))throw new _(le,"AbortSignal",X)}),pe=g((X,le)=>{if(typeof X!="function")throw new _(le,"Function",X)}),L=g((X,le)=>{if(typeof X!="function"||h(X))throw new _(le,"Function",X)}),G=g((X,le)=>{if(X!==void 0)throw new _(le,"undefined",X)});function re(X,le,fe){if(!e(fe,X))throw new _(le,`('${t(fe,"|")}')`,X)}const de=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function ue(X,le){if(typeof X>"u"||!f(de,X))throw new k(le,X,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function he(X){if(typeof X=="string")return ue(X,"hints"),X;if(n(X)){const le=X.length;let fe="";if(le===0)return fe;for(let ie=0;ie<le;ie++){const Se=X[ie];ue(Se,"hints"),fe+=Se,ie!==le-1&&(fe+=", ")}return fe}throw new k("hints",X,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}return Yn={isInt32:N,isUint32:B,parseFileMode:q,validateArray:W,validateStringArray:ae,validateBooleanArray:U,validateAbortSignalArray:H,validateBoolean:K,validateBuffer:F,validateDictionary:Q,validateEncoding:Z,validateFunction:pe,validateInt32:A,validateInteger:j,validateNumber:ee,validateObject:z,validateOneOf:C,validatePlainFunction:L,validatePort:te,validateSignalName:V,validateString:T,validateUint32:Y,validateUndefined:G,validateUnion:re,validateAbortSignal:ce,validateLinkHeaderValue:he},Yn}var an={exports:{}},Zn={exports:{}},Ua;function Ht(){if(Ua)return Zn.exports;Ua=1;var n=Zn.exports={},e,t;function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=r}catch{e=r}try{typeof clearTimeout=="function"?t=clearTimeout:t=o}catch{t=o}})();function i(x){if(e===setTimeout)return setTimeout(x,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(x,0);try{return e(x,0)}catch{try{return e.call(null,x,0)}catch{return e.call(this,x,0)}}}function a(x){if(t===clearTimeout)return clearTimeout(x);if((t===o||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(x);try{return t(x)}catch{try{return t.call(null,x)}catch{return t.call(this,x)}}}var s=[],l=!1,u,f=-1;function m(){!l||!u||(l=!1,u.length?s=u.concat(s):f=-1,s.length&&y())}function y(){if(!l){var x=i(m);l=!0;for(var _=s.length;_;){for(u=s,s=[];++f<_;)u&&u[f].run();f=-1,_=s.length}u=null,l=!1,a(x)}}n.nextTick=function(x){var _=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)_[k-1]=arguments[k];s.push(new b(x,_)),s.length===1&&!l&&i(y)};function b(x,_){this.fun=x,this.array=_}b.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={};function g(){}return n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(x){return[]},n.binding=function(x){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(x){throw new Error("process.chdir is not supported")},n.umask=function(){return 0},Zn.exports}var eo,Ha;function yt(){if(Ha)return eo;Ha=1;const{SymbolAsyncIterator:n,SymbolIterator:e,SymbolFor:t}=Oe(),r=t("nodejs.stream.destroyed"),o=t("nodejs.stream.errored"),i=t("nodejs.stream.readable"),a=t("nodejs.stream.writable"),s=t("nodejs.stream.disturbed"),l=t("nodejs.webstream.isClosedPromise"),u=t("nodejs.webstream.controllerErrorFunction");function f(w,z=!1){var Q;return!!(w&&typeof w.pipe=="function"&&typeof w.on=="function"&&(!z||typeof w.pause=="function"&&typeof w.resume=="function")&&(!w._writableState||((Q=w._readableState)===null||Q===void 0?void 0:Q.readable)!==!1)&&(!w._writableState||w._readableState))}function m(w){var z;return!!(w&&typeof w.write=="function"&&typeof w.on=="function"&&(!w._readableState||((z=w._writableState)===null||z===void 0?void 0:z.writable)!==!1))}function y(w){return!!(w&&typeof w.pipe=="function"&&w._readableState&&typeof w.on=="function"&&typeof w.write=="function")}function b(w){return w&&(w._readableState||w._writableState||typeof w.write=="function"&&typeof w.on=="function"||typeof w.pipe=="function"&&typeof w.on=="function")}function g(w){return!!(w&&!b(w)&&typeof w.pipeThrough=="function"&&typeof w.getReader=="function"&&typeof w.cancel=="function")}function x(w){return!!(w&&!b(w)&&typeof w.getWriter=="function"&&typeof w.abort=="function")}function _(w){return!!(w&&!b(w)&&typeof w.readable=="object"&&typeof w.writable=="object")}function k(w){return g(w)||x(w)||_(w)}function E(w,z){return w==null?!1:z===!0?typeof w[n]=="function":z===!1?typeof w[e]=="function":typeof w[n]=="function"||typeof w[e]=="function"}function v(w){if(!b(w))return null;const z=w._writableState,Q=w._readableState,W=z||Q;return!!(w.destroyed||w[r]||W!=null&&W.destroyed)}function c(w){if(!m(w))return null;if(w.writableEnded===!0)return!0;const z=w._writableState;return z!=null&&z.errored?!1:typeof z?.ended!="boolean"?null:z.ended}function h(w,z){if(!m(w))return null;if(w.writableFinished===!0)return!0;const Q=w._writableState;return Q!=null&&Q.errored?!1:typeof Q?.finished!="boolean"?null:!!(Q.finished||z===!1&&Q.ended===!0&&Q.length===0)}function R(w){if(!f(w))return null;if(w.readableEnded===!0)return!0;const z=w._readableState;return!z||z.errored?!1:typeof z?.ended!="boolean"?null:z.ended}function D(w,z){if(!f(w))return null;const Q=w._readableState;return Q!=null&&Q.errored?!1:typeof Q?.endEmitted!="boolean"?null:!!(Q.endEmitted||z===!1&&Q.ended===!0&&Q.length===0)}function N(w){return w&&w[i]!=null?w[i]:typeof w?.readable!="boolean"?null:v(w)?!1:f(w)&&w.readable&&!D(w)}function B(w){return w&&w[a]!=null?w[a]:typeof w?.writable!="boolean"?null:v(w)?!1:m(w)&&w.writable&&!c(w)}function I(w,z){return b(w)?v(w)?!0:!(z?.readable!==!1&&N(w)||z?.writable!==!1&&B(w)):null}function M(w){var z,Q;return b(w)?w.writableErrored?w.writableErrored:(z=(Q=w._writableState)===null||Q===void 0?void 0:Q.errored)!==null&&z!==void 0?z:null:null}function q(w){var z,Q;return b(w)?w.readableErrored?w.readableErrored:(z=(Q=w._readableState)===null||Q===void 0?void 0:Q.errored)!==null&&z!==void 0?z:null:null}function j(w){if(!b(w))return null;if(typeof w.closed=="boolean")return w.closed;const z=w._writableState,Q=w._readableState;return typeof z?.closed=="boolean"||typeof Q?.closed=="boolean"?z?.closed||Q?.closed:typeof w._closed=="boolean"&&A(w)?w._closed:null}function A(w){return typeof w._closed=="boolean"&&typeof w._defaultKeepAlive=="boolean"&&typeof w._removedConnection=="boolean"&&typeof w._removedContLen=="boolean"}function Y(w){return typeof w._sent100=="boolean"&&A(w)}function T(w){var z;return typeof w._consuming=="boolean"&&typeof w._dumped=="boolean"&&((z=w.req)===null||z===void 0?void 0:z.upgradeOrConnect)===void 0}function ee(w){if(!b(w))return null;const z=w._writableState,Q=w._readableState,W=z||Q;return!W&&Y(w)||!!(W&&W.autoDestroy&&W.emitClose&&W.closed===!1)}function C(w){var z;return!!(w&&((z=w[s])!==null&&z!==void 0?z:w.readableDidRead||w.readableAborted))}function K(w){var z,Q,W,ae,U,H,V,F,Z,te;return!!(w&&((z=(Q=(W=(ae=(U=(H=w[o])!==null&&H!==void 0?H:w.readableErrored)!==null&&U!==void 0?U:w.writableErrored)!==null&&ae!==void 0?ae:(V=w._readableState)===null||V===void 0?void 0:V.errorEmitted)!==null&&W!==void 0?W:(F=w._writableState)===null||F===void 0?void 0:F.errorEmitted)!==null&&Q!==void 0?Q:(Z=w._readableState)===null||Z===void 0?void 0:Z.errored)!==null&&z!==void 0?z:!((te=w._writableState)===null||te===void 0)&&te.errored))}return eo={isDestroyed:v,kIsDestroyed:r,isDisturbed:C,kIsDisturbed:s,isErrored:K,kIsErrored:o,isReadable:N,kIsReadable:i,kIsClosedPromise:l,kControllerErrorFunction:u,kIsWritable:a,isClosed:j,isDuplexNodeStream:y,isFinished:I,isIterable:E,isReadableNodeStream:f,isReadableStream:g,isReadableEnded:R,isReadableFinished:D,isReadableErrored:q,isNodeStream:b,isWebStream:k,isWritable:B,isWritableNodeStream:m,isWritableStream:x,isWritableEnded:c,isWritableFinished:h,isWritableErrored:M,isServerRequest:T,isServerResponse:Y,willEmitClose:ee,isTransformStream:_},eo}var Ga;function Nt(){if(Ga)return an.exports;Ga=1;const n=Ht(),{AbortError:e,codes:t}=He(),{ERR_INVALID_ARG_TYPE:r,ERR_STREAM_PREMATURE_CLOSE:o}=t,{kEmptyObject:i,once:a}=We(),{validateAbortSignal:s,validateFunction:l,validateObject:u,validateBoolean:f}=Xr(),{Promise:m,PromisePrototypeThen:y,SymbolDispose:b}=Oe(),{isClosed:g,isReadable:x,isReadableNodeStream:_,isReadableStream:k,isReadableFinished:E,isReadableErrored:v,isWritable:c,isWritableNodeStream:h,isWritableStream:R,isWritableFinished:D,isWritableErrored:N,isNodeStream:B,willEmitClose:I,kIsClosedPromise:M}=yt();let q;function j(C){return C.setHeader&&typeof C.abort=="function"}const A=()=>{};function Y(C,K,w){var z,Q;if(arguments.length===2?(w=K,K=i):K==null?K=i:u(K,"options"),l(w,"callback"),s(K.signal,"options.signal"),w=a(w),k(C)||R(C))return T(C,K,w);if(!B(C))throw new r("stream",["ReadableStream","WritableStream","Stream"],C);const W=(z=K.readable)!==null&&z!==void 0?z:_(C),ae=(Q=K.writable)!==null&&Q!==void 0?Q:h(C),U=C._writableState,H=C._readableState,V=()=>{C.writable||te()};let F=I(C)&&_(C)===W&&h(C)===ae,Z=D(C,!1);const te=()=>{Z=!0,C.destroyed&&(F=!1),!(F&&(!C.readable||W))&&(!W||ce)&&w.call(C)};let ce=E(C,!1);const pe=()=>{ce=!0,C.destroyed&&(F=!1),!(F&&(!C.writable||ae))&&(!ae||Z)&&w.call(C)},L=X=>{w.call(C,X)};let G=g(C);const re=()=>{G=!0;const X=N(C)||v(C);if(X&&typeof X!="boolean")return w.call(C,X);if(W&&!ce&&_(C,!0)&&!E(C,!1))return w.call(C,new o);if(ae&&!Z&&!D(C,!1))return w.call(C,new o);w.call(C)},de=()=>{G=!0;const X=N(C)||v(C);if(X&&typeof X!="boolean")return w.call(C,X);w.call(C)},ue=()=>{C.req.on("finish",te)};j(C)?(C.on("complete",te),F||C.on("abort",re),C.req?ue():C.on("request",ue)):ae&&!U&&(C.on("end",V),C.on("close",V)),!F&&typeof C.aborted=="boolean"&&C.on("aborted",re),C.on("end",pe),C.on("finish",te),K.error!==!1&&C.on("error",L),C.on("close",re),G?n.nextTick(re):U!=null&&U.errorEmitted||H!=null&&H.errorEmitted?F||n.nextTick(de):(!W&&(!F||x(C))&&(Z||c(C)===!1)||!ae&&(!F||c(C))&&(ce||x(C)===!1)||H&&C.req&&C.aborted)&&n.nextTick(de);const he=()=>{w=A,C.removeListener("aborted",re),C.removeListener("complete",te),C.removeListener("abort",re),C.removeListener("request",ue),C.req&&C.req.removeListener("finish",te),C.removeListener("end",V),C.removeListener("close",V),C.removeListener("finish",te),C.removeListener("end",pe),C.removeListener("error",L),C.removeListener("close",re)};if(K.signal&&!G){const X=()=>{const le=w;he(),le.call(C,new e(void 0,{cause:K.signal.reason}))};if(K.signal.aborted)n.nextTick(X);else{q=q||We().addAbortListener;const le=q(K.signal,X),fe=w;w=a((...ie)=>{le[b](),fe.apply(C,ie)})}}return he}function T(C,K,w){let z=!1,Q=A;if(K.signal)if(Q=()=>{z=!0,w.call(C,new e(void 0,{cause:K.signal.reason}))},K.signal.aborted)n.nextTick(Q);else{q=q||We().addAbortListener;const ae=q(K.signal,Q),U=w;w=a((...H)=>{ae[b](),U.apply(C,H)})}const W=(...ae)=>{z||n.nextTick(()=>w.apply(C,ae))};return y(C[M].promise,W,W),A}function ee(C,K){var w;let z=!1;return K===null&&(K=i),(w=K)!==null&&w!==void 0&&w.cleanup&&(f(K.cleanup,"cleanup"),z=K.cleanup),new m((Q,W)=>{const ae=Y(C,K,U=>{z&&ae(),U?W(U):Q()})})}return an.exports=Y,an.exports.finished=ee,an.exports}var to,Va;function dr(){if(Va)return to;Va=1;const n=Ht(),{aggregateTwoErrors:e,codes:{ERR_MULTIPLE_CALLBACK:t},AbortError:r}=He(),{Symbol:o}=Oe(),{kIsDestroyed:i,isDestroyed:a,isFinished:s,isServerRequest:l}=yt(),u=o("kDestroy"),f=o("kConstruct");function m(I,M,q){I&&(I.stack,M&&!M.errored&&(M.errored=I),q&&!q.errored&&(q.errored=I))}function y(I,M){const q=this._readableState,j=this._writableState,A=j||q;return j!=null&&j.destroyed||q!=null&&q.destroyed?(typeof M=="function"&&M(),this):(m(I,j,q),j&&(j.destroyed=!0),q&&(q.destroyed=!0),A.constructed?b(this,I,M):this.once(u,function(Y){b(this,e(Y,I),M)}),this)}function b(I,M,q){let j=!1;function A(Y){if(j)return;j=!0;const T=I._readableState,ee=I._writableState;m(Y,ee,T),ee&&(ee.closed=!0),T&&(T.closed=!0),typeof q=="function"&&q(Y),Y?n.nextTick(g,I,Y):n.nextTick(x,I)}try{I._destroy(M||null,A)}catch(Y){A(Y)}}function g(I,M){_(I,M),x(I)}function x(I){const M=I._readableState,q=I._writableState;q&&(q.closeEmitted=!0),M&&(M.closeEmitted=!0),(q!=null&&q.emitClose||M!=null&&M.emitClose)&&I.emit("close")}function _(I,M){const q=I._readableState,j=I._writableState;j!=null&&j.errorEmitted||q!=null&&q.errorEmitted||(j&&(j.errorEmitted=!0),q&&(q.errorEmitted=!0),I.emit("error",M))}function k(){const I=this._readableState,M=this._writableState;I&&(I.constructed=!0,I.closed=!1,I.closeEmitted=!1,I.destroyed=!1,I.errored=null,I.errorEmitted=!1,I.reading=!1,I.ended=I.readable===!1,I.endEmitted=I.readable===!1),M&&(M.constructed=!0,M.destroyed=!1,M.closed=!1,M.closeEmitted=!1,M.errored=null,M.errorEmitted=!1,M.finalCalled=!1,M.prefinished=!1,M.ended=M.writable===!1,M.ending=M.writable===!1,M.finished=M.writable===!1)}function E(I,M,q){const j=I._readableState,A=I._writableState;if(A!=null&&A.destroyed||j!=null&&j.destroyed)return this;j!=null&&j.autoDestroy||A!=null&&A.autoDestroy?I.destroy(M):M&&(M.stack,A&&!A.errored&&(A.errored=M),j&&!j.errored&&(j.errored=M),q?n.nextTick(_,I,M):_(I,M))}function v(I,M){if(typeof I._construct!="function")return;const q=I._readableState,j=I._writableState;q&&(q.constructed=!1),j&&(j.constructed=!1),I.once(f,M),!(I.listenerCount(f)>1)&&n.nextTick(c,I)}function c(I){let M=!1;function q(j){if(M){E(I,j??new t);return}M=!0;const A=I._readableState,Y=I._writableState,T=Y||A;A&&(A.constructed=!0),Y&&(Y.constructed=!0),T.destroyed?I.emit(u,j):j?E(I,j,!0):n.nextTick(h,I)}try{I._construct(j=>{n.nextTick(q,j)})}catch(j){n.nextTick(q,j)}}function h(I){I.emit(f)}function R(I){return I?.setHeader&&typeof I.abort=="function"}function D(I){I.emit("close")}function N(I,M){I.emit("error",M),n.nextTick(D,I)}function B(I,M){!I||a(I)||(!M&&!s(I)&&(M=new r),l(I)?(I.socket=null,I.destroy(M)):R(I)?I.abort():R(I.req)?I.req.abort():typeof I.destroy=="function"?I.destroy(M):typeof I.close=="function"?I.close():M?n.nextTick(N,I,M):n.nextTick(D,I),I.destroyed||(I[i]=!0))}return to={construct:v,destroyer:B,destroy:y,undestroy:k,errorOrDestroy:E},to}var ro,Wa;function zi(){if(Wa)return ro;Wa=1;const{ArrayIsArray:n,ObjectSetPrototypeOf:e}=Oe(),{EventEmitter:t}=Nn();function r(i){t.call(this,i)}e(r.prototype,t.prototype),e(r,t),r.prototype.pipe=function(i,a){const s=this;function l(x){i.writable&&i.write(x)===!1&&s.pause&&s.pause()}s.on("data",l);function u(){s.readable&&s.resume&&s.resume()}i.on("drain",u),!i._isStdio&&(!a||a.end!==!1)&&(s.on("end",m),s.on("close",y));let f=!1;function m(){f||(f=!0,i.end())}function y(){f||(f=!0,typeof i.destroy=="function"&&i.destroy())}function b(x){g(),t.listenerCount(this,"error")===0&&this.emit("error",x)}o(s,"error",b),o(i,"error",b);function g(){s.removeListener("data",l),i.removeListener("drain",u),s.removeListener("end",m),s.removeListener("close",y),s.removeListener("error",b),i.removeListener("error",b),s.removeListener("end",g),s.removeListener("close",g),i.removeListener("close",g)}return s.on("end",g),s.on("close",g),i.on("close",g),i.emit("pipe",s),i};function o(i,a,s){if(typeof i.prependListener=="function")return i.prependListener(a,s);!i._events||!i._events[a]?i.on(a,s):n(i._events[a])?i._events[a].unshift(s):i._events[a]=[s,i._events[a]]}return ro={Stream:r,prependListener:o},ro}var no={exports:{}},Ja;function jn(){return Ja||(Ja=1,function(n){const{SymbolDispose:e}=Oe(),{AbortError:t,codes:r}=He(),{isNodeStream:o,isWebStream:i,kControllerErrorFunction:a}=yt(),s=Nt(),{ERR_INVALID_ARG_TYPE:l}=r;let u;const f=(m,y)=>{if(typeof m!="object"||!("aborted"in m))throw new l(y,"AbortSignal",m)};n.exports.addAbortSignal=function(y,b){if(f(y,"signal"),!o(b)&&!i(b))throw new l("stream",["ReadableStream","WritableStream","Stream"],b);return n.exports.addAbortSignalNoValidate(y,b)},n.exports.addAbortSignalNoValidate=function(m,y){if(typeof m!="object"||!("aborted"in m))return y;const b=o(y)?()=>{y.destroy(new t(void 0,{cause:m.reason}))}:()=>{y[a](new t(void 0,{cause:m.reason}))};if(m.aborted)b();else{u=u||We().addAbortListener;const g=u(m,b);s(y,g[e])}return y}}(no)),no.exports}var oo,Qa;function zc(){if(Qa)return oo;Qa=1;const{StringPrototypeSlice:n,SymbolIterator:e,TypedArrayPrototypeSet:t,Uint8Array:r}=Oe(),{Buffer:o}=vt(),{inspect:i}=We();return oo=class{constructor(){this.head=null,this.tail=null,this.length=0}push(s){const l={data:s,next:null};this.length>0?this.tail.next=l:this.head=l,this.tail=l,++this.length}unshift(s){const l={data:s,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length}shift(){if(this.length===0)return;const s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}clear(){this.head=this.tail=null,this.length=0}join(s){if(this.length===0)return"";let l=this.head,u=""+l.data;for(;(l=l.next)!==null;)u+=s+l.data;return u}concat(s){if(this.length===0)return o.alloc(0);const l=o.allocUnsafe(s>>>0);let u=this.head,f=0;for(;u;)t(l,u.data,f),f+=u.data.length,u=u.next;return l}consume(s,l){const u=this.head.data;if(s<u.length){const f=u.slice(0,s);return this.head.data=u.slice(s),f}return s===u.length?this.shift():l?this._getString(s):this._getBuffer(s)}first(){return this.head.data}*[e](){for(let s=this.head;s;s=s.next)yield s.data}_getString(s){let l="",u=this.head,f=0;do{const m=u.data;if(s>m.length)l+=m,s-=m.length;else{s===m.length?(l+=m,++f,u.next?this.head=u.next:this.head=this.tail=null):(l+=n(m,0,s),this.head=u,u.data=n(m,s));break}++f}while((u=u.next)!==null);return this.length-=f,l}_getBuffer(s){const l=o.allocUnsafe(s),u=s;let f=this.head,m=0;do{const y=f.data;if(s>y.length)t(l,y,u-s),s-=y.length;else{s===y.length?(t(l,y,u-s),++m,f.next?this.head=f.next:this.head=this.tail=null):(t(l,new r(y.buffer,y.byteOffset,s),u-s),this.head=f,f.data=y.slice(s));break}++m}while((f=f.next)!==null);return this.length-=m,l}[Symbol.for("nodejs.util.inspect.custom")](s,l){return i(this,{...l,depth:0,customInspect:!1})}},oo}var io,Xa;function Tn(){if(Xa)return io;Xa=1;const{MathFloor:n,NumberIsInteger:e}=Oe(),{validateInteger:t}=Xr(),{ERR_INVALID_ARG_VALUE:r}=He().codes;let o=16*1024,i=16;function a(f,m,y){return f.highWaterMark!=null?f.highWaterMark:m?f[y]:null}function s(f){return f?i:o}function l(f,m){t(m,"value",0),f?i=m:o=m}function u(f,m,y,b){const g=a(m,b,y);if(g!=null){if(!e(g)||g<0){const x=b?`options.${y}`:"options.highWaterMark";throw new r(x,g)}return n(g)}return s(f.objectMode)}return io={getHighWaterMark:u,getDefaultHighWaterMark:s,setDefaultHighWaterMark:l},io}var ao={},sn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ka;function Uc(){return Ka||(Ka=1,function(n,e){var t=vt(),r=t.Buffer;function o(a,s){for(var l in a)s[l]=a[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?n.exports=t:(o(t,e),e.Buffer=i);function i(a,s,l){return r(a,s,l)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,s,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,s,l)},i.alloc=function(a,s,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=r(a);return s!==void 0?typeof l=="string"?u.fill(s,l):u.fill(s):u.fill(0),u},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}}(sn,sn.exports)),sn.exports}var Ya;function Hc(){if(Ya)return ao;Ya=1;var n=Uc().Buffer,e=n.isEncoding||function(k){switch(k=""+k,k&&k.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 t(k){if(!k)return"utf8";for(var E;;)switch(k){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 k;default:if(E)return;k=(""+k).toLowerCase(),E=!0}}function r(k){var E=t(k);if(typeof E!="string"&&(n.isEncoding===e||!e(k)))throw new Error("Unknown encoding: "+k);return E||k}ao.StringDecoder=o;function o(k){this.encoding=r(k);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=y,E=4;break;case"utf8":this.fillLast=l,E=4;break;case"base64":this.text=b,this.end=g,E=3;break;default:this.write=x,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(E)}o.prototype.write=function(k){if(k.length===0)return"";var E,v;if(this.lastNeed){if(E=this.fillLast(k),E===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<k.length?E?E+this.text(k,v):this.text(k,v):E||""},o.prototype.end=f,o.prototype.text=u,o.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function i(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}function a(k,E,v){var c=E.length-1;if(c<v)return 0;var h=i(E[c]);return h>=0?(h>0&&(k.lastNeed=h-1),h):--c<v||h===-2?0:(h=i(E[c]),h>=0?(h>0&&(k.lastNeed=h-2),h):--c<v||h===-2?0:(h=i(E[c]),h>=0?(h>0&&(h===2?h=0:k.lastNeed=h-3),h):0))}function s(k,E,v){if((E[0]&192)!==128)return k.lastNeed=0,"�";if(k.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return k.lastNeed=1,"�";if(k.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return k.lastNeed=2,"�"}}function l(k){var E=this.lastTotal-this.lastNeed,v=s(this,k);if(v!==void 0)return v;if(this.lastNeed<=k.length)return k.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,E,0,k.length),this.lastNeed-=k.length}function u(k,E){var v=a(this,k,E);if(!this.lastNeed)return k.toString("utf8",E);this.lastTotal=v;var c=k.length-(v-this.lastNeed);return k.copy(this.lastChar,0,c),k.toString("utf8",E,c)}function f(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+"�":E}function m(k,E){if((k.length-E)%2===0){var v=k.toString("utf16le",E);if(v){var c=v.charCodeAt(v.length-1);if(c>=55296&&c<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",E,k.length-1)}function y(k){var E=k&&k.length?this.write(k):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,v)}return E}function b(k,E){var v=(k.length-E)%3;return v===0?k.toString("base64",E):(this.lastNeed=3-v,this.lastTotal=3,v===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",E,k.length-v))}function g(k){var E=k&&k.length?this.write(k):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function x(k){return k.toString(this.encoding)}function _(k){return k&&k.length?this.write(k):""}return ao}var so,Za;function vd(){if(Za)return so;Za=1;const n=Ht(),{PromisePrototypeThen:e,SymbolAsyncIterator:t,SymbolIterator:r}=Oe(),{Buffer:o}=vt(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_NULL_VALUES:a}=He().codes;function s(l,u,f){let m;if(typeof u=="string"||u instanceof o)return new l({objectMode:!0,...f,read(){this.push(u),this.push(null)}});let y;if(u&&u[t])y=!0,m=u[t]();else if(u&&u[r])y=!1,m=u[r]();else throw new i("iterable",["Iterable"],u);const b=new l({objectMode:!0,highWaterMark:1,...f});let g=!1;b._read=function(){g||(g=!0,_())},b._destroy=function(k,E){e(x(k),()=>n.nextTick(E,k),v=>n.nextTick(E,v||k))};async function x(k){const E=k!=null,v=typeof m.throw=="function";if(E&&v){const{value:c,done:h}=await m.throw(k);if(await c,h)return}if(typeof m.return=="function"){const{value:c}=await m.return();await c}}async function _(){for(;;){try{const{value:k,done:E}=y?await m.next():m.next();if(E)b.push(null);else{const v=k&&typeof k.then=="function"?await k:k;if(v===null)throw g=!1,new a;if(b.push(v))continue;g=!1}}catch(k){b.destroy(k)}break}}return b}return so=s,so}var lo,es;function An(){if(es)return lo;es=1;const n=Ht(),{ArrayPrototypeIndexOf:e,NumberIsInteger:t,NumberIsNaN:r,NumberParseInt:o,ObjectDefineProperties:i,ObjectKeys:a,ObjectSetPrototypeOf:s,Promise:l,SafeSet:u,SymbolAsyncDispose:f,SymbolAsyncIterator:m,Symbol:y}=Oe();lo=ie,ie.ReadableState=fe;const{EventEmitter:b}=Nn(),{Stream:g,prependListener:x}=zi(),{Buffer:_}=vt(),{addAbortSignal:k}=jn(),E=Nt();let v=We().debuglog("stream",O=>{v=O});const c=zc(),h=dr(),{getHighWaterMark:R,getDefaultHighWaterMark:D}=Tn(),{aggregateTwoErrors:N,codes:{ERR_INVALID_ARG_TYPE:B,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:q,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:j},AbortError:A}=He(),{validateObject:Y}=Xr(),T=y("kPaused"),{StringDecoder:ee}=Hc(),C=vd();s(ie.prototype,g.prototype),s(ie,g);const K=()=>{},{errorOrDestroy:w}=h,z=1,Q=2,W=4,ae=8,U=16,H=32,V=64,F=128,Z=256,te=512,ce=1024,pe=2048,L=4096,G=8192,re=16384,de=32768,ue=65536,he=1<<17,X=1<<18;function le(O){return{enumerable:!1,get(){return(this.state&O)!==0},set(P){P?this.state|=O:this.state&=~O}}}i(fe.prototype,{objectMode:le(z),ended:le(Q),endEmitted:le(W),reading:le(ae),constructed:le(U),sync:le(H),needReadable:le(V),emittedReadable:le(F),readableListening:le(Z),resumeScheduled:le(te),errorEmitted:le(ce),emitClose:le(pe),autoDestroy:le(L),destroyed:le(G),closed:le(re),closeEmitted:le(de),multiAwaitDrain:le(ue),readingMore:le(he),dataEmitted:le(X)});function fe(O,P,be){typeof be!="boolean"&&(be=P instanceof mt()),this.state=pe|L|U|H,O&&O.objectMode&&(this.state|=z),be&&O&&O.readableObjectMode&&(this.state|=z),this.highWaterMark=O?R(this,O,"readableHighWaterMark",be):D(!1),this.buffer=new c,this.length=0,this.pipes=[],this.flowing=null,this[T]=null,O&&O.emitClose===!1&&(this.state&=~pe),O&&O.autoDestroy===!1&&(this.state&=~L),this.errored=null,this.defaultEncoding=O&&O.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,O&&O.encoding&&(this.decoder=new ee(O.encoding),this.encoding=O.encoding)}function ie(O){if(!(this instanceof ie))return new ie(O);const P=this instanceof mt();this._readableState=new fe(O,this,P),O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.construct=="function"&&(this._construct=O.construct),O.signal&&!P&&k(O.signal,this)),g.call(this,O),h.construct(this,()=>{this._readableState.needReadable&&J(this,this._readableState)})}ie.prototype.destroy=h.destroy,ie.prototype._undestroy=h.undestroy,ie.prototype._destroy=function(O,P){P(O)},ie.prototype[b.captureRejectionSymbol]=function(O){this.destroy(O)},ie.prototype[f]=function(){let O;return this.destroyed||(O=this.readableEnded?null:new A,this.destroy(O)),new l((P,be)=>E(this,me=>me&&me!==O?be(me):P(null)))},ie.prototype.push=function(O,P){return Se(this,O,P,!1)},ie.prototype.unshift=function(O,P){return Se(this,O,P,!0)};function Se(O,P,be,me){v("readableAddChunk",P);const ge=O._readableState;let qe;if((ge.state&z)===0&&(typeof P=="string"?(be=be||ge.defaultEncoding,ge.encoding!==be&&(me&&ge.encoding?P=_.from(P,be).toString(ge.encoding):(P=_.from(P,be),be=""))):P instanceof _?be="":g._isUint8Array(P)?(P=g._uint8ArrayToBuffer(P),be=""):P!=null&&(qe=new B("chunk",["string","Buffer","Uint8Array"],P))),qe)w(O,qe);else if(P===null)ge.state&=~ae,d(O,ge);else if((ge.state&z)!==0||P&&P.length>0)if(me)if((ge.state&W)!==0)w(O,new j);else{if(ge.destroyed||ge.errored)return!1;Be(O,ge,P,!0)}else if(ge.ended)w(O,new q);else{if(ge.destroyed||ge.errored)return!1;ge.state&=~ae,ge.decoder&&!be?(P=ge.decoder.write(P),ge.objectMode||P.length!==0?Be(O,ge,P,!1):J(O,ge)):Be(O,ge,P,!1)}else me||(ge.state&=~ae,J(O,ge));return!ge.ended&&(ge.length<ge.highWaterMark||ge.length===0)}function Be(O,P,be,me){P.flowing&&P.length===0&&!P.sync&&O.listenerCount("data")>0?((P.state&ue)!==0?P.awaitDrainWriters.clear():P.awaitDrainWriters=null,P.dataEmitted=!0,O.emit("data",be)):(P.length+=P.objectMode?1:be.length,me?P.buffer.unshift(be):P.buffer.push(be),(P.state&V)!==0&&p(O)),J(O,P)}ie.prototype.isPaused=function(){const O=this._readableState;return O[T]===!0||O.flowing===!1},ie.prototype.setEncoding=function(O){const P=new ee(O);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;const be=this._readableState.buffer;let me="";for(const ge of be)me+=P.write(ge);return be.clear(),me!==""&&be.push(me),this._readableState.length=me.length,this};const xe=1073741824;function Ue(O){if(O>xe)throw new M("size","<= 1GiB",O);return O--,O|=O>>>1,O|=O>>>2,O|=O>>>4,O|=O>>>8,O|=O>>>16,O++,O}function S(O,P){return O<=0||P.length===0&&P.ended?0:(P.state&z)!==0?1:r(O)?P.flowing&&P.length?P.buffer.first().length:P.length:O<=P.length?O:P.ended?P.length:0}ie.prototype.read=function(O){v("read",O),O===void 0?O=NaN:t(O)||(O=o(O,10));const P=this._readableState,be=O;if(O>P.highWaterMark&&(P.highWaterMark=Ue(O)),O!==0&&(P.state&=~F),O===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return v("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?Bn(this):p(this),null;if(O=S(O,P),O===0&&P.ended)return P.length===0&&Bn(this),null;let me=(P.state&V)!==0;if(v("need readable",me),(P.length===0||P.length-O<P.highWaterMark)&&(me=!0,v("length less than watermark",me)),P.ended||P.reading||P.destroyed||P.errored||!P.constructed)me=!1,v("reading, ended or constructing",me);else if(me){v("do read"),P.state|=ae|H,P.length===0&&(P.state|=V);try{this._read(P.highWaterMark)}catch(qe){w(this,qe)}P.state&=~H,P.reading||(O=S(be,P))}let ge;return O>0?ge=wa(O,P):ge=null,ge===null?(P.needReadable=P.length<=P.highWaterMark,O=0):(P.length-=O,P.multiAwaitDrain?P.awaitDrainWriters.clear():P.awaitDrainWriters=null),P.length===0&&(P.ended||(P.needReadable=!0),be!==O&&P.ended&&Bn(this)),ge!==null&&!P.errorEmitted&&!P.closeEmitted&&(P.dataEmitted=!0,this.emit("data",ge)),ge};function d(O,P){if(v("onEofChunk"),!P.ended){if(P.decoder){const be=P.decoder.end();be&&be.length&&(P.buffer.push(be),P.length+=P.objectMode?1:be.length)}P.ended=!0,P.sync?p(O):(P.needReadable=!1,P.emittedReadable=!0,$(O))}}function p(O){const P=O._readableState;v("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(v("emitReadable",P.flowing),P.emittedReadable=!0,n.nextTick($,O))}function $(O){const P=O._readableState;v("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&!P.errored&&(P.length||P.ended)&&(O.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,Ee(O)}function J(O,P){!P.readingMore&&P.constructed&&(P.readingMore=!0,n.nextTick(oe,O,P))}function oe(O,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){const be=P.length;if(v("maybeReadMore read 0"),O.read(0),be===P.length)break}P.readingMore=!1}ie.prototype._read=function(O){throw new I("_read()")},ie.prototype.pipe=function(O,P){const be=this,me=this._readableState;me.pipes.length===1&&(me.multiAwaitDrain||(me.multiAwaitDrain=!0,me.awaitDrainWriters=new u(me.awaitDrainWriters?[me.awaitDrainWriters]:[]))),me.pipes.push(O),v("pipe count=%d opts=%j",me.pipes.length,P);const qe=(!P||P.end!==!1)&&O!==n.stdout&&O!==n.stderr?_a:fr;me.endEmitted?n.nextTick(qe):be.once("end",qe),O.on("unpipe",Ye);function Ye(At,ht){v("onunpipe"),At===be&&ht&&ht.hasUnpiped===!1&&(ht.hasUnpiped=!0,wc())}function _a(){v("onend"),O.end()}let Tt,ka=!1;function wc(){v("cleanup"),O.removeListener("close",zn),O.removeListener("finish",Un),Tt&&O.removeListener("drain",Tt),O.removeListener("error",Fn),O.removeListener("unpipe",Ye),be.removeListener("end",_a),be.removeListener("end",fr),be.removeListener("data",Ea),ka=!0,Tt&&me.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&Tt()}function Sa(){ka||(me.pipes.length===1&&me.pipes[0]===O?(v("false write response, pause",0),me.awaitDrainWriters=O,me.multiAwaitDrain=!1):me.pipes.length>1&&me.pipes.includes(O)&&(v("false write response, pause",me.awaitDrainWriters.size),me.awaitDrainWriters.add(O)),be.pause()),Tt||(Tt=se(be,O),O.on("drain",Tt))}be.on("data",Ea);function Ea(At){v("ondata");const ht=O.write(At);v("dest.write",ht),ht===!1&&Sa()}function Fn(At){if(v("onerror",At),fr(),O.removeListener("error",Fn),O.listenerCount("error")===0){const ht=O._writableState||O._readableState;ht&&!ht.errorEmitted?w(O,At):O.emit("error",At)}}x(O,"error",Fn);function zn(){O.removeListener("finish",Un),fr()}O.once("close",zn);function Un(){v("onfinish"),O.removeListener("close",zn),fr()}O.once("finish",Un);function fr(){v("unpipe"),be.unpipe(O)}return O.emit("pipe",be),O.writableNeedDrain===!0?Sa():me.flowing||(v("pipe resume"),be.resume()),O};function se(O,P){return function(){const me=O._readableState;me.awaitDrainWriters===P?(v("pipeOnDrain",1),me.awaitDrainWriters=null):me.multiAwaitDrain&&(v("pipeOnDrain",me.awaitDrainWriters.size),me.awaitDrainWriters.delete(P)),(!me.awaitDrainWriters||me.awaitDrainWriters.size===0)&&O.listenerCount("data")&&O.resume()}}ie.prototype.unpipe=function(O){const P=this._readableState,be={hasUnpiped:!1};if(P.pipes.length===0)return this;if(!O){const ge=P.pipes;P.pipes=[],this.pause();for(let qe=0;qe<ge.length;qe++)ge[qe].emit("unpipe",this,{hasUnpiped:!1});return this}const me=e(P.pipes,O);return me===-1?this:(P.pipes.splice(me,1),P.pipes.length===0&&this.pause(),O.emit("unpipe",this,be),this)},ie.prototype.on=function(O,P){const be=g.prototype.on.call(this,O,P),me=this._readableState;return O==="data"?(me.readableListening=this.listenerCount("readable")>0,me.flowing!==!1&&this.resume()):O==="readable"&&!me.endEmitted&&!me.readableListening&&(me.readableListening=me.needReadable=!0,me.flowing=!1,me.emittedReadable=!1,v("on readable",me.length,me.reading),me.length?p(this):me.reading||n.nextTick(Te,this)),be},ie.prototype.addListener=ie.prototype.on,ie.prototype.removeListener=function(O,P){const be=g.prototype.removeListener.call(this,O,P);return O==="readable"&&n.nextTick(ye,this),be},ie.prototype.off=ie.prototype.removeListener,ie.prototype.removeAllListeners=function(O){const P=g.prototype.removeAllListeners.apply(this,arguments);return(O==="readable"||O===void 0)&&n.nextTick(ye,this),P};function ye(O){const P=O._readableState;P.readableListening=O.listenerCount("readable")>0,P.resumeScheduled&&P[T]===!1?P.flowing=!0:O.listenerCount("data")>0?O.resume():P.readableListening||(P.flowing=null)}function Te(O){v("readable nexttick read 0"),O.read(0)}ie.prototype.resume=function(){const O=this._readableState;return O.flowing||(v("resume"),O.flowing=!O.readableListening,Ne(this,O)),O[T]=!1,this};function Ne(O,P){P.resumeScheduled||(P.resumeScheduled=!0,n.nextTick(Ae,O,P))}function Ae(O,P){v("resume",P.reading),P.reading||O.read(0),P.resumeScheduled=!1,O.emit("resume"),Ee(O),P.flowing&&!P.reading&&O.read(0)}ie.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[T]=!0,this};function Ee(O){const P=O._readableState;for(v("flow",P.flowing);P.flowing&&O.read()!==null;);}ie.prototype.wrap=function(O){let P=!1;O.on("data",me=>{!this.push(me)&&O.pause&&(P=!0,O.pause())}),O.on("end",()=>{this.push(null)}),O.on("error",me=>{w(this,me)}),O.on("close",()=>{this.destroy()}),O.on("destroy",()=>{this.destroy()}),this._read=()=>{P&&O.resume&&(P=!1,O.resume())};const be=a(O);for(let me=1;me<be.length;me++){const ge=be[me];this[ge]===void 0&&typeof O[ge]=="function"&&(this[ge]=O[ge].bind(O))}return this},ie.prototype[m]=function(){return ya(this)},ie.prototype.iterator=function(O){return O!==void 0&&Y(O,"options"),ya(this,O)};function ya(O,P){typeof O.read!="function"&&(O=ie.wrap(O,{objectMode:!0}));const be=gc(O,P);return be.stream=O,be}async function*gc(O,P){let be=K;function me(Ye){this===O?(be(),be=K):be=Ye}O.on("readable",me);let ge;const qe=E(O,{writable:!1},Ye=>{ge=Ye?N(ge,Ye):null,be(),be=K});try{for(;;){const Ye=O.destroyed?null:O.read();if(Ye!==null)yield Ye;else{if(ge)throw ge;if(ge===null)return;await new l(me)}}}catch(Ye){throw ge=N(ge,Ye),ge}finally{(ge||P?.destroyOnReturn!==!1)&&(ge===void 0||O._readableState.autoDestroy)?h.destroyer(O,null):(O.off("readable",me),qe())}}i(ie.prototype,{readable:{__proto__:null,get(){const O=this._readableState;return!!O&&O.readable!==!1&&!O.destroyed&&!O.errorEmitted&&!O.endEmitted},set(O){this._readableState&&(this._readableState.readable=!!O)}},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(O){this._readableState&&(this._readableState.flowing=O)}},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(O){this._readableState&&(this._readableState.destroyed=O)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),i(fe.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[T]!==!1},set(O){this[T]=!!O}}}),ie._fromList=wa;function wa(O,P){if(P.length===0)return null;let be;return P.objectMode?be=P.buffer.shift():!O||O>=P.length?(P.decoder?be=P.buffer.join(""):P.buffer.length===1?be=P.buffer.first():be=P.buffer.concat(P.length),P.buffer.clear()):be=P.buffer.consume(O,P.decoder),be}function Bn(O){const P=O._readableState;v("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,n.nextTick(vc,P,O))}function vc(O,P){if(v("endReadableNT",O.endEmitted,O.length),!O.errored&&!O.closeEmitted&&!O.endEmitted&&O.length===0){if(O.endEmitted=!0,P.emit("end"),P.writable&&P.allowHalfOpen===!1)n.nextTick(yc,P);else if(O.autoDestroy){const be=P._writableState;(!be||be.autoDestroy&&(be.finished||be.writable===!1))&&P.destroy()}}}function yc(O){O.writable&&!O.writableEnded&&!O.destroyed&&O.end()}ie.from=function(O,P){return C(ie,O,P)};let qn;function xa(){return qn===void 0&&(qn={}),qn}return ie.fromWeb=function(O,P){return xa().newStreamReadableFromReadableStream(O,P)},ie.toWeb=function(O,P){return xa().newReadableStreamFromStreamReadable(O,P)},ie.wrap=function(O,P){var be,me;return new ie({objectMode:(be=(me=O.readableObjectMode)!==null&&me!==void 0?me:O.objectMode)!==null&&be!==void 0?be:!0,...P,destroy(ge,qe){h.destroyer(O,ge),qe(ge)}}).wrap(O)},lo}var co,ts;function Ui(){if(ts)return co;ts=1;const n=Ht(),{ArrayPrototypeSlice:e,Error:t,FunctionPrototypeSymbolHasInstance:r,ObjectDefineProperty:o,ObjectDefineProperties:i,ObjectSetPrototypeOf:a,StringPrototypeToLowerCase:s,Symbol:l,SymbolHasInstance:u}=Oe();co=Y,Y.WritableState=j;const{EventEmitter:f}=Nn(),m=zi().Stream,{Buffer:y}=vt(),b=dr(),{addAbortSignal:g}=jn(),{getHighWaterMark:x,getDefaultHighWaterMark:_}=Tn(),{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:v,ERR_STREAM_CANNOT_PIPE:c,ERR_STREAM_DESTROYED:h,ERR_STREAM_ALREADY_FINISHED:R,ERR_STREAM_NULL_VALUES:D,ERR_STREAM_WRITE_AFTER_END:N,ERR_UNKNOWN_ENCODING:B}=He().codes,{errorOrDestroy:I}=b;a(Y.prototype,m.prototype),a(Y,m);function M(){}const q=l("kOnFinished");function j(L,G,re){typeof re!="boolean"&&(re=G instanceof mt()),this.objectMode=!!(L&&L.objectMode),re&&(this.objectMode=this.objectMode||!!(L&&L.writableObjectMode)),this.highWaterMark=L?x(this,L,"writableHighWaterMark",re):_(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const de=!!(L&&L.decodeStrings===!1);this.decodeStrings=!de,this.defaultEncoding=L&&L.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=w.bind(void 0,G),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,A(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!L||L.emitClose!==!1,this.autoDestroy=!L||L.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[q]=[]}function A(L){L.buffered=[],L.bufferedIndex=0,L.allBuffers=!0,L.allNoop=!0}j.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},o(j.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Y(L){const G=this instanceof mt();if(!G&&!r(Y,this))return new Y(L);this._writableState=new j(L,this,G),L&&(typeof L.write=="function"&&(this._write=L.write),typeof L.writev=="function"&&(this._writev=L.writev),typeof L.destroy=="function"&&(this._destroy=L.destroy),typeof L.final=="function"&&(this._final=L.final),typeof L.construct=="function"&&(this._construct=L.construct),L.signal&&g(L.signal,this)),m.call(this,L),b.construct(this,()=>{const re=this._writableState;re.writing||ae(this,re),F(this,re)})}o(Y,u,{__proto__:null,value:function(L){return r(this,L)?!0:this!==Y?!1:L&&L._writableState instanceof j}}),Y.prototype.pipe=function(){I(this,new c)};function T(L,G,re,de){const ue=L._writableState;if(typeof re=="function")de=re,re=ue.defaultEncoding;else{if(!re)re=ue.defaultEncoding;else if(re!=="buffer"&&!y.isEncoding(re))throw new B(re);typeof de!="function"&&(de=M)}if(G===null)throw new D;if(!ue.objectMode)if(typeof G=="string")ue.decodeStrings!==!1&&(G=y.from(G,re),re="buffer");else if(G instanceof y)re="buffer";else if(m._isUint8Array(G))G=m._uint8ArrayToBuffer(G),re="buffer";else throw new k("chunk",["string","Buffer","Uint8Array"],G);let he;return ue.ending?he=new N:ue.destroyed&&(he=new h("write")),he?(n.nextTick(de,he),I(L,he,!0),he):(ue.pendingcb++,ee(L,ue,G,re,de))}Y.prototype.write=function(L,G,re){return T(this,L,G,re)===!0},Y.prototype.cork=function(){this._writableState.corked++},Y.prototype.uncork=function(){const L=this._writableState;L.corked&&(L.corked--,L.writing||ae(this,L))},Y.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=s(G)),!y.isEncoding(G))throw new B(G);return this._writableState.defaultEncoding=G,this};function ee(L,G,re,de,ue){const he=G.objectMode?1:re.length;G.length+=he;const X=G.length<G.highWaterMark;return X||(G.needDrain=!0),G.writing||G.corked||G.errored||!G.constructed?(G.buffered.push({chunk:re,encoding:de,callback:ue}),G.allBuffers&&de!=="buffer"&&(G.allBuffers=!1),G.allNoop&&ue!==M&&(G.allNoop=!1)):(G.writelen=he,G.writecb=ue,G.writing=!0,G.sync=!0,L._write(re,de,G.onwrite),G.sync=!1),X&&!G.errored&&!G.destroyed}function C(L,G,re,de,ue,he,X){G.writelen=de,G.writecb=X,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new h("write")):re?L._writev(ue,G.onwrite):L._write(ue,he,G.onwrite),G.sync=!1}function K(L,G,re,de){--G.pendingcb,de(re),W(G),I(L,re)}function w(L,G){const re=L._writableState,de=re.sync,ue=re.writecb;if(typeof ue!="function"){I(L,new v);return}re.writing=!1,re.writecb=null,re.length-=re.writelen,re.writelen=0,G?(G.stack,re.errored||(re.errored=G),L._readableState&&!L._readableState.errored&&(L._readableState.errored=G),de?n.nextTick(K,L,re,G,ue):K(L,re,G,ue)):(re.buffered.length>re.bufferedIndex&&ae(L,re),de?re.afterWriteTickInfo!==null&&re.afterWriteTickInfo.cb===ue?re.afterWriteTickInfo.count++:(re.afterWriteTickInfo={count:1,cb:ue,stream:L,state:re},n.nextTick(z,re.afterWriteTickInfo)):Q(L,re,1,ue))}function z({stream:L,state:G,count:re,cb:de}){return G.afterWriteTickInfo=null,Q(L,G,re,de)}function Q(L,G,re,de){for(!G.ending&&!L.destroyed&&G.length===0&&G.needDrain&&(G.needDrain=!1,L.emit("drain"));re-- >0;)G.pendingcb--,de();G.destroyed&&W(G),F(L,G)}function W(L){if(L.writing)return;for(let ue=L.bufferedIndex;ue<L.buffered.length;++ue){var G;const{chunk:he,callback:X}=L.buffered[ue],le=L.objectMode?1:he.length;L.length-=le,X((G=L.errored)!==null&&G!==void 0?G:new h("write"))}const re=L[q].splice(0);for(let ue=0;ue<re.length;ue++){var de;re[ue]((de=L.errored)!==null&&de!==void 0?de:new h("end"))}A(L)}function ae(L,G){if(G.corked||G.bufferProcessing||G.destroyed||!G.constructed)return;const{buffered:re,bufferedIndex:de,objectMode:ue}=G,he=re.length-de;if(!he)return;let X=de;if(G.bufferProcessing=!0,he>1&&L._writev){G.pendingcb-=he-1;const le=G.allNoop?M:ie=>{for(let Se=X;Se<re.length;++Se)re[Se].callback(ie)},fe=G.allNoop&&X===0?re:e(re,X);fe.allBuffers=G.allBuffers,C(L,G,!0,G.length,fe,"",le),A(G)}else{do{const{chunk:le,encoding:fe,callback:ie}=re[X];re[X++]=null;const Se=ue?1:le.length;C(L,G,!1,Se,le,fe,ie)}while(X<re.length&&!G.writing);X===re.length?A(G):X>256?(re.splice(0,X),G.bufferedIndex=0):G.bufferedIndex=X}G.bufferProcessing=!1}Y.prototype._write=function(L,G,re){if(this._writev)this._writev([{chunk:L,encoding:G}],re);else throw new E("_write()")},Y.prototype._writev=null,Y.prototype.end=function(L,G,re){const de=this._writableState;typeof L=="function"?(re=L,L=null,G=null):typeof G=="function"&&(re=G,G=null);let ue;if(L!=null){const he=T(this,L,G);he instanceof t&&(ue=he)}return de.corked&&(de.corked=1,this.uncork()),ue||(!de.errored&&!de.ending?(de.ending=!0,F(this,de,!0),de.ended=!0):de.finished?ue=new R("end"):de.destroyed&&(ue=new h("end"))),typeof re=="function"&&(ue||de.finished?n.nextTick(re,ue):de[q].push(re)),this};function U(L){return L.ending&&!L.destroyed&&L.constructed&&L.length===0&&!L.errored&&L.buffered.length===0&&!L.finished&&!L.writing&&!L.errorEmitted&&!L.closeEmitted}function H(L,G){let re=!1;function de(ue){if(re){I(L,ue??v());return}if(re=!0,G.pendingcb--,ue){const he=G[q].splice(0);for(let X=0;X<he.length;X++)he[X](ue);I(L,ue,G.sync)}else U(G)&&(G.prefinished=!0,L.emit("prefinish"),G.pendingcb++,n.nextTick(Z,L,G))}G.sync=!0,G.pendingcb++;try{L._final(de)}catch(ue){de(ue)}G.sync=!1}function V(L,G){!G.prefinished&&!G.finalCalled&&(typeof L._final=="function"&&!G.destroyed?(G.finalCalled=!0,H(L,G)):(G.prefinished=!0,L.emit("prefinish")))}function F(L,G,re){U(G)&&(V(L,G),G.pendingcb===0&&(re?(G.pendingcb++,n.nextTick((de,ue)=>{U(ue)?Z(de,ue):ue.pendingcb--},L,G)):U(G)&&(G.pendingcb++,Z(L,G))))}function Z(L,G){G.pendingcb--,G.finished=!0;const re=G[q].splice(0);for(let de=0;de<re.length;de++)re[de]();if(L.emit("finish"),G.autoDestroy){const de=L._readableState;(!de||de.autoDestroy&&(de.endEmitted||de.readable===!1))&&L.destroy()}}i(Y.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(L){this._writableState&&(this._writableState.destroyed=L)}},writable:{__proto__:null,get(){const L=this._writableState;return!!L&&L.writable!==!1&&!L.destroyed&&!L.errored&&!L.ending&&!L.ended},set(L){this._writableState&&(this._writableState.writable=!!L)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){const L=this._writableState;return L?!L.destroyed&&!L.ending&&L.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});const te=b.destroy;Y.prototype.destroy=function(L,G){const re=this._writableState;return!re.destroyed&&(re.bufferedIndex<re.buffered.length||re[q].length)&&n.nextTick(W,re),te.call(this,L,G),this},Y.prototype._undestroy=b.undestroy,Y.prototype._destroy=function(L,G){G(L)},Y.prototype[f.captureRejectionSymbol]=function(L){this.destroy(L)};let ce;function pe(){return ce===void 0&&(ce={}),ce}return Y.fromWeb=function(L,G){return pe().newStreamWritableFromWritableStream(L,G)},Y.toWeb=function(L){return pe().newWritableStreamFromStreamWritable(L)},co}var uo,rs;function Gc(){if(rs)return uo;rs=1;const n=Ht(),e=vt(),{isReadable:t,isWritable:r,isIterable:o,isNodeStream:i,isReadableNodeStream:a,isWritableNodeStream:s,isDuplexNodeStream:l,isReadableStream:u,isWritableStream:f}=yt(),m=Nt(),{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:g}}=He(),{destroyer:x}=dr(),_=mt(),k=An(),E=Ui(),{createDeferredPromise:v}=We(),c=vd(),h=globalThis.Blob||e.Blob,R=typeof h<"u"?function(j){return j instanceof h}:function(j){return!1},D=globalThis.AbortController||Gr().AbortController,{FunctionPrototypeCall:N}=Oe();class B extends _{constructor(j){super(j),j?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),j?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}uo=function q(j,A){if(l(j))return j;if(a(j))return M({readable:j});if(s(j))return M({writable:j});if(i(j))return M({writable:!1,readable:!1});if(u(j))return M({readable:k.fromWeb(j)});if(f(j))return M({writable:E.fromWeb(j)});if(typeof j=="function"){const{value:T,write:ee,final:C,destroy:K}=I(j);if(o(T))return c(B,T,{objectMode:!0,write:ee,final:C,destroy:K});const w=T?.then;if(typeof w=="function"){let z;const Q=N(w,T,W=>{if(W!=null)throw new g("nully","body",W)},W=>{x(z,W)});return z=new B({objectMode:!0,readable:!1,write:ee,final(W){C(async()=>{try{await Q,n.nextTick(W,null)}catch(ae){n.nextTick(W,ae)}})},destroy:K})}throw new g("Iterable, AsyncIterable or AsyncFunction",A,T)}if(R(j))return q(j.arrayBuffer());if(o(j))return c(B,j,{objectMode:!0,writable:!1});if(u(j?.readable)&&f(j?.writable))return B.fromWeb(j);if(typeof j?.writable=="object"||typeof j?.readable=="object"){const T=j!=null&&j.readable?a(j?.readable)?j?.readable:q(j.readable):void 0,ee=j!=null&&j.writable?s(j?.writable)?j?.writable:q(j.writable):void 0;return M({readable:T,writable:ee})}const Y=j?.then;if(typeof Y=="function"){let T;return N(Y,j,ee=>{ee!=null&&T.push(ee),T.push(null)},ee=>{x(T,ee)}),T=new B({objectMode:!0,writable:!1,read(){}})}throw new b(A,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],j)};function I(q){let{promise:j,resolve:A}=v();const Y=new D,T=Y.signal;return{value:q(async function*(){for(;;){const C=j;j=null;const{chunk:K,done:w,cb:z}=await C;if(n.nextTick(z),w)return;if(T.aborted)throw new y(void 0,{cause:T.reason});({promise:j,resolve:A}=v()),yield K}}(),{signal:T}),write(C,K,w){const z=A;A=null,z({chunk:C,done:!1,cb:w})},final(C){const K=A;A=null,K({done:!0,cb:C})},destroy(C,K){Y.abort(),K(C)}}}function M(q){const j=q.readable&&typeof q.readable.read!="function"?k.wrap(q.readable):q.readable,A=q.writable;let Y=!!t(j),T=!!r(A),ee,C,K,w,z;function Q(W){const ae=w;w=null,ae?ae(W):W&&z.destroy(W)}return z=new B({readableObjectMode:!!(j!=null&&j.readableObjectMode),writableObjectMode:!!(A!=null&&A.writableObjectMode),readable:Y,writable:T}),T&&(m(A,W=>{T=!1,W&&x(j,W),Q(W)}),z._write=function(W,ae,U){A.write(W,ae)?U():ee=U},z._final=function(W){A.end(),C=W},A.on("drain",function(){if(ee){const W=ee;ee=null,W()}}),A.on("finish",function(){if(C){const W=C;C=null,W()}})),Y&&(m(j,W=>{Y=!1,W&&x(j,W),Q(W)}),j.on("readable",function(){if(K){const W=K;K=null,W()}}),j.on("end",function(){z.push(null)}),z._read=function(){for(;;){const W=j.read();if(W===null){K=z._read;return}if(!z.push(W))return}}),z._destroy=function(W,ae){!W&&w!==null&&(W=new y),K=null,ee=null,C=null,w===null?ae(W):(w=ae,x(A,W),x(j,W))},z}return uo}var po,ns;function mt(){if(ns)return po;ns=1;const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:t,ObjectSetPrototypeOf:r}=Oe();po=a;const o=An(),i=Ui();r(a.prototype,o.prototype),r(a,o);{const f=t(i.prototype);for(let m=0;m<f.length;m++){const y=f[m];a.prototype[y]||(a.prototype[y]=i.prototype[y])}}function a(f){if(!(this instanceof a))return new a(f);o.call(this,f),i.call(this,f),f?(this.allowHalfOpen=f.allowHalfOpen!==!1,f.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),f.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}n(a.prototype,{writable:{__proto__:null,...e(i.prototype,"writable")},writableHighWaterMark:{__proto__:null,...e(i.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...e(i.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...e(i.prototype,"writableBuffer")},writableLength:{__proto__:null,...e(i.prototype,"writableLength")},writableFinished:{__proto__:null,...e(i.prototype,"writableFinished")},writableCorked:{__proto__:null,...e(i.prototype,"writableCorked")},writableEnded:{__proto__:null,...e(i.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...e(i.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(f){this._readableState&&this._writableState&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}}});let s;function l(){return s===void 0&&(s={}),s}a.fromWeb=function(f,m){return l().newStreamDuplexFromReadableWritablePair(f,m)},a.toWeb=function(f){return l().newReadableWritablePairFromDuplex(f)};let u;return a.from=function(f){return u||(u=Gc()),u(f,"body")},po}var fo,os;function yd(){if(os)return fo;os=1;const{ObjectSetPrototypeOf:n,Symbol:e}=Oe();fo=a;const{ERR_METHOD_NOT_IMPLEMENTED:t}=He().codes,r=mt(),{getHighWaterMark:o}=Tn();n(a.prototype,r.prototype),n(a,r);const i=e("kCallback");function a(u){if(!(this instanceof a))return new a(u);const f=u?o(this,u,"readableHighWaterMark",!0):null;f===0&&(u={...u,highWaterMark:null,readableHighWaterMark:f,writableHighWaterMark:u.writableHighWaterMark||0}),r.call(this,u),this._readableState.sync=!1,this[i]=null,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function s(u){typeof this._flush=="function"&&!this.destroyed?this._flush((f,m)=>{if(f){u?u(f):this.destroy(f);return}m!=null&&this.push(m),this.push(null),u&&u()}):(this.push(null),u&&u())}function l(){this._final!==s&&s.call(this)}return a.prototype._final=s,a.prototype._transform=function(u,f,m){throw new t("_transform()")},a.prototype._write=function(u,f,m){const y=this._readableState,b=this._writableState,g=y.length;this._transform(u,f,(x,_)=>{if(x){m(x);return}_!=null&&this.push(_),b.ended||g===y.length||y.length<y.highWaterMark?m():this[i]=m})},a.prototype._read=function(){if(this[i]){const u=this[i];this[i]=null,u()}},fo}var ho,is;function wd(){if(is)return ho;is=1;const{ObjectSetPrototypeOf:n}=Oe();ho=t;const e=yd();n(t.prototype,e.prototype),n(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,o,i){i(null,r)},ho}var bo,as;function Hi(){if(as)return bo;as=1;const n=Ht(),{ArrayIsArray:e,Promise:t,SymbolAsyncIterator:r,SymbolDispose:o}=Oe(),i=Nt(),{once:a}=We(),s=dr(),l=mt(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:x}=He(),{validateFunction:_,validateAbortSignal:k}=Xr(),{isIterable:E,isReadable:v,isReadableNodeStream:c,isNodeStream:h,isTransformStream:R,isWebStream:D,isReadableStream:N,isReadableFinished:B}=yt(),I=globalThis.AbortController||Gr().AbortController;let M,q,j;function A(W,ae,U){let H=!1;W.on("close",()=>{H=!0});const V=i(W,{readable:ae,writable:U},F=>{H=!F});return{destroy:F=>{H||(H=!0,s.destroyer(W,F||new b("pipe")))},cleanup:V}}function Y(W){return _(W[W.length-1],"streams[stream.length - 1]"),W.pop()}function T(W){if(E(W))return W;if(c(W))return ee(W);throw new f("val",["Readable","Iterable","AsyncIterable"],W)}async function*ee(W){q||(q=An()),yield*q.prototype[r].call(W)}async function C(W,ae,U,{end:H}){let V,F=null;const Z=pe=>{if(pe&&(V=pe),F){const L=F;F=null,L()}},te=()=>new t((pe,L)=>{V?L(V):F=()=>{V?L(V):pe()}});ae.on("drain",Z);const ce=i(ae,{readable:!1},Z);try{ae.writableNeedDrain&&await te();for await(const pe of W)ae.write(pe)||await te();H&&(ae.end(),await te()),U()}catch(pe){U(V!==pe?u(V,pe):pe)}finally{ce(),ae.off("drain",Z)}}async function K(W,ae,U,{end:H}){R(ae)&&(ae=ae.writable);const V=ae.getWriter();try{for await(const F of W)await V.ready,V.write(F).catch(()=>{});await V.ready,H&&await V.close(),U()}catch(F){try{await V.abort(F),U(F)}catch(Z){U(Z)}}}function w(...W){return z(W,a(Y(W)))}function z(W,ae,U){if(W.length===1&&e(W[0])&&(W=W[0]),W.length<2)throw new y("streams");const H=new I,V=H.signal,F=U?.signal,Z=[];k(F,"options.signal");function te(){ue(new x)}j=j||We().addAbortListener;let ce;F&&(ce=j(F,te));let pe,L;const G=[];let re=0;function de(fe){ue(fe,--re===0)}function ue(fe,ie){var Se;if(fe&&(!pe||pe.code==="ERR_STREAM_PREMATURE_CLOSE")&&(pe=fe),!(!pe&&!ie)){for(;G.length;)G.shift()(pe);(Se=ce)===null||Se===void 0||Se[o](),H.abort(),ie&&(pe||Z.forEach(Be=>Be()),n.nextTick(ae,pe,L))}}let he;for(let fe=0;fe<W.length;fe++){const ie=W[fe],Se=fe<W.length-1,Be=fe>0,xe=Se||U?.end!==!1,Ue=fe===W.length-1;if(h(ie)){let S=function(d){d&&d.name!=="AbortError"&&d.code!=="ERR_STREAM_PREMATURE_CLOSE"&&de(d)};if(xe){const{destroy:d,cleanup:p}=A(ie,Se,Be);G.push(d),v(ie)&&Ue&&Z.push(p)}ie.on("error",S),v(ie)&&Ue&&Z.push(()=>{ie.removeListener("error",S)})}if(fe===0)if(typeof ie=="function"){if(he=ie({signal:V}),!E(he))throw new m("Iterable, AsyncIterable or Stream","source",he)}else E(ie)||c(ie)||R(ie)?he=ie:he=l.from(ie);else if(typeof ie=="function"){if(R(he)){var X;he=T((X=he)===null||X===void 0?void 0:X.readable)}else he=T(he);if(he=ie(he,{signal:V}),Se){if(!E(he,!0))throw new m("AsyncIterable",`transform[${fe-1}]`,he)}else{var le;M||(M=wd());const S=new M({objectMode:!0}),d=(le=he)===null||le===void 0?void 0:le.then;if(typeof d=="function")re++,d.call(he,J=>{L=J,J!=null&&S.write(J),xe&&S.end(),n.nextTick(de)},J=>{S.destroy(J),n.nextTick(de,J)});else if(E(he,!0))re++,C(he,S,de,{end:xe});else if(N(he)||R(he)){const J=he.readable||he;re++,C(J,S,de,{end:xe})}else throw new m("AsyncIterable or Promise","destination",he);he=S;const{destroy:p,cleanup:$}=A(he,!1,!0);G.push(p),Ue&&Z.push($)}}else if(h(ie)){if(c(he)){re+=2;const S=Q(he,ie,de,{end:xe});v(ie)&&Ue&&Z.push(S)}else if(R(he)||N(he)){const S=he.readable||he;re++,C(S,ie,de,{end:xe})}else if(E(he))re++,C(he,ie,de,{end:xe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],he);he=ie}else if(D(ie)){if(c(he))re++,K(T(he),ie,de,{end:xe});else if(N(he)||E(he))re++,K(he,ie,de,{end:xe});else if(R(he))re++,K(he.readable,ie,de,{end:xe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],he);he=ie}else he=l.from(ie)}return(V!=null&&V.aborted||F!=null&&F.aborted)&&n.nextTick(te),he}function Q(W,ae,U,{end:H}){let V=!1;if(ae.on("close",()=>{V||U(new g)}),W.pipe(ae,{end:!1}),H){let F=function(){V=!0,ae.end()};B(W)?n.nextTick(F):W.once("end",F)}else U();return i(W,{readable:!0,writable:!1},F=>{const Z=W._readableState;F&&F.code==="ERR_STREAM_PREMATURE_CLOSE"&&Z&&Z.ended&&!Z.errored&&!Z.errorEmitted?W.once("end",U).once("error",U):U(F)}),i(ae,{readable:!1,writable:!0},U)}return bo={pipelineImpl:z,pipeline:w},bo}var mo,ss;function xd(){if(ss)return mo;ss=1;const{pipeline:n}=Hi(),e=mt(),{destroyer:t}=dr(),{isNodeStream:r,isReadable:o,isWritable:i,isWebStream:a,isTransformStream:s,isWritableStream:l,isReadableStream:u}=yt(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:y}}=He(),b=Nt();return mo=function(...x){if(x.length===0)throw new y("streams");if(x.length===1)return e.from(x[0]);const _=[...x];if(typeof x[0]=="function"&&(x[0]=e.from(x[0])),typeof x[x.length-1]=="function"){const M=x.length-1;x[M]=e.from(x[M])}for(let M=0;M<x.length;++M)if(!(!r(x[M])&&!a(x[M]))){if(M<x.length-1&&!(o(x[M])||u(x[M])||s(x[M])))throw new m(`streams[${M}]`,_[M],"must be readable");if(M>0&&!(i(x[M])||l(x[M])||s(x[M])))throw new m(`streams[${M}]`,_[M],"must be writable")}let k,E,v,c,h;function R(M){const q=c;c=null,q?q(M):M?h.destroy(M):!I&&!B&&h.destroy()}const D=x[0],N=n(x,R),B=!!(i(D)||l(D)||s(D)),I=!!(o(N)||u(N)||s(N));if(h=new e({writableObjectMode:!!(D!=null&&D.writableObjectMode),readableObjectMode:!!(N!=null&&N.readableObjectMode),writable:B,readable:I}),B){if(r(D))h._write=function(q,j,A){D.write(q,j)?A():k=A},h._final=function(q){D.end(),E=q},D.on("drain",function(){if(k){const q=k;k=null,q()}});else if(a(D)){const j=(s(D)?D.writable:D).getWriter();h._write=async function(A,Y,T){try{await j.ready,j.write(A).catch(()=>{}),T()}catch(ee){T(ee)}},h._final=async function(A){try{await j.ready,j.close().catch(()=>{}),E=A}catch(Y){A(Y)}}}const M=s(N)?N.readable:N;b(M,()=>{if(E){const q=E;E=null,q()}})}if(I){if(r(N))N.on("readable",function(){if(v){const M=v;v=null,M()}}),N.on("end",function(){h.push(null)}),h._read=function(){for(;;){const M=N.read();if(M===null){v=h._read;return}if(!h.push(M))return}};else if(a(N)){const q=(s(N)?N.readable:N).getReader();h._read=async function(){for(;;)try{const{value:j,done:A}=await q.read();if(!h.push(j))return;if(A){h.push(null);return}}catch{return}}}}return h._destroy=function(M,q){!M&&c!==null&&(M=new f),v=null,k=null,E=null,c===null?q(M):(c=q,r(N)&&t(N,M))},h},mo}var ls;function Vc(){if(ls)return on;ls=1;const n=globalThis.AbortController||Gr().AbortController,{codes:{ERR_INVALID_ARG_VALUE:e,ERR_INVALID_ARG_TYPE:t,ERR_MISSING_ARGS:r,ERR_OUT_OF_RANGE:o},AbortError:i}=He(),{validateAbortSignal:a,validateInteger:s,validateObject:l}=Xr(),u=Oe().Symbol("kWeak"),f=Oe().Symbol("kResistStopPropagation"),{finished:m}=Nt(),y=xd(),{addAbortSignalNoValidate:b}=jn(),{isWritable:g,isNodeStream:x}=yt(),{deprecate:_}=We(),{ArrayPrototypePush:k,Boolean:E,MathFloor:v,Number:c,NumberIsNaN:h,Promise:R,PromiseReject:D,PromiseResolve:N,PromisePrototypeThen:B,Symbol:I}=Oe(),M=I("kEmpty"),q=I("kEof");function j(F,Z){if(Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal"),x(F)&&!g(F))throw new e("stream",F,"must be writable");const te=y(this,F);return Z!=null&&Z.signal&&b(Z.signal,te),te}function A(F,Z){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal");let te=1;Z?.concurrency!=null&&(te=v(Z.concurrency));let ce=te-1;return Z?.highWaterMark!=null&&(ce=v(Z.highWaterMark)),s(te,"options.concurrency",1),s(ce,"options.highWaterMark",0),ce+=te,(async function*(){const L=We().AbortSignalAny([Z?.signal].filter(E)),G=this,re=[],de={signal:L};let ue,he,X=!1,le=0;function fe(){X=!0,ie()}function ie(){le-=1,Se()}function Se(){he&&!X&&le<te&&re.length<ce&&(he(),he=null)}async function Be(){try{for await(let xe of G){if(X)return;if(L.aborted)throw new i;try{if(xe=F(xe,de),xe===M)continue;xe=N(xe)}catch(Ue){xe=D(Ue)}le+=1,B(xe,ie,fe),re.push(xe),ue&&(ue(),ue=null),!X&&(re.length>=ce||le>=te)&&await new R(Ue=>{he=Ue})}re.push(q)}catch(xe){const Ue=D(xe);B(Ue,ie,fe),re.push(Ue)}finally{X=!0,ue&&(ue(),ue=null)}}Be();try{for(;;){for(;re.length>0;){const xe=await re[0];if(xe===q)return;if(L.aborted)throw new i;xe!==M&&(yield xe),re.shift(),Se()}await new R(xe=>{ue=xe})}}finally{X=!0,he&&(he(),he=null)}}).call(this)}function Y(F=void 0){return F!=null&&l(F,"options"),F?.signal!=null&&a(F.signal,"options.signal"),(async function*(){let te=0;for await(const pe of this){var ce;if(F!=null&&(ce=F.signal)!==null&&ce!==void 0&&ce.aborted)throw new i({cause:F.signal.reason});yield[te++,pe]}}).call(this)}async function T(F,Z=void 0){for await(const te of w.call(this,F,Z))return!0;return!1}async function ee(F,Z=void 0){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);return!await T.call(this,async(...te)=>!await F(...te),Z)}async function C(F,Z){for await(const te of w.call(this,F,Z))return te}async function K(F,Z){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);async function te(ce,pe){return await F(ce,pe),M}for await(const ce of A.call(this,te,Z));}function w(F,Z){if(typeof F!="function")throw new t("fn",["Function","AsyncFunction"],F);async function te(ce,pe){return await F(ce,pe)?ce:M}return A.call(this,te,Z)}class z extends r{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function Q(F,Z,te){var ce;if(typeof F!="function")throw new t("reducer",["Function","AsyncFunction"],F);te!=null&&l(te,"options"),te?.signal!=null&&a(te.signal,"options.signal");let pe=arguments.length>1;if(te!=null&&(ce=te.signal)!==null&&ce!==void 0&&ce.aborted){const ue=new i(void 0,{cause:te.signal.reason});throw this.once("error",()=>{}),await m(this.destroy(ue)),ue}const L=new n,G=L.signal;if(te!=null&&te.signal){const ue={once:!0,[u]:this,[f]:!0};te.signal.addEventListener("abort",()=>L.abort(),ue)}let re=!1;try{for await(const ue of this){var de;if(re=!0,te!=null&&(de=te.signal)!==null&&de!==void 0&&de.aborted)throw new i;pe?Z=await F(Z,ue,{signal:G}):(Z=ue,pe=!0)}if(!re&&!pe)throw new z}finally{L.abort()}return Z}async function W(F){F!=null&&l(F,"options"),F?.signal!=null&&a(F.signal,"options.signal");const Z=[];for await(const ce of this){var te;if(F!=null&&(te=F.signal)!==null&&te!==void 0&&te.aborted)throw new i(void 0,{cause:F.signal.reason});k(Z,ce)}return Z}function ae(F,Z){const te=A.call(this,F,Z);return(async function*(){for await(const pe of te)yield*pe}).call(this)}function U(F){if(F=c(F),h(F))return 0;if(F<0)throw new o("number",">= 0",F);return F}function H(F,Z=void 0){return Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal"),F=U(F),(async function*(){var ce;if(Z!=null&&(ce=Z.signal)!==null&&ce!==void 0&&ce.aborted)throw new i;for await(const L of this){var pe;if(Z!=null&&(pe=Z.signal)!==null&&pe!==void 0&&pe.aborted)throw new i;F--<=0&&(yield L)}}).call(this)}function V(F,Z=void 0){return Z!=null&&l(Z,"options"),Z?.signal!=null&&a(Z.signal,"options.signal"),F=U(F),(async function*(){var ce;if(Z!=null&&(ce=Z.signal)!==null&&ce!==void 0&&ce.aborted)throw new i;for await(const L of this){var pe;if(Z!=null&&(pe=Z.signal)!==null&&pe!==void 0&&pe.aborted)throw new i;if(F-- >0&&(yield L),F<=0)return}}).call(this)}return on.streamReturningOperators={asIndexedPairs:_(Y,"readable.asIndexedPairs will be removed in a future version."),drop:H,filter:w,flatMap:ae,map:A,take:V,compose:j},on.promiseReturningOperators={every:ee,forEach:K,reduce:Q,toArray:W,some:T,find:C},on}var go,ds;function _d(){if(ds)return go;ds=1;const{ArrayPrototypePop:n,Promise:e}=Oe(),{isIterable:t,isNodeStream:r,isWebStream:o}=yt(),{pipelineImpl:i}=Hi(),{finished:a}=Nt();kd();function s(...l){return new e((u,f)=>{let m,y;const b=l[l.length-1];if(b&&typeof b=="object"&&!r(b)&&!t(b)&&!o(b)){const g=n(l);m=g.signal,y=g.end}i(l,(g,x)=>{g?f(g):u(x)},{signal:m,end:y})})}return go={finished:a,pipeline:s},go}var cs;function kd(){if(cs)return Wn.exports;cs=1;const{Buffer:n}=vt(),{ObjectDefineProperty:e,ObjectKeys:t,ReflectApply:r}=Oe(),{promisify:{custom:o}}=We(),{streamReturningOperators:i,promiseReturningOperators:a}=Vc(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:s}}=He(),l=xd(),{setDefaultHighWaterMark:u,getDefaultHighWaterMark:f}=Tn(),{pipeline:m}=Hi(),{destroyer:y}=dr(),b=Nt(),g=_d(),x=yt(),_=Wn.exports=zi().Stream;_.isDestroyed=x.isDestroyed,_.isDisturbed=x.isDisturbed,_.isErrored=x.isErrored,_.isReadable=x.isReadable,_.isWritable=x.isWritable,_.Readable=An();for(const E of t(i)){let c=function(...h){if(new.target)throw s();return _.Readable.from(r(v,this,h))};const v=i[E];e(c,"name",{__proto__:null,value:v.name}),e(c,"length",{__proto__:null,value:v.length}),e(_.Readable.prototype,E,{__proto__:null,value:c,enumerable:!1,configurable:!0,writable:!0})}for(const E of t(a)){let c=function(...h){if(new.target)throw s();return r(v,this,h)};const v=a[E];e(c,"name",{__proto__:null,value:v.name}),e(c,"length",{__proto__:null,value:v.length}),e(_.Readable.prototype,E,{__proto__:null,value:c,enumerable:!1,configurable:!0,writable:!0})}_.Writable=Ui(),_.Duplex=mt(),_.Transform=yd(),_.PassThrough=wd(),_.pipeline=m;const{addAbortSignal:k}=jn();return _.addAbortSignal=k,_.finished=b,_.destroy=y,_.compose=l,_.setDefaultHighWaterMark=u,_.getDefaultHighWaterMark=f,e(_,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return g}}),e(m,o,{__proto__:null,enumerable:!0,get(){return g.pipeline}}),e(b,o,{__proto__:null,enumerable:!0,get(){return g.finished}}),_.Stream=_,_._isUint8Array=function(v){return v instanceof Uint8Array},_._uint8ArrayToBuffer=function(v){return n.from(v.buffer,v.byteOffset,v.byteLength)},Wn.exports}var us;function Wc(){return us||(us=1,function(n){const e=kd(),t=_d(),r=e.Readable.destroy;n.exports=e.Readable,n.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,n.exports._isUint8Array=e._isUint8Array,n.exports.isDisturbed=e.isDisturbed,n.exports.isErrored=e.isErrored,n.exports.isReadable=e.isReadable,n.exports.Readable=e.Readable,n.exports.Writable=e.Writable,n.exports.Duplex=e.Duplex,n.exports.Transform=e.Transform,n.exports.PassThrough=e.PassThrough,n.exports.addAbortSignal=e.addAbortSignal,n.exports.finished=e.finished,n.exports.destroy=e.destroy,n.exports.destroy=r,n.exports.pipeline=e.pipeline,n.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),n.exports.Stream=e.Stream,n.exports.default=n.exports}(Vn)),Vn.exports}var Sd=Wc();const vo=Symbol("iter");function qr(n,e,t=4){if(t===0)return Object.assign(n,e);for(const r in e)n[r]=qr(n[r]||Object.create(null),e[r],t-1);return n}function Ed(n,e,t=4){let r=!1;for(const o in n)if(o in e){const i=t===0?null:Ed(n[o],e[o],t-1);if(i!==!1)r=r||Object.create(null),r[o]=i;else if(t===3)return!1}return r}function Id(n,e,t=4){let r=!1;for(const o in n)if(!(o in e))r=r||Object.create(null),r[o]=t===0?null:qr({},n[o],t-1);else if(t!==0){const i=Id(n[o],e[o],t-1);if(i!==!1)r=r||Object.create(null),r[o]=i;else if(t===3)return!1}return r}class Jc{constructor(e={}){this._id=1,this._ids=Object.create(null),this._ids[""]=1,this._entities=Object.create(null),this._entities[1]="",this._blankNodeIndex=0,this._factory=e.factory||_e}_termFromId(e){if(e[0]==="."){const t=this._entities,r=e.split(".");return this._factory.quad(this._termFromId(t[r[1]]),this._termFromId(t[r[2]]),this._termFromId(t[r[3]]),r[4]&&this._termFromId(t[r[4]]))}return Dr(e,this._factory)}_termToNumericId(e){if(e.termType==="Quad"){const t=this._termToNumericId(e.subject),r=this._termToNumericId(e.predicate),o=this._termToNumericId(e.object);let i;return t&&r&&o&&(Ni(e.graph)||(i=this._termToNumericId(e.graph)))&&this._ids[i?`.${t}.${r}.${o}.${i}`:`.${t}.${r}.${o}`]}return this._ids[er(e)]}_termToNewNumericId(e){const t=e&&e.termType==="Quad"?`.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Ni(e.graph)?"":`.${this._termToNewNumericId(e.graph)}`}`:er(e);return this._ids[t]||(this._ids[this._entities[++this._id]=t]=this._id)}createBlankNode(e){let t,r;if(e)for(t=e=`_:${e}`,r=1;this._ids[t];)t=e+r++;else do t=`_:b${this._blankNodeIndex++}`;while(this._ids[t]);return this._ids[t]=++this._id,this._entities[this._id]=t,this._factory.blankNode(t.substr(2))}}class Fe{constructor(e,t){this._size=0,this._graphs=Object.create(null),!t&&e&&!e[0]&&typeof e.match!="function"&&(t=e,e=null),t=t||{},this._factory=t.factory||_e,this._entityIndex=t.entityIndex||new Jc({factory:this._factory}),this._entities=this._entityIndex._entities,this._termFromId=this._entityIndex._termFromId.bind(this._entityIndex),this._termToNumericId=this._entityIndex._termToNumericId.bind(this._entityIndex),this._termToNewNumericId=this._entityIndex._termToNewNumericId.bind(this._entityIndex),e&&this.addAll(e)}get size(){let e=this._size;if(e!==null)return e;e=0;const t=this._graphs;let r,o;for(const i in t)for(const a in r=t[i].subjects)for(const s in o=r[a])e+=Object.keys(o[s]).length;return this._size=e}_addToIndex(e,t,r,o){const i=e[t]||(e[t]={}),a=i[r]||(i[r]={}),s=o in a;return s||(a[o]=null),!s}_removeFromIndex(e,t,r,o){const i=e[t],a=i[r];delete a[o];for(const s in a)return;delete i[r];for(const s in i)return;delete e[t]}*_findInIndex(e,t,r,o,i,a,s,l){let u,f,m;const y=this._entities,b=this._termFromId(y[l]),g={subject:null,predicate:null,object:null};t&&((u=e,e={})[t]=u[t]);for(const x in e)if(f=e[x]){g[i]=this._termFromId(y[x]),r&&((u=f,f={})[r]=u[r]);for(const _ in f)if(m=f[_]){g[a]=this._termFromId(y[_]);const k=o?o in m?[o]:[]:Object.keys(m);for(let E=0;E<k.length;E++)g[s]=this._termFromId(y[k[E]]),yield this._factory.quad(g.subject,g.predicate,g.object,b)}}}_loop(e,t){for(const r in e)t(r)}_loopByKey0(e,t,r){let o,i;if(o=e[t])for(i in o)r(i)}_loopByKey1(e,t,r){let o,i;for(o in e)i=e[o],i[t]&&r(o)}_loopBy2Keys(e,t,r,o){let i,a,s;if((i=e[t])&&(a=i[r]))for(s in a)o(s)}_countInIndex(e,t,r,o){let i=0,a,s,l;t&&((a=e,e={})[t]=a[t]);for(const u in e)if(s=e[u]){r&&((a=s,s={})[r]=a[r]);for(const f in s)(l=s[f])&&(o?o in l&&i++:i+=Object.keys(l).length)}return i}_getGraphs(e){return e=e===""?1:e&&(this._termToNumericId(e)||-1),typeof e!="number"?this._graphs:{[e]:this._graphs[e]}}_uniqueEntities(e){const t=Object.create(null);return r=>{r in t||(t[r]=!0,e(this._termFromId(this._entities[r],this._factory)))}}add(e){return this.addQuad(e),this}addQuad(e,t,r,o){t||(o=e.graph,r=e.object,t=e.predicate,e=e.subject),o=o?this._termToNewNumericId(o):1;let i=this._graphs[o];return i||(i=this._graphs[o]={subjects:{},predicates:{},objects:{}},Object.freeze(i)),e=this._termToNewNumericId(e),t=this._termToNewNumericId(t),r=this._termToNewNumericId(r),this._addToIndex(i.subjects,e,t,r)?(this._addToIndex(i.predicates,t,r,e),this._addToIndex(i.objects,r,e,t),this._size=null,!0):!1}addQuads(e){for(let t=0;t<e.length;t++)this.addQuad(e[t])}delete(e){return this.removeQuad(e),this}has(e,t,r,o){return e&&e.subject&&({subject:e,predicate:t,object:r,graph:o}=e),!this.readQuads(e,t,r,o).next().done}import(e){return e.on("data",t=>{this.addQuad(t)}),e}removeQuad(e,t,r,o){t||({subject:e,predicate:t,object:r,graph:o}=e),o=o?this._termToNumericId(o):1;const i=this._graphs;let a,s,l;if(!(e=e&&this._termToNumericId(e))||!(t=t&&this._termToNumericId(t))||!(r=r&&this._termToNumericId(r))||!(a=i[o])||!(s=a.subjects[e])||!(l=s[t])||!(r in l))return!1;this._removeFromIndex(a.subjects,e,t,r),this._removeFromIndex(a.predicates,t,r,e),this._removeFromIndex(a.objects,r,e,t),this._size!==null&&this._size--;for(e in a.subjects)return!0;return delete i[o],!0}removeQuads(e){for(let t=0;t<e.length;t++)this.removeQuad(e[t])}remove(e){return e.on("data",t=>{this.removeQuad(t)}),e}removeMatches(e,t,r,o){const i=new Sd.Readable({objectMode:!0}),a=this.readQuads(e,t,r,o);return i._read=s=>{for(;--s>=0;){const{done:l,value:u}=a.next();if(l){i.push(null);return}i.push(u)}},this.remove(i)}deleteGraph(e){return this.removeMatches(null,null,null,e)}getQuads(e,t,r,o){return[...this.readQuads(e,t,r,o)]}*readQuads(e,t,r,o){const i=this._getGraphs(o);let a,s,l,u;if(!(e&&!(s=this._termToNumericId(e))||t&&!(l=this._termToNumericId(t))||r&&!(u=this._termToNumericId(r))))for(const f in i)(a=i[f])&&(s?u?yield*this._findInIndex(a.objects,u,s,l,"object","subject","predicate",f):yield*this._findInIndex(a.subjects,s,l,null,"subject","predicate","object",f):l?yield*this._findInIndex(a.predicates,l,u,null,"predicate","object","subject",f):u?yield*this._findInIndex(a.objects,u,null,null,"object","subject","predicate",f):yield*this._findInIndex(a.subjects,null,null,null,"subject","predicate","object",f))}match(e,t,r,o){return new kt(this,e,t,r,o,{entityIndex:this._entityIndex})}countQuads(e,t,r,o){const i=this._getGraphs(o);let a=0,s,l,u,f;if(e&&!(l=this._termToNumericId(e))||t&&!(u=this._termToNumericId(t))||r&&!(f=this._termToNumericId(r)))return 0;for(const m in i)(s=i[m])&&(e?r?a+=this._countInIndex(s.objects,f,l,u):a+=this._countInIndex(s.subjects,l,u,f):t?a+=this._countInIndex(s.predicates,u,f,l):a+=this._countInIndex(s.objects,f,l,u));return a}forEach(e,t,r,o,i){this.some(a=>(e(a,this),!1),t,r,o,i)}every(e,t,r,o,i){return!this.some(a=>!e(a,this),t,r,o,i)}some(e,t,r,o,i){for(const a of this.readQuads(t,r,o,i))if(e(a,this))return!0;return!1}getSubjects(e,t,r){const o=[];return this.forSubjects(i=>{o.push(i)},e,t,r),o}forSubjects(e,t,r,o){const i=this._getGraphs(o);let a,s,l;if(e=this._uniqueEntities(e),!(t&&!(s=this._termToNumericId(t))||r&&!(l=this._termToNumericId(r))))for(o in i)(a=i[o])&&(s?l?this._loopBy2Keys(a.predicates,s,l,e):this._loopByKey1(a.subjects,s,e):l?this._loopByKey0(a.objects,l,e):this._loop(a.subjects,e))}getPredicates(e,t,r){const o=[];return this.forPredicates(i=>{o.push(i)},e,t,r),o}forPredicates(e,t,r,o){const i=this._getGraphs(o);let a,s,l;if(e=this._uniqueEntities(e),!(t&&!(s=this._termToNumericId(t))||r&&!(l=this._termToNumericId(r))))for(o in i)(a=i[o])&&(s?l?this._loopBy2Keys(a.objects,l,s,e):this._loopByKey0(a.subjects,s,e):l?this._loopByKey1(a.predicates,l,e):this._loop(a.predicates,e))}getObjects(e,t,r){const o=[];return this.forObjects(i=>{o.push(i)},e,t,r),o}forObjects(e,t,r,o){const i=this._getGraphs(o);let a,s,l;if(e=this._uniqueEntities(e),!(t&&!(s=this._termToNumericId(t))||r&&!(l=this._termToNumericId(r))))for(o in i)(a=i[o])&&(s?l?this._loopBy2Keys(a.subjects,s,l,e):this._loopByKey1(a.objects,s,e):l?this._loopByKey0(a.predicates,l,e):this._loop(a.objects,e))}getGraphs(e,t,r){const o=[];return this.forGraphs(i=>{o.push(i)},e,t,r),o}forGraphs(e,t,r,o){for(const i in this._graphs)this.some(a=>(e(a.graph),!0),t,r,o,this._termFromId(this._entities[i]))}createBlankNode(e){return this._entityIndex.createBlankNode(e)}extractLists({remove:e=!1,ignoreErrors:t=!1}={}){const r={},o=t?()=>!0:(s,l)=>{throw new Error(`${s.value} ${l}`)},i=this.getQuads(null,Pe.rdf.rest,Pe.rdf.nil,null),a=e?[...i]:[];return i.forEach(s=>{const l=[];let u=!1,f,m;const y=s.graph;let b=s.subject;for(;b&&!u;){const g=this.getQuads(null,null,b,null),x=this.getQuads(b,null,null,null);let _,k=null,E=null,v=null;for(let c=0;c<x.length&&!u;c++)_=x[c],_.graph.equals(y)?f?u=o(b,"has non-list arcs out"):_.predicate.value===Pe.rdf.first?k?u=o(b,"has multiple rdf:first arcs"):a.push(k=_):_.predicate.value===Pe.rdf.rest?E?u=o(b,"has multiple rdf:rest arcs"):a.push(E=_):g.length?u=o(b,"can't be subject and object"):(f=_,m="subject"):u=o(b,"not confined to single graph");for(let c=0;c<g.length&&!u;++c)_=g[c],f?u=o(b,"can't have coreferences"):_.predicate.value===Pe.rdf.rest?v?u=o(b,"has incoming rdf:rest arcs"):v=_:(f=_,m="object");k?l.unshift(k.object):u=o(b,"has no list head"),b=v&&v.subject}u?e=!1:f&&(r[f[m].value]=l)}),e&&this.removeQuads(a),r}addAll(e){if(e instanceof kt&&(e=e.filtered),Array.isArray(e))this.addQuads(e);else if(e instanceof Fe&&e._entityIndex===this._entityIndex)e._size!==0&&(this._graphs=qr(this._graphs,e._graphs),this._size=null);else for(const t of e)this.add(t);return this}contains(e){if(e instanceof kt&&(e=e.filtered),e===this)return!0;if(!(e instanceof Fe)||this._entityIndex!==e._entityIndex)return e.every(u=>this.has(u));const t=this._graphs,r=e._graphs;let o,i,a,s,l;for(const u in r){if(!(o=t[u]))return!1;o=o.subjects;for(const f in i=r[u].subjects){if(!(a=o[f]))return!1;for(const m in s=i[f]){if(!(l=a[m]))return!1;for(const y in s[m])if(!(y in l))return!1}}}return!0}deleteMatches(e,t,r,o){for(const i of this.match(e,t,r,o))this.removeQuad(i);return this}difference(e){if(e&&e instanceof kt&&(e=e.filtered),e===this)return new Fe({entityIndex:this._entityIndex});if(e instanceof Fe&&e._entityIndex===this._entityIndex){const t=new Fe({entityIndex:this._entityIndex}),r=Id(this._graphs,e._graphs);return r&&(t._graphs=r,t._size=null),t}return this.filter(t=>!e.has(t))}equals(e){return e instanceof kt&&(e=e.filtered),e===this||this.size===e.size&&this.contains(e)}filter(e){const t=new Fe({entityIndex:this._entityIndex});for(const r of this)e(r,this)&&t.add(r);return t}intersection(e){if(e instanceof kt&&(e=e.filtered),e===this){const t=new Fe({entityIndex:this._entityIndex});return t._graphs=qr(Object.create(null),this._graphs),t._size=this._size,t}else if(e instanceof Fe&&this._entityIndex===e._entityIndex){const t=new Fe({entityIndex:this._entityIndex}),r=Ed(e._graphs,this._graphs);return r&&(t._graphs=r,t._size=null),t}return this.filter(t=>e.has(t))}map(e){const t=new Fe({entityIndex:this._entityIndex});for(const r of this)t.add(e(r,this));return t}reduce(e,t){const r=this.readQuads();let o=t===void 0?r.next().value:t;for(const i of r)o=e(o,i,this);return o}toArray(){return this.getQuads()}toCanonical(){throw new Error("not implemented")}toStream(){return this.match()}toString(){return new Fi().quadsToString(this)}union(e){const t=new Fe({entityIndex:this._entityIndex});return t._graphs=qr(Object.create(null),this._graphs),t._size=this._size,t.addAll(e),t}*[Symbol.iterator](){yield*this.readQuads()}}function lt(n,e,t=0){const r=e[t];if(r&&!(r in n))return!1;let o=!1;for(const i in r?{[r]:n[r]}:n){const a=t===2?null:lt(n[i],e,t+1);a!==!1&&(o=o||Object.create(null),o[i]=a)}return o}class kt extends Sd.Readable{constructor(e,t,r,o,i,a){super({objectMode:!0}),Object.assign(this,{n3Store:e,subject:t,predicate:r,object:o,graph:i,options:a})}get filtered(){if(!this._filtered){const{n3Store:e,graph:t,object:r,predicate:o,subject:i}=this,a=this._filtered=new Fe({factory:e._factory,entityIndex:this.options.entityIndex});let s,l,u;if(i&&!(s=a._termToNumericId(i))||o&&!(l=a._termToNumericId(o))||r&&!(u=a._termToNumericId(r)))return a;const f=e._getGraphs(t);for(const m in f){let y,b,g,x;(x=f[m])&&(!s&&l?(b=lt(x.predicates,[l,u,s]))&&(y=lt(x.subjects,[s,l,u]),g=lt(x.objects,[u,s,l])):u?(g=lt(x.objects,[u,s,l]))&&(y=lt(x.subjects,[s,l,u]),b=lt(x.predicates,[l,u,s])):(y=lt(x.subjects,[s,l,u]))&&(b=lt(x.predicates,[l,u,s]),g=lt(x.objects,[u,s,l])),y&&(a._graphs[m]={subjects:y,predicates:b,objects:g}))}a._size=null}return this._filtered}get size(){return this.filtered.size}_read(e){e>0&&!this[vo]&&(this[vo]=this[Symbol.iterator]());const t=this[vo];for(;--e>=0;){const{done:r,value:o}=t.next();if(r){this.push(null);return}this.push(o)}}addAll(e){return this.filtered.addAll(e)}contains(e){return this.filtered.contains(e)}deleteMatches(e,t,r,o){return this.filtered.deleteMatches(e,t,r,o)}difference(e){return this.filtered.difference(e)}equals(e){return this.filtered.equals(e)}every(e,t,r,o,i){return this.filtered.every(e,t,r,o,i)}filter(e){return this.filtered.filter(e)}forEach(e,t,r,o,i){return this.filtered.forEach(e,t,r,o,i)}import(e){return this.filtered.import(e)}intersection(e){return this.filtered.intersection(e)}map(e){return this.filtered.map(e)}some(e,t,r,o,i){return this.filtered.some(e,t,r,o,i)}toCanonical(){return this.filtered.toCanonical()}toStream(){return this._filtered?this._filtered.toStream():this.n3Store.match(this.subject,this.predicate,this.object,this.graph)}union(e){return this._filtered?this._filtered.union(e):this.n3Store.match(this.subject,this.predicate,this.object,this.graph).addAll(e)}toArray(){return this._filtered?this._filtered.toArray():this.n3Store.getQuads(this.subject,this.predicate,this.object,this.graph)}reduce(e,t){return this.filtered.reduce(e,t)}toString(){return new Fi().quadsToString(this)}add(e){return this.filtered.add(e)}delete(e){return this.filtered.delete(e)}has(e){return this.filtered.has(e)}match(e,t,r,o){return new kt(this.filtered,e,t,r,o,this.options)}*[Symbol.iterator](){yield*this._filtered||this.n3Store.readQuads(this.subject,this.predicate,this.object,this.graph)}}const ve="http://www.w3.org/ns/shacl#",ps="http://datashapes.org/dash#",It="http://www.w3.org/2001/XMLSchema#",Gi="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Vi="http://www.w3.org/2000/01/rdf-schema#",Wi="http://www.w3.org/2004/02/skos/core#",Qc="http://www.w3.org/2002/07/owl#",Xc="http://www.w3.org/ns/oa#",Kc="http://purl.org/dc/terms/",Yc="http://xmlns.com/foaf/0.1/",yn=_e.namedNode("loaded-shapes"),dt=_e.namedNode("loaded-data"),ze=_e.namedNode(Gi+"type"),ji=_e.namedNode(Kc+"conformsTo"),Zc=_e.namedNode(Vi+"subClassOf"),Ji=_e.namedNode(Qc+"imports"),eu=_e.namedNode(Wi+"broader"),tu=_e.namedNode(Wi+"narrower"),ln=_e.namedNode(ve+"NodeShape"),ru=_e.namedNode(ve+"IRI"),wn=_e.namedNode(ve+"property"),Qi=_e.namedNode(ve+"class"),Vr=_e.namedNode(ve+"targetClass"),nu=_e.namedNode(ve+"nodeKind"),ou=_e.namedNode(It+"string");function Fr(n,e,t=ve,r){let o="";const i=iu(n,e,t,r);return i&&(o=i.value),o}function iu(n,e,t=ve,r){let o;const i=t+e;if(r?.length){for(const a of r)for(const s of n)if(s.predicate.value===i){if(s.object.id.endsWith(`@${a}`))return s.object;s.object.id.indexOf("@")<0?o=s.object:o||(o=s.object)}}else for(const a of n)if(a.predicate.value===i)return a.object;return o}function au(n){n.querySelector("input,select,textarea")?.focus()}function Pt(n,e){return Fr(n,"prefLabel",Wi,e)||Fr(n,"label",Vi,e)||Fr(n,"name",Yc,e)}function Rd(n,e,t){const r=[];for(const o of n)r.push({value:o,label:Pt(e.getQuads(o,null,null,null),t),children:[]});return r}function Ti(n,e){for(const t in e)n=n.replace(e[t],"");return n}function Nd(n,e,t,r,o=new Set){for(const i of e.owlImports)o.has(i.id)||(o.add(i.id),r.push(...t.getSubjects(ze,n,i)));e.parent&&Nd(n,e.parent,t,r,o)}function Xi(n,e){if(e.shaclIn){const t=e.config.lists[e.shaclIn];return Rd(t?.length?t:[],e.config.store,e.config.languages)}else{const t=e.config.store.getSubjects(ze,n,yn);t.push(...e.config.store.getSubjects(ze,n,dt)),Nd(n,e,e.config.store,t);const r=new Map,o=new Map;for(const a of t)r.set(a.id,{value:a,label:Pt(e.config.store.getQuads(a,null,null,null),e.config.languages),children:[]});for(const a of t){for(const s of e.config.store.getObjects(a,eu,null))o.set(a.id,s.id),r.has(s.id)||r.set(s.id,{value:s,label:Pt(e.config.store.getQuads(s,null,null,null),e.config.languages),children:[]});for(const s of e.config.store.getObjects(a,tu,null))o.set(s.id,a.id),r.has(s.id)||r.set(s.id,{value:s,label:Pt(e.config.store.getQuads(s,null,null,null),e.config.languages),children:[]})}for(const[a,s]of o.entries())r.get(s)?.children?.push(r.get(a));const i=[];for(const[a,s]of r.entries())o.has(a)||i.push(s);for(const a of e.config.store.getSubjects(Zc,n,null))i.push(...Xi(a,e));return i}}function Ai(n){let e;try{e=new URL(n)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"}function fs(n,e,t){if(e===void 0)return t;if(t===void 0)return e;const r=n.indexOf(e.language);if(r<0)return t;const o=n.indexOf(t.language);return o<0||o>r?e:t}function jd(n,e,t){const r=document.createElement("div");r.classList.add("shacl-or-constraint");const o=[];if(e instanceof Rt){const i=[];let a=!1;n.length&&(a=t.store.countQuads(n[0],wn,null,null)>0);for(let u=0;u<n.length;u++)if(a){const f=t.store.getObjects(n[u],wn,null),m=[];let y="";for(const b of f){const g=new kn(b,e,t);m.push(g),y+=(y.length>1?" / ":"")+g.template.label}i.push(m),o.push({label:y,value:u.toString()})}else{const f=new kn(n[u],e,t);i.push([f]),o.push({label:f.template.label,value:u.toString()})}const s=t.theme.createListEditor("Please choose",null,!1,o),l=s.querySelector(".editor");l.onchange=()=>{if(l.value){const u=i[parseInt(l.value)];let f;u.length&&(f=u[0],r.replaceWith(u[0]));for(let m=1;m<u.length;m++)f.after(u[m]),f=u[m]}},r.appendChild(s)}else{const i=[];for(let l=0;l<n.length;l++){const u=t.store.getQuads(n[l],null,null,null);u.length&&(i.push(u),o.push({label:Pt(u,t.languages)||Ti(u[0].predicate.value,t.prefixes)+" = "+Ti(u[0].object.value,t.prefixes),value:l.toString()}))}const a=t.theme.createListEditor(e.template.label+"?",null,!1,o,e.template),s=a.querySelector(".editor");s.onchange=()=>{s.value&&r.replaceWith(bn(e.template.clone().merge(i[parseInt(s.value)]),void 0,!0))},r.appendChild(a)}return r}function su(n,e,t){if(e instanceof Ze){const r=e.datatype;for(const o of n){const i=t.store.getQuads(o,null,null,null);for(const a of i)if(a.predicate.value===`${ve}datatype`&&a.object.equals(r))return i}}else{const r=t.store.getObjects(e,ze,null);for(const o of n){const i=t.store.getQuads(o,null,null,null);for(const a of i)if(r.length>0){if(a.predicate.value===`${ve}node`){for(const s of r)if(t.store.getQuads(a.object,Vr,s,null).length>0)return i}if(a.predicate.equals(Qi)){for(const s of r)if(a.object.equals(s))return i}}else if(a.predicate.equals(nu)&&a.object.equals(ru))return i}}return console.error("couldn't resolve sh:or/sh:xone on property for value",e),[]}function lu(n,e,t){for(const r of n){let o=!1;const i=t.store.getObjects(r,wn,null);for(const a of i){const s=t.store.getObjects(a,`${ve}path`,null);for(const l of s)if(o=t.store.countQuads(e,l,null,null)>0,o)break}if(o)return i}return console.error("couldn't resolve sh:or/sh:xone on node for value",e),[]}const du={[`${ve}name`]:(n,e)=>{const t=e;n.name=fs(n.config.languages,n.name,t)},[`${ve}description`]:(n,e)=>{const t=e;n.description=fs(n.config.languages,n.description,t)},[`${ve}path`]:(n,e)=>{n.path=e.value},[`${ve}node`]:(n,e)=>{n.node=e},[`${ve}datatype`]:(n,e)=>{n.datatype=e},[`${ve}nodeKind`]:(n,e)=>{n.nodeKind=e},[`${ve}minCount`]:(n,e)=>{n.minCount=parseInt(e.value)},[`${ve}maxCount`]:(n,e)=>{n.maxCount=parseInt(e.value)},[`${ve}minLength`]:(n,e)=>{n.minLength=parseInt(e.value)},[`${ve}maxLength`]:(n,e)=>{n.maxLength=parseInt(e.value)},[`${ve}minInclusive`]:(n,e)=>{n.minInclusive=parseInt(e.value)},[`${ve}maxInclusive`]:(n,e)=>{n.maxInclusive=parseInt(e.value)},[`${ve}minExclusive`]:(n,e)=>{n.minExclusive=parseInt(e.value)},[`${ve}maxExclusive`]:(n,e)=>{n.maxExclusive=parseInt(e.value)},[`${ve}pattern`]:(n,e)=>{n.pattern=e.value},[`${ve}order`]:(n,e)=>{n.order=parseInt(e.value)},[`${ps}singleLine`]:(n,e)=>{n.singleLine=e.value==="true"},[`${ps}readonly`]:(n,e)=>{n.readonly=e.value==="true"},[`${Xc}styleClass`]:(n,e)=>{n.cssClass=e.value},[`${ve}and`]:(n,e)=>{n.shaclAnd=e.value},[`${ve}in`]:(n,e)=>{n.shaclIn=e.value},[`${ve}languageIn`]:(n,e)=>{n.languageIn=n.config.lists[e.value],n.datatype=_e.namedNode(Gi+"langString")},[`${ve}defaultValue`]:(n,e)=>{n.defaultValue=e},[`${ve}hasValue`]:(n,e)=>{n.hasValue=e},[`${ve}qualifiedValueShape`]:(n,e)=>{n.qualifiedValueShape=e},[`${ve}qualifiedMinCount`]:(n,e)=>{n.minCount=parseInt(e.value)},[`${ve}qualifiedMaxCount`]:(n,e)=>{n.maxCount=parseInt(e.value)},[Ji.id]:(n,e)=>{n.owlImports.push(e)},[Qi.id]:(n,e)=>{n.class=e;const t=n.config.store.getSubjects(Vr,e,null);t.length>0&&(n.node=t[0])},[`${ve}or`]:(n,e)=>{const t=n.config.lists[e.value];t?.length?n.shaclOr=t:console.error("list for sh:or not found:",e.value,"existing lists:",n.config.lists)},[`${ve}xone`]:(n,e)=>{const t=n.config.lists[e.value];t?.length?n.shaclXone=t:console.error("list for sh:xone not found:",e.value,"existing lists:",n.config.lists)}};class cu{constructor(e,t,r){this.label="",this.owlImports=[],this.extendedShapes=[],this.parent=t,this.config=r,this.merge(e),this.qualifiedValueShape&&this.merge(r.store.getQuads(this.qualifiedValueShape,null,null,null))}merge(e){for(const t of e)du[t.predicate.id]?.call(this,this,t.object);if(this.label=this.name?.value||Pt(e,this.config.languages),!this.label&&!this.shaclAnd&&(this.label=this.path?Ti(this.path,this.config.prefixes):"unknown"),(this.node||this.shaclAnd)&&(this.node&&this.extendedShapes.push(this.node),this.shaclAnd)){const t=this.config.lists[this.shaclAnd];if(t?.length)for(const r of t)this.extendedShapes.push(r)}return this}clone(){const e=Object.assign({},this);return e.extendedShapes=[...this.extendedShapes],e.owlImports=[...this.owlImports],this.languageIn&&(e.languageIn=[...this.languageIn]),this.shaclOr&&(e.shaclOr=[...this.shaclOr]),this.shaclXone&&(e.shaclXone=[...this.shaclXone]),e.merge=this.merge.bind(e),e.clone=this.clone.bind(e),e}}const uu=`form { display:block; --label-width: 8em; --caret-size: 10px; }
28
28
  form.mode-edit { padding-left: 1em; }
29
29
  form, form * { box-sizing: border-box; }
30
30
  shacl-node, .collapsible::part(content) { display: flex; flex-direction: column; width: 100%; position: relative; }
@@ -39,7 +39,7 @@ shacl-property:not(.may-remove) > .property-instance > .remove-button:not(.persi
39
39
  shacl-property:not(.may-remove) > .shacl-or-constraint > .remove-button:not(.persistent) { visibility: hidden; }
40
40
  .mode-view .shacl-group:not(:has(shacl-property)) { display: none; }
41
41
  .property-instance, .shacl-or-constraint { display: flex; align-items: flex-start; padding: 4px 0; width: 100%; position: relative; }
42
- .shacl-or-constraint > div { display: flex; flex-grow: 1; }
42
+ .shacl-or-constraint > div { display: flex; flex-grow: 1; align-items: flex-start; }
43
43
  .shacl-or-constraint label { display: inline-block; word-break: break-word; width: var(--label-width); line-height: 1em; padding-top: 0.15em; padding-right: 1em; flex-shrink: 0; position: relative; }
44
44
  .property-instance label[title] { cursor: help; text-decoration: underline dashed #AAA; }
45
45
  .property-instance.linked label:after, label.linked:after { content: '\\1F517'; font-size: 0.6em; padding-left: 6px; }
@@ -48,7 +48,7 @@ shacl-property:not(.may-remove) > .shacl-or-constraint > .remove-button:not(.per
48
48
  .editor:not([type='checkbox']) { flex-grow: 1; }
49
49
  textarea.editor { resize: vertical; }
50
50
  .lang-chooser { border: 0; background-color: #e9e9ed; padding: 2px 4px; align-self: flex-start; }
51
- .validation-error { position: absolute; left: calc(var(--label-width) - 1em); top: 0.5em; color: red; cursor: help; }
51
+ .validation-error { position: absolute; left: calc(var(--label-width) - 1em); color: red; cursor: help; }
52
52
  .validation-error::before { content: '\\26a0' }
53
53
  .validation-error.node { left: -1em; }
54
54
  .invalid > .editor { border-color: red !important; }
@@ -72,26 +72,26 @@ a, a:visited { color: inherit; }
72
72
  .collapsible > .property-instance > shacl-node > h1 { display: none; }
73
73
  .ref-link { cursor: pointer; }
74
74
  .ref-link:hover { text-decoration: underline; }
75
- .node-id-display { color: #999; font-size: 11px; }`;class du{constructor(e){let t=lu;e&&(t+=`
76
- `+e),this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t)}apply(e){}createViewer(e,t,n){const o=document.createElement("div"),i=document.createElement("label");i.innerHTML=e+":",n.description&&i.setAttribute("title",n.description.value),o.appendChild(i);let a=t.value,s=null;if(t instanceof En){const u=n.config.store.getQuads(a,null,null,null);if(u.length){const f=An(u,n.config.languages);f&&(a=f)}}else t instanceof Ze&&(t.language?(s=document.createElement("span"),s.classList.add("lang"),s.innerText=`@${t.language}`):t.datatype.value===`${It}date`?a=new Date(Date.parse(t.value)).toDateString():t.datatype.value===`${It}dateTime`&&(a=new Date(Date.parse(t.value)).toLocaleString()));let l;return Ai(t.value)?(l=document.createElement("a"),l.setAttribute("href",t.value)):l=document.createElement("div"),l.classList.add("d-flex"),l.innerText=a,s&&l.appendChild(s),o.appendChild(l),o}}function cu(r,e,t){if(t){const n=r.minCount!==void 0&&r.minCount>0;if(r.class)return r.config.theme.createListEditor(r.label,e,n,Qi(r.class,r),r);if(r.shaclIn){const o=r.config.lists[r.shaclIn];if(o?.length){const i=Id(o,r.config.store,r.config.languages);return r.config.theme.createListEditor(r.label,e,n,i,r)}else console.error("list not found:",r.shaclIn,"existing lists:",r.config.lists)}if(r.datatype?.value===`${Gi}langString`||r.languageIn?.length)return r.config.theme.createLangStringEditor(r.label,e,n,r);switch(r.datatype?.value.replace(It,"")){case"integer":case"float":case"double":case"decimal":return r.config.theme.createNumberEditor(r.label,e,n,r);case"date":case"dateTime":return r.config.theme.createDateEditor(r.label,e,n,r);case"boolean":return r.config.theme.createBooleanEditor(r.label,e,n,r);case"base64Binary":return r.config.theme.createFileEditor(r.label,e,n,r)}return r.config.theme.createTextEditor(r.label,e,n,r)}else{if(e)return r.config.theme.createViewer(r.label,e,r);const n=document.createElement("div");return n.innerHTML="No value",n}}function uu(r,e,t){if(e==="application/ld+json")return pu(r);{const n=new Fi({format:e,prefixes:t});n.addQuads(r);let o="";return n.end((i,a)=>{i&&console.error(i),o=a}),o}}function pu(r){const e=[];for(const t of r){const n={"@id":t.subject.id};if(t.predicate===Be)n["@type"]=t.object.id;else{let o=t.object.value;t.object instanceof Ze?t.object.language?o={"@language":t.object.language,"@value":t.object.value}:t.object.datatype&&t.object.datatype.value!==`${It}#string`&&(o={"@type":t.object.datatype.value,"@value":t.object.value}):o={"@id":t.object.id},n[t.predicate.value]=o}e.push(n)}return JSON.stringify(e)}function fu(r){let e=r.shaclDatatype,t=r.value;if(t){if(r.dataset.class||r.dataset.nodeKind===ve+"IRI")return Se.namedNode(t);if(r.dataset.link)return JSON.parse(r.dataset.link);if(r.dataset.lang?e=r.dataset.lang:r.type==="number"?t=parseFloat(t):r.type==="file"&&r.binaryData?t=r.binaryData:r.type==="datetime-local"&&(t=new Date(t).toISOString().slice(0,19)),!e&&typeof t=="string"){const n=t.split("^^");n.length===2&&(n[0].startsWith('"')&&n[0].endsWith('"')||n[0].startsWith("'")&&n[0].endsWith("'"))&&n[1].split(":").length===2&&(t=n[0].substring(1,n[0].length-1),e=Se.namedNode(n[1]))}return Se.literal(t,e)}else if((r.type==="checkbox"||r.getAttribute("type")==="checkbox")&&(r.checked||parseInt(r.dataset.minCount||"0")>0))return Se.literal(r.checked?"true":"false",e)}const qr={};function hu(r){r.predicate===void 0&&r.datatype===void 0?console.warn('not registering plugin because it does neither define "predicate" nor "datatype"',r):qr[`${r.predicate}^${r.datatype}`]=r}function bu(){return Object.entries(qr).map(r=>r[1])}function mu(r,e){let t=qr[`${r}^${e}`];return t||(t=qr[`${r}^undefined`],t)?t:qr[`undefined^${e}`]}class wm{constructor(e,t){this.predicate=e.predicate,this.datatype=e.datatype,t&&(this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t))}createViewer(e,t){return e.config.theme.createViewer(e.label,t,e)}}/**
75
+ .node-id-display { color: #999; font-size: 11px; }`;class pu{constructor(e){let t=uu;e&&(t+=`
76
+ `+e),this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t)}apply(e){}createViewer(e,t,r){const o=document.createElement("div"),i=document.createElement("label");i.innerHTML=e+":",r.description&&i.setAttribute("title",r.description.value),o.appendChild(i);let a=t.value,s=null;if(t instanceof In){const u=r.config.store.getQuads(a,null,null,null);if(u.length){const f=Pt(u,r.config.languages);f&&(a=f)}}else t instanceof Ze&&(t.language?(s=document.createElement("span"),s.classList.add("lang"),s.innerText=`@${t.language}`):t.datatype.value===`${It}date`?a=new Date(Date.parse(t.value)).toDateString():t.datatype.value===`${It}dateTime`&&(a=new Date(Date.parse(t.value)).toLocaleString()));let l;return Ai(t.value)?(l=document.createElement("a"),l.setAttribute("href",t.value)):l=document.createElement("div"),l.classList.add("d-flex"),l.innerText=a,s&&l.appendChild(s),o.appendChild(l),o}}function fu(n,e,t){if(t){const r=n.minCount!==void 0&&n.minCount>0;if(n.class)return n.config.theme.createListEditor(n.label,e,r,Xi(n.class,n),n);if(n.shaclIn){const o=n.config.lists[n.shaclIn];if(o?.length){const i=Rd(o,n.config.store,n.config.languages);return n.config.theme.createListEditor(n.label,e,r,i,n)}else console.error("list not found:",n.shaclIn,"existing lists:",n.config.lists)}if(n.datatype?.value===`${Gi}langString`||n.languageIn?.length)return n.config.theme.createLangStringEditor(n.label,e,r,n);switch(n.datatype?.value.replace(It,"")){case"integer":case"float":case"double":case"decimal":return n.config.theme.createNumberEditor(n.label,e,r,n);case"date":case"dateTime":return n.config.theme.createDateEditor(n.label,e,r,n);case"boolean":return n.config.theme.createBooleanEditor(n.label,e,r,n);case"base64Binary":return n.config.theme.createFileEditor(n.label,e,r,n)}return n.config.theme.createTextEditor(n.label,e,r,n)}else{if(e)return n.config.theme.createViewer(n.label,e,n);const r=document.createElement("div");return r.innerHTML="No value",r}}function hu(n,e,t){if(e==="application/ld+json")return bu(n);{const r=new Fi({format:e,prefixes:t});r.addQuads(n);let o="";return r.end((i,a)=>{i&&console.error(i),o=a}),o}}function bu(n){const e=[];for(const t of n){const r={"@id":t.subject.id};if(t.predicate===ze)r["@type"]=t.object.id;else{let o=t.object.value;t.object instanceof Ze?t.object.language?o={"@language":t.object.language,"@value":t.object.value}:t.object.datatype&&t.object.datatype.value!==`${It}#string`&&(o={"@type":t.object.datatype.value,"@value":t.object.value}):o={"@id":t.object.id},r[t.predicate.value]=o}e.push(r)}return JSON.stringify(e)}function mu(n){let e=n.shaclDatatype,t=n.value;if(t){if(n.dataset.class||n.dataset.nodeKind===ve+"IRI")return _e.namedNode(t);if(n.dataset.link)return JSON.parse(n.dataset.link);if(n.dataset.lang?e=n.dataset.lang:n.type==="number"?t=parseFloat(t):n.type==="file"&&n.binaryData?t=n.binaryData:n.type==="datetime-local"&&(t=new Date(t).toISOString().slice(0,19)),!e&&typeof t=="string"){const r=t.split("^^");r.length===2&&(r[0].startsWith('"')&&r[0].endsWith('"')||r[0].startsWith("'")&&r[0].endsWith("'"))&&r[1].split(":").length===2&&(t=r[0].substring(1,r[0].length-1),e=_e.namedNode(r[1]))}return _e.literal(t,e)}else if((n.type==="checkbox"||n.getAttribute("type")==="checkbox")&&(n.checked||parseInt(n.dataset.minCount||"0")>0))return _e.literal(n.checked?"true":"false",e)}const zr={};function gu(n){n.predicate===void 0&&n.datatype===void 0?console.warn('not registering plugin because it does neither define "predicate" nor "datatype"',n):zr[`${n.predicate}^${n.datatype}`]=n}function vu(){return Object.entries(zr).map(n=>n[1])}function yu(n,e){let t=zr[`${n}^${e}`];return t||(t=zr[`${n}^undefined`],t)?t:zr[`undefined^${e}`]}class Sm{constructor(e,t){this.predicate=e.predicate,this.datatype=e.datatype,t&&(this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t))}createViewer(e,t){return e.config.theme.createViewer(e.label,t,e)}}/**
77
77
  * @license
78
78
  * Copyright 2019 Google LLC
79
79
  * SPDX-License-Identifier: BSD-3-Clause
80
- */const un=globalThis,Xi=un.ShadowRoot&&(un.ShadyCSS===void 0||un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ki=Symbol(),fs=new WeakMap;let jd=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Ki)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Xi&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=fs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&fs.set(t,e))}return e}toString(){return this.cssText}};const gu=r=>new jd(typeof r=="string"?r:r+"",void 0,Ki),wt=(r,...e)=>{const t=r.length===1?r[0]:e.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+r[i+1],r[0]);return new jd(t,r,Ki)},vu=(r,e)=>{if(Xi)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const n=document.createElement("style"),o=un.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=t.cssText,r.appendChild(n)}},hs=Xi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return gu(t)})(r):r;/**
80
+ */const pn=globalThis,Ki=pn.ShadowRoot&&(pn.ShadyCSS===void 0||pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yi=Symbol(),hs=new WeakMap;let Td=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==Yi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ki&&e===void 0){const r=t!==void 0&&t.length===1;r&&(e=hs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&hs.set(t,e))}return e}toString(){return this.cssText}};const wu=n=>new Td(typeof n=="string"?n:n+"",void 0,Yi),wt=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((r,o,i)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+n[i+1],n[0]);return new Td(t,n,Yi)},xu=(n,e)=>{if(Ki)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=pn.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,n.appendChild(r)}},bs=Ki?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return wu(t)})(n):n;/**
81
81
  * @license
82
82
  * Copyright 2017 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */const{is:yu,defineProperty:wu,getOwnPropertyDescriptor:xu,getOwnPropertyNames:_u,getOwnPropertySymbols:ku,getPrototypeOf:Su}=Object,Ln=globalThis,bs=Ln.trustedTypes,Eu=bs?bs.emptyScript:"",Iu=Ln.reactiveElementPolyfillSupport,Fr=(r,e)=>r,Li={toAttribute(r,e){switch(e){case Boolean:r=r?Eu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Td=(r,e)=>!yu(r,e),ms={attribute:!0,type:String,converter:Li,reflect:!1,useDefault:!1,hasChanged:Td};Symbol.metadata??=Symbol("metadata"),Ln.litPropertyMetadata??=new WeakMap;let Qt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ms){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(e,n,t);o!==void 0&&wu(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:i}=xu(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const s=o?.call(this);i?.call(this,a),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ms}static _$Ei(){if(this.hasOwnProperty(Fr("elementProperties")))return;const e=Su(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Fr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fr("properties"))){const t=this.properties,n=[..._u(t),...ku(t)];for(const o of n)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[n,o]of t)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const o=this._$Eu(t,n);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const o of n)t.unshift(hs(o))}else e!==void 0&&t.push(hs(e));return t}static _$Eu(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return vu(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){const n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){const i=(n.converter?.toAttribute!==void 0?n.converter:Li).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,t){const n=this.constructor,o=n._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const i=n.getPropertyOptions(o),a=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Li;this._$Em=o;const s=a.fromAttribute(t,i.type);this[o]=s??this._$Ej?.get(o)??s,this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){const o=this.constructor,i=this[e];if(n??=o.getPropertyOptions(e),!((n.hasChanged??Td)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:o,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),i!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[o,i]of n){const{wrapped:a}=i,s=this[o];a!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,i,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[Fr("elementProperties")]=new Map,Qt[Fr("finalized")]=new Map,Iu?.({ReactiveElement:Qt}),(Ln.reactiveElementVersions??=[]).push("2.1.1");/**
84
+ */const{is:_u,defineProperty:ku,getOwnPropertyDescriptor:Su,getOwnPropertyNames:Eu,getOwnPropertySymbols:Iu,getPrototypeOf:Ru}=Object,Ln=globalThis,ms=Ln.trustedTypes,Nu=ms?ms.emptyScript:"",ju=Ln.reactiveElementPolyfillSupport,Ur=(n,e)=>n,Li={toAttribute(n,e){switch(e){case Boolean:n=n?Nu:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},Ad=(n,e)=>!_u(n,e),gs={attribute:!0,type:String,converter:Li,reflect:!1,useDefault:!1,hasChanged:Ad};Symbol.metadata??=Symbol("metadata"),Ln.litPropertyMetadata??=new WeakMap;let Xt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=gs){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&ku(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:i}=Su(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const s=o?.call(this);i?.call(this,a),this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??gs}static _$Ei(){if(this.hasOwnProperty(Ur("elementProperties")))return;const e=Ru(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ur("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ur("properties"))){const t=this.properties,r=[...Eu(t),...Iu(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(bs(o))}else e!==void 0&&t.push(bs(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return xu(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(o!==void 0&&r.reflect===!0){const i=(r.converter?.toAttribute!==void 0?r.converter:Li).toAttribute(t,r.type);this._$Em=e,i==null?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const i=r.getPropertyOptions(o),a=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:Li;this._$Em=o;const s=a.fromAttribute(t,i.type);this[o]=s??this._$Ej?.get(o)??s,this._$Em=null}}requestUpdate(e,t,r){if(e!==void 0){const o=this.constructor,i=this[e];if(r??=o.getPropertyOptions(e),!((r.hasChanged??Ad)(i,t)||r.useDefault&&r.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:i},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),i!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[o,i]of this._$Ep)this[o]=i;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,i]of r){const{wrapped:a}=i,s=this[o];a!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,i,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(e){}firstUpdated(e){}};Xt.elementStyles=[],Xt.shadowRootOptions={mode:"open"},Xt[Ur("elementProperties")]=new Map,Xt[Ur("finalized")]=new Map,ju?.({ReactiveElement:Xt}),(Ln.reactiveElementVersions??=[]).push("2.1.1");/**
85
85
  * @license
86
86
  * Copyright 2017 Google LLC
87
87
  * SPDX-License-Identifier: BSD-3-Clause
88
- */const Yi=globalThis,wn=Yi.trustedTypes,gs=wn?wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ad="$lit$",St=`lit$${Math.random().toFixed(9).slice(2)}$`,Ld="?"+St,Ru=`<${Ld}>`,Bt=document,Gr=()=>Bt.createComment(""),Vr=r=>r===null||typeof r!="object"&&typeof r!="function",Zi=Array.isArray,Nu=r=>Zi(r)||typeof r?.[Symbol.iterator]=="function",yo=`[
89
- \f\r]`,vr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vs=/-->/g,ys=/>/g,Lt=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^
90
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ws=/'/g,xs=/"/g,Od=/^(?:script|style|textarea|title)$/i,ju=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ct=ju(1),er=Symbol.for("lit-noChange"),De=Symbol.for("lit-nothing"),_s=new WeakMap,Ct=Bt.createTreeWalker(Bt,129);function $d(r,e){if(!Zi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return gs!==void 0?gs.createHTML(e):e}const Tu=(r,e)=>{const t=r.length-1,n=[];let o,i=e===2?"<svg>":e===3?"<math>":"",a=vr;for(let s=0;s<t;s++){const l=r[s];let u,f,m=-1,y=0;for(;y<l.length&&(a.lastIndex=y,f=a.exec(l),f!==null);)y=a.lastIndex,a===vr?f[1]==="!--"?a=vs:f[1]!==void 0?a=ys:f[2]!==void 0?(Od.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Lt):f[3]!==void 0&&(a=Lt):a===Lt?f[0]===">"?(a=o??vr,m=-1):f[1]===void 0?m=-2:(m=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?Lt:f[3]==='"'?xs:ws):a===xs||a===ws?a=Lt:a===vs||a===ys?a=vr:(a=Lt,o=void 0);const b=a===Lt&&r[s+1].startsWith("/>")?" ":"";i+=a===vr?l+Ru:m>=0?(n.push(u),l.slice(0,m)+Ad+l.slice(m)+St+b):l+St+(m===-2?s:b)}return[$d(r,i+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let Oi=class Dd{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let i=0,a=0;const s=e.length-1,l=this.parts,[u,f]=Tu(e,t);if(this.el=Dd.createElement(u,n),Ct.currentNode=this.el.content,t===2||t===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=Ct.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const m of o.getAttributeNames())if(m.endsWith(Ad)){const y=f[a++],b=o.getAttribute(m).split(St),g=/([.?@])?(.*)/.exec(y);l.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?Lu:g[1]==="?"?Ou:g[1]==="@"?$u:On}),o.removeAttribute(m)}else m.startsWith(St)&&(l.push({type:6,index:i}),o.removeAttribute(m));if(Od.test(o.tagName)){const m=o.textContent.split(St),y=m.length-1;if(y>0){o.textContent=wn?wn.emptyScript:"";for(let b=0;b<y;b++)o.append(m[b],Gr()),Ct.nextNode(),l.push({type:2,index:++i});o.append(m[y],Gr())}}}else if(o.nodeType===8)if(o.data===Ld)l.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(St,m+1))!==-1;)l.push({type:7,index:i}),m+=St.length-1}i++}}static createElement(e,t){const n=Bt.createElement("template");return n.innerHTML=e,n}};function tr(r,e,t=r,n){if(e===er)return e;let o=n!==void 0?t._$Co?.[n]:t._$Cl;const i=Vr(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(r),o._$AT(r,t,n)),n!==void 0?(t._$Co??=[])[n]=o:t._$Cl=o),o!==void 0&&(e=tr(r,o._$AS(r,e.values),o,n)),e}let Au=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:n}=this._$AD,o=(e?.creationScope??Bt).importNode(t,!0);Ct.currentNode=o;let i=Ct.nextNode(),a=0,s=0,l=n[0];for(;l!==void 0;){if(a===l.index){let u;l.type===2?u=new ea(i,i.nextSibling,this,e):l.type===1?u=new l.ctor(i,l.name,l.strings,this,e):l.type===6&&(u=new Du(i,this,e)),this._$AV.push(u),l=n[++s]}a!==l?.index&&(i=Ct.nextNode(),a++)}return Ct.currentNode=Bt,o}p(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}},ea=class Md{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=De,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=tr(this,e,t),Vr(e)?e===De||e==null||e===""?(this._$AH!==De&&this._$AR(),this._$AH=De):e!==this._$AH&&e!==er&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Nu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==De&&Vr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Bt.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Oi.createElement($d(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===o)this._$AH.p(t);else{const i=new Au(o,this),a=i.u(this.options);i.p(t),this.T(a),this._$AH=i}}_$AC(e){let t=_s.get(e.strings);return t===void 0&&_s.set(e.strings,t=new Oi(e)),t}k(e){Zi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,o=0;for(const i of e)o===t.length?t.push(n=new Md(this.O(Gr()),this.O(Gr()),this,this.options)):n=t[o],n._$AI(i),o++;o<t.length&&(this._$AR(n&&n._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},On=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,i){this.type=1,this._$AH=De,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=De}_$AI(e,t=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=tr(this,e,t,0),a=!Vr(e)||e!==this._$AH&&e!==er,a&&(this._$AH=e);else{const s=e;let l,u;for(e=i[0],l=0;l<i.length-1;l++)u=tr(this,s[n+l],t,l),u===er&&(u=this._$AH[l]),a||=!Vr(u)||u!==this._$AH[l],u===De?e=De:e!==De&&(e+=(u??"")+i[l+1]),this._$AH[l]=u}a&&!o&&this.j(e)}j(e){e===De?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Lu=class extends On{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===De?void 0:e}},Ou=class extends On{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==De)}},$u=class extends On{constructor(e,t,n,o,i){super(e,t,n,o,i),this.type=5}_$AI(e,t=this){if((e=tr(this,e,t,0)??De)===er)return;const n=this._$AH,o=e===De&&n!==De||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==De&&(n===De||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Du=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){tr(this,e)}};const Mu=Yi.litHtmlPolyfillSupport;Mu?.(Oi,ea),(Yi.litHtmlVersions??=[]).push("3.3.1");const Cu=(r,e,t)=>{const n=t?.renderBefore??e;let o=n._$litPart$;if(o===void 0){const i=t?.renderBefore??null;n._$litPart$=o=new ea(e.insertBefore(Gr(),i),i,void 0,t??{})}return o._$AI(r),o};/**
88
+ */const Zi=globalThis,xn=Zi.trustedTypes,vs=xn?xn.createPolicy("lit-html",{createHTML:n=>n}):void 0,Ld="$lit$",St=`lit$${Math.random().toFixed(9).slice(2)}$`,Od="?"+St,Tu=`<${Od}>`,qt=document,Wr=()=>qt.createComment(""),Jr=n=>n===null||typeof n!="object"&&typeof n!="function",ea=Array.isArray,Au=n=>ea(n)||typeof n?.[Symbol.iterator]=="function",yo=`[
89
+ \f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ys=/-->/g,ws=/>/g,Lt=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^
90
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xs=/'/g,_s=/"/g,$d=/^(?:script|style|textarea|title)$/i,Lu=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),ct=Lu(1),tr=Symbol.for("lit-noChange"),De=Symbol.for("lit-nothing"),ks=new WeakMap,Ct=qt.createTreeWalker(qt,129);function Dd(n,e){if(!ea(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return vs!==void 0?vs.createHTML(e):e}const Ou=(n,e)=>{const t=n.length-1,r=[];let o,i=e===2?"<svg>":e===3?"<math>":"",a=wr;for(let s=0;s<t;s++){const l=n[s];let u,f,m=-1,y=0;for(;y<l.length&&(a.lastIndex=y,f=a.exec(l),f!==null);)y=a.lastIndex,a===wr?f[1]==="!--"?a=ys:f[1]!==void 0?a=ws:f[2]!==void 0?($d.test(f[2])&&(o=RegExp("</"+f[2],"g")),a=Lt):f[3]!==void 0&&(a=Lt):a===Lt?f[0]===">"?(a=o??wr,m=-1):f[1]===void 0?m=-2:(m=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?Lt:f[3]==='"'?_s:xs):a===_s||a===xs?a=Lt:a===ys||a===ws?a=wr:(a=Lt,o=void 0);const b=a===Lt&&n[s+1].startsWith("/>")?" ":"";i+=a===wr?l+Tu:m>=0?(r.push(u),l.slice(0,m)+Ld+l.slice(m)+St+b):l+St+(m===-2?s:b)}return[Dd(n,i+(n[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};let Oi=class Md{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let i=0,a=0;const s=e.length-1,l=this.parts,[u,f]=Ou(e,t);if(this.el=Md.createElement(u,r),Ct.currentNode=this.el.content,t===2||t===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(o=Ct.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const m of o.getAttributeNames())if(m.endsWith(Ld)){const y=f[a++],b=o.getAttribute(m).split(St),g=/([.?@])?(.*)/.exec(y);l.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?Du:g[1]==="?"?Mu:g[1]==="@"?Cu:On}),o.removeAttribute(m)}else m.startsWith(St)&&(l.push({type:6,index:i}),o.removeAttribute(m));if($d.test(o.tagName)){const m=o.textContent.split(St),y=m.length-1;if(y>0){o.textContent=xn?xn.emptyScript:"";for(let b=0;b<y;b++)o.append(m[b],Wr()),Ct.nextNode(),l.push({type:2,index:++i});o.append(m[y],Wr())}}}else if(o.nodeType===8)if(o.data===Od)l.push({type:2,index:i});else{let m=-1;for(;(m=o.data.indexOf(St,m+1))!==-1;)l.push({type:7,index:i}),m+=St.length-1}i++}}static createElement(e,t){const r=qt.createElement("template");return r.innerHTML=e,r}};function rr(n,e,t=n,r){if(e===tr)return e;let o=r!==void 0?t._$Co?.[r]:t._$Cl;const i=Jr(e)?void 0:e._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),i===void 0?o=void 0:(o=new i(n),o._$AT(n,t,r)),r!==void 0?(t._$Co??=[])[r]=o:t._$Cl=o),o!==void 0&&(e=rr(n,o._$AS(n,e.values),o,r)),e}let $u=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??qt).importNode(t,!0);Ct.currentNode=o;let i=Ct.nextNode(),a=0,s=0,l=r[0];for(;l!==void 0;){if(a===l.index){let u;l.type===2?u=new ta(i,i.nextSibling,this,e):l.type===1?u=new l.ctor(i,l.name,l.strings,this,e):l.type===6&&(u=new Pu(i,this,e)),this._$AV.push(u),l=r[++s]}a!==l?.index&&(i=Ct.nextNode(),a++)}return Ct.currentNode=qt,o}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}},ta=class Cd{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=De,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=rr(this,e,t),Jr(e)?e===De||e==null||e===""?(this._$AH!==De&&this._$AR(),this._$AH=De):e!==this._$AH&&e!==tr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Au(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==De&&Jr(this._$AH)?this._$AA.nextSibling.data=e:this.T(qt.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Oi.createElement(Dd(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const i=new $u(o,this),a=i.u(this.options);i.p(t),this.T(a),this._$AH=i}}_$AC(e){let t=ks.get(e.strings);return t===void 0&&ks.set(e.strings,t=new Oi(e)),t}k(e){ea(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const i of e)o===t.length?t.push(r=new Cd(this.O(Wr()),this.O(Wr()),this,this.options)):r=t[o],r._$AI(i),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},On=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,i){this.type=1,this._$AH=De,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=De}_$AI(e,t=this,r,o){const i=this.strings;let a=!1;if(i===void 0)e=rr(this,e,t,0),a=!Jr(e)||e!==this._$AH&&e!==tr,a&&(this._$AH=e);else{const s=e;let l,u;for(e=i[0],l=0;l<i.length-1;l++)u=rr(this,s[r+l],t,l),u===tr&&(u=this._$AH[l]),a||=!Jr(u)||u!==this._$AH[l],u===De?e=De:e!==De&&(e+=(u??"")+i[l+1]),this._$AH[l]=u}a&&!o&&this.j(e)}j(e){e===De?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Du=class extends On{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===De?void 0:e}},Mu=class extends On{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==De)}},Cu=class extends On{constructor(e,t,r,o,i){super(e,t,r,o,i),this.type=5}_$AI(e,t=this){if((e=rr(this,e,t,0)??De)===tr)return;const r=this._$AH,o=e===De&&r!==De||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==De&&(r===De||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Pu=class{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){rr(this,e)}};const Bu=Zi.litHtmlPolyfillSupport;Bu?.(Oi,ta),(Zi.litHtmlVersions??=[]).push("3.3.1");const qu=(n,e,t)=>{const r=t?.renderBefore??e;let o=r._$litPart$;if(o===void 0){const i=t?.renderBefore??null;r._$litPart$=o=new ta(e.insertBefore(Wr(),i),i,void 0,t??{})}return o._$AI(n),o};/**
91
91
  * @license
92
92
  * Copyright 2017 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */const ta=globalThis;class Pt extends Qt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Cu(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return er}}Pt._$litElement$=!0,Pt.finalized=!0,ta.litElementHydrateSupport?.({LitElement:Pt});const Pu=ta.litElementPolyfillSupport;Pu?.({LitElement:Pt});(ta.litElementVersions??=[]).push("4.2.1");var Cd=r=>{throw TypeError(r)},Pd=(r,e,t)=>e.has(r)||Cd("Cannot "+t),_t=(r,e,t)=>(Pd(r,e,"read from private field"),t?t.call(r):e.get(r)),Bu=(r,e,t)=>e.has(r)?Cd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),qu=(r,e,t,n)=>(Pd(r,e,"write to private field"),e.set(r,t),t);const Ht=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)},pn=globalThis,ra=pn.ShadowRoot&&(pn.ShadyCSS===void 0||pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Bd=Symbol(),ks=new WeakMap;let Fu=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Bd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=r,this.t=e}get styleSheet(){let r=this.o;const e=this.t;if(ra&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=ks.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&ks.set(e,r))}return r}toString(){return this.cssText}};const zu=r=>new Fu(typeof r=="string"?r:r+"",void 0,Bd),Uu=(r,e)=>{if(ra)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const n=document.createElement("style"),o=pn.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=t.cssText,r.appendChild(n)}},Ss=ra?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return zu(t)})(r):r,{is:Hu,defineProperty:Gu,getOwnPropertyDescriptor:Vu,getOwnPropertyNames:Wu,getOwnPropertySymbols:Ju,getPrototypeOf:Qu}=Object,rr=globalThis,Es=rr.trustedTypes,Xu=Es?Es.emptyScript:"",Is=rr.reactiveElementPolyfillSupport,zr=(r,e)=>r,xn={toAttribute(r,e){switch(e){case Boolean:r=r?Xu:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},na=(r,e)=>!Hu(r,e),Rs={attribute:!0,type:String,converter:xn,reflect:!1,useDefault:!1,hasChanged:na};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),rr.litPropertyMetadata??(rr.litPropertyMetadata=new WeakMap);class yr extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Rs){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const n=Symbol(),o=this.getPropertyDescriptor(e,n,t);o!==void 0&&Gu(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:i}=Vu(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const s=o?.call(this);i?.call(this,a),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Rs}static _$Ei(){if(this.hasOwnProperty(zr("elementProperties")))return;const e=Qu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(zr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zr("properties"))){const t=this.properties,n=[...Wu(t),...Ju(t)];for(const o of n)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[n,o]of t)this.elementProperties.set(n,o)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const o=this._$Eu(t,n);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const o of n)t.unshift(Ss(o))}else e!==void 0&&t.push(Ss(e));return t}static _$Eu(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Uu(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var n;return(n=t.hostConnected)==null?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var n;return(n=t.hostDisconnected)==null?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){var n;const o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){const a=(((n=o.converter)==null?void 0:n.toAttribute)!==void 0?o.converter:xn).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){var n,o;const i=this.constructor,a=i._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const s=i.getPropertyOptions(a),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)==null?void 0:n.fromAttribute)!==void 0?s.converter:xn;this._$Em=a,this[a]=l.fromAttribute(t,s.type)??((o=this._$Ej)==null?void 0:o.get(a))??null,this._$Em=null}}requestUpdate(e,t,n){var o;if(e!==void 0){const i=this.constructor,a=this[e];if(n??(n=i.getPropertyOptions(e)),!((n.hasChanged??na)(a,t)||n.useDefault&&n.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(i._$Eu(e,n))))return;this.C(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:o,wrapped:i},a){n&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,a??t??this[e]),i!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[i,a]of o){const{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$EO)==null||e.forEach(o=>{var i;return(i=o.hostUpdate)==null?void 0:i.call(o)}),this.update(n)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(n=>{var o;return(o=n.hostUpdated)==null?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}yr.elementStyles=[],yr.shadowRootOptions={mode:"open"},yr[zr("elementProperties")]=new Map,yr[zr("finalized")]=new Map,Is?.({ReactiveElement:yr}),(rr.reactiveElementVersions??(rr.reactiveElementVersions=[])).push("2.1.0");const Ku={attribute:!0,type:String,converter:xn,reflect:!1,hasChanged:na},Yu=(r=Ku,e,t)=>{const{kind:n,metadata:o}=t;let i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),n==="setter"&&((r=Object.create(r)).wrapped=!0),i.set(t.name,r),n==="accessor"){const{name:a}=t;return{set(s){const l=e.get.call(this);e.set.call(this,s),this.requestUpdate(a,l,r)},init(s){return s!==void 0&&this.C(a,void 0,r,s),s}}}if(n==="setter"){const{name:a}=t;return function(s){const l=this[a];e.call(this,s),this.requestUpdate(a,l,r)}}throw Error("Unsupported decorator location: "+n)};function xe(r){return(e,t)=>typeof t=="object"?Yu(r,e,t):((n,o,i)=>{const a=o.hasOwnProperty(i);return o.constructor.createProperty(i,n),a?Object.getOwnPropertyDescriptor(o,i):void 0})(r,e,t)}function oa(r){return xe({...r,state:!0,attribute:!1})}const Zu=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function ut(r,e){return(t,n,o)=>{const i=a=>{var s;return((s=a.renderRoot)==null?void 0:s.querySelector(r))??null};return Zu(t,n,{get(){return i(this)}})}}var ep=Object.defineProperty,Gt=(r,e,t,n)=>{for(var o=void 0,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=a(e,t,o)||o);return o&&ep(e,t,o),o};const $i=class extends Pt{constructor(){super(...arguments),this.dense=!1}};$i.shadowRootOptions={...Pt.shadowRootOptions,delegatesFocus:!0},$i.styles=[wt`
94
+ */const ra=globalThis;class Bt extends Xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=qu(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return tr}}Bt._$litElement$=!0,Bt.finalized=!0,ra.litElementHydrateSupport?.({LitElement:Bt});const Fu=ra.litElementPolyfillSupport;Fu?.({LitElement:Bt});(ra.litElementVersions??=[]).push("4.2.1");var Pd=n=>{throw TypeError(n)},Bd=(n,e,t)=>e.has(n)||Pd("Cannot "+t),_t=(n,e,t)=>(Bd(n,e,"read from private field"),t?t.call(n):e.get(n)),zu=(n,e,t)=>e.has(n)?Pd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),Uu=(n,e,t,r)=>(Bd(n,e,"write to private field"),e.set(n,t),t);const Gt=n=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(n,e)}):customElements.define(n,e)},fn=globalThis,na=fn.ShadowRoot&&(fn.ShadyCSS===void 0||fn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qd=Symbol(),Ss=new WeakMap;let Hu=class{constructor(n,e,t){if(this._$cssResult$=!0,t!==qd)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=e}get styleSheet(){let n=this.o;const e=this.t;if(na&&n===void 0){const t=e!==void 0&&e.length===1;t&&(n=Ss.get(e)),n===void 0&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),t&&Ss.set(e,n))}return n}toString(){return this.cssText}};const Gu=n=>new Hu(typeof n=="string"?n:n+"",void 0,qd),Vu=(n,e)=>{if(na)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),o=fn.litNonce;o!==void 0&&r.setAttribute("nonce",o),r.textContent=t.cssText,n.appendChild(r)}},Es=na?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return Gu(t)})(n):n,{is:Wu,defineProperty:Ju,getOwnPropertyDescriptor:Qu,getOwnPropertyNames:Xu,getOwnPropertySymbols:Ku,getPrototypeOf:Yu}=Object,nr=globalThis,Is=nr.trustedTypes,Zu=Is?Is.emptyScript:"",Rs=nr.reactiveElementPolyfillSupport,Hr=(n,e)=>n,_n={toAttribute(n,e){switch(e){case Boolean:n=n?Zu:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},oa=(n,e)=>!Wu(n,e),Ns={attribute:!0,type:String,converter:_n,reflect:!1,useDefault:!1,hasChanged:oa};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),nr.litPropertyMetadata??(nr.litPropertyMetadata=new WeakMap);class xr extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ns){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);o!==void 0&&Ju(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:i}=Qu(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const s=o?.call(this);i?.call(this,a),this.requestUpdate(e,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ns}static _$Ei(){if(this.hasOwnProperty(Hr("elementProperties")))return;const e=Yu(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hr("properties"))){const t=this.properties,r=[...Xu(t),...Ku(t)];for(const o of r)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,o]of t)this.elementProperties.set(r,o)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const o=this._$Eu(t,r);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const o of r)t.unshift(Es(o))}else e!==void 0&&t.push(Es(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Vu(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){var r;const o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){const a=(((r=o.converter)==null?void 0:r.toAttribute)!==void 0?o.converter:_n).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){var r,o;const i=this.constructor,a=i._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const s=i.getPropertyOptions(a),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:_n;this._$Em=a,this[a]=l.fromAttribute(t,s.type)??((o=this._$Ej)==null?void 0:o.get(a))??null,this._$Em=null}}requestUpdate(e,t,r){var o;if(e!==void 0){const i=this.constructor,a=this[e];if(r??(r=i.getPropertyOptions(e)),!((r.hasChanged??oa)(a,t)||r.useDefault&&r.reflect&&a===((o=this._$Ej)==null?void 0:o.get(e))&&!this.hasAttribute(i._$Eu(e,r))))return;this.C(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:r,reflect:o,wrapped:i},a){r&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,a??t??this[e]),i!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[i,a]of o){const{wrapped:s}=a,l=this[i];s!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,a,l)}}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(o=>{var i;return(i=o.hostUpdate)==null?void 0:i.call(o)}),this.update(r)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var o;return(o=r.hostUpdated)==null?void 0:o.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}xr.elementStyles=[],xr.shadowRootOptions={mode:"open"},xr[Hr("elementProperties")]=new Map,xr[Hr("finalized")]=new Map,Rs?.({ReactiveElement:xr}),(nr.reactiveElementVersions??(nr.reactiveElementVersions=[])).push("2.1.0");const ep={attribute:!0,type:String,converter:_n,reflect:!1,hasChanged:oa},tp=(n=ep,e,t)=>{const{kind:r,metadata:o}=t;let i=globalThis.litPropertyMetadata.get(o);if(i===void 0&&globalThis.litPropertyMetadata.set(o,i=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),i.set(t.name,n),r==="accessor"){const{name:a}=t;return{set(s){const l=e.get.call(this);e.set.call(this,s),this.requestUpdate(a,l,n)},init(s){return s!==void 0&&this.C(a,void 0,n,s),s}}}if(r==="setter"){const{name:a}=t;return function(s){const l=this[a];e.call(this,s),this.requestUpdate(a,l,n)}}throw Error("Unsupported decorator location: "+r)};function we(n){return(e,t)=>typeof t=="object"?tp(n,e,t):((r,o,i)=>{const a=o.hasOwnProperty(i);return o.constructor.createProperty(i,r),a?Object.getOwnPropertyDescriptor(o,i):void 0})(n,e,t)}function ia(n){return we({...n,state:!0,attribute:!1})}const rp=(n,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(n,e,t),t);function ut(n,e){return(t,r,o)=>{const i=a=>{var s;return((s=a.renderRoot)==null?void 0:s.querySelector(n))??null};return rp(t,r,{get(){return i(this)}})}}var np=Object.defineProperty,Vt=(n,e,t,r)=>{for(var o=void 0,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=a(e,t,o)||o);return o&&np(e,t,o),o};const $i=class extends Bt{constructor(){super(...arguments),this.dense=!1}};$i.shadowRootOptions={...Bt.shadowRootOptions,delegatesFocus:!0},$i.styles=[wt`
95
95
  :host {
96
96
  /* color-scheme: light dark; */
97
97
  --rokit-primary-color-inner: var(--rokit-primary-color, #008877);
@@ -114,30 +114,34 @@ a, a:visited { color: inherit; }
114
114
  }
115
115
  }
116
116
  */
117
- `];let Vt=$i;Gt([xe({type:Boolean,reflect:!0})],Vt.prototype,"dense");var ot;const Di=class extends Vt{constructor(){super(),Bu(this,ot),this.value="",this.clearable=!1,this.required=!1,qu(this,ot,this.attachInternals())}checkValidity(){return _t(this,ot).checkValidity()}reportValidity(){const e=_t(this,ot).reportValidity();return this.classList.toggle("invalid",!e),e}get validity(){return _t(this,ot).validity}get validationMessage(){return _t(this,ot).validationMessage}setCustomValidity(e,t){e?_t(this,ot).setValidity({customError:!0},e,t):_t(this,ot).setValidity(void 0)}updateValidity(e,t,n){_t(this,ot).setValidity(e,t,n)}setFormValue(e,t){_t(this,ot).setFormValue(e,t)}};ot=new WeakMap,Di.formAssociated=!0,Di.styles=[...Vt.styles,wt`
117
+ `];let Wt=$i;Vt([we({type:Boolean,reflect:!0})],Wt.prototype,"dense");var ot;const Di=class extends Wt{constructor(){super(),zu(this,ot),this.value="",this.clearable=!1,this.required=!1,Uu(this,ot,this.attachInternals())}checkValidity(){return _t(this,ot).checkValidity()}reportValidity(){const e=_t(this,ot).reportValidity();return this.classList.toggle("invalid",!e),e}get validity(){return _t(this,ot).validity}get validationMessage(){return _t(this,ot).validationMessage}setCustomValidity(e,t){e?_t(this,ot).setValidity({customError:!0},e,t):_t(this,ot).setValidity(void 0)}updateValidity(e,t,r){_t(this,ot).setValidity(e,t,r)}setFormValue(e,t){_t(this,ot).setFormValue(e,t)}};ot=new WeakMap,Di.formAssociated=!0,Di.styles=[...Wt.styles,wt`
118
118
  :host { display: inline-flex; align-items: center; padding: 6px 8px; border-bottom: 2px solid var(--rokit-light-background-darker-color-inner); box-sizing: border-box; position: relative; }
119
119
  :host(:focus) { border-color: var(--rokit-primary-color-inner); }
120
120
  :host(.invalid) { border-color: var(--rokit-error-color-inner); }
121
- `];let pt=Di;Gt([xe()],pt.prototype,"name");Gt([xe()],pt.prototype,"value");Gt([xe({type:Boolean})],pt.prototype,"clearable");Gt([xe({type:Boolean})],pt.prototype,"required");Gt([xe()],pt.prototype,"label");Gt([xe()],pt.prototype,"placeholder");function tp(r){const e=parseFloat(r),t=r.match(/m?s/);let n=0;if(t)switch(t[0]){case"s":n=e*1e3;break;case"ms":n=e;break;default:n=0;break}return n}var rp=(r,e,t,n)=>{for(var o=e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=a(o)||o);return o};let Wr=class extends Vt{render(){return ct`<a part="link"><slot><slot></a>`}};Wr.styles=[...Vt.styles,wt`
122
- :host a { display: flex; min-width: 1em; height: 1em; padding: 0.5em; cursor: pointer; border-radius: 1em; align-items: center; justify-content: center; }
123
- :host a:hover { font-weight: 600; background-color: var(--rokit-light-background-darker-color-inner); }
121
+ `];let pt=Di;Vt([we()],pt.prototype,"name");Vt([we()],pt.prototype,"value");Vt([we({type:Boolean})],pt.prototype,"clearable");Vt([we({type:Boolean})],pt.prototype,"required");Vt([we()],pt.prototype,"label");Vt([we()],pt.prototype,"placeholder");function op(n){const e=parseFloat(n),t=n.match(/m?s/);let r=0;if(t)switch(t[0]){case"s":r=e*1e3;break;case"ms":r=e;break;default:r=0;break}return r}var ip=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,Fd=(n,e,t,r)=>{for(var o=r>1?void 0:r?ap(e,t):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&ip(e,t,o),o};let or=class extends Wt{constructor(){super(...arguments),this.icon=!1}render(){return ct`<a part="link"><slot><slot></a>`}};or.styles=[...Wt.styles,wt`
122
+ :host { display: inline-flex; }
123
+ :host a { display: flex; min-width: 1em; height: 1em; padding: 0.5em; cursor: pointer; border-radius: 0.6em; align-items: center; justify-content: center; }
124
+ :host a:hover { text-shadow: 0 0 1px; }
125
+ :host(:not([icon])) a { background-color: var(--rokit-light-background-color-inner); }
126
+ :host([icon]) a { border-radius: 1em; }
127
+ :host([icon]) a:hover { text-shadow: 0 0 1px var(--rokit-shadow-color-inner); background-color: var(--rokit-light-background-darker-color-inner); }
124
128
  :host([dense]) { font-size: 0.65em; }
125
129
  :host(.clear) a:before { content: '\u2715'; }
126
130
  :host(.caret) a:before { content: ''; width: var(--rokit-caret-size-inner); height: var(--rokit-caret-size-inner); border-style: none solid solid none; border-width: calc(0.3 * var(--rokit-caret-size-inner)); transform: translate(0.15em, -0.15em) rotate(45deg); transition: transform var(--rokit-transition-duration-inner) ease-out; margin-right: calc(0.5 * var(--rokit-caret-size-inner)); }
127
131
  :host(.caret.down) a:before { transform: translate(0.15em, 0.15em) rotate(225deg); }
128
132
  :host(.caret.right) a:before { transform: translate(0em, 0em) rotate(-45deg); }
129
- `];Wr=rp([Ht("rokit-button")],Wr);var np=Object.defineProperty,op=Object.getOwnPropertyDescriptor,Wt=(r,e,t,n)=>{for(var o=n>1?void 0:n?op(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=(n?a(e,t,o):a(o))||o);return n&&o&&np(e,t,o),o};let Qe=class extends Vt{constructor(){super(...arguments),this.open=!1,this.transitioning=!1,this.closedBeforeTransition=!1}firstUpdated(){const r=this.shadowRoot.querySelector("header");r.addEventListener("mousedown",()=>{this.closedBeforeTransition=!this.open&&!this.transitioning}),r.addEventListener("click",()=>{this.toggle(this.closedBeforeTransition)}),this.transitionDuration=tp(getComputedStyle(this).getPropertyValue("--rokit-transition-duration-inner"))}updated(r){r.has("transitioning")&&this.classList.toggle("transitioning",this.transitioning),r.has("open")&&(this.transitioning||this.toggle(this.open))}updateContentHeight(){setTimeout(()=>{this.content.style.maxHeight=(this.maxHeight!==void 0?Math.min(this.maxHeight,this.content.scrollHeight):this.content.scrollHeight)+"px",this.classList.toggle("has-content",this.content.style.maxHeight!=="0px")})}onSlotChange(){const r=this.shadowRoot.querySelector("#content > slot").assignedNodes(),e=new MutationObserver(()=>this.updateContentHeight());for(const t of r)e.observe(t,{subtree:!0,childList:!0,characterData:!0});this.updateContentHeight()}toggle(r=!this.open){this.transitioning=!0,this.open=r,this.toggleButton.classList.toggle("down",r),setTimeout(()=>{this.transitioning=!1,this.open&&this.content.scrollIntoView({block:"nearest"})},this.transitionDuration)}render(){return ct`
133
+ `];Fd([we({type:Boolean,reflect:!0})],or.prototype,"icon",2);or=Fd([Gt("rokit-button")],or);var sp=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,Jt=(n,e,t,r)=>{for(var o=r>1?void 0:r?lp(e,t):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&sp(e,t,o),o};let Qe=class extends Wt{constructor(){super(...arguments),this.open=!1,this.transitioning=!1,this.closedBeforeTransition=!1}firstUpdated(){const n=this.shadowRoot.querySelector("header");n.addEventListener("mousedown",()=>{this.closedBeforeTransition=!this.open&&!this.transitioning}),n.addEventListener("click",()=>{this.toggle(this.closedBeforeTransition,!0)}),this.transitionDuration=op(getComputedStyle(this).getPropertyValue("--rokit-transition-duration-inner"))}updated(n){n.has("transitioning")&&this.classList.toggle("transitioning",this.transitioning),n.has("open")&&(this.transitioning||this.toggle(this.open))}updateContentHeight(){setTimeout(()=>{this.content.style.maxHeight=(this.maxHeight!==void 0?Math.min(this.maxHeight,this.content.scrollHeight):this.content.scrollHeight)+"px",this.classList.toggle("has-content",this.content.style.maxHeight!=="0px")})}onSlotChange(){const n=this.shadowRoot.querySelector("#content > slot").assignedNodes(),e=new MutationObserver(()=>this.updateContentHeight());for(const t of n)e.observe(t,{subtree:!0,childList:!0,characterData:!0});this.updateContentHeight()}toggle(n=!this.open,e=!1){this.transitioning=!0,this.open=n,this.toggleButton.classList.toggle("down",n),setTimeout(()=>{this.transitioning=!1,this.open&&e&&this.content.scrollIntoView({block:"nearest"})},this.transitionDuration)}render(){return ct`
130
134
  <header part="header">
131
135
  <slot name="prefix" part="prefix"></slot>
132
136
  <span class="label"><slot name="label" part="label">${this.label}</slot></span>
133
137
  <slot name="pre-suffix" part="suffix"></slot>
134
- <rokit-button id="toggle" part="toggle" class="caret" ?dense="${this.dense}" title="${this.open?"Collapse":"Expand"}"></rokit-button>
138
+ <rokit-button id="toggle" part="toggle" class="caret" icon ?dense="${this.dense}" title="${this.open?"Collapse":"Expand"}"></rokit-button>
135
139
  <slot name="suffix" part="suffix"></slot>
136
140
  </header>
137
141
  <div id="content" part="content">
138
142
  <slot @slotchange=${this.onSlotChange}></slot>
139
143
  </div>
140
- `}};Qe.styles=[...Vt.styles,wt`
144
+ `}};Qe.styles=[...Wt.styles,wt`
141
145
  :host { display: flex; flex-direction: column; align-items: stretch; border-bottom: 2px solid var(--rokit-light-background-darker-color-inner); }
142
146
  :host header { cursor: pointer; }
143
147
  :host([dense]) header { padding: 2px 4px; }
@@ -149,17 +153,17 @@ a, a:visited { color: inherit; }
149
153
  .label { flex-grow: 1; }
150
154
  #content { display: flex; transition: max-height var(--rokit-transition-duration-inner) ease-in-out; position: relative; scrollbar-width: thin; }
151
155
  #toggle { margin-left: 3px; }
152
- `];Wt([xe({type:Boolean,reflect:!0})],Qe.prototype,"open",2);Wt([xe()],Qe.prototype,"label",2);Wt([xe({reflect:!0})],Qe.prototype,"maxHeight",2);Wt([ut("#content")],Qe.prototype,"content",2);Wt([ut("#toggle")],Qe.prototype,"toggleButton",2);Wt([oa()],Qe.prototype,"transitioning",2);Qe=Wt([Ht("rokit-collapsible")],Qe);var ip=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,qd=r=>{throw TypeError(r)},Xe=(r,e,t,n)=>{for(var o=n>1?void 0:n?ap(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=(n?a(e,t,o):a(o))||o);return n&&o&&ip(e,t,o),o},Fd=(r,e,t)=>e.has(r)||qd("Cannot "+t),sp=(r,e,t)=>(Fd(r,e,"read from private field"),e.get(r)),lp=(r,e,t)=>e.has(r)?qd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Ns=(r,e,t,n)=>(Fd(r,e,"write to private field"),e.set(r,t),t),Dr;let $e=class extends pt{constructor(){super(),this.type="text",this.disabled=!1,this.readonly=!1,this.sticky=!1,this.minWidth=80,lp(this,Dr,""),this.addEventListener("keydown",r=>{r.code==="Escape"&&this.blur()}),this.addEventListener("focus",()=>{this.classList.add("has-focus")}),this.addEventListener("blur",()=>{this.inputElement.scrollLeft=0,this.classList.remove("has-focus")})}firstUpdated(){Ns(this,Dr,this.value),this.inputElement.addEventListener("change",()=>{this.value=this.inputElement.value}),this.updateMinWidth()}updateMinWidth(){var r,e;const t=((e=(r=this.shadowRoot)==null?void 0:r.querySelector("label"))==null?void 0:e.scrollWidth)||0,n=this.shadowRoot.querySelector(".wrapper");n.style.minWidth=`${this.minWidth>t?this.minWidth:t}px`}updated(r){r.has("label")&&this.classList.toggle("has-label",this.label!==void 0),r.has("min")&&(this.inputElement.min=this.min||""),r.has("max")&&(this.inputElement.max=this.max||""),r.has("step")&&(this.inputElement.step=this.step||""),r.has("placeholder")&&(this.inputElement.placeholder=this.placeholder||""),r.has("pattern")&&(this.inputElement.pattern=this.pattern||""),r.has("minLength")&&(this.inputElement.minLength=this.minLength===void 0?-1:this.minLength),r.has("maxLength")&&(this.inputElement.maxLength=this.maxLength===void 0?-1:this.maxLength),r.has("value")&&(this.classList.toggle("has-value",this.value!==""),this.setFormValue(this.value),this.updateValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement),this.value!==sp(this,Dr)&&(Ns(this,Dr,this.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))))}clear(){this.inputElement.value="",this.value="",this.blur()}renderInput(){return ct`<input id="input" part="input" size="1" name="${this.name}" type="${this.type}" autocomplete="off" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" .value="${this.type==="file"?"":this.value}">`}render(){return ct`
156
+ `];Jt([we({type:Boolean,reflect:!0})],Qe.prototype,"open",2);Jt([we()],Qe.prototype,"label",2);Jt([we({reflect:!0})],Qe.prototype,"maxHeight",2);Jt([ut("#content")],Qe.prototype,"content",2);Jt([ut("#toggle")],Qe.prototype,"toggleButton",2);Jt([ia()],Qe.prototype,"transitioning",2);Qe=Jt([Gt("rokit-collapsible")],Qe);var dp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,zd=n=>{throw TypeError(n)},Xe=(n,e,t,r)=>{for(var o=r>1?void 0:r?cp(e,t):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&dp(e,t,o),o},Ud=(n,e,t)=>e.has(n)||zd("Cannot "+t),up=(n,e,t)=>(Ud(n,e,"read from private field"),e.get(n)),pp=(n,e,t)=>e.has(n)?zd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),js=(n,e,t,r)=>(Ud(n,e,"write to private field"),e.set(n,t),t),Cr;let $e=class extends pt{constructor(){super(),this.type="text",this.disabled=!1,this.readonly=!1,this.sticky=!1,this.minWidth=80,pp(this,Cr,""),this.addEventListener("keydown",n=>{n.code==="Escape"&&this.blur()}),this.addEventListener("focus",()=>{this.classList.add("has-focus")}),this.addEventListener("blur",()=>{this.inputElement.scrollLeft=0,this.classList.remove("has-focus")})}firstUpdated(){js(this,Cr,this.value),this.inputElement.addEventListener("change",()=>{this.value=this.inputElement.value}),this.updateMinWidth()}updateMinWidth(){var n,e;const t=((e=(n=this.shadowRoot)==null?void 0:n.querySelector("label"))==null?void 0:e.scrollWidth)||0,r=this.shadowRoot.querySelector(".wrapper");r.style.minWidth=`${this.minWidth>t?this.minWidth:t}px`}updated(n){n.has("label")&&this.classList.toggle("has-label",this.label!==void 0),n.has("min")&&(this.inputElement.min=this.min||""),n.has("max")&&(this.inputElement.max=this.max||""),n.has("step")&&(this.inputElement.step=this.step||""),n.has("placeholder")&&(this.inputElement.placeholder=this.placeholder||""),n.has("pattern")&&(this.inputElement.pattern=this.pattern||""),n.has("minLength")&&(this.inputElement.minLength=this.minLength===void 0?-1:this.minLength),n.has("maxLength")&&(this.inputElement.maxLength=this.maxLength===void 0?-1:this.maxLength),n.has("value")&&(this.classList.toggle("has-value",this.value!==""),this.setFormValue(this.value),this.updateValidity(this.inputElement.validity,this.inputElement.validationMessage,this.inputElement),this.value!==up(this,Cr)&&(js(this,Cr,this.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))))}clear(){this.inputElement.value="",this.value="",this.blur()}renderInput(){return ct`<input id="input" part="input" size="1" name="${this.name}" type="${this.type}" autocomplete="off" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" .value="${this.type==="file"?"":this.value}">`}render(){return ct`
153
157
  <slot name="prefix" part="prefix"></slot>
154
158
  <div class="wrapper">
155
159
  <label for="input" part="label">${this.label}</label>
156
160
  ${this.renderInput()}
157
161
  ${this.clearable?ct`
158
- <rokit-button class="clear" ?dense="${this.dense}" @mousedown="${r=>{r.preventDefault()}}" @click="${r=>{r.stopPropagation(),this.clear()}}" title="Clear"></rokit-button>
162
+ <rokit-button class="clear" icon ?dense="${this.dense}" @mousedown="${n=>{n.preventDefault()}}" @click="${n=>{n.stopPropagation(),this.clear()}}" title="Clear"></rokit-button>
159
163
  `:De}
160
164
  </div>
161
165
  <slot name="suffix" part="suffix"></slot>
162
- `}};Dr=new WeakMap;$e.styles=[...pt.styles,wt`
166
+ `}};Cr=new WeakMap;$e.styles=[...pt.styles,wt`
163
167
  :host { background-color: var(--rokit-light-background-color-inner); user-select: none; }
164
168
  :host([dense]) { padding: 2px 4px; }
165
169
  :host(.has-focus:not([readonly])) label, :host(.has-value) label, :host([sticky]) label { font-size: 0.75em; top: 0.5em; font-weight: 600; }
@@ -173,7 +177,7 @@ a, a:visited { color: inherit; }
173
177
  :host(.has-label) #input { margin-top: 0.9em; }
174
178
  :host(.has-label:not(.has-focus):not(.has-value):not([sticky])) #input { clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
175
179
  :host(:not(.has-value)) .clear { visibility: hidden; }
176
- `];Xe([xe()],$e.prototype,"type",2);Xe([xe({type:Boolean})],$e.prototype,"disabled",2);Xe([xe({type:Boolean,reflect:!0})],$e.prototype,"readonly",2);Xe([xe({type:Boolean,reflect:!0})],$e.prototype,"sticky",2);Xe([xe()],$e.prototype,"pattern",2);Xe([xe()],$e.prototype,"minLength",2);Xe([xe()],$e.prototype,"maxLength",2);Xe([xe()],$e.prototype,"min",2);Xe([xe()],$e.prototype,"max",2);Xe([xe()],$e.prototype,"step",2);Xe([xe()],$e.prototype,"minWidth",2);Xe([ut("#input")],$e.prototype,"inputElement",2);$e=Xe([Ht("rokit-input")],$e);var dp=Object.defineProperty,cp=Object.getOwnPropertyDescriptor,zd=r=>{throw TypeError(r)},Ge=(r,e,t,n)=>{for(var o=n>1?void 0:n?cp(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=(n?a(e,t,o):a(o))||o);return n&&o&&dp(e,t,o),o},Ud=(r,e,t)=>e.has(r)||zd("Cannot "+t),js=(r,e,t)=>(Ud(r,e,"read from private field"),t?t.call(r):e.get(r)),Ts=(r,e,t)=>e.has(r)?zd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),ln=(r,e,t,n)=>(Ud(r,e,"write to private field"),e.set(r,t),t),Xt,fn;let Me=class extends pt{constructor(){super(),this.emptyMessage="Nothing to select",this.collapsibleOrientationLeft="0",this.collapsibleOrientationRight="0",this.collapsibleWidth="",this.collapse=!1,this.filterableThreshold=15,this.itemCount=0,Ts(this,Xt,""),Ts(this,fn,""),this.addEventListener("focus",()=>{this.collapsible.toggle(!0)}),this.addEventListener("blur",()=>{this.checkInputValue(),this.collapsible.toggle(!1)})}firstUpdated(){ln(this,Xt,this.value),ln(this,fn,getComputedStyle(this).getPropertyValue("--rokit-list-indent-inner")),this.input.placeholder=this.placeholder===void 0?"Type to filter list...":this.placeholder,this.input.label=this.label,this.inputMinWidth!==void 0&&(this.input.minWidth=this.inputMinWidth),setTimeout(()=>{this.collapsible.maxHeight=parseInt(this.collapsibleMaxHeight!==void 0?this.collapsibleMaxHeight:getComputedStyle(this).getPropertyValue("--rokit-list-max-height-inner")),this.collapsible.content.style.width=this.collapsibleWidth,this.collapsible.content.style.left=this.collapsibleOrientationLeft,this.collapsible.content.style.right=this.collapsibleOrientationRight})}updated(r){var e;if(r.has("selectedItem")){const t=this.value;this.value=this.selectedItem?this.itemValue(this.selectedItem):"",this.input.value=this.selectedItem?this.itemText(this.selectedItem):this.value,this.input.title=this.input.value,this.classList.toggle("has-value",this.value!==""),this.setFormValue(this.value),this.required&&this.value===""?this.updateValidity({valueMissing:!0},"Please select a value",this.listContainer):this.updateValidity(),t!==this.value&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}r.has("value")&&this.selectItem(this.findItem(this.value)),(r.has("filterableThreshold")||r.has("itemCount"))&&(this.input.readonly=this.filterableThreshold<0||this.itemCount<this.filterableThreshold),(e=this.collapsible)!=null&&e.toggleButton&&(this.collapsible.toggleButton.style.display=this.listContainer.childElementCount===0?"none":"")}checkInputValue(r=!0){if(this.input.value){const e=this.findItem(this.input.value);if(e){this.selectItem(e);return}}r&&(this.input.value="",this.input.title="",ln(this,Xt,""),this.selectItem(null,!1))}filter(r){var e,t,n;r=r.toLowerCase();let o=!0;for(const i of this.listContainer.querySelectorAll("li"))if(i.id!=="noresult"){const a=this.itemText(i).toLowerCase().indexOf(r)==-1;i.classList.toggle("hidden",a),this.collapse&&(i.classList.remove("open"),(e=i.querySelector("ul"))==null||e.classList.remove("open")),a||(o=!1)}for(const i of this.listContainer.querySelectorAll("li:has(li:not(.hidden))"))i.classList.remove("hidden"),r&&this.collapse&&(i.classList.add("open"),(t=i.querySelector("ul"))==null||t.classList.add("open")),o=!1;this.highlightItem(null),(n=this.listContainer.querySelector("#noresult"))==null||n.classList.toggle("hidden",!o)}selectItem(r,e=!0){r?.getAttribute("disabled")!==null&&(r=null),this.selectedItem=r,this.filter(""),this.highlightItem(r,!1),e&&this.value&&ln(this,Xt,this.value),setTimeout(()=>this.blur())}findItem(r){if(r){for(const e of this.listContainer.querySelectorAll("li"))if(this.itemValue(e)===r||this.itemText(e)===r)return e}return null}highlightItem(r,e=!0){var t,n;if((t=this.listContainer.querySelector("li.active"))==null||t.classList.remove("active"),r){if(e&&this.listContainer.focus(),r.classList.add("active"),this.collapse)for(let o=r.closest("ul");o;o=o.parentElement.closest("ul"))o.classList.add("open"),(n=o.closest("li"))==null||n.classList.add("open");r.scrollIntoView({block:"nearest"})}}highlightNextItem(){const r=this.listContainer.querySelector("li.active");let e=r;const t=this.listContainer.querySelectorAll("ul.open > li:not([disabled]):not(.hidden):not(.divider)");if(r){for(let n=0;n<t.length;n++)if(t[n]===r&&n<t.length-1){e=t[n+1];break}}else t.length>0&&(e=t[0]);this.highlightItem(e)}highlightPreviousItem(){const r=this.listContainer.querySelector("li.active");let e=null;if(r){const t=this.listContainer.querySelectorAll("ul.open > li:not([disabled]):not(.hidden):not(.divider)");for(let n=0;n<t.length;n++)if(t[n]===r&&n>0){e=t[n-1];break}}this.highlightItem(e),e||this.input.focus()}itemValue(r){return r.dataset.value||this.itemText(r)||""}itemText(r){var e;return((e=r.querySelector("div > div"))==null?void 0:e.innerText)||""}elementText(r){var e;let t="";for(const n of r.childNodes)n.nodeType==3&&(t+=(e=n.nodeValue)==null?void 0:e.trim());return t}onSlotChange(){this.listContainer.replaceChildren(),this.itemCount=0;let r=null;const e=this.shadowRoot.querySelector("#list-container-slot").assignedElements();if(e?.length===1&&(r=Array.prototype.slice.call(e[0].querySelectorAll(":scope > li")),this.copyItems(r,this.listContainer)),this.emptyMessage){const t=document.createElement("li");t.id="noresult",t.setAttribute("disabled",""),t.innerText=this.emptyMessage,this.listContainer.appendChild(t),r&&r.length>0&&t.classList.add("hidden")}this.value=this.value||js(this,Xt),this.selectItem(this.findItem(this.value))}copyItems(r,e,t=0){if(this.sort!==void 0){const o=this.sort||"asc";r=r.sort((i,a)=>o==="desc"?(this.elementText(a)||this.itemValue(a)).localeCompare(this.elementText(i)||this.itemValue(i)):(this.elementText(i)||this.itemValue(i)).localeCompare(this.elementText(a)||this.itemValue(a)))}let n="";t>0&&(n=`calc(0.3em + ${t}*${js(this,fn)})`);for(const o of r){const i=o.cloneNode();i.replaceChildren();const a=document.createElement("div");n&&(a.style.paddingLeft=n);const s=document.createElement("div");a.appendChild(s);for(const u of o.childNodes)if(u.nodeName!=="UL"){const f=u.cloneNode(!0);f.nodeType===3&&f.nodeValue&&(f.nodeValue=f.nodeValue.trim()),s.appendChild(f)}i.appendChild(a),i.title=i.title||this.itemText(i);const l=o.querySelector("ul");if(l!=null&&l.childElementCount){const u=document.createElement("ul");if(i.appendChild(u),this.copyItems(Array.prototype.slice.call(l.children),u,t+1),this.collapse){const f=new Wr;f.title="Open",f.dense=!0,f.classList.add("toggle-node","caret"),f.addEventListener("click",m=>{m.stopPropagation(),i.classList.toggle("open"),u.classList.toggle("open"),f.title=i.classList.contains("open")?"Close":"Open",this.collapsible.updateContentHeight()}),a.prepend(f)}else u.classList.add("open")}e.appendChild(i),this.itemCount++}}render(){return ct`
180
+ `];Xe([we()],$e.prototype,"type",2);Xe([we({type:Boolean})],$e.prototype,"disabled",2);Xe([we({type:Boolean,reflect:!0})],$e.prototype,"readonly",2);Xe([we({type:Boolean,reflect:!0})],$e.prototype,"sticky",2);Xe([we()],$e.prototype,"pattern",2);Xe([we()],$e.prototype,"minLength",2);Xe([we()],$e.prototype,"maxLength",2);Xe([we()],$e.prototype,"min",2);Xe([we()],$e.prototype,"max",2);Xe([we()],$e.prototype,"step",2);Xe([we()],$e.prototype,"minWidth",2);Xe([ut("#input")],$e.prototype,"inputElement",2);$e=Xe([Gt("rokit-input")],$e);var fp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Hd=n=>{throw TypeError(n)},Ge=(n,e,t,r)=>{for(var o=r>1?void 0:r?hp(e,t):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&fp(e,t,o),o},Gd=(n,e,t)=>e.has(n)||Hd("Cannot "+t),Ts=(n,e,t)=>(Gd(n,e,"read from private field"),t?t.call(n):e.get(n)),As=(n,e,t)=>e.has(n)?Hd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),dn=(n,e,t,r)=>(Gd(n,e,"write to private field"),e.set(n,t),t),Kt,hn;let Me=class extends pt{constructor(){super(),this.emptyMessage="Nothing to select",this.collapsibleOrientationLeft="0",this.collapsibleOrientationRight="0",this.collapsibleWidth="",this.collapse=!1,this.filterableThreshold=15,this.itemCount=0,As(this,Kt,""),As(this,hn,""),this.addEventListener("focus",()=>{this.collapsible.toggle(!0)}),this.addEventListener("blur",()=>{this.checkInputValue(),this.collapsible.toggle(!1)})}firstUpdated(){dn(this,Kt,this.value),dn(this,hn,getComputedStyle(this).getPropertyValue("--rokit-list-indent-inner")),this.input.placeholder=this.placeholder===void 0?"Type to filter list...":this.placeholder,this.input.label=this.label,this.inputMinWidth!==void 0&&(this.input.minWidth=this.inputMinWidth),setTimeout(()=>{this.collapsible.maxHeight=parseInt(this.collapsibleMaxHeight!==void 0?this.collapsibleMaxHeight:getComputedStyle(this).getPropertyValue("--rokit-list-max-height-inner")),this.collapsible.content.style.width=this.collapsibleWidth,this.collapsible.content.style.left=this.collapsibleOrientationLeft,this.collapsible.content.style.right=this.collapsibleOrientationRight})}updated(n){var e;if(n.has("selectedItem")){const t=this.value;this.value=this.selectedItem?this.itemValue(this.selectedItem):"",this.input.value=this.selectedItem?this.itemText(this.selectedItem):this.value,this.input.title=this.input.value,this.classList.toggle("has-value",this.value!==""),this.setFormValue(this.value),this.required&&this.value===""?this.updateValidity({valueMissing:!0},"Please select a value",this.listContainer):this.updateValidity(),t!==this.value&&this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}n.has("value")&&this.selectItem(this.findItem(this.value)),(n.has("filterableThreshold")||n.has("itemCount"))&&(this.input.readonly=this.filterableThreshold<0||this.itemCount<this.filterableThreshold),(e=this.collapsible)!=null&&e.toggleButton&&(this.collapsible.toggleButton.style.display=this.listContainer.childElementCount===0?"none":"")}checkInputValue(n=!0){if(this.input.value){const e=this.findItem(this.input.value);if(e){this.selectItem(e);return}}n&&(this.input.value="",this.input.title="",dn(this,Kt,""),this.selectItem(null,!1))}filter(n){var e,t,r;n=n.toLowerCase();let o=!0;for(const i of this.listContainer.querySelectorAll("li"))if(i.id!=="noresult"){const a=this.itemText(i).toLowerCase().indexOf(n)==-1;i.classList.toggle("hidden",a),this.collapse&&(i.classList.remove("open"),(e=i.querySelector("ul"))==null||e.classList.remove("open")),a||(o=!1)}for(const i of this.listContainer.querySelectorAll("li:has(li:not(.hidden))"))i.classList.remove("hidden"),n&&this.collapse&&(i.classList.add("open"),(t=i.querySelector("ul"))==null||t.classList.add("open")),o=!1;this.highlightItem(null),(r=this.listContainer.querySelector("#noresult"))==null||r.classList.toggle("hidden",!o)}selectItem(n,e=!0){n?.getAttribute("disabled")!==null&&(n=null),this.selectedItem=n,this.filter(""),this.highlightItem(n,!1),e&&this.value&&dn(this,Kt,this.value),setTimeout(()=>this.blur())}findItem(n){if(n){for(const e of this.listContainer.querySelectorAll("li"))if(this.itemValue(e)===n||this.itemText(e)===n)return e}return null}highlightItem(n,e=!0){var t,r;if((t=this.listContainer.querySelector("li.active"))==null||t.classList.remove("active"),n){if(e&&this.listContainer.focus(),n.classList.add("active"),this.collapse)for(let o=n.closest("ul");o;o=o.parentElement.closest("ul"))o.classList.add("open"),(r=o.closest("li"))==null||r.classList.add("open");this.collapsible.open&&n.scrollIntoView({block:"nearest"})}}highlightNextItem(){const n=this.listContainer.querySelector("li.active");let e=n;const t=this.listContainer.querySelectorAll("ul.open > li:not([disabled]):not(.hidden):not(.divider)");if(n){for(let r=0;r<t.length;r++)if(t[r]===n&&r<t.length-1){e=t[r+1];break}}else t.length>0&&(e=t[0]);this.highlightItem(e)}highlightPreviousItem(){const n=this.listContainer.querySelector("li.active");let e=null;if(n){const t=this.listContainer.querySelectorAll("ul.open > li:not([disabled]):not(.hidden):not(.divider)");for(let r=0;r<t.length;r++)if(t[r]===n&&r>0){e=t[r-1];break}}this.highlightItem(e),e||this.input.focus()}itemValue(n){return n.dataset.value||this.itemText(n)||""}itemText(n){var e;return((e=n.querySelector("div > div"))==null?void 0:e.innerText)||""}elementText(n){var e;let t="";for(const r of n.childNodes)r.nodeType==3&&(t+=(e=r.nodeValue)==null?void 0:e.trim());return t}onSlotChange(){this.listContainer.replaceChildren(),this.itemCount=0;let n=null;const e=this.shadowRoot.querySelector("#list-container-slot").assignedElements();if(e?.length===1&&(n=Array.prototype.slice.call(e[0].querySelectorAll(":scope > li")),this.copyItems(n,this.listContainer)),this.emptyMessage){const t=document.createElement("li");t.id="noresult",t.setAttribute("disabled",""),t.innerText=this.emptyMessage,this.listContainer.appendChild(t),n&&n.length>0&&t.classList.add("hidden")}this.value=this.value||Ts(this,Kt),this.selectItem(this.findItem(this.value))}copyItems(n,e,t=0){if(this.sort!==void 0){const o=this.sort||"asc";n=n.sort((i,a)=>o==="desc"?(this.elementText(a)||this.itemValue(a)).localeCompare(this.elementText(i)||this.itemValue(i)):(this.elementText(i)||this.itemValue(i)).localeCompare(this.elementText(a)||this.itemValue(a)))}let r="";t>0&&(r=`calc(0.3em + ${t}*${Ts(this,hn)})`);for(const o of n){const i=o.cloneNode();i.replaceChildren();const a=document.createElement("div");r&&(a.style.paddingLeft=r);const s=document.createElement("div");a.appendChild(s);for(const u of o.childNodes)if(u.nodeName!=="UL"){const f=u.cloneNode(!0);f.nodeType===3&&f.nodeValue&&(f.nodeValue=f.nodeValue.trim()),s.appendChild(f)}i.appendChild(a),i.title=i.title||this.itemText(i);const l=o.querySelector("ul");if(l!=null&&l.childElementCount){const u=document.createElement("ul");if(i.appendChild(u),this.copyItems(Array.prototype.slice.call(l.children),u,t+1),this.collapse){const f=new or;f.title="Open",f.dense=!0,f.icon=!0,f.classList.add("toggle-node","caret"),f.addEventListener("click",m=>{m.stopPropagation(),i.classList.toggle("open"),u.classList.toggle("open"),f.title=i.classList.contains("open")?"Close":"Open",this.collapsible.updateContentHeight()}),a.prepend(f)}else u.classList.add("open")}e.appendChild(i),this.itemCount++}}render(){return ct`
177
181
  <rokit-collapsible ?dense="${this.dense}" part="collapsible">
178
182
  <slot name="prefix" part="prefix" slot="prefix"></slot>
179
183
  <slot name="suffix" part="suffix" slot="suffix"></slot>
@@ -183,16 +187,16 @@ a, a:visited { color: inherit; }
183
187
  @change="${()=>{this.checkInputValue(this.input.inputElement.value===""||!this.collapsible.open)}}"
184
188
  @input="${()=>{this.filter(this.input.inputElement.value)}}"
185
189
  @click="${()=>{this.collapsible.toggle(!0)}}"
186
- @keydown="${r=>{switch(r.code){case"ArrowDown":r.preventDefault(),this.highlightNextItem();break;case"Enter":{const e=this.findItem(this.input.value);e?this.selectItem(e):this.filter(this.input.value);break}}}}"
190
+ @keydown="${n=>{switch(n.code){case"ArrowDown":n.preventDefault(),this.highlightNextItem();break;case"Enter":{const e=this.findItem(this.input.value);e?this.selectItem(e):this.filter(this.input.value);break}}}}"
187
191
  ></rokit-input>
188
192
  <ul id="list-container" tabindex="-1" part="list" class="open"
189
- @mousedown="${r=>{r.preventDefault()}}"
190
- @click="${r=>{const e=r.target.closest("li");e&&e.getAttribute("disabled")===null&&!e.classList.contains("divider")&&this.selectItem(e)}}"
191
- @keydown="${r=>{var e,t;switch(r.code){case"Enter":this.selectItem(this.listContainer.querySelector("li.active"));break;case"ArrowDown":r.preventDefault(),this.highlightNextItem();break;case"ArrowUp":r.preventDefault(),this.highlightPreviousItem();break;case"ArrowRight":if(this.collapse){const n=this.listContainer.querySelector("li.active");n&&(r.preventDefault(),n.classList.add("open"),(e=n.querySelector("ul"))==null||e.classList.add("open"),this.collapsible.updateContentHeight())}break;case"ArrowLeft":if(this.collapse){const n=this.listContainer.querySelector("li.active");n&&(r.preventDefault(),n.classList.remove("open"),(t=n.querySelector("ul"))==null||t.classList.remove("open"),this.collapsible.updateContentHeight())}break;case"Escape":this.listContainer.blur();break}}}">
193
+ @mousedown="${n=>{n.preventDefault()}}"
194
+ @click="${n=>{const e=n.target.closest("li");e&&e.getAttribute("disabled")===null&&!e.classList.contains("divider")&&this.selectItem(e)}}"
195
+ @keydown="${n=>{var e,t;switch(n.code){case"Enter":this.selectItem(this.listContainer.querySelector("li.active"));break;case"ArrowDown":n.preventDefault(),this.highlightNextItem();break;case"ArrowUp":n.preventDefault(),this.highlightPreviousItem();break;case"ArrowRight":if(this.collapse){const r=this.listContainer.querySelector("li.active");r&&(n.preventDefault(),r.classList.add("open"),(e=r.querySelector("ul"))==null||e.classList.add("open"),this.collapsible.updateContentHeight())}break;case"ArrowLeft":if(this.collapse){const r=this.listContainer.querySelector("li.active");r&&(n.preventDefault(),r.classList.remove("open"),(t=r.querySelector("ul"))==null||t.classList.remove("open"),this.collapsible.updateContentHeight())}break;case"Escape":this.listContainer.blur();break}}}">
192
196
  </ul>
193
197
  <slot id="list-container-slot" @slotchange=${this.onSlotChange}></slot>
194
198
  </rokit-collapsible>
195
- `}};Xt=new WeakMap;fn=new WeakMap;Me.styles=[...pt.styles,wt`
199
+ `}};Kt=new WeakMap;hn=new WeakMap;Me.styles=[...pt.styles,wt`
196
200
  :host { background-color: var(--rokit-light-background-color-inner); user-select: none; padding: 0; }
197
201
  :host([dense]) li > div { padding: 4px 2px; }
198
202
  :host([dense]) li.large > div, :host([dense]) li.header > div { padding-top: 6px; padding-bottom: 6px; }
@@ -218,15 +222,14 @@ a, a:visited { color: inherit; }
218
222
  :host([collapse]) li > div > div { padding-left: 1.8em; }
219
223
  :host([collapse]) ul:not(.open) { display: none; }
220
224
  :host([collapse]) li:not(.open) > div > .toggle-node::part(link):before { transform: translate(0em, 0em) rotate(-45deg); }
221
- `];Ge([xe()],Me.prototype,"emptyMessage",2);Ge([xe()],Me.prototype,"sort",2);Ge([xe()],Me.prototype,"collapsibleMaxHeight",2);Ge([xe()],Me.prototype,"collapsibleOrientationLeft",2);Ge([xe()],Me.prototype,"collapsibleOrientationRight",2);Ge([xe()],Me.prototype,"collapsibleWidth",2);Ge([xe()],Me.prototype,"inputMinWidth",2);Ge([xe({type:Boolean,reflect:!0})],Me.prototype,"collapse",2);Ge([xe()],Me.prototype,"filterableThreshold",2);Ge([ut("rokit-collapsible")],Me.prototype,"collapsible",2);Ge([ut("#input")],Me.prototype,"input",2);Ge([ut("#list-container")],Me.prototype,"listContainer",2);Ge([oa()],Me.prototype,"selectedItem",2);Ge([oa()],Me.prototype,"itemCount",2);Me=Ge([Ht("rokit-select")],Me);var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,$n=(r,e,t,n)=>{for(var o=n>1?void 0:n?pp(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=(n?a(e,t,o):a(o))||o);return n&&o&&up(e,t,o),o};let qt=class extends $e{constructor(){super(...arguments),this.resize="none",this.rows=3}firstUpdated(){super.firstUpdated(),this.inputElement.rows=this.rows,this.cols!==void 0&&(this.inputElement.cols=this.cols),this.resize==="auto"?(this.inputElement.style.resize="none",this.inputElement.addEventListener("input",()=>this.autoResize())):this.inputElement.style.resize=this.resize}updated(r){super.updated(r),this.resize==="auto"&&r.has("value")&&this.autoResize()}autoResize(){this.inputElement.style.height="",this.inputElement.style.height=this.inputElement.scrollHeight+"px"}onSlotChange(){const r=this.shadowRoot.querySelector("#content").assignedNodes().map(e=>e.textContent).join("");r.trim()!==""&&(this.value=r)}renderInput(){return ct`
225
+ `];Ge([we()],Me.prototype,"emptyMessage",2);Ge([we()],Me.prototype,"sort",2);Ge([we()],Me.prototype,"collapsibleMaxHeight",2);Ge([we()],Me.prototype,"collapsibleOrientationLeft",2);Ge([we()],Me.prototype,"collapsibleOrientationRight",2);Ge([we()],Me.prototype,"collapsibleWidth",2);Ge([we()],Me.prototype,"inputMinWidth",2);Ge([we({type:Boolean,reflect:!0})],Me.prototype,"collapse",2);Ge([we()],Me.prototype,"filterableThreshold",2);Ge([ut("rokit-collapsible")],Me.prototype,"collapsible",2);Ge([ut("#input")],Me.prototype,"input",2);Ge([ut("#list-container")],Me.prototype,"listContainer",2);Ge([ia()],Me.prototype,"selectedItem",2);Ge([ia()],Me.prototype,"itemCount",2);Me=Ge([Gt("rokit-select")],Me);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,$n=(n,e,t,r)=>{for(var o=r>1?void 0:r?mp(e,t):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&bp(e,t,o),o};let Ft=class extends $e{constructor(){super(...arguments),this.resize="none",this.rows=3}firstUpdated(){super.firstUpdated(),this.inputElement.rows=this.rows,this.cols!==void 0&&(this.inputElement.cols=this.cols),this.resize==="auto"?(this.inputElement.style.resize="none",this.inputElement.addEventListener("input",()=>this.autoResize())):this.inputElement.style.resize=this.resize}updated(n){super.updated(n),this.resize==="auto"&&n.has("value")&&this.autoResize()}autoResize(){this.inputElement.style.height="",this.inputElement.style.height=this.inputElement.scrollHeight+"px"}onSlotChange(){const n=this.shadowRoot.querySelector("#content").assignedNodes().map(e=>e.textContent).join("");n.trim()!==""&&(this.value=n)}renderInput(){return ct`
222
226
  <textarea id="input" part="input" autocomplete="off" name="${this.name}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" .value="${this.value}"></textarea>
223
227
  <slot id="content" @slotchange=${this.onSlotChange}></slot>
224
- `}};qt.styles=[...$e.styles,wt`
225
- :host { align-items: last baseline; }
228
+ `}};Ft.styles=[...$e.styles,wt`
229
+ :host, .wrapper { align-items: flex-start; }
226
230
  #input { height: initial; }
227
231
  #content { display: none; }
228
- .wrapper { align-items: flex-start; }
229
- `];$n([xe()],qt.prototype,"resize",2);$n([xe()],qt.prototype,"rows",2);$n([xe()],qt.prototype,"cols",2);qt=$n([Ht("rokit-textarea")],qt);var fp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Hd=r=>{throw TypeError(r)},ft=(r,e,t,n)=>{for(var o=n>1?void 0:n?hp(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(o=(n?a(e,t,o):a(o))||o);return n&&o&&fp(e,t,o),o},Gd=(r,e,t)=>e.has(r)||Hd("Cannot "+t),Ie=(r,e,t)=>(Gd(r,e,"read from private field"),t?t.call(r):e.get(r)),wo=(r,e,t)=>e.has(r)?Hd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),dn=(r,e,t,n)=>(Gd(r,e,"write to private field"),e.set(r,t),t),Le,bt,Kt;const Et=18;let gt=class extends $e{constructor(){super(...arguments),this.labelFormatter=r=>String(r),wo(this,Le,[0,1]),wo(this,bt,[Ie(this,Le)[0],Ie(this,Le)[1]]),wo(this,Kt)}firstUpdated(){super.firstUpdated(),this.sliderElement.addEventListener("mousedown",r=>this.onKnobDrag(r)),this.sliderElement.addEventListener("touchstart",r=>this.onKnobDrag(r)),new ResizeObserver(()=>{this.updateKnobPositions()}).observe(this.sliderElement)}updated(r){if(super.updated(r),r.has("min")&&(Ie(this,Le)[0]=parseFloat(this.min||"0"),Ie(this,Le)[1]=Math.max(Ie(this,Le)[0],Ie(this,Le)[1])),r.has("max")&&(Ie(this,Le)[1]=parseFloat(this.max||"1"),Ie(this,Le)[0]=Math.min(Ie(this,Le)[0],Ie(this,Le)[1])),r.has("step")&&dn(this,Kt,this.step?parseFloat(this.step):void 0),r.has("value")||r.has("min")||r.has("max"))if(this.value)if(this.range!==void 0){const e=JSON.parse(this.value);dn(this,bt,[this.applyConstraints(e[0]),this.applyConstraints(e[1])])}else dn(this,bt,[this.applyConstraints(parseFloat(this.value))]);else dn(this,bt,[Ie(this,Le)[0],Ie(this,Le)[1]]);this.updateKnobPositions()}updateValidity(r,e){super.updateValidity(r,e,this.sliderElement)}chooseKnob(r){if(!this.endKnob)return this.startKnob;let e=Math.abs(r-this.startKnob.offsetLeft)<Math.abs(r-this.endKnob.offsetLeft)?this.startKnob:this.endKnob;return this.startKnob.value===this.endKnob.value&&(e.id==="start"&&e.value===Ie(this,Le)[0]?e=this.endKnob:e.id==="end"&&e.value===Ie(this,Le)[1]&&(e=this.startKnob)),e}toScreenSpace(r){return(r-Ie(this,Le)[0])/(Ie(this,Le)[1]-Ie(this,Le)[0])*this.track.offsetWidth}toValueSpace(r){return r/this.track.offsetWidth*(Ie(this,Le)[1]-Ie(this,Le)[0])+Ie(this,Le)[0]}applyConstraints(r,e){let t=Math.min(Math.max(r,Ie(this,Le)[0]),Ie(this,Le)[1]);return Ie(this,Kt)&&(t=Math.round(t/Ie(this,Kt))*Ie(this,Kt)),e!==void 0&&this.endKnob&&(t=e?Math.min(t,this.endKnob.value):Math.max(t,this.startKnob.value)),t}updateKnob(r,e){r.value=e,r.offset=this.toScreenSpace(e),r.label=this.labelFormatter(e),this.endKnob&&(r.id==="start"?this.track.style.borderLeftWidth=r.offset+"px":this.track.style.borderRightWidth=this.track.offsetWidth-r.offset+"px")}updateKnobPositions(){this.updateKnob(this.startKnob,Ie(this,bt)[0]),this.endKnob&&this.updateKnob(this.endKnob,Ie(this,bt)[1])}onKnobDrag(r){if(r.target instanceof nr||this.classList.contains("has-value")||this.classList.contains("has-focus")){let e;const t=o=>{let i=0;o.type==="touchmove"||o.type==="touchstart"?i=o.touches[0].clientX:i=o.clientX,i=i-this.track.getBoundingClientRect().left,e||(e=this.chooseKnob(i),e.classList.add("focus")),this.updateKnob(e,this.applyConstraints(this.toValueSpace(i),e.id==="start"))},n=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",t),document.removeEventListener("mouseup",n),document.removeEventListener("touchend",n),e&&(e.classList.remove("focus"),this.range!==void 0?e.id==="end"?this.value=JSON.stringify([Ie(this,bt)[0],e.value]):this.value=JSON.stringify([e.value,Ie(this,bt)[1]]):this.value=String(e.value)),e=void 0};this.sliderElement.focus(),document.addEventListener("mousemove",t),document.addEventListener("touchmove",t),document.addEventListener("mouseup",n),document.addEventListener("touchend",n),t(r)}}renderInput(){return ct`
232
+ `];$n([we()],Ft.prototype,"resize",2);$n([we()],Ft.prototype,"rows",2);$n([we()],Ft.prototype,"cols",2);Ft=$n([Gt("rokit-textarea")],Ft);var gp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,Vd=n=>{throw TypeError(n)},ft=(n,e,t,r)=>{for(var o=r>1?void 0:r?vp(e,t):e,i=n.length-1,a;i>=0;i--)(a=n[i])&&(o=(r?a(e,t,o):a(o))||o);return r&&o&&gp(e,t,o),o},Wd=(n,e,t)=>e.has(n)||Vd("Cannot "+t),Ie=(n,e,t)=>(Wd(n,e,"read from private field"),t?t.call(n):e.get(n)),wo=(n,e,t)=>e.has(n)?Vd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),cn=(n,e,t,r)=>(Wd(n,e,"write to private field"),e.set(n,t),t),Le,bt,Yt;const Et=18;let gt=class extends $e{constructor(){super(...arguments),this.labelFormatter=n=>String(n),wo(this,Le,[0,1]),wo(this,bt,[Ie(this,Le)[0],Ie(this,Le)[1]]),wo(this,Yt)}firstUpdated(){super.firstUpdated(),this.sliderElement.addEventListener("mousedown",n=>this.onKnobDrag(n)),this.sliderElement.addEventListener("touchstart",n=>this.onKnobDrag(n)),new ResizeObserver(()=>{this.updateKnobPositions()}).observe(this.sliderElement)}updated(n){if(super.updated(n),n.has("min")&&(Ie(this,Le)[0]=parseFloat(this.min||"0"),Ie(this,Le)[1]=Math.max(Ie(this,Le)[0],Ie(this,Le)[1])),n.has("max")&&(Ie(this,Le)[1]=parseFloat(this.max||"1"),Ie(this,Le)[0]=Math.min(Ie(this,Le)[0],Ie(this,Le)[1])),n.has("step")&&cn(this,Yt,this.step?parseFloat(this.step):void 0),n.has("value")||n.has("min")||n.has("max"))if(this.value)if(this.range!==void 0){const e=JSON.parse(this.value);cn(this,bt,[this.applyConstraints(e[0]),this.applyConstraints(e[1])])}else cn(this,bt,[this.applyConstraints(parseFloat(this.value))]);else cn(this,bt,[Ie(this,Le)[0],Ie(this,Le)[1]]);this.updateKnobPositions()}updateValidity(n,e){super.updateValidity(n,e,this.sliderElement)}chooseKnob(n){if(!this.endKnob)return this.startKnob;let e=Math.abs(n-this.startKnob.offsetLeft)<Math.abs(n-this.endKnob.offsetLeft)?this.startKnob:this.endKnob;return this.startKnob.value===this.endKnob.value&&(e.id==="start"&&e.value===Ie(this,Le)[0]?e=this.endKnob:e.id==="end"&&e.value===Ie(this,Le)[1]&&(e=this.startKnob)),e}toScreenSpace(n){return(n-Ie(this,Le)[0])/(Ie(this,Le)[1]-Ie(this,Le)[0])*this.track.offsetWidth}toValueSpace(n){return n/this.track.offsetWidth*(Ie(this,Le)[1]-Ie(this,Le)[0])+Ie(this,Le)[0]}applyConstraints(n,e){let t=Math.min(Math.max(n,Ie(this,Le)[0]),Ie(this,Le)[1]);return Ie(this,Yt)&&(t=Math.round(t/Ie(this,Yt))*Ie(this,Yt)),e!==void 0&&this.endKnob&&(t=e?Math.min(t,this.endKnob.value):Math.max(t,this.startKnob.value)),t}updateKnob(n,e){n.value=e,n.offset=this.toScreenSpace(e),n.label=this.labelFormatter(e),this.endKnob&&(n.id==="start"?this.track.style.borderLeftWidth=n.offset+"px":this.track.style.borderRightWidth=this.track.offsetWidth-n.offset+"px")}updateKnobPositions(){this.updateKnob(this.startKnob,Ie(this,bt)[0]),this.endKnob&&this.updateKnob(this.endKnob,Ie(this,bt)[1])}onKnobDrag(n){if(n.target instanceof ir||this.classList.contains("has-value")||this.classList.contains("has-focus")){let e;const t=o=>{let i=0;o.type==="touchmove"||o.type==="touchstart"?i=o.touches[0].clientX:i=o.clientX,i=i-this.track.getBoundingClientRect().left,e||(e=this.chooseKnob(i),e.classList.add("focus")),this.updateKnob(e,this.applyConstraints(this.toValueSpace(i),e.id==="start"))},r=()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",t),document.removeEventListener("mouseup",r),document.removeEventListener("touchend",r),e&&(e.classList.remove("focus"),this.range!==void 0?e.id==="end"?this.value=JSON.stringify([Ie(this,bt)[0],e.value]):this.value=JSON.stringify([e.value,Ie(this,bt)[1]]):this.value=String(e.value)),e=void 0};this.sliderElement.focus(),document.addEventListener("mousemove",t),document.addEventListener("touchmove",t),document.addEventListener("mouseup",r),document.addEventListener("touchend",r),t(n)}}renderInput(){return ct`
230
233
  ${super.renderInput()}
231
234
  <div id="slider" part="slider" tabindex="0" ?range="${this.range!==void 0}">
232
235
  <div id="track"></div>
@@ -235,7 +238,7 @@ a, a:visited { color: inherit; }
235
238
  <rokit-slider-knob id="end"></rokit-slider-knob>
236
239
  `}
237
240
  </div>
238
- `}};Le=new WeakMap;bt=new WeakMap;Kt=new WeakMap;gt.styles=[...$e.styles,wt`
241
+ `}};Le=new WeakMap;bt=new WeakMap;Yt=new WeakMap;gt.styles=[...$e.styles,wt`
239
242
  :host(.has-label:not(:focus):not(.has-value):not([sticky])) #slider > * { visibility: hidden; }
240
243
  :host(.has-label) .wrapper { padding-top: 1em; }
241
244
  :host([sticky]) #slider { margin-top: ${.25*Et+22}px; }
@@ -244,7 +247,7 @@ a, a:visited { color: inherit; }
244
247
  :host(:not([sticky])) #slider:not(:focus) rokit-slider-knob::part(label) { color: transparent; background-color: transparent; border-color: transparent; top: 0; }
245
248
  #track { height: 2px; flex-grow: 1; background-color: #CCC; }
246
249
  #slider[range] #track { background-color: color-mix(in srgb, var(--rokit-primary-color-inner) 60%, transparent); border-width: 0; border-color: #CCC; border-style: solid; }
247
- `];ft([xe()],gt.prototype,"range",2);ft([xe()],gt.prototype,"labelFormatter",2);ft([ut("#slider")],gt.prototype,"sliderElement",2);ft([ut("#track")],gt.prototype,"track",2);ft([ut("#start")],gt.prototype,"startKnob",2);ft([ut("#end")],gt.prototype,"endKnob",2);gt=ft([Ht("rokit-slider")],gt);let nr=class extends Pt{constructor(){super(...arguments),this.offset=0,this.label="",this.value=0}updated(r){r.has("offset")&&(this.style.left=this.offset+"px")}render(){return ct`<label part="label">${this.label}</label>`}};nr.styles=[wt`
250
+ `];ft([we()],gt.prototype,"range",2);ft([we()],gt.prototype,"labelFormatter",2);ft([ut("#slider")],gt.prototype,"sliderElement",2);ft([ut("#track")],gt.prototype,"track",2);ft([ut("#start")],gt.prototype,"startKnob",2);ft([ut("#end")],gt.prototype,"endKnob",2);gt=ft([Gt("rokit-slider")],gt);let ir=class extends Bt{constructor(){super(...arguments),this.offset=0,this.label="",this.value=0}updated(n){n.has("offset")&&(this.style.left=this.offset+"px")}render(){return ct`<label part="label">${this.label}</label>`}};ir.styles=[wt`
248
251
  :host { position: absolute; width: ${Et}px; height: ${Et}px; border-radius: ${Et}px; background-color: var(--rokit-primary-color-inner); }
249
252
  :host(.focus), :host(:hover) { box-shadow: 0 0 0 ${Et/2}px var(--rokit-primary-color-transparent-inner); z-index: 1; }
250
253
  label {
@@ -274,26 +277,26 @@ a, a:visited { color: inherit; }
274
277
  background-color: inherit;
275
278
  clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0 50%);
276
279
  }
277
- `];ft([xe()],nr.prototype,"offset",2);ft([xe()],nr.prototype,"label",2);nr=ft([Ht("rokit-slider-knob")],nr);class _n extends HTMLElement{constructor(e,t,n,o){if(super(),this.template=new su(n.store.getQuads(e,null,null,null),t,n),this.template.extendedShapes.length&&this.template.config.attributes.collapse!==null&&(!this.template.maxCount||this.template.maxCount>1)){const i=new Qe;i.classList.add("collapsible","shacl-group"),i.open=n.attributes.collapse==="open",i.label=this.template.label,this.container=i}else this.container=this;if(this.template.order!==void 0&&(this.style.order=`${this.template.order}`),this.template.cssClass&&this.classList.add(this.template.cssClass),n.editMode&&!t.linked&&(this.addButton=this.createAddButton(),this.container.appendChild(this.addButton)),this.template.path){let i=[];o&&(t.linked?i=n.store.getQuads(o,this.template.path,null,null):i=n.store.getQuads(o,this.template.path,null,dt));let a=!1;for(const s of i)this.isValueValid(s.object)&&(this.addPropertyInstance(s.object),this.template.hasValue&&s.object.equals(this.template.hasValue)&&(a=!0));n.editMode&&this.template.hasValue&&!a&&!t.linked&&this.addPropertyInstance(this.template.hasValue)}n.editMode&&!t.linked&&(this.addEventListener("change",()=>{this.updateControls()}),this.updateControls()),this.container instanceof Qe&&(n.editMode&&!t.linked||this.container.childElementCount>0)&&this.appendChild(this.container)}addPropertyInstance(e){let t;if(this.template.shaclOr?.length||this.template.shaclXone?.length){const n=this.template.shaclOr?.length?this.template.shaclOr:this.template.shaclXone;let o=!1;if(e){const i=ou(n,e,this.template.config);i.length&&(t=hn(this.template.clone().merge(i),e,!0),o=!0)}o||(t=Nd(n,this,this.template.config),Vd(t,""))}else{let n=!1;if(e&&!(e instanceof Ze)){const o=this.getRdfClassToLinkOrCreate();o&&this.template.config.store.countQuads(e,Be,o,dt)===0&&(n=!0)}t=hn(this.template,e,void 0,n||this.template.parent.linked)}return this.addButton?this.container.insertBefore(t,this.addButton):this.container.appendChild(t),t}updateControls(){let e=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length;e===0&&(!this.template.extendedShapes.length||this.template.minCount!==void 0&&this.template.minCount>0)&&(this.addPropertyInstance(),e=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length);let t;this.template.minCount!==void 0?t=e>this.template.minCount:t=this.template.extendedShapes.length>0||e>1;const n=this.template.maxCount===void 0||e<this.template.maxCount;this.classList.toggle("may-remove",t),this.classList.toggle("may-add",n),n&&this.addButton?.input&&this.addButton.input.updateMinWidth()}toRDF(e,t){for(const n of this.querySelectorAll(":scope > .property-instance, :scope > .collapsible > .property-instance")){const o=Se.namedNode(n.dataset.path);if(n.firstChild instanceof Rt){const i=n.firstChild.toRDF(e);e.addQuad(t,o,i,this.template.config.valuesGraphId)}else for(const i of n.querySelectorAll(":scope > .editor")){const a=fu(i);a&&e.addQuad(t,o,a,this.template.config.valuesGraphId)}}}getRdfClassToLinkOrCreate(){if(this.template.class&&this.template.node)return this.template.class;for(const e of this.template.extendedShapes){const t=this.template.config.store.getObjects(e,Hr,null);if(t.length>0)return t[0]}}isValueValid(e){if(!this.template.extendedShapes.length)return!0;for(const t of this.template.extendedShapes){const n=this.template.config.store.getObjects(t,Hr,null);for(const o of n)if(this.template.config.store.countQuads(e,Be,o,null)>0)return!0}return!1}createAddButton(){const e=new Me;e.dense=!0,e.label="+ "+this.template.label,e.title="Add "+this.template.label,e.classList.add("add-button");let t=[],n=this.getRdfClassToLinkOrCreate();if(n&&(t=Qi(n,this.template)),t.length===0)e.emptyMessage="",e.inputMinWidth=0,e.addEventListener("click",o=>{e.blur();const i=this.addPropertyInstance();i.classList.add("fadeIn"),this.updateControls(),setTimeout(()=>{nu(i),i.classList.remove("fadeIn")},200)});else{const o=document.createElement("ul"),i=document.createElement("li");i.innerHTML="&#xFF0B; Create new "+this.template.label+"...",i.dataset.value="new",i.classList.add("large"),o.appendChild(i);const a=document.createElement("li");a.classList.add("divider"),o.appendChild(a);const s=document.createElement("li");s.classList.add("header"),s.innerText="Or link existing:",o.appendChild(s);for(const l of t){const u=document.createElement("li"),f=typeof l.value=="string"?l.value:l.value.value;u.innerText=l.label?l.label:f,u.dataset.value=JSON.stringify(l.value),o.appendChild(u)}e.appendChild(o),e.collapsibleWidth="250px",e.collapsibleOrientationLeft="",e.addEventListener("change",()=>{if(e.value==="new")this.addPropertyInstance();else{const l=JSON.parse(e.value);this.container.insertBefore(hn(this.template,l,!0,!0),e)}e.value=""})}return e}}function hn(r,e,t=!1,n=!1){let o;if(r.extendedShapes.length){o=document.createElement("div"),o.classList.add("property-instance");for(const i of r.extendedShapes)o.appendChild(new Rt(i,r.config,e,r.parent,r.nodeKind,r.label,n))}else{const i=mu(r.path,r.datatype?.value);i?r.config.editMode&&!n?o=i.createEditor(r,e):o=i.createViewer(r,e):o=cu(r,e||null,r.config.editMode&&!n),o.classList.add("property-instance"),n&&o.classList.add("linked")}return r.config.editMode&&Vd(o,r.label,t),o.dataset.path=r.path,o}function Vd(r,e,t=!1){const n=new Wr;n.classList.add("remove-button","clear"),n.title="Remove "+e,n.dense=!0,n.addEventListener("click",o=>{r.classList.remove("fadeIn"),r.classList.add("fadeOut"),setTimeout(()=>{const i=r.parentElement;r.remove(),i?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},200)}),t&&n.classList.add("persistent"),r.appendChild(n)}window.customElements.define("shacl-property",_n);function bp(r,e){let t=r;const n=e.store.getQuads(r,null,null,null),o=Br(n,"label",Vi,e.languages);o&&(t=o);let i;if(e.attributes.collapse!==null)i=new Qe,i.classList.add("collapsible"),i.open=e.attributes.collapse==="open",i.label=t;else{i=document.createElement("div");const s=document.createElement("h1");s.innerText=t,i.appendChild(s)}i.dataset.subject=r,i.classList.add("shacl-group");const a=Br(n,"order");return a&&(i.style.order=a),i}const Ce=[];for(let r=0;r<256;++r)Ce.push((r+256).toString(16).slice(1));function mp(r,e=0){return(Ce[r[e+0]]+Ce[r[e+1]]+Ce[r[e+2]]+Ce[r[e+3]]+"-"+Ce[r[e+4]]+Ce[r[e+5]]+"-"+Ce[r[e+6]]+Ce[r[e+7]]+"-"+Ce[r[e+8]]+Ce[r[e+9]]+"-"+Ce[r[e+10]]+Ce[r[e+11]]+Ce[r[e+12]]+Ce[r[e+13]]+Ce[r[e+14]]+Ce[r[e+15]]).toLowerCase()}let xo;const gp=new Uint8Array(16);function vp(){if(!xo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xo=crypto.getRandomValues.bind(crypto)}return xo(gp)}const yp=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),As={randomUUID:yp};function Ls(r,e,t){if(As.randomUUID&&!r)return As.randomUUID();r=r||{};const n=r.random??r.rng?.()??vp();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,mp(n)}class Rt extends HTMLElement{constructor(e,t,n,o,i,a,s){super(),this.owlImports=[],this.parent=o,this.config=t,this.shaclSubject=e,this.linked=s||!1;let l=n;if(!l){if(!i){const f=t.store.getObjects(e,`${ve}nodeKind`,null);f.length&&(i=f[0])}i===void 0&&t.attributes.valuesNamespace||i?.value===`${ve}IRI`?l=Se.namedNode(t.attributes.valuesNamespace+Ls()):l=Se.blankNode(Ls())}this.nodeId=l;const u=JSON.stringify([e,n]);if(n&&t.renderedNodes.has(u)){a=a||"Link";const f=document.createElement("label");f.innerText=a,f.classList.add("linked"),this.appendChild(f);const m=document.createElement("a");let y=n.termType==="BlankNode"?"_:"+n.value:n.value;m.innerText=y,m.classList.add("ref-link"),m.onclick=()=>{this.config.form.querySelector(`shacl-node[data-node-id='${y}']`)?.scrollIntoView()},this.appendChild(m),this.style.flexDirection="row"}else{if(n&&t.renderedNodes.add(u),this.dataset.nodeId=this.nodeId.id,this.config.attributes.showNodeIds!==null){const f=document.createElement("div");f.innerText=`id: ${this.nodeId.id}`,f.classList.add("node-id-display"),this.appendChild(f)}for(const f of t.store.getQuads(e,Wi,null,null))this.owlImports.push(f.object);for(const f of t.store.getQuads(e,null,null,null))switch(f.predicate.id){case yn.id:this.addPropertyInstance(f.object,t,n);break;case`${ve}and`:const m=t.lists[f.object.value];if(m?.length)for(const y of m)this.prepend(new Rt(y,t,n,this));else console.error("list not found:",f.object.value,"existing lists:",t.lists);break;case`${ve}node`:this.prepend(new Rt(f.object,t,n,this));break;case`${ve}targetClass`:this.targetClass=f.object;break;case`${ve}or`:this.tryResolve(f.object,n,t);break;case`${ve}xone`:this.tryResolve(f.object,n,t);break}if(a){const f=document.createElement("h1");f.innerText=a,this.prepend(f)}}}toRDF(e,t){if(t||(t=this.nodeId),!this.linked){for(const n of this.querySelectorAll(":scope > shacl-node, :scope > .shacl-group > shacl-node, :scope > shacl-property, :scope > .shacl-group > shacl-property"))n.toRDF(e,t);this.targetClass&&e.addQuad(t,Be,this.targetClass,this.config.valuesGraphId),this.config.attributes.generateNodeShapeReference&&!this.parent&&e.addQuad(t,Se.namedNode(this.config.attributes.generateNodeShapeReference),this.shaclSubject,this.config.valuesGraphId)}return t}addPropertyInstance(e,t,n){let o=this;const i=t.store.getQuads(e,`${ve}group`,null,null);if(i.length>0){const s=i[0].object.value;if(t.groups.indexOf(s)>-1){let l=this.querySelector(`:scope > .shacl-group[data-subject='${s}']`);l||(l=bp(s,t),this.appendChild(l)),o=l}else console.warn("ignoring unknown group reference",i[0],"existing groups:",t.groups)}const a=new _n(e,this,t,n);a.childElementCount>0&&o.appendChild(a)}tryResolve(e,t,n){const o=n.lists[e.value];if(o?.length){let i=!1;if(t){const a=iu(o,t,n);if(a.length){for(const s of a)this.addPropertyInstance(s,n,t);i=!0}}i||this.appendChild(Nd(o,this,n))}else console.error("list for sh:or/sh:xone not found:",e,"existing lists:",n.lists)}}window.customElements.define("shacl-node",Rt);var _o={},ko,Os;function ia(){return Os||(Os=1,ko=class Wd{constructor(e,t=new Map,n=0){this.prefix=e,this._existing=t,this.counter=n}clone(){const{prefix:e,_existing:t,counter:n}=this;return new Wd(e,new Map(t),n)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const n=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,n),n}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}}),ko}var So={},$s;function wp(){return $s||($s=1,function(r,e){if(r.setImmediate)return;var t=1,n={},o=!1,i=r.document,a;function s(E){typeof E!="function"&&(E=new Function(""+E));for(var v=new Array(arguments.length-1),c=0;c<v.length;c++)v[c]=arguments[c+1];var h={callback:E,args:v};return n[t]=h,a(t),t++}function l(E){delete n[E]}function u(E){var v=E.callback,c=E.args;switch(c.length){case 0:v();break;case 1:v(c[0]);break;case 2:v(c[0],c[1]);break;case 3:v(c[0],c[1],c[2]);break;default:v.apply(e,c);break}}function f(E){if(o)setTimeout(f,0,E);else{var v=n[E];if(v){o=!0;try{u(v)}finally{l(E),o=!1}}}}function m(){a=function(E){process.nextTick(function(){f(E)})}}function y(){if(r.postMessage&&!r.importScripts){var E=!0,v=r.onmessage;return r.onmessage=function(){E=!1},r.postMessage("","*"),r.onmessage=v,E}}function b(){var E="setImmediate$"+Math.random()+"$",v=function(c){c.source===r&&typeof c.data=="string"&&c.data.indexOf(E)===0&&f(+c.data.slice(E.length))};r.addEventListener?r.addEventListener("message",v,!1):r.attachEvent("onmessage",v),a=function(c){r.postMessage(E+c,"*")}}function g(){var E=new MessageChannel;E.port1.onmessage=function(v){var c=v.data;f(c)},a=function(v){E.port2.postMessage(v)}}function x(){var E=i.documentElement;a=function(v){var c=i.createElement("script");c.onreadystatechange=function(){f(v),c.onreadystatechange=null,E.removeChild(c),c=null},E.appendChild(c)}}function _(){a=function(E){setTimeout(f,0,E)}}var k=Object.getPrototypeOf&&Object.getPrototypeOf(r);k=k&&k.setTimeout?k:r,{}.toString.call(r.process)==="[object process]"?m():y()?b():r.MessageChannel?g():i&&"onreadystatechange"in i.createElement("script")?x():_(),k.setImmediate=s,k.clearImmediate=l}(typeof self>"u"?typeof Yt>"u"?So:Yt:self)),So}/*!
280
+ `];ft([we()],ir.prototype,"offset",2);ft([we()],ir.prototype,"label",2);ir=ft([Gt("rokit-slider-knob")],ir);class kn extends HTMLElement{constructor(e,t,r,o){if(super(),this.template=new cu(r.store.getQuads(e,null,null,null),t,r),this.template.extendedShapes.length&&this.template.config.attributes.collapse!==null&&(!this.template.maxCount||this.template.maxCount>1)){const i=new Qe;i.classList.add("collapsible","shacl-group"),i.open=r.attributes.collapse==="open",i.label=this.template.label,this.container=i}else this.container=this;if(this.template.order!==void 0&&(this.style.order=`${this.template.order}`),this.template.cssClass&&this.classList.add(this.template.cssClass),r.editMode&&!t.linked&&(this.addButton=this.createAddButton(),this.container.appendChild(this.addButton)),this.template.path){let i=[];o&&(t.linked?i=r.store.getQuads(o,this.template.path,null,null):i=r.store.getQuads(o,this.template.path,null,dt));let a=!1;for(const s of i)this.isValueValid(s.object)&&(this.addPropertyInstance(s.object),this.template.hasValue&&s.object.equals(this.template.hasValue)&&(a=!0));r.editMode&&this.template.hasValue&&!a&&!t.linked&&this.addPropertyInstance(this.template.hasValue)}r.editMode&&!t.linked&&(this.addEventListener("change",()=>{this.updateControls()}),this.updateControls()),this.container instanceof Qe&&(r.editMode&&!t.linked||this.container.childElementCount>0)&&this.appendChild(this.container)}addPropertyInstance(e){let t;if(this.template.shaclOr?.length||this.template.shaclXone?.length){const r=this.template.shaclOr?.length?this.template.shaclOr:this.template.shaclXone;let o=!1;if(e){const i=su(r,e,this.template.config);i.length&&(t=bn(this.template.clone().merge(i),e,!0),o=!0)}o||(t=jd(r,this,this.template.config),Jd(t,""))}else{let r=!1;if(e&&!(e instanceof Ze)){const o=this.getRdfClassToLinkOrCreate();o&&this.template.config.store.countQuads(e,ze,o,dt)===0&&(r=!0)}t=bn(this.template,e,void 0,r||this.template.parent.linked)}return this.addButton?this.container.insertBefore(t,this.addButton):this.container.appendChild(t),t}updateControls(){let e=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length;e===0&&(!this.template.extendedShapes.length||this.template.minCount!==void 0&&this.template.minCount>0)&&(this.addPropertyInstance(),e=this.querySelectorAll(":scope > .property-instance, :scope > .shacl-or-constraint, :scope > shacl-node").length);let t;this.template.minCount!==void 0?t=e>this.template.minCount:t=this.template.extendedShapes.length>0||e>1;const r=this.template.maxCount===void 0||e<this.template.maxCount;this.classList.toggle("may-remove",t),this.classList.toggle("may-add",r),r&&this.addButton?.input&&this.addButton.input.updateMinWidth()}toRDF(e,t){for(const r of this.querySelectorAll(":scope > .property-instance, :scope > .collapsible > .property-instance")){const o=_e.namedNode(r.dataset.path);if(r.firstChild instanceof Rt){const i=r.firstChild.toRDF(e);e.addQuad(t,o,i,this.template.config.valuesGraphId)}else for(const i of r.querySelectorAll(":scope > .editor")){const a=mu(i);a&&e.addQuad(t,o,a,this.template.config.valuesGraphId)}}}getRdfClassToLinkOrCreate(){if(this.template.class&&this.template.node)return this.template.class;for(const e of this.template.extendedShapes){const t=this.template.config.store.getObjects(e,Vr,null);if(t.length>0)return t[0]}}isValueValid(e){if(!this.template.extendedShapes.length)return!0;for(const t of this.template.extendedShapes){const r=this.template.config.store.getObjects(t,Vr,null);for(const o of r)if(this.template.config.store.countQuads(e,ze,o,null)>0)return!0}return!1}createAddButton(){const e=new Me;e.dense=!0,e.label="+ "+this.template.label,e.title="Add "+this.template.label,e.classList.add("add-button");let t=[],r=this.getRdfClassToLinkOrCreate();if(r&&(t=Xi(r,this.template)),t.length===0)e.emptyMessage="",e.inputMinWidth=0,e.addEventListener("click",o=>{e.blur();const i=this.addPropertyInstance();i.classList.add("fadeIn"),this.updateControls(),setTimeout(()=>{au(i),i.classList.remove("fadeIn")},200)});else{const o=document.createElement("ul"),i=document.createElement("li");i.innerHTML="&#xFF0B; Create new "+this.template.label+"...",i.dataset.value="new",i.classList.add("large"),o.appendChild(i);const a=document.createElement("li");a.classList.add("divider"),o.appendChild(a);const s=document.createElement("li");s.classList.add("header"),s.innerText="Or link existing:",o.appendChild(s);for(const l of t){const u=document.createElement("li"),f=typeof l.value=="string"?l.value:l.value.value;u.innerText=l.label?l.label:f,u.dataset.value=JSON.stringify(l.value),o.appendChild(u)}e.appendChild(o),e.collapsibleWidth="250px",e.collapsibleOrientationLeft="",e.addEventListener("change",()=>{if(e.value==="new")this.addPropertyInstance();else{const l=JSON.parse(e.value);this.container.insertBefore(bn(this.template,l,!0,!0),e)}e.value=""})}return e}}function bn(n,e,t=!1,r=!1){let o;if(n.extendedShapes.length){o=document.createElement("div"),o.classList.add("property-instance");for(const i of n.extendedShapes)o.appendChild(new Rt(i,n.config,e,n.parent,n.nodeKind,n.label,r))}else{const i=yu(n.path,n.datatype?.value);i?n.config.editMode&&!r?o=i.createEditor(n,e):o=i.createViewer(n,e):o=fu(n,e||null,n.config.editMode&&!r),o.classList.add("property-instance"),r&&o.classList.add("linked")}return n.config.editMode&&Jd(o,n.label,t),o.dataset.path=n.path,o}function Jd(n,e,t=!1){const r=new or;r.classList.add("remove-button","clear"),r.title="Remove "+e,r.dense=!0,r.icon=!0,r.addEventListener("click",o=>{n.classList.remove("fadeIn"),n.classList.add("fadeOut"),setTimeout(()=>{const i=n.parentElement;n.remove(),i?.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},200)}),t&&r.classList.add("persistent"),n.appendChild(r)}window.customElements.define("shacl-property",kn);function yp(n,e){let t=n;const r=e.store.getQuads(n,null,null,null),o=Fr(r,"label",Vi,e.languages);o&&(t=o);let i;if(e.attributes.collapse!==null)i=new Qe,i.classList.add("collapsible"),i.open=e.attributes.collapse==="open",i.label=t;else{i=document.createElement("div");const s=document.createElement("h1");s.innerText=t,i.appendChild(s)}i.dataset.subject=n,i.classList.add("shacl-group");const a=Fr(r,"order");return a&&(i.style.order=a),i}const Ce=[];for(let n=0;n<256;++n)Ce.push((n+256).toString(16).slice(1));function wp(n,e=0){return(Ce[n[e+0]]+Ce[n[e+1]]+Ce[n[e+2]]+Ce[n[e+3]]+"-"+Ce[n[e+4]]+Ce[n[e+5]]+"-"+Ce[n[e+6]]+Ce[n[e+7]]+"-"+Ce[n[e+8]]+Ce[n[e+9]]+"-"+Ce[n[e+10]]+Ce[n[e+11]]+Ce[n[e+12]]+Ce[n[e+13]]+Ce[n[e+14]]+Ce[n[e+15]]).toLowerCase()}let xo;const xp=new Uint8Array(16);function _p(){if(!xo){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xo=crypto.getRandomValues.bind(crypto)}return xo(xp)}const kp=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ls={randomUUID:kp};function Os(n,e,t){if(Ls.randomUUID&&!n)return Ls.randomUUID();n=n||{};const r=n.random??n.rng?.()??_p();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,wp(r)}class Rt extends HTMLElement{constructor(e,t,r,o,i,a,s){super(),this.owlImports=[],this.parent=o,this.config=t,this.shaclSubject=e,this.linked=s||!1;let l=r;if(!l){if(!i){const f=t.store.getObjects(e,`${ve}nodeKind`,null);f.length&&(i=f[0])}i===void 0&&t.attributes.valuesNamespace||i?.value===`${ve}IRI`?l=_e.namedNode(t.attributes.valuesNamespace+Os()):l=_e.blankNode(Os())}this.nodeId=l;const u=JSON.stringify([e,r]);if(r&&t.renderedNodes.has(u)){a=a||"Link";const f=document.createElement("label");f.innerText=a,f.classList.add("linked"),this.appendChild(f);const m=document.createElement("a");let y=r.termType==="BlankNode"?"_:"+r.value:r.value;m.innerText=y,m.classList.add("ref-link"),m.onclick=()=>{this.config.form.querySelector(`shacl-node[data-node-id='${y}']`)?.scrollIntoView()},this.appendChild(m),this.style.flexDirection="row"}else{if(r&&t.renderedNodes.add(u),this.dataset.nodeId=this.nodeId.id,this.config.attributes.showNodeIds!==null){const f=document.createElement("div");f.innerText=`id: ${this.nodeId.id}`,f.classList.add("node-id-display"),this.appendChild(f)}for(const f of t.store.getQuads(e,Ji,null,null))this.owlImports.push(f.object);for(const f of t.store.getQuads(e,null,null,null))switch(f.predicate.id){case wn.id:this.addPropertyInstance(f.object,t,r);break;case`${ve}and`:const m=t.lists[f.object.value];if(m?.length)for(const y of m)this.prepend(new Rt(y,t,r,this));else console.error("list not found:",f.object.value,"existing lists:",t.lists);break;case`${ve}node`:this.prepend(new Rt(f.object,t,r,this));break;case`${ve}targetClass`:this.targetClass=f.object;break;case`${ve}or`:this.tryResolve(f.object,r,t);break;case`${ve}xone`:this.tryResolve(f.object,r,t);break}if(a){const f=document.createElement("h1");f.innerText=a,this.prepend(f)}}}toRDF(e,t){if(t||(t=this.nodeId),!this.linked){for(const r of this.querySelectorAll(":scope > shacl-node, :scope > .shacl-group > shacl-node, :scope > shacl-property, :scope > .shacl-group > shacl-property"))r.toRDF(e,t);this.targetClass&&e.addQuad(t,ze,this.targetClass,this.config.valuesGraphId),this.config.attributes.generateNodeShapeReference&&!this.parent&&e.addQuad(t,_e.namedNode(this.config.attributes.generateNodeShapeReference),this.shaclSubject,this.config.valuesGraphId)}return t}addPropertyInstance(e,t,r){let o=this;const i=t.store.getQuads(e,`${ve}group`,null,null);if(i.length>0){const s=i[0].object.value;if(t.groups.indexOf(s)>-1){let l=this.querySelector(`:scope > .shacl-group[data-subject='${s}']`);l||(l=yp(s,t),this.appendChild(l)),o=l}else console.warn("ignoring unknown group reference",i[0],"existing groups:",t.groups)}const a=new kn(e,this,t,r);a.childElementCount>0&&o.appendChild(a)}tryResolve(e,t,r){const o=r.lists[e.value];if(o?.length){let i=!1;if(t){const a=lu(o,t,r);if(a.length){for(const s of a)this.addPropertyInstance(s,r,t);i=!0}}i||this.appendChild(jd(o,this,r))}else console.error("list for sh:or/sh:xone not found:",e,"existing lists:",r.lists)}}window.customElements.define("shacl-node",Rt);var _o={},ko,$s;function aa(){return $s||($s=1,ko=class Qd{constructor(e,t=new Map,r=0){this.prefix=e,this._existing=t,this.counter=r}clone(){const{prefix:e,_existing:t,counter:r}=this;return new Qd(e,new Map(t),r)}getId(e){const t=e&&this._existing.get(e);if(t)return t;const r=this.prefix+this.counter;return this.counter++,e&&this._existing.set(e,r),r}hasId(e){return this._existing.has(e)}getOldIds(){return[...this._existing.keys()]}}),ko}var So={},Ds;function Sp(){return Ds||(Ds=1,function(n,e){if(n.setImmediate)return;var t=1,r={},o=!1,i=n.document,a;function s(E){typeof E!="function"&&(E=new Function(""+E));for(var v=new Array(arguments.length-1),c=0;c<v.length;c++)v[c]=arguments[c+1];var h={callback:E,args:v};return r[t]=h,a(t),t++}function l(E){delete r[E]}function u(E){var v=E.callback,c=E.args;switch(c.length){case 0:v();break;case 1:v(c[0]);break;case 2:v(c[0],c[1]);break;case 3:v(c[0],c[1],c[2]);break;default:v.apply(e,c);break}}function f(E){if(o)setTimeout(f,0,E);else{var v=r[E];if(v){o=!0;try{u(v)}finally{l(E),o=!1}}}}function m(){a=function(E){process.nextTick(function(){f(E)})}}function y(){if(n.postMessage&&!n.importScripts){var E=!0,v=n.onmessage;return n.onmessage=function(){E=!1},n.postMessage("","*"),n.onmessage=v,E}}function b(){var E="setImmediate$"+Math.random()+"$",v=function(c){c.source===n&&typeof c.data=="string"&&c.data.indexOf(E)===0&&f(+c.data.slice(E.length))};n.addEventListener?n.addEventListener("message",v,!1):n.attachEvent("onmessage",v),a=function(c){n.postMessage(E+c,"*")}}function g(){var E=new MessageChannel;E.port1.onmessage=function(v){var c=v.data;f(c)},a=function(v){E.port2.postMessage(v)}}function x(){var E=i.documentElement;a=function(v){var c=i.createElement("script");c.onreadystatechange=function(){f(v),c.onreadystatechange=null,E.removeChild(c),c=null},E.appendChild(c)}}function _(){a=function(E){setTimeout(f,0,E)}}var k=Object.getPrototypeOf&&Object.getPrototypeOf(n);k=k&&k.setTimeout?k:n,{}.toString.call(n.process)==="[object process]"?m():y()?b():n.MessageChannel?g():i&&"onreadystatechange"in i.createElement("script")?x():_(),k.setImmediate=s,k.clearImmediate=l}(typeof self>"u"?typeof Zt>"u"?So:Zt:self)),So}/*!
278
281
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
279
- */var Eo,Ds;function Dn(){if(Ds)return Eo;Ds=1,wp();const r=self.crypto||self.msCrypto;return Eo=class{constructor(t){if(!(r&&r.subtle))throw new Error("crypto.subtle not found.");if(t==="sha256")this.algorithm={name:"SHA-256"};else if(t==="sha1")this.algorithm={name:"SHA-1"};else throw new Error(`Unsupported algorithm "${t}".`);this._content=""}update(t){this._content+=t}async digest(){const t=new TextEncoder().encode(this._content),n=new Uint8Array(await r.subtle.digest(this.algorithm,t));let o="";for(let i=0;i<n.length;++i)o+=n[i].toString(16).padStart(2,"0");return o}},Eo}/*!
282
+ */var Eo,Ms;function Dn(){if(Ms)return Eo;Ms=1,Sp();const n=self.crypto||self.msCrypto;return Eo=class{constructor(t){if(!(n&&n.subtle))throw new Error("crypto.subtle not found.");if(t==="sha256")this.algorithm={name:"SHA-256"};else if(t==="sha1")this.algorithm={name:"SHA-1"};else throw new Error(`Unsupported algorithm "${t}".`);this._content=""}update(t){this._content+=t}async digest(){const t=new TextEncoder().encode(this._content),r=new Uint8Array(await n.subtle.digest(this.algorithm,t));let o="";for(let i=0;i<r.length;++i)o+=r[i].toString(16).padStart(2,"0");return o}},Eo}/*!
280
283
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
281
- */var Io,Ms;function Jd(){return Ms||(Ms=1,Io=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;t<e.length;++t)this.dir.set(e[t],!0)}hasNext(){return!this.done}next(){const{current:e,dir:t}=this,n=e.slice();let o=null,i=0;const a=e.length;for(let s=0;s<a;++s){const l=e[s],u=t.get(l);(o===null||l>o)&&(u&&s>0&&l>e[s-1]||!u&&s<a-1&&l>e[s+1])&&(o=l,i=s)}if(o===null)this.done=!0;else{const s=t.get(o)?i-1:i+1;e[i]=e[s],e[s]=o;for(const l of e)l>o&&t.set(l,!t.get(l))}return n}}),Io}/*!
284
+ */var Io,Cs;function Xd(){return Cs||(Cs=1,Io=class{constructor(e){this.current=e.sort(),this.done=!1,this.dir=new Map;for(let t=0;t<e.length;++t)this.dir.set(e[t],!0)}hasNext(){return!this.done}next(){const{current:e,dir:t}=this,r=e.slice();let o=null,i=0;const a=e.length;for(let s=0;s<a;++s){const l=e[s],u=t.get(l);(o===null||l>o)&&(u&&s>0&&l>e[s-1]||!u&&s<a-1&&l>e[s+1])&&(o=l,i=s)}if(o===null)this.done=!0;else{const s=t.get(o)?i-1:i+1;e[i]=e[s],e[s]=o;for(const l of e)l>o&&t.set(l,!t.get(l))}return r}}),Io}/*!
282
285
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
283
- */var Ro,Cs;function aa(){if(Cs)return Ro;Cs=1;const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+"langString",t="http://www.w3.org/2001/XMLSchema#string",n="NamedNode",o="BlankNode",i="Literal",a="DefaultGraph",s={};(()=>{const b="(?:<([^:]+:[^>]*)>)",x="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"+"_",_=x+"0-9-·̀-ͯ‿-⁀",E="(_:(?:["+x+"0-9])(?:(?:["+_+".])*(?:["+_+"]))?)",v='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',c="(?:\\^\\^"+b+")",R="(?:"+v+"(?:"+c+"|"+"(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))"+")?)",D="[ \\t]+",N="[ \\t]*",B="(?:"+b+"|"+E+")"+D,I=b+D,M="(?:"+b+"|"+E+"|"+R+")"+N,q="(?:\\.|(?:(?:"+b+"|"+E+")"+N+"\\.))";s.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,s.empty=new RegExp("^"+N+"$"),s.quad=new RegExp("^"+N+B+I+M+q+N+"$")})(),Ro=class bn{static parse(g){const x=[],_={},k=g.split(s.eoln);let E=0;for(const v of k){if(E++,s.empty.test(v))continue;const c=v.match(s.quad);if(c===null)throw new Error("N-Quads parse error on line "+E+".");const h={subject:null,predicate:null,object:null,graph:null};if(c[1]!==void 0?h.subject={termType:n,value:c[1]}:h.subject={termType:o,value:c[2]},h.predicate={termType:n,value:c[3]},c[4]!==void 0?h.object={termType:n,value:c[4]}:c[5]!==void 0?h.object={termType:o,value:c[5]}:(h.object={termType:i,value:void 0,datatype:{termType:n}},c[7]!==void 0?h.object.datatype.value=c[7]:c[8]!==void 0?(h.object.datatype.value=e,h.object.language=c[8]):h.object.datatype.value=t,h.object.value=y(c[6])),c[9]!==void 0?h.graph={termType:n,value:c[9]}:c[10]!==void 0?h.graph={termType:o,value:c[10]}:h.graph={termType:a,value:""},!(h.graph.value in _))_[h.graph.value]=[h],x.push(h);else{let R=!0;const D=_[h.graph.value];for(const N of D)if(l(N,h)){R=!1;break}R&&(D.push(h),x.push(h))}}return x}static serialize(g){Array.isArray(g)||(g=bn.legacyDatasetToQuads(g));const x=[];for(const _ of g)x.push(bn.serializeQuad(_));return x.sort().join("")}static serializeQuadComponents(g,x,_,k){let E="";return g.termType===n?E+=`<${g.value}>`:E+=`${g.value}`,E+=` <${x.value}> `,_.termType===n?E+=`<${_.value}>`:_.termType===o?E+=_.value:(E+=`"${f(_.value)}"`,_.datatype.value===e?_.language&&(E+=`@${_.language}`):_.datatype.value!==t&&(E+=`^^<${_.datatype.value}>`)),k.termType===n?E+=` <${k.value}>`:k.termType===o&&(E+=` ${k.value}`),E+=` .
284
- `,E}static serializeQuad(g){return bn.serializeQuadComponents(g.subject,g.predicate,g.object,g.graph)}static legacyDatasetToQuads(g){const x=[],_={"blank node":o,IRI:n,literal:i};for(const k in g)g[k].forEach(v=>{const c={};for(const h in v){const R=v[h],D={termType:_[R.type],value:R.value};D.termType===i&&(D.datatype={termType:n},"datatype"in R&&(D.datatype.value=R.datatype),"language"in R?("datatype"in R||(D.datatype.value=e),D.language=R.language):"datatype"in R||(D.datatype.value=t)),c[h]=D}k==="@default"?c.graph={termType:a,value:""}:c.graph={termType:k.startsWith("_:")?o:n,value:k},x.push(c)});return x}};function l(b,g){return!(b.subject.termType===g.subject.termType&&b.object.termType===g.object.termType)||!(b.subject.value===g.subject.value&&b.predicate.value===g.predicate.value&&b.object.value===g.object.value)?!1:b.object.termType!==i?!0:b.object.datatype.termType===g.object.datatype.termType&&b.object.language===g.object.language&&b.object.datatype.value===g.object.datatype.value}const u=/["\\\n\r]/g;function f(b){return b.replace(u,function(g){switch(g){case'"':return'\\"';case"\\":return"\\\\";case`
286
+ */var Ro,Ps;function sa(){if(Ps)return Ro;Ps=1;const e="http://www.w3.org/1999/02/22-rdf-syntax-ns#"+"langString",t="http://www.w3.org/2001/XMLSchema#string",r="NamedNode",o="BlankNode",i="Literal",a="DefaultGraph",s={};(()=>{const b="(?:<([^:]+:[^>]*)>)",x="A-Za-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�"+"_",_=x+"0-9-·̀-ͯ‿-⁀",E="(_:(?:["+x+"0-9])(?:(?:["+_+".])*(?:["+_+"]))?)",v='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',c="(?:\\^\\^"+b+")",R="(?:"+v+"(?:"+c+"|"+"(?:@([a-zA-Z]+(?:-[a-zA-Z0-9]+)*))"+")?)",D="[ \\t]+",N="[ \\t]*",B="(?:"+b+"|"+E+")"+D,I=b+D,M="(?:"+b+"|"+E+"|"+R+")"+N,q="(?:\\.|(?:(?:"+b+"|"+E+")"+N+"\\.))";s.eoln=/(?:\r\n)|(?:\n)|(?:\r)/g,s.empty=new RegExp("^"+N+"$"),s.quad=new RegExp("^"+N+B+I+M+q+N+"$")})(),Ro=class mn{static parse(g){const x=[],_={},k=g.split(s.eoln);let E=0;for(const v of k){if(E++,s.empty.test(v))continue;const c=v.match(s.quad);if(c===null)throw new Error("N-Quads parse error on line "+E+".");const h={subject:null,predicate:null,object:null,graph:null};if(c[1]!==void 0?h.subject={termType:r,value:c[1]}:h.subject={termType:o,value:c[2]},h.predicate={termType:r,value:c[3]},c[4]!==void 0?h.object={termType:r,value:c[4]}:c[5]!==void 0?h.object={termType:o,value:c[5]}:(h.object={termType:i,value:void 0,datatype:{termType:r}},c[7]!==void 0?h.object.datatype.value=c[7]:c[8]!==void 0?(h.object.datatype.value=e,h.object.language=c[8]):h.object.datatype.value=t,h.object.value=y(c[6])),c[9]!==void 0?h.graph={termType:r,value:c[9]}:c[10]!==void 0?h.graph={termType:o,value:c[10]}:h.graph={termType:a,value:""},!(h.graph.value in _))_[h.graph.value]=[h],x.push(h);else{let R=!0;const D=_[h.graph.value];for(const N of D)if(l(N,h)){R=!1;break}R&&(D.push(h),x.push(h))}}return x}static serialize(g){Array.isArray(g)||(g=mn.legacyDatasetToQuads(g));const x=[];for(const _ of g)x.push(mn.serializeQuad(_));return x.sort().join("")}static serializeQuadComponents(g,x,_,k){let E="";return g.termType===r?E+=`<${g.value}>`:E+=`${g.value}`,E+=` <${x.value}> `,_.termType===r?E+=`<${_.value}>`:_.termType===o?E+=_.value:(E+=`"${f(_.value)}"`,_.datatype.value===e?_.language&&(E+=`@${_.language}`):_.datatype.value!==t&&(E+=`^^<${_.datatype.value}>`)),k.termType===r?E+=` <${k.value}>`:k.termType===o&&(E+=` ${k.value}`),E+=` .
287
+ `,E}static serializeQuad(g){return mn.serializeQuadComponents(g.subject,g.predicate,g.object,g.graph)}static legacyDatasetToQuads(g){const x=[],_={"blank node":o,IRI:r,literal:i};for(const k in g)g[k].forEach(v=>{const c={};for(const h in v){const R=v[h],D={termType:_[R.type],value:R.value};D.termType===i&&(D.datatype={termType:r},"datatype"in R&&(D.datatype.value=R.datatype),"language"in R?("datatype"in R||(D.datatype.value=e),D.language=R.language):"datatype"in R||(D.datatype.value=t)),c[h]=D}k==="@default"?c.graph={termType:a,value:""}:c.graph={termType:k.startsWith("_:")?o:r,value:k},x.push(c)});return x}};function l(b,g){return!(b.subject.termType===g.subject.termType&&b.object.termType===g.object.termType)||!(b.subject.value===g.subject.value&&b.predicate.value===g.predicate.value&&b.object.value===g.object.value)?!1:b.object.termType!==i?!0:b.object.datatype.termType===g.object.datatype.termType&&b.object.language===g.object.language&&b.object.datatype.value===g.object.datatype.value}const u=/["\\\n\r]/g;function f(b){return b.replace(u,function(g){switch(g){case'"':return'\\"';case"\\":return"\\\\";case`
285
288
  `:return"\\n";case"\r":return"\\r"}})}const m=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function y(b){return b.replace(m,function(g,x,_,k){if(x)switch(x){case"t":return" ";case"b":return"\b";case"n":return`
286
289
  `;case"r":return"\r";case"f":return"\f";case'"':return'"';case"'":return"'";case"\\":return"\\"}if(_)return String.fromCharCode(parseInt(_,16));if(k)throw new Error("Unsupported U escape")})}return Ro}/*!
287
290
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
288
- */var No,Ps;function Qd(){if(Ps)return No;Ps=1;const r=ia(),e=Dn(),t=Jd(),n=aa();No=class{constructor({createMessageDigest:a=()=>new e("sha256"),canonicalIdMap:s=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new r("_:c14n",s),this.createMessageDigest=a,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}async main(a){this.deepIterations=new Map,this.quads=a;for(const b of a)this._addBlankNodeQuadInfo({quad:b,component:b.subject}),this._addBlankNodeQuadInfo({quad:b,component:b.object}),this._addBlankNodeQuadInfo({quad:b,component:b.graph});const s=new Map,l=[...this.blankNodeInfo.keys()];let u=0;for(const b of l)++u%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:b,hashToBlankNodes:s});const f=[...s.keys()].sort(),m=[];for(const b of f){const g=s.get(b);if(g.length>1){m.push(g);continue}const x=g[0];this.canonicalIssuer.getId(x)}for(const b of m){const g=[];for(const x of b){if(this.canonicalIssuer.hasId(x))continue;const _=new r("_:b");_.getId(x);const k=await this.hashNDegreeQuads(x,_);g.push(k)}g.sort(o);for(const x of g){const _=x.issuer.getOldIds();for(const k of _)this.canonicalIssuer.getId(k)}}const y=[];for(const b of this.quads){const g=n.serializeQuadComponents(this._componentWithCanonicalId(b.subject),b.predicate,this._componentWithCanonicalId(b.object),this._componentWithCanonicalId(b.graph));y.push(g)}return y.sort(),y.join("")}async hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),u=l.quads;for(const m of u){const y={subject:null,predicate:m.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(a,m.subject,"subject"),y.object=this.modifyFirstDegreeComponent(a,m.object,"object"),y.graph=this.modifyFirstDegreeComponent(a,m.graph,"graph"),s.push(n.serializeQuad(y))}s.sort();const f=this.createMessageDigest();for(const m of s)f.update(m);return l.hash=await f.digest(),l.hash}async hashRelatedBlankNode(a,s,l,u){let f;this.canonicalIssuer.hasId(a)?f=this.canonicalIssuer.getId(a):l.hasId(a)?f=l.getId(a):f=this.blankNodeInfo.get(a).hash;const m=this.createMessageDigest();return m.update(u),u!=="g"&&m.update(this.getRelatedPredicate(s)),m.update(f),m.digest()}async hashNDegreeQuads(a,s){const l=this.deepIterations.get(a)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(a,l+1);const u=this.createMessageDigest(),f=await this.createHashToRelated(a,s),m=[...f.keys()].sort();for(const y of m){u.update(y);let b="",g;const x=new t(f.get(y));let _=0;for(;x.hasNext();){const k=x.next();++_%3===0&&await this._yield();let E=s.clone(),v="";const c=[];let h=!1;for(const R of k)if(this.canonicalIssuer.hasId(R)?v+=this.canonicalIssuer.getId(R):(E.hasId(R)||c.push(R),v+=E.getId(R)),b.length!==0&&v>b){h=!0;break}if(!h){for(const R of c){const D=await this.hashNDegreeQuads(R,E);if(v+=E.getId(R),v+=`<${D.hash}>`,E=D.issuer,b.length!==0&&v>b){h=!0;break}}h||(b.length===0||v<b)&&(b=v,g=E)}}u.update(b),s=g}return{hash:await u.digest(),issuer:s}}modifyFirstDegreeComponent(a,s){return s.termType!=="BlankNode"?s:{termType:"BlankNode",value:s.value===a?"_:a":"_:z"}}getRelatedPredicate(a){return`<${a.predicate.value}>`}async createHashToRelated(a,s){const l=new Map,u=this.blankNodeInfo.get(a).quads;let f=0;for(const m of u)++f%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:m,component:m.subject,position:"s",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:m,component:m.object,position:"o",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:m,component:m.graph,position:"g",id:a,issuer:s,hashToRelated:l})]);return l}async _hashAndTrackBlankNode({id:a,hashToBlankNodes:s}){const l=await this.hashFirstDegreeQuads(a),u=s.get(l);u?u.push(a):s.set(l,[a])}_addBlankNodeQuadInfo({quad:a,component:s}){if(s.termType!=="BlankNode")return;const l=s.value,u=this.blankNodeInfo.get(l);u?u.quads.add(a):this.blankNodeInfo.set(l,{quads:new Set([a]),hash:null})}async _addRelatedBlankNodeHash({quad:a,component:s,position:l,id:u,issuer:f,hashToRelated:m}){if(!(s.termType==="BlankNode"&&s.value!==u))return;const y=s.value,b=await this.hashRelatedBlankNode(y,a,f,l),g=m.get(b);g?g.push(y):m.set(b,[y])}_componentWithCanonicalId(a){return a.termType==="BlankNode"&&!a.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(a.value)}:a}async _yield(){return new Promise(a=>setImmediate(a))}};function o(i,a){return i.hash<a.hash?-1:i.hash>a.hash?1:0}return No}/*!
291
+ */var No,Bs;function Kd(){if(Bs)return No;Bs=1;const n=aa(),e=Dn(),t=Xd(),r=sa();No=class{constructor({createMessageDigest:a=()=>new e("sha256"),canonicalIdMap:s=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new n("_:c14n",s),this.createMessageDigest=a,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}async main(a){this.deepIterations=new Map,this.quads=a;for(const b of a)this._addBlankNodeQuadInfo({quad:b,component:b.subject}),this._addBlankNodeQuadInfo({quad:b,component:b.object}),this._addBlankNodeQuadInfo({quad:b,component:b.graph});const s=new Map,l=[...this.blankNodeInfo.keys()];let u=0;for(const b of l)++u%100===0&&await this._yield(),await this._hashAndTrackBlankNode({id:b,hashToBlankNodes:s});const f=[...s.keys()].sort(),m=[];for(const b of f){const g=s.get(b);if(g.length>1){m.push(g);continue}const x=g[0];this.canonicalIssuer.getId(x)}for(const b of m){const g=[];for(const x of b){if(this.canonicalIssuer.hasId(x))continue;const _=new n("_:b");_.getId(x);const k=await this.hashNDegreeQuads(x,_);g.push(k)}g.sort(o);for(const x of g){const _=x.issuer.getOldIds();for(const k of _)this.canonicalIssuer.getId(k)}}const y=[];for(const b of this.quads){const g=r.serializeQuadComponents(this._componentWithCanonicalId(b.subject),b.predicate,this._componentWithCanonicalId(b.object),this._componentWithCanonicalId(b.graph));y.push(g)}return y.sort(),y.join("")}async hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),u=l.quads;for(const m of u){const y={subject:null,predicate:m.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(a,m.subject,"subject"),y.object=this.modifyFirstDegreeComponent(a,m.object,"object"),y.graph=this.modifyFirstDegreeComponent(a,m.graph,"graph"),s.push(r.serializeQuad(y))}s.sort();const f=this.createMessageDigest();for(const m of s)f.update(m);return l.hash=await f.digest(),l.hash}async hashRelatedBlankNode(a,s,l,u){let f;this.canonicalIssuer.hasId(a)?f=this.canonicalIssuer.getId(a):l.hasId(a)?f=l.getId(a):f=this.blankNodeInfo.get(a).hash;const m=this.createMessageDigest();return m.update(u),u!=="g"&&m.update(this.getRelatedPredicate(s)),m.update(f),m.digest()}async hashNDegreeQuads(a,s){const l=this.deepIterations.get(a)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(a,l+1);const u=this.createMessageDigest(),f=await this.createHashToRelated(a,s),m=[...f.keys()].sort();for(const y of m){u.update(y);let b="",g;const x=new t(f.get(y));let _=0;for(;x.hasNext();){const k=x.next();++_%3===0&&await this._yield();let E=s.clone(),v="";const c=[];let h=!1;for(const R of k)if(this.canonicalIssuer.hasId(R)?v+=this.canonicalIssuer.getId(R):(E.hasId(R)||c.push(R),v+=E.getId(R)),b.length!==0&&v>b){h=!0;break}if(!h){for(const R of c){const D=await this.hashNDegreeQuads(R,E);if(v+=E.getId(R),v+=`<${D.hash}>`,E=D.issuer,b.length!==0&&v>b){h=!0;break}}h||(b.length===0||v<b)&&(b=v,g=E)}}u.update(b),s=g}return{hash:await u.digest(),issuer:s}}modifyFirstDegreeComponent(a,s){return s.termType!=="BlankNode"?s:{termType:"BlankNode",value:s.value===a?"_:a":"_:z"}}getRelatedPredicate(a){return`<${a.predicate.value}>`}async createHashToRelated(a,s){const l=new Map,u=this.blankNodeInfo.get(a).quads;let f=0;for(const m of u)++f%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:m,component:m.subject,position:"s",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:m,component:m.object,position:"o",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:m,component:m.graph,position:"g",id:a,issuer:s,hashToRelated:l})]);return l}async _hashAndTrackBlankNode({id:a,hashToBlankNodes:s}){const l=await this.hashFirstDegreeQuads(a),u=s.get(l);u?u.push(a):s.set(l,[a])}_addBlankNodeQuadInfo({quad:a,component:s}){if(s.termType!=="BlankNode")return;const l=s.value,u=this.blankNodeInfo.get(l);u?u.quads.add(a):this.blankNodeInfo.set(l,{quads:new Set([a]),hash:null})}async _addRelatedBlankNodeHash({quad:a,component:s,position:l,id:u,issuer:f,hashToRelated:m}){if(!(s.termType==="BlankNode"&&s.value!==u))return;const y=s.value,b=await this.hashRelatedBlankNode(y,a,f,l),g=m.get(b);g?g.push(y):m.set(b,[y])}_componentWithCanonicalId(a){return a.termType==="BlankNode"&&!a.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(a.value)}:a}async _yield(){return new Promise(a=>setImmediate(a))}};function o(i,a){return i.hash<a.hash?-1:i.hash>a.hash?1:0}return No}/*!
289
292
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
290
- */var jo,Bs;function xp(){if(Bs)return jo;Bs=1;const r=Dn(),e=Qd();return jo=class extends e{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new r("sha1")}modifyFirstDegreeComponent(n,o,i){return o.termType!=="BlankNode"?o:i==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===n?"_:a":"_:z"}}getRelatedPredicate(n){return n.predicate.value}async createHashToRelated(n,o){const i=new Map,a=this.blankNodeInfo.get(n).quads;let s=0;for(const l of a){let u,f;if(l.subject.termType==="BlankNode"&&l.subject.value!==n)f=l.subject.value,u="p";else if(l.object.termType==="BlankNode"&&l.object.value!==n)f=l.object.value,u="r";else continue;++s%100===0&&await this._yield();const m=await this.hashRelatedBlankNode(f,l,o,u),y=i.get(m);y?y.push(f):i.set(m,[f])}return i}},jo}/*!
293
+ */var jo,qs;function Ep(){if(qs)return jo;qs=1;const n=Dn(),e=Kd();return jo=class extends e{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new n("sha1")}modifyFirstDegreeComponent(r,o,i){return o.termType!=="BlankNode"?o:i==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}async createHashToRelated(r,o){const i=new Map,a=this.blankNodeInfo.get(r).quads;let s=0;for(const l of a){let u,f;if(l.subject.termType==="BlankNode"&&l.subject.value!==r)f=l.subject.value,u="p";else if(l.object.termType==="BlankNode"&&l.object.value!==r)f=l.object.value,u="r";else continue;++s%100===0&&await this._yield();const m=await this.hashRelatedBlankNode(f,l,o,u),y=i.get(m);y?y.push(f):i.set(m,[f])}return i}},jo}/*!
291
294
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
292
- */var To,qs;function Xd(){if(qs)return To;qs=1;const r=ia(),e=Dn(),t=Jd(),n=aa();To=class{constructor({createMessageDigest:a=()=>new e("sha256"),canonicalIdMap:s=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new r("_:c14n",s),this.createMessageDigest=a,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}main(a){this.deepIterations=new Map,this.quads=a;for(const y of a)this._addBlankNodeQuadInfo({quad:y,component:y.subject}),this._addBlankNodeQuadInfo({quad:y,component:y.object}),this._addBlankNodeQuadInfo({quad:y,component:y.graph});const s=new Map,l=[...this.blankNodeInfo.keys()];for(const y of l)this._hashAndTrackBlankNode({id:y,hashToBlankNodes:s});const u=[...s.keys()].sort(),f=[];for(const y of u){const b=s.get(y);if(b.length>1){f.push(b);continue}const g=b[0];this.canonicalIssuer.getId(g)}for(const y of f){const b=[];for(const g of y){if(this.canonicalIssuer.hasId(g))continue;const x=new r("_:b");x.getId(g);const _=this.hashNDegreeQuads(g,x);b.push(_)}b.sort(o);for(const g of b){const x=g.issuer.getOldIds();for(const _ of x)this.canonicalIssuer.getId(_)}}const m=[];for(const y of this.quads){const b=n.serializeQuadComponents(this._componentWithCanonicalId({component:y.subject}),y.predicate,this._componentWithCanonicalId({component:y.object}),this._componentWithCanonicalId({component:y.graph}));m.push(b)}return m.sort(),m.join("")}hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),u=l.quads;for(const m of u){const y={subject:null,predicate:m.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(a,m.subject,"subject"),y.object=this.modifyFirstDegreeComponent(a,m.object,"object"),y.graph=this.modifyFirstDegreeComponent(a,m.graph,"graph"),s.push(n.serializeQuad(y))}s.sort();const f=this.createMessageDigest();for(const m of s)f.update(m);return l.hash=f.digest(),l.hash}hashRelatedBlankNode(a,s,l,u){let f;this.canonicalIssuer.hasId(a)?f=this.canonicalIssuer.getId(a):l.hasId(a)?f=l.getId(a):f=this.blankNodeInfo.get(a).hash;const m=this.createMessageDigest();return m.update(u),u!=="g"&&m.update(this.getRelatedPredicate(s)),m.update(f),m.digest()}hashNDegreeQuads(a,s){const l=this.deepIterations.get(a)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(a,l+1);const u=this.createMessageDigest(),f=this.createHashToRelated(a,s),m=[...f.keys()].sort();for(const y of m){u.update(y);let b="",g;const x=new t(f.get(y));for(;x.hasNext();){const _=x.next();let k=s.clone(),E="";const v=[];let c=!1;for(const h of _)if(this.canonicalIssuer.hasId(h)?E+=this.canonicalIssuer.getId(h):(k.hasId(h)||v.push(h),E+=k.getId(h)),b.length!==0&&E>b){c=!0;break}if(!c){for(const h of v){const R=this.hashNDegreeQuads(h,k);if(E+=k.getId(h),E+=`<${R.hash}>`,k=R.issuer,b.length!==0&&E>b){c=!0;break}}c||(b.length===0||E<b)&&(b=E,g=k)}}u.update(b),s=g}return{hash:u.digest(),issuer:s}}modifyFirstDegreeComponent(a,s){return s.termType!=="BlankNode"?s:{termType:"BlankNode",value:s.value===a?"_:a":"_:z"}}getRelatedPredicate(a){return`<${a.predicate.value}>`}createHashToRelated(a,s){const l=new Map,u=this.blankNodeInfo.get(a).quads;for(const f of u)this._addRelatedBlankNodeHash({quad:f,component:f.subject,position:"s",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:f,component:f.object,position:"o",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:f,component:f.graph,position:"g",id:a,issuer:s,hashToRelated:l});return l}_hashAndTrackBlankNode({id:a,hashToBlankNodes:s}){const l=this.hashFirstDegreeQuads(a),u=s.get(l);u?u.push(a):s.set(l,[a])}_addBlankNodeQuadInfo({quad:a,component:s}){if(s.termType!=="BlankNode")return;const l=s.value,u=this.blankNodeInfo.get(l);u?u.quads.add(a):this.blankNodeInfo.set(l,{quads:new Set([a]),hash:null})}_addRelatedBlankNodeHash({quad:a,component:s,position:l,id:u,issuer:f,hashToRelated:m}){if(!(s.termType==="BlankNode"&&s.value!==u))return;const y=s.value,b=this.hashRelatedBlankNode(y,a,f,l),g=m.get(b);g?g.push(y):m.set(b,[y])}_componentWithCanonicalId({component:a}){return a.termType==="BlankNode"&&!a.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(a.value)}:a}};function o(i,a){return i.hash<a.hash?-1:i.hash>a.hash?1:0}return To}/*!
295
+ */var To,Fs;function Yd(){if(Fs)return To;Fs=1;const n=aa(),e=Dn(),t=Xd(),r=sa();To=class{constructor({createMessageDigest:a=()=>new e("sha256"),canonicalIdMap:s=new Map,maxDeepIterations:l=1/0}={}){this.name="URDNA2015",this.blankNodeInfo=new Map,this.canonicalIssuer=new n("_:c14n",s),this.createMessageDigest=a,this.maxDeepIterations=l,this.quads=null,this.deepIterations=null}main(a){this.deepIterations=new Map,this.quads=a;for(const y of a)this._addBlankNodeQuadInfo({quad:y,component:y.subject}),this._addBlankNodeQuadInfo({quad:y,component:y.object}),this._addBlankNodeQuadInfo({quad:y,component:y.graph});const s=new Map,l=[...this.blankNodeInfo.keys()];for(const y of l)this._hashAndTrackBlankNode({id:y,hashToBlankNodes:s});const u=[...s.keys()].sort(),f=[];for(const y of u){const b=s.get(y);if(b.length>1){f.push(b);continue}const g=b[0];this.canonicalIssuer.getId(g)}for(const y of f){const b=[];for(const g of y){if(this.canonicalIssuer.hasId(g))continue;const x=new n("_:b");x.getId(g);const _=this.hashNDegreeQuads(g,x);b.push(_)}b.sort(o);for(const g of b){const x=g.issuer.getOldIds();for(const _ of x)this.canonicalIssuer.getId(_)}}const m=[];for(const y of this.quads){const b=r.serializeQuadComponents(this._componentWithCanonicalId({component:y.subject}),y.predicate,this._componentWithCanonicalId({component:y.object}),this._componentWithCanonicalId({component:y.graph}));m.push(b)}return m.sort(),m.join("")}hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),u=l.quads;for(const m of u){const y={subject:null,predicate:m.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(a,m.subject,"subject"),y.object=this.modifyFirstDegreeComponent(a,m.object,"object"),y.graph=this.modifyFirstDegreeComponent(a,m.graph,"graph"),s.push(r.serializeQuad(y))}s.sort();const f=this.createMessageDigest();for(const m of s)f.update(m);return l.hash=f.digest(),l.hash}hashRelatedBlankNode(a,s,l,u){let f;this.canonicalIssuer.hasId(a)?f=this.canonicalIssuer.getId(a):l.hasId(a)?f=l.getId(a):f=this.blankNodeInfo.get(a).hash;const m=this.createMessageDigest();return m.update(u),u!=="g"&&m.update(this.getRelatedPredicate(s)),m.update(f),m.digest()}hashNDegreeQuads(a,s){const l=this.deepIterations.get(a)||0;if(l>this.maxDeepIterations)throw new Error(`Maximum deep iterations (${this.maxDeepIterations}) exceeded.`);this.deepIterations.set(a,l+1);const u=this.createMessageDigest(),f=this.createHashToRelated(a,s),m=[...f.keys()].sort();for(const y of m){u.update(y);let b="",g;const x=new t(f.get(y));for(;x.hasNext();){const _=x.next();let k=s.clone(),E="";const v=[];let c=!1;for(const h of _)if(this.canonicalIssuer.hasId(h)?E+=this.canonicalIssuer.getId(h):(k.hasId(h)||v.push(h),E+=k.getId(h)),b.length!==0&&E>b){c=!0;break}if(!c){for(const h of v){const R=this.hashNDegreeQuads(h,k);if(E+=k.getId(h),E+=`<${R.hash}>`,k=R.issuer,b.length!==0&&E>b){c=!0;break}}c||(b.length===0||E<b)&&(b=E,g=k)}}u.update(b),s=g}return{hash:u.digest(),issuer:s}}modifyFirstDegreeComponent(a,s){return s.termType!=="BlankNode"?s:{termType:"BlankNode",value:s.value===a?"_:a":"_:z"}}getRelatedPredicate(a){return`<${a.predicate.value}>`}createHashToRelated(a,s){const l=new Map,u=this.blankNodeInfo.get(a).quads;for(const f of u)this._addRelatedBlankNodeHash({quad:f,component:f.subject,position:"s",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:f,component:f.object,position:"o",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:f,component:f.graph,position:"g",id:a,issuer:s,hashToRelated:l});return l}_hashAndTrackBlankNode({id:a,hashToBlankNodes:s}){const l=this.hashFirstDegreeQuads(a),u=s.get(l);u?u.push(a):s.set(l,[a])}_addBlankNodeQuadInfo({quad:a,component:s}){if(s.termType!=="BlankNode")return;const l=s.value,u=this.blankNodeInfo.get(l);u?u.quads.add(a):this.blankNodeInfo.set(l,{quads:new Set([a]),hash:null})}_addRelatedBlankNodeHash({quad:a,component:s,position:l,id:u,issuer:f,hashToRelated:m}){if(!(s.termType==="BlankNode"&&s.value!==u))return;const y=s.value,b=this.hashRelatedBlankNode(y,a,f,l),g=m.get(b);g?g.push(y):m.set(b,[y])}_componentWithCanonicalId({component:a}){return a.termType==="BlankNode"&&!a.value.startsWith(this.canonicalIssuer.prefix)?{termType:"BlankNode",value:this.canonicalIssuer.getId(a.value)}:a}};function o(i,a){return i.hash<a.hash?-1:i.hash>a.hash?1:0}return To}/*!
293
296
  * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
294
- */var Ao,Fs;function _p(){if(Fs)return Ao;Fs=1;const r=Dn(),e=Xd();return Ao=class extends e{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new r("sha1")}modifyFirstDegreeComponent(n,o,i){return o.termType!=="BlankNode"?o:i==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===n?"_:a":"_:z"}}getRelatedPredicate(n){return n.predicate.value}createHashToRelated(n,o){const i=new Map,a=this.blankNodeInfo.get(n).quads;for(const s of a){let l,u;if(s.subject.termType==="BlankNode"&&s.subject.value!==n)u=s.subject.value,l="p";else if(s.object.termType==="BlankNode"&&s.object.value!==n)u=s.object.value,l="r";else continue;const f=this.hashRelatedBlankNode(u,s,o,l),m=i.get(f);m?m.push(u):i.set(f,[u])}return i}},Ao}const kp={},Sp=Object.freeze(Object.defineProperty({__proto__:null,default:kp},Symbol.toStringTag,{value:"Module"})),Ep=wc(Sp);var zs;function Ip(){return zs||(zs=1,function(r){const e=Qd(),t=xp(),n=Xd(),o=_p();let i;try{i=Ep}catch{}function a(s){return Array.isArray(s)?s:r.NQuads.legacyDatasetToQuads(s)}r.NQuads=aa(),r.IdentifierIssuer=ia(),r._rdfCanonizeNative=function(s){return s&&(i=s),i},r.canonize=async function(s,l){const u=a(s);if(l.useNative){if(!i)throw new Error("rdf-canonize-native not available");if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((f,m)=>i.canonize(u,l,(y,b)=>y?m(y):f(b)))}if(l.algorithm==="URDNA2015")return new e(l).main(u);if(l.algorithm==="URGNA2012"){if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new t(l).main(u)}throw"algorithm"in l?new Error("Invalid RDF Dataset Canonicalization algorithm: "+l.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},r._canonizeSync=function(s,l){const u=a(s);if(l.useNative){if(!i)throw new Error("rdf-canonize-native not available");if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return i.canonizeSync(u,l)}if(l.algorithm==="URDNA2015")return new n(l).main(u);if(l.algorithm==="URGNA2012"){if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(l).main(u)}throw"algorithm"in l?new Error("Invalid RDF Dataset Canonicalization algorithm: "+l.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}}(_o)),_o}var Lo,Us;function sa(){return Us||(Us=1,Lo=Ip()),Lo}var Oo,Hs;function Ke(){if(Hs)return Oo;Hs=1;const r={};return Oo=r,r.isArray=Array.isArray,r.isBoolean=e=>typeof e=="boolean"||Object.prototype.toString.call(e)==="[object Boolean]",r.isDouble=e=>r.isNumber(e)&&(String(e).indexOf(".")!==-1||Math.abs(e)>=1e21),r.isEmptyObject=e=>r.isObject(e)&&Object.keys(e).length===0,r.isNumber=e=>typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]",r.isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),r.isObject=e=>Object.prototype.toString.call(e)==="[object Object]",r.isString=e=>typeof e=="string"||Object.prototype.toString.call(e)==="[object String]",r.isUndefined=e=>typeof e>"u",Oo}var $o,Gs;function xt(){if(Gs)return $o;Gs=1;const r=Ke(),e={};return $o=e,e.isSubject=t=>r.isObject(t)&&!("@value"in t||"@set"in t||"@list"in t)?Object.keys(t).length>1||!("@id"in t):!1,e.isSubjectReference=t=>r.isObject(t)&&Object.keys(t).length===1&&"@id"in t,e.isValue=t=>r.isObject(t)&&"@value"in t,e.isList=t=>r.isObject(t)&&"@list"in t,e.isGraph=t=>r.isObject(t)&&"@graph"in t&&Object.keys(t).filter(n=>n!=="@id"&&n!=="@index").length===1,e.isSimpleGraph=t=>e.isGraph(t)&&!("@id"in t),e.isBlankNode=t=>{if(r.isObject(t)){if("@id"in t){const n=t["@id"];return!r.isString(n)||n.indexOf("_:")===0}return Object.keys(t).length===0||!("@value"in t||"@set"in t||"@list"in t)}return!1},$o}var Do,Vs;function rt(){return Vs||(Vs=1,Do=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",n={}){super(e),this.name=t,this.message=e,this.details=n}}),Do}var Mo,Ws;function et(){if(Ws)return Mo;Ws=1;const r=xt(),e=Ke(),t=sa().IdentifierIssuer,n=rt(),o=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,i=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,a=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,s=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,l=/^@[a-zA-Z]+$/,u={headers:{accept:"application/ld+json, application/json"}},f={};Mo=f,f.IdentifierIssuer=t,f.REGEX_BCP47=o,f.REGEX_KEYWORD=l,f.clone=function(y){if(y&&typeof y=="object"){let b;if(e.isArray(y)){b=[];for(let g=0;g<y.length;++g)b[g]=f.clone(y[g])}else if(y instanceof Map){b=new Map;for(const[g,x]of y)b.set(g,f.clone(x))}else if(y instanceof Set){b=new Set;for(const g of y)b.add(f.clone(g))}else if(e.isObject(y)){b={};for(const g in y)b[g]=f.clone(y[g])}else b=y.toString();return b}return y},f.asArray=function(y){return Array.isArray(y)?y:[y]},f.buildHeaders=(y={})=>{if(Object.keys(y).some(g=>g.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+u.headers.accept+'" is supported.');return Object.assign({Accept:u.headers.accept},y)},f.parseLinkHeader=y=>{const b={},g=y.match(i);for(let x=0;x<g.length;++x){let _=g[x].match(a);if(!_)continue;const k={target:_[1]},E=_[2];for(;_=s.exec(E);)k[_[1]]=_[2]===void 0?_[3]:_[2];const v=k.rel||"";Array.isArray(b[v])?b[v].push(k):b.hasOwnProperty(v)?b[v]=[b[v],k]:b[v]=k}return b},f.validateTypeValue=(y,b)=>{if(!e.isString(y)&&!(e.isArray(y)&&y.every(g=>e.isString(g)))){if(b&&e.isObject(y))switch(Object.keys(y).length){case 0:return;case 1:if("@default"in y&&f.asArray(y["@default"]).every(g=>e.isString(g)))return}throw new n('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:y})}},f.hasProperty=(y,b)=>{if(y.hasOwnProperty(b)){const g=y[b];return!e.isArray(g)||g.length>0}return!1},f.hasValue=(y,b,g)=>{if(f.hasProperty(y,b)){let x=y[b];const _=r.isList(x);if(e.isArray(x)||_){_&&(x=x["@list"]);for(let k=0;k<x.length;++k)if(f.compareValues(g,x[k]))return!0}else if(!e.isArray(g))return f.compareValues(g,x)}return!1},f.addValue=(y,b,g,x)=>{if(x=x||{},"propertyIsArray"in x||(x.propertyIsArray=!1),"valueIsArray"in x||(x.valueIsArray=!1),"allowDuplicate"in x||(x.allowDuplicate=!0),"prependValue"in x||(x.prependValue=!1),x.valueIsArray)y[b]=g;else if(e.isArray(g)){g.length===0&&x.propertyIsArray&&!y.hasOwnProperty(b)&&(y[b]=[]),x.prependValue&&(g=g.concat(y[b]),y[b]=[]);for(let _=0;_<g.length;++_)f.addValue(y,b,g[_],x)}else if(y.hasOwnProperty(b)){const _=!x.allowDuplicate&&f.hasValue(y,b,g);!e.isArray(y[b])&&(!_||x.propertyIsArray)&&(y[b]=[y[b]]),_||(x.prependValue?y[b].unshift(g):y[b].push(g))}else y[b]=x.propertyIsArray?[g]:g},f.getValues=(y,b)=>[].concat(y[b]||[]),f.removeProperty=(y,b)=>{delete y[b]},f.removeValue=(y,b,g,x)=>{x=x||{},"propertyIsArray"in x||(x.propertyIsArray=!1);const _=f.getValues(y,b).filter(k=>!f.compareValues(k,g));_.length===0?f.removeProperty(y,b):_.length===1&&!x.propertyIsArray?y[b]=_[0]:y[b]=_},f.relabelBlankNodes=(y,b)=>{b=b||{};const g=b.issuer||new t("_:b");return m(g,y)},f.compareValues=(y,b)=>y===b||r.isValue(y)&&r.isValue(b)&&y["@value"]===b["@value"]&&y["@type"]===b["@type"]&&y["@language"]===b["@language"]&&y["@index"]===b["@index"]?!0:e.isObject(y)&&"@id"in y&&e.isObject(b)&&"@id"in b?y["@id"]===b["@id"]:!1,f.compareShortestLeast=(y,b)=>y.length<b.length?-1:b.length<y.length?1:y===b?0:y<b?-1:1;function m(y,b){if(e.isArray(b))for(let g=0;g<b.length;++g)b[g]=m(y,b[g]);else if(r.isList(b))b["@list"]=m(y,b["@list"]);else if(e.isObject(b)){r.isBlankNode(b)&&(b["@id"]=y.getId(b["@id"]));const g=Object.keys(b).sort();for(let x=0;x<g.length;++x){const _=g[x];_!=="@id"&&(b[_]=m(y,b[_]))}}return b}return Mo}var Co,Js;function la(){if(Js)return Co;Js=1;const r="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e="http://www.w3.org/2001/XMLSchema#";return Co={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:r,RDF_LIST:r+"List",RDF_FIRST:r+"first",RDF_REST:r+"rest",RDF_NIL:r+"nil",RDF_TYPE:r+"type",RDF_PLAIN_LITERAL:r+"PlainLiteral",RDF_XML_LITERAL:r+"XMLLiteral",RDF_JSON_LITERAL:r+"JSON",RDF_OBJECT:r+"object",RDF_LANGSTRING:r+"langString",XSD:e,XSD_BOOLEAN:e+"boolean",XSD_DOUBLE:e+"double",XSD_INTEGER:e+"integer",XSD_STRING:e+"string"},Co}var Po,Qs;function Kd(){return Qs||(Qs=1,Po=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}),Po}var Bo,Xs;function jt(){if(Xs)return Bo;Xs=1;const r=Ke(),e={};Bo=e,e.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},e.parse=(n,o)=>{const i={},a=e.parsers[o||"full"],s=a.regex.exec(n);let l=a.keys.length;for(;l--;)i[a.keys[l]]=s[l]===void 0?null:s[l];return(i.scheme==="https"&&i.port==="443"||i.scheme==="http"&&i.port==="80")&&(i.href=i.href.replace(":"+i.port,""),i.authority=i.authority.replace(":"+i.port,""),i.port=null),i.normalizedPath=e.removeDotSegments(i.path),i},e.prependBase=(n,o)=>{if(n===null||e.isAbsolute(o))return o;(!n||r.isString(n))&&(n=e.parse(n||""));const i=e.parse(o),a={protocol:n.protocol||""};if(i.authority!==null)a.authority=i.authority,a.path=i.path,a.query=i.query;else if(a.authority=n.authority,i.path==="")a.path=n.path,i.query!==null?a.query=i.query:a.query=n.query;else{if(i.path.indexOf("/")===0)a.path=i.path;else{let l=n.path;l=l.substr(0,l.lastIndexOf("/")+1),(l.length>0||n.authority)&&l.substr(-1)!=="/"&&(l+="/"),l+=i.path,a.path=l}a.query=i.query}i.path!==""&&(a.path=e.removeDotSegments(a.path));let s=a.protocol;return a.authority!==null&&(s+="//"+a.authority),s+=a.path,a.query!==null&&(s+="?"+a.query),i.fragment!==null&&(s+="#"+i.fragment),s===""&&(s="./"),s},e.removeBase=(n,o)=>{if(n===null)return o;(!n||r.isString(n))&&(n=e.parse(n||""));let i="";if(n.href!==""?i+=(n.protocol||"")+"//"+(n.authority||""):o.indexOf("//")&&(i+="//"),o.indexOf(i)!==0)return o;const a=e.parse(o.substr(i.length)),s=n.normalizedPath.split("/"),l=a.normalizedPath.split("/"),u=a.fragment||a.query?0:1;for(;s.length>0&&l.length>u&&s[0]===l[0];)s.shift(),l.shift();let f="";if(s.length>0){s.pop();for(let m=0;m<s.length;++m)f+="../"}return f+=l.join("/"),a.query!==null&&(f+="?"+a.query),a.fragment!==null&&(f+="#"+a.fragment),f===""&&(f="./"),f},e.removeDotSegments=n=>{if(n.length===0)return"";const o=n.split("/"),i=[];for(;o.length>0;){const a=o.shift(),s=o.length===0;if(a==="."){s&&i.push("");continue}if(a===".."){i.pop(),s&&i.push("");continue}i.push(a)}return n[0]==="/"&&i.length>0&&i[0]!==""&&i.unshift(""),i.length===1&&i[0]===""?"/":i.join("/")};const t=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;return e.isAbsolute=n=>r.isString(n)&&t.test(n),e.isRelative=n=>r.isString(n),Bo}var qo,Ks;function Rp(){if(Ks)return qo;Ks=1;const{parseLinkHeader:r,buildHeaders:e}=et(),{LINK_HEADER_CONTEXT:t}=la(),n=rt(),o=Kd(),{prependBase:i}=jt(),a=/(^|(\r\n))link:/i;qo=({secure:l,headers:u={},xhr:f}={headers:{}})=>{return u=e(u),new o().wrapLoader(y);async function y(b){if(b.indexOf("http:")!==0&&b.indexOf("https:")!==0)throw new n('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:b});if(l&&b.indexOf("https")!==0)throw new n(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:b});let g;try{g=await s(f,b,u)}catch(v){throw new n("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:b,cause:v})}if(g.status>=400)throw new n("URL could not be dereferenced: "+g.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:b,httpStatusCode:g.status});let x={contextUrl:null,documentUrl:b,document:g.response},_=null;const k=g.getResponseHeader("Content-Type");let E;if(a.test(g.getAllResponseHeaders())&&(E=g.getResponseHeader("Link")),E&&k!=="application/ld+json"){const v=r(E),c=v[t];if(Array.isArray(c))throw new n("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:b});c&&(x.contextUrl=c.target),_=v.alternate,_&&_.type=="application/ld+json"&&!(k||"").match(/^application\/(\w*\+)?json$/)&&(x=await y(i(b,_.target)))}return x}};function s(l,u,f){l=l||XMLHttpRequest;const m=new l;return new Promise((y,b)=>{m.onload=()=>y(m),m.onerror=g=>b(g),m.open("GET",u,!0);for(const g in f)m.setRequestHeader(g,f[g]);m.send()})}return qo}var Fo,Ys;function Np(){if(Ys)return Fo;Ys=1;const r=Rp(),e={};return Fo=e,e.setupDocumentLoaders=function(t){typeof XMLHttpRequest<"u"&&(t.documentLoaders.xhr=r,t.useDocumentLoader("xhr"))},e.setupGlobals=function(t){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:t.JsonLdProcessor})},Fo}var zo,Zs;function jp(){return Zs||(Zs=1,zo=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),zo}var Uo,el;function Tp(){if(el)return Uo;el=1,Uo=r,r.Node=o,r.create=r;function r(i){var a=this;if(a instanceof r||(a=new r),a.tail=null,a.head=null,a.length=0,i&&typeof i.forEach=="function")i.forEach(function(u){a.push(u)});else if(arguments.length>0)for(var s=0,l=arguments.length;s<l;s++)a.push(arguments[s]);return a}r.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var a=i.next,s=i.prev;return a&&(a.prev=s),s&&(s.next=a),i===this.head&&(this.head=a),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,a},r.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var a=this.head;i.list=this,i.next=a,a&&(a.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}},r.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var a=this.tail;i.list=this,i.prev=a,a&&(a.next=i),this.tail=i,this.head||(this.head=i),this.length++}},r.prototype.push=function(){for(var i=0,a=arguments.length;i<a;i++)t(this,arguments[i]);return this.length},r.prototype.unshift=function(){for(var i=0,a=arguments.length;i<a;i++)n(this,arguments[i]);return this.length},r.prototype.pop=function(){if(this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}},r.prototype.shift=function(){if(this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}},r.prototype.forEach=function(i,a){a=a||this;for(var s=this.head,l=0;s!==null;l++)i.call(a,s.value,l,this),s=s.next},r.prototype.forEachReverse=function(i,a){a=a||this;for(var s=this.tail,l=this.length-1;s!==null;l--)i.call(a,s.value,l,this),s=s.prev},r.prototype.get=function(i){for(var a=0,s=this.head;s!==null&&a<i;a++)s=s.next;if(a===i&&s!==null)return s.value},r.prototype.getReverse=function(i){for(var a=0,s=this.tail;s!==null&&a<i;a++)s=s.prev;if(a===i&&s!==null)return s.value},r.prototype.map=function(i,a){a=a||this;for(var s=new r,l=this.head;l!==null;)s.push(i.call(a,l.value,this)),l=l.next;return s},r.prototype.mapReverse=function(i,a){a=a||this;for(var s=new r,l=this.tail;l!==null;)s.push(i.call(a,l.value,this)),l=l.prev;return s},r.prototype.reduce=function(i,a){var s,l=this.head;if(arguments.length>1)s=a;else if(this.head)l=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;l!==null;u++)s=i(s,l.value,u),l=l.next;return s},r.prototype.reduceReverse=function(i,a){var s,l=this.tail;if(arguments.length>1)s=a;else if(this.tail)l=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=this.length-1;l!==null;u--)s=i(s,l.value,u),l=l.prev;return s},r.prototype.toArray=function(){for(var i=new Array(this.length),a=0,s=this.head;s!==null;a++)i[a]=s.value,s=s.next;return i},r.prototype.toArrayReverse=function(){for(var i=new Array(this.length),a=0,s=this.tail;s!==null;a++)i[a]=s.value,s=s.prev;return i},r.prototype.slice=function(i,a){a=a||this.length,a<0&&(a+=this.length),i=i||0,i<0&&(i+=this.length);var s=new r;if(a<i||a<0)return s;i<0&&(i=0),a>this.length&&(a=this.length);for(var l=0,u=this.head;u!==null&&l<i;l++)u=u.next;for(;u!==null&&l<a;l++,u=u.next)s.push(u.value);return s},r.prototype.sliceReverse=function(i,a){a=a||this.length,a<0&&(a+=this.length),i=i||0,i<0&&(i+=this.length);var s=new r;if(a<i||a<0)return s;i<0&&(i=0),a>this.length&&(a=this.length);for(var l=this.length,u=this.tail;u!==null&&l>a;l--)u=u.prev;for(;u!==null&&l>i;l--,u=u.prev)s.push(u.value);return s},r.prototype.splice=function(i,a,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var l=0,u=this.head;u!==null&&l<i;l++)u=u.next;for(var f=[],l=0;u&&l<a;l++)f.push(u.value),u=this.removeNode(u);u===null&&(u=this.tail),u!==this.head&&u!==this.tail&&(u=u.prev);for(var l=0;l<s.length;l++)u=e(this,u,s[l]);return f},r.prototype.reverse=function(){for(var i=this.head,a=this.tail,s=i;s!==null;s=s.prev){var l=s.prev;s.prev=s.next,s.next=l}return this.head=a,this.tail=i,this};function e(i,a,s){var l=a===i.head?new o(s,null,a,i):new o(s,a,a.next,i);return l.next===null&&(i.tail=l),l.prev===null&&(i.head=l),i.length++,l}function t(i,a){i.tail=new o(a,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function n(i,a){i.head=new o(a,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function o(i,a,s,l){if(!(this instanceof o))return new o(i,a,s,l);this.list=l,this.value=i,a?(a.next=this,this.prev=a):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{jp()(r)}catch{}return Uo}var Ho,tl;function Yd(){if(tl)return Ho;tl=1;const r=Tp(),e=Symbol("max"),t=Symbol("length"),n=Symbol("lengthCalculator"),o=Symbol("allowStale"),i=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),u=Symbol("cache"),f=Symbol("updateAgeOnGet"),m=()=>1;class y{constructor(c){if(typeof c=="number"&&(c={max:c}),c||(c={}),c.max&&(typeof c.max!="number"||c.max<0))throw new TypeError("max must be a non-negative number");this[e]=c.max||1/0;const h=c.length||m;if(this[n]=typeof h!="function"?m:h,this[o]=c.stale||!1,c.maxAge&&typeof c.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=c.maxAge||0,this[a]=c.dispose,this[s]=c.noDisposeOnSet||!1,this[f]=c.updateAgeOnGet||!1,this.reset()}set max(c){if(typeof c!="number"||c<0)throw new TypeError("max must be a non-negative number");this[e]=c||1/0,x(this)}get max(){return this[e]}set allowStale(c){this[o]=!!c}get allowStale(){return this[o]}set maxAge(c){if(typeof c!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=c,x(this)}get maxAge(){return this[i]}set lengthCalculator(c){typeof c!="function"&&(c=m),c!==this[n]&&(this[n]=c,this[t]=0,this[l].forEach(h=>{h.length=this[n](h.value,h.key),this[t]+=h.length})),x(this)}get lengthCalculator(){return this[n]}get length(){return this[t]}get itemCount(){return this[l].length}rforEach(c,h){h=h||this;for(let R=this[l].tail;R!==null;){const D=R.prev;E(this,c,R,h),R=D}}forEach(c,h){h=h||this;for(let R=this[l].head;R!==null;){const D=R.next;E(this,c,R,h),R=D}}keys(){return this[l].toArray().map(c=>c.key)}values(){return this[l].toArray().map(c=>c.value)}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach(c=>this[a](c.key,c.value)),this[u]=new Map,this[l]=new r,this[t]=0}dump(){return this[l].map(c=>g(this,c)?!1:{k:c.key,v:c.value,e:c.now+(c.maxAge||0)}).toArray().filter(c=>c)}dumpLru(){return this[l]}set(c,h,R){if(R=R||this[i],R&&typeof R!="number")throw new TypeError("maxAge must be a number");const D=R?Date.now():0,N=this[n](h,c);if(this[u].has(c)){if(N>this[e])return _(this,this[u].get(c)),!1;const M=this[u].get(c).value;return this[a]&&(this[s]||this[a](c,M.value)),M.now=D,M.maxAge=R,M.value=h,this[t]+=N-M.length,M.length=N,this.get(c),x(this),!0}const B=new k(c,h,N,D,R);return B.length>this[e]?(this[a]&&this[a](c,h),!1):(this[t]+=B.length,this[l].unshift(B),this[u].set(c,this[l].head),x(this),!0)}has(c){if(!this[u].has(c))return!1;const h=this[u].get(c).value;return!g(this,h)}get(c){return b(this,c,!0)}peek(c){return b(this,c,!1)}pop(){const c=this[l].tail;return c?(_(this,c),c.value):null}del(c){_(this,this[u].get(c))}load(c){this.reset();const h=Date.now();for(let R=c.length-1;R>=0;R--){const D=c[R],N=D.e||0;if(N===0)this.set(D.k,D.v);else{const B=N-h;B>0&&this.set(D.k,D.v,B)}}}prune(){this[u].forEach((c,h)=>b(this,h,!1))}}const b=(v,c,h)=>{const R=v[u].get(c);if(R){const D=R.value;if(g(v,D)){if(_(v,R),!v[o])return}else h&&(v[f]&&(R.value.now=Date.now()),v[l].unshiftNode(R));return D.value}},g=(v,c)=>{if(!c||!c.maxAge&&!v[i])return!1;const h=Date.now()-c.now;return c.maxAge?h>c.maxAge:v[i]&&h>v[i]},x=v=>{if(v[t]>v[e])for(let c=v[l].tail;v[t]>v[e]&&c!==null;){const h=c.prev;_(v,c),c=h}},_=(v,c)=>{if(c){const h=c.value;v[a]&&v[a](h.key,h.value),v[t]-=h.length,v[u].delete(h.key),v[l].removeNode(c)}};class k{constructor(c,h,R,D,N){this.key=c,this.value=h,this.length=R,this.now=D,this.maxAge=N||0}}const E=(v,c,h,R)=>{let D=h.value;g(v,D)&&(_(v,h),v[o]||(D=void 0)),D&&c.call(R,D.value,D.key,v)};return Ho=y,Ho}var Go,rl;function Ap(){if(rl)return Go;rl=1;const r=Yd(),e=10;return Go=class{constructor({document:n}){this.document=n,this.cache=new r({max:e})}getProcessed(n){return this.cache.get(n)}setProcessed(n,o){this.cache.set(n,o)}},Go}var Vo,nl;function Lp(){if(nl)return Vo;nl=1;const{isArray:r,isObject:e,isString:t}=Ke(),{asArray:n}=et(),{prependBase:o}=jt(),i=rt(),a=Ap(),s=10;Vo=class{constructor({sharedCache:m}){this.perOpCache=new Map,this.sharedCache=m}async resolve({activeCtx:m,context:y,documentLoader:b,base:g,cycles:x=new Set}){y&&e(y)&&y["@context"]&&(y=y["@context"]),y=n(y);const _=[];for(const k of y){if(t(k)){let c=this._get(k);c||(c=await this._resolveRemoteContext({activeCtx:m,url:k,documentLoader:b,base:g,cycles:x})),r(c)?_.push(...c):_.push(c);continue}if(k===null){_.push(new a({document:null}));continue}e(k)||l(y);const E=JSON.stringify(k);let v=this._get(E);v||(v=new a({document:k}),this._cacheResolvedContext({key:E,resolved:v,tag:"static"})),_.push(v)}return _}_get(m){let y=this.perOpCache.get(m);if(!y){const b=this.sharedCache.get(m);b&&(y=b.get("static"),y&&this.perOpCache.set(m,y))}return y}_cacheResolvedContext({key:m,resolved:y,tag:b}){if(this.perOpCache.set(m,y),b!==void 0){let g=this.sharedCache.get(m);g||(g=new Map,this.sharedCache.set(m,g)),g.set(b,y)}return y}async _resolveRemoteContext({activeCtx:m,url:y,documentLoader:b,base:g,cycles:x}){y=o(g,y);const{context:_,remoteDoc:k}=await this._fetchContext({activeCtx:m,url:y,documentLoader:b,cycles:x});g=k.documentUrl||y,u({context:_,base:g});const E=await this.resolve({activeCtx:m,context:_,documentLoader:b,base:g,cycles:x});return this._cacheResolvedContext({key:y,resolved:E,tag:k.tag}),E}async _fetchContext({activeCtx:m,url:y,documentLoader:b,cycles:g}){if(g.size>s)throw new i("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:m.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:s});if(g.has(y))throw new i("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:m.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:y});g.add(y);let x,_;try{_=await b(y),x=_.document||null,t(x)&&(x=JSON.parse(x))}catch(k){throw new i(`Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context. URL: "${y}".`,"jsonld.InvalidUrl",{code:"loading remote context failed",url:y,cause:k})}if(!e(x))throw new i(`Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object. URL: "${y}".`,"jsonld.InvalidUrl",{code:"invalid remote context",url:y});return"@context"in x?x={"@context":x["@context"]}:x={"@context":{}},_.contextUrl&&(r(x["@context"])||(x["@context"]=[x["@context"]]),x["@context"].push(_.contextUrl)),{context:x,remoteDoc:_}}};function l(f){throw new i("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:f})}function u({context:f,base:m}){if(!f)return;const y=f["@context"];if(t(y)){f["@context"]=o(m,y);return}if(r(y)){for(let b=0;b<y.length;++b){const g=y[b];if(t(g)){y[b]=o(m,g);continue}e(g)&&u({context:{"@context":g},base:m})}return}if(e(y))for(const b in y)u({context:y[b],base:m})}return Vo}var Wo,ol;function Op(){return ol||(ol=1,Wo=sa().NQuads),Wo}var Jo,il;function Xr(){if(il)return Jo;il=1;const r=rt(),{isArray:e}=Ke(),{asArray:t}=et(),n={};Jo=n,n.defaultEventHandler=null,n.setupEventHandler=({options:a={}})=>{const s=[].concat(a.safe?n.safeEventHandler:[],a.eventHandler?t(a.eventHandler):[],n.defaultEventHandler?n.defaultEventHandler:[]);return s.length===0?null:s},n.handleEvent=({event:a,options:s})=>{o({event:a,handlers:s.eventHandler})};function o({event:a,handlers:s}){let l=!0;for(let u=0;l&&u<s.length;++u){l=!1;const f=s[u];if(e(f))l=o({event:a,handlers:f});else if(typeof f=="function")f({event:a,next:()=>{l=!0}});else if(typeof f=="object")a.code in f?f[a.code]({event:a,next:()=>{l=!0}}):l=!0;else throw new r("Invalid event handler.","jsonld.InvalidEventHandler",{event:a})}return l}const i=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);return n.safeEventHandler=function({event:s,next:l}){if(s.level==="warning"&&i.has(s.code))throw new r("Safe mode validation error.","jsonld.ValidationError",{event:s});l()},n.logEventHandler=function({event:s,next:l}){console.log(`EVENT: ${s.message}`,{event:s}),l()},n.logWarningEventHandler=function({event:s,next:l}){s.level==="warning"&&console.warn(`WARNING: ${s.message}`,{event:s}),l()},n.unhandledEventHandler=function({event:s}){throw new r("No handler for event.","jsonld.UnhandledEvent",{event:s})},n.setDefaultEventHandler=function({eventHandler:a}={}){n.defaultEventHandler=a?t(a):null},Jo}var Qo,al;function Ft(){if(al)return Qo;al=1;const r=et(),e=rt(),{isArray:t,isObject:n,isString:o,isUndefined:i}=Ke(),{isAbsolute:a,isRelative:s,prependBase:l}=jt(),{handleEvent:u}=Xr(),{REGEX_BCP47:f,REGEX_KEYWORD:m,asArray:y,compareShortestLeast:b}=et(),g=new Map,x=1e4,_={};Qo=_,_.process=async({activeCtx:v,localCtx:c,options:h,propagate:R=!0,overrideProtected:D=!1,cycles:N=new Set})=>{if(n(c)&&"@context"in c&&t(c["@context"])&&(c=c["@context"]),y(c).length===0)return v;const I=[],M=[({event:Y,next:T})=>{I.push(Y),T()}];h.eventHandler&&M.push(h.eventHandler);const q=h;h={...h,eventHandler:M};const j=await h.contextResolver.resolve({activeCtx:v,context:c,documentLoader:h.documentLoader,base:h.base});n(j[0].document)&&typeof j[0].document["@propagate"]=="boolean"&&(R=j[0].document["@propagate"]);let A=v;!R&&!A.previousContext&&(A=A.clone(),A.previousContext=v);for(const Y of j){let{document:T}=Y;if(v=A,T===null){if(!D&&Object.keys(v.protected).length!==0)throw new e("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});A=v=_.getInitialContext(h).clone();continue}const ee=Y.getProcessed(v);if(ee){if(q.eventHandler)for(const K of ee.events)u({event:K,options:q});A=v=ee.context;continue}if(n(T)&&"@context"in T&&(T=T["@context"]),!n(T))throw new e("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:T});A=A.clone();const C=new Map;if("@version"in T){if(T["@version"]!==1.1)throw new e("Unsupported JSON-LD version: "+T["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:T});if(v.processingMode&&v.processingMode==="json-ld-1.0")throw new e("@version: "+T["@version"]+" not compatible with "+v.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:T});A.processingMode="json-ld-1.1",A["@version"]=T["@version"],C.set("@version",!0)}if(A.processingMode=A.processingMode||v.processingMode,"@base"in T){let K=T["@base"];if(!(K===null||a(K)))if(s(K))K=l(A["@base"],K);else throw new e('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:T});A["@base"]=K,C.set("@base",!0)}if("@vocab"in T){const K=T["@vocab"];if(K===null)delete A["@vocab"];else if(o(K)){if(!a(K)&&_.processingMode(A,1))throw new e('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:T});{const w=k(A,K,{vocab:!0,base:!0},void 0,void 0,h);a(w)||h.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:w}},options:h}),A["@vocab"]=w}}else throw new e('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:T});C.set("@vocab",!0)}if("@language"in T){const K=T["@language"];if(K===null)delete A["@language"];else if(o(K))K.match(f)||h.eventHandler&&u({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:K}},options:h}),A["@language"]=K.toLowerCase();else throw new e('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:T});C.set("@language",!0)}if("@direction"in T){const K=T["@direction"];if(v.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @direction not compatible with "+v.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:T});if(K===null)delete A["@direction"];else{if(K!=="ltr"&&K!=="rtl")throw new e('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:T});A["@direction"]=K}C.set("@direction",!0)}if("@propagate"in T){const K=T["@propagate"];if(v.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @propagate not compatible with "+v.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:T});if(typeof K!="boolean")throw new e("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:c});C.set("@propagate",!0)}if("@import"in T){const K=T["@import"];if(v.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @import not compatible with "+v.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:T});if(!o(K))throw new e("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:c});const w=await h.contextResolver.resolve({activeCtx:v,context:K,documentLoader:h.documentLoader,base:h.base});if(w.length!==1)throw new e("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:c});const z=w[0].getProcessed(v);if(z)T=z;else{const Q=w[0].document;if("@import"in Q)throw new e("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:c});for(const W in Q)T.hasOwnProperty(W)||(T[W]=Q[W]);w[0].setProcessed(v,T)}C.set("@import",!0)}C.set("@protected",T["@protected"]||!1);for(const K in T)if(_.createTermDefinition({activeCtx:A,localCtx:T,term:K,defined:C,options:h,overrideProtected:D}),n(T[K])&&"@context"in T[K]){const w=T[K]["@context"];let z=!0;if(o(w)){const Q=l(h.base,w);N.has(Q)?z=!1:N.add(Q)}if(z)try{await _.process({activeCtx:A.clone(),localCtx:T[K]["@context"],overrideProtected:!0,options:h,cycles:N})}catch{throw new e("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:T[K]["@context"],term:K})}}Y.setProcessed(v,{context:A,events:I})}return A},_.createTermDefinition=({activeCtx:v,localCtx:c,term:h,defined:R,options:D,overrideProtected:N=!1})=>{if(R.has(h)){if(R.get(h))return;throw new e("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:c,term:h})}R.set(h,!1);let B;if(c.hasOwnProperty(h)&&(B=c[h]),h==="@type"&&n(B)&&(B["@container"]||"@set")==="@set"&&_.processingMode(v,1.1)){const T=["@container","@id","@protected"],ee=Object.keys(B);if(ee.length===0||ee.some(C=>!T.includes(C)))throw new e("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:c,term:h})}else{if(_.isKeyword(h))throw new e("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:c,term:h});if(h.match(m)){D.eventHandler&&u({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:h}},options:D});return}else if(h==="")throw new e("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:c})}const I=v.mappings.get(h);v.mappings.has(h)&&v.mappings.delete(h);let M=!1;if((o(B)||B===null)&&(M=!0,B={"@id":B}),!n(B))throw new e("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:c});const q={};v.mappings.set(h,q),q.reverse=!1;const j=["@container","@id","@language","@reverse","@type"];_.processingMode(v,1.1)&&j.push("@context","@direction","@index","@nest","@prefix","@protected");for(const T in B)if(!j.includes(T))throw new e("Invalid JSON-LD syntax; a term definition must not contain "+T,"jsonld.SyntaxError",{code:"invalid term definition",context:c});const A=h.indexOf(":");if(q._termHasColon=A>0,"@reverse"in B){if("@id"in B)throw new e("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:c});if("@nest"in B)throw new e("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:c});const T=B["@reverse"];if(!o(T))throw new e("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});if(T.match(m)){D.eventHandler&&u({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:T}},options:D}),I?v.mappings.set(h,I):v.mappings.delete(h);return}const ee=k(v,T,{vocab:!0,base:!1},c,R,D);if(!a(ee))throw new e("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});q["@id"]=ee,q.reverse=!0}else if("@id"in B){let T=B["@id"];if(T&&!o(T))throw new e("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});if(T===null)q["@id"]=null;else if(!_.isKeyword(T)&&T.match(m)){D.eventHandler&&u({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:T}},options:D}),I?v.mappings.set(h,I):v.mappings.delete(h);return}else if(T!==h){if(T=k(v,T,{vocab:!0,base:!1},c,R,D),!a(T)&&!_.isKeyword(T))throw new e("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});if(h.match(/(?::[^:])|\//)){const ee=new Map(R).set(h,!0);if(k(v,h,{vocab:!0,base:!1},c,ee,D)!==T)throw new e("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c})}q["@id"]=T,q._prefix=M&&!q._termHasColon&&T.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in q))if(q._termHasColon){const T=h.substr(0,A);if(c.hasOwnProperty(T)&&_.createTermDefinition({activeCtx:v,localCtx:c,term:T,defined:R,options:D}),v.mappings.has(T)){const ee=h.substr(A+1);q["@id"]=v.mappings.get(T)["@id"]+ee}else q["@id"]=h}else if(h==="@type")q["@id"]=h;else{if(!("@vocab"in v))throw new e("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c,term:h});q["@id"]=v["@vocab"]+h}if((B["@protected"]===!0||R.get("@protected")===!0&&B["@protected"]!==!1)&&(v.protected[h]=!0,q.protected=!0),R.set(h,!0),"@type"in B){let T=B["@type"];if(!o(T))throw new e("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:c});if(T==="@json"||T==="@none"){if(_.processingMode(v,1))throw new e(`Invalid JSON-LD syntax; an @context @type value must not be "${T}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:c})}else if(T!=="@id"&&T!=="@vocab"){if(T=k(v,T,{vocab:!0,base:!1},c,R,D),!a(T))throw new e("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:c});if(T.indexOf("_:")===0)throw new e("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:c})}q["@type"]=T}if("@container"in B){const T=o(B["@container"])?[B["@container"]]:B["@container"]||[],ee=["@list","@set","@index","@language"];let C=!0;const K=T.includes("@set");if(_.processingMode(v,1.1)){if(ee.push("@graph","@id","@type"),T.includes("@list")){if(T.length!==1)throw new e("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:c})}else if(T.includes("@graph")){if(T.some(w=>w!=="@graph"&&w!=="@id"&&w!=="@index"&&w!=="@set"))throw new e("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:c})}else C&=T.length<=(K?2:1);if(T.includes("@type")&&(q["@type"]=q["@type"]||"@id",!["@id","@vocab"].includes(q["@type"])))throw new e("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:c})}else C&=!t(B["@container"]),C&=T.length<=1;if(C&=T.every(w=>ee.includes(w)),C&=!(K&&T.includes("@list")),!C)throw new e("Invalid JSON-LD syntax; @context @container value must be one of the following: "+ee.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:c});if(q.reverse&&!T.every(w=>["@index","@set"].includes(w)))throw new e("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:c});q["@container"]=T}if("@index"in B){if(!("@container"in B)||!q["@container"].includes("@index"))throw new e(`Invalid JSON-LD syntax; @index without @index in @container: "${B["@index"]}" on term "${h}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:c});if(!o(B["@index"])||B["@index"].indexOf("@")===0)throw new e(`Invalid JSON-LD syntax; @index must expand to an IRI: "${B["@index"]}" on term "${h}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:c});q["@index"]=B["@index"]}if("@context"in B&&(q["@context"]=B["@context"]),"@language"in B&&!("@type"in B)){let T=B["@language"];if(T!==null&&!o(T))throw new e("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:c});T!==null&&(T=T.toLowerCase()),q["@language"]=T}if("@prefix"in B){if(h.match(/:|\//))throw new e("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:c});if(_.isKeyword(q["@id"]))throw new e("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:c});if(typeof B["@prefix"]=="boolean")q._prefix=B["@prefix"]===!0;else throw new e("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:c})}if("@direction"in B){const T=B["@direction"];if(T!==null&&T!=="ltr"&&T!=="rtl")throw new e('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:c});q["@direction"]=T}if("@nest"in B){const T=B["@nest"];if(!o(T)||T!=="@nest"&&T.indexOf("@")===0)throw new e("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:c});q["@nest"]=T}// disallow aliasing @context and @preserve
295
- const Y=q["@id"];if(Y==="@context"||Y==="@preserve")throw new e("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:c});if(I&&I.protected&&!N&&(v.protected[h]=!0,q.protected=!0,!E(I,q)))throw new e("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:c,term:h})},_.expandIri=(v,c,h,R)=>k(v,c,h,void 0,void 0,R);function k(v,c,h,R,D,N){if(c===null||!o(c)||_.isKeyword(c))return c;if(c.match(m))return null;if(R&&R.hasOwnProperty(c)&&D.get(c)!==!0&&_.createTermDefinition({activeCtx:v,localCtx:R,term:c,defined:D,options:N}),h=h||{},h.vocab){const I=v.mappings.get(c);if(I===null)return null;if(n(I)&&"@id"in I)return I["@id"]}const B=c.indexOf(":");if(B>0){const I=c.substr(0,B),M=c.substr(B+1);if(I==="_"||M.indexOf("//")===0)return c;R&&R.hasOwnProperty(I)&&_.createTermDefinition({activeCtx:v,localCtx:R,term:I,defined:D,options:N});const q=v.mappings.get(I);if(q&&q._prefix)return q["@id"]+M;if(a(c))return c}if(h.vocab&&"@vocab"in v)c=v["@vocab"]+c;else if(h.base){let I,M;"@base"in v?v["@base"]?(M=l(N.base,v["@base"]),I=l(M,c)):(M=v["@base"],I=c):(M=N.base,I=l(N.base,c)),c=I}return c}_.getInitialContext=v=>{const c=JSON.stringify({processingMode:v.processingMode}),h=g.get(c);if(h)return h;const R={processingMode:v.processingMode,mappings:new Map,inverse:null,getInverse:D,clone:I,revertToPreviousContext:M,protected:{}};return g.size===x&&g.clear(),g.set(c,R),R;function D(){const q=this;if(q.inverse)return q.inverse;const j=q.inverse={},A=q.fastCurieMap={},Y={},T=(q["@language"]||"@none").toLowerCase(),ee=q["@direction"],C=q.mappings,K=[...C.keys()].sort(b);for(const w of K){const z=C.get(w);if(z===null)continue;let Q=z["@container"]||"@none";if(Q=[].concat(Q).sort().join(""),z["@id"]===null)continue;const W=y(z["@id"]);for(const ae of W){let U=j[ae];const H=_.isKeyword(ae);if(U)!H&&!z._termHasColon&&Y[ae].push(w);else if(j[ae]=U={},!H&&!z._termHasColon){Y[ae]=[w];const V={iri:ae,terms:Y[ae]};ae[0]in A?A[ae[0]].push(V):A[ae[0]]=[V]}if(U[Q]||(U[Q]={"@language":{},"@type":{},"@any":{}}),U=U[Q],B(w,U["@any"],"@none"),z.reverse)B(w,U["@type"],"@reverse");else if(z["@type"]==="@none")B(w,U["@any"],"@none"),B(w,U["@language"],"@none"),B(w,U["@type"],"@none");else if("@type"in z)B(w,U["@type"],z["@type"]);else if("@language"in z&&"@direction"in z){const V=z["@language"],F=z["@direction"];V&&F?B(w,U["@language"],`${V}_${F}`.toLowerCase()):V?B(w,U["@language"],V.toLowerCase()):F?B(w,U["@language"],`_${F}`):B(w,U["@language"],"@null")}else"@language"in z?B(w,U["@language"],(z["@language"]||"@null").toLowerCase()):"@direction"in z?z["@direction"]?B(w,U["@language"],`_${z["@direction"]}`):B(w,U["@language"],"@none"):ee?(B(w,U["@language"],`_${ee}`),B(w,U["@language"],"@none"),B(w,U["@type"],"@none")):(B(w,U["@language"],T),B(w,U["@language"],"@none"),B(w,U["@type"],"@none"))}}for(const w in A)N(A,w,1);return j}function N(q,j,A){const Y=q[j],T=q[j]={};let ee,C;for(const K of Y)ee=K.iri,A>=ee.length?C="":C=ee[A],C in T?T[C].push(K):T[C]=[K];for(const K in T)K!==""&&N(T,K,A+1)}function B(q,j,A){j.hasOwnProperty(A)||(j[A]=q)}function I(){const q={};return q.mappings=r.clone(this.mappings),q.clone=this.clone,q.inverse=null,q.getInverse=this.getInverse,q.protected=r.clone(this.protected),this.previousContext&&(q.previousContext=this.previousContext.clone()),q.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(q["@base"]=this["@base"]),"@language"in this&&(q["@language"]=this["@language"]),"@vocab"in this&&(q["@vocab"]=this["@vocab"]),q}function M(){return this.previousContext?this.previousContext.clone():this}},_.getContextValue=(v,c,h)=>{if(c===null)return h==="@context"?void 0:null;if(v.mappings.has(c)){const R=v.mappings.get(c);if(i(h))return R;if(R.hasOwnProperty(h))return R[h]}if(h==="@language"&&h in v||h==="@direction"&&h in v)return v[h];if(h!=="@context")return null},_.processingMode=(v,c)=>c.toString()>="1.1"?!v.processingMode||v.processingMode>="json-ld-"+c.toString():v.processingMode==="json-ld-1.0",_.isKeyword=v=>{if(!o(v)||v[0]!=="@")return!1;switch(v){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1};function E(v,c){if(!(v&&typeof v=="object")||!(c&&typeof c=="object"))return v===c;const h=Array.isArray(v);if(h!==Array.isArray(c))return!1;if(h){if(v.length!==c.length)return!1;for(let N=0;N<v.length;++N)if(!E(v[N],c[N]))return!1;return!0}const R=Object.keys(v),D=Object.keys(c);if(R.length!==D.length)return!1;for(const N in v){let B=v[N],I=c[N];if(N==="@container"&&Array.isArray(B)&&Array.isArray(I)&&(B=B.slice().sort(),I=I.slice().sort()),!E(B,I))return!1}return!0}return Qo}var Xo,sl;function $p(){if(sl)return Xo;sl=1;const r=rt(),{isArray:e,isObject:t,isEmptyObject:n,isString:o,isUndefined:i}=Ke(),{isList:a,isValue:s,isGraph:l,isSubject:u}=xt(),{expandIri:f,getContextValue:m,isKeyword:y,process:b,processingMode:g}=Ft(),{isAbsolute:x}=jt(),{REGEX_BCP47:_,REGEX_KEYWORD:k,addValue:E,asArray:v,getValues:c,validateTypeValue:h}=et(),{handleEvent:R}=Xr(),D={};Xo=D,D.expand=async({activeCtx:j,activeProperty:A=null,element:Y,options:T={},insideList:ee=!1,insideIndex:C=!1,typeScopedContext:K=null})=>{if(Y==null)return null;if(A==="@default"&&(T=Object.assign({},T,{isFrame:!1})),!e(Y)&&!t(Y))return!ee&&(A===null||f(j,A,{vocab:!0},T)==="@graph")?(T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:Y}},options:T}),null):I({activeCtx:j,activeProperty:A,value:Y,options:T});if(e(Y)){let V=[];const F=m(j,A,"@container")||[];ee=ee||F.includes("@list");for(let Z=0;Z<Y.length;++Z){let te=await D.expand({activeCtx:j,activeProperty:A,element:Y[Z],options:T,insideIndex:C,typeScopedContext:K});ee&&e(te)&&(te={"@list":te}),te!==null&&(e(te)?V=V.concat(te):V.push(te))}return V}const w=f(j,A,{vocab:!0},T),z=m(j,A,"@context");K=K||(j.previousContext?j:null);let Q=Object.keys(Y).sort(),W=!C;if(W&&K&&Q.length<=2&&!Q.includes("@context"))for(const V of Q){const F=f(K,V,{vocab:!0},T);if(F==="@value"){W=!1,j=K;break}if(F==="@id"&&Q.length===1){W=!1;break}}W&&(j=j.revertToPreviousContext()),i(z)||(j=await b({activeCtx:j,localCtx:z,propagate:!0,overrideProtected:!0,options:T})),"@context"in Y&&(j=await b({activeCtx:j,localCtx:Y["@context"],options:T})),K=j;let ae=null;for(const V of Q)if(f(j,V,{vocab:!0},T)==="@type"){ae=ae||V;const Z=Y[V],te=Array.isArray(Z)?Z.length>1?Z.slice().sort():Z:[Z];for(const ce of te){const pe=m(K,ce,"@context");i(pe)||(j=await b({activeCtx:j,localCtx:pe,options:T,propagate:!1}))}}let U={};await B({activeCtx:j,activeProperty:A,expandedActiveProperty:w,element:Y,expandedParent:U,options:T,insideList:ee,typeKey:ae,typeScopedContext:K}),Q=Object.keys(U);let H=Q.length;if("@value"in U){if("@type"in U&&("@language"in U||"@direction"in U))throw new r('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:U});let V=H-1;if("@type"in U&&(V-=1),"@index"in U&&(V-=1),"@language"in U&&(V-=1),"@direction"in U&&(V-=1),V!==0)throw new r('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:U});const F=U["@value"]===null?[]:v(U["@value"]),Z=c(U,"@type");if(!(g(j,1.1)&&Z.includes("@json")&&Z.length===1))if(F.length===0)T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:U}},options:T}),U=null;else{if(!F.every(te=>o(te)||n(te))&&"@language"in U)throw new r("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:U});if(!Z.every(te=>x(te)&&!(o(te)&&te.indexOf("_:")===0)||n(te)))throw new r('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:U})}}else if("@type"in U&&!e(U["@type"]))U["@type"]=[U["@type"]];else if("@set"in U||"@list"in U){if(H>1&&!(H===2&&"@index"in U))throw new r('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:U});"@set"in U&&(U=U["@set"],Q=Object.keys(U),H=Q.length)}else H===1&&"@language"in U&&(T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:U}},options:T}),U=null);return t(U)&&!T.keepFreeFloatingNodes&&!ee&&(A===null||w==="@graph"||(m(j,A,"@container")||[]).includes("@graph"))&&(U=N({value:U,count:H,options:T})),U};function N({value:j,count:A,options:Y}){if(A===0||"@value"in j||"@list"in j||A===1&&"@id"in j){if(Y.eventHandler){let T,ee;A===0?(T="empty object",ee="Dropping empty object."):"@value"in j?(T="object with only @value",ee="Dropping object with only @value."):"@list"in j?(T="object with only @list",ee="Dropping object with only @list."):A===1&&"@id"in j&&(T="object with only @id",ee="Dropping object with only @id."),R({event:{type:["JsonLdEvent"],code:T,level:"warning",message:ee,details:{value:j}},options:Y})}return null}return j}async function B({activeCtx:j,activeProperty:A,expandedActiveProperty:Y,element:T,expandedParent:ee,options:C={},insideList:K,typeKey:w,typeScopedContext:z}){const Q=Object.keys(T).sort(),W=[];let ae;const U=T[w]&&f(j,e(T[w])?T[w][0]:T[w],{vocab:!0},{...C,typeExpansion:!0})==="@json";for(const H of Q){let V=T[H],F;if(H==="@context")continue;const Z=f(j,H,{vocab:!0},C);if(Z===null||!(x(Z)||y(Z))){C.eventHandler&&R({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:H,expandedProperty:Z}},options:C});continue}if(y(Z)){if(Y==="@reverse")throw new r("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:V});if(Z in ee&&Z!=="@included"&&Z!=="@type")throw new r("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Z})}if(Z==="@id"){if(!o(V)){if(!C.isFrame)throw new r('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:V});if(t(V)){if(!n(V))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:V})}else if(e(V)){if(!V.every(L=>o(L)))throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:V})}else throw new r('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:V})}E(ee,"@id",v(V).map(L=>{if(o(L)){const G=f(j,L,{base:!0},C);return C.eventHandler&&(G===null?R(L===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:L}},options:C}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:L}},options:C}):x(G)||R({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:L,expandedId:G}},options:C})),G}return L}),{propertyIsArray:C.isFrame});continue}if(Z==="@type"){t(V)&&(V=Object.fromEntries(Object.entries(V).map(([L,G])=>[f(z,L,{vocab:!0}),v(G).map(re=>f(z,re,{base:!0,vocab:!0},{...C,typeExpansion:!0}))]))),h(V,C.isFrame),E(ee,"@type",v(V).map(L=>{if(o(L)){const G=f(z,L,{base:!0,vocab:!0},{...C,typeExpansion:!0});return G!=="@json"&&!x(G)&&C.eventHandler&&R({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:L}},options:C}),G}return L}),{propertyIsArray:!!C.isFrame});continue}if(Z==="@included"&&g(j,1.1)){const L=v(await D.expand({activeCtx:j,activeProperty:A,element:V,options:C}));if(!L.every(G=>u(G)))throw new r("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:V});E(ee,"@included",L,{propertyIsArray:!0});continue}if(Z==="@graph"&&!(t(V)||e(V)))throw new r('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:V});if(Z==="@value"){ae=V,U&&g(j,1.1)?ee["@value"]=V:E(ee,"@value",V,{propertyIsArray:C.isFrame});continue}if(Z==="@language"){if(V===null)continue;if(!o(V)&&!C.isFrame)throw new r('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:V});V=v(V).map(L=>o(L)?L.toLowerCase():L);for(const L of V)o(L)&&!L.match(_)&&C.eventHandler&&R({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:C});E(ee,"@language",V,{propertyIsArray:C.isFrame});continue}if(Z==="@direction"){if(!o(V)&&!C.isFrame)throw new r('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:V});V=v(V);for(const L of V)if(o(L)&&L!=="ltr"&&L!=="rtl")throw new r('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:V});E(ee,"@direction",V,{propertyIsArray:C.isFrame});continue}if(Z==="@index"){if(!o(V))throw new r('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:V});E(ee,"@index",V);continue}if(Z==="@reverse"){if(!t(V))throw new r('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:V});if(F=await D.expand({activeCtx:j,activeProperty:"@reverse",element:V,options:C}),"@reverse"in F)for(const G in F["@reverse"])E(ee,G,F["@reverse"][G],{propertyIsArray:!0});let L=ee["@reverse"]||null;for(const G in F){if(G==="@reverse")continue;L===null&&(L=ee["@reverse"]={}),E(L,G,[],{propertyIsArray:!0});const re=F[G];for(let de=0;de<re.length;++de){const ue=re[de];if(s(ue)||a(ue))throw new r('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:F});E(L,G,ue,{propertyIsArray:!0})}}continue}if(Z==="@nest"){W.push(H);continue}let te=j;const ce=m(j,H,"@context");i(ce)||(te=await b({activeCtx:j,localCtx:ce,propagate:!0,overrideProtected:!0,options:C}));const pe=m(j,H,"@container")||[];if(pe.includes("@language")&&t(V)){const L=m(te,H,"@direction");F=M(te,V,L,C)}else if(pe.includes("@index")&&t(V)){const L=pe.includes("@graph"),G=m(te,H,"@index")||"@index",re=G!=="@index"&&f(j,G,{vocab:!0},C);F=await q({activeCtx:te,options:C,activeProperty:H,value:V,asGraph:L,indexKey:G,propertyIndex:re})}else if(pe.includes("@id")&&t(V)){const L=pe.includes("@graph");F=await q({activeCtx:te,options:C,activeProperty:H,value:V,asGraph:L,indexKey:"@id"})}else if(pe.includes("@type")&&t(V))F=await q({activeCtx:te.revertToPreviousContext(),options:C,activeProperty:H,value:V,asGraph:!1,indexKey:"@type"});else{const L=Z==="@list";if(L||Z==="@set"){let G=A;L&&Y==="@graph"&&(G=null),F=await D.expand({activeCtx:te,activeProperty:G,element:V,options:C,insideList:L})}else m(j,H,"@type")==="@json"?F={"@type":"@json","@value":V}:F=await D.expand({activeCtx:te,activeProperty:H,element:V,options:C,insideList:!1})}if(!(F===null&&Z!=="@value")){if(Z!=="@list"&&!a(F)&&pe.includes("@list")&&(F={"@list":v(F)}),pe.includes("@graph")&&!pe.some(L=>L==="@id"||L==="@index")){if(F=v(F),C.isFrame||(F=F.filter(L=>{const G=Object.keys(L).length;return N({value:L,count:G,options:C})!==null})),F.length===0)continue;F=F.map(L=>({"@graph":v(L)}))}if(te.mappings.has(H)&&te.mappings.get(H).reverse){const L=ee["@reverse"]=ee["@reverse"]||{};F=v(F);for(let G=0;G<F.length;++G){const re=F[G];if(s(re)||a(re))throw new r('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:F});E(L,Z,re,{propertyIsArray:!0})}continue}E(ee,Z,F,{propertyIsArray:!0})}}if("@value"in ee&&!(ee["@type"]==="@json"&&g(j,1.1))){if((t(ae)||e(ae))&&!C.isFrame)throw new r('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:ae})}for(const H of W){const V=e(T[H])?T[H]:[T[H]];for(const F of V){if(!t(F)||Object.keys(F).some(Z=>f(j,Z,{vocab:!0},C)==="@value"))throw new r("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:F});await B({activeCtx:j,activeProperty:A,expandedActiveProperty:Y,element:F,expandedParent:ee,options:C,insideList:K,typeScopedContext:z,typeKey:w})}}}function I({activeCtx:j,activeProperty:A,value:Y,options:T}){if(Y==null)return null;const ee=f(j,A,{vocab:!0},T);if(ee==="@id")return f(j,Y,{base:!0},T);if(ee==="@type")return f(j,Y,{vocab:!0,base:!0},{...T,typeExpansion:!0});const C=m(j,A,"@type");if((C==="@id"||ee==="@graph")&&o(Y)){const w=f(j,Y,{base:!0},T);return w===null&&Y.match(k)&&T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:A}},options:T}),{"@id":w}}if(C==="@vocab"&&o(Y))return{"@id":f(j,Y,{vocab:!0,base:!0},T)};if(y(ee))return Y;const K={};if(C&&!["@id","@vocab","@none"].includes(C))K["@type"]=C;else if(o(Y)){const w=m(j,A,"@language");w!==null&&(K["@language"]=w);const z=m(j,A,"@direction");z!==null&&(K["@direction"]=z)}return["boolean","number","string"].includes(typeof Y)||(Y=Y.toString()),K["@value"]=Y,K}function M(j,A,Y,T){const ee=[],C=Object.keys(A).sort();for(const K of C){const w=f(j,K,{vocab:!0},T);let z=A[K];e(z)||(z=[z]);for(const Q of z){if(Q===null)continue;if(!o(Q))throw new r("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:A});const W={"@value":Q};w!=="@none"&&(K.match(_)||T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:K}},options:T}),W["@language"]=K.toLowerCase()),Y&&(W["@direction"]=Y),ee.push(W)}}return ee}async function q({activeCtx:j,options:A,activeProperty:Y,value:T,asGraph:ee,indexKey:C,propertyIndex:K}){const w=[],z=Object.keys(T).sort(),Q=C==="@type";for(let W of z){if(Q){const H=m(j,W,"@context");i(H)||(j=await b({activeCtx:j,localCtx:H,propagate:!1,options:A}))}let ae=T[W];e(ae)||(ae=[ae]),ae=await D.expand({activeCtx:j,activeProperty:Y,element:ae,options:A,insideList:!1,insideIndex:!0});let U;K?W==="@none"?U="@none":U=I({activeCtx:j,activeProperty:C,value:W,options:A}):U=f(j,W,{vocab:!0},A),C==="@id"?W=f(j,W,{base:!0},A):Q&&(W=U);for(let H of ae){if(ee&&!l(H)&&(H={"@graph":[H]}),C==="@type")U==="@none"||(H["@type"]?H["@type"]=[W].concat(H["@type"]):H["@type"]=[W]);else{if(s(H)&&!["@language","@type","@index"].includes(C))throw new r(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${C}".`,"jsonld.SyntaxError",{code:"invalid value object",value:H});K?U!=="@none"&&E(H,K,U,{propertyIsArray:!0,prependValue:!0}):U!=="@none"&&!(C in H)&&(H[C]=W)}w.push(H)}}return w}return Xo}var Ko,ll;function Mn(){if(ll)return Ko;ll=1;const{isKeyword:r}=Ft(),e=xt(),t=Ke(),n=et(),o=rt(),i={};return Ko=i,i.createMergedNodeMap=(a,s)=>{s=s||{};const l=s.issuer||new n.IdentifierIssuer("_:b"),u={"@default":{}};return i.createNodeMap(a,u,"@default",l),i.mergeNodeMaps(u)},i.createNodeMap=(a,s,l,u,f,m)=>{if(t.isArray(a)){for(const x of a)i.createNodeMap(x,s,l,u,void 0,m);return}if(!t.isObject(a)){m&&m.push(a);return}if(e.isValue(a)){if("@type"in a){let x=a["@type"];x.indexOf("_:")===0&&(a["@type"]=x=u.getId(x))}m&&m.push(a);return}else if(m&&e.isList(a)){const x=[];i.createNodeMap(a["@list"],s,l,u,f,x),m.push({"@list":x});return}if("@type"in a){const x=a["@type"];for(const _ of x)_.indexOf("_:")===0&&u.getId(_)}t.isUndefined(f)&&(f=e.isBlankNode(a)?u.getId(a["@id"]):a["@id"]),m&&m.push({"@id":f});const y=s[l],b=y[f]=y[f]||{};b["@id"]=f;const g=Object.keys(a).sort();for(let x of g){if(x==="@id")continue;if(x==="@reverse"){const k={"@id":f},E=a["@reverse"];for(const v in E){const c=E[v];for(const h of c){let R=h["@id"];e.isBlankNode(h)&&(R=u.getId(R)),i.createNodeMap(h,s,l,u,R),n.addValue(y[R],v,k,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(x==="@graph"){f in s||(s[f]={}),i.createNodeMap(a[x],s,f,u);continue}if(x==="@included"){i.createNodeMap(a[x],s,l,u);continue}if(x!=="@type"&&r(x)){if(x==="@index"&&x in b&&(a[x]!==b[x]||a[x]["@id"]!==b[x]["@id"]))throw new o("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:b});b[x]=a[x];continue}const _=a[x];if(x.indexOf("_:")===0&&(x=u.getId(x)),_.length===0){n.addValue(b,x,[],{propertyIsArray:!0});continue}for(let k of _)if(x==="@type"&&(k=k.indexOf("_:")===0?u.getId(k):k),e.isSubject(k)||e.isSubjectReference(k)){if("@id"in k&&!k["@id"])continue;const E=e.isBlankNode(k)?u.getId(k["@id"]):k["@id"];n.addValue(b,x,{"@id":E},{propertyIsArray:!0,allowDuplicate:!1}),i.createNodeMap(k,s,l,u,E)}else if(e.isValue(k))n.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1});else if(e.isList(k)){const E=[];i.createNodeMap(k["@list"],s,l,u,f,E),k={"@list":E},n.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1})}else i.createNodeMap(k,s,l,u,f),n.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1})}},i.mergeNodeMapGraphs=a=>{const s={};for(const l of Object.keys(a).sort())for(const u of Object.keys(a[l]).sort()){const f=a[l][u];u in s||(s[u]={"@id":u});const m=s[u];for(const y of Object.keys(f).sort())if(r(y)&&y!=="@type")m[y]=n.clone(f[y]);else for(const b of f[y])n.addValue(m,y,n.clone(b),{propertyIsArray:!0,allowDuplicate:!1})}return s},i.mergeNodeMaps=a=>{const s=a["@default"],l=Object.keys(a).sort();for(const u of l){if(u==="@default")continue;const f=a[u];let m=s[u];m?"@graph"in m||(m["@graph"]=[]):s[u]=m={"@id":u,"@graph":[]};const y=m["@graph"];for(const b of Object.keys(f).sort()){const g=f[b];e.isSubjectReference(g)||y.push(g)}}return s},Ko}var Yo,dl;function Dp(){if(dl)return Yo;dl=1;const{isSubjectReference:r}=xt(),{createMergedNodeMap:e}=Mn(),t={};return Yo=t,t.flatten=n=>{const o=e(n),i=[],a=Object.keys(o).sort();for(let s=0;s<a.length;++s){const l=o[a[s]];r(l)||i.push(l)}return i},Yo}var Zo,cl;function Mp(){if(cl)return Zo;cl=1;const r=rt(),e=xt(),t=Ke(),{REGEX_BCP47:n,addValue:o}=et(),{handleEvent:i}=Xr(),{RDF_LIST:a,RDF_FIRST:s,RDF_REST:l,RDF_NIL:u,RDF_TYPE:f,RDF_JSON_LITERAL:m,XSD_BOOLEAN:y,XSD_DOUBLE:b,XSD_INTEGER:g,XSD_STRING:x}=la(),_={};Zo=_,_.fromRDF=async(E,v)=>{const{useRdfType:c=!1,useNativeTypes:h=!1,rdfDirection:R=null}=v,D={},N={"@default":D},B={};if(R){if(R==="compound-literal")throw new r("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:R});if(R!=="i18n-datatype")throw new r("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:R})}for(const q of E){const j=q.graph.termType==="DefaultGraph"?"@default":q.graph.value;j in N||(N[j]={}),j!=="@default"&&!(j in D)&&(D[j]={"@id":j});const A=N[j],Y=q.subject.value,T=q.predicate.value,ee=q.object;Y in A||(A[Y]={"@id":Y});const C=A[Y],K=ee.termType.endsWith("Node");if(K&&!(ee.value in A)&&(A[ee.value]={"@id":ee.value}),T===f&&!c&&K){o(C,"@type",ee.value,{propertyIsArray:!0});continue}const w=k(ee,h,R,v);if(o(C,T,w,{propertyIsArray:!0}),K)if(ee.value===u){const z=A[ee.value];"usages"in z||(z.usages=[]),z.usages.push({node:C,property:T,value:w})}else ee.value in B?B[ee.value]=!1:B[ee.value]={node:C,property:T,value:w}}for(const q in N){const j=N[q];if(!(u in j))continue;const A=j[u];if(A.usages){for(let Y of A.usages){let T=Y.node,ee=Y.property,C=Y.value;const K=[],w=[];let z=Object.keys(T).length;for(;ee===l&&t.isObject(B[T["@id"]])&&t.isArray(T[s])&&T[s].length===1&&t.isArray(T[l])&&T[l].length===1&&(z===3||z===4&&t.isArray(T["@type"])&&T["@type"].length===1&&T["@type"][0]===a)&&(K.push(T[s][0]),w.push(T["@id"]),Y=B[T["@id"]],T=Y.node,ee=Y.property,C=Y.value,z=Object.keys(T).length,!!e.isBlankNode(T)););delete C["@id"],C["@list"]=K.reverse();for(const Q of w)delete j[Q]}delete A.usages}}const I=[],M=Object.keys(D).sort();for(const q of M){const j=D[q];if(q in N){const A=j["@graph"]=[],Y=N[q],T=Object.keys(Y).sort();for(const ee of T){const C=Y[ee];e.isSubjectReference(C)||A.push(C)}}e.isSubjectReference(j)||I.push(j)}return I};function k(E,v,c,h){if(E.termType.endsWith("Node"))return{"@id":E.value};const R={"@value":E.value};if(E.language)E.language.match(n)||h.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:E.language}},options:h}),R["@language"]=E.language;else{let D=E.datatype.value;if(D||(D=x),D===m){D="@json";try{R["@value"]=JSON.parse(R["@value"])}catch(N){throw new r("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:R["@value"],cause:N})}}if(v){if(D===y)R["@value"]==="true"?R["@value"]=!0:R["@value"]==="false"&&(R["@value"]=!1);else if(t.isNumeric(R["@value"]))if(D===g){const N=parseInt(R["@value"],10);N.toFixed(0)===R["@value"]&&(R["@value"]=N)}else D===b&&(R["@value"]=parseFloat(R["@value"]));[y,g,b,x].includes(D)||(R["@type"]=D)}else if(c==="i18n-datatype"&&D.startsWith("https://www.w3.org/ns/i18n#")){const[,N,B]=D.split(/[#_]/);N.length>0&&(R["@language"]=N,N.match(n)||h.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:N}},options:h})),R["@direction"]=B}else D!==x&&(R["@type"]=D)}return R}return Zo}var ei,ul;function Cp(){return ul||(ul=1,ei=function r(e){return e===null||typeof e!="object"||e.toJSON!=null?JSON.stringify(e):Array.isArray(e)?"["+e.reduce((t,n,o)=>{const i=o===0?"":",",a=n===void 0||typeof n=="symbol"?null:n;return t+i+r(a)},"")+"]":"{"+Object.keys(e).sort().reduce((t,n,o)=>{if(e[n]===void 0||typeof e[n]=="symbol")return t;const i=t.length===0?"":",";return t+i+r(n)+":"+r(e[n])},"")+"}"}),ei}var ti,pl;function Pp(){if(pl)return ti;pl=1;const{createNodeMap:r}=Mn(),{isKeyword:e}=Ft(),t=xt(),n=Cp(),o=rt(),i=Ke(),a=et(),{handleEvent:s}=Xr(),{RDF_FIRST:l,RDF_REST:u,RDF_NIL:f,RDF_TYPE:m,RDF_JSON_LITERAL:y,RDF_LANGSTRING:b,XSD_BOOLEAN:g,XSD_DOUBLE:x,XSD_INTEGER:_,XSD_STRING:k}=la(),{isAbsolute:E}=jt(),v={};ti=v,v.toRDF=(D,N)=>{const B=new a.IdentifierIssuer("_:b"),I={"@default":{}};r(D,I,"@default",B);const M=[],q=Object.keys(I).sort();for(const j of q){let A;if(j==="@default")A={termType:"DefaultGraph",value:""};else if(E(j))j.startsWith("_:")?A={termType:"BlankNode"}:A={termType:"NamedNode"},A.value=j;else{N.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:j}},options:N});continue}c(M,I[j],A,B,N)}return M};function c(D,N,B,I,M){const q=Object.keys(N).sort();for(const j of q){const A=N[j],Y=Object.keys(A).sort();for(let T of Y){const ee=A[T];if(T==="@type")T=m;else if(e(T))continue;for(const C of ee){const K={termType:j.startsWith("_:")?"BlankNode":"NamedNode",value:j};if(!E(j)){M.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:j}},options:M});continue}const w={termType:T.startsWith("_:")?"BlankNode":"NamedNode",value:T};if(!E(T)){M.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:T}},options:M});continue}if(w.termType==="BlankNode"&&!M.produceGeneralizedRdf){M.eventHandler&&s({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:I.getOldIds().find(Q=>I.getId(Q)===T)}},options:M});continue}const z=R(C,I,D,B,M.rdfDirection,M);z&&D.push({subject:K,predicate:w,object:z,graph:B})}}}}function h(D,N,B,I,M,q){const j={termType:"NamedNode",value:l},A={termType:"NamedNode",value:u},Y={termType:"NamedNode",value:f},T=D.pop(),ee=T?{termType:"BlankNode",value:N.getId()}:Y;let C=ee;for(const K of D){const w=R(K,N,B,I,M,q),z={termType:"BlankNode",value:N.getId()};B.push({subject:C,predicate:j,object:w,graph:I}),B.push({subject:C,predicate:A,object:z,graph:I}),C=z}if(T){const K=R(T,N,B,I,M,q);B.push({subject:C,predicate:j,object:K,graph:I}),B.push({subject:C,predicate:A,object:Y,graph:I})}return ee}function R(D,N,B,I,M,q){const j={};if(t.isValue(D)){j.termType="Literal",j.value=void 0,j.datatype={termType:"NamedNode"};let A=D["@value"];const Y=D["@type"]||null;if(Y==="@json")j.value=n(A),j.datatype.value=y;else if(i.isBoolean(A))j.value=A.toString(),j.datatype.value=Y||g;else if(i.isDouble(A)||Y===x)i.isDouble(A)||(A=parseFloat(A)),j.value=A.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),j.datatype.value=Y||x;else if(i.isNumber(A))j.value=A.toFixed(0),j.datatype.value=Y||_;else if("@direction"in D&&M==="i18n-datatype"){const T=(D["@language"]||"").toLowerCase(),ee=D["@direction"],C=`https://www.w3.org/ns/i18n#${T}_${ee}`;j.datatype.value=C,j.value=A}else{if("@direction"in D&&M==="compound-literal")throw new o("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:M});if("@direction"in D&&M)throw new o("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:M});"@language"in D?("@direction"in D&&!M&&q.eventHandler&&s({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:j.value}},options:q}),j.value=A,j.datatype.value=Y||b,j.language=D["@language"]):("@direction"in D&&!M&&q.eventHandler&&s({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:j.value}},options:q}),j.value=A,j.datatype.value=Y||k)}}else if(t.isList(D)){const A=h(D["@list"],N,B,I,M,q);j.termType=A.termType,j.value=A.value}else{const A=i.isObject(D)?D["@id"]:D;j.termType=A.startsWith("_:")?"BlankNode":"NamedNode",j.value=A}return j.termType==="NamedNode"&&!E(j.value)?(q.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:j.value}},options:q}),null):j}return ti}var ri,fl;function Bp(){if(fl)return ri;fl=1;const{isKeyword:r}=Ft(),e=xt(),t=Ke(),n=et(),o=jt(),i=rt(),{createNodeMap:a,mergeNodeMapGraphs:s}=Mn(),l={};ri=l,l.frameMergedOrDefault=(c,h,R)=>{const D={options:R,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},N=new n.IdentifierIssuer("_:b");a(c,D.graphMap,"@default",N),R.merged&&(D.graphMap["@merged"]=s(D.graphMap),D.graph="@merged"),D.subjects=D.graphMap[D.graph];const B=[];l.frame(D,Object.keys(D.subjects).sort(),h,B),R.pruneBlankNodeIdentifiers&&(R.bnodesToClear=Object.keys(D.bnodeMap).filter(I=>D.bnodeMap[I].length===1));// remove @preserve from results
296
- return R.link={},_(B,R)},l.frame=(c,h,R,D,N=null)=>{y(R),R=R[0];const B=c.options,I={embed:m(R,B,"embed"),explicit:m(R,B,"explicit"),requireAll:m(R,B,"requireAll")};c.link.hasOwnProperty(c.graph)||(c.link[c.graph]={});const M=c.link[c.graph],q=b(c,h,R,I),j=Object.keys(q).sort();for(const A of j){const Y=q[A];if(N===null?c.uniqueEmbeds={[c.graph]:{}}:c.uniqueEmbeds[c.graph]=c.uniqueEmbeds[c.graph]||{},I.embed==="@link"&&A in M){k(D,N,M[A]);continue}const T={"@id":A};if(A.indexOf("_:")===0&&n.addValue(c.bnodeMap,A,T,{propertyIsArray:!0}),M[A]=T,(I.embed==="@first"||I.embed==="@last")&&c.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:R});if(!(!c.embedded&&c.uniqueEmbeds[c.graph].hasOwnProperty(A))){if(c.embedded&&(I.embed==="@never"||f(Y,c.graph,c.subjectStack))){k(D,N,T);continue}if(c.embedded&&(I.embed=="@first"||I.embed=="@once")&&c.uniqueEmbeds[c.graph].hasOwnProperty(A)){k(D,N,T);continue}if(I.embed==="@last"&&A in c.uniqueEmbeds[c.graph]&&x(c,A),c.uniqueEmbeds[c.graph][A]={parent:D,property:N},c.subjectStack.push({subject:Y,graph:c.graph}),A in c.graphMap){let ee=!1,C=null;"@graph"in R?(C=R["@graph"][0],ee=!(A==="@merged"||A==="@default"),t.isObject(C)||(C={})):(ee=c.graph!=="@merged",C={}),ee&&l.frame({...c,graph:A,embedded:!1},Object.keys(c.graphMap[A]).sort(),[C],T,"@graph")}"@included"in R&&l.frame({...c,embedded:!1},h,R["@included"],T,"@included");for(const ee of Object.keys(Y).sort()){if(r(ee)){if(T[ee]=n.clone(Y[ee]),ee==="@type")for(const C of Y["@type"])C.indexOf("_:")===0&&n.addValue(c.bnodeMap,C,T,{propertyIsArray:!0});continue}if(!(I.explicit&&!(ee in R)))for(const C of Y[ee]){const K=ee in R?R[ee]:u(I);if(e.isList(C)){const w=R[ee]&&R[ee][0]&&R[ee][0]["@list"]?R[ee][0]["@list"]:u(I),z={"@list":[]};k(T,ee,z);const Q=C["@list"];for(const W of Q)e.isSubjectReference(W)?l.frame({...c,embedded:!0},[W["@id"]],w,z,"@list"):k(z,"@list",n.clone(W))}else e.isSubjectReference(C)?l.frame({...c,embedded:!0},[C["@id"]],K,T,ee):v(K[0],C)&&k(T,ee,n.clone(C))}}for(const ee of Object.keys(R).sort()){if(ee==="@type"){if(!t.isObject(R[ee][0])||!("@default"in R[ee][0]))continue}else if(r(ee))continue;const C=R[ee][0]||{};if(!m(C,B,"omitDefault")&&!(ee in T)){let w="@null";"@default"in C&&(w=n.clone(C["@default"])),t.isArray(w)||(w=[w]),T[ee]=[{"@preserve":w}]}}for(const ee of Object.keys(R["@reverse"]||{}).sort()){const C=R["@reverse"][ee];for(const K of Object.keys(c.subjects))n.getValues(c.subjects[K],ee).some(z=>z["@id"]===A)&&(T["@reverse"]=T["@reverse"]||{},n.addValue(T["@reverse"],ee,[],{propertyIsArray:!0}),l.frame({...c,embedded:!0},[K],C,T["@reverse"][ee],N))}k(D,N,T),c.subjectStack.pop()}}},l.cleanupNull=(c,h)=>{if(t.isArray(c))return c.map(D=>l.cleanupNull(D,h)).filter(D=>D);if(c==="@null")return null;if(t.isObject(c)){if("@id"in c){const R=c["@id"];if(h.link.hasOwnProperty(R)){const D=h.link[R].indexOf(c);if(D!==-1)return h.link[R][D];h.link[R].push(c)}else h.link[R]=[c]}for(const R in c)c[R]=l.cleanupNull(c[R],h)}return c};function u(c){const h={};for(const R in c)c[R]!==void 0&&(h["@"+R]=[c[R]]);return[h]}function f(c,h,R){for(let D=R.length-1;D>=0;--D){const N=R[D];if(N.graph===h&&N.subject["@id"]===c["@id"])return!0}return!1}function m(c,h,R){const D="@"+R;let N=D in c?c[D][0]:h[R];if(R==="embed"){if(N===!0)N="@once";else if(N===!1)N="@never";else if(N!=="@always"&&N!=="@never"&&N!=="@link"&&N!=="@first"&&N!=="@last"&&N!=="@once")throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:c})}return N}function y(c){if(!t.isArray(c)||c.length!==1||!t.isObject(c[0]))throw new i("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:c});if("@id"in c[0]){for(const h of n.asArray(c[0]["@id"]))if(!(t.isObject(h)||o.isAbsolute(h))||t.isString(h)&&h.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:c})}if("@type"in c[0]){for(const h of n.asArray(c[0]["@type"]))if(!(t.isObject(h)||o.isAbsolute(h)||h==="@json")||t.isString(h)&&h.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:c})}}function b(c,h,R,D){const N={};for(const B of h){const I=c.graphMap[c.graph][B];g(c,I,R,D)&&(N[B]=I)}return N}function g(c,h,R,D){let N=!0,B=!1;for(const I in R){let M=!1;const q=n.getValues(h,I),j=n.getValues(R,I).length===0;if(I==="@id"){if(t.isEmptyObject(R["@id"][0]||{})?M=!0:R["@id"].length>=0&&(M=R["@id"].includes(q[0])),!D.requireAll)return M}else if(I==="@type"){if(N=!1,j){if(q.length>0)return!1;M=!0}else if(R["@type"].length===1&&t.isEmptyObject(R["@type"][0]))M=q.length>0;else for(const A of R["@type"])t.isObject(A)&&"@default"in A?M=!0:M=M||q.some(Y=>Y===A);if(!D.requireAll)return M}else{if(r(I))continue;{const A=n.getValues(R,I)[0];let Y=!1;if(A&&(y([A]),Y="@default"in A),N=!1,q.length===0&&Y)continue;if(q.length>0&&j)return!1;if(A===void 0){if(q.length>0)return!1;M=!0}else if(e.isList(A)){const T=A["@list"][0];if(e.isList(q[0])){const ee=q[0]["@list"];e.isValue(T)?M=ee.some(C=>v(T,C)):(e.isSubject(T)||e.isSubjectReference(T))&&(M=ee.some(C=>E(c,T,C,D)))}}else e.isValue(A)?M=q.some(T=>v(A,T)):e.isSubjectReference(A)?M=q.some(T=>E(c,A,T,D)):t.isObject(A)?M=q.length>0:M=!1}}if(!M&&D.requireAll)return!1;B=B||M}return N||B}function x(c,h){const R=c.uniqueEmbeds[c.graph],D=R[h],N=D.parent,B=D.property,I={"@id":h};if(t.isArray(N)){for(let q=0;q<N.length;++q)if(n.compareValues(N[q],I)){N[q]=I;break}}else{const q=t.isArray(N[B]);n.removeValue(N,B,I,{propertyIsArray:q}),n.addValue(N,B,I,{propertyIsArray:q})}const M=q=>{const j=Object.keys(R);for(const A of j)A in R&&t.isObject(R[A].parent)&&R[A].parent["@id"]===q&&(delete R[A],M(A))};M(h)}/**
297
+ */var Ao,zs;function Ip(){if(zs)return Ao;zs=1;const n=Dn(),e=Yd();return Ao=class extends e{constructor(){super(),this.name="URGNA2012",this.createMessageDigest=()=>new n("sha1")}modifyFirstDegreeComponent(r,o,i){return o.termType!=="BlankNode"?o:i==="graph"?{termType:"BlankNode",value:"_:g"}:{termType:"BlankNode",value:o.value===r?"_:a":"_:z"}}getRelatedPredicate(r){return r.predicate.value}createHashToRelated(r,o){const i=new Map,a=this.blankNodeInfo.get(r).quads;for(const s of a){let l,u;if(s.subject.termType==="BlankNode"&&s.subject.value!==r)u=s.subject.value,l="p";else if(s.object.termType==="BlankNode"&&s.object.value!==r)u=s.object.value,l="r";else continue;const f=this.hashRelatedBlankNode(u,s,o,l),m=i.get(f);m?m.push(u):i.set(f,[u])}return i}},Ao}const Rp={},Np=Object.freeze(Object.defineProperty({__proto__:null,default:Rp},Symbol.toStringTag,{value:"Module"})),jp=_c(Np);var Us;function Tp(){return Us||(Us=1,function(n){const e=Kd(),t=Ep(),r=Yd(),o=Ip();let i;try{i=jp}catch{}function a(s){return Array.isArray(s)?s:n.NQuads.legacyDatasetToQuads(s)}n.NQuads=sa(),n.IdentifierIssuer=aa(),n._rdfCanonizeNative=function(s){return s&&(i=s),i},n.canonize=async function(s,l){const u=a(s);if(l.useNative){if(!i)throw new Error("rdf-canonize-native not available");if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return new Promise((f,m)=>i.canonize(u,l,(y,b)=>y?m(y):f(b)))}if(l.algorithm==="URDNA2015")return new e(l).main(u);if(l.algorithm==="URGNA2012"){if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new t(l).main(u)}throw"algorithm"in l?new Error("Invalid RDF Dataset Canonicalization algorithm: "+l.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")},n._canonizeSync=function(s,l){const u=a(s);if(l.useNative){if(!i)throw new Error("rdf-canonize-native not available");if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "useNative".');return i.canonizeSync(u,l)}if(l.algorithm==="URDNA2015")return new r(l).main(u);if(l.algorithm==="URGNA2012"){if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(l).main(u)}throw"algorithm"in l?new Error("Invalid RDF Dataset Canonicalization algorithm: "+l.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}}(_o)),_o}var Lo,Hs;function la(){return Hs||(Hs=1,Lo=Tp()),Lo}var Oo,Gs;function Ke(){if(Gs)return Oo;Gs=1;const n={};return Oo=n,n.isArray=Array.isArray,n.isBoolean=e=>typeof e=="boolean"||Object.prototype.toString.call(e)==="[object Boolean]",n.isDouble=e=>n.isNumber(e)&&(String(e).indexOf(".")!==-1||Math.abs(e)>=1e21),n.isEmptyObject=e=>n.isObject(e)&&Object.keys(e).length===0,n.isNumber=e=>typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]",n.isNumeric=e=>!isNaN(parseFloat(e))&&isFinite(e),n.isObject=e=>Object.prototype.toString.call(e)==="[object Object]",n.isString=e=>typeof e=="string"||Object.prototype.toString.call(e)==="[object String]",n.isUndefined=e=>typeof e>"u",Oo}var $o,Vs;function xt(){if(Vs)return $o;Vs=1;const n=Ke(),e={};return $o=e,e.isSubject=t=>n.isObject(t)&&!("@value"in t||"@set"in t||"@list"in t)?Object.keys(t).length>1||!("@id"in t):!1,e.isSubjectReference=t=>n.isObject(t)&&Object.keys(t).length===1&&"@id"in t,e.isValue=t=>n.isObject(t)&&"@value"in t,e.isList=t=>n.isObject(t)&&"@list"in t,e.isGraph=t=>n.isObject(t)&&"@graph"in t&&Object.keys(t).filter(r=>r!=="@id"&&r!=="@index").length===1,e.isSimpleGraph=t=>e.isGraph(t)&&!("@id"in t),e.isBlankNode=t=>{if(n.isObject(t)){if("@id"in t){const r=t["@id"];return!n.isString(r)||r.indexOf("_:")===0}return Object.keys(t).length===0||!("@value"in t||"@set"in t||"@list"in t)}return!1},$o}var Do,Ws;function rt(){return Ws||(Ws=1,Do=class extends Error{constructor(e="An unspecified JSON-LD error occurred.",t="jsonld.Error",r={}){super(e),this.name=t,this.message=e,this.details=r}}),Do}var Mo,Js;function et(){if(Js)return Mo;Js=1;const n=xt(),e=Ke(),t=la().IdentifierIssuer,r=rt(),o=/^[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*$/,i=/(?:<[^>]*?>|"[^"]*?"|[^,])+/g,a=/\s*<([^>]*?)>\s*(?:;\s*(.*))?/,s=/(.*?)=(?:(?:"([^"]*?)")|([^"]*?))\s*(?:(?:;\s*)|$)/g,l=/^@[a-zA-Z]+$/,u={headers:{accept:"application/ld+json, application/json"}},f={};Mo=f,f.IdentifierIssuer=t,f.REGEX_BCP47=o,f.REGEX_KEYWORD=l,f.clone=function(y){if(y&&typeof y=="object"){let b;if(e.isArray(y)){b=[];for(let g=0;g<y.length;++g)b[g]=f.clone(y[g])}else if(y instanceof Map){b=new Map;for(const[g,x]of y)b.set(g,f.clone(x))}else if(y instanceof Set){b=new Set;for(const g of y)b.add(f.clone(g))}else if(e.isObject(y)){b={};for(const g in y)b[g]=f.clone(y[g])}else b=y.toString();return b}return y},f.asArray=function(y){return Array.isArray(y)?y:[y]},f.buildHeaders=(y={})=>{if(Object.keys(y).some(g=>g.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+u.headers.accept+'" is supported.');return Object.assign({Accept:u.headers.accept},y)},f.parseLinkHeader=y=>{const b={},g=y.match(i);for(let x=0;x<g.length;++x){let _=g[x].match(a);if(!_)continue;const k={target:_[1]},E=_[2];for(;_=s.exec(E);)k[_[1]]=_[2]===void 0?_[3]:_[2];const v=k.rel||"";Array.isArray(b[v])?b[v].push(k):b.hasOwnProperty(v)?b[v]=[b[v],k]:b[v]=k}return b},f.validateTypeValue=(y,b)=>{if(!e.isString(y)&&!(e.isArray(y)&&y.every(g=>e.isString(g)))){if(b&&e.isObject(y))switch(Object.keys(y).length){case 0:return;case 1:if("@default"in y&&f.asArray(y["@default"]).every(g=>e.isString(g)))return}throw new r('Invalid JSON-LD syntax; "@type" value must a string, an array of strings, an empty object, or a default object.',"jsonld.SyntaxError",{code:"invalid type value",value:y})}},f.hasProperty=(y,b)=>{if(y.hasOwnProperty(b)){const g=y[b];return!e.isArray(g)||g.length>0}return!1},f.hasValue=(y,b,g)=>{if(f.hasProperty(y,b)){let x=y[b];const _=n.isList(x);if(e.isArray(x)||_){_&&(x=x["@list"]);for(let k=0;k<x.length;++k)if(f.compareValues(g,x[k]))return!0}else if(!e.isArray(g))return f.compareValues(g,x)}return!1},f.addValue=(y,b,g,x)=>{if(x=x||{},"propertyIsArray"in x||(x.propertyIsArray=!1),"valueIsArray"in x||(x.valueIsArray=!1),"allowDuplicate"in x||(x.allowDuplicate=!0),"prependValue"in x||(x.prependValue=!1),x.valueIsArray)y[b]=g;else if(e.isArray(g)){g.length===0&&x.propertyIsArray&&!y.hasOwnProperty(b)&&(y[b]=[]),x.prependValue&&(g=g.concat(y[b]),y[b]=[]);for(let _=0;_<g.length;++_)f.addValue(y,b,g[_],x)}else if(y.hasOwnProperty(b)){const _=!x.allowDuplicate&&f.hasValue(y,b,g);!e.isArray(y[b])&&(!_||x.propertyIsArray)&&(y[b]=[y[b]]),_||(x.prependValue?y[b].unshift(g):y[b].push(g))}else y[b]=x.propertyIsArray?[g]:g},f.getValues=(y,b)=>[].concat(y[b]||[]),f.removeProperty=(y,b)=>{delete y[b]},f.removeValue=(y,b,g,x)=>{x=x||{},"propertyIsArray"in x||(x.propertyIsArray=!1);const _=f.getValues(y,b).filter(k=>!f.compareValues(k,g));_.length===0?f.removeProperty(y,b):_.length===1&&!x.propertyIsArray?y[b]=_[0]:y[b]=_},f.relabelBlankNodes=(y,b)=>{b=b||{};const g=b.issuer||new t("_:b");return m(g,y)},f.compareValues=(y,b)=>y===b||n.isValue(y)&&n.isValue(b)&&y["@value"]===b["@value"]&&y["@type"]===b["@type"]&&y["@language"]===b["@language"]&&y["@index"]===b["@index"]?!0:e.isObject(y)&&"@id"in y&&e.isObject(b)&&"@id"in b?y["@id"]===b["@id"]:!1,f.compareShortestLeast=(y,b)=>y.length<b.length?-1:b.length<y.length?1:y===b?0:y<b?-1:1;function m(y,b){if(e.isArray(b))for(let g=0;g<b.length;++g)b[g]=m(y,b[g]);else if(n.isList(b))b["@list"]=m(y,b["@list"]);else if(e.isObject(b)){n.isBlankNode(b)&&(b["@id"]=y.getId(b["@id"]));const g=Object.keys(b).sort();for(let x=0;x<g.length;++x){const _=g[x];_!=="@id"&&(b[_]=m(y,b[_]))}}return b}return Mo}var Co,Qs;function da(){if(Qs)return Co;Qs=1;const n="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e="http://www.w3.org/2001/XMLSchema#";return Co={LINK_HEADER_REL:"http://www.w3.org/ns/json-ld#context",LINK_HEADER_CONTEXT:"http://www.w3.org/ns/json-ld#context",RDF:n,RDF_LIST:n+"List",RDF_FIRST:n+"first",RDF_REST:n+"rest",RDF_NIL:n+"nil",RDF_TYPE:n+"type",RDF_PLAIN_LITERAL:n+"PlainLiteral",RDF_XML_LITERAL:n+"XMLLiteral",RDF_JSON_LITERAL:n+"JSON",RDF_OBJECT:n+"object",RDF_LANGSTRING:n+"langString",XSD:e,XSD_BOOLEAN:e+"boolean",XSD_DOUBLE:e+"double",XSD_INTEGER:e+"integer",XSD_STRING:e+"string"},Co}var Po,Xs;function Zd(){return Xs||(Xs=1,Po=class{constructor(){this._requests={}}wrapLoader(e){const t=this;return t._loader=e,function(){return t.add.apply(t,arguments)}}async add(e){let t=this._requests[e];if(t)return Promise.resolve(t);t=this._requests[e]=this._loader(e);try{return await t}finally{delete this._requests[e]}}}),Po}var Bo,Ks;function jt(){if(Ks)return Bo;Ks=1;const n=Ke(),e={};Bo=e,e.parsers={simple:{keys:["href","scheme","authority","path","query","fragment"],regex:/^(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/},full:{keys:["href","protocol","scheme","authority","auth","user","password","hostname","port","path","directory","file","query","fragment"],regex:/^(([a-zA-Z][a-zA-Z0-9+-.]*):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?(?:(((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/}},e.parse=(r,o)=>{const i={},a=e.parsers[o||"full"],s=a.regex.exec(r);let l=a.keys.length;for(;l--;)i[a.keys[l]]=s[l]===void 0?null:s[l];return(i.scheme==="https"&&i.port==="443"||i.scheme==="http"&&i.port==="80")&&(i.href=i.href.replace(":"+i.port,""),i.authority=i.authority.replace(":"+i.port,""),i.port=null),i.normalizedPath=e.removeDotSegments(i.path),i},e.prependBase=(r,o)=>{if(r===null||e.isAbsolute(o))return o;(!r||n.isString(r))&&(r=e.parse(r||""));const i=e.parse(o),a={protocol:r.protocol||""};if(i.authority!==null)a.authority=i.authority,a.path=i.path,a.query=i.query;else if(a.authority=r.authority,i.path==="")a.path=r.path,i.query!==null?a.query=i.query:a.query=r.query;else{if(i.path.indexOf("/")===0)a.path=i.path;else{let l=r.path;l=l.substr(0,l.lastIndexOf("/")+1),(l.length>0||r.authority)&&l.substr(-1)!=="/"&&(l+="/"),l+=i.path,a.path=l}a.query=i.query}i.path!==""&&(a.path=e.removeDotSegments(a.path));let s=a.protocol;return a.authority!==null&&(s+="//"+a.authority),s+=a.path,a.query!==null&&(s+="?"+a.query),i.fragment!==null&&(s+="#"+i.fragment),s===""&&(s="./"),s},e.removeBase=(r,o)=>{if(r===null)return o;(!r||n.isString(r))&&(r=e.parse(r||""));let i="";if(r.href!==""?i+=(r.protocol||"")+"//"+(r.authority||""):o.indexOf("//")&&(i+="//"),o.indexOf(i)!==0)return o;const a=e.parse(o.substr(i.length)),s=r.normalizedPath.split("/"),l=a.normalizedPath.split("/"),u=a.fragment||a.query?0:1;for(;s.length>0&&l.length>u&&s[0]===l[0];)s.shift(),l.shift();let f="";if(s.length>0){s.pop();for(let m=0;m<s.length;++m)f+="../"}return f+=l.join("/"),a.query!==null&&(f+="?"+a.query),a.fragment!==null&&(f+="#"+a.fragment),f===""&&(f="./"),f},e.removeDotSegments=r=>{if(r.length===0)return"";const o=r.split("/"),i=[];for(;o.length>0;){const a=o.shift(),s=o.length===0;if(a==="."){s&&i.push("");continue}if(a===".."){i.pop(),s&&i.push("");continue}i.push(a)}return r[0]==="/"&&i.length>0&&i[0]!==""&&i.unshift(""),i.length===1&&i[0]===""?"/":i.join("/")};const t=/^([A-Za-z][A-Za-z0-9+-.]*|_):[^\s]*$/;return e.isAbsolute=r=>n.isString(r)&&t.test(r),e.isRelative=r=>n.isString(r),Bo}var qo,Ys;function Ap(){if(Ys)return qo;Ys=1;const{parseLinkHeader:n,buildHeaders:e}=et(),{LINK_HEADER_CONTEXT:t}=da(),r=rt(),o=Zd(),{prependBase:i}=jt(),a=/(^|(\r\n))link:/i;qo=({secure:l,headers:u={},xhr:f}={headers:{}})=>{return u=e(u),new o().wrapLoader(y);async function y(b){if(b.indexOf("http:")!==0&&b.indexOf("https:")!==0)throw new r('URL could not be dereferenced; only "http" and "https" URLs are supported.',"jsonld.InvalidUrl",{code:"loading document failed",url:b});if(l&&b.indexOf("https")!==0)throw new r(`URL could not be dereferenced; secure mode is enabled and the URL's scheme is not "https".`,"jsonld.InvalidUrl",{code:"loading document failed",url:b});let g;try{g=await s(f,b,u)}catch(v){throw new r("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:b,cause:v})}if(g.status>=400)throw new r("URL could not be dereferenced: "+g.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:b,httpStatusCode:g.status});let x={contextUrl:null,documentUrl:b,document:g.response},_=null;const k=g.getResponseHeader("Content-Type");let E;if(a.test(g.getAllResponseHeaders())&&(E=g.getResponseHeader("Link")),E&&k!=="application/ld+json"){const v=n(E),c=v[t];if(Array.isArray(c))throw new r("URL could not be dereferenced, it has more than one associated HTTP Link Header.","jsonld.InvalidUrl",{code:"multiple context link headers",url:b});c&&(x.contextUrl=c.target),_=v.alternate,_&&_.type=="application/ld+json"&&!(k||"").match(/^application\/(\w*\+)?json$/)&&(x=await y(i(b,_.target)))}return x}};function s(l,u,f){l=l||XMLHttpRequest;const m=new l;return new Promise((y,b)=>{m.onload=()=>y(m),m.onerror=g=>b(g),m.open("GET",u,!0);for(const g in f)m.setRequestHeader(g,f[g]);m.send()})}return qo}var Fo,Zs;function Lp(){if(Zs)return Fo;Zs=1;const n=Ap(),e={};return Fo=e,e.setupDocumentLoaders=function(t){typeof XMLHttpRequest<"u"&&(t.documentLoaders.xhr=n,t.useDocumentLoader("xhr"))},e.setupGlobals=function(t){typeof globalThis.JsonLdProcessor>"u"&&Object.defineProperty(globalThis,"JsonLdProcessor",{writable:!0,enumerable:!1,configurable:!0,value:t.JsonLdProcessor})},Fo}var zo,el;function Op(){return el||(el=1,zo=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),zo}var Uo,tl;function $p(){if(tl)return Uo;tl=1,Uo=n,n.Node=o,n.create=n;function n(i){var a=this;if(a instanceof n||(a=new n),a.tail=null,a.head=null,a.length=0,i&&typeof i.forEach=="function")i.forEach(function(u){a.push(u)});else if(arguments.length>0)for(var s=0,l=arguments.length;s<l;s++)a.push(arguments[s]);return a}n.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var a=i.next,s=i.prev;return a&&(a.prev=s),s&&(s.next=a),i===this.head&&(this.head=a),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,a},n.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var a=this.head;i.list=this,i.next=a,a&&(a.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}},n.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var a=this.tail;i.list=this,i.prev=a,a&&(a.next=i),this.tail=i,this.head||(this.head=i),this.length++}},n.prototype.push=function(){for(var i=0,a=arguments.length;i<a;i++)t(this,arguments[i]);return this.length},n.prototype.unshift=function(){for(var i=0,a=arguments.length;i<a;i++)r(this,arguments[i]);return this.length},n.prototype.pop=function(){if(this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}},n.prototype.shift=function(){if(this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}},n.prototype.forEach=function(i,a){a=a||this;for(var s=this.head,l=0;s!==null;l++)i.call(a,s.value,l,this),s=s.next},n.prototype.forEachReverse=function(i,a){a=a||this;for(var s=this.tail,l=this.length-1;s!==null;l--)i.call(a,s.value,l,this),s=s.prev},n.prototype.get=function(i){for(var a=0,s=this.head;s!==null&&a<i;a++)s=s.next;if(a===i&&s!==null)return s.value},n.prototype.getReverse=function(i){for(var a=0,s=this.tail;s!==null&&a<i;a++)s=s.prev;if(a===i&&s!==null)return s.value},n.prototype.map=function(i,a){a=a||this;for(var s=new n,l=this.head;l!==null;)s.push(i.call(a,l.value,this)),l=l.next;return s},n.prototype.mapReverse=function(i,a){a=a||this;for(var s=new n,l=this.tail;l!==null;)s.push(i.call(a,l.value,this)),l=l.prev;return s},n.prototype.reduce=function(i,a){var s,l=this.head;if(arguments.length>1)s=a;else if(this.head)l=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;l!==null;u++)s=i(s,l.value,u),l=l.next;return s},n.prototype.reduceReverse=function(i,a){var s,l=this.tail;if(arguments.length>1)s=a;else if(this.tail)l=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=this.length-1;l!==null;u--)s=i(s,l.value,u),l=l.prev;return s},n.prototype.toArray=function(){for(var i=new Array(this.length),a=0,s=this.head;s!==null;a++)i[a]=s.value,s=s.next;return i},n.prototype.toArrayReverse=function(){for(var i=new Array(this.length),a=0,s=this.tail;s!==null;a++)i[a]=s.value,s=s.prev;return i},n.prototype.slice=function(i,a){a=a||this.length,a<0&&(a+=this.length),i=i||0,i<0&&(i+=this.length);var s=new n;if(a<i||a<0)return s;i<0&&(i=0),a>this.length&&(a=this.length);for(var l=0,u=this.head;u!==null&&l<i;l++)u=u.next;for(;u!==null&&l<a;l++,u=u.next)s.push(u.value);return s},n.prototype.sliceReverse=function(i,a){a=a||this.length,a<0&&(a+=this.length),i=i||0,i<0&&(i+=this.length);var s=new n;if(a<i||a<0)return s;i<0&&(i=0),a>this.length&&(a=this.length);for(var l=this.length,u=this.tail;u!==null&&l>a;l--)u=u.prev;for(;u!==null&&l>i;l--,u=u.prev)s.push(u.value);return s},n.prototype.splice=function(i,a,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var l=0,u=this.head;u!==null&&l<i;l++)u=u.next;for(var f=[],l=0;u&&l<a;l++)f.push(u.value),u=this.removeNode(u);u===null&&(u=this.tail),u!==this.head&&u!==this.tail&&(u=u.prev);for(var l=0;l<s.length;l++)u=e(this,u,s[l]);return f},n.prototype.reverse=function(){for(var i=this.head,a=this.tail,s=i;s!==null;s=s.prev){var l=s.prev;s.prev=s.next,s.next=l}return this.head=a,this.tail=i,this};function e(i,a,s){var l=a===i.head?new o(s,null,a,i):new o(s,a,a.next,i);return l.next===null&&(i.tail=l),l.prev===null&&(i.head=l),i.length++,l}function t(i,a){i.tail=new o(a,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function r(i,a){i.head=new o(a,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function o(i,a,s,l){if(!(this instanceof o))return new o(i,a,s,l);this.list=l,this.value=i,a?(a.next=this,this.prev=a):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Op()(n)}catch{}return Uo}var Ho,rl;function ec(){if(rl)return Ho;rl=1;const n=$p(),e=Symbol("max"),t=Symbol("length"),r=Symbol("lengthCalculator"),o=Symbol("allowStale"),i=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),u=Symbol("cache"),f=Symbol("updateAgeOnGet"),m=()=>1;class y{constructor(c){if(typeof c=="number"&&(c={max:c}),c||(c={}),c.max&&(typeof c.max!="number"||c.max<0))throw new TypeError("max must be a non-negative number");this[e]=c.max||1/0;const h=c.length||m;if(this[r]=typeof h!="function"?m:h,this[o]=c.stale||!1,c.maxAge&&typeof c.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=c.maxAge||0,this[a]=c.dispose,this[s]=c.noDisposeOnSet||!1,this[f]=c.updateAgeOnGet||!1,this.reset()}set max(c){if(typeof c!="number"||c<0)throw new TypeError("max must be a non-negative number");this[e]=c||1/0,x(this)}get max(){return this[e]}set allowStale(c){this[o]=!!c}get allowStale(){return this[o]}set maxAge(c){if(typeof c!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=c,x(this)}get maxAge(){return this[i]}set lengthCalculator(c){typeof c!="function"&&(c=m),c!==this[r]&&(this[r]=c,this[t]=0,this[l].forEach(h=>{h.length=this[r](h.value,h.key),this[t]+=h.length})),x(this)}get lengthCalculator(){return this[r]}get length(){return this[t]}get itemCount(){return this[l].length}rforEach(c,h){h=h||this;for(let R=this[l].tail;R!==null;){const D=R.prev;E(this,c,R,h),R=D}}forEach(c,h){h=h||this;for(let R=this[l].head;R!==null;){const D=R.next;E(this,c,R,h),R=D}}keys(){return this[l].toArray().map(c=>c.key)}values(){return this[l].toArray().map(c=>c.value)}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach(c=>this[a](c.key,c.value)),this[u]=new Map,this[l]=new n,this[t]=0}dump(){return this[l].map(c=>g(this,c)?!1:{k:c.key,v:c.value,e:c.now+(c.maxAge||0)}).toArray().filter(c=>c)}dumpLru(){return this[l]}set(c,h,R){if(R=R||this[i],R&&typeof R!="number")throw new TypeError("maxAge must be a number");const D=R?Date.now():0,N=this[r](h,c);if(this[u].has(c)){if(N>this[e])return _(this,this[u].get(c)),!1;const M=this[u].get(c).value;return this[a]&&(this[s]||this[a](c,M.value)),M.now=D,M.maxAge=R,M.value=h,this[t]+=N-M.length,M.length=N,this.get(c),x(this),!0}const B=new k(c,h,N,D,R);return B.length>this[e]?(this[a]&&this[a](c,h),!1):(this[t]+=B.length,this[l].unshift(B),this[u].set(c,this[l].head),x(this),!0)}has(c){if(!this[u].has(c))return!1;const h=this[u].get(c).value;return!g(this,h)}get(c){return b(this,c,!0)}peek(c){return b(this,c,!1)}pop(){const c=this[l].tail;return c?(_(this,c),c.value):null}del(c){_(this,this[u].get(c))}load(c){this.reset();const h=Date.now();for(let R=c.length-1;R>=0;R--){const D=c[R],N=D.e||0;if(N===0)this.set(D.k,D.v);else{const B=N-h;B>0&&this.set(D.k,D.v,B)}}}prune(){this[u].forEach((c,h)=>b(this,h,!1))}}const b=(v,c,h)=>{const R=v[u].get(c);if(R){const D=R.value;if(g(v,D)){if(_(v,R),!v[o])return}else h&&(v[f]&&(R.value.now=Date.now()),v[l].unshiftNode(R));return D.value}},g=(v,c)=>{if(!c||!c.maxAge&&!v[i])return!1;const h=Date.now()-c.now;return c.maxAge?h>c.maxAge:v[i]&&h>v[i]},x=v=>{if(v[t]>v[e])for(let c=v[l].tail;v[t]>v[e]&&c!==null;){const h=c.prev;_(v,c),c=h}},_=(v,c)=>{if(c){const h=c.value;v[a]&&v[a](h.key,h.value),v[t]-=h.length,v[u].delete(h.key),v[l].removeNode(c)}};class k{constructor(c,h,R,D,N){this.key=c,this.value=h,this.length=R,this.now=D,this.maxAge=N||0}}const E=(v,c,h,R)=>{let D=h.value;g(v,D)&&(_(v,h),v[o]||(D=void 0)),D&&c.call(R,D.value,D.key,v)};return Ho=y,Ho}var Go,nl;function Dp(){if(nl)return Go;nl=1;const n=ec(),e=10;return Go=class{constructor({document:r}){this.document=r,this.cache=new n({max:e})}getProcessed(r){return this.cache.get(r)}setProcessed(r,o){this.cache.set(r,o)}},Go}var Vo,ol;function Mp(){if(ol)return Vo;ol=1;const{isArray:n,isObject:e,isString:t}=Ke(),{asArray:r}=et(),{prependBase:o}=jt(),i=rt(),a=Dp(),s=10;Vo=class{constructor({sharedCache:m}){this.perOpCache=new Map,this.sharedCache=m}async resolve({activeCtx:m,context:y,documentLoader:b,base:g,cycles:x=new Set}){y&&e(y)&&y["@context"]&&(y=y["@context"]),y=r(y);const _=[];for(const k of y){if(t(k)){let c=this._get(k);c||(c=await this._resolveRemoteContext({activeCtx:m,url:k,documentLoader:b,base:g,cycles:x})),n(c)?_.push(...c):_.push(c);continue}if(k===null){_.push(new a({document:null}));continue}e(k)||l(y);const E=JSON.stringify(k);let v=this._get(E);v||(v=new a({document:k}),this._cacheResolvedContext({key:E,resolved:v,tag:"static"})),_.push(v)}return _}_get(m){let y=this.perOpCache.get(m);if(!y){const b=this.sharedCache.get(m);b&&(y=b.get("static"),y&&this.perOpCache.set(m,y))}return y}_cacheResolvedContext({key:m,resolved:y,tag:b}){if(this.perOpCache.set(m,y),b!==void 0){let g=this.sharedCache.get(m);g||(g=new Map,this.sharedCache.set(m,g)),g.set(b,y)}return y}async _resolveRemoteContext({activeCtx:m,url:y,documentLoader:b,base:g,cycles:x}){y=o(g,y);const{context:_,remoteDoc:k}=await this._fetchContext({activeCtx:m,url:y,documentLoader:b,cycles:x});g=k.documentUrl||y,u({context:_,base:g});const E=await this.resolve({activeCtx:m,context:_,documentLoader:b,base:g,cycles:x});return this._cacheResolvedContext({key:y,resolved:E,tag:k.tag}),E}async _fetchContext({activeCtx:m,url:y,documentLoader:b,cycles:g}){if(g.size>s)throw new i("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:m.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:s});if(g.has(y))throw new i("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:m.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:y});g.add(y);let x,_;try{_=await b(y),x=_.document||null,t(x)&&(x=JSON.parse(x))}catch(k){throw new i(`Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context. URL: "${y}".`,"jsonld.InvalidUrl",{code:"loading remote context failed",url:y,cause:k})}if(!e(x))throw new i(`Dereferencing a URL did not result in a JSON object. The response was valid JSON, but it was not a JSON object. URL: "${y}".`,"jsonld.InvalidUrl",{code:"invalid remote context",url:y});return"@context"in x?x={"@context":x["@context"]}:x={"@context":{}},_.contextUrl&&(n(x["@context"])||(x["@context"]=[x["@context"]]),x["@context"].push(_.contextUrl)),{context:x,remoteDoc:_}}};function l(f){throw new i("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:f})}function u({context:f,base:m}){if(!f)return;const y=f["@context"];if(t(y)){f["@context"]=o(m,y);return}if(n(y)){for(let b=0;b<y.length;++b){const g=y[b];if(t(g)){y[b]=o(m,g);continue}e(g)&&u({context:{"@context":g},base:m})}return}if(e(y))for(const b in y)u({context:y[b],base:m})}return Vo}var Wo,il;function Cp(){return il||(il=1,Wo=la().NQuads),Wo}var Jo,al;function Kr(){if(al)return Jo;al=1;const n=rt(),{isArray:e}=Ke(),{asArray:t}=et(),r={};Jo=r,r.defaultEventHandler=null,r.setupEventHandler=({options:a={}})=>{const s=[].concat(a.safe?r.safeEventHandler:[],a.eventHandler?t(a.eventHandler):[],r.defaultEventHandler?r.defaultEventHandler:[]);return s.length===0?null:s},r.handleEvent=({event:a,options:s})=>{o({event:a,handlers:s.eventHandler})};function o({event:a,handlers:s}){let l=!0;for(let u=0;l&&u<s.length;++u){l=!1;const f=s[u];if(e(f))l=o({event:a,handlers:f});else if(typeof f=="function")f({event:a,next:()=>{l=!0}});else if(typeof f=="object")a.code in f?f[a.code]({event:a,next:()=>{l=!0}}):l=!0;else throw new n("Invalid event handler.","jsonld.InvalidEventHandler",{event:a})}return l}const i=new Set(["empty object","free-floating scalar","invalid @language value","invalid property","null @id value","null @value value","object with only @id","object with only @language","object with only @list","object with only @value","relative @id reference","relative @type reference","relative @vocab reference","reserved @id value","reserved @reverse value","reserved term","blank node predicate","relative graph reference","relative object reference","relative predicate reference","relative subject reference","rdfDirection not set"]);return r.safeEventHandler=function({event:s,next:l}){if(s.level==="warning"&&i.has(s.code))throw new n("Safe mode validation error.","jsonld.ValidationError",{event:s});l()},r.logEventHandler=function({event:s,next:l}){console.log(`EVENT: ${s.message}`,{event:s}),l()},r.logWarningEventHandler=function({event:s,next:l}){s.level==="warning"&&console.warn(`WARNING: ${s.message}`,{event:s}),l()},r.unhandledEventHandler=function({event:s}){throw new n("No handler for event.","jsonld.UnhandledEvent",{event:s})},r.setDefaultEventHandler=function({eventHandler:a}={}){r.defaultEventHandler=a?t(a):null},Jo}var Qo,sl;function zt(){if(sl)return Qo;sl=1;const n=et(),e=rt(),{isArray:t,isObject:r,isString:o,isUndefined:i}=Ke(),{isAbsolute:a,isRelative:s,prependBase:l}=jt(),{handleEvent:u}=Kr(),{REGEX_BCP47:f,REGEX_KEYWORD:m,asArray:y,compareShortestLeast:b}=et(),g=new Map,x=1e4,_={};Qo=_,_.process=async({activeCtx:v,localCtx:c,options:h,propagate:R=!0,overrideProtected:D=!1,cycles:N=new Set})=>{if(r(c)&&"@context"in c&&t(c["@context"])&&(c=c["@context"]),y(c).length===0)return v;const I=[],M=[({event:Y,next:T})=>{I.push(Y),T()}];h.eventHandler&&M.push(h.eventHandler);const q=h;h={...h,eventHandler:M};const j=await h.contextResolver.resolve({activeCtx:v,context:c,documentLoader:h.documentLoader,base:h.base});r(j[0].document)&&typeof j[0].document["@propagate"]=="boolean"&&(R=j[0].document["@propagate"]);let A=v;!R&&!A.previousContext&&(A=A.clone(),A.previousContext=v);for(const Y of j){let{document:T}=Y;if(v=A,T===null){if(!D&&Object.keys(v.protected).length!==0)throw new e("Tried to nullify a context with protected terms outside of a term definition.","jsonld.SyntaxError",{code:"invalid context nullification"});A=v=_.getInitialContext(h).clone();continue}const ee=Y.getProcessed(v);if(ee){if(q.eventHandler)for(const K of ee.events)u({event:K,options:q});A=v=ee.context;continue}if(r(T)&&"@context"in T&&(T=T["@context"]),!r(T))throw new e("Invalid JSON-LD syntax; @context must be an object.","jsonld.SyntaxError",{code:"invalid local context",context:T});A=A.clone();const C=new Map;if("@version"in T){if(T["@version"]!==1.1)throw new e("Unsupported JSON-LD version: "+T["@version"],"jsonld.UnsupportedVersion",{code:"invalid @version value",context:T});if(v.processingMode&&v.processingMode==="json-ld-1.0")throw new e("@version: "+T["@version"]+" not compatible with "+v.processingMode,"jsonld.ProcessingModeConflict",{code:"processing mode conflict",context:T});A.processingMode="json-ld-1.1",A["@version"]=T["@version"],C.set("@version",!0)}if(A.processingMode=A.processingMode||v.processingMode,"@base"in T){let K=T["@base"];if(!(K===null||a(K)))if(s(K))K=l(A["@base"],K);else throw new e('Invalid JSON-LD syntax; the value of "@base" in a @context must be an absolute IRI, a relative IRI, or null.',"jsonld.SyntaxError",{code:"invalid base IRI",context:T});A["@base"]=K,C.set("@base",!0)}if("@vocab"in T){const K=T["@vocab"];if(K===null)delete A["@vocab"];else if(o(K)){if(!a(K)&&_.processingMode(A,1))throw new e('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be an absolute IRI.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:T});{const w=k(A,K,{vocab:!0,base:!0},void 0,void 0,h);a(w)||h.eventHandler&&u({event:{type:["JsonLdEvent"],code:"relative @vocab reference",level:"warning",message:"Relative @vocab reference found.",details:{vocab:w}},options:h}),A["@vocab"]=w}}else throw new e('Invalid JSON-LD syntax; the value of "@vocab" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid vocab mapping",context:T});C.set("@vocab",!0)}if("@language"in T){const K=T["@language"];if(K===null)delete A["@language"];else if(o(K))K.match(f)||h.eventHandler&&u({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:K}},options:h}),A["@language"]=K.toLowerCase();else throw new e('Invalid JSON-LD syntax; the value of "@language" in a @context must be a string or null.',"jsonld.SyntaxError",{code:"invalid default language",context:T});C.set("@language",!0)}if("@direction"in T){const K=T["@direction"];if(v.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @direction not compatible with "+v.processingMode,"jsonld.SyntaxError",{code:"invalid context member",context:T});if(K===null)delete A["@direction"];else{if(K!=="ltr"&&K!=="rtl")throw new e('Invalid JSON-LD syntax; the value of "@direction" in a @context must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:T});A["@direction"]=K}C.set("@direction",!0)}if("@propagate"in T){const K=T["@propagate"];if(v.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @propagate not compatible with "+v.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:T});if(typeof K!="boolean")throw new e("Invalid JSON-LD syntax; @propagate value must be a boolean.","jsonld.SyntaxError",{code:"invalid @propagate value",context:c});C.set("@propagate",!0)}if("@import"in T){const K=T["@import"];if(v.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @import not compatible with "+v.processingMode,"jsonld.SyntaxError",{code:"invalid context entry",context:T});if(!o(K))throw new e("Invalid JSON-LD syntax; @import must be a string.","jsonld.SyntaxError",{code:"invalid @import value",context:c});const w=await h.contextResolver.resolve({activeCtx:v,context:K,documentLoader:h.documentLoader,base:h.base});if(w.length!==1)throw new e("Invalid JSON-LD syntax; @import must reference a single context.","jsonld.SyntaxError",{code:"invalid remote context",context:c});const z=w[0].getProcessed(v);if(z)T=z;else{const Q=w[0].document;if("@import"in Q)throw new e("Invalid JSON-LD syntax: imported context must not include @import.","jsonld.SyntaxError",{code:"invalid context entry",context:c});for(const W in Q)T.hasOwnProperty(W)||(T[W]=Q[W]);w[0].setProcessed(v,T)}C.set("@import",!0)}C.set("@protected",T["@protected"]||!1);for(const K in T)if(_.createTermDefinition({activeCtx:A,localCtx:T,term:K,defined:C,options:h,overrideProtected:D}),r(T[K])&&"@context"in T[K]){const w=T[K]["@context"];let z=!0;if(o(w)){const Q=l(h.base,w);N.has(Q)?z=!1:N.add(Q)}if(z)try{await _.process({activeCtx:A.clone(),localCtx:T[K]["@context"],overrideProtected:!0,options:h,cycles:N})}catch{throw new e("Invalid JSON-LD syntax; invalid scoped context.","jsonld.SyntaxError",{code:"invalid scoped context",context:T[K]["@context"],term:K})}}Y.setProcessed(v,{context:A,events:I})}return A},_.createTermDefinition=({activeCtx:v,localCtx:c,term:h,defined:R,options:D,overrideProtected:N=!1})=>{if(R.has(h)){if(R.get(h))return;throw new e("Cyclical context definition detected.","jsonld.CyclicalContext",{code:"cyclic IRI mapping",context:c,term:h})}R.set(h,!1);let B;if(c.hasOwnProperty(h)&&(B=c[h]),h==="@type"&&r(B)&&(B["@container"]||"@set")==="@set"&&_.processingMode(v,1.1)){const T=["@container","@id","@protected"],ee=Object.keys(B);if(ee.length===0||ee.some(C=>!T.includes(C)))throw new e("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:c,term:h})}else{if(_.isKeyword(h))throw new e("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:c,term:h});if(h.match(m)){D.eventHandler&&u({event:{type:["JsonLdEvent"],code:"reserved term",level:"warning",message:'Terms beginning with "@" are reserved for future use and dropped.',details:{term:h}},options:D});return}else if(h==="")throw new e("Invalid JSON-LD syntax; a term cannot be an empty string.","jsonld.SyntaxError",{code:"invalid term definition",context:c})}const I=v.mappings.get(h);v.mappings.has(h)&&v.mappings.delete(h);let M=!1;if((o(B)||B===null)&&(M=!0,B={"@id":B}),!r(B))throw new e("Invalid JSON-LD syntax; @context term values must be strings or objects.","jsonld.SyntaxError",{code:"invalid term definition",context:c});const q={};v.mappings.set(h,q),q.reverse=!1;const j=["@container","@id","@language","@reverse","@type"];_.processingMode(v,1.1)&&j.push("@context","@direction","@index","@nest","@prefix","@protected");for(const T in B)if(!j.includes(T))throw new e("Invalid JSON-LD syntax; a term definition must not contain "+T,"jsonld.SyntaxError",{code:"invalid term definition",context:c});const A=h.indexOf(":");if(q._termHasColon=A>0,"@reverse"in B){if("@id"in B)throw new e("Invalid JSON-LD syntax; a @reverse term definition must not contain @id.","jsonld.SyntaxError",{code:"invalid reverse property",context:c});if("@nest"in B)throw new e("Invalid JSON-LD syntax; a @reverse term definition must not contain @nest.","jsonld.SyntaxError",{code:"invalid reverse property",context:c});const T=B["@reverse"];if(!o(T))throw new e("Invalid JSON-LD syntax; a @context @reverse value must be a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});if(T.match(m)){D.eventHandler&&u({event:{type:["JsonLdEvent"],code:"reserved @reverse value",level:"warning",message:'@reverse values beginning with "@" are reserved for future use and dropped.',details:{reverse:T}},options:D}),I?v.mappings.set(h,I):v.mappings.delete(h);return}const ee=k(v,T,{vocab:!0,base:!1},c,R,D);if(!a(ee))throw new e("Invalid JSON-LD syntax; a @context @reverse value must be an absolute IRI or a blank node identifier.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});q["@id"]=ee,q.reverse=!0}else if("@id"in B){let T=B["@id"];if(T&&!o(T))throw new e("Invalid JSON-LD syntax; a @context @id value must be an array of strings or a string.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});if(T===null)q["@id"]=null;else if(!_.isKeyword(T)&&T.match(m)){D.eventHandler&&u({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:'@id values beginning with "@" are reserved for future use and dropped.',details:{id:T}},options:D}),I?v.mappings.set(h,I):v.mappings.delete(h);return}else if(T!==h){if(T=k(v,T,{vocab:!0,base:!1},c,R,D),!a(T)&&!_.isKeyword(T))throw new e("Invalid JSON-LD syntax; a @context @id value must be an absolute IRI, a blank node identifier, or a keyword.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c});if(h.match(/(?::[^:])|\//)){const ee=new Map(R).set(h,!0);if(k(v,h,{vocab:!0,base:!1},c,ee,D)!==T)throw new e("Invalid JSON-LD syntax; term in form of IRI must expand to definition.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c})}q["@id"]=T,q._prefix=M&&!q._termHasColon&&T.match(/[:\/\?#\[\]@]$/)!==null}}if(!("@id"in q))if(q._termHasColon){const T=h.substr(0,A);if(c.hasOwnProperty(T)&&_.createTermDefinition({activeCtx:v,localCtx:c,term:T,defined:R,options:D}),v.mappings.has(T)){const ee=h.substr(A+1);q["@id"]=v.mappings.get(T)["@id"]+ee}else q["@id"]=h}else if(h==="@type")q["@id"]=h;else{if(!("@vocab"in v))throw new e("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:c,term:h});q["@id"]=v["@vocab"]+h}if((B["@protected"]===!0||R.get("@protected")===!0&&B["@protected"]!==!1)&&(v.protected[h]=!0,q.protected=!0),R.set(h,!0),"@type"in B){let T=B["@type"];if(!o(T))throw new e("Invalid JSON-LD syntax; an @context @type value must be a string.","jsonld.SyntaxError",{code:"invalid type mapping",context:c});if(T==="@json"||T==="@none"){if(_.processingMode(v,1))throw new e(`Invalid JSON-LD syntax; an @context @type value must not be "${T}" in JSON-LD 1.0 mode.`,"jsonld.SyntaxError",{code:"invalid type mapping",context:c})}else if(T!=="@id"&&T!=="@vocab"){if(T=k(v,T,{vocab:!0,base:!1},c,R,D),!a(T))throw new e("Invalid JSON-LD syntax; an @context @type value must be an absolute IRI.","jsonld.SyntaxError",{code:"invalid type mapping",context:c});if(T.indexOf("_:")===0)throw new e("Invalid JSON-LD syntax; an @context @type value must be an IRI, not a blank node identifier.","jsonld.SyntaxError",{code:"invalid type mapping",context:c})}q["@type"]=T}if("@container"in B){const T=o(B["@container"])?[B["@container"]]:B["@container"]||[],ee=["@list","@set","@index","@language"];let C=!0;const K=T.includes("@set");if(_.processingMode(v,1.1)){if(ee.push("@graph","@id","@type"),T.includes("@list")){if(T.length!==1)throw new e("Invalid JSON-LD syntax; @context @container with @list must have no other values","jsonld.SyntaxError",{code:"invalid container mapping",context:c})}else if(T.includes("@graph")){if(T.some(w=>w!=="@graph"&&w!=="@id"&&w!=="@index"&&w!=="@set"))throw new e("Invalid JSON-LD syntax; @context @container with @graph must have no other values other than @id, @index, and @set","jsonld.SyntaxError",{code:"invalid container mapping",context:c})}else C&=T.length<=(K?2:1);if(T.includes("@type")&&(q["@type"]=q["@type"]||"@id",!["@id","@vocab"].includes(q["@type"])))throw new e("Invalid JSON-LD syntax; container: @type requires @type to be @id or @vocab.","jsonld.SyntaxError",{code:"invalid type mapping",context:c})}else C&=!t(B["@container"]),C&=T.length<=1;if(C&=T.every(w=>ee.includes(w)),C&=!(K&&T.includes("@list")),!C)throw new e("Invalid JSON-LD syntax; @context @container value must be one of the following: "+ee.join(", "),"jsonld.SyntaxError",{code:"invalid container mapping",context:c});if(q.reverse&&!T.every(w=>["@index","@set"].includes(w)))throw new e("Invalid JSON-LD syntax; @context @container value for a @reverse type definition must be @index or @set.","jsonld.SyntaxError",{code:"invalid reverse property",context:c});q["@container"]=T}if("@index"in B){if(!("@container"in B)||!q["@container"].includes("@index"))throw new e(`Invalid JSON-LD syntax; @index without @index in @container: "${B["@index"]}" on term "${h}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:c});if(!o(B["@index"])||B["@index"].indexOf("@")===0)throw new e(`Invalid JSON-LD syntax; @index must expand to an IRI: "${B["@index"]}" on term "${h}".`,"jsonld.SyntaxError",{code:"invalid term definition",context:c});q["@index"]=B["@index"]}if("@context"in B&&(q["@context"]=B["@context"]),"@language"in B&&!("@type"in B)){let T=B["@language"];if(T!==null&&!o(T))throw new e("Invalid JSON-LD syntax; @context @language value must be a string or null.","jsonld.SyntaxError",{code:"invalid language mapping",context:c});T!==null&&(T=T.toLowerCase()),q["@language"]=T}if("@prefix"in B){if(h.match(/:|\//))throw new e("Invalid JSON-LD syntax; @context @prefix used on a compact IRI term","jsonld.SyntaxError",{code:"invalid term definition",context:c});if(_.isKeyword(q["@id"]))throw new e("Invalid JSON-LD syntax; keywords may not be used as prefixes","jsonld.SyntaxError",{code:"invalid term definition",context:c});if(typeof B["@prefix"]=="boolean")q._prefix=B["@prefix"]===!0;else throw new e("Invalid JSON-LD syntax; @context value for @prefix must be boolean","jsonld.SyntaxError",{code:"invalid @prefix value",context:c})}if("@direction"in B){const T=B["@direction"];if(T!==null&&T!=="ltr"&&T!=="rtl")throw new e('Invalid JSON-LD syntax; @direction value must be null, "ltr", or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",context:c});q["@direction"]=T}if("@nest"in B){const T=B["@nest"];if(!o(T)||T!=="@nest"&&T.indexOf("@")===0)throw new e("Invalid JSON-LD syntax; @context @nest value must be a string which is not a keyword other than @nest.","jsonld.SyntaxError",{code:"invalid @nest value",context:c});q["@nest"]=T}// disallow aliasing @context and @preserve
298
+ const Y=q["@id"];if(Y==="@context"||Y==="@preserve")throw new e("Invalid JSON-LD syntax; @context and @preserve cannot be aliased.","jsonld.SyntaxError",{code:"invalid keyword alias",context:c});if(I&&I.protected&&!N&&(v.protected[h]=!0,q.protected=!0,!E(I,q)))throw new e("Invalid JSON-LD syntax; tried to redefine a protected term.","jsonld.SyntaxError",{code:"protected term redefinition",context:c,term:h})},_.expandIri=(v,c,h,R)=>k(v,c,h,void 0,void 0,R);function k(v,c,h,R,D,N){if(c===null||!o(c)||_.isKeyword(c))return c;if(c.match(m))return null;if(R&&R.hasOwnProperty(c)&&D.get(c)!==!0&&_.createTermDefinition({activeCtx:v,localCtx:R,term:c,defined:D,options:N}),h=h||{},h.vocab){const I=v.mappings.get(c);if(I===null)return null;if(r(I)&&"@id"in I)return I["@id"]}const B=c.indexOf(":");if(B>0){const I=c.substr(0,B),M=c.substr(B+1);if(I==="_"||M.indexOf("//")===0)return c;R&&R.hasOwnProperty(I)&&_.createTermDefinition({activeCtx:v,localCtx:R,term:I,defined:D,options:N});const q=v.mappings.get(I);if(q&&q._prefix)return q["@id"]+M;if(a(c))return c}if(h.vocab&&"@vocab"in v)c=v["@vocab"]+c;else if(h.base){let I,M;"@base"in v?v["@base"]?(M=l(N.base,v["@base"]),I=l(M,c)):(M=v["@base"],I=c):(M=N.base,I=l(N.base,c)),c=I}return c}_.getInitialContext=v=>{const c=JSON.stringify({processingMode:v.processingMode}),h=g.get(c);if(h)return h;const R={processingMode:v.processingMode,mappings:new Map,inverse:null,getInverse:D,clone:I,revertToPreviousContext:M,protected:{}};return g.size===x&&g.clear(),g.set(c,R),R;function D(){const q=this;if(q.inverse)return q.inverse;const j=q.inverse={},A=q.fastCurieMap={},Y={},T=(q["@language"]||"@none").toLowerCase(),ee=q["@direction"],C=q.mappings,K=[...C.keys()].sort(b);for(const w of K){const z=C.get(w);if(z===null)continue;let Q=z["@container"]||"@none";if(Q=[].concat(Q).sort().join(""),z["@id"]===null)continue;const W=y(z["@id"]);for(const ae of W){let U=j[ae];const H=_.isKeyword(ae);if(U)!H&&!z._termHasColon&&Y[ae].push(w);else if(j[ae]=U={},!H&&!z._termHasColon){Y[ae]=[w];const V={iri:ae,terms:Y[ae]};ae[0]in A?A[ae[0]].push(V):A[ae[0]]=[V]}if(U[Q]||(U[Q]={"@language":{},"@type":{},"@any":{}}),U=U[Q],B(w,U["@any"],"@none"),z.reverse)B(w,U["@type"],"@reverse");else if(z["@type"]==="@none")B(w,U["@any"],"@none"),B(w,U["@language"],"@none"),B(w,U["@type"],"@none");else if("@type"in z)B(w,U["@type"],z["@type"]);else if("@language"in z&&"@direction"in z){const V=z["@language"],F=z["@direction"];V&&F?B(w,U["@language"],`${V}_${F}`.toLowerCase()):V?B(w,U["@language"],V.toLowerCase()):F?B(w,U["@language"],`_${F}`):B(w,U["@language"],"@null")}else"@language"in z?B(w,U["@language"],(z["@language"]||"@null").toLowerCase()):"@direction"in z?z["@direction"]?B(w,U["@language"],`_${z["@direction"]}`):B(w,U["@language"],"@none"):ee?(B(w,U["@language"],`_${ee}`),B(w,U["@language"],"@none"),B(w,U["@type"],"@none")):(B(w,U["@language"],T),B(w,U["@language"],"@none"),B(w,U["@type"],"@none"))}}for(const w in A)N(A,w,1);return j}function N(q,j,A){const Y=q[j],T=q[j]={};let ee,C;for(const K of Y)ee=K.iri,A>=ee.length?C="":C=ee[A],C in T?T[C].push(K):T[C]=[K];for(const K in T)K!==""&&N(T,K,A+1)}function B(q,j,A){j.hasOwnProperty(A)||(j[A]=q)}function I(){const q={};return q.mappings=n.clone(this.mappings),q.clone=this.clone,q.inverse=null,q.getInverse=this.getInverse,q.protected=n.clone(this.protected),this.previousContext&&(q.previousContext=this.previousContext.clone()),q.revertToPreviousContext=this.revertToPreviousContext,"@base"in this&&(q["@base"]=this["@base"]),"@language"in this&&(q["@language"]=this["@language"]),"@vocab"in this&&(q["@vocab"]=this["@vocab"]),q}function M(){return this.previousContext?this.previousContext.clone():this}},_.getContextValue=(v,c,h)=>{if(c===null)return h==="@context"?void 0:null;if(v.mappings.has(c)){const R=v.mappings.get(c);if(i(h))return R;if(R.hasOwnProperty(h))return R[h]}if(h==="@language"&&h in v||h==="@direction"&&h in v)return v[h];if(h!=="@context")return null},_.processingMode=(v,c)=>c.toString()>="1.1"?!v.processingMode||v.processingMode>="json-ld-"+c.toString():v.processingMode==="json-ld-1.0",_.isKeyword=v=>{if(!o(v)||v[0]!=="@")return!1;switch(v){case"@base":case"@container":case"@context":case"@default":case"@direction":case"@embed":case"@explicit":case"@graph":case"@id":case"@included":case"@index":case"@json":case"@language":case"@list":case"@nest":case"@none":case"@omitDefault":case"@prefix":case"@preserve":case"@protected":case"@requireAll":case"@reverse":case"@set":case"@type":case"@value":case"@version":case"@vocab":return!0}return!1};function E(v,c){if(!(v&&typeof v=="object")||!(c&&typeof c=="object"))return v===c;const h=Array.isArray(v);if(h!==Array.isArray(c))return!1;if(h){if(v.length!==c.length)return!1;for(let N=0;N<v.length;++N)if(!E(v[N],c[N]))return!1;return!0}const R=Object.keys(v),D=Object.keys(c);if(R.length!==D.length)return!1;for(const N in v){let B=v[N],I=c[N];if(N==="@container"&&Array.isArray(B)&&Array.isArray(I)&&(B=B.slice().sort(),I=I.slice().sort()),!E(B,I))return!1}return!0}return Qo}var Xo,ll;function Pp(){if(ll)return Xo;ll=1;const n=rt(),{isArray:e,isObject:t,isEmptyObject:r,isString:o,isUndefined:i}=Ke(),{isList:a,isValue:s,isGraph:l,isSubject:u}=xt(),{expandIri:f,getContextValue:m,isKeyword:y,process:b,processingMode:g}=zt(),{isAbsolute:x}=jt(),{REGEX_BCP47:_,REGEX_KEYWORD:k,addValue:E,asArray:v,getValues:c,validateTypeValue:h}=et(),{handleEvent:R}=Kr(),D={};Xo=D,D.expand=async({activeCtx:j,activeProperty:A=null,element:Y,options:T={},insideList:ee=!1,insideIndex:C=!1,typeScopedContext:K=null})=>{if(Y==null)return null;if(A==="@default"&&(T=Object.assign({},T,{isFrame:!1})),!e(Y)&&!t(Y))return!ee&&(A===null||f(j,A,{vocab:!0},T)==="@graph")?(T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"free-floating scalar",level:"warning",message:"Dropping free-floating scalar not in a list.",details:{value:Y}},options:T}),null):I({activeCtx:j,activeProperty:A,value:Y,options:T});if(e(Y)){let V=[];const F=m(j,A,"@container")||[];ee=ee||F.includes("@list");for(let Z=0;Z<Y.length;++Z){let te=await D.expand({activeCtx:j,activeProperty:A,element:Y[Z],options:T,insideIndex:C,typeScopedContext:K});ee&&e(te)&&(te={"@list":te}),te!==null&&(e(te)?V=V.concat(te):V.push(te))}return V}const w=f(j,A,{vocab:!0},T),z=m(j,A,"@context");K=K||(j.previousContext?j:null);let Q=Object.keys(Y).sort(),W=!C;if(W&&K&&Q.length<=2&&!Q.includes("@context"))for(const V of Q){const F=f(K,V,{vocab:!0},T);if(F==="@value"){W=!1,j=K;break}if(F==="@id"&&Q.length===1){W=!1;break}}W&&(j=j.revertToPreviousContext()),i(z)||(j=await b({activeCtx:j,localCtx:z,propagate:!0,overrideProtected:!0,options:T})),"@context"in Y&&(j=await b({activeCtx:j,localCtx:Y["@context"],options:T})),K=j;let ae=null;for(const V of Q)if(f(j,V,{vocab:!0},T)==="@type"){ae=ae||V;const Z=Y[V],te=Array.isArray(Z)?Z.length>1?Z.slice().sort():Z:[Z];for(const ce of te){const pe=m(K,ce,"@context");i(pe)||(j=await b({activeCtx:j,localCtx:pe,options:T,propagate:!1}))}}let U={};await B({activeCtx:j,activeProperty:A,expandedActiveProperty:w,element:Y,expandedParent:U,options:T,insideList:ee,typeKey:ae,typeScopedContext:K}),Q=Object.keys(U);let H=Q.length;if("@value"in U){if("@type"in U&&("@language"in U||"@direction"in U))throw new n('Invalid JSON-LD syntax; an element containing "@value" may not contain both "@type" and either "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:U});let V=H-1;if("@type"in U&&(V-=1),"@index"in U&&(V-=1),"@language"in U&&(V-=1),"@direction"in U&&(V-=1),V!==0)throw new n('Invalid JSON-LD syntax; an element containing "@value" may only have an "@index" property and either "@type" or either or both "@language" or "@direction".',"jsonld.SyntaxError",{code:"invalid value object",element:U});const F=U["@value"]===null?[]:v(U["@value"]),Z=c(U,"@type");if(!(g(j,1.1)&&Z.includes("@json")&&Z.length===1))if(F.length===0)T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"null @value value",level:"warning",message:"Dropping null @value value.",details:{value:U}},options:T}),U=null;else{if(!F.every(te=>o(te)||r(te))&&"@language"in U)throw new n("Invalid JSON-LD syntax; only strings may be language-tagged.","jsonld.SyntaxError",{code:"invalid language-tagged value",element:U});if(!Z.every(te=>x(te)&&!(o(te)&&te.indexOf("_:")===0)||r(te)))throw new n('Invalid JSON-LD syntax; an element containing "@value" and "@type" must have an absolute IRI for the value of "@type".',"jsonld.SyntaxError",{code:"invalid typed value",element:U})}}else if("@type"in U&&!e(U["@type"]))U["@type"]=[U["@type"]];else if("@set"in U||"@list"in U){if(H>1&&!(H===2&&"@index"in U))throw new n('Invalid JSON-LD syntax; if an element has the property "@set" or "@list", then it can have at most one other property that is "@index".',"jsonld.SyntaxError",{code:"invalid set or list object",element:U});"@set"in U&&(U=U["@set"],Q=Object.keys(U),H=Q.length)}else H===1&&"@language"in U&&(T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"object with only @language",level:"warning",message:"Dropping object with only @language.",details:{value:U}},options:T}),U=null);return t(U)&&!T.keepFreeFloatingNodes&&!ee&&(A===null||w==="@graph"||(m(j,A,"@container")||[]).includes("@graph"))&&(U=N({value:U,count:H,options:T})),U};function N({value:j,count:A,options:Y}){if(A===0||"@value"in j||"@list"in j||A===1&&"@id"in j){if(Y.eventHandler){let T,ee;A===0?(T="empty object",ee="Dropping empty object."):"@value"in j?(T="object with only @value",ee="Dropping object with only @value."):"@list"in j?(T="object with only @list",ee="Dropping object with only @list."):A===1&&"@id"in j&&(T="object with only @id",ee="Dropping object with only @id."),R({event:{type:["JsonLdEvent"],code:T,level:"warning",message:ee,details:{value:j}},options:Y})}return null}return j}async function B({activeCtx:j,activeProperty:A,expandedActiveProperty:Y,element:T,expandedParent:ee,options:C={},insideList:K,typeKey:w,typeScopedContext:z}){const Q=Object.keys(T).sort(),W=[];let ae;const U=T[w]&&f(j,e(T[w])?T[w][0]:T[w],{vocab:!0},{...C,typeExpansion:!0})==="@json";for(const H of Q){let V=T[H],F;if(H==="@context")continue;const Z=f(j,H,{vocab:!0},C);if(Z===null||!(x(Z)||y(Z))){C.eventHandler&&R({event:{type:["JsonLdEvent"],code:"invalid property",level:"warning",message:"Dropping property that did not expand into an absolute IRI or keyword.",details:{property:H,expandedProperty:Z}},options:C});continue}if(y(Z)){if(Y==="@reverse")throw new n("Invalid JSON-LD syntax; a keyword cannot be used as a @reverse property.","jsonld.SyntaxError",{code:"invalid reverse property map",value:V});if(Z in ee&&Z!=="@included"&&Z!=="@type")throw new n("Invalid JSON-LD syntax; colliding keywords detected.","jsonld.SyntaxError",{code:"colliding keywords",keyword:Z})}if(Z==="@id"){if(!o(V)){if(!C.isFrame)throw new n('Invalid JSON-LD syntax; "@id" value must a string.',"jsonld.SyntaxError",{code:"invalid @id value",value:V});if(t(V)){if(!r(V))throw new n('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:V})}else if(e(V)){if(!V.every(L=>o(L)))throw new n('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:V})}else throw new n('Invalid JSON-LD syntax; "@id" value an empty object or array of strings, if framing',"jsonld.SyntaxError",{code:"invalid @id value",value:V})}E(ee,"@id",v(V).map(L=>{if(o(L)){const G=f(j,L,{base:!0},C);return C.eventHandler&&(G===null?R(L===null?{event:{type:["JsonLdEvent"],code:"null @id value",level:"warning",message:"Null @id found.",details:{id:L}},options:C}:{event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:L}},options:C}):x(G)||R({event:{type:["JsonLdEvent"],code:"relative @id reference",level:"warning",message:"Relative @id reference found.",details:{id:L,expandedId:G}},options:C})),G}return L}),{propertyIsArray:C.isFrame});continue}if(Z==="@type"){t(V)&&(V=Object.fromEntries(Object.entries(V).map(([L,G])=>[f(z,L,{vocab:!0}),v(G).map(re=>f(z,re,{base:!0,vocab:!0},{...C,typeExpansion:!0}))]))),h(V,C.isFrame),E(ee,"@type",v(V).map(L=>{if(o(L)){const G=f(z,L,{base:!0,vocab:!0},{...C,typeExpansion:!0});return G!=="@json"&&!x(G)&&C.eventHandler&&R({event:{type:["JsonLdEvent"],code:"relative @type reference",level:"warning",message:"Relative @type reference found.",details:{type:L}},options:C}),G}return L}),{propertyIsArray:!!C.isFrame});continue}if(Z==="@included"&&g(j,1.1)){const L=v(await D.expand({activeCtx:j,activeProperty:A,element:V,options:C}));if(!L.every(G=>u(G)))throw new n("Invalid JSON-LD syntax; values of @included must expand to node objects.","jsonld.SyntaxError",{code:"invalid @included value",value:V});E(ee,"@included",L,{propertyIsArray:!0});continue}if(Z==="@graph"&&!(t(V)||e(V)))throw new n('Invalid JSON-LD syntax; "@graph" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid @graph value",value:V});if(Z==="@value"){ae=V,U&&g(j,1.1)?ee["@value"]=V:E(ee,"@value",V,{propertyIsArray:C.isFrame});continue}if(Z==="@language"){if(V===null)continue;if(!o(V)&&!C.isFrame)throw new n('Invalid JSON-LD syntax; "@language" value must be a string.',"jsonld.SyntaxError",{code:"invalid language-tagged string",value:V});V=v(V).map(L=>o(L)?L.toLowerCase():L);for(const L of V)o(L)&&!L.match(_)&&C.eventHandler&&R({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:L}},options:C});E(ee,"@language",V,{propertyIsArray:C.isFrame});continue}if(Z==="@direction"){if(!o(V)&&!C.isFrame)throw new n('Invalid JSON-LD syntax; "@direction" value must be a string.',"jsonld.SyntaxError",{code:"invalid base direction",value:V});V=v(V);for(const L of V)if(o(L)&&L!=="ltr"&&L!=="rtl")throw new n('Invalid JSON-LD syntax; "@direction" must be "ltr" or "rtl".',"jsonld.SyntaxError",{code:"invalid base direction",value:V});E(ee,"@direction",V,{propertyIsArray:C.isFrame});continue}if(Z==="@index"){if(!o(V))throw new n('Invalid JSON-LD syntax; "@index" value must be a string.',"jsonld.SyntaxError",{code:"invalid @index value",value:V});E(ee,"@index",V);continue}if(Z==="@reverse"){if(!t(V))throw new n('Invalid JSON-LD syntax; "@reverse" value must be an object.',"jsonld.SyntaxError",{code:"invalid @reverse value",value:V});if(F=await D.expand({activeCtx:j,activeProperty:"@reverse",element:V,options:C}),"@reverse"in F)for(const G in F["@reverse"])E(ee,G,F["@reverse"][G],{propertyIsArray:!0});let L=ee["@reverse"]||null;for(const G in F){if(G==="@reverse")continue;L===null&&(L=ee["@reverse"]={}),E(L,G,[],{propertyIsArray:!0});const re=F[G];for(let de=0;de<re.length;++de){const ue=re[de];if(s(ue)||a(ue))throw new n('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:F});E(L,G,ue,{propertyIsArray:!0})}}continue}if(Z==="@nest"){W.push(H);continue}let te=j;const ce=m(j,H,"@context");i(ce)||(te=await b({activeCtx:j,localCtx:ce,propagate:!0,overrideProtected:!0,options:C}));const pe=m(j,H,"@container")||[];if(pe.includes("@language")&&t(V)){const L=m(te,H,"@direction");F=M(te,V,L,C)}else if(pe.includes("@index")&&t(V)){const L=pe.includes("@graph"),G=m(te,H,"@index")||"@index",re=G!=="@index"&&f(j,G,{vocab:!0},C);F=await q({activeCtx:te,options:C,activeProperty:H,value:V,asGraph:L,indexKey:G,propertyIndex:re})}else if(pe.includes("@id")&&t(V)){const L=pe.includes("@graph");F=await q({activeCtx:te,options:C,activeProperty:H,value:V,asGraph:L,indexKey:"@id"})}else if(pe.includes("@type")&&t(V))F=await q({activeCtx:te.revertToPreviousContext(),options:C,activeProperty:H,value:V,asGraph:!1,indexKey:"@type"});else{const L=Z==="@list";if(L||Z==="@set"){let G=A;L&&Y==="@graph"&&(G=null),F=await D.expand({activeCtx:te,activeProperty:G,element:V,options:C,insideList:L})}else m(j,H,"@type")==="@json"?F={"@type":"@json","@value":V}:F=await D.expand({activeCtx:te,activeProperty:H,element:V,options:C,insideList:!1})}if(!(F===null&&Z!=="@value")){if(Z!=="@list"&&!a(F)&&pe.includes("@list")&&(F={"@list":v(F)}),pe.includes("@graph")&&!pe.some(L=>L==="@id"||L==="@index")){if(F=v(F),C.isFrame||(F=F.filter(L=>{const G=Object.keys(L).length;return N({value:L,count:G,options:C})!==null})),F.length===0)continue;F=F.map(L=>({"@graph":v(L)}))}if(te.mappings.has(H)&&te.mappings.get(H).reverse){const L=ee["@reverse"]=ee["@reverse"]||{};F=v(F);for(let G=0;G<F.length;++G){const re=F[G];if(s(re)||a(re))throw new n('Invalid JSON-LD syntax; "@reverse" value must not be a @value or an @list.',"jsonld.SyntaxError",{code:"invalid reverse property value",value:F});E(L,Z,re,{propertyIsArray:!0})}continue}E(ee,Z,F,{propertyIsArray:!0})}}if("@value"in ee&&!(ee["@type"]==="@json"&&g(j,1.1))){if((t(ae)||e(ae))&&!C.isFrame)throw new n('Invalid JSON-LD syntax; "@value" value must not be an object or an array.',"jsonld.SyntaxError",{code:"invalid value object value",value:ae})}for(const H of W){const V=e(T[H])?T[H]:[T[H]];for(const F of V){if(!t(F)||Object.keys(F).some(Z=>f(j,Z,{vocab:!0},C)==="@value"))throw new n("Invalid JSON-LD syntax; nested value must be a node object.","jsonld.SyntaxError",{code:"invalid @nest value",value:F});await B({activeCtx:j,activeProperty:A,expandedActiveProperty:Y,element:F,expandedParent:ee,options:C,insideList:K,typeScopedContext:z,typeKey:w})}}}function I({activeCtx:j,activeProperty:A,value:Y,options:T}){if(Y==null)return null;const ee=f(j,A,{vocab:!0},T);if(ee==="@id")return f(j,Y,{base:!0},T);if(ee==="@type")return f(j,Y,{vocab:!0,base:!0},{...T,typeExpansion:!0});const C=m(j,A,"@type");if((C==="@id"||ee==="@graph")&&o(Y)){const w=f(j,Y,{base:!0},T);return w===null&&Y.match(k)&&T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"reserved @id value",level:"warning",message:"Reserved @id found.",details:{id:A}},options:T}),{"@id":w}}if(C==="@vocab"&&o(Y))return{"@id":f(j,Y,{vocab:!0,base:!0},T)};if(y(ee))return Y;const K={};if(C&&!["@id","@vocab","@none"].includes(C))K["@type"]=C;else if(o(Y)){const w=m(j,A,"@language");w!==null&&(K["@language"]=w);const z=m(j,A,"@direction");z!==null&&(K["@direction"]=z)}return["boolean","number","string"].includes(typeof Y)||(Y=Y.toString()),K["@value"]=Y,K}function M(j,A,Y,T){const ee=[],C=Object.keys(A).sort();for(const K of C){const w=f(j,K,{vocab:!0},T);let z=A[K];e(z)||(z=[z]);for(const Q of z){if(Q===null)continue;if(!o(Q))throw new n("Invalid JSON-LD syntax; language map values must be strings.","jsonld.SyntaxError",{code:"invalid language map value",languageMap:A});const W={"@value":Q};w!=="@none"&&(K.match(_)||T.eventHandler&&R({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:K}},options:T}),W["@language"]=K.toLowerCase()),Y&&(W["@direction"]=Y),ee.push(W)}}return ee}async function q({activeCtx:j,options:A,activeProperty:Y,value:T,asGraph:ee,indexKey:C,propertyIndex:K}){const w=[],z=Object.keys(T).sort(),Q=C==="@type";for(let W of z){if(Q){const H=m(j,W,"@context");i(H)||(j=await b({activeCtx:j,localCtx:H,propagate:!1,options:A}))}let ae=T[W];e(ae)||(ae=[ae]),ae=await D.expand({activeCtx:j,activeProperty:Y,element:ae,options:A,insideList:!1,insideIndex:!0});let U;K?W==="@none"?U="@none":U=I({activeCtx:j,activeProperty:C,value:W,options:A}):U=f(j,W,{vocab:!0},A),C==="@id"?W=f(j,W,{base:!0},A):Q&&(W=U);for(let H of ae){if(ee&&!l(H)&&(H={"@graph":[H]}),C==="@type")U==="@none"||(H["@type"]?H["@type"]=[W].concat(H["@type"]):H["@type"]=[W]);else{if(s(H)&&!["@language","@type","@index"].includes(C))throw new n(`Invalid JSON-LD syntax; Attempt to add illegal key to value object: "${C}".`,"jsonld.SyntaxError",{code:"invalid value object",value:H});K?U!=="@none"&&E(H,K,U,{propertyIsArray:!0,prependValue:!0}):U!=="@none"&&!(C in H)&&(H[C]=W)}w.push(H)}}return w}return Xo}var Ko,dl;function Mn(){if(dl)return Ko;dl=1;const{isKeyword:n}=zt(),e=xt(),t=Ke(),r=et(),o=rt(),i={};return Ko=i,i.createMergedNodeMap=(a,s)=>{s=s||{};const l=s.issuer||new r.IdentifierIssuer("_:b"),u={"@default":{}};return i.createNodeMap(a,u,"@default",l),i.mergeNodeMaps(u)},i.createNodeMap=(a,s,l,u,f,m)=>{if(t.isArray(a)){for(const x of a)i.createNodeMap(x,s,l,u,void 0,m);return}if(!t.isObject(a)){m&&m.push(a);return}if(e.isValue(a)){if("@type"in a){let x=a["@type"];x.indexOf("_:")===0&&(a["@type"]=x=u.getId(x))}m&&m.push(a);return}else if(m&&e.isList(a)){const x=[];i.createNodeMap(a["@list"],s,l,u,f,x),m.push({"@list":x});return}if("@type"in a){const x=a["@type"];for(const _ of x)_.indexOf("_:")===0&&u.getId(_)}t.isUndefined(f)&&(f=e.isBlankNode(a)?u.getId(a["@id"]):a["@id"]),m&&m.push({"@id":f});const y=s[l],b=y[f]=y[f]||{};b["@id"]=f;const g=Object.keys(a).sort();for(let x of g){if(x==="@id")continue;if(x==="@reverse"){const k={"@id":f},E=a["@reverse"];for(const v in E){const c=E[v];for(const h of c){let R=h["@id"];e.isBlankNode(h)&&(R=u.getId(R)),i.createNodeMap(h,s,l,u,R),r.addValue(y[R],v,k,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(x==="@graph"){f in s||(s[f]={}),i.createNodeMap(a[x],s,f,u);continue}if(x==="@included"){i.createNodeMap(a[x],s,l,u);continue}if(x!=="@type"&&n(x)){if(x==="@index"&&x in b&&(a[x]!==b[x]||a[x]["@id"]!==b[x]["@id"]))throw new o("Invalid JSON-LD syntax; conflicting @index property detected.","jsonld.SyntaxError",{code:"conflicting indexes",subject:b});b[x]=a[x];continue}const _=a[x];if(x.indexOf("_:")===0&&(x=u.getId(x)),_.length===0){r.addValue(b,x,[],{propertyIsArray:!0});continue}for(let k of _)if(x==="@type"&&(k=k.indexOf("_:")===0?u.getId(k):k),e.isSubject(k)||e.isSubjectReference(k)){if("@id"in k&&!k["@id"])continue;const E=e.isBlankNode(k)?u.getId(k["@id"]):k["@id"];r.addValue(b,x,{"@id":E},{propertyIsArray:!0,allowDuplicate:!1}),i.createNodeMap(k,s,l,u,E)}else if(e.isValue(k))r.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1});else if(e.isList(k)){const E=[];i.createNodeMap(k["@list"],s,l,u,f,E),k={"@list":E},r.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1})}else i.createNodeMap(k,s,l,u,f),r.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1})}},i.mergeNodeMapGraphs=a=>{const s={};for(const l of Object.keys(a).sort())for(const u of Object.keys(a[l]).sort()){const f=a[l][u];u in s||(s[u]={"@id":u});const m=s[u];for(const y of Object.keys(f).sort())if(n(y)&&y!=="@type")m[y]=r.clone(f[y]);else for(const b of f[y])r.addValue(m,y,r.clone(b),{propertyIsArray:!0,allowDuplicate:!1})}return s},i.mergeNodeMaps=a=>{const s=a["@default"],l=Object.keys(a).sort();for(const u of l){if(u==="@default")continue;const f=a[u];let m=s[u];m?"@graph"in m||(m["@graph"]=[]):s[u]=m={"@id":u,"@graph":[]};const y=m["@graph"];for(const b of Object.keys(f).sort()){const g=f[b];e.isSubjectReference(g)||y.push(g)}}return s},Ko}var Yo,cl;function Bp(){if(cl)return Yo;cl=1;const{isSubjectReference:n}=xt(),{createMergedNodeMap:e}=Mn(),t={};return Yo=t,t.flatten=r=>{const o=e(r),i=[],a=Object.keys(o).sort();for(let s=0;s<a.length;++s){const l=o[a[s]];n(l)||i.push(l)}return i},Yo}var Zo,ul;function qp(){if(ul)return Zo;ul=1;const n=rt(),e=xt(),t=Ke(),{REGEX_BCP47:r,addValue:o}=et(),{handleEvent:i}=Kr(),{RDF_LIST:a,RDF_FIRST:s,RDF_REST:l,RDF_NIL:u,RDF_TYPE:f,RDF_JSON_LITERAL:m,XSD_BOOLEAN:y,XSD_DOUBLE:b,XSD_INTEGER:g,XSD_STRING:x}=da(),_={};Zo=_,_.fromRDF=async(E,v)=>{const{useRdfType:c=!1,useNativeTypes:h=!1,rdfDirection:R=null}=v,D={},N={"@default":D},B={};if(R){if(R==="compound-literal")throw new n("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:R});if(R!=="i18n-datatype")throw new n("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:R})}for(const q of E){const j=q.graph.termType==="DefaultGraph"?"@default":q.graph.value;j in N||(N[j]={}),j!=="@default"&&!(j in D)&&(D[j]={"@id":j});const A=N[j],Y=q.subject.value,T=q.predicate.value,ee=q.object;Y in A||(A[Y]={"@id":Y});const C=A[Y],K=ee.termType.endsWith("Node");if(K&&!(ee.value in A)&&(A[ee.value]={"@id":ee.value}),T===f&&!c&&K){o(C,"@type",ee.value,{propertyIsArray:!0});continue}const w=k(ee,h,R,v);if(o(C,T,w,{propertyIsArray:!0}),K)if(ee.value===u){const z=A[ee.value];"usages"in z||(z.usages=[]),z.usages.push({node:C,property:T,value:w})}else ee.value in B?B[ee.value]=!1:B[ee.value]={node:C,property:T,value:w}}for(const q in N){const j=N[q];if(!(u in j))continue;const A=j[u];if(A.usages){for(let Y of A.usages){let T=Y.node,ee=Y.property,C=Y.value;const K=[],w=[];let z=Object.keys(T).length;for(;ee===l&&t.isObject(B[T["@id"]])&&t.isArray(T[s])&&T[s].length===1&&t.isArray(T[l])&&T[l].length===1&&(z===3||z===4&&t.isArray(T["@type"])&&T["@type"].length===1&&T["@type"][0]===a)&&(K.push(T[s][0]),w.push(T["@id"]),Y=B[T["@id"]],T=Y.node,ee=Y.property,C=Y.value,z=Object.keys(T).length,!!e.isBlankNode(T)););delete C["@id"],C["@list"]=K.reverse();for(const Q of w)delete j[Q]}delete A.usages}}const I=[],M=Object.keys(D).sort();for(const q of M){const j=D[q];if(q in N){const A=j["@graph"]=[],Y=N[q],T=Object.keys(Y).sort();for(const ee of T){const C=Y[ee];e.isSubjectReference(C)||A.push(C)}}e.isSubjectReference(j)||I.push(j)}return I};function k(E,v,c,h){if(E.termType.endsWith("Node"))return{"@id":E.value};const R={"@value":E.value};if(E.language)E.language.match(r)||h.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:E.language}},options:h}),R["@language"]=E.language;else{let D=E.datatype.value;if(D||(D=x),D===m){D="@json";try{R["@value"]=JSON.parse(R["@value"])}catch(N){throw new n("JSON literal could not be parsed.","jsonld.InvalidJsonLiteral",{code:"invalid JSON literal",value:R["@value"],cause:N})}}if(v){if(D===y)R["@value"]==="true"?R["@value"]=!0:R["@value"]==="false"&&(R["@value"]=!1);else if(t.isNumeric(R["@value"]))if(D===g){const N=parseInt(R["@value"],10);N.toFixed(0)===R["@value"]&&(R["@value"]=N)}else D===b&&(R["@value"]=parseFloat(R["@value"]));[y,g,b,x].includes(D)||(R["@type"]=D)}else if(c==="i18n-datatype"&&D.startsWith("https://www.w3.org/ns/i18n#")){const[,N,B]=D.split(/[#_]/);N.length>0&&(R["@language"]=N,N.match(r)||h.eventHandler&&i({event:{type:["JsonLdEvent"],code:"invalid @language value",level:"warning",message:"@language value must be valid BCP47.",details:{language:N}},options:h})),R["@direction"]=B}else D!==x&&(R["@type"]=D)}return R}return Zo}var ei,pl;function Fp(){return pl||(pl=1,ei=function n(e){return e===null||typeof e!="object"||e.toJSON!=null?JSON.stringify(e):Array.isArray(e)?"["+e.reduce((t,r,o)=>{const i=o===0?"":",",a=r===void 0||typeof r=="symbol"?null:r;return t+i+n(a)},"")+"]":"{"+Object.keys(e).sort().reduce((t,r,o)=>{if(e[r]===void 0||typeof e[r]=="symbol")return t;const i=t.length===0?"":",";return t+i+n(r)+":"+n(e[r])},"")+"}"}),ei}var ti,fl;function zp(){if(fl)return ti;fl=1;const{createNodeMap:n}=Mn(),{isKeyword:e}=zt(),t=xt(),r=Fp(),o=rt(),i=Ke(),a=et(),{handleEvent:s}=Kr(),{RDF_FIRST:l,RDF_REST:u,RDF_NIL:f,RDF_TYPE:m,RDF_JSON_LITERAL:y,RDF_LANGSTRING:b,XSD_BOOLEAN:g,XSD_DOUBLE:x,XSD_INTEGER:_,XSD_STRING:k}=da(),{isAbsolute:E}=jt(),v={};ti=v,v.toRDF=(D,N)=>{const B=new a.IdentifierIssuer("_:b"),I={"@default":{}};n(D,I,"@default",B);const M=[],q=Object.keys(I).sort();for(const j of q){let A;if(j==="@default")A={termType:"DefaultGraph",value:""};else if(E(j))j.startsWith("_:")?A={termType:"BlankNode"}:A={termType:"NamedNode"},A.value=j;else{N.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative graph reference",level:"warning",message:"Relative graph reference found.",details:{graph:j}},options:N});continue}c(M,I[j],A,B,N)}return M};function c(D,N,B,I,M){const q=Object.keys(N).sort();for(const j of q){const A=N[j],Y=Object.keys(A).sort();for(let T of Y){const ee=A[T];if(T==="@type")T=m;else if(e(T))continue;for(const C of ee){const K={termType:j.startsWith("_:")?"BlankNode":"NamedNode",value:j};if(!E(j)){M.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative subject reference",level:"warning",message:"Relative subject reference found.",details:{subject:j}},options:M});continue}const w={termType:T.startsWith("_:")?"BlankNode":"NamedNode",value:T};if(!E(T)){M.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative predicate reference",level:"warning",message:"Relative predicate reference found.",details:{predicate:T}},options:M});continue}if(w.termType==="BlankNode"&&!M.produceGeneralizedRdf){M.eventHandler&&s({event:{type:["JsonLdEvent"],code:"blank node predicate",level:"warning",message:"Dropping blank node predicate.",details:{property:I.getOldIds().find(Q=>I.getId(Q)===T)}},options:M});continue}const z=R(C,I,D,B,M.rdfDirection,M);z&&D.push({subject:K,predicate:w,object:z,graph:B})}}}}function h(D,N,B,I,M,q){const j={termType:"NamedNode",value:l},A={termType:"NamedNode",value:u},Y={termType:"NamedNode",value:f},T=D.pop(),ee=T?{termType:"BlankNode",value:N.getId()}:Y;let C=ee;for(const K of D){const w=R(K,N,B,I,M,q),z={termType:"BlankNode",value:N.getId()};B.push({subject:C,predicate:j,object:w,graph:I}),B.push({subject:C,predicate:A,object:z,graph:I}),C=z}if(T){const K=R(T,N,B,I,M,q);B.push({subject:C,predicate:j,object:K,graph:I}),B.push({subject:C,predicate:A,object:Y,graph:I})}return ee}function R(D,N,B,I,M,q){const j={};if(t.isValue(D)){j.termType="Literal",j.value=void 0,j.datatype={termType:"NamedNode"};let A=D["@value"];const Y=D["@type"]||null;if(Y==="@json")j.value=r(A),j.datatype.value=y;else if(i.isBoolean(A))j.value=A.toString(),j.datatype.value=Y||g;else if(i.isDouble(A)||Y===x)i.isDouble(A)||(A=parseFloat(A)),j.value=A.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),j.datatype.value=Y||x;else if(i.isNumber(A))j.value=A.toFixed(0),j.datatype.value=Y||_;else if("@direction"in D&&M==="i18n-datatype"){const T=(D["@language"]||"").toLowerCase(),ee=D["@direction"],C=`https://www.w3.org/ns/i18n#${T}_${ee}`;j.datatype.value=C,j.value=A}else{if("@direction"in D&&M==="compound-literal")throw new o("Unsupported rdfDirection value.","jsonld.InvalidRdfDirection",{value:M});if("@direction"in D&&M)throw new o("Unknown rdfDirection value.","jsonld.InvalidRdfDirection",{value:M});"@language"in D?("@direction"in D&&!M&&q.eventHandler&&s({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:j.value}},options:q}),j.value=A,j.datatype.value=Y||b,j.language=D["@language"]):("@direction"in D&&!M&&q.eventHandler&&s({event:{type:["JsonLdEvent"],code:"rdfDirection not set",level:"warning",message:"rdfDirection not set for @direction.",details:{object:j.value}},options:q}),j.value=A,j.datatype.value=Y||k)}}else if(t.isList(D)){const A=h(D["@list"],N,B,I,M,q);j.termType=A.termType,j.value=A.value}else{const A=i.isObject(D)?D["@id"]:D;j.termType=A.startsWith("_:")?"BlankNode":"NamedNode",j.value=A}return j.termType==="NamedNode"&&!E(j.value)?(q.eventHandler&&s({event:{type:["JsonLdEvent"],code:"relative object reference",level:"warning",message:"Relative object reference found.",details:{object:j.value}},options:q}),null):j}return ti}var ri,hl;function Up(){if(hl)return ri;hl=1;const{isKeyword:n}=zt(),e=xt(),t=Ke(),r=et(),o=jt(),i=rt(),{createNodeMap:a,mergeNodeMapGraphs:s}=Mn(),l={};ri=l,l.frameMergedOrDefault=(c,h,R)=>{const D={options:R,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},N=new r.IdentifierIssuer("_:b");a(c,D.graphMap,"@default",N),R.merged&&(D.graphMap["@merged"]=s(D.graphMap),D.graph="@merged"),D.subjects=D.graphMap[D.graph];const B=[];l.frame(D,Object.keys(D.subjects).sort(),h,B),R.pruneBlankNodeIdentifiers&&(R.bnodesToClear=Object.keys(D.bnodeMap).filter(I=>D.bnodeMap[I].length===1));// remove @preserve from results
299
+ return R.link={},_(B,R)},l.frame=(c,h,R,D,N=null)=>{y(R),R=R[0];const B=c.options,I={embed:m(R,B,"embed"),explicit:m(R,B,"explicit"),requireAll:m(R,B,"requireAll")};c.link.hasOwnProperty(c.graph)||(c.link[c.graph]={});const M=c.link[c.graph],q=b(c,h,R,I),j=Object.keys(q).sort();for(const A of j){const Y=q[A];if(N===null?c.uniqueEmbeds={[c.graph]:{}}:c.uniqueEmbeds[c.graph]=c.uniqueEmbeds[c.graph]||{},I.embed==="@link"&&A in M){k(D,N,M[A]);continue}const T={"@id":A};if(A.indexOf("_:")===0&&r.addValue(c.bnodeMap,A,T,{propertyIsArray:!0}),M[A]=T,(I.embed==="@first"||I.embed==="@last")&&c.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:R});if(!(!c.embedded&&c.uniqueEmbeds[c.graph].hasOwnProperty(A))){if(c.embedded&&(I.embed==="@never"||f(Y,c.graph,c.subjectStack))){k(D,N,T);continue}if(c.embedded&&(I.embed=="@first"||I.embed=="@once")&&c.uniqueEmbeds[c.graph].hasOwnProperty(A)){k(D,N,T);continue}if(I.embed==="@last"&&A in c.uniqueEmbeds[c.graph]&&x(c,A),c.uniqueEmbeds[c.graph][A]={parent:D,property:N},c.subjectStack.push({subject:Y,graph:c.graph}),A in c.graphMap){let ee=!1,C=null;"@graph"in R?(C=R["@graph"][0],ee=!(A==="@merged"||A==="@default"),t.isObject(C)||(C={})):(ee=c.graph!=="@merged",C={}),ee&&l.frame({...c,graph:A,embedded:!1},Object.keys(c.graphMap[A]).sort(),[C],T,"@graph")}"@included"in R&&l.frame({...c,embedded:!1},h,R["@included"],T,"@included");for(const ee of Object.keys(Y).sort()){if(n(ee)){if(T[ee]=r.clone(Y[ee]),ee==="@type")for(const C of Y["@type"])C.indexOf("_:")===0&&r.addValue(c.bnodeMap,C,T,{propertyIsArray:!0});continue}if(!(I.explicit&&!(ee in R)))for(const C of Y[ee]){const K=ee in R?R[ee]:u(I);if(e.isList(C)){const w=R[ee]&&R[ee][0]&&R[ee][0]["@list"]?R[ee][0]["@list"]:u(I),z={"@list":[]};k(T,ee,z);const Q=C["@list"];for(const W of Q)e.isSubjectReference(W)?l.frame({...c,embedded:!0},[W["@id"]],w,z,"@list"):k(z,"@list",r.clone(W))}else e.isSubjectReference(C)?l.frame({...c,embedded:!0},[C["@id"]],K,T,ee):v(K[0],C)&&k(T,ee,r.clone(C))}}for(const ee of Object.keys(R).sort()){if(ee==="@type"){if(!t.isObject(R[ee][0])||!("@default"in R[ee][0]))continue}else if(n(ee))continue;const C=R[ee][0]||{};if(!m(C,B,"omitDefault")&&!(ee in T)){let w="@null";"@default"in C&&(w=r.clone(C["@default"])),t.isArray(w)||(w=[w]),T[ee]=[{"@preserve":w}]}}for(const ee of Object.keys(R["@reverse"]||{}).sort()){const C=R["@reverse"][ee];for(const K of Object.keys(c.subjects))r.getValues(c.subjects[K],ee).some(z=>z["@id"]===A)&&(T["@reverse"]=T["@reverse"]||{},r.addValue(T["@reverse"],ee,[],{propertyIsArray:!0}),l.frame({...c,embedded:!0},[K],C,T["@reverse"][ee],N))}k(D,N,T),c.subjectStack.pop()}}},l.cleanupNull=(c,h)=>{if(t.isArray(c))return c.map(D=>l.cleanupNull(D,h)).filter(D=>D);if(c==="@null")return null;if(t.isObject(c)){if("@id"in c){const R=c["@id"];if(h.link.hasOwnProperty(R)){const D=h.link[R].indexOf(c);if(D!==-1)return h.link[R][D];h.link[R].push(c)}else h.link[R]=[c]}for(const R in c)c[R]=l.cleanupNull(c[R],h)}return c};function u(c){const h={};for(const R in c)c[R]!==void 0&&(h["@"+R]=[c[R]]);return[h]}function f(c,h,R){for(let D=R.length-1;D>=0;--D){const N=R[D];if(N.graph===h&&N.subject["@id"]===c["@id"])return!0}return!1}function m(c,h,R){const D="@"+R;let N=D in c?c[D][0]:h[R];if(R==="embed"){if(N===!0)N="@once";else if(N===!1)N="@never";else if(N!=="@always"&&N!=="@never"&&N!=="@link"&&N!=="@first"&&N!=="@last"&&N!=="@once")throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:c})}return N}function y(c){if(!t.isArray(c)||c.length!==1||!t.isObject(c[0]))throw new i("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:c});if("@id"in c[0]){for(const h of r.asArray(c[0]["@id"]))if(!(t.isObject(h)||o.isAbsolute(h))||t.isString(h)&&h.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @id in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:c})}if("@type"in c[0]){for(const h of r.asArray(c[0]["@type"]))if(!(t.isObject(h)||o.isAbsolute(h)||h==="@json")||t.isString(h)&&h.indexOf("_:")===0)throw new i("Invalid JSON-LD syntax; invalid @type in frame.","jsonld.SyntaxError",{code:"invalid frame",frame:c})}}function b(c,h,R,D){const N={};for(const B of h){const I=c.graphMap[c.graph][B];g(c,I,R,D)&&(N[B]=I)}return N}function g(c,h,R,D){let N=!0,B=!1;for(const I in R){let M=!1;const q=r.getValues(h,I),j=r.getValues(R,I).length===0;if(I==="@id"){if(t.isEmptyObject(R["@id"][0]||{})?M=!0:R["@id"].length>=0&&(M=R["@id"].includes(q[0])),!D.requireAll)return M}else if(I==="@type"){if(N=!1,j){if(q.length>0)return!1;M=!0}else if(R["@type"].length===1&&t.isEmptyObject(R["@type"][0]))M=q.length>0;else for(const A of R["@type"])t.isObject(A)&&"@default"in A?M=!0:M=M||q.some(Y=>Y===A);if(!D.requireAll)return M}else{if(n(I))continue;{const A=r.getValues(R,I)[0];let Y=!1;if(A&&(y([A]),Y="@default"in A),N=!1,q.length===0&&Y)continue;if(q.length>0&&j)return!1;if(A===void 0){if(q.length>0)return!1;M=!0}else if(e.isList(A)){const T=A["@list"][0];if(e.isList(q[0])){const ee=q[0]["@list"];e.isValue(T)?M=ee.some(C=>v(T,C)):(e.isSubject(T)||e.isSubjectReference(T))&&(M=ee.some(C=>E(c,T,C,D)))}}else e.isValue(A)?M=q.some(T=>v(A,T)):e.isSubjectReference(A)?M=q.some(T=>E(c,A,T,D)):t.isObject(A)?M=q.length>0:M=!1}}if(!M&&D.requireAll)return!1;B=B||M}return N||B}function x(c,h){const R=c.uniqueEmbeds[c.graph],D=R[h],N=D.parent,B=D.property,I={"@id":h};if(t.isArray(N)){for(let q=0;q<N.length;++q)if(r.compareValues(N[q],I)){N[q]=I;break}}else{const q=t.isArray(N[B]);r.removeValue(N,B,I,{propertyIsArray:q}),r.addValue(N,B,I,{propertyIsArray:q})}const M=q=>{const j=Object.keys(R);for(const A of j)A in R&&t.isObject(R[A].parent)&&R[A].parent["@id"]===q&&(delete R[A],M(A))};M(h)}/**
297
300
  * Removes the @preserve keywords from expanded result of framing.
298
301
  *
299
302
  * @param input the framed, framed output.
@@ -301,7 +304,7 @@ return R.link={},_(B,R)},l.frame=(c,h,R,D,N=null)=>{y(R),R=R[0];const B=c.option
301
304
  *
302
305
  * @return the resulting output.
303
306
  */function _(c,h){if(t.isArray(c))return c.map(R=>_(R,h));if(t.isObject(c)){// remove @preserve
304
- if("@preserve"in c)return c["@preserve"][0];if(e.isValue(c))return c;if(e.isList(c))return c["@list"]=_(c["@list"],h),c;if("@id"in c){const R=c["@id"];if(h.link.hasOwnProperty(R)){const D=h.link[R].indexOf(c);if(D!==-1)return h.link[R][D];h.link[R].push(c)}else h.link[R]=[c]}for(const R in c){if(R==="@id"&&h.bnodesToClear.includes(c[R])){delete c["@id"];continue}c[R]=_(c[R],h)}}return c}function k(c,h,R){t.isObject(c)?n.addValue(c,h,R,{propertyIsArray:!0}):c.push(R)}function E(c,h,R,D){if(!("@id"in R))return!1;const N=c.subjects[R["@id"]];return N&&g(c,N,h,D)}function v(c,h){const R=h["@value"],D=h["@type"],N=h["@language"],B=c["@value"]?t.isArray(c["@value"])?c["@value"]:[c["@value"]]:[],I=c["@type"]?t.isArray(c["@type"])?c["@type"]:[c["@type"]]:[],M=c["@language"]?t.isArray(c["@language"])?c["@language"]:[c["@language"]]:[];return B.length===0&&I.length===0&&M.length===0?!0:!(!(B.includes(R)||t.isEmptyObject(B[0]))||!(!D&&I.length===0||I.includes(D)||D&&t.isEmptyObject(I[0]))||!(!N&&M.length===0||M.includes(N)||N&&t.isEmptyObject(M[0])))}return ri}var ni,hl;function qp(){if(hl)return ni;hl=1;const r=rt(),{isArray:e,isObject:t,isString:n,isUndefined:o}=Ke(),{isList:i,isValue:a,isGraph:s,isSimpleGraph:l,isSubjectReference:u}=xt(),{expandIri:f,getContextValue:m,isKeyword:y,process:b,processingMode:g}=Ft(),{removeBase:x,prependBase:_}=jt(),{REGEX_KEYWORD:k,addValue:E,asArray:v,compareShortestLeast:c}=et(),h={};ni=h,h.compact=async({activeCtx:N,activeProperty:B=null,element:I,options:M={}})=>{if(e(I)){let j=[];for(let A=0;A<I.length;++A){const Y=await h.compact({activeCtx:N,activeProperty:B,element:I[A],options:M});Y!==null&&j.push(Y)}return M.compactArrays&&j.length===1&&(m(N,B,"@container")||[]).length===0&&(j=j[0]),j}const q=m(N,B,"@context");if(o(q)||(N=await b({activeCtx:N,localCtx:q,propagate:!0,overrideProtected:!0,options:M})),t(I)){if(M.link&&"@id"in I&&M.link.hasOwnProperty(I["@id"])){const w=M.link[I["@id"]];for(let z=0;z<w.length;++z)if(w[z].expanded===I)return w[z].compacted}if(a(I)||u(I)){const w=h.compactValue({activeCtx:N,activeProperty:B,value:I,options:M});return M.link&&u(I)&&(M.link.hasOwnProperty(I["@id"])||(M.link[I["@id"]]=[]),M.link[I["@id"]].push({expanded:I,compacted:w})),w}if(i(I)&&(m(N,B,"@container")||[]).includes("@list"))return h.compact({activeCtx:N,activeProperty:B,element:I["@list"],options:M});const j=B==="@reverse",A={},Y=N;!a(I)&&!u(I)&&(N=N.revertToPreviousContext());const T=m(Y,B,"@context");o(T)||(N=await b({activeCtx:N,localCtx:T,propagate:!0,overrideProtected:!0,options:M})),M.link&&"@id"in I&&(M.link.hasOwnProperty(I["@id"])||(M.link[I["@id"]]=[]),M.link[I["@id"]].push({expanded:I,compacted:A}));let ee=I["@type"]||[];ee.length>1&&(ee=Array.from(ee).sort());const C=N;for(const w of ee){const z=h.compactIri({activeCtx:C,iri:w,relativeTo:{vocab:!0}}),Q=m(Y,z,"@context");o(Q)||(N=await b({activeCtx:N,localCtx:Q,options:M,propagate:!1}))}const K=Object.keys(I).sort();for(const w of K){const z=I[w];if(w==="@id"){let Q=v(z).map(ae=>h.compactIri({activeCtx:N,iri:ae,relativeTo:{vocab:!1},base:M.base}));Q.length===1&&(Q=Q[0]);const W=h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}});A[W]=Q;continue}if(w==="@type"){let Q=v(z).map(V=>h.compactIri({activeCtx:Y,iri:V,relativeTo:{vocab:!0}}));Q.length===1&&(Q=Q[0]);const W=h.compactIri({activeCtx:N,iri:"@type",relativeTo:{vocab:!0}}),H=(m(N,W,"@container")||[]).includes("@set")&&g(N,1.1)||e(Q)&&z.length===0;E(A,W,Q,{propertyIsArray:H});continue}if(w==="@reverse"){const Q=await h.compact({activeCtx:N,activeProperty:"@reverse",element:z,options:M});for(const W in Q)if(N.mappings.has(W)&&N.mappings.get(W).reverse){const ae=Q[W],H=(m(N,W,"@container")||[]).includes("@set")||!M.compactArrays;E(A,W,ae,{propertyIsArray:H}),delete Q[W]}if(Object.keys(Q).length>0){const W=h.compactIri({activeCtx:N,iri:w,relativeTo:{vocab:!0}});E(A,W,Q)}continue}if(w==="@preserve"){const Q=await h.compact({activeCtx:N,activeProperty:B,element:z,options:M});e(Q)&&Q.length===0||E(A,w,Q);continue}if(w==="@index"){if((m(N,B,"@container")||[]).includes("@index"))continue;const W=h.compactIri({activeCtx:N,iri:w,relativeTo:{vocab:!0}});E(A,W,z);continue}if(w!=="@graph"&&w!=="@list"&&w!=="@included"&&y(w)){const Q=h.compactIri({activeCtx:N,iri:w,relativeTo:{vocab:!0}});E(A,Q,z);continue}if(!e(z))throw new r("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(z.length===0){const Q=h.compactIri({activeCtx:N,iri:w,value:z,relativeTo:{vocab:!0},reverse:j}),W=N.mappings.has(Q)?N.mappings.get(Q)["@nest"]:null;let ae=A;W&&(D(N,W,M),t(A[W])||(A[W]={}),ae=A[W]),E(ae,Q,z,{propertyIsArray:!0})}for(const Q of z){const W=h.compactIri({activeCtx:N,iri:w,value:Q,relativeTo:{vocab:!0},reverse:j}),ae=N.mappings.has(W)?N.mappings.get(W)["@nest"]:null;let U=A;ae&&(D(N,ae,M),t(A[ae])||(A[ae]={}),U=A[ae]);const H=m(N,W,"@container")||[],V=s(Q),F=i(Q);let Z;F?Z=Q["@list"]:V&&(Z=Q["@graph"]);let te=await h.compact({activeCtx:N,activeProperty:W,element:F||V?Z:Q,options:M});if(F)if(e(te)||(te=[te]),!H.includes("@list"))te={[h.compactIri({activeCtx:N,iri:"@list",relativeTo:{vocab:!0}})]:te},"@index"in Q&&(te[h.compactIri({activeCtx:N,iri:"@index",relativeTo:{vocab:!0}})]=Q["@index"]);else{E(U,W,te,{valueIsArray:!0,allowDuplicate:!0});continue}if(V)if(H.includes("@graph")&&(H.includes("@id")||H.includes("@index")&&l(Q))){let ce;U.hasOwnProperty(W)?ce=U[W]:U[W]=ce={};const pe=(H.includes("@id")?Q["@id"]:Q["@index"])||h.compactIri({activeCtx:N,iri:"@none",relativeTo:{vocab:!0}});E(ce,pe,te,{propertyIsArray:!M.compactArrays||H.includes("@set")})}else H.includes("@graph")&&l(Q)?(e(te)&&te.length>1&&(te={"@included":te}),E(U,W,te,{propertyIsArray:!M.compactArrays||H.includes("@set")})):(e(te)&&te.length===1&&M.compactArrays&&(te=te[0]),te={[h.compactIri({activeCtx:N,iri:"@graph",relativeTo:{vocab:!0}})]:te},"@id"in Q&&(te[h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}})]=Q["@id"]),"@index"in Q&&(te[h.compactIri({activeCtx:N,iri:"@index",relativeTo:{vocab:!0}})]=Q["@index"]),E(U,W,te,{propertyIsArray:!M.compactArrays||H.includes("@set")}));else if(H.includes("@language")||H.includes("@index")||H.includes("@id")||H.includes("@type")){let ce;U.hasOwnProperty(W)?ce=U[W]:U[W]=ce={};let pe;if(H.includes("@language"))a(te)&&(te=te["@value"]),pe=Q["@language"];else if(H.includes("@index")){const L=m(N,W,"@index")||"@index",G=h.compactIri({activeCtx:N,iri:L,relativeTo:{vocab:!0}});if(L==="@index")pe=Q["@index"],delete te[G];else{let re;if([pe,...re]=v(te[L]||[]),!n(pe))pe=null;else switch(re.length){case 0:delete te[L];break;case 1:te[L]=re[0];break;default:te[L]=re;break}}}else if(H.includes("@id")){const L=h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}});pe=te[L],delete te[L]}else if(H.includes("@type")){const L=h.compactIri({activeCtx:N,iri:"@type",relativeTo:{vocab:!0}});let G;switch([pe,...G]=v(te[L]||[]),G.length){case 0:delete te[L];break;case 1:te[L]=G[0];break;default:te[L]=G;break}Object.keys(te).length===1&&"@id"in Q&&(te=await h.compact({activeCtx:N,activeProperty:W,element:{"@id":Q["@id"]},options:M}))}pe||(pe=h.compactIri({activeCtx:N,iri:"@none",relativeTo:{vocab:!0}})),E(ce,pe,te,{propertyIsArray:H.includes("@set")})}else{const ce=!M.compactArrays||H.includes("@set")||H.includes("@list")||e(te)&&te.length===0||w==="@list"||w==="@graph";E(U,W,te,{propertyIsArray:ce})}}}return A}return I},h.compactIri=({activeCtx:N,iri:B,value:I=null,relativeTo:M={vocab:!1},reverse:q=!1,base:j=null})=>{if(B===null)return B;N.isPropertyTermScoped&&N.previousContext&&(N=N.previousContext);const A=N.getInverse();if(y(B)&&B in A&&"@none"in A[B]&&"@type"in A[B]["@none"]&&"@none"in A[B]["@none"]["@type"])return A[B]["@none"]["@type"]["@none"];if(M.vocab&&B in A){const K=N["@language"]||"@none",w=[];t(I)&&"@index"in I&&!("@graph"in I)&&w.push("@index","@index@set"),t(I)&&"@preserve"in I&&(I=I["@preserve"][0]),s(I)?("@index"in I&&w.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in I&&w.push("@graph@id","@graph@id@set"),w.push("@graph","@graph@set","@set"),"@index"in I||w.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in I||w.push("@graph@id","@graph@id@set")):t(I)&&!a(I)&&w.push("@id","@id@set","@type","@set@type");let z="@language",Q="@null";if(q)z="@type",Q="@reverse",w.push("@set");else if(i(I)){"@index"in I||w.push("@list");const ae=I["@list"];if(ae.length===0)z="@any",Q="@none";else{let U=ae.length===0?K:null,H=null;for(let V=0;V<ae.length;++V){const F=ae[V];let Z="@none",te="@none";if(a(F))if("@direction"in F){const ce=(F["@language"]||"").toLowerCase(),pe=F["@direction"];Z=`${ce}_${pe}`}else"@language"in F?Z=F["@language"].toLowerCase():"@type"in F?te=F["@type"]:Z="@null";else te="@id";if(U===null?U=Z:Z!==U&&a(F)&&(U="@none"),H===null?H=te:te!==H&&(H="@none"),U==="@none"&&H==="@none")break}U=U||"@none",H=H||"@none",H!=="@none"?(z="@type",Q=H):Q=U}}else{if(a(I))if("@language"in I&&!("@index"in I)){w.push("@language","@language@set"),Q=I["@language"];const ae=I["@direction"];ae&&(Q=`${Q}_${ae}`)}else"@direction"in I&&!("@index"in I)?Q=`_${I["@direction"]}`:"@type"in I&&(z="@type",Q=I["@type"]);else z="@type",Q="@id";w.push("@set")}w.push("@none"),t(I)&&!("@index"in I)&&w.push("@index","@index@set"),a(I)&&Object.keys(I).length===1&&w.push("@language","@language@set");const W=R(N,B,I,w,z,Q);if(W!==null)return W}if(M.vocab&&"@vocab"in N){const K=N["@vocab"];if(B.indexOf(K)===0&&B!==K){const w=B.substr(K.length);if(!N.mappings.has(w))return w}}let Y=null;const T=[];let ee=N.fastCurieMap;const C=B.length-1;for(let K=0;K<C&&B[K]in ee;++K)ee=ee[B[K]],""in ee&&T.push(ee[""][0]);for(let K=T.length-1;K>=0;--K){const w=T[K],z=w.terms;for(const Q of z){const W=Q+":"+B.substr(w.iri.length);N.mappings.get(Q)._prefix&&(!N.mappings.has(W)||I===null&&N.mappings.get(W)["@id"]===B)&&(Y===null||c(W,Y)<0)&&(Y=W)}}if(Y!==null)return Y;for(const[K,w]of N.mappings)if(w&&w._prefix&&B.startsWith(K+":"))throw new r(`Absolute IRI "${B}" confused with prefix "${K}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:N});if(!M.vocab)if("@base"in N)if(N["@base"]){const K=x(_(j,N["@base"]),B);return k.test(K)?`./${K}`:K}else return B;else return x(j,B);return B},h.compactValue=({activeCtx:N,activeProperty:B,value:I,options:M})=>{if(a(I)){const Y=m(N,B,"@type"),T=m(N,B,"@language"),ee=m(N,B,"@direction"),C=m(N,B,"@container")||[],K="@index"in I&&!C.includes("@index");if(!K&&Y!=="@none"&&(I["@type"]===Y||"@language"in I&&I["@language"]===T&&"@direction"in I&&I["@direction"]===ee||"@language"in I&&I["@language"]===T||"@direction"in I&&I["@direction"]===ee))return I["@value"];const w=Object.keys(I).length,z=w===1||w===2&&"@index"in I&&!K,Q="@language"in N,W=n(I["@value"]),ae=N.mappings.has(B)&&N.mappings.get(B)["@language"]===null;if(z&&Y!=="@none"&&(!Q||!W||ae))return I["@value"];const U={};return K&&(U[h.compactIri({activeCtx:N,iri:"@index",relativeTo:{vocab:!0}})]=I["@index"]),"@type"in I?U[h.compactIri({activeCtx:N,iri:"@type",relativeTo:{vocab:!0}})]=h.compactIri({activeCtx:N,iri:I["@type"],relativeTo:{vocab:!0}}):"@language"in I&&(U[h.compactIri({activeCtx:N,iri:"@language",relativeTo:{vocab:!0}})]=I["@language"]),"@direction"in I&&(U[h.compactIri({activeCtx:N,iri:"@direction",relativeTo:{vocab:!0}})]=I["@direction"]),U[h.compactIri({activeCtx:N,iri:"@value",relativeTo:{vocab:!0}})]=I["@value"],U}const q=f(N,B,{vocab:!0},M),j=m(N,B,"@type"),A=h.compactIri({activeCtx:N,iri:I["@id"],relativeTo:{vocab:j==="@vocab"},base:M.base});return j==="@id"||j==="@vocab"||q==="@graph"?A:{[h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}})]:A}};function R(N,B,I,M,q,j){j===null&&(j="@null");const A=[];if((j==="@id"||j==="@reverse")&&t(I)&&"@id"in I){j==="@reverse"&&A.push("@reverse");const T=h.compactIri({activeCtx:N,iri:I["@id"],relativeTo:{vocab:!0}});N.mappings.has(T)&&N.mappings.get(T)&&N.mappings.get(T)["@id"]===I["@id"]?A.push.apply(A,["@vocab","@id"]):A.push.apply(A,["@id","@vocab"])}else{A.push(j);const T=A.find(ee=>ee.includes("_"));T&&A.push(T.replace(/^[^_]+_/,"_"))}A.push("@none");const Y=N.inverse[B];for(const T of M){if(!(T in Y))continue;const ee=Y[T][q];for(const C of A)if(C in ee)return ee[C]}return null}function D(N,B,I){if(f(N,B,{vocab:!0},I)!=="@nest")throw new r("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}return ni}var oi,bl;function Fp(){return bl||(bl=1,oi=r=>{class e{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(e,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(e.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:e}),e.compact=function(t,n){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):r.compact(t,n)},e.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):r.expand(t)},e.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):r.flatten(t)},e}),oi}/**
307
+ if("@preserve"in c)return c["@preserve"][0];if(e.isValue(c))return c;if(e.isList(c))return c["@list"]=_(c["@list"],h),c;if("@id"in c){const R=c["@id"];if(h.link.hasOwnProperty(R)){const D=h.link[R].indexOf(c);if(D!==-1)return h.link[R][D];h.link[R].push(c)}else h.link[R]=[c]}for(const R in c){if(R==="@id"&&h.bnodesToClear.includes(c[R])){delete c["@id"];continue}c[R]=_(c[R],h)}}return c}function k(c,h,R){t.isObject(c)?r.addValue(c,h,R,{propertyIsArray:!0}):c.push(R)}function E(c,h,R,D){if(!("@id"in R))return!1;const N=c.subjects[R["@id"]];return N&&g(c,N,h,D)}function v(c,h){const R=h["@value"],D=h["@type"],N=h["@language"],B=c["@value"]?t.isArray(c["@value"])?c["@value"]:[c["@value"]]:[],I=c["@type"]?t.isArray(c["@type"])?c["@type"]:[c["@type"]]:[],M=c["@language"]?t.isArray(c["@language"])?c["@language"]:[c["@language"]]:[];return B.length===0&&I.length===0&&M.length===0?!0:!(!(B.includes(R)||t.isEmptyObject(B[0]))||!(!D&&I.length===0||I.includes(D)||D&&t.isEmptyObject(I[0]))||!(!N&&M.length===0||M.includes(N)||N&&t.isEmptyObject(M[0])))}return ri}var ni,bl;function Hp(){if(bl)return ni;bl=1;const n=rt(),{isArray:e,isObject:t,isString:r,isUndefined:o}=Ke(),{isList:i,isValue:a,isGraph:s,isSimpleGraph:l,isSubjectReference:u}=xt(),{expandIri:f,getContextValue:m,isKeyword:y,process:b,processingMode:g}=zt(),{removeBase:x,prependBase:_}=jt(),{REGEX_KEYWORD:k,addValue:E,asArray:v,compareShortestLeast:c}=et(),h={};ni=h,h.compact=async({activeCtx:N,activeProperty:B=null,element:I,options:M={}})=>{if(e(I)){let j=[];for(let A=0;A<I.length;++A){const Y=await h.compact({activeCtx:N,activeProperty:B,element:I[A],options:M});Y!==null&&j.push(Y)}return M.compactArrays&&j.length===1&&(m(N,B,"@container")||[]).length===0&&(j=j[0]),j}const q=m(N,B,"@context");if(o(q)||(N=await b({activeCtx:N,localCtx:q,propagate:!0,overrideProtected:!0,options:M})),t(I)){if(M.link&&"@id"in I&&M.link.hasOwnProperty(I["@id"])){const w=M.link[I["@id"]];for(let z=0;z<w.length;++z)if(w[z].expanded===I)return w[z].compacted}if(a(I)||u(I)){const w=h.compactValue({activeCtx:N,activeProperty:B,value:I,options:M});return M.link&&u(I)&&(M.link.hasOwnProperty(I["@id"])||(M.link[I["@id"]]=[]),M.link[I["@id"]].push({expanded:I,compacted:w})),w}if(i(I)&&(m(N,B,"@container")||[]).includes("@list"))return h.compact({activeCtx:N,activeProperty:B,element:I["@list"],options:M});const j=B==="@reverse",A={},Y=N;!a(I)&&!u(I)&&(N=N.revertToPreviousContext());const T=m(Y,B,"@context");o(T)||(N=await b({activeCtx:N,localCtx:T,propagate:!0,overrideProtected:!0,options:M})),M.link&&"@id"in I&&(M.link.hasOwnProperty(I["@id"])||(M.link[I["@id"]]=[]),M.link[I["@id"]].push({expanded:I,compacted:A}));let ee=I["@type"]||[];ee.length>1&&(ee=Array.from(ee).sort());const C=N;for(const w of ee){const z=h.compactIri({activeCtx:C,iri:w,relativeTo:{vocab:!0}}),Q=m(Y,z,"@context");o(Q)||(N=await b({activeCtx:N,localCtx:Q,options:M,propagate:!1}))}const K=Object.keys(I).sort();for(const w of K){const z=I[w];if(w==="@id"){let Q=v(z).map(ae=>h.compactIri({activeCtx:N,iri:ae,relativeTo:{vocab:!1},base:M.base}));Q.length===1&&(Q=Q[0]);const W=h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}});A[W]=Q;continue}if(w==="@type"){let Q=v(z).map(V=>h.compactIri({activeCtx:Y,iri:V,relativeTo:{vocab:!0}}));Q.length===1&&(Q=Q[0]);const W=h.compactIri({activeCtx:N,iri:"@type",relativeTo:{vocab:!0}}),H=(m(N,W,"@container")||[]).includes("@set")&&g(N,1.1)||e(Q)&&z.length===0;E(A,W,Q,{propertyIsArray:H});continue}if(w==="@reverse"){const Q=await h.compact({activeCtx:N,activeProperty:"@reverse",element:z,options:M});for(const W in Q)if(N.mappings.has(W)&&N.mappings.get(W).reverse){const ae=Q[W],H=(m(N,W,"@container")||[]).includes("@set")||!M.compactArrays;E(A,W,ae,{propertyIsArray:H}),delete Q[W]}if(Object.keys(Q).length>0){const W=h.compactIri({activeCtx:N,iri:w,relativeTo:{vocab:!0}});E(A,W,Q)}continue}if(w==="@preserve"){const Q=await h.compact({activeCtx:N,activeProperty:B,element:z,options:M});e(Q)&&Q.length===0||E(A,w,Q);continue}if(w==="@index"){if((m(N,B,"@container")||[]).includes("@index"))continue;const W=h.compactIri({activeCtx:N,iri:w,relativeTo:{vocab:!0}});E(A,W,z);continue}if(w!=="@graph"&&w!=="@list"&&w!=="@included"&&y(w)){const Q=h.compactIri({activeCtx:N,iri:w,relativeTo:{vocab:!0}});E(A,Q,z);continue}if(!e(z))throw new n("JSON-LD expansion error; expanded value must be an array.","jsonld.SyntaxError");if(z.length===0){const Q=h.compactIri({activeCtx:N,iri:w,value:z,relativeTo:{vocab:!0},reverse:j}),W=N.mappings.has(Q)?N.mappings.get(Q)["@nest"]:null;let ae=A;W&&(D(N,W,M),t(A[W])||(A[W]={}),ae=A[W]),E(ae,Q,z,{propertyIsArray:!0})}for(const Q of z){const W=h.compactIri({activeCtx:N,iri:w,value:Q,relativeTo:{vocab:!0},reverse:j}),ae=N.mappings.has(W)?N.mappings.get(W)["@nest"]:null;let U=A;ae&&(D(N,ae,M),t(A[ae])||(A[ae]={}),U=A[ae]);const H=m(N,W,"@container")||[],V=s(Q),F=i(Q);let Z;F?Z=Q["@list"]:V&&(Z=Q["@graph"]);let te=await h.compact({activeCtx:N,activeProperty:W,element:F||V?Z:Q,options:M});if(F)if(e(te)||(te=[te]),!H.includes("@list"))te={[h.compactIri({activeCtx:N,iri:"@list",relativeTo:{vocab:!0}})]:te},"@index"in Q&&(te[h.compactIri({activeCtx:N,iri:"@index",relativeTo:{vocab:!0}})]=Q["@index"]);else{E(U,W,te,{valueIsArray:!0,allowDuplicate:!0});continue}if(V)if(H.includes("@graph")&&(H.includes("@id")||H.includes("@index")&&l(Q))){let ce;U.hasOwnProperty(W)?ce=U[W]:U[W]=ce={};const pe=(H.includes("@id")?Q["@id"]:Q["@index"])||h.compactIri({activeCtx:N,iri:"@none",relativeTo:{vocab:!0}});E(ce,pe,te,{propertyIsArray:!M.compactArrays||H.includes("@set")})}else H.includes("@graph")&&l(Q)?(e(te)&&te.length>1&&(te={"@included":te}),E(U,W,te,{propertyIsArray:!M.compactArrays||H.includes("@set")})):(e(te)&&te.length===1&&M.compactArrays&&(te=te[0]),te={[h.compactIri({activeCtx:N,iri:"@graph",relativeTo:{vocab:!0}})]:te},"@id"in Q&&(te[h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}})]=Q["@id"]),"@index"in Q&&(te[h.compactIri({activeCtx:N,iri:"@index",relativeTo:{vocab:!0}})]=Q["@index"]),E(U,W,te,{propertyIsArray:!M.compactArrays||H.includes("@set")}));else if(H.includes("@language")||H.includes("@index")||H.includes("@id")||H.includes("@type")){let ce;U.hasOwnProperty(W)?ce=U[W]:U[W]=ce={};let pe;if(H.includes("@language"))a(te)&&(te=te["@value"]),pe=Q["@language"];else if(H.includes("@index")){const L=m(N,W,"@index")||"@index",G=h.compactIri({activeCtx:N,iri:L,relativeTo:{vocab:!0}});if(L==="@index")pe=Q["@index"],delete te[G];else{let re;if([pe,...re]=v(te[L]||[]),!r(pe))pe=null;else switch(re.length){case 0:delete te[L];break;case 1:te[L]=re[0];break;default:te[L]=re;break}}}else if(H.includes("@id")){const L=h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}});pe=te[L],delete te[L]}else if(H.includes("@type")){const L=h.compactIri({activeCtx:N,iri:"@type",relativeTo:{vocab:!0}});let G;switch([pe,...G]=v(te[L]||[]),G.length){case 0:delete te[L];break;case 1:te[L]=G[0];break;default:te[L]=G;break}Object.keys(te).length===1&&"@id"in Q&&(te=await h.compact({activeCtx:N,activeProperty:W,element:{"@id":Q["@id"]},options:M}))}pe||(pe=h.compactIri({activeCtx:N,iri:"@none",relativeTo:{vocab:!0}})),E(ce,pe,te,{propertyIsArray:H.includes("@set")})}else{const ce=!M.compactArrays||H.includes("@set")||H.includes("@list")||e(te)&&te.length===0||w==="@list"||w==="@graph";E(U,W,te,{propertyIsArray:ce})}}}return A}return I},h.compactIri=({activeCtx:N,iri:B,value:I=null,relativeTo:M={vocab:!1},reverse:q=!1,base:j=null})=>{if(B===null)return B;N.isPropertyTermScoped&&N.previousContext&&(N=N.previousContext);const A=N.getInverse();if(y(B)&&B in A&&"@none"in A[B]&&"@type"in A[B]["@none"]&&"@none"in A[B]["@none"]["@type"])return A[B]["@none"]["@type"]["@none"];if(M.vocab&&B in A){const K=N["@language"]||"@none",w=[];t(I)&&"@index"in I&&!("@graph"in I)&&w.push("@index","@index@set"),t(I)&&"@preserve"in I&&(I=I["@preserve"][0]),s(I)?("@index"in I&&w.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in I&&w.push("@graph@id","@graph@id@set"),w.push("@graph","@graph@set","@set"),"@index"in I||w.push("@graph@index","@graph@index@set","@index","@index@set"),"@id"in I||w.push("@graph@id","@graph@id@set")):t(I)&&!a(I)&&w.push("@id","@id@set","@type","@set@type");let z="@language",Q="@null";if(q)z="@type",Q="@reverse",w.push("@set");else if(i(I)){"@index"in I||w.push("@list");const ae=I["@list"];if(ae.length===0)z="@any",Q="@none";else{let U=ae.length===0?K:null,H=null;for(let V=0;V<ae.length;++V){const F=ae[V];let Z="@none",te="@none";if(a(F))if("@direction"in F){const ce=(F["@language"]||"").toLowerCase(),pe=F["@direction"];Z=`${ce}_${pe}`}else"@language"in F?Z=F["@language"].toLowerCase():"@type"in F?te=F["@type"]:Z="@null";else te="@id";if(U===null?U=Z:Z!==U&&a(F)&&(U="@none"),H===null?H=te:te!==H&&(H="@none"),U==="@none"&&H==="@none")break}U=U||"@none",H=H||"@none",H!=="@none"?(z="@type",Q=H):Q=U}}else{if(a(I))if("@language"in I&&!("@index"in I)){w.push("@language","@language@set"),Q=I["@language"];const ae=I["@direction"];ae&&(Q=`${Q}_${ae}`)}else"@direction"in I&&!("@index"in I)?Q=`_${I["@direction"]}`:"@type"in I&&(z="@type",Q=I["@type"]);else z="@type",Q="@id";w.push("@set")}w.push("@none"),t(I)&&!("@index"in I)&&w.push("@index","@index@set"),a(I)&&Object.keys(I).length===1&&w.push("@language","@language@set");const W=R(N,B,I,w,z,Q);if(W!==null)return W}if(M.vocab&&"@vocab"in N){const K=N["@vocab"];if(B.indexOf(K)===0&&B!==K){const w=B.substr(K.length);if(!N.mappings.has(w))return w}}let Y=null;const T=[];let ee=N.fastCurieMap;const C=B.length-1;for(let K=0;K<C&&B[K]in ee;++K)ee=ee[B[K]],""in ee&&T.push(ee[""][0]);for(let K=T.length-1;K>=0;--K){const w=T[K],z=w.terms;for(const Q of z){const W=Q+":"+B.substr(w.iri.length);N.mappings.get(Q)._prefix&&(!N.mappings.has(W)||I===null&&N.mappings.get(W)["@id"]===B)&&(Y===null||c(W,Y)<0)&&(Y=W)}}if(Y!==null)return Y;for(const[K,w]of N.mappings)if(w&&w._prefix&&B.startsWith(K+":"))throw new n(`Absolute IRI "${B}" confused with prefix "${K}".`,"jsonld.SyntaxError",{code:"IRI confused with prefix",context:N});if(!M.vocab)if("@base"in N)if(N["@base"]){const K=x(_(j,N["@base"]),B);return k.test(K)?`./${K}`:K}else return B;else return x(j,B);return B},h.compactValue=({activeCtx:N,activeProperty:B,value:I,options:M})=>{if(a(I)){const Y=m(N,B,"@type"),T=m(N,B,"@language"),ee=m(N,B,"@direction"),C=m(N,B,"@container")||[],K="@index"in I&&!C.includes("@index");if(!K&&Y!=="@none"&&(I["@type"]===Y||"@language"in I&&I["@language"]===T&&"@direction"in I&&I["@direction"]===ee||"@language"in I&&I["@language"]===T||"@direction"in I&&I["@direction"]===ee))return I["@value"];const w=Object.keys(I).length,z=w===1||w===2&&"@index"in I&&!K,Q="@language"in N,W=r(I["@value"]),ae=N.mappings.has(B)&&N.mappings.get(B)["@language"]===null;if(z&&Y!=="@none"&&(!Q||!W||ae))return I["@value"];const U={};return K&&(U[h.compactIri({activeCtx:N,iri:"@index",relativeTo:{vocab:!0}})]=I["@index"]),"@type"in I?U[h.compactIri({activeCtx:N,iri:"@type",relativeTo:{vocab:!0}})]=h.compactIri({activeCtx:N,iri:I["@type"],relativeTo:{vocab:!0}}):"@language"in I&&(U[h.compactIri({activeCtx:N,iri:"@language",relativeTo:{vocab:!0}})]=I["@language"]),"@direction"in I&&(U[h.compactIri({activeCtx:N,iri:"@direction",relativeTo:{vocab:!0}})]=I["@direction"]),U[h.compactIri({activeCtx:N,iri:"@value",relativeTo:{vocab:!0}})]=I["@value"],U}const q=f(N,B,{vocab:!0},M),j=m(N,B,"@type"),A=h.compactIri({activeCtx:N,iri:I["@id"],relativeTo:{vocab:j==="@vocab"},base:M.base});return j==="@id"||j==="@vocab"||q==="@graph"?A:{[h.compactIri({activeCtx:N,iri:"@id",relativeTo:{vocab:!0}})]:A}};function R(N,B,I,M,q,j){j===null&&(j="@null");const A=[];if((j==="@id"||j==="@reverse")&&t(I)&&"@id"in I){j==="@reverse"&&A.push("@reverse");const T=h.compactIri({activeCtx:N,iri:I["@id"],relativeTo:{vocab:!0}});N.mappings.has(T)&&N.mappings.get(T)&&N.mappings.get(T)["@id"]===I["@id"]?A.push.apply(A,["@vocab","@id"]):A.push.apply(A,["@id","@vocab"])}else{A.push(j);const T=A.find(ee=>ee.includes("_"));T&&A.push(T.replace(/^[^_]+_/,"_"))}A.push("@none");const Y=N.inverse[B];for(const T of M){if(!(T in Y))continue;const ee=Y[T][q];for(const C of A)if(C in ee)return ee[C]}return null}function D(N,B,I){if(f(N,B,{vocab:!0},I)!=="@nest")throw new n("JSON-LD compact error; nested property must have an @nest value resolving to @nest.","jsonld.SyntaxError",{code:"invalid @nest value"})}return ni}var oi,ml;function Gp(){return ml||(ml=1,oi=n=>{class e{toString(){return"[object JsonLdProcessor]"}}return Object.defineProperty(e,"prototype",{writable:!1,enumerable:!1}),Object.defineProperty(e.prototype,"constructor",{writable:!0,enumerable:!1,configurable:!0,value:e}),e.compact=function(t,r){return arguments.length<2?Promise.reject(new TypeError("Could not compact, too few arguments.")):n.compact(t,r)},e.expand=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not expand, too few arguments.")):n.expand(t)},e.flatten=function(t){return arguments.length<1?Promise.reject(new TypeError("Could not flatten, too few arguments.")):n.flatten(t)},e}),oi}/**
305
308
  * A JavaScript implementation of the JSON-LD API.
306
309
  *
307
310
  * @author Dave Longley
@@ -335,28 +338,28 @@ if("@preserve"in c)return c["@preserve"][0];if(e.isValue(c))return c;if(e.isList
335
338
  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
336
339
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
337
340
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
338
- */var ii,ml;function zp(){if(ml)return ii;ml=1;const r=sa(),e=Np(),t=et(),n=Lp(),o=t.IdentifierIssuer,i=rt(),a=Yd(),s=Op(),{expand:l}=$p(),{flatten:u}=Dp(),{fromRDF:f}=Mp(),{toRDF:m}=Pp(),{frameMergedOrDefault:y,cleanupNull:b}=Bp(),{isArray:g,isObject:x,isString:_}=Ke(),{isSubjectReference:k}=xt(),{expandIri:E,getInitialContext:v,process:c,processingMode:h}=Ft(),{compact:R,compactIri:D}=qp(),{createNodeMap:N,createMergedNodeMap:B,mergeNodeMaps:I}=Mn(),{logEventHandler:M,logWarningEventHandler:q,safeEventHandler:j,setDefaultEventHandler:A,setupEventHandler:Y,strictEventHandler:T,unhandledEventHandler:ee}=Xr(),C=function(w){const z={},W=new a({max:100});w.compact=async function(U,H,V){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(H===null)throw new i("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(U===null)return null;V=ae(V,{base:_(U)?U:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new o("_:b"),contextResolver:new n({sharedCache:W})}),V.link&&(V.skipExpansion=!0),V.compactToRelative||delete V.base;let F;V.skipExpansion?F=U:F=await w.expand(U,V);const Z=await w.processContext(v(V),H,V);let te=await R({activeCtx:Z,element:F,options:V});V.compactArrays&&!V.graph&&g(te)?te.length===1?te=te[0]:te.length===0&&(te={}):V.graph&&x(te)&&(te=[te]),x(H)&&"@context"in H&&(H=H["@context"]),H=t.clone(H),g(H)||(H=[H]);const ce=H;H=[];for(let L=0;L<ce.length;++L)(!x(ce[L])||Object.keys(ce[L]).length>0)&&H.push(ce[L]);const pe=H.length>0;if(H.length===1&&(H=H[0]),g(te)){const L=D({activeCtx:Z,iri:"@graph",relativeTo:{vocab:!0}}),G=te;te={},pe&&(te["@context"]=H),te[L]=G}else if(x(te)&&pe){const L=te;te={"@context":H};for(const G in L)te[G]=L[G]}return te},w.expand=async function(U,H){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");H=ae(H,{keepFreeFloatingNodes:!1,contextResolver:new n({sharedCache:W})});const V={},F=[];if("expandContext"in H){const pe=t.clone(H.expandContext);x(pe)&&"@context"in pe?V.expandContext=pe:V.expandContext={"@context":pe},F.push(V.expandContext)}let Z;if(!_(U))V.input=t.clone(U);else{const pe=await w.get(U,H);Z=pe.documentUrl,V.input=pe.document,pe.contextUrl&&(V.remoteContext={"@context":pe.contextUrl},F.push(V.remoteContext))}"base"in H||(H.base=Z||"");let te=v(H);for(const pe of F)te=await c({activeCtx:te,localCtx:pe,options:H});let ce=await l({activeCtx:te,element:V.input,options:H});return x(ce)&&"@graph"in ce&&Object.keys(ce).length===1?ce=ce["@graph"]:ce===null&&(ce=[]),g(ce)||(ce=[ce]),ce},w.flatten=async function(U,H,V){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");typeof H=="function"?H=null:H=H||null,V=ae(V,{base:_(U)?U:"",contextResolver:new n({sharedCache:W})});const F=await w.expand(U,V),Z=u(F);return H===null?Z:(V.graph=!0,V.skipExpansion=!0,await w.compact(Z,H,V))},w.frame=async function(U,H,V){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(V=ae(V,{base:_(U)?U:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new n({sharedCache:W})}),_(H)){const de=await w.get(H,V);if(H=de.document,de.contextUrl){let ue=H["@context"];ue?g(ue)?ue.push(de.contextUrl):ue=[ue,de.contextUrl]:ue=de.contextUrl,H["@context"]=ue}}const F=H?H["@context"]||{}:{},Z=await w.processContext(v(V),F,V);V.hasOwnProperty("omitGraph")||(V.omitGraph=h(Z,1.1)),V.hasOwnProperty("pruneBlankNodeIdentifiers")||(V.pruneBlankNodeIdentifiers=h(Z,1.1));const te=await w.expand(U,V),ce={...V};ce.isFrame=!0,ce.keepFreeFloatingNodes=!0;const pe=await w.expand(H,ce),L=Object.keys(H).map(de=>E(Z,de,{vocab:!0}));ce.merged=!L.includes("@graph"),ce.is11=h(Z,1.1);const G=y(te,pe,ce);ce.graph=!V.omitGraph,ce.skipExpansion=!0,ce.link={},ce.framing=!0;let re=await w.compact(G,F,ce);return ce.link={},re=b(re,ce),re},w.link=async function(U,H,V){const F={};return H&&(F["@context"]=H),F["@embed"]="@link",w.frame(U,F,V)},w.normalize=w.canonize=async function(U,H){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if(H=ae(H,{base:_(U)?U:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new n({sharedCache:W})}),"inputFormat"in H){if(H.inputFormat!=="application/n-quads"&&H.inputFormat!=="application/nquads")throw new i("Unknown canonicalization input format.","jsonld.CanonizeError");const Z=s.parse(U);return r.canonize(Z,H)}const V={...H};delete V.format,V.produceGeneralizedRdf=!1;const F=await w.toRDF(U,V);return r.canonize(F,H)},w.fromRDF=async function(U,H){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");H=ae(H,{format:_(U)?"application/n-quads":void 0});const{format:V}=H;let{rdfParser:F}=H;if(V){if(F=F||z[V],!F)throw new i("Unknown input format.","jsonld.UnknownFormat",{format:V})}else F=()=>U;const Z=await F(U);return f(Z,H)},w.toRDF=async function(U,H){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");H=ae(H,{base:_(U)?U:"",skipExpansion:!1,contextResolver:new n({sharedCache:W})});let V;H.skipExpansion?V=U:V=await w.expand(U,H);const F=m(V,H);if(H.format){if(H.format==="application/n-quads"||H.format==="application/nquads")return s.serialize(F);throw new i("Unknown output format.","jsonld.UnknownFormat",{format:H.format})}return F},w.createNodeMap=async function(U,H){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");H=ae(H,{base:_(U)?U:"",contextResolver:new n({sharedCache:W})});const V=await w.expand(U,H);return B(V,H)},w.merge=async function(U,H,V){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!g(U))throw new TypeError('Could not merge, "docs" must be an array.');typeof H=="function"?H=null:H=H||null,V=ae(V,{contextResolver:new n({sharedCache:W})});const F=await Promise.all(U.map(de=>{const ue={...V};return w.expand(de,ue)}));let Z=!0;"mergeNodes"in V&&(Z=V.mergeNodes);const te=V.issuer||new o("_:b"),ce={"@default":{}};for(let de=0;de<F.length;++de){const ue=t.relabelBlankNodes(F[de],{issuer:new o("_:b"+de+"-")}),he=Z||de===0?ce:{"@default":{}};if(N(ue,he,"@default",te),he!==ce)for(const X in he){const le=he[X];if(!(X in ce)){ce[X]=le;continue}const fe=ce[X];for(const ie in le)ie in fe||(fe[ie]=le[ie])}}const pe=I(ce),L=[],G=Object.keys(pe).sort();for(let de=0;de<G.length;++de){const ue=pe[G[de]];k(ue)||L.push(ue)}return H===null?L:(V.graph=!0,V.skipExpansion=!0,await w.compact(L,H,V))},Object.defineProperty(w,"documentLoader",{get:()=>w._documentLoader,set:U=>w._documentLoader=U}),w.documentLoader=async U=>{throw new i("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:U})},w.get=async function(U,H){let V;typeof H.documentLoader=="function"?V=H.documentLoader:V=w.documentLoader;const F=await V(U);try{if(!F.document)throw new i("No remote document found at the given URL.","jsonld.NullRemoteDocument");_(F.document)&&(F.document=JSON.parse(F.document))}catch(Z){throw new i("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:Z,remoteDoc:F})}return F},w.processContext=async function(U,H,V){return V=ae(V,{base:"",contextResolver:new n({sharedCache:W})}),H===null?v(V):(H=t.clone(H),x(H)&&"@context"in H||(H={"@context":H}),c({activeCtx:U,localCtx:H,options:V}))},w.getContextValue=Ft().getContextValue,w.documentLoaders={},w.useDocumentLoader=function(U){if(!(U in w.documentLoaders))throw new i('Unknown document loader type: "'+U+'"',"jsonld.UnknownDocumentLoader",{type:U});w.documentLoader=w.documentLoaders[U].apply(w,Array.prototype.slice.call(arguments,1))},w.registerRDFParser=function(U,H){z[U]=H},w.unregisterRDFParser=function(U){delete z[U]},w.registerRDFParser("application/n-quads",s.parse),w.registerRDFParser("application/nquads",s.parse),w.url=jt(),w.logEventHandler=M,w.logWarningEventHandler=q,w.safeEventHandler=j,w.setDefaultEventHandler=A,w.strictEventHandler=T,w.unhandledEventHandler=ee,w.util=t,Object.assign(w,t),w.promises=w,w.RequestQueue=Kd(),w.JsonLdProcessor=Fp()(w),e.setupGlobals(w),e.setupDocumentLoaders(w);function ae(U,{documentLoader:H=w.documentLoader,...V}){if(U&&"compactionMap"in U)throw new i('"compactionMap" not supported.',"jsonld.OptionsError");if(U&&"expansionMap"in U)throw new i('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:H},V,U,{eventHandler:Y({options:U})})}return w},K=function(){return C(function(){return K()})};return C(K),ii=K,ii}var Up=zp();const ai={},si={};let Mi;class Hp{constructor(e){this.loadedExternalUrls=[],this.loadedClasses=[],this.config=e}async loadGraphs(){this.loadedExternalUrls=[],this.loadedClasses=[];let e=Mi;this.config.prefixes={};const t=[];if(e||(e=new ze,t.push(this.importRDF(this.config.attributes.shapes?this.config.attributes.shapes:this.config.attributes.shapesUrl?this.fetchRDF(this.config.attributes.shapesUrl):"",e,vn))),t.push(this.importRDF(this.config.attributes.values?this.config.attributes.values:this.config.attributes.valuesUrl?this.fetchRDF(this.config.attributes.valuesUrl):"",e,dt,new Ri({blankNodePrefix:""}))),await Promise.all(t),!Mi&&e?.size==0&&this.config.attributes.valuesSubject){const n=[...e.getObjects(this.config.attributes.valuesSubject,Be,dt),...e.getObjects(this.config.attributes.valuesSubject,ji,dt)],o=[];for(const i of n){const a=this.toURL(i.value);a&&this.loadedExternalUrls.indexOf(a)<0&&(this.loadedExternalUrls.push(a),o.push(this.importRDF(this.fetchRDF(a),e,vn)))}try{await Promise.allSettled(o)}catch(i){console.warn(i)}}this.config.store=e}async importRDF(e,t,n,o){const i=o||new Ri,a=async s=>{const l=[];await new Promise((u,f)=>{i.parse(s,(m,y,b)=>{if(m)return console.warn("failed parsing graph",n,m.message),f(m);if(y){if(t.add(new In(y.subject,y.predicate,y.object,n)),this.config.attributes.ignoreOwlImports===null&&Wi.equals(y.predicate)){const g=this.toURL(y.object.value);g&&this.loadedExternalUrls.indexOf(g)<0&&(this.loadedExternalUrls.push(g),l.push(this.importRDF(this.fetchRDF(g),t,Se.namedNode(g),o)))}if(this.config.classInstanceProvider&&Ji.equals(y.predicate)){const g=y.object.value;if(this.loadedClasses.indexOf(g)<0){let x;g in si?x=si[g]:(x=this.config.classInstanceProvider(g),si[g]=x),this.loadedClasses.push(g),l.push(this.importRDF(x,t,n,o))}}return}b&&this.config.registerPrefixes(b),u(null)})});try{await Promise.allSettled(l)}catch(u){console.warn(u)}};if(e instanceof Promise&&(e=await e),e){try{e=await Up.toRDF(JSON.parse(e),{format:"application/n-quads"})}catch{}await a(e)}}async fetchRDF(e){if(e in ai)return ai[e];const t=fetch(e,{headers:{Accept:"text/turtle, application/trig, application/n-triples, application/n-quads, text/n3, application/ld+json"}}).then(n=>n.text());return ai[e]=t,t}toURL(e){if(Ai(e))return e;if(this.config.prefixes){const t=e.split(":");if(t.length===2){const n=this.config.prefixes[t[0]];if(n&&(e=e.replace(`${t[0]}:`,n),Ai(e)))return e}}return null}}function Gp(r){Mi=r}class li{constructor(){this.shapes=null,this.shapesUrl=null,this.shapeSubject=null,this.values=null,this.valuesUrl=null,this.valueSubject=null,this.valuesSubject=null,this.valuesNamespace="",this.valuesGraph=null,this.view=null,this.language=null,this.loading="Loading…",this.ignoreOwlImports=null,this.collapse=null,this.submitButton=null,this.generateNodeShapeReference=null,this.showNodeIds=null}}class gl{constructor(e,t){this.attributes=new li,this.loader=new Hp(this),this.prefixes={},this.editMode=!0,this.lists={},this.groups=[],this.renderedNodes=new Set,this._store=new ze,this.theme=e,this.form=t,this.languages=[...new Set(navigator.languages.flatMap(n=>n.length>2?[n.toLocaleLowerCase(),n.substring(0,2)]:n)),""]}updateAttributes(e){const t=new li;if(Object.keys(t).forEach(n=>{const o=e.dataset[n];o!==void 0&&(t[n]=o)}),this.editMode=t.view===null,this.attributes=t,this.attributes.valueSubject&&!this.attributes.valuesSubject&&(this.attributes.valuesSubject=this.attributes.valueSubject),t.language){const n=this.languages.indexOf(t.language);n>-1&&this.languages.splice(n,1),this.languages.unshift(t.language)}t.valuesGraph&&(this.valuesGraphId=Se.namedNode(t.valuesGraph))}static dataAttributes(){const e=new li;return Object.keys(e).map(t=>(t=t.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),"data-"+t))}get store(){return this._store}set store(e){this._store=e,this.lists=e.extractLists(),this.groups=[],e.forSubjects(t=>{this.groups.push(t.id)},Be,`${ve}PropertyGroup`,null)}registerPrefixes(e){for(const t in e)t&&(this.prefixes[t]=e[t])}}function Vp(r){return"_:"+r.value}function Wp(r,e){return[...r].map(t=>e(t)).join(`
341
+ */var ii,gl;function Vp(){if(gl)return ii;gl=1;const n=la(),e=Lp(),t=et(),r=Mp(),o=t.IdentifierIssuer,i=rt(),a=ec(),s=Cp(),{expand:l}=Pp(),{flatten:u}=Bp(),{fromRDF:f}=qp(),{toRDF:m}=zp(),{frameMergedOrDefault:y,cleanupNull:b}=Up(),{isArray:g,isObject:x,isString:_}=Ke(),{isSubjectReference:k}=xt(),{expandIri:E,getInitialContext:v,process:c,processingMode:h}=zt(),{compact:R,compactIri:D}=Hp(),{createNodeMap:N,createMergedNodeMap:B,mergeNodeMaps:I}=Mn(),{logEventHandler:M,logWarningEventHandler:q,safeEventHandler:j,setDefaultEventHandler:A,setupEventHandler:Y,strictEventHandler:T,unhandledEventHandler:ee}=Kr(),C=function(w){const z={},W=new a({max:100});w.compact=async function(U,H,V){if(arguments.length<2)throw new TypeError("Could not compact, too few arguments.");if(H===null)throw new i("The compaction context must not be null.","jsonld.CompactError",{code:"invalid local context"});if(U===null)return null;V=ae(V,{base:_(U)?U:"",compactArrays:!0,compactToRelative:!0,graph:!1,skipExpansion:!1,link:!1,issuer:new o("_:b"),contextResolver:new r({sharedCache:W})}),V.link&&(V.skipExpansion=!0),V.compactToRelative||delete V.base;let F;V.skipExpansion?F=U:F=await w.expand(U,V);const Z=await w.processContext(v(V),H,V);let te=await R({activeCtx:Z,element:F,options:V});V.compactArrays&&!V.graph&&g(te)?te.length===1?te=te[0]:te.length===0&&(te={}):V.graph&&x(te)&&(te=[te]),x(H)&&"@context"in H&&(H=H["@context"]),H=t.clone(H),g(H)||(H=[H]);const ce=H;H=[];for(let L=0;L<ce.length;++L)(!x(ce[L])||Object.keys(ce[L]).length>0)&&H.push(ce[L]);const pe=H.length>0;if(H.length===1&&(H=H[0]),g(te)){const L=D({activeCtx:Z,iri:"@graph",relativeTo:{vocab:!0}}),G=te;te={},pe&&(te["@context"]=H),te[L]=G}else if(x(te)&&pe){const L=te;te={"@context":H};for(const G in L)te[G]=L[G]}return te},w.expand=async function(U,H){if(arguments.length<1)throw new TypeError("Could not expand, too few arguments.");H=ae(H,{keepFreeFloatingNodes:!1,contextResolver:new r({sharedCache:W})});const V={},F=[];if("expandContext"in H){const pe=t.clone(H.expandContext);x(pe)&&"@context"in pe?V.expandContext=pe:V.expandContext={"@context":pe},F.push(V.expandContext)}let Z;if(!_(U))V.input=t.clone(U);else{const pe=await w.get(U,H);Z=pe.documentUrl,V.input=pe.document,pe.contextUrl&&(V.remoteContext={"@context":pe.contextUrl},F.push(V.remoteContext))}"base"in H||(H.base=Z||"");let te=v(H);for(const pe of F)te=await c({activeCtx:te,localCtx:pe,options:H});let ce=await l({activeCtx:te,element:V.input,options:H});return x(ce)&&"@graph"in ce&&Object.keys(ce).length===1?ce=ce["@graph"]:ce===null&&(ce=[]),g(ce)||(ce=[ce]),ce},w.flatten=async function(U,H,V){if(arguments.length<1)return new TypeError("Could not flatten, too few arguments.");typeof H=="function"?H=null:H=H||null,V=ae(V,{base:_(U)?U:"",contextResolver:new r({sharedCache:W})});const F=await w.expand(U,V),Z=u(F);return H===null?Z:(V.graph=!0,V.skipExpansion=!0,await w.compact(Z,H,V))},w.frame=async function(U,H,V){if(arguments.length<2)throw new TypeError("Could not frame, too few arguments.");if(V=ae(V,{base:_(U)?U:"",embed:"@once",explicit:!1,requireAll:!1,omitDefault:!1,bnodesToClear:[],contextResolver:new r({sharedCache:W})}),_(H)){const de=await w.get(H,V);if(H=de.document,de.contextUrl){let ue=H["@context"];ue?g(ue)?ue.push(de.contextUrl):ue=[ue,de.contextUrl]:ue=de.contextUrl,H["@context"]=ue}}const F=H?H["@context"]||{}:{},Z=await w.processContext(v(V),F,V);V.hasOwnProperty("omitGraph")||(V.omitGraph=h(Z,1.1)),V.hasOwnProperty("pruneBlankNodeIdentifiers")||(V.pruneBlankNodeIdentifiers=h(Z,1.1));const te=await w.expand(U,V),ce={...V};ce.isFrame=!0,ce.keepFreeFloatingNodes=!0;const pe=await w.expand(H,ce),L=Object.keys(H).map(de=>E(Z,de,{vocab:!0}));ce.merged=!L.includes("@graph"),ce.is11=h(Z,1.1);const G=y(te,pe,ce);ce.graph=!V.omitGraph,ce.skipExpansion=!0,ce.link={},ce.framing=!0;let re=await w.compact(G,F,ce);return ce.link={},re=b(re,ce),re},w.link=async function(U,H,V){const F={};return H&&(F["@context"]=H),F["@embed"]="@link",w.frame(U,F,V)},w.normalize=w.canonize=async function(U,H){if(arguments.length<1)throw new TypeError("Could not canonize, too few arguments.");if(H=ae(H,{base:_(U)?U:null,algorithm:"URDNA2015",skipExpansion:!1,safe:!0,contextResolver:new r({sharedCache:W})}),"inputFormat"in H){if(H.inputFormat!=="application/n-quads"&&H.inputFormat!=="application/nquads")throw new i("Unknown canonicalization input format.","jsonld.CanonizeError");const Z=s.parse(U);return n.canonize(Z,H)}const V={...H};delete V.format,V.produceGeneralizedRdf=!1;const F=await w.toRDF(U,V);return n.canonize(F,H)},w.fromRDF=async function(U,H){if(arguments.length<1)throw new TypeError("Could not convert from RDF, too few arguments.");H=ae(H,{format:_(U)?"application/n-quads":void 0});const{format:V}=H;let{rdfParser:F}=H;if(V){if(F=F||z[V],!F)throw new i("Unknown input format.","jsonld.UnknownFormat",{format:V})}else F=()=>U;const Z=await F(U);return f(Z,H)},w.toRDF=async function(U,H){if(arguments.length<1)throw new TypeError("Could not convert to RDF, too few arguments.");H=ae(H,{base:_(U)?U:"",skipExpansion:!1,contextResolver:new r({sharedCache:W})});let V;H.skipExpansion?V=U:V=await w.expand(U,H);const F=m(V,H);if(H.format){if(H.format==="application/n-quads"||H.format==="application/nquads")return s.serialize(F);throw new i("Unknown output format.","jsonld.UnknownFormat",{format:H.format})}return F},w.createNodeMap=async function(U,H){if(arguments.length<1)throw new TypeError("Could not create node map, too few arguments.");H=ae(H,{base:_(U)?U:"",contextResolver:new r({sharedCache:W})});const V=await w.expand(U,H);return B(V,H)},w.merge=async function(U,H,V){if(arguments.length<1)throw new TypeError("Could not merge, too few arguments.");if(!g(U))throw new TypeError('Could not merge, "docs" must be an array.');typeof H=="function"?H=null:H=H||null,V=ae(V,{contextResolver:new r({sharedCache:W})});const F=await Promise.all(U.map(de=>{const ue={...V};return w.expand(de,ue)}));let Z=!0;"mergeNodes"in V&&(Z=V.mergeNodes);const te=V.issuer||new o("_:b"),ce={"@default":{}};for(let de=0;de<F.length;++de){const ue=t.relabelBlankNodes(F[de],{issuer:new o("_:b"+de+"-")}),he=Z||de===0?ce:{"@default":{}};if(N(ue,he,"@default",te),he!==ce)for(const X in he){const le=he[X];if(!(X in ce)){ce[X]=le;continue}const fe=ce[X];for(const ie in le)ie in fe||(fe[ie]=le[ie])}}const pe=I(ce),L=[],G=Object.keys(pe).sort();for(let de=0;de<G.length;++de){const ue=pe[G[de]];k(ue)||L.push(ue)}return H===null?L:(V.graph=!0,V.skipExpansion=!0,await w.compact(L,H,V))},Object.defineProperty(w,"documentLoader",{get:()=>w._documentLoader,set:U=>w._documentLoader=U}),w.documentLoader=async U=>{throw new i("Could not retrieve a JSON-LD document from the URL. URL dereferencing not implemented.","jsonld.LoadDocumentError",{code:"loading document failed",url:U})},w.get=async function(U,H){let V;typeof H.documentLoader=="function"?V=H.documentLoader:V=w.documentLoader;const F=await V(U);try{if(!F.document)throw new i("No remote document found at the given URL.","jsonld.NullRemoteDocument");_(F.document)&&(F.document=JSON.parse(F.document))}catch(Z){throw new i("Could not retrieve a JSON-LD document from the URL.","jsonld.LoadDocumentError",{code:"loading document failed",cause:Z,remoteDoc:F})}return F},w.processContext=async function(U,H,V){return V=ae(V,{base:"",contextResolver:new r({sharedCache:W})}),H===null?v(V):(H=t.clone(H),x(H)&&"@context"in H||(H={"@context":H}),c({activeCtx:U,localCtx:H,options:V}))},w.getContextValue=zt().getContextValue,w.documentLoaders={},w.useDocumentLoader=function(U){if(!(U in w.documentLoaders))throw new i('Unknown document loader type: "'+U+'"',"jsonld.UnknownDocumentLoader",{type:U});w.documentLoader=w.documentLoaders[U].apply(w,Array.prototype.slice.call(arguments,1))},w.registerRDFParser=function(U,H){z[U]=H},w.unregisterRDFParser=function(U){delete z[U]},w.registerRDFParser("application/n-quads",s.parse),w.registerRDFParser("application/nquads",s.parse),w.url=jt(),w.logEventHandler=M,w.logWarningEventHandler=q,w.safeEventHandler=j,w.setDefaultEventHandler=A,w.strictEventHandler=T,w.unhandledEventHandler=ee,w.util=t,Object.assign(w,t),w.promises=w,w.RequestQueue=Zd(),w.JsonLdProcessor=Gp()(w),e.setupGlobals(w),e.setupDocumentLoaders(w);function ae(U,{documentLoader:H=w.documentLoader,...V}){if(U&&"compactionMap"in U)throw new i('"compactionMap" not supported.',"jsonld.OptionsError");if(U&&"expansionMap"in U)throw new i('"expansionMap" not supported.',"jsonld.OptionsError");return Object.assign({},{documentLoader:H},V,U,{eventHandler:Y({options:U})})}return w},K=function(){return C(function(){return K()})};return C(K),ii=K,ii}var Wp=Vp();const ai={},si={};let Mi;class Jp{constructor(e){this.loadedExternalUrls=[],this.loadedClasses=[],this.config=e}async loadGraphs(){this.loadedExternalUrls=[],this.loadedClasses=[];let e=Mi;this.config.prefixes={};const t=[];if(e||(e=new Fe,t.push(this.importRDF(this.config.attributes.shapes?this.config.attributes.shapes:this.config.attributes.shapesUrl?this.fetchRDF(this.config.attributes.shapesUrl):"",e,yn))),t.push(this.importRDF(this.config.attributes.values?this.config.attributes.values:this.config.attributes.valuesUrl?this.fetchRDF(this.config.attributes.valuesUrl):"",e,dt,new Ri({blankNodePrefix:""}))),await Promise.all(t),!Mi&&e?.size==0&&this.config.attributes.valuesSubject){const r=[...e.getObjects(this.config.attributes.valuesSubject,ze,dt),...e.getObjects(this.config.attributes.valuesSubject,ji,dt)],o=[];for(const i of r){const a=this.toURL(i.value);a&&this.loadedExternalUrls.indexOf(a)<0&&(this.loadedExternalUrls.push(a),o.push(this.importRDF(this.fetchRDF(a),e,yn)))}try{await Promise.allSettled(o)}catch(i){console.warn(i)}}this.config.store=e}async importRDF(e,t,r,o){const i=o||new Ri,a=async s=>{const l=[];await new Promise((u,f)=>{i.parse(s,(m,y,b)=>{if(m)return console.warn("failed parsing graph",r,m.message),f(m);if(y){if(t.add(new Rn(y.subject,y.predicate,y.object,r)),this.config.attributes.ignoreOwlImports===null&&Ji.equals(y.predicate)){const g=this.toURL(y.object.value);g&&this.loadedExternalUrls.indexOf(g)<0&&(this.loadedExternalUrls.push(g),l.push(this.importRDF(this.fetchRDF(g),t,_e.namedNode(g),o)))}if(this.config.classInstanceProvider&&Qi.equals(y.predicate)){const g=y.object.value;if(this.loadedClasses.indexOf(g)<0){let x;g in si?x=si[g]:(x=this.config.classInstanceProvider(g),si[g]=x),this.loadedClasses.push(g),l.push(this.importRDF(x,t,r,o))}}return}b&&this.config.registerPrefixes(b),u(null)})});try{await Promise.allSettled(l)}catch(u){console.warn(u)}};if(e instanceof Promise&&(e=await e),e){try{e=await Wp.toRDF(JSON.parse(e),{format:"application/n-quads"})}catch{}await a(e)}}async fetchRDF(e){if(e in ai)return ai[e];const t=fetch(e,{headers:{Accept:"text/turtle, application/trig, application/n-triples, application/n-quads, text/n3, application/ld+json"}}).then(r=>r.text());return ai[e]=t,t}toURL(e){if(Ai(e))return e;if(this.config.prefixes){const t=e.split(":");if(t.length===2){const r=this.config.prefixes[t[0]];if(r&&(e=e.replace(`${t[0]}:`,r),Ai(e)))return e}}return null}}function Qp(n){Mi=n}class li{constructor(){this.shapes=null,this.shapesUrl=null,this.shapeSubject=null,this.values=null,this.valuesUrl=null,this.valueSubject=null,this.valuesSubject=null,this.valuesNamespace="",this.valuesGraph=null,this.view=null,this.language=null,this.loading="Loading…",this.ignoreOwlImports=null,this.collapse=null,this.submitButton=null,this.generateNodeShapeReference=null,this.showNodeIds=null}}class vl{constructor(e,t){this.attributes=new li,this.loader=new Jp(this),this.prefixes={},this.editMode=!0,this.lists={},this.groups=[],this.renderedNodes=new Set,this._store=new Fe,this.theme=e,this.form=t,this.languages=[...new Set(navigator.languages.flatMap(r=>r.length>2?[r.toLocaleLowerCase(),r.substring(0,2)]:r)),""]}updateAttributes(e){const t=new li;if(Object.keys(t).forEach(r=>{const o=e.dataset[r];o!==void 0&&(t[r]=o)}),this.editMode=t.view===null,this.attributes=t,this.attributes.valueSubject&&!this.attributes.valuesSubject&&(this.attributes.valuesSubject=this.attributes.valueSubject),t.language){const r=this.languages.indexOf(t.language);r>-1&&this.languages.splice(r,1),this.languages.unshift(t.language)}t.valuesGraph&&(this.valuesGraphId=_e.namedNode(t.valuesGraph))}static dataAttributes(){const e=new li;return Object.keys(e).map(t=>(t=t.replace(/[A-Z]/g,r=>"-"+r.toLowerCase()),"data-"+t))}get store(){return this._store}set store(e){this._store=e,this.lists=e.extractLists(),this.groups=[],e.forSubjects(t=>{this.groups.push(t.id)},ze,`${ve}PropertyGroup`,null)}registerPrefixes(e){for(const t in e)t&&(this.prefixes[t]=e[t])}}function Xp(n){return"_:"+n.value}function Kp(n,e){return[...n].map(t=>e(t)).join(`
339
342
  `)+`
340
- `}function Jp(){return""}function Zd(r){return"<"+r.value+">"}const Qp=/["\\\\\n\r]/,Xp=/["\\\\\n\r]/g,Kp={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Yp(r){return Kp[r]}function Zp(r){return Qp.test(r)?r.replace(Xp,Yp):r}function ef(r){const e=Zp(r.value);return r.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+e+'"':r.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+e+'"@'+r.language:'"'+e+'"^^'+Zd(r.datatype)}function tf(r,e){const t=e(r.subject),n=e(r.predicate),o=e(r.object),i=e(r.graph);return`${t} ${n} ${o} ${i?i+" ":""}.`}function rf(r){return"?"+r.value}function Je(r){if(!r)return null;if(r.termType==="BlankNode")return Vp(r);if(r.termType==="DefaultGraph")return Jp();if(r.termType==="Literal")return ef(r);if(r.termType==="NamedNode")return Zd(r);if(r.termType==="Quad"||r.subject&&r.predicate&&r.object&&r.graph)return tf(r,Je);if(r.termType==="Variable")return rf(r);if(r[Symbol.iterator])return Wp(r,Je);throw new Error(`unknown termType ${r.termType}`)}class lr{constructor(e){if(this.index=new Map,e)for(const[t,n]of e)this.set(t,n)}get size(){return this.index.size}clear(){this.index.clear()}delete(e){return this.index.delete(Je(e))}*entries(){for(const[,{term:e,value:t}]of this.index)yield[e,t]}forEach(e,t){for(const n of this.entries())e.call(t,n[1],n[0],this)}get(e){const t=this.index.get(Je(e));return t&&t.value}has(e){return this.index.has(Je(e))}*keys(){for(const[,{term:e}]of this.index)yield e}set(e,t){const n=Je(e);return this.index.set(n,{term:e,value:t}),this}*values(){for(const[,{value:e}]of this.index)yield e}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}class vl{constructor({dataset:e,end:t,quad:n,start:o}){this.dataset=e,this.end=t,this.quad=n,this.start=o}get term(){return this.quad[this.end]}get graph(){return this.quad.graph}get startTerm(){return this.quad[this.start]}}function yl(r){try{return Je(r)}catch{return null}}class tt{constructor(e){if(this.index=new Map,e)for(const t of e)this.add(t)}get size(){return this.index.size}add(e){const t=Je(e);return this.index.has(t)||this.index.set(t,e),this}clear(){this.index.clear()}delete(e){return e?this.index.delete(yl(e)):!1}entries(){return this.values().entries()}forEach(e,t){return this.values().forEach(e,t)}has(e){return e?this.index.has(yl(e)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let ec=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};ec.prototype.termType="BlankNode";let da=class{equals(e){return!!e&&e.termType===this.termType}};da.prototype.termType="DefaultGraph";da.prototype.value="";function wl(r,e){if(!e)return null;if(e.termType==="BlankNode")return r.blankNode(e.value);if(e.termType==="DefaultGraph")return r.defaultGraph();if(e.termType==="Literal")return r.literal(e.value,e.language||r.namedNode(e.datatype.value));if(e.termType==="NamedNode")return r.namedNode(e.value);if(e.termType==="Quad"){const t=r.fromTerm(e.subject),n=r.fromTerm(e.predicate),o=r.fromTerm(e.object),i=r.fromTerm(e.graph);return r.quad(t,n,o,i)}if(e.termType==="Variable")return r.variable(e.value);throw new Error(`unknown termType ${e.termType}`)}let mn=class{constructor(e,t,n,o=""){this.value=e,this.language=t,this.datatype=n,this.direction=o}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)&&(e.direction||"")===this.direction}};mn.prototype.termType="Literal";let Kr=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};Kr.prototype.termType="NamedNode";let ca=class{constructor(e,t,n,o){this.subject=e,this.predicate=t,this.object=n,this.graph=o}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}};ca.prototype.termType="Quad";ca.prototype.value="";let tc=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};tc.prototype.termType="Variable";const nf=new Kr("http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString"),xl=new Kr("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),of=new Kr("http://www.w3.org/2001/XMLSchema#string");let rc=class{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new da}}namedNode(e){return new Kr(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new ec(e)}literal(e,t){return typeof t=="string"?new mn(e,t,xl):typeof t?.language=="string"?new mn(e,t.language,t.direction?nf:xl,t.direction):new mn(e,"",t||of)}variable(e){return new tc(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new ca(e,t,n,o)}fromTerm(e){return wl(this,e)}fromQuad(e){return wl(this,e)}};rc.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const ua=new rc,af={apply:(r,e,t)=>r(t[0]),get:(r,e)=>r(e)};function nt(r,{factory:e=ua}={}){const t=(n="")=>e.namedNode(`${r}${n.raw||n}`);return typeof Proxy>"u"?t:new Proxy(t,af)}nt("http://www.w3.org/2001/XMLSchema#");const st=nt("http://www.w3.org/1999/02/22-rdf-syntax-ns#");nt("http://www.w3.org/2000/01/rdf-schema#");class Re{static add({ptr:e,start:t,end:n,subjects:o=[null],predicates:i=[null],objects:a=[null],graphs:s,callback:l}={}){if(!e.factory)throw new Error("add operation requires a factory");let u=()=>{};l&&(u=f=>{l(new vl({dataset:e.dataset,start:t,end:n,quad:f}))});for(const f of o)for(const m of i)for(const y of a)for(const b of s){const g={subject:f,predicate:m,object:y,graph:b};g[t]=e.term;const x=e.factory.quad(g.subject,g.predicate,g.object,g.graph);e.dataset.add(x),u(x)}return e}static addList({ptr:e,predicates:t,items:n,graphs:o}){if(e.isAny())throw new Error("can't attach a list to an any ptr");for(const i of t)for(const a of o){const s=n.map(()=>e.factory.blankNode());e.dataset.add(e.factory.quad(e.term,i,s[0]||st.nil,a));for(let l=0;l<s.length;l++)e.dataset.add(e.factory.quad(s[l],st.first,n[l],a)),e.dataset.add(e.factory.quad(s[l],st.rest,s[l+1]||st.nil,a))}return e}static delete({ptr:e,start:t,subjects:n=[null],predicates:o=[null],objects:i=[null]}){for(const a of n)for(const s of o)for(const l of i){const u={subject:a,predicate:s,object:l};u[t]=e.term;const f=e.dataset.match(u.subject,u.predicate,u.object);for(const m of f)e.dataset.delete(m)}return e}static deleteList({ptr:e,predicates:t}){const n=[];for(const o of t)for(const i of e.dataset.match(e.term,o)){let a=i.object;for(n.push(i);!st.nil.equals(a);){a=n[n.length-1].object;const s=e.dataset.match(a);if(s.size===0)break;for(const l of s)n.push(l)}}for(const o of n)e.dataset.delete(o);return e}static execute({ptr:e,operation:t="traverse",quantifier:n,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u,items:f,callback:m}={}){if(t==="add")return Re.add({ptr:e,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u,callback:m});if(t==="addList")return Re.addList({ptr:e,predicates:s,items:f,graphs:u});if(t==="delete")return Re.delete({ptr:e,start:o,subjects:a,predicates:s,objects:l});if(t==="deleteList")return Re.deleteList({ptr:e,predicates:s});if(t==="isList")return Re.isList({ptr:e});if(t==="list")return Re.list({ptr:e});if(t==="traverse")return Re.traverse({ptr:e,quantifier:n,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u});throw new Error(`unknown operation ${t}`)}static isList({ptr:e}){return e.isAny()?!1:!!(st.nil.equals(e.term)||Re.traverse({ptr:e,predicates:[st.first]}).length===1)}static list({ptr:e}){if(e.isList())return{*[Symbol.iterator](){for(;e&&!e.term.equals(st.nil);){const t=e.out([st.first]);if(t.length!==1)throw new Error(`Invalid list: rdf:first count not equals one on ${e.value}`);const n=e.out([st.rest]);if(n.length!==1)throw new Error(`Invalid list: rdf:rest count not equals one on ${e.value}`);yield t[0],e=n[0]}}}}static traverse({ptr:e,quantifier:t="one",start:n="subject",end:o="object",subjects:i=[null],predicates:a=[null],objects:s=[null],graphs:l=[null],callback:u}){if(t==="one")return Re.traverseOne({ptr:e,start:n,end:o,subjects:i,predicates:a,objects:s,graphs:l,callback:u});if(t==="oneOrMore"){const f=Re.traverse({ptr:e,end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:u});return Re.traverseMore({ptrs:f,end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:u})}if(t==="zeroOrMore")return Re.traverseMore({ptrs:[e],end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:u});if(t==="zeroOrOne")return[e,...Re.traverse({ptr:e,end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:u})];throw new Error(`unknown quantifier ${t}`)}static traverseMore({ptrs:e,end:t,start:n,subjects:o,predicates:i,objects:a,graphs:s,callback:l}={}){let u=[...e],f,m;do{f=[];for(const y of e)f=[...f,...Re.traverseOne({ptr:y,end:t,start:n,subjects:o,predicates:i,objects:a,graphs:s,callback:l})];m&&(f=f.filter(y=>!m.has(y.term))),e=f,u=[...u,...f],m=new tt(u.map(y=>y.term))}while(f.length>0);return u}static traverseOne({ptr:e,start:t,end:n,subjects:o,predicates:i,objects:a,graphs:s,callback:l=(u,f)=>f.extend(u)}={}){const u=[];for(const f of o)for(const m of i)for(const y of a)for(const b of s){const g={subject:f,predicate:m,object:y,graph:b};g[t]=e.term;for(const x of e.dataset.match(g.subject,g.predicate,g.object,g.graph))u.push(l(new vl({dataset:e.dataset,end:n,quad:x,start:t}),e))}return u}}function _l(r,e){return e?t=>e(r.extend(t)):()=>{}}class kl{constructor({dataset:e,edges:t=[],factory:n,graph:o,term:i}){if(!e&&t.length===0)throw new Error("dataset or edges is required");if(t.length===0&&typeof i>"u")throw new Error("edges or term must be given");if(t.length>0&&i)throw new Error("edges or term must be given");this.dataset=e||t[t.length-1].dataset,this.edges=t,this.factory=n,this._graph=o,t.length===0&&(this._term=i)}get edge(){return this.edges[this.edges.length-1]}get graph(){return typeof this._graph=="object"?this._graph:this.edge&&this.edge.graph}get length(){return this._term!==void 0?1:this.edges.length+1}get startTerm(){return this._term||this.edges[0].startTerm}get term(){return this._term!==void 0?this._term:this.edge.term}get value(){const e=this.term;return e===null?void 0:e.value}addIn(e,t,n){return Re.add({ptr:this,start:"object",end:"subject",subjects:t,predicates:e,graphs:[this.graph||this.factory.defaultGraph()],callback:_l(this,n)})}addList(e,t){return Re.addList({ptr:this,predicates:e,graphs:[this.graph||this.factory.defaultGraph()],items:t})}addOut(e,t,n){return Re.add({ptr:this,start:"subject",end:"object",predicates:e,objects:t,graphs:[this.graph||this.factory.defaultGraph()],callback:_l(this,n)})}deleteIn(e,t){return Re.delete({ptr:this,start:"object",subjects:t,predicates:e})}deleteList(e){return Re.deleteList({ptr:this,predicates:e})}deleteOut(e,t){return Re.delete({ptr:this,start:"subject",predicates:e,objects:t})}execute({operation:e,quantifier:t,start:n,end:o,subjects:i,predicates:a,objects:s,graphs:l,items:u,callback:f}){return Re.execute({ptr:this,operation:e,quantifier:t,start:n,end:o,subjects:i,predicates:a,objects:s,graphs:l,items:u,callback:f})}extend(e){return new this.constructor({dataset:this.dataset,edges:[...this.edges,e],factory:this.factory,graph:this._graph})}hasIn(e,t){return Re.traverse({ptr:this,start:"object",end:"object",subjects:t,predicates:e,graphs:[this.graph]})}hasOut(e,t){return Re.traverse({ptr:this,start:"subject",end:"subject",predicates:e,objects:t,graphs:[this.graph]})}in(e,t){return Re.traverse({ptr:this,start:"object",end:"subject",subjects:t,predicates:e,graphs:[this.graph]})}isAny(){return!this.term}isList(){return Re.isList({ptr:this})}list(){return Re.list({ptr:this})}*nodes(){for(let e=0;e<this.length;e++)this._term!==void 0?yield{dataset:this.dataset,term:this._term}:this.edges.length>e?yield{dataset:this.edges[e].dataset,term:this.edges[e].startTerm}:this.edges.length===e&&(yield{dataset:this.edges[e-1].dataset,term:this.edges[e-1].term})}out(e,t){return Re.traverse({ptr:this,predicates:e,objects:t,graphs:[this.graph]})}*quads(){for(const{quad:e}of this.edges)yield e}trim(){return new this.constructor({dataset:this.dataset,factory:this.factory,graph:this.graph,term:this.term})}}function Sl(r,e){return r?r.equals(e):r===e}function sf(r,e){return!(r.dataset!==e.dataset||!Sl(r.graph,e.graph)||!Sl(r.term,e.term))}function El(r,e){return e?t=>e(new r.constructor({factory:r.factory,ptrs:[t]})):()=>{}}class kn{constructor({dataset:e,factory:t,ptrs:n,terms:o,graphs:i}){if(this.factory=t,n)this.ptrs=[...n];else{this.ptrs=[];for(const a of o||[null])for(const s of i||[null])this.ptrs.push(new kl({dataset:e,factory:t,graph:s,term:a}))}}get dataset(){const e=new Set(this.datasets);return e.size!==1?null:e[Symbol.iterator]().next().value}get datasets(){return this.ptrs.map(e=>e.dataset)}get term(){const e=new tt(this.terms);if(e.size===1)return e[Symbol.iterator]().next().value}get terms(){return this.ptrs.map(e=>e.term)}get value(){const e=this.term;return e?.value}get values(){return this.ptrs.map(e=>e.value)}addIn(e,t,n){const o=El(this,n);for(const i of this.ptrs)i.addIn(e,t,o);return this}addList(e,t){if(this.isAny())throw new Error("can't attach a list to an any ptr");for(const n of this.ptrs)n.addList(e,t);return this}addOut(e,t,n){const o=El(this,n);for(const i of this.ptrs)i.addOut(e,t,o);return this}clone(e){return new this.constructor({factory:this.factory,ptrs:this.ptrs,...e})}deleteIn(e,t){for(const n of this.ptrs)n.deleteIn(e,t);return this}deleteList(e){for(const t of this.ptrs)t.deleteList(e);return this}deleteOut(e,t){for(const n of this.ptrs)n.deleteOut(e,t);return this}distinct(){const e=this.ptrs.reduce((t,n)=>(t.some(o=>sf(o,n))||t.push(n.trim()),t),[]);return this.clone({ptrs:e})}execute(e){return this.clone({ptrs:this.ptrs.flatMap(t=>t.execute(e))})}executeAll(e){let t=this;for(const n of e)t=t.execute(n);return t}filter(e){return this.clone({ptrs:[...this].filter(e).map(t=>t.ptrs[0])})}hasIn(e,t){return this.clone({ptrs:this.ptrs.flatMap(n=>n.hasIn(e,t))})}hasOut(e,t){return this.clone({ptrs:this.ptrs.flatMap(n=>n.hasOut(e,t))})}in(e,t){return this.clone({ptrs:this.ptrs.flatMap(n=>n.in(e,t))})}isAny(){return this.ptrs.length>0&&this.ptrs.some(e=>e.isAny())}isList(){return this.ptrs.length!==1?!1:this.ptrs[0].isList()}list(){if(!this.isList())return;const e=this.ptrs[0].list(),t=this;return function*(){for(const n of e)yield t.clone({ptrs:[n]})}()}map(e){return[...this].map(e)}node(e){const t=this.dataset,n=[...e].map(o=>new kl({dataset:t,factory:this.factory,term:o}));return this.clone({ptrs:n})}out(e,t){return this.clone({ptrs:this.ptrs.flatMap(n=>n.out(e,t))})}*quads(){for(const{edges:e}of this.ptrs)for(const{quad:t}of e)yield t}trim(){return this.clone({ptrs:this.ptrs.map(e=>e.trim())})}*[Symbol.iterator](){for(const e of this.ptrs)yield this.clone({ptrs:[e]})}}nt("http://www.w3.org/2002/07/owl#");const zt=nt("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),lf=nt("http://www.w3.org/2000/01/rdf-schema#"),ne=nt("http://www.w3.org/ns/shacl#"),Ci=nt("https://schemas.link/shacl-next#"),pa=nt("http://www.w3.org/2001/XMLSchema#");function df(r){return r?`{${[...r.quads()].map(e=>Je(e)).join(" ")}}`:"{}"}function cf(r){return r?`{${r.map(e=>df(e)).join(" ")}}`:"{}"}var di,Il;function uf(){if(Il)return di;Il=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return di=e,di}var ci,Rl;function pf(){if(Rl)return ci;Rl=1;var r=uf(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return ci=t,ci}var ui,Nl;function ff(){if(Nl)return ui;Nl=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return ui=r,ui}var pi,jl;function hf(){if(jl)return pi;jl=1;var r=typeof Yt=="object"&&Yt&&Yt.Object===Object&&Yt;return pi=r,pi}var fi,Tl;function bf(){if(Tl)return fi;Tl=1;var r=hf(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return fi=t,fi}var hi,Al;function nc(){if(Al)return hi;Al=1;var r=bf(),e=r.Symbol;return hi=e,hi}var bi,Ll;function mf(){if(Ll)return bi;Ll=1;var r=nc(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,o=r?r.toStringTag:void 0;function i(a){var s=t.call(a,o),l=a[o];try{a[o]=void 0;var u=!0}catch{}var f=n.call(a);return u&&(s?a[o]=l:delete a[o]),f}return bi=i,bi}var mi,Ol;function gf(){if(Ol)return mi;Ol=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return mi=t,mi}var gi,$l;function vf(){if($l)return gi;$l=1;var r=nc(),e=mf(),t=gf(),n="[object Null]",o="[object Undefined]",i=r?r.toStringTag:void 0;function a(s){return s==null?s===void 0?o:n:i&&i in Object(s)?e(s):t(s)}return gi=a,gi}var vi,Dl;function yf(){if(Dl)return vi;Dl=1;function r(e){return e!=null&&typeof e=="object"}return vi=r,vi}var yi,Ml;function wf(){if(Ml)return yi;Ml=1;var r=vf(),e=yf(),t="[object Symbol]";function n(o){return typeof o=="symbol"||e(o)&&r(o)==t}return yi=n,yi}var wi,Cl;function xf(){if(Cl)return wi;Cl=1;var r=pf(),e=ff(),t=wf(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(t(u))return n;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=r(u);var m=i.test(u);return m||a.test(u)?s(u.slice(2),m?2:8):o.test(u)?n:+u}return wi=l,wi}var xi,Pl;function _f(){if(Pl)return xi;Pl=1;var r=xf(),e=1/0,t=17976931348623157e292;function n(o){if(!o)return o===0?o:0;if(o=r(o),o===e||o===-e){var i=o<0?-1:1;return i*t}return o===o?o:0}return xi=n,xi}var _i,Bl;function kf(){if(Bl)return _i;Bl=1;var r=_f();function e(t){var n=r(t),o=n%1;return n===n?o?n-o:n:0}return _i=e,_i}var ki,ql;function Sf(){if(ql)return ki;ql=1;var r=kf(),e="Expected a function";function t(n,o){var i;if(typeof o!="function")throw new TypeError(e);return n=r(n),function(){return--n>0&&(i=o.apply(this,arguments)),n<=1&&(o=void 0),i}}return ki=t,ki}var Si,Fl;function Ef(){if(Fl)return Si;Fl=1;var r=Sf();function e(t){return r(2,t)}return Si=e,Si}var If=Ef();const it=yc(If);let zl=class{constructor({details:e,factory:t,options:n,results:o=[]}={}){this.details=e,this.factory=t,this.options=n,this.results=o,this._conforms=it(()=>!this.results.some(i=>i.severity.equals(ne.Info)||i.severity.equals(ne.Violation)||i.severity.equals(ne.Warning))),this._ptr=it(()=>this.build())}get conforms(){return this._conforms()}get dataset(){return this.ptr.dataset}get ptr(){return this._ptr()}get term(){return this.ptr.term}build(){const e=new kn({dataset:this.factory.dataset(),factory:this.factory,terms:[this.factory.blankNode()]});e.addOut([zt.type],[ne.ValidationReport]).addOut([ne.conforms],[this.factory.literal(this.conforms.toString(),pa.boolean)]);for(const t of this.results)e.addOut([ne.result],[this.factory.blankNode()],n=>{t.build(n,this.options)});return e}coverage(){return this.results.flatMap(e=>e.coverage())}};function Rf(r,e){return Object.entries(e).reduce((t,[n,o])=>(o&&o.termType&&(o=Je(o)),t.replace(`{$${n}}`,o).replace(`{?${n}}`,o)),r)}let Nf=class{constructor({args:e={},constraintComponent:t,factory:n,focusNode:o,message:i=[],path:a,results:s=[],severity:l,shape:u,source:f=[],value:m,valuePaths:y=[]}={}){this.args=e,this.constraintComponent=t,this.factory=n,this.focusNode=o,this.path=a||u.path,this.results=s,this.severity=l,this.shape=u,this.source=f,this.value=m,this.valuePaths=y,this._message=it(()=>(this.shape.message.length>0&&(i=this.shape.message),i.length===0&&(i=this.shape.ptr.node([this.constraintComponent]).out([ne.message]).terms),i.map(b=>n.literal(Rf(b.value,e),b.language||null))))}get message(){return this._message()}build(e,{details:t}={}){e.addOut([zt.type],[ne.ValidationResult]).addOut([ne.focusNode],this.focusNode.terms).addOut([ne.resultSeverity],[this.severity]).addOut([ne.sourceConstraint],this.source).addOut([ne.sourceConstraintComponent],[this.constraintComponent]).addOut([ne.sourceShape],this.shape.ptr.terms),this.message&&e.addOut([ne.resultMessage],this.message);const n=o=>{if(o.quantifier==="one")return o.predicates.length>1?e.node([this.factory.blankNode()]).addList([ne.alternativePath],o.predicates):o.start==="object"?e.node([this.factory.blankNode()]).addOut([ne.inversePath],[o.predicates[0]]):e.node([o.predicates[0]]);if(o.quantifier==="oneOrMore")return e.node([this.factory.blankNode()]).addOut([ne.oneOrMorePath],[o.predicates[0]]);if(o.quantifier==="zeroOrMore")return e.node([this.factory.blankNode()]).addOut([ne.zeroOrMorePath],[o.predicates[0]]);if(o.quantifier==="zeroOrOne")return e.node([this.factory.blankNode()]).addOut([ne.zeroOrOnePath],[o.predicates[0]])};if(this.path&&(this.path.length===1?e.addOut([ne.resultPath],n(this.path[0]).terms):e.addList([ne.resultPath],this.path.map(o=>n(o).term))),typeof this.value<"u"&&e.addOut([ne.value],this.value.terms),t)for(const o of this.results)e.addOut([ne.detail],[this.factory.blankNode()],i=>{o.build(i,{details:t})})}coverage(){return[...this.valuePaths.flatMap(e=>[...e.quads()]),...this.results.flatMap(e=>e.coverage())]}};class fa{constructor({factory:e,focusNode:t,options:n={debug:!1,details:!1},processed:o=new Set,report:i=new zl({factory:e,options:n}),results:a=new Map,shape:s,value:l,valueOrNode:u,valuePaths:f,values:m}={}){this.factory=e,this.focusNode=t,this.options=n,this.processed=o,this.report=i,this.results=a,this.shape=s,this.value=l,this.valuePaths=f,this.valueOrNode=u,this.values=m}create({child:e,focusNode:t=this.focusNode,shape:n=this.shape,value:o=this.value,valueOrNode:i=this.valueOrNode,valuePaths:a=this.valuePaths,values:s=this.values}={}){return new fa({factory:this.factory,focusNode:t,options:this.options,processed:this.processed,report:e?new zl({factory:this.factory,options:this.options}):this.report,results:this.results,shape:n,value:o,valueOrNode:i,valuePaths:a,values:s})}id({shape:e=this.shape}={}){return`${Je(e.ptr.term)} - ${Je(this.focusNode.term)} - ${cf(this.valuePaths)}`}result(e){const t=new Nf({factory:this.factory,focusNode:this.focusNode,shape:this.shape,value:this.value,valuePaths:this.valuePaths,...e}),n=this.id();this.results.has(n)?this.results.get(n).add(t):this.results.set(n,new Set([t])),this.report.results.push(t)}debug(e,t){this.options.debug&&this.result({severity:Ci.Debug,constraintComponent:e,...t})}trace(e,t){this.options.trace&&this.result({severity:Ci.Trace,constraintComponent:e,...t})}test(e,t,n){e?this.debug(t,n):this.violation(t,n)}violation(e,t){this.result({constraintComponent:e,severity:this.shape.severity||ne.Violation,...t})}}function jf(){return{generic:Tf()}}function Tf(){return r=>{r.trace(Ci.TraversalConstraintComponent,{args:{},message:[r.factory.literal("Traversal")],value:r.valueOrNode})}}class Af{constructor(e){this.validations=new lr(e)}compile(e){const t=e.validator.options.coverage;if(e.deactivated)return[];let n=!1;const o=new Set;for(const i of e.ptr.execute({start:"subject",end:"predicate"})){const a=this.validations.get(i.term);a&&(o.add(a),i.term.equals(ne.property)&&(n=!0))}return t&&e.isPropertyShape&&!n&&o.add(jf),[...o].map(i=>i(e)).filter(Boolean)}}var Ot={},$t={},wr={},Ul;function oc(){if(Ul)return wr;Ul=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.BlankNode=void 0;let r=class{constructor(t){this.termType="BlankNode",this.value=t}equals(t){return!!t&&t.termType==="BlankNode"&&t.value===this.value}};return wr.BlankNode=r,wr}var xr={},_r={},Hl;function ic(){if(Hl)return _r;Hl=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.DefaultGraph=void 0;let r=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(t){return!!t&&t.termType==="DefaultGraph"}};return _r.DefaultGraph=r,r.INSTANCE=new r,_r}var kr={},Sr={},Gl;function ha(){if(Gl)return Sr;Gl=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.NamedNode=void 0;let r=class{constructor(t){this.termType="NamedNode",this.value=t}equals(t){return!!t&&t.termType==="NamedNode"&&t.value===this.value}};return Sr.NamedNode=r,Sr}var Vl;function ac(){if(Vl)return kr;Vl=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.Literal=void 0;const r=ha();let e=class Mr{constructor(n,o){this.termType="Literal",this.value=n,typeof o=="string"?(this.language=o,this.datatype=Mr.RDF_LANGUAGE_STRING,this.direction=""):o?"termType"in o?(this.language="",this.datatype=o,this.direction=""):(this.language=o.language,this.datatype=o.direction?Mr.RDF_DIRECTIONAL_LANGUAGE_STRING:Mr.RDF_LANGUAGE_STRING,this.direction=o.direction||""):(this.language="",this.datatype=Mr.XSD_STRING,this.direction="")}equals(n){return!!n&&n.termType==="Literal"&&n.value===this.value&&n.language===this.language&&(n.direction===this.direction||!n.direction&&this.direction==="")&&this.datatype.equals(n.datatype)}};return kr.Literal=e,e.RDF_LANGUAGE_STRING=new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),e.RDF_DIRECTIONAL_LANGUAGE_STRING=new r.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString"),e.XSD_STRING=new r.NamedNode("http://www.w3.org/2001/XMLSchema#string"),kr}var Er={},Wl;function sc(){if(Wl)return Er;Wl=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.Quad=void 0;let r=class{constructor(t,n,o,i){this.termType="Quad",this.value="",this.subject=t,this.predicate=n,this.object=o,this.graph=i}equals(t){return!!t&&(t.termType==="Quad"||!t.termType)&&this.subject.equals(t.subject)&&this.predicate.equals(t.predicate)&&this.object.equals(t.object)&&this.graph.equals(t.graph)}};return Er.Quad=r,Er}var Ir={},Jl;function lc(){if(Jl)return Ir;Jl=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.Variable=void 0;let r=class{constructor(t){this.termType="Variable",this.value=t}equals(t){return!!t&&t.termType==="Variable"&&t.value===this.value}};return Ir.Variable=r,Ir}var Ql;function Lf(){if(Ql)return xr;Ql=1,Object.defineProperty(xr,"__esModule",{value:!0}),xr.DataFactory=void 0;const r=oc(),e=ic(),t=ac(),n=ha(),o=sc(),i=lc();let a=0,s=class{constructor(u){this.blankNodeCounter=0,u=u||{},this.blankNodePrefix=u.blankNodePrefix||`df_${a++}_`}namedNode(u){return new n.NamedNode(u)}blankNode(u){return new r.BlankNode(u||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(u,f){return new t.Literal(u,f)}variable(u){return new i.Variable(u)}defaultGraph(){return e.DefaultGraph.INSTANCE}quad(u,f,m,y){return new o.Quad(u,f,m,y||this.defaultGraph())}fromTerm(u){switch(u.termType){case"NamedNode":return this.namedNode(u.value);case"BlankNode":return this.blankNode(u.value);case"Literal":return u.language?this.literal(u.value,u.language):u.datatype.equals(t.Literal.XSD_STRING)?this.literal(u.value):this.literal(u.value,this.fromTerm(u.datatype));case"Variable":return this.variable(u.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(u.subject),this.fromTerm(u.predicate),this.fromTerm(u.object),this.fromTerm(u.graph))}}fromQuad(u){return this.fromTerm(u)}resetBlankNodeCounter(){this.blankNodeCounter=0}};return xr.DataFactory=s,xr}var Xl;function Of(){return Xl||(Xl=1,function(r){var e=$t&&$t.__createBinding||(Object.create?function(n,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,a,s)}:function(n,o,i,a){a===void 0&&(a=i),n[a]=o[i]}),t=$t&&$t.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t(oc(),r),t(Lf(),r),t(ic(),r),t(ac(),r),t(ha(),r),t(sc(),r),t(lc(),r)}($t)),$t}var Dt={},Rr={},Nr={},Kl;function or(){if(Kl)return Nr;Kl=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.Translator=void 0;let r=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(t){throw new Error(`Invalid RDF ${t.datatype.value} value: '${t.value}'`)}registerHandler(t,n,o){for(const i of n)this.supportedRdfDatatypes.push(i),this.fromRdfHandlers[i.value]=t;for(const i of o){let a=this.toRdfHandlers[i];a||(this.toRdfHandlers[i]=a=[]),a.push(t)}}fromRdf(t,n){const o=this.fromRdfHandlers[t.datatype.value];return o?o.fromRdf(t,n):t.value}toRdf(t,n){const o=this.toRdfHandlers[typeof t];if(o)for(const i of o){const a=i.toRdf(t,n);if(a)return a}throw new Error(`Invalid JavaScript value: '${t}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}};return Nr.Translator=r,Nr}var Yl;function $f(){if(Yl)return Rr;Yl=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.TypeHandlerBoolean=void 0;const r=or();let e=class dc{fromRdf(n,o){switch(n.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return o&&r.Translator.incorrectRdfDataType(n),!1}toRdf(n,{datatype:o,dataFactory:i}){return i.literal(n?"true":"false",o||i.namedNode(dc.TYPE))}};return Rr.TypeHandlerBoolean=e,e.TYPE="http://www.w3.org/2001/XMLSchema#boolean",Rr}var jr={},Zl;function Df(){if(Zl)return jr;Zl=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.TypeHandlerDate=void 0;const r=or();let e=class Pi{fromRdf(n,o){switch(o&&!n.value.match(Pi.VALIDATORS[n.datatype.value.substr(33,n.datatype.value.length)])&&r.Translator.incorrectRdfDataType(n),n.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(n.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const i=n.value.split("-");return new Date(0,parseInt(i[0],10)-1,parseInt(i[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(n.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(n.value+"-01");default:return new Date(n.value)}}toRdf(n,{datatype:o,dataFactory:i}){if(o=o||i.namedNode(Pi.TYPES[0]),!(n instanceof Date))return null;const a=n;let s;switch(o.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 i.literal(s,o)}};return jr.TypeHandlerDate=e,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]$/},jr}var Tr={},ed;function Mf(){if(ed)return Tr;ed=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.TypeHandlerNumberDouble=void 0;const r=or();let e=class cc{fromRdf(n,o){const i=parseFloat(n.value);return o&&isNaN(i)&&r.Translator.incorrectRdfDataType(n),i}toRdf(n,{datatype:o,dataFactory:i}){return o=o||i.namedNode(cc.TYPES[0]),isNaN(n)?i.literal("NaN",o):isFinite(n)?n%1===0?null:i.literal(n.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),o):i.literal(n>0?"INF":"-INF",o)}};return Tr.TypeHandlerNumberDouble=e,e.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],Tr}var Ar={},td;function Cf(){if(td)return Ar;td=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.TypeHandlerNumberInteger=void 0;const r=or();let e=class Cr{fromRdf(n,o){const i=parseInt(n.value,10);return o&&(isNaN(i)||n.value.indexOf(".")>=0)&&r.Translator.incorrectRdfDataType(n),i}toRdf(n,{datatype:o,dataFactory:i}){return i.literal(String(n),o||(n<=Cr.MAX_INT&&n>=Cr.MIN_INT?i.namedNode(Cr.TYPES[0]):i.namedNode(Cr.TYPES[1])))}};return Ar.TypeHandlerNumberInteger=e,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,Ar}var Lr={},rd;function Pf(){if(rd)return Lr;rd=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.TypeHandlerString=void 0;let r=class{fromRdf(t){return t.value}toRdf(t,{datatype:n,dataFactory:o}){return o.literal(t,n)}};return Lr.TypeHandlerString=r,r.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/1999/02/22-rdf-syntax-ns#dirLangString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"],Lr}var nd;function od(){return nd||(nd=1,function(r){var e=Dt&&Dt.__createBinding||(Object.create?function(n,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(n,a,s)}:function(n,o,i,a){a===void 0&&(a=i),n[a]=o[i]}),t=Dt&&Dt.__exportStar||function(n,o){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,n,i)};Object.defineProperty(r,"__esModule",{value:!0}),t($f(),r),t(Df(),r),t(Mf(),r),t(Cf(),r),t(Pf(),r)}(Dt)),Dt}var Ei={},id;function Bf(){return id||(id=1,Object.defineProperty(Ei,"__esModule",{value:!0})),Ei}var ad;function qf(){return ad||(ad=1,function(r){var e=Ot&&Ot.__createBinding||(Object.create?function(b,g,x,_){_===void 0&&(_=x);var k=Object.getOwnPropertyDescriptor(g,x);(!k||("get"in k?!g.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return g[x]}}),Object.defineProperty(b,_,k)}:function(b,g,x,_){_===void 0&&(_=x),b[_]=g[x]}),t=Ot&&Ot.__exportStar||function(b,g){for(var x in b)x!=="default"&&!Object.prototype.hasOwnProperty.call(g,x)&&e(g,b,x)};Object.defineProperty(r,"__esModule",{value:!0}),r.fromRdf=l,r.toRdf=u,r.getTermRaw=f,r.getSupportedRdfDatatypes=m,r.getSupportedJavaScriptPrimitives=y;const n=Of(),o=od(),i=or();t(od(),r),t(Bf(),r),t(or(),r);const a=new n.DataFactory,s=new i.Translator;s.registerHandler(new o.TypeHandlerString,o.TypeHandlerString.TYPES.map(b=>a.namedNode(b)),["string"]),s.registerHandler(new o.TypeHandlerBoolean,[o.TypeHandlerBoolean.TYPE].map(b=>a.namedNode(b)),["boolean"]),s.registerHandler(new o.TypeHandlerNumberDouble,o.TypeHandlerNumberDouble.TYPES.map(b=>a.namedNode(b)),["number"]),s.registerHandler(new o.TypeHandlerNumberInteger,o.TypeHandlerNumberInteger.TYPES.map(b=>a.namedNode(b)),["number"]),s.registerHandler(new o.TypeHandlerDate,o.TypeHandlerDate.TYPES.map(b=>a.namedNode(b)),["object"]);function l(b,g){return s.fromRdf(b,g)}function u(b,g){return g&&"namedNode"in g&&(g={dataFactory:g}),g=g||{},g&&!g.dataFactory&&(g.dataFactory=a),s.toRdf(b,g)}function f(b,g){return b.termType==="Literal"?l(b,g):b.value}function m(){return s.getSupportedRdfDatatypes()}function y(){return s.getSupportedJavaScriptPrimitives()}}(Ot)),Ot}var Jr=qf();function sd(r){if(r.term.termType!=="BlankNode")return{quantifier:"one",start:"subject",end:"object",predicates:[r.term]};const e=r.out([ne.alternativePath]);if(e.ptrs.length===1&&e.ptrs[0].isList())return{quantifier:"one",start:"subject",end:"object",predicates:[...e.list()].map(a=>a.term)};const t=r.out([ne.inversePath]);if(t.term)return{quantifier:"one",start:"object",end:"subject",predicates:[t.term]};const n=r.out([ne.oneOrMorePath]);if(n.term)return{quantifier:"oneOrMore",start:"subject",end:"object",predicates:[n.term]};const o=r.out([ne.zeroOrMorePath]);if(o.term)return{quantifier:"zeroOrMore",start:"subject",end:"object",predicates:[o.term]};const i=r.out([ne.zeroOrOnePath]);if(i.term)return{quantifier:"zeroOrOne",start:"subject",end:"object",predicates:[i.term]}}function Ff(r){return r.terms.length===0?null:r.ptrs[0].isList()?[...r.list()].map(e=>sd(e)):[sd(r)]}class zf{constructor(e){this.shape=e,this._compiled=it(()=>this.shape.validator.registry.compile(e))}get compiled(){return this._compiled()}async validate(e){return e.focusNode.dataset.size===0||(this.shape.isPropertyShape?await this.validateProperty(e):await this.validateNode(e)),e}async validateNode(e){const t=e.create({shape:this.shape,valueOrNode:e.value||e.focusNode});for(const n of this.compiled)n.node&&await n.node(t),n.generic&&await n.generic(t)}async validateProperty(e){let t;this.shape.isSparqlShape?t=e.focusNode:t=e.focusNode.executeAll(this.shape.path);const n=t.node(new tt(t.terms)),o=[...t].reduce((a,s)=>{const l=s.term,u=t.node([l]);return a.has(l)||a.set(l,{value:u,valuePaths:[]}),a.get(l).valuePaths.push(s),a},new lr).values(),i=e.create({shape:this.shape,values:n});for(const a of this.compiled)a.property&&await a.property(i);for(const{value:a,valuePaths:s}of o){const l=e.create({shape:this.shape,value:a,valueOrNode:a,valuePaths:s});for(const u of this.compiled)u.generic&&await u.generic(l)}}}function Bi(r){const e=new tt,n=new kn({dataset:r.dataset,terms:r.terms}).execute({quantifier:"zeroOrMore",start:"object",end:"subject",predicates:[lf.subClassOf]});for(const o of n.ptrs)for(const{term:i}of o.nodes())e.add(i);return e}class Uf{constructor(e){this.targetClass=new tt([...Bi(e.hasOut([zt.type],[ne.NodeShape])),...Bi(e.out([ne.targetClass]))]),this.targetNode=e.out([ne.targetNode]).terms,this.targetObjectsOf=e.out([ne.targetObjectsOf]).terms,this.targetSubjectsOf=e.out([ne.targetSubjectsOf]).terms}resolve(e){const t=e.focusNode.node([null]),n=[...e.focusNode.hasOut([zt.type],this.targetClass).ptrs,...e.focusNode.node(this.targetNode).ptrs,...t.execute({start:"object",end:"object",predicates:this.targetObjectsOf}).ptrs,...t.execute({start:"subject",end:"subject",predicates:this.targetSubjectsOf}).ptrs],o=e.focusNode.clone({ptrs:n});return o.node([...new tt(o.terms)])}}class Hf{constructor(e,{validator:t}){this.ptr=e,this.validator=t,this._deactivated=it(()=>{const n=this.ptr.out([ne.deactivated]).term;return n&&Jr.fromRdf(n)}),this._message=it(()=>this.ptr.out([ne.message]).terms),this._path=it(()=>Ff(this.ptr.out([ne.path]))),this._severity=it(()=>this.ptr.out([ne.severity]).term),this._shapeValidator=it(()=>new zf(this)),this._sparql=it(()=>this.ptr.out([ne.sparql])),this._targetResolver=it(()=>new Uf(this.ptr))}get deactivated(){return this._deactivated()}get isPropertyShape(){return!!this.path}get isSparqlShape(){return this.sparql.terms.length>0}get path(){return this._path()}get targetResolver(){return this._targetResolver()}get message(){return this._message()}get severity(){return this._severity()}get shapeValidator(){return this._shapeValidator()}get sparql(){return this._sparql()}resolveTargets(e){return this.targetResolver.resolve(e)}async validate(e){const t=e.id({shape:this});if(e.processed.has(t)){if(e.results.has(t))for(const n of e.results.get(t))e.report.results.push(n);return e}return e.processed.add(t),this.shapeValidator.validate(e)}}function Gf(r){const e=parseInt(r.ptr.out([ne.maxCount]).value);return{property:Vf(e)}}function Vf(r){return e=>{e.test(e.values.terms.length<=r,ne.MaxCountConstraintComponent,{args:{maxCount:r},message:[e.factory.literal("More than {$maxCount} values")]})}}function Wf(r){const e=parseInt(r.ptr.out([ne.minCount]).value);return{property:Jf(e)}}function Jf(r){return e=>{e.test(e.values.terms.length>=r,ne.MinCountConstraintComponent,{args:{minCount:r},message:[e.factory.literal("Less than {$minCount} values")]})}}async function Qf(r,e){for(const t of r)if(!await e(t))return!1;return!0}async function Xf(r,e){return(await Promise.all(r.map(t=>e(t)))).filter(Boolean)}async function Cn(r,e){return Promise.all(r.map(e))}async function Kf(r,e){for(const t of r)if(await e(t))return!0;return!1}function Yf(r){const e=[...r.ptr.out([ne.and])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:Zf(e)}}function Zf(r){return async e=>{const t=await Cn(r,async o=>(await o.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report),n=t.every(o=>o.conforms);e.test(n,ne.AndConstraintComponent,{results:t.flatMap(o=>o.results),value:e.valueOrNode})}}function eh(r){const e=r.validator.shape(r.ptr.out([ne.not]));return{generic:th(e)}}function th(r){return async e=>{const t=(await r.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report,n=!t.conforms;e.test(n,ne.NotConstraintComponent,{args:{not:r.ptr.term},message:[e.factory.literal("Value does have shape {$not}")],results:t.results,value:e.valueOrNode})}}function rh(r){const e=[...r.ptr.out([ne.or])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:nh(e)}}function nh(r){return async e=>{let t=[],n;if(e.options.debug||e.options.details){const o=await Cn(r,async i=>(await i.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report);t=o.flatMap(i=>i.results),n=o.some(i=>i.conforms)}else n=await Kf(r,async o=>(await o.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report.conforms);e.test(n,ne.OrConstraintComponent,{results:t,value:e.valueOrNode})}}function oh(r){const e=[...r.ptr.out([ne.xone])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:ih(e)}}function ih(r){return async e=>{const t=await Cn(r,async o=>(await o.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report),n=t.filter(o=>o.conforms).length===1;e.test(n,ne.XoneConstraintComponent,{results:t.flatMap(o=>o.results),value:e.valueOrNode})}}function ah(r){if(!Jr.fromRdf(r.ptr.out([ne.closed]).term))return null;const t=r.ptr.out([ne.property]).map(i=>r.validator.shape(i)),n=new tt(t.filter(i=>!i.deactivated).map(i=>i.path[0].predicates[0])),o=new tt([...r.ptr.out([ne.ignoredProperties]).list()||[]].map(i=>i.term));return{node:sh(n,o)}}function sh(r,e){return t=>{const n=t.focusNode.execute({start:"subject",end:"predicate"}).filter(o=>e.has(o.term)?!1:!r.has(o.term));if(n.ptrs.length>0)for(const o of n)t.violation(ne.ClosedConstraintComponent,{message:[t.factory.literal("Predicate is not allowed (closed shape)")],path:[{quantifier:"one",start:"subject",end:"object",predicates:[o.term]}],value:t.focusNode.node([[...o.quads()][0].object])});else t.debug(ne.ClosedConstraintComponent)}}function lh(r){const e=r.ptr.out([ne.hasValue]).term;return{node:dh(e),property:ch(e)}}function dh(r){return e=>{e.test(r.equals(e.valueOrNode.term),ne.HasValueConstraintComponent,{args:{hasValue:r},message:[e.factory.literal("Value must be {$hasValue}")]})}}function ch(r){return e=>{const t=[...e.values].some(n=>r.equals(n.term));e.test(t,ne.HasValueConstraintComponent,{args:{hasValue:r},message:[e.factory.literal("Missing expected value {$hasValue}")]})}}function uh(r){const e=new tt([...r.ptr.out([ne.in]).list()].map(t=>t.term));return{generic:ph(e)}}function ph(r){return e=>{e.test(r.has(e.valueOrNode.term),ne.InConstraintComponent,{args:{in:[...r].map(t=>t.value).join(", ")},message:[e.factory.literal("Value is not in {$in}")],value:e.valueOrNode})}}function dr(r,e){if(!r||r.termType!=="Literal"||!e||e.termType!=="Literal"||ld(r)!==ld(e))return null;const t=Jr.fromRdf(r),n=Jr.fromRdf(e);return typeof t!=typeof n?null:typeof t=="string"?t.localeCompare(n):t-n}function ld(r){const e=/^.*(((\+|-)\d{2}:\d{2})|Z)$/;return pa.dateTime.equals(r.datatype)&&e.test(r.value)}function fh(r){const e=r.ptr.out([ne.disjoint]).term;return{generic:hh(e)}}function hh(r){return e=>{const t=e.focusNode.dataset.match(e.focusNode.term,r,e.valueOrNode.term);e.test(t.size===0,ne.DisjointConstraintComponent,{args:{disjoint:r},message:[e.factory.literal("Value node must not also be one of the values of {$disjoint}")],value:e.valueOrNode})}}function bh(r){const e=r.ptr.out([ne.equals]).term;return{node:mh(e),property:gh(e)}}function mh(r){return e=>{const t=e.focusNode.out([r]),n=t.filter(i=>!i.term.equals(e.focusNode.term)),o=t.terms.length!==0&&n.terms.length===0;e.test(o,ne.EqualsConstraintComponent,{args:{equals:r},message:[e.factory.literal("Must have same values as {$equals}")],value:n.terms[0]&&e.focusNode.node([n.terms[0]])||e.focusNode})}}function gh(r){return e=>{const t=new tt(e.focusNode.out([r]).terms),n=new tt(e.values.terms),o=[...n].filter(s=>!t.has(s)),i=[...t].filter(s=>!n.has(s)),a=[...o,...i];for(const s of a)e.violation(ne.EqualsConstraintComponent,{args:{equals:r},message:[e.factory.literal("Must have same values as {$equals}")],value:e.focusNode.node([s])});a.length===0&&e.debug(ne.EqualsConstraintComponent,{args:{equals:r},message:[e.factory.literal("Must have same values as {$equals}")]})}}function vh(r){const e=r.ptr.out([ne.lessThan]).term;return{property:yh(e)}}function yh(r){return e=>{const t=e.focusNode.out([r]).terms;for(const n of e.values)for(const o of t){const i=dr(n.term,o);i===null||i>=0?e.violation(ne.LessThanConstraintComponent,{args:{lessThan:r},message:[e.factory.literal("Value is not less than value of {$lessThan}")],value:n}):e.debug(ne.LessThanConstraintComponent,{args:{lessThan:r},message:[e.factory.literal("Value is not less than value of {$lessThan}")],value:n})}}}function wh(r){const e=r.ptr.out([ne.lessThanOrEquals]).term;return{property:xh(e)}}function xh(r){return e=>{const t=e.focusNode.out([r]).terms;for(const n of e.values)for(const o of t){const i=dr(n.term,o);i===null||i>0?e.violation(ne.LessThanOrEqualsConstraintComponent,{args:{lessThanOrEquals:r},message:[e.factory.literal("Value is not less than or equal to value of {$lessThanOrEquals}")],value:n}):e.debug(ne.LessThanOrEqualsConstraintComponent,{args:{lessThanOrEquals:r},message:[e.factory.literal("Value is not less than or equal to value of {$lessThanOrEquals}")],value:n})}}}function _h(r){const e=r.ptr.out([ne.maxExclusive]).term;return{generic:kh(e)}}function kh(r){return e=>{const t=dr(e.valueOrNode.term,r);e.test(t!==null&&t<0,ne.MaxExclusiveConstraintComponent,{args:{maxExclusive:r},message:[e.factory.literal("Value is not less than {$maxExclusive}")],value:e.valueOrNode})}}function Sh(r){const e=r.ptr.out([ne.maxInclusive]).term;return{generic:Eh(e)}}function Eh(r){return e=>{const t=dr(e.valueOrNode.term,r);e.test(t!==null&&t<=0,ne.MaxInclusiveConstraintComponent,{args:{maxInclusive:r},message:[e.factory.literal("Value is not less than or equal to {$maxInclusive}")],value:e.valueOrNode})}}function Ih(r){const e=r.ptr.out([ne.minExclusive]).term;return{generic:Rh(e)}}function Rh(r){return e=>{const t=dr(e.valueOrNode.term,r);e.test(t!==null&&t>0,ne.MinExclusiveConstraintComponent,{args:{minExclusive:r},message:[e.factory.literal("Value is not greater than {$minExclusive}")],value:e.valueOrNode})}}function Nh(r){const e=r.ptr.out([ne.minInclusive]).term;return{generic:jh(e)}}function jh(r){return e=>{const t=dr(e.valueOrNode.term,r);e.test(t!==null&&t>=0,ne.MinInclusiveConstraintComponent,{args:{minInclusive:r},message:[e.factory.literal("Value is not greater than or equal to {$minInclusive}")],value:e.valueOrNode})}}function Th(r){const e=[...r.ptr.out([ne.node])].map(t=>r.validator.shape(t));return{generic:Ah(e)}}function Ah(r){return async e=>{for(const t of r){const n=await t.validate(e.create({child:!0,focusNode:e.valueOrNode}));e.test(n.report.conforms,ne.NodeConstraintComponent,{args:{node:t.ptr.term},message:[e.factory.literal("Value does not have shape {$node}")],results:n.report.results,value:e.valueOrNode})}}}function Lh(r){const e=[...r.ptr.out([ne.property])].map(t=>r.validator.shape(t));return{generic:Oh(e)}}function Oh(r){return async e=>{const t=e.create({focusNode:e.valueOrNode});for(const n of r)await n.validate(t)}}function $h(r){const e=r.validator.shape(r.ptr.out([ne.qualifiedValueShape])),t=r.ptr.out([ne.qualifiedValueShapesDisjoint]).term,n=t?Jr.fromRdf(t):!1,o=r.ptr.out([ne.qualifiedMaxCount]).term,i=o?parseInt(o.value):null,a=r.ptr.out([ne.qualifiedMinCount]).term,s=a?parseInt(a.value):null;return{property:Dh(e,n,i,s)}}function Dh(r,e,t,n){return async o=>{const i=[];let a=[];e&&(a=new Set(o.shape.ptr.in([ne.property]).out([ne.property]).out([ne.qualifiedValueShape]).filter(l=>!l.term.equals(r.ptr.term)).map(l=>o.shape.validator.shape(l))));const s=(await Xf(o.values,async l=>{const u=(await r.validate(o.create({child:!0,focusNode:l}))).report;if(i.push(u.results),!u.conforms)return!1;if(a.length===0)return!0;if(o.options.debug||o.options.details){const f=await Cn([...a],async m=>(await m.validate(o.create({child:!0,focusNode:l}))).report);return i.push(f.flatMap(m=>m.results)),!f.every(m=>m.conforms)}else return!await Qf([...a],async f=>(await f.validate(o.create({child:!0,focusNode:l}))).report.conforms)})).length;t!==null&&o.test(s<=t,ne.QualifiedMaxCountConstraintComponent,{args:{qualifiedMaxCount:t,qualifiedValueShape:r.ptr.term,qualifiedValueShapesDisjoint:e},message:[o.factory.literal("More than {$qualifiedMaxCount} values have shape {$qualifiedValueShape}")],results:i.flat()}),n!==null&&o.test(s>=n,ne.QualifiedMinCountConstraintComponent,{args:{qualifiedMinCount:n,qualifiedValueShape:r.ptr.term,qualifiedValueShapesDisjoint:e},message:[o.factory.literal("Less than {$qualifiedMinCount} values have shape {$qualifiedValueShape}")],results:i.flat()})}}function Mh(r,e){return e?e.slice(0,r.length)===r:!1}function Ch(r){const e=[...new Set([...r.ptr.out([ne.languageIn]).list()].map(t=>t.value))];return{generic:Ph(e)}}function Ph(r){return e=>{const t=r.some(n=>Mh(n,e.valueOrNode.term.language));e.test(t,ne.LanguageInConstraintComponent,{args:{languageIn:r.join(", ")},message:[e.factory.literal("Language does not match any of {$languageIn}")],value:e.valueOrNode})}}function Bh(r){const e=parseInt(r.ptr.out([ne.maxLength]).value);return{generic:qh(e)}}function qh(r){return e=>{const t=e.valueOrNode.term.termType!=="BlankNode"&&e.valueOrNode.value.length<=r;e.test(t,ne.MaxLengthConstraintComponent,{args:{maxLength:r},message:[e.factory.literal("Value has more than {$maxLength} characters")],value:e.valueOrNode})}}function Fh(r){const e=parseInt(r.ptr.out([ne.minLength]).value);return{generic:zh(e)}}function zh(r){return e=>{const t=e.valueOrNode.term.termType!=="BlankNode"&&e.valueOrNode.value.length>=r;e.test(t,ne.MinLengthConstraintComponent,{args:{minLength:r},message:[e.factory.literal("Value has less than {$minLength} characters")],value:e.valueOrNode})}}function Uh(r){const e=r.ptr.out([ne.pattern]).value,t=r.ptr.out([ne.flags]).value,n=new RegExp(e,t);return{generic:Hh(e,t,n)}}function Hh(r,e,t){return n=>{n.test(t.test(n.valueOrNode.term.value),ne.PatternConstraintComponent,{args:{flags:e,pattern:r},message:[n.factory.literal('Value does not match pattern "{$pattern}"')],value:n.valueOrNode})}}function Gh(r){const e=r.ptr.out([ne.uniqueLang]).term;return e.value==="true"&&pa.boolean.equals(e.datatype)?{property:Vh()}:null}function Vh(){return r=>{const t=Object.entries(r.values.terms.reduce((n,o)=>(o.language&&(n[o.language]=(n[o.language]||0)+1),n),{})).filter(([,n])=>n>1);for(const[n]of t)r.violation(ne.UniqueLangConstraintComponent,{args:{lang:n},message:[r.factory.literal('Language "{?lang}" used more than once')]});t.length===0&&r.debug(ne.UniqueLangConstraintComponent)}}const gn=nt("http://www.w3.org/ns/shacl#"),uc=nt("https://schemas.link/shacl-next#");class ir{constructor({results:e=[]}={}){this.results=e}get conforms(){return!this.results.some(e=>e.severity.equals(gn.Info)||e.severity.equals(gn.Violation)||e.severity.equals(gn.Warning))}}function Wh(r,e){return Object.entries(e).reduce((t,[n,o])=>(o&&o.termType&&(o=Je(o)),t.replace(`{$${n}}`,o).replace(`{?${n}}`,o)),r)}class Sn{constructor({args:e={},factory:t,message:n=[],severity:o=gn.Violation}={}){this.severity=o,this.message=n.map(i=>t.literal(Wh(i.value,e),i.language||null))}}class ba{constructor({factory:e=ua}={}){this.factory=e}clone({factory:e}={}){return new ba({factory:e||this.factory})}validate(){return new ir}validateSimple(){return!0}}class cr extends ba{constructor({datatypes:e,factory:t}={}){super({factory:t}),this.datatypes=[];for(const n of Array.isArray(e)?e:[e])n&&this.datatypes.push(this.factory.fromTerm(n))}clone({factory:e}={}){return new cr({datatypes:this.datatypes,factory:e||this.factory})}}class Jh{constructor({factory:e=ua,validations:t}={}){if(this.factory=e,this.validations=new lr,t)for(const n of Object.values(t)){const o=n.clone({factory:this.factory});for(const i of o.datatypes)this.validations.set(i,o)}}validate(e){const t=this.validations.get(e.datatype);return t?t.validate(e):new ir}validateSimple(e){const t=this.validations.get(e.datatype);return t?t.validateSimple(e):!0}}class je extends cr{constructor(e,t,{factory:n}={}){super({datatypes:t,factory:n}),this.message=[this.factory.literal("term value {$this} matches pattern {$pattern}")],this.patterns=Array.isArray(e)?e:[e]}clone({factory:e}={}){return new je(this.patterns,this.datatypes,{factory:e||this.factory})}validate(e){const t=this.patterns.map(n=>{let o;n.test(e.value)&&(o=uc.Debug);const i={pattern:this.factory.literal(n.toString()),this:e};return new Sn({args:i,factory:this.factory,message:this.message,severity:o})});return new ir({results:t})}validateSimple(e){return this.patterns.every(t=>t.test(e.value))}}const Qh=/^([-+]?[0-9]+)$/;class Ve extends je{constructor(e=null,t=null,n,{factory:o}={}){super(Qh,n,{factory:o}),this.maxInclusive=null,this.minInclusive=null,typeof t=="string"&&(this.maxInclusive=BigInt(t)),typeof e=="string"&&(this.minInclusive=BigInt(e))}clone({factory:e}={}){return new Ve(this.minInclusive?.toString(),this.maxInclusive?.toString(),this.datatypes,{factory:e||this.factory})}validate(e){const t=super.validate(e).results;if(!uc.Debug.equals(t[0].severity))return new ir({results:t});const n=BigInt(e.value);if(this.minInclusive!==null&&n<this.minInclusive){const o=`term value "${e.value}" is less than "${this.minInclusive.toString()}"`,i=[this.factory.literal(o)];t.push(new Sn({factory:this.factory,message:i}))}if(this.maxInclusive!==null&&n>this.maxInclusive){const o=`term value "${e.value}" is greater than "${this.maxInclusive.toString()}"`,i=[this.factory.literal(o)];t.push(new Sn({factory:this.factory,message:i}))}return new ir({results:t})}validateSimple(e){if(!super.validateSimple(e))return!1;const t=BigInt(e.value);return!(this.minInclusive!==null&&t<this.minInclusive||this.maxInclusive!==null&&t>this.maxInclusive)}}class ma extends cr{constructor(e,t,{factory:n}={}){super({datatypes:t,factory:n}),this.values=new Set(e)}clone({factory:e}={}){return new ma(this.values,this.datatypes,{factory:e||this.factory})}validate(e){const t=[];if(!this.values.has(e.value)){const n=`term value "${e.value}" is not included in the list: ${[...this.values].join(",")}`,o=[this.factory.literal(n)];t.push(new Sn({factory:this.factory,message:o}))}return new ir({results:t})}validateSimple(e){return this.values.has(e.value)}}const _e={xsd:nt("http://www.w3.org/2001/XMLSchema#")},Xh=new cr({datatypes:_e.xsd.anySimpleType}),Kh=new cr({datatypes:_e.xsd.anyAtomicType}),Pn=/^([^\ud8ff-\udfff\ufffe-\uffff]*)$/,Yh=/^((\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+))$/,pc=/^((\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+)([Ee](\+|-)?[0-9]+)?|(\+|-)?INF|NaN)$/,ga=/^(-?P((([0-9]+Y([0-9]+M)?([0-9]+D)?|([0-9]+M)([0-9]+D)?|([0-9]+D))(T(([0-9]+H)([0-9]+M)?([0-9]+(\.[0-9]+)?S)?|([0-9]+M)([0-9]+(\.[0-9]+)?S)?|([0-9]+(\.[0-9]+)?S)))?)|(T(([0-9]+H)([0-9]+M)?([0-9]+(\.[0-9]+)?S)?|([0-9]+M)([0-9]+(\.[0-9]+)?S)?|([0-9]+(\.[0-9]+)?S)))))$/,fc=/^(-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,Zh=/^((([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,eb=/^(-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,tb=/^(-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,rb=/^(-?([1-9][0-9]{3,}|0[0-9]{3})(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,nb=/^(--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ob=/^(---(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ib=/^(--(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ab=/^(([0-9a-fA-F]{2})*)$/,sb=/^(((([A-Za-z0-9+/] ?){4})*(([A-Za-z0-9+/] ?){3}[A-Za-z0-9+/]|([A-Za-z0-9+/] ?){2}[AEIMQUYcgkosw048] ?=|[A-Za-z0-9+/] ?[AQgw] ?= ?=))?)$/,lb=new je(Pn,_e.xsd.string),db=new ma(["1","true","0","false"],_e.xsd.boolean),cb=new je(Yh,_e.xsd.decimal),ub=new je(pc,_e.xsd.float),pb=new je(pc,_e.xsd.double),fb=new je(ga,_e.xsd.duration),hb=new je(fc,_e.xsd.dateTime),bb=new je(Zh,_e.xsd.time),mb=new je(eb,_e.xsd.date),gb=new je(tb,_e.xsd.gYearMonth),vb=new je(rb,_e.xsd.gYear),yb=new je(nb,_e.xsd.gMonthDay),wb=new je(ob,_e.xsd.gDay),xb=new je(ib,_e.xsd.gMonth),_b=new je(ab,_e.xsd.hexBinary),kb=new je(sb,_e.xsd.base64Binary),Sb=new je(Pn,_e.xsd.anyURI),hc=/^([^\u000d\u000a\u0009]*)$/,Eb=/^([^ ]+( [^ ]+)*)*$/,Ib=/^([a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*)$/,Rb=/^([^DT]*)$/,Nb=/^([^YM]*[DT].*)$/,jb=/^(.*(Z|(\+|-)[0-9][0-9]:[0-9][0-9]))$/,Tb=new je([Pn,hc],_e.xsd.normalizedString),Ab=new je([Pn,hc,Eb],_e.xsd.token),Lb=new je(Ib,_e.xsd.language),Ob=new Ve(null,null,_e.xsd.integer),$b=new Ve(null,"0",_e.xsd.nonPositiveInteger),Db=new Ve(null,"-1",_e.xsd.negativeInteger),Mb=new Ve("-9223372036854775808","9223372036854775807",_e.xsd.long),Cb=new Ve("-2147483648","2147483647",_e.xsd.int),Pb=new Ve("-32768","32767",_e.xsd.short),Bb=new Ve("-128","127",_e.xsd.byte),qb=new Ve("0",null,_e.xsd.nonNegativeInteger),Fb=new Ve("0","18446744073709551615",_e.xsd.unsignedLong),zb=new Ve("0","4294967295",_e.xsd.unsignedInt),Ub=new Ve("0","65535",_e.xsd.unsignedShort),Hb=new Ve("0","255",_e.xsd.unsignedByte),Gb=new Ve("1",null,_e.xsd.positiveInteger),Vb=new je([ga,Rb],_e.xsd.yearMonthDuration),Wb=new je([ga,Nb],_e.xsd.dayTimeDuration),Jb=new je([fc,jb],_e.xsd.dateTimeStamp),Qb=Object.freeze(Object.defineProperty({__proto__:null,anyAtomicType:Kh,anySimpleType:Xh,anyURI:Sb,base64Binary:kb,boolean:db,byte:Bb,date:mb,dateTime:hb,dateTimeStamp:Jb,dayTimeDuration:Wb,decimal:cb,double:pb,duration:fb,float:ub,gDay:wb,gMonth:xb,gMonthDay:yb,gYear:vb,gYearMonth:gb,hexBinary:_b,int:Cb,integer:Ob,language:Lb,long:Mb,negativeInteger:Db,nonNegativeInteger:qb,nonPositiveInteger:$b,normalizedString:Tb,positiveInteger:Gb,short:Pb,string:lb,time:bb,token:Ab,unsignedByte:Hb,unsignedInt:zb,unsignedLong:Fb,unsignedShort:Ub,yearMonthDuration:Vb},Symbol.toStringTag,{value:"Module"}));class Xb extends Jh{constructor({factory:e}={}){super({factory:e,validations:{...Qb}})}}const Kb=new lr([[ne.BlankNode,new Set(["BlankNode"])],[ne.BlankNodeOrIRI,new Set(["BlankNode","NamedNode"])],[ne.BlankNodeOrLiteral,new Set(["BlankNode","Literal"])],[ne.IRI,new Set(["NamedNode"])],[ne.IRIOrLiteral,new Set(["NamedNode","Literal"])],[ne.Literal,new Set(["Literal"])]]);function Yb(r){const e=r.ptr.out([ne.class]).map(t=>Bi(t));return{generic:Zb(e)}}function Zb(r){return e=>{const t=new tt(e.valueOrNode.out([zt.type]).terms);for(const n of r){const o=[...t].some(i=>n.has(i));e.test(o,ne.ClassConstraintComponent,{value:e.valueOrNode})}}}function em(r){const e=r.ptr.out([ne.datatype]).term,t=new Xb;return{generic:tm(e,t)}}function tm(r,e){return t=>{const n=r.equals(t.valueOrNode.term.datatype)&&e.validateSimple(t.valueOrNode.term);t.test(n,ne.DatatypeConstraintComponent,{args:{datatype:r},message:[t.factory.literal("Value does not have datatype {$datatype}")],value:t.valueOrNode})}}function rm(r){const e=r.ptr.out([ne.nodeKind]).term,t=Kb.get(e);return{generic:nm(e,t)}}function nm(r,e){return t=>{t.test(e.has(t.valueOrNode.term.termType),ne.NodeKindConstraintComponent,{args:{nodeKind:r},message:[t.factory.literal("Value does not have node kind {$nodeKind}")],value:t.valueOrNode})}}const om=new lr([[ne.maxCount,Gf],[ne.minCount,Wf],[ne.and,Yf],[ne.not,eh],[ne.or,rh],[ne.xone,oh],[ne.closed,ah],[ne.hasValue,lh],[ne.in,uh],[ne.disjoint,fh],[ne.equals,bh],[ne.lessThan,vh],[ne.lessThanOrEquals,wh],[ne.maxExclusive,_h],[ne.maxInclusive,Sh],[ne.minExclusive,Ih],[ne.minInclusive,Nh],[ne.node,Th],[ne.property,Lh],[ne.qualifiedValueShape,$h],[ne.languageIn,Ch],[ne.maxLength,Bh],[ne.minLength,Fh],[ne.pattern,Uh],[ne.uniqueLang,Gh],[ne.class,Yb],[ne.datatype,em],[ne.nodeKind,rm]]);class im{constructor(e,{factory:t,...n}){if(this.factory=t,this.options=n,this.registry=new Af(om),this.shapesPtr=new kn({dataset:e,factory:t}),this.shapes=new lr,this.options.coverage&&(this.options.debug=!0,this.options.details=!0,this.options.trace=!0),this.options.validations)for(const[i,a]of this.options.validations)this.registry.validations.set(i,a);const o=[...this.shapesPtr.hasOut([ne.targetClass]),...this.shapesPtr.hasOut([ne.targetNode]),...this.shapesPtr.hasOut([ne.targetObjectsOf]),...this.shapesPtr.hasOut([ne.targetSubjectsOf]),...this.shapesPtr.hasOut([zt.type],[ne.NodeShape]),...this.shapesPtr.hasOut([zt.type],[ne.PropertyShape])];for(const i of o)this.shape(i)}shape(e){if(!e.term)return null;let t=this.shapes.get(e.term);return t||(t=new Hf(e,{validator:this}),this.shapes.set(e.term,t)),t}async validate(e,t){const n=new kn({...e,factory:this.factory}),o=new fa({factory:this.factory,focusNode:n,options:this.options,validator:this});t?t=t.map(i=>this.shape(this.shapesPtr.node(i.terms))):t=this.shapes.values();for(const i of t){const a=o.create({shape:i});let s;n.isAny()?s=i.resolveTargets(a):s=n;for(const l of s)await i.validate(a.create({focusNode:l}))}return o.report}}let am=class extends HTMLElement{constructor(e){super(),this.shape=null,this.attachShadow({mode:"open"}),this.form=document.createElement("form"),this.config=new gl(e,this.form),this.form.addEventListener("change",t=>{t.stopPropagation(),this.config.editMode&&this.validate(!0).then(n=>{this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!0,detail:{valid:n.conforms,report:n}}))}).catch(n=>{console.warn(n)})})}static get observedAttributes(){return gl.dataAttributes()}connectedCallback(){this.shadowRoot.prepend(this.form)}attributeChangedCallback(){this.config.updateAttributes(this),this.initialize()}initialize(){clearTimeout(this.initDebounceTimeout),this.initDebounceTimeout=setTimeout(async()=>{this.form.replaceChildren(document.createTextNode(this.config.attributes.loading));try{await this.config.loader.loadGraphs(),this.form.replaceChildren(),this.config.renderedNodes.clear();const e=this.findRootShaclShapeSubject();if(e){this.form.classList.forEach(n=>{this.form.classList.remove(n)}),this.form.classList.toggle("mode-edit",this.config.editMode),this.form.classList.toggle("mode-view",!this.config.editMode),this.config.theme.apply(this.form);const t=[this.config.theme.stylesheet];for(const n of bu())n.stylesheet&&t.push(n.stylesheet);if(this.shadowRoot.adoptedStyleSheets=t,this.shape=new Rt(e,this.config,this.config.attributes.valuesSubject?Se.namedNode(this.config.attributes.valuesSubject):void 0),this.form.appendChild(this.shape),this.config.editMode){if(this.config.attributes.submitButton!==null){const n=this.config.theme.createButton(this.config.attributes.submitButton||"Submit",!0);n.addEventListener("click",o=>{o.preventDefault(),this.form.reportValidity()&&this.validate().then(i=>{if(i?.conforms)this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}));else{let a=this.form.querySelector(":scope .invalid > .editor");a?a.focus():this.form.querySelector(":scope .invalid")?.scrollIntoView()}})}),this.form.appendChild(n)}this.config.attributes.valuesSubject&&this.removeFromDataGraph(Se.namedNode(this.config.attributes.valuesSubject)),await this.validate(!0)}}else if(this.config.store.countQuads(null,null,null,vn)>0)throw new Error("shacl root node shape not found")}catch(e){console.error(e);const t=document.createElement("div");t.innerText=String(e),this.form.replaceChildren(t)}},200)}serialize(e="text/turtle",t=this.toRDF()){const n=t.getQuads(null,null,null,null);return uu(n,e,this.config.prefixes)}toRDF(e=new ze){return this.shape?.toRDF(e),e}registerPlugin(e){hu(e),this.initialize()}setTheme(e){this.config.theme=e,this.initialize()}setSharedShapesGraph(e){Gp(e),this.initialize()}setClassInstanceProvider(e){this.config.classInstanceProvider=e,this.initialize()}async validate(e=!1){for(const t of this.form.querySelectorAll(":scope .validation-error"))t.remove();for(const t of this.form.querySelectorAll(":scope .property-instance"))t.classList.remove("invalid"),t.querySelector(":scope > .editor")?.value?t.classList.add("valid"):t.classList.remove("valid");this.config.store.deleteGraph(this.config.valuesGraphId||""),this.shape?.toRDF(this.config.store),this.shape&&this.config.store.add(new In(this.shape.shaclSubject,Se.namedNode(ve+"targetNode"),this.shape.nodeId,this.config.valuesGraphId));try{const t=this.config.store,n=await new im(t,{details:!0,factory:Se}).validate({dataset:t});for(const o of n.results)if(o.focusNode?.ptrs?.length)for(const i of o.focusNode.ptrs){const a=i._term;if(o.path?.length){const s=o.path[0].predicates[0];let l=this.form.querySelectorAll(`
343
+ `}function Yp(){return""}function tc(n){return"<"+n.value+">"}const Zp=/["\\\\\n\r]/,ef=/["\\\\\n\r]/g,tf={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function rf(n){return tf[n]}function nf(n){return Zp.test(n)?n.replace(ef,rf):n}function of(n){const e=nf(n.value);return n.datatype.value==="http://www.w3.org/2001/XMLSchema#string"?'"'+e+'"':n.datatype.value==="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"?'"'+e+'"@'+n.language:'"'+e+'"^^'+tc(n.datatype)}function af(n,e){const t=e(n.subject),r=e(n.predicate),o=e(n.object),i=e(n.graph);return`${t} ${r} ${o} ${i?i+" ":""}.`}function sf(n){return"?"+n.value}function Je(n){if(!n)return null;if(n.termType==="BlankNode")return Xp(n);if(n.termType==="DefaultGraph")return Yp();if(n.termType==="Literal")return of(n);if(n.termType==="NamedNode")return tc(n);if(n.termType==="Quad"||n.subject&&n.predicate&&n.object&&n.graph)return af(n,Je);if(n.termType==="Variable")return sf(n);if(n[Symbol.iterator])return Kp(n,Je);throw new Error(`unknown termType ${n.termType}`)}class cr{constructor(e){if(this.index=new Map,e)for(const[t,r]of e)this.set(t,r)}get size(){return this.index.size}clear(){this.index.clear()}delete(e){return this.index.delete(Je(e))}*entries(){for(const[,{term:e,value:t}]of this.index)yield[e,t]}forEach(e,t){for(const r of this.entries())e.call(t,r[1],r[0],this)}get(e){const t=this.index.get(Je(e));return t&&t.value}has(e){return this.index.has(Je(e))}*keys(){for(const[,{term:e}]of this.index)yield e}set(e,t){const r=Je(e);return this.index.set(r,{term:e,value:t}),this}*values(){for(const[,{value:e}]of this.index)yield e}[Symbol.iterator](){return this.entries()[Symbol.iterator]()}}class yl{constructor({dataset:e,end:t,quad:r,start:o}){this.dataset=e,this.end=t,this.quad=r,this.start=o}get term(){return this.quad[this.end]}get graph(){return this.quad.graph}get startTerm(){return this.quad[this.start]}}function wl(n){try{return Je(n)}catch{return null}}class tt{constructor(e){if(this.index=new Map,e)for(const t of e)this.add(t)}get size(){return this.index.size}add(e){const t=Je(e);return this.index.has(t)||this.index.set(t,e),this}clear(){this.index.clear()}delete(e){return e?this.index.delete(wl(e)):!1}entries(){return this.values().entries()}forEach(e,t){return this.values().forEach(e,t)}has(e){return e?this.index.has(wl(e)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let rc=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};rc.prototype.termType="BlankNode";let ca=class{equals(e){return!!e&&e.termType===this.termType}};ca.prototype.termType="DefaultGraph";ca.prototype.value="";function xl(n,e){if(!e)return null;if(e.termType==="BlankNode")return n.blankNode(e.value);if(e.termType==="DefaultGraph")return n.defaultGraph();if(e.termType==="Literal")return n.literal(e.value,e.language||n.namedNode(e.datatype.value));if(e.termType==="NamedNode")return n.namedNode(e.value);if(e.termType==="Quad"){const t=n.fromTerm(e.subject),r=n.fromTerm(e.predicate),o=n.fromTerm(e.object),i=n.fromTerm(e.graph);return n.quad(t,r,o,i)}if(e.termType==="Variable")return n.variable(e.value);throw new Error(`unknown termType ${e.termType}`)}let gn=class{constructor(e,t,r,o=""){this.value=e,this.language=t,this.datatype=r,this.direction=o}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value&&e.language===this.language&&e.datatype.equals(this.datatype)&&(e.direction||"")===this.direction}};gn.prototype.termType="Literal";let Yr=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};Yr.prototype.termType="NamedNode";let ua=class{constructor(e,t,r,o){this.subject=e,this.predicate=t,this.object=r,this.graph=o}equals(e){return!!e&&(e.termType==="Quad"||!e.termType)&&e.subject.equals(this.subject)&&e.predicate.equals(this.predicate)&&e.object.equals(this.object)&&e.graph.equals(this.graph)}};ua.prototype.termType="Quad";ua.prototype.value="";let nc=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};nc.prototype.termType="Variable";const lf=new Yr("http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString"),_l=new Yr("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),df=new Yr("http://www.w3.org/2001/XMLSchema#string");let oc=class{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new ca}}namedNode(e){return new Yr(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new rc(e)}literal(e,t){return typeof t=="string"?new gn(e,t,_l):typeof t?.language=="string"?new gn(e,t.language,t.direction?lf:_l,t.direction):new gn(e,"",t||df)}variable(e){return new nc(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,r,o=this.defaultGraph()){return new ua(e,t,r,o)}fromTerm(e){return xl(this,e)}fromQuad(e){return xl(this,e)}};oc.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const pa=new oc,cf={apply:(n,e,t)=>n(t[0]),get:(n,e)=>n(e)};function nt(n,{factory:e=pa}={}){const t=(r="")=>e.namedNode(`${n}${r.raw||r}`);return typeof Proxy>"u"?t:new Proxy(t,cf)}nt("http://www.w3.org/2001/XMLSchema#");const st=nt("http://www.w3.org/1999/02/22-rdf-syntax-ns#");nt("http://www.w3.org/2000/01/rdf-schema#");class Re{static add({ptr:e,start:t,end:r,subjects:o=[null],predicates:i=[null],objects:a=[null],graphs:s,callback:l}={}){if(!e.factory)throw new Error("add operation requires a factory");let u=()=>{};l&&(u=f=>{l(new yl({dataset:e.dataset,start:t,end:r,quad:f}))});for(const f of o)for(const m of i)for(const y of a)for(const b of s){const g={subject:f,predicate:m,object:y,graph:b};g[t]=e.term;const x=e.factory.quad(g.subject,g.predicate,g.object,g.graph);e.dataset.add(x),u(x)}return e}static addList({ptr:e,predicates:t,items:r,graphs:o}){if(e.isAny())throw new Error("can't attach a list to an any ptr");for(const i of t)for(const a of o){const s=r.map(()=>e.factory.blankNode());e.dataset.add(e.factory.quad(e.term,i,s[0]||st.nil,a));for(let l=0;l<s.length;l++)e.dataset.add(e.factory.quad(s[l],st.first,r[l],a)),e.dataset.add(e.factory.quad(s[l],st.rest,s[l+1]||st.nil,a))}return e}static delete({ptr:e,start:t,subjects:r=[null],predicates:o=[null],objects:i=[null]}){for(const a of r)for(const s of o)for(const l of i){const u={subject:a,predicate:s,object:l};u[t]=e.term;const f=e.dataset.match(u.subject,u.predicate,u.object);for(const m of f)e.dataset.delete(m)}return e}static deleteList({ptr:e,predicates:t}){const r=[];for(const o of t)for(const i of e.dataset.match(e.term,o)){let a=i.object;for(r.push(i);!st.nil.equals(a);){a=r[r.length-1].object;const s=e.dataset.match(a);if(s.size===0)break;for(const l of s)r.push(l)}}for(const o of r)e.dataset.delete(o);return e}static execute({ptr:e,operation:t="traverse",quantifier:r,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u,items:f,callback:m}={}){if(t==="add")return Re.add({ptr:e,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u,callback:m});if(t==="addList")return Re.addList({ptr:e,predicates:s,items:f,graphs:u});if(t==="delete")return Re.delete({ptr:e,start:o,subjects:a,predicates:s,objects:l});if(t==="deleteList")return Re.deleteList({ptr:e,predicates:s});if(t==="isList")return Re.isList({ptr:e});if(t==="list")return Re.list({ptr:e});if(t==="traverse")return Re.traverse({ptr:e,quantifier:r,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u});throw new Error(`unknown operation ${t}`)}static isList({ptr:e}){return e.isAny()?!1:!!(st.nil.equals(e.term)||Re.traverse({ptr:e,predicates:[st.first]}).length===1)}static list({ptr:e}){if(e.isList())return{*[Symbol.iterator](){for(;e&&!e.term.equals(st.nil);){const t=e.out([st.first]);if(t.length!==1)throw new Error(`Invalid list: rdf:first count not equals one on ${e.value}`);const r=e.out([st.rest]);if(r.length!==1)throw new Error(`Invalid list: rdf:rest count not equals one on ${e.value}`);yield t[0],e=r[0]}}}}static traverse({ptr:e,quantifier:t="one",start:r="subject",end:o="object",subjects:i=[null],predicates:a=[null],objects:s=[null],graphs:l=[null],callback:u}){if(t==="one")return Re.traverseOne({ptr:e,start:r,end:o,subjects:i,predicates:a,objects:s,graphs:l,callback:u});if(t==="oneOrMore"){const f=Re.traverse({ptr:e,end:o,start:r,subjects:i,predicates:a,objects:s,graphs:l,callback:u});return Re.traverseMore({ptrs:f,end:o,start:r,subjects:i,predicates:a,objects:s,graphs:l,callback:u})}if(t==="zeroOrMore")return Re.traverseMore({ptrs:[e],end:o,start:r,subjects:i,predicates:a,objects:s,graphs:l,callback:u});if(t==="zeroOrOne")return[e,...Re.traverse({ptr:e,end:o,start:r,subjects:i,predicates:a,objects:s,graphs:l,callback:u})];throw new Error(`unknown quantifier ${t}`)}static traverseMore({ptrs:e,end:t,start:r,subjects:o,predicates:i,objects:a,graphs:s,callback:l}={}){let u=[...e],f,m;do{f=[];for(const y of e)f=[...f,...Re.traverseOne({ptr:y,end:t,start:r,subjects:o,predicates:i,objects:a,graphs:s,callback:l})];m&&(f=f.filter(y=>!m.has(y.term))),e=f,u=[...u,...f],m=new tt(u.map(y=>y.term))}while(f.length>0);return u}static traverseOne({ptr:e,start:t,end:r,subjects:o,predicates:i,objects:a,graphs:s,callback:l=(u,f)=>f.extend(u)}={}){const u=[];for(const f of o)for(const m of i)for(const y of a)for(const b of s){const g={subject:f,predicate:m,object:y,graph:b};g[t]=e.term;for(const x of e.dataset.match(g.subject,g.predicate,g.object,g.graph))u.push(l(new yl({dataset:e.dataset,end:r,quad:x,start:t}),e))}return u}}function kl(n,e){return e?t=>e(n.extend(t)):()=>{}}class Sl{constructor({dataset:e,edges:t=[],factory:r,graph:o,term:i}){if(!e&&t.length===0)throw new Error("dataset or edges is required");if(t.length===0&&typeof i>"u")throw new Error("edges or term must be given");if(t.length>0&&i)throw new Error("edges or term must be given");this.dataset=e||t[t.length-1].dataset,this.edges=t,this.factory=r,this._graph=o,t.length===0&&(this._term=i)}get edge(){return this.edges[this.edges.length-1]}get graph(){return typeof this._graph=="object"?this._graph:this.edge&&this.edge.graph}get length(){return this._term!==void 0?1:this.edges.length+1}get startTerm(){return this._term||this.edges[0].startTerm}get term(){return this._term!==void 0?this._term:this.edge.term}get value(){const e=this.term;return e===null?void 0:e.value}addIn(e,t,r){return Re.add({ptr:this,start:"object",end:"subject",subjects:t,predicates:e,graphs:[this.graph||this.factory.defaultGraph()],callback:kl(this,r)})}addList(e,t){return Re.addList({ptr:this,predicates:e,graphs:[this.graph||this.factory.defaultGraph()],items:t})}addOut(e,t,r){return Re.add({ptr:this,start:"subject",end:"object",predicates:e,objects:t,graphs:[this.graph||this.factory.defaultGraph()],callback:kl(this,r)})}deleteIn(e,t){return Re.delete({ptr:this,start:"object",subjects:t,predicates:e})}deleteList(e){return Re.deleteList({ptr:this,predicates:e})}deleteOut(e,t){return Re.delete({ptr:this,start:"subject",predicates:e,objects:t})}execute({operation:e,quantifier:t,start:r,end:o,subjects:i,predicates:a,objects:s,graphs:l,items:u,callback:f}){return Re.execute({ptr:this,operation:e,quantifier:t,start:r,end:o,subjects:i,predicates:a,objects:s,graphs:l,items:u,callback:f})}extend(e){return new this.constructor({dataset:this.dataset,edges:[...this.edges,e],factory:this.factory,graph:this._graph})}hasIn(e,t){return Re.traverse({ptr:this,start:"object",end:"object",subjects:t,predicates:e,graphs:[this.graph]})}hasOut(e,t){return Re.traverse({ptr:this,start:"subject",end:"subject",predicates:e,objects:t,graphs:[this.graph]})}in(e,t){return Re.traverse({ptr:this,start:"object",end:"subject",subjects:t,predicates:e,graphs:[this.graph]})}isAny(){return!this.term}isList(){return Re.isList({ptr:this})}list(){return Re.list({ptr:this})}*nodes(){for(let e=0;e<this.length;e++)this._term!==void 0?yield{dataset:this.dataset,term:this._term}:this.edges.length>e?yield{dataset:this.edges[e].dataset,term:this.edges[e].startTerm}:this.edges.length===e&&(yield{dataset:this.edges[e-1].dataset,term:this.edges[e-1].term})}out(e,t){return Re.traverse({ptr:this,predicates:e,objects:t,graphs:[this.graph]})}*quads(){for(const{quad:e}of this.edges)yield e}trim(){return new this.constructor({dataset:this.dataset,factory:this.factory,graph:this.graph,term:this.term})}}function El(n,e){return n?n.equals(e):n===e}function uf(n,e){return!(n.dataset!==e.dataset||!El(n.graph,e.graph)||!El(n.term,e.term))}function Il(n,e){return e?t=>e(new n.constructor({factory:n.factory,ptrs:[t]})):()=>{}}class Sn{constructor({dataset:e,factory:t,ptrs:r,terms:o,graphs:i}){if(this.factory=t,r)this.ptrs=[...r];else{this.ptrs=[];for(const a of o||[null])for(const s of i||[null])this.ptrs.push(new Sl({dataset:e,factory:t,graph:s,term:a}))}}get dataset(){const e=new Set(this.datasets);return e.size!==1?null:e[Symbol.iterator]().next().value}get datasets(){return this.ptrs.map(e=>e.dataset)}get term(){const e=new tt(this.terms);if(e.size===1)return e[Symbol.iterator]().next().value}get terms(){return this.ptrs.map(e=>e.term)}get value(){const e=this.term;return e?.value}get values(){return this.ptrs.map(e=>e.value)}addIn(e,t,r){const o=Il(this,r);for(const i of this.ptrs)i.addIn(e,t,o);return this}addList(e,t){if(this.isAny())throw new Error("can't attach a list to an any ptr");for(const r of this.ptrs)r.addList(e,t);return this}addOut(e,t,r){const o=Il(this,r);for(const i of this.ptrs)i.addOut(e,t,o);return this}clone(e){return new this.constructor({factory:this.factory,ptrs:this.ptrs,...e})}deleteIn(e,t){for(const r of this.ptrs)r.deleteIn(e,t);return this}deleteList(e){for(const t of this.ptrs)t.deleteList(e);return this}deleteOut(e,t){for(const r of this.ptrs)r.deleteOut(e,t);return this}distinct(){const e=this.ptrs.reduce((t,r)=>(t.some(o=>uf(o,r))||t.push(r.trim()),t),[]);return this.clone({ptrs:e})}execute(e){return this.clone({ptrs:this.ptrs.flatMap(t=>t.execute(e))})}executeAll(e){let t=this;for(const r of e)t=t.execute(r);return t}filter(e){return this.clone({ptrs:[...this].filter(e).map(t=>t.ptrs[0])})}hasIn(e,t){return this.clone({ptrs:this.ptrs.flatMap(r=>r.hasIn(e,t))})}hasOut(e,t){return this.clone({ptrs:this.ptrs.flatMap(r=>r.hasOut(e,t))})}in(e,t){return this.clone({ptrs:this.ptrs.flatMap(r=>r.in(e,t))})}isAny(){return this.ptrs.length>0&&this.ptrs.some(e=>e.isAny())}isList(){return this.ptrs.length!==1?!1:this.ptrs[0].isList()}list(){if(!this.isList())return;const e=this.ptrs[0].list(),t=this;return function*(){for(const r of e)yield t.clone({ptrs:[r]})}()}map(e){return[...this].map(e)}node(e){const t=this.dataset,r=[...e].map(o=>new Sl({dataset:t,factory:this.factory,term:o}));return this.clone({ptrs:r})}out(e,t){return this.clone({ptrs:this.ptrs.flatMap(r=>r.out(e,t))})}*quads(){for(const{edges:e}of this.ptrs)for(const{quad:t}of e)yield t}trim(){return this.clone({ptrs:this.ptrs.map(e=>e.trim())})}*[Symbol.iterator](){for(const e of this.ptrs)yield this.clone({ptrs:[e]})}}nt("http://www.w3.org/2002/07/owl#");const Ut=nt("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),pf=nt("http://www.w3.org/2000/01/rdf-schema#"),ne=nt("http://www.w3.org/ns/shacl#"),Ci=nt("https://schemas.link/shacl-next#"),fa=nt("http://www.w3.org/2001/XMLSchema#");function ff(n){return n?`{${[...n.quads()].map(e=>Je(e)).join(" ")}}`:"{}"}function hf(n){return n?`{${n.map(e=>ff(e)).join(" ")}}`:"{}"}var di,Rl;function bf(){if(Rl)return di;Rl=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return di=e,di}var ci,Nl;function mf(){if(Nl)return ci;Nl=1;var n=bf(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return ci=t,ci}var ui,jl;function gf(){if(jl)return ui;jl=1;function n(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return ui=n,ui}var pi,Tl;function vf(){if(Tl)return pi;Tl=1;var n=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt;return pi=n,pi}var fi,Al;function yf(){if(Al)return fi;Al=1;var n=vf(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=n||e||Function("return this")();return fi=t,fi}var hi,Ll;function ic(){if(Ll)return hi;Ll=1;var n=yf(),e=n.Symbol;return hi=e,hi}var bi,Ol;function wf(){if(Ol)return bi;Ol=1;var n=ic(),e=Object.prototype,t=e.hasOwnProperty,r=e.toString,o=n?n.toStringTag:void 0;function i(a){var s=t.call(a,o),l=a[o];try{a[o]=void 0;var u=!0}catch{}var f=r.call(a);return u&&(s?a[o]=l:delete a[o]),f}return bi=i,bi}var mi,$l;function xf(){if($l)return mi;$l=1;var n=Object.prototype,e=n.toString;function t(r){return e.call(r)}return mi=t,mi}var gi,Dl;function _f(){if(Dl)return gi;Dl=1;var n=ic(),e=wf(),t=xf(),r="[object Null]",o="[object Undefined]",i=n?n.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?e(s):t(s)}return gi=a,gi}var vi,Ml;function kf(){if(Ml)return vi;Ml=1;function n(e){return e!=null&&typeof e=="object"}return vi=n,vi}var yi,Cl;function Sf(){if(Cl)return yi;Cl=1;var n=_f(),e=kf(),t="[object Symbol]";function r(o){return typeof o=="symbol"||e(o)&&n(o)==t}return yi=r,yi}var wi,Pl;function Ef(){if(Pl)return wi;Pl=1;var n=mf(),e=gf(),t=Sf(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(t(u))return r;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=n(u);var m=i.test(u);return m||a.test(u)?s(u.slice(2),m?2:8):o.test(u)?r:+u}return wi=l,wi}var xi,Bl;function If(){if(Bl)return xi;Bl=1;var n=Ef(),e=1/0,t=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=n(o),o===e||o===-e){var i=o<0?-1:1;return i*t}return o===o?o:0}return xi=r,xi}var _i,ql;function Rf(){if(ql)return _i;ql=1;var n=If();function e(t){var r=n(t),o=r%1;return r===r?o?r-o:r:0}return _i=e,_i}var ki,Fl;function Nf(){if(Fl)return ki;Fl=1;var n=Rf(),e="Expected a function";function t(r,o){var i;if(typeof o!="function")throw new TypeError(e);return r=n(r),function(){return--r>0&&(i=o.apply(this,arguments)),r<=1&&(o=void 0),i}}return ki=t,ki}var Si,zl;function jf(){if(zl)return Si;zl=1;var n=Nf();function e(t){return n(2,t)}return Si=e,Si}var Tf=jf();const it=xc(Tf);let Ul=class{constructor({details:e,factory:t,options:r,results:o=[]}={}){this.details=e,this.factory=t,this.options=r,this.results=o,this._conforms=it(()=>!this.results.some(i=>i.severity.equals(ne.Info)||i.severity.equals(ne.Violation)||i.severity.equals(ne.Warning))),this._ptr=it(()=>this.build())}get conforms(){return this._conforms()}get dataset(){return this.ptr.dataset}get ptr(){return this._ptr()}get term(){return this.ptr.term}build(){const e=new Sn({dataset:this.factory.dataset(),factory:this.factory,terms:[this.factory.blankNode()]});e.addOut([Ut.type],[ne.ValidationReport]).addOut([ne.conforms],[this.factory.literal(this.conforms.toString(),fa.boolean)]);for(const t of this.results)e.addOut([ne.result],[this.factory.blankNode()],r=>{t.build(r,this.options)});return e}coverage(){return this.results.flatMap(e=>e.coverage())}};function Af(n,e){return Object.entries(e).reduce((t,[r,o])=>(o&&o.termType&&(o=Je(o)),t.replace(`{$${r}}`,o).replace(`{?${r}}`,o)),n)}let Lf=class{constructor({args:e={},constraintComponent:t,factory:r,focusNode:o,message:i=[],path:a,results:s=[],severity:l,shape:u,source:f=[],value:m,valuePaths:y=[]}={}){this.args=e,this.constraintComponent=t,this.factory=r,this.focusNode=o,this.path=a||u.path,this.results=s,this.severity=l,this.shape=u,this.source=f,this.value=m,this.valuePaths=y,this._message=it(()=>(this.shape.message.length>0&&(i=this.shape.message),i.length===0&&(i=this.shape.ptr.node([this.constraintComponent]).out([ne.message]).terms),i.map(b=>r.literal(Af(b.value,e),b.language||null))))}get message(){return this._message()}build(e,{details:t}={}){e.addOut([Ut.type],[ne.ValidationResult]).addOut([ne.focusNode],this.focusNode.terms).addOut([ne.resultSeverity],[this.severity]).addOut([ne.sourceConstraint],this.source).addOut([ne.sourceConstraintComponent],[this.constraintComponent]).addOut([ne.sourceShape],this.shape.ptr.terms),this.message&&e.addOut([ne.resultMessage],this.message);const r=o=>{if(o.quantifier==="one")return o.predicates.length>1?e.node([this.factory.blankNode()]).addList([ne.alternativePath],o.predicates):o.start==="object"?e.node([this.factory.blankNode()]).addOut([ne.inversePath],[o.predicates[0]]):e.node([o.predicates[0]]);if(o.quantifier==="oneOrMore")return e.node([this.factory.blankNode()]).addOut([ne.oneOrMorePath],[o.predicates[0]]);if(o.quantifier==="zeroOrMore")return e.node([this.factory.blankNode()]).addOut([ne.zeroOrMorePath],[o.predicates[0]]);if(o.quantifier==="zeroOrOne")return e.node([this.factory.blankNode()]).addOut([ne.zeroOrOnePath],[o.predicates[0]])};if(this.path&&(this.path.length===1?e.addOut([ne.resultPath],r(this.path[0]).terms):e.addList([ne.resultPath],this.path.map(o=>r(o).term))),typeof this.value<"u"&&e.addOut([ne.value],this.value.terms),t)for(const o of this.results)e.addOut([ne.detail],[this.factory.blankNode()],i=>{o.build(i,{details:t})})}coverage(){return[...this.valuePaths.flatMap(e=>[...e.quads()]),...this.results.flatMap(e=>e.coverage())]}};class ha{constructor({factory:e,focusNode:t,options:r={debug:!1,details:!1},processed:o=new Set,report:i=new Ul({factory:e,options:r}),results:a=new Map,shape:s,value:l,valueOrNode:u,valuePaths:f,values:m}={}){this.factory=e,this.focusNode=t,this.options=r,this.processed=o,this.report=i,this.results=a,this.shape=s,this.value=l,this.valuePaths=f,this.valueOrNode=u,this.values=m}create({child:e,focusNode:t=this.focusNode,shape:r=this.shape,value:o=this.value,valueOrNode:i=this.valueOrNode,valuePaths:a=this.valuePaths,values:s=this.values}={}){return new ha({factory:this.factory,focusNode:t,options:this.options,processed:this.processed,report:e?new Ul({factory:this.factory,options:this.options}):this.report,results:this.results,shape:r,value:o,valueOrNode:i,valuePaths:a,values:s})}id({shape:e=this.shape}={}){return`${Je(e.ptr.term)} - ${Je(this.focusNode.term)} - ${hf(this.valuePaths)}`}result(e){const t=new Lf({factory:this.factory,focusNode:this.focusNode,shape:this.shape,value:this.value,valuePaths:this.valuePaths,...e}),r=this.id();this.results.has(r)?this.results.get(r).add(t):this.results.set(r,new Set([t])),this.report.results.push(t)}debug(e,t){this.options.debug&&this.result({severity:Ci.Debug,constraintComponent:e,...t})}trace(e,t){this.options.trace&&this.result({severity:Ci.Trace,constraintComponent:e,...t})}test(e,t,r){e?this.debug(t,r):this.violation(t,r)}violation(e,t){this.result({constraintComponent:e,severity:this.shape.severity||ne.Violation,...t})}}function Of(){return{generic:$f()}}function $f(){return n=>{n.trace(Ci.TraversalConstraintComponent,{args:{},message:[n.factory.literal("Traversal")],value:n.valueOrNode})}}class Df{constructor(e){this.validations=new cr(e)}compile(e){const t=e.validator.options.coverage;if(e.deactivated)return[];let r=!1;const o=new Set;for(const i of e.ptr.execute({start:"subject",end:"predicate"})){const a=this.validations.get(i.term);a&&(o.add(a),i.term.equals(ne.property)&&(r=!0))}return t&&e.isPropertyShape&&!r&&o.add(Of),[...o].map(i=>i(e)).filter(Boolean)}}var Ot={},$t={},_r={},Hl;function ac(){if(Hl)return _r;Hl=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.BlankNode=void 0;let n=class{constructor(t){this.termType="BlankNode",this.value=t}equals(t){return!!t&&t.termType==="BlankNode"&&t.value===this.value}};return _r.BlankNode=n,_r}var kr={},Sr={},Gl;function sc(){if(Gl)return Sr;Gl=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.DefaultGraph=void 0;let n=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(t){return!!t&&t.termType==="DefaultGraph"}};return Sr.DefaultGraph=n,n.INSTANCE=new n,Sr}var Er={},Ir={},Vl;function ba(){if(Vl)return Ir;Vl=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.NamedNode=void 0;let n=class{constructor(t){this.termType="NamedNode",this.value=t}equals(t){return!!t&&t.termType==="NamedNode"&&t.value===this.value}};return Ir.NamedNode=n,Ir}var Wl;function lc(){if(Wl)return Er;Wl=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.Literal=void 0;const n=ba();let e=class Pr{constructor(r,o){this.termType="Literal",this.value=r,typeof o=="string"?(this.language=o,this.datatype=Pr.RDF_LANGUAGE_STRING,this.direction=""):o?"termType"in o?(this.language="",this.datatype=o,this.direction=""):(this.language=o.language,this.datatype=o.direction?Pr.RDF_DIRECTIONAL_LANGUAGE_STRING:Pr.RDF_LANGUAGE_STRING,this.direction=o.direction||""):(this.language="",this.datatype=Pr.XSD_STRING,this.direction="")}equals(r){return!!r&&r.termType==="Literal"&&r.value===this.value&&r.language===this.language&&(r.direction===this.direction||!r.direction&&this.direction==="")&&this.datatype.equals(r.datatype)}};return Er.Literal=e,e.RDF_LANGUAGE_STRING=new n.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),e.RDF_DIRECTIONAL_LANGUAGE_STRING=new n.NamedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString"),e.XSD_STRING=new n.NamedNode("http://www.w3.org/2001/XMLSchema#string"),Er}var Rr={},Jl;function dc(){if(Jl)return Rr;Jl=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.Quad=void 0;let n=class{constructor(t,r,o,i){this.termType="Quad",this.value="",this.subject=t,this.predicate=r,this.object=o,this.graph=i}equals(t){return!!t&&(t.termType==="Quad"||!t.termType)&&this.subject.equals(t.subject)&&this.predicate.equals(t.predicate)&&this.object.equals(t.object)&&this.graph.equals(t.graph)}};return Rr.Quad=n,Rr}var Nr={},Ql;function cc(){if(Ql)return Nr;Ql=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.Variable=void 0;let n=class{constructor(t){this.termType="Variable",this.value=t}equals(t){return!!t&&t.termType==="Variable"&&t.value===this.value}};return Nr.Variable=n,Nr}var Xl;function Mf(){if(Xl)return kr;Xl=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.DataFactory=void 0;const n=ac(),e=sc(),t=lc(),r=ba(),o=dc(),i=cc();let a=0,s=class{constructor(u){this.blankNodeCounter=0,u=u||{},this.blankNodePrefix=u.blankNodePrefix||`df_${a++}_`}namedNode(u){return new r.NamedNode(u)}blankNode(u){return new n.BlankNode(u||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(u,f){return new t.Literal(u,f)}variable(u){return new i.Variable(u)}defaultGraph(){return e.DefaultGraph.INSTANCE}quad(u,f,m,y){return new o.Quad(u,f,m,y||this.defaultGraph())}fromTerm(u){switch(u.termType){case"NamedNode":return this.namedNode(u.value);case"BlankNode":return this.blankNode(u.value);case"Literal":return u.language?this.literal(u.value,u.language):u.datatype.equals(t.Literal.XSD_STRING)?this.literal(u.value):this.literal(u.value,this.fromTerm(u.datatype));case"Variable":return this.variable(u.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(u.subject),this.fromTerm(u.predicate),this.fromTerm(u.object),this.fromTerm(u.graph))}}fromQuad(u){return this.fromTerm(u)}resetBlankNodeCounter(){this.blankNodeCounter=0}};return kr.DataFactory=s,kr}var Kl;function Cf(){return Kl||(Kl=1,function(n){var e=$t&&$t.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,s)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),t=$t&&$t.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),t(ac(),n),t(Mf(),n),t(sc(),n),t(lc(),n),t(ba(),n),t(dc(),n),t(cc(),n)}($t)),$t}var Dt={},jr={},Tr={},Yl;function ar(){if(Yl)return Tr;Yl=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.Translator=void 0;let n=class{constructor(){this.supportedRdfDatatypes=[],this.fromRdfHandlers={},this.toRdfHandlers={}}static incorrectRdfDataType(t){throw new Error(`Invalid RDF ${t.datatype.value} value: '${t.value}'`)}registerHandler(t,r,o){for(const i of r)this.supportedRdfDatatypes.push(i),this.fromRdfHandlers[i.value]=t;for(const i of o){let a=this.toRdfHandlers[i];a||(this.toRdfHandlers[i]=a=[]),a.push(t)}}fromRdf(t,r){const o=this.fromRdfHandlers[t.datatype.value];return o?o.fromRdf(t,r):t.value}toRdf(t,r){const o=this.toRdfHandlers[typeof t];if(o)for(const i of o){const a=i.toRdf(t,r);if(a)return a}throw new Error(`Invalid JavaScript value: '${t}'`)}getSupportedRdfDatatypes(){return this.supportedRdfDatatypes}getSupportedJavaScriptPrimitives(){return Object.keys(this.toRdfHandlers)}};return Tr.Translator=n,Tr}var Zl;function Pf(){if(Zl)return jr;Zl=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.TypeHandlerBoolean=void 0;const n=ar();let e=class uc{fromRdf(r,o){switch(r.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return o&&n.Translator.incorrectRdfDataType(r),!1}toRdf(r,{datatype:o,dataFactory:i}){return i.literal(r?"true":"false",o||i.namedNode(uc.TYPE))}};return jr.TypeHandlerBoolean=e,e.TYPE="http://www.w3.org/2001/XMLSchema#boolean",jr}var Ar={},ed;function Bf(){if(ed)return Ar;ed=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.TypeHandlerDate=void 0;const n=ar();let e=class Pi{fromRdf(r,o){switch(o&&!r.value.match(Pi.VALIDATORS[r.datatype.value.substr(33,r.datatype.value.length)])&&n.Translator.incorrectRdfDataType(r),r.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(r.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const i=r.value.split("-");return new Date(0,parseInt(i[0],10)-1,parseInt(i[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(r.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(r.value+"-01");default:return new Date(r.value)}}toRdf(r,{datatype:o,dataFactory:i}){if(o=o||i.namedNode(Pi.TYPES[0]),!(r instanceof Date))return null;const a=r;let s;switch(o.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 i.literal(s,o)}};return Ar.TypeHandlerDate=e,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]$/},Ar}var Lr={},td;function qf(){if(td)return Lr;td=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.TypeHandlerNumberDouble=void 0;const n=ar();let e=class pc{fromRdf(r,o){const i=parseFloat(r.value);return o&&isNaN(i)&&n.Translator.incorrectRdfDataType(r),i}toRdf(r,{datatype:o,dataFactory:i}){return o=o||i.namedNode(pc.TYPES[0]),isNaN(r)?i.literal("NaN",o):isFinite(r)?r%1===0?null:i.literal(r.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),o):i.literal(r>0?"INF":"-INF",o)}};return Lr.TypeHandlerNumberDouble=e,e.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"],Lr}var Or={},rd;function Ff(){if(rd)return Or;rd=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.TypeHandlerNumberInteger=void 0;const n=ar();let e=class Br{fromRdf(r,o){const i=parseInt(r.value,10);return o&&(isNaN(i)||r.value.indexOf(".")>=0)&&n.Translator.incorrectRdfDataType(r),i}toRdf(r,{datatype:o,dataFactory:i}){return i.literal(String(r),o||(r<=Br.MAX_INT&&r>=Br.MIN_INT?i.namedNode(Br.TYPES[0]):i.namedNode(Br.TYPES[1])))}};return Or.TypeHandlerNumberInteger=e,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,Or}var $r={},nd;function zf(){if(nd)return $r;nd=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.TypeHandlerString=void 0;let n=class{fromRdf(t){return t.value}toRdf(t,{datatype:r,dataFactory:o}){return o.literal(t,r)}};return $r.TypeHandlerString=n,n.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/1999/02/22-rdf-syntax-ns#dirLangString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"],$r}var od;function id(){return od||(od=1,function(n){var e=Dt&&Dt.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,s)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),t=Dt&&Dt.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&e(o,r,i)};Object.defineProperty(n,"__esModule",{value:!0}),t(Pf(),n),t(Bf(),n),t(qf(),n),t(Ff(),n),t(zf(),n)}(Dt)),Dt}var Ei={},ad;function Uf(){return ad||(ad=1,Object.defineProperty(Ei,"__esModule",{value:!0})),Ei}var sd;function Hf(){return sd||(sd=1,function(n){var e=Ot&&Ot.__createBinding||(Object.create?function(b,g,x,_){_===void 0&&(_=x);var k=Object.getOwnPropertyDescriptor(g,x);(!k||("get"in k?!g.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return g[x]}}),Object.defineProperty(b,_,k)}:function(b,g,x,_){_===void 0&&(_=x),b[_]=g[x]}),t=Ot&&Ot.__exportStar||function(b,g){for(var x in b)x!=="default"&&!Object.prototype.hasOwnProperty.call(g,x)&&e(g,b,x)};Object.defineProperty(n,"__esModule",{value:!0}),n.fromRdf=l,n.toRdf=u,n.getTermRaw=f,n.getSupportedRdfDatatypes=m,n.getSupportedJavaScriptPrimitives=y;const r=Cf(),o=id(),i=ar();t(id(),n),t(Uf(),n),t(ar(),n);const a=new r.DataFactory,s=new i.Translator;s.registerHandler(new o.TypeHandlerString,o.TypeHandlerString.TYPES.map(b=>a.namedNode(b)),["string"]),s.registerHandler(new o.TypeHandlerBoolean,[o.TypeHandlerBoolean.TYPE].map(b=>a.namedNode(b)),["boolean"]),s.registerHandler(new o.TypeHandlerNumberDouble,o.TypeHandlerNumberDouble.TYPES.map(b=>a.namedNode(b)),["number"]),s.registerHandler(new o.TypeHandlerNumberInteger,o.TypeHandlerNumberInteger.TYPES.map(b=>a.namedNode(b)),["number"]),s.registerHandler(new o.TypeHandlerDate,o.TypeHandlerDate.TYPES.map(b=>a.namedNode(b)),["object"]);function l(b,g){return s.fromRdf(b,g)}function u(b,g){return g&&"namedNode"in g&&(g={dataFactory:g}),g=g||{},g&&!g.dataFactory&&(g.dataFactory=a),s.toRdf(b,g)}function f(b,g){return b.termType==="Literal"?l(b,g):b.value}function m(){return s.getSupportedRdfDatatypes()}function y(){return s.getSupportedJavaScriptPrimitives()}}(Ot)),Ot}var Qr=Hf();function ld(n){if(n.term.termType!=="BlankNode")return{quantifier:"one",start:"subject",end:"object",predicates:[n.term]};const e=n.out([ne.alternativePath]);if(e.ptrs.length===1&&e.ptrs[0].isList())return{quantifier:"one",start:"subject",end:"object",predicates:[...e.list()].map(a=>a.term)};const t=n.out([ne.inversePath]);if(t.term)return{quantifier:"one",start:"object",end:"subject",predicates:[t.term]};const r=n.out([ne.oneOrMorePath]);if(r.term)return{quantifier:"oneOrMore",start:"subject",end:"object",predicates:[r.term]};const o=n.out([ne.zeroOrMorePath]);if(o.term)return{quantifier:"zeroOrMore",start:"subject",end:"object",predicates:[o.term]};const i=n.out([ne.zeroOrOnePath]);if(i.term)return{quantifier:"zeroOrOne",start:"subject",end:"object",predicates:[i.term]}}function Gf(n){return n.terms.length===0?null:n.ptrs[0].isList()?[...n.list()].map(e=>ld(e)):[ld(n)]}class Vf{constructor(e){this.shape=e,this._compiled=it(()=>this.shape.validator.registry.compile(e))}get compiled(){return this._compiled()}async validate(e){return e.focusNode.dataset.size===0||(this.shape.isPropertyShape?await this.validateProperty(e):await this.validateNode(e)),e}async validateNode(e){const t=e.create({shape:this.shape,valueOrNode:e.value||e.focusNode});for(const r of this.compiled)r.node&&await r.node(t),r.generic&&await r.generic(t)}async validateProperty(e){let t;this.shape.isSparqlShape?t=e.focusNode:t=e.focusNode.executeAll(this.shape.path);const r=t.node(new tt(t.terms)),o=[...t].reduce((a,s)=>{const l=s.term,u=t.node([l]);return a.has(l)||a.set(l,{value:u,valuePaths:[]}),a.get(l).valuePaths.push(s),a},new cr).values(),i=e.create({shape:this.shape,values:r});for(const a of this.compiled)a.property&&await a.property(i);for(const{value:a,valuePaths:s}of o){const l=e.create({shape:this.shape,value:a,valueOrNode:a,valuePaths:s});for(const u of this.compiled)u.generic&&await u.generic(l)}}}function Bi(n){const e=new tt,r=new Sn({dataset:n.dataset,terms:n.terms}).execute({quantifier:"zeroOrMore",start:"object",end:"subject",predicates:[pf.subClassOf]});for(const o of r.ptrs)for(const{term:i}of o.nodes())e.add(i);return e}class Wf{constructor(e){this.targetClass=new tt([...Bi(e.hasOut([Ut.type],[ne.NodeShape])),...Bi(e.out([ne.targetClass]))]),this.targetNode=e.out([ne.targetNode]).terms,this.targetObjectsOf=e.out([ne.targetObjectsOf]).terms,this.targetSubjectsOf=e.out([ne.targetSubjectsOf]).terms}resolve(e){const t=e.focusNode.node([null]),r=[...e.focusNode.hasOut([Ut.type],this.targetClass).ptrs,...e.focusNode.node(this.targetNode).ptrs,...t.execute({start:"object",end:"object",predicates:this.targetObjectsOf}).ptrs,...t.execute({start:"subject",end:"subject",predicates:this.targetSubjectsOf}).ptrs],o=e.focusNode.clone({ptrs:r});return o.node([...new tt(o.terms)])}}class Jf{constructor(e,{validator:t}){this.ptr=e,this.validator=t,this._deactivated=it(()=>{const r=this.ptr.out([ne.deactivated]).term;return r&&Qr.fromRdf(r)}),this._message=it(()=>this.ptr.out([ne.message]).terms),this._path=it(()=>Gf(this.ptr.out([ne.path]))),this._severity=it(()=>this.ptr.out([ne.severity]).term),this._shapeValidator=it(()=>new Vf(this)),this._sparql=it(()=>this.ptr.out([ne.sparql])),this._targetResolver=it(()=>new Wf(this.ptr))}get deactivated(){return this._deactivated()}get isPropertyShape(){return!!this.path}get isSparqlShape(){return this.sparql.terms.length>0}get path(){return this._path()}get targetResolver(){return this._targetResolver()}get message(){return this._message()}get severity(){return this._severity()}get shapeValidator(){return this._shapeValidator()}get sparql(){return this._sparql()}resolveTargets(e){return this.targetResolver.resolve(e)}async validate(e){const t=e.id({shape:this});if(e.processed.has(t)){if(e.results.has(t))for(const r of e.results.get(t))e.report.results.push(r);return e}return e.processed.add(t),this.shapeValidator.validate(e)}}function Qf(n){const e=parseInt(n.ptr.out([ne.maxCount]).value);return{property:Xf(e)}}function Xf(n){return e=>{e.test(e.values.terms.length<=n,ne.MaxCountConstraintComponent,{args:{maxCount:n},message:[e.factory.literal("More than {$maxCount} values")]})}}function Kf(n){const e=parseInt(n.ptr.out([ne.minCount]).value);return{property:Yf(e)}}function Yf(n){return e=>{e.test(e.values.terms.length>=n,ne.MinCountConstraintComponent,{args:{minCount:n},message:[e.factory.literal("Less than {$minCount} values")]})}}async function Zf(n,e){for(const t of n)if(!await e(t))return!1;return!0}async function eh(n,e){return(await Promise.all(n.map(t=>e(t)))).filter(Boolean)}async function Cn(n,e){return Promise.all(n.map(e))}async function th(n,e){for(const t of n)if(await e(t))return!0;return!1}function rh(n){const e=[...n.ptr.out([ne.and])].flatMap(t=>[...t.list()]).map(t=>n.validator.shape(t));return{generic:nh(e)}}function nh(n){return async e=>{const t=await Cn(n,async o=>(await o.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report),r=t.every(o=>o.conforms);e.test(r,ne.AndConstraintComponent,{results:t.flatMap(o=>o.results),value:e.valueOrNode})}}function oh(n){const e=n.validator.shape(n.ptr.out([ne.not]));return{generic:ih(e)}}function ih(n){return async e=>{const t=(await n.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report,r=!t.conforms;e.test(r,ne.NotConstraintComponent,{args:{not:n.ptr.term},message:[e.factory.literal("Value does have shape {$not}")],results:t.results,value:e.valueOrNode})}}function ah(n){const e=[...n.ptr.out([ne.or])].flatMap(t=>[...t.list()]).map(t=>n.validator.shape(t));return{generic:sh(e)}}function sh(n){return async e=>{let t=[],r;if(e.options.debug||e.options.details){const o=await Cn(n,async i=>(await i.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report);t=o.flatMap(i=>i.results),r=o.some(i=>i.conforms)}else r=await th(n,async o=>(await o.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report.conforms);e.test(r,ne.OrConstraintComponent,{results:t,value:e.valueOrNode})}}function lh(n){const e=[...n.ptr.out([ne.xone])].flatMap(t=>[...t.list()]).map(t=>n.validator.shape(t));return{generic:dh(e)}}function dh(n){return async e=>{const t=await Cn(n,async o=>(await o.validate(e.create({child:!0,focusNode:e.valueOrNode}))).report),r=t.filter(o=>o.conforms).length===1;e.test(r,ne.XoneConstraintComponent,{results:t.flatMap(o=>o.results),value:e.valueOrNode})}}function ch(n){if(!Qr.fromRdf(n.ptr.out([ne.closed]).term))return null;const t=n.ptr.out([ne.property]).map(i=>n.validator.shape(i)),r=new tt(t.filter(i=>!i.deactivated).map(i=>i.path[0].predicates[0])),o=new tt([...n.ptr.out([ne.ignoredProperties]).list()||[]].map(i=>i.term));return{node:uh(r,o)}}function uh(n,e){return t=>{const r=t.focusNode.execute({start:"subject",end:"predicate"}).filter(o=>e.has(o.term)?!1:!n.has(o.term));if(r.ptrs.length>0)for(const o of r)t.violation(ne.ClosedConstraintComponent,{message:[t.factory.literal("Predicate is not allowed (closed shape)")],path:[{quantifier:"one",start:"subject",end:"object",predicates:[o.term]}],value:t.focusNode.node([[...o.quads()][0].object])});else t.debug(ne.ClosedConstraintComponent)}}function ph(n){const e=n.ptr.out([ne.hasValue]).term;return{node:fh(e),property:hh(e)}}function fh(n){return e=>{e.test(n.equals(e.valueOrNode.term),ne.HasValueConstraintComponent,{args:{hasValue:n},message:[e.factory.literal("Value must be {$hasValue}")]})}}function hh(n){return e=>{const t=[...e.values].some(r=>n.equals(r.term));e.test(t,ne.HasValueConstraintComponent,{args:{hasValue:n},message:[e.factory.literal("Missing expected value {$hasValue}")]})}}function bh(n){const e=new tt([...n.ptr.out([ne.in]).list()].map(t=>t.term));return{generic:mh(e)}}function mh(n){return e=>{e.test(n.has(e.valueOrNode.term),ne.InConstraintComponent,{args:{in:[...n].map(t=>t.value).join(", ")},message:[e.factory.literal("Value is not in {$in}")],value:e.valueOrNode})}}function ur(n,e){if(!n||n.termType!=="Literal"||!e||e.termType!=="Literal"||dd(n)!==dd(e))return null;const t=Qr.fromRdf(n),r=Qr.fromRdf(e);return typeof t!=typeof r?null:typeof t=="string"?t.localeCompare(r):t-r}function dd(n){const e=/^.*(((\+|-)\d{2}:\d{2})|Z)$/;return fa.dateTime.equals(n.datatype)&&e.test(n.value)}function gh(n){const e=n.ptr.out([ne.disjoint]).term;return{generic:vh(e)}}function vh(n){return e=>{const t=e.focusNode.dataset.match(e.focusNode.term,n,e.valueOrNode.term);e.test(t.size===0,ne.DisjointConstraintComponent,{args:{disjoint:n},message:[e.factory.literal("Value node must not also be one of the values of {$disjoint}")],value:e.valueOrNode})}}function yh(n){const e=n.ptr.out([ne.equals]).term;return{node:wh(e),property:xh(e)}}function wh(n){return e=>{const t=e.focusNode.out([n]),r=t.filter(i=>!i.term.equals(e.focusNode.term)),o=t.terms.length!==0&&r.terms.length===0;e.test(o,ne.EqualsConstraintComponent,{args:{equals:n},message:[e.factory.literal("Must have same values as {$equals}")],value:r.terms[0]&&e.focusNode.node([r.terms[0]])||e.focusNode})}}function xh(n){return e=>{const t=new tt(e.focusNode.out([n]).terms),r=new tt(e.values.terms),o=[...r].filter(s=>!t.has(s)),i=[...t].filter(s=>!r.has(s)),a=[...o,...i];for(const s of a)e.violation(ne.EqualsConstraintComponent,{args:{equals:n},message:[e.factory.literal("Must have same values as {$equals}")],value:e.focusNode.node([s])});a.length===0&&e.debug(ne.EqualsConstraintComponent,{args:{equals:n},message:[e.factory.literal("Must have same values as {$equals}")]})}}function _h(n){const e=n.ptr.out([ne.lessThan]).term;return{property:kh(e)}}function kh(n){return e=>{const t=e.focusNode.out([n]).terms;for(const r of e.values)for(const o of t){const i=ur(r.term,o);i===null||i>=0?e.violation(ne.LessThanConstraintComponent,{args:{lessThan:n},message:[e.factory.literal("Value is not less than value of {$lessThan}")],value:r}):e.debug(ne.LessThanConstraintComponent,{args:{lessThan:n},message:[e.factory.literal("Value is not less than value of {$lessThan}")],value:r})}}}function Sh(n){const e=n.ptr.out([ne.lessThanOrEquals]).term;return{property:Eh(e)}}function Eh(n){return e=>{const t=e.focusNode.out([n]).terms;for(const r of e.values)for(const o of t){const i=ur(r.term,o);i===null||i>0?e.violation(ne.LessThanOrEqualsConstraintComponent,{args:{lessThanOrEquals:n},message:[e.factory.literal("Value is not less than or equal to value of {$lessThanOrEquals}")],value:r}):e.debug(ne.LessThanOrEqualsConstraintComponent,{args:{lessThanOrEquals:n},message:[e.factory.literal("Value is not less than or equal to value of {$lessThanOrEquals}")],value:r})}}}function Ih(n){const e=n.ptr.out([ne.maxExclusive]).term;return{generic:Rh(e)}}function Rh(n){return e=>{const t=ur(e.valueOrNode.term,n);e.test(t!==null&&t<0,ne.MaxExclusiveConstraintComponent,{args:{maxExclusive:n},message:[e.factory.literal("Value is not less than {$maxExclusive}")],value:e.valueOrNode})}}function Nh(n){const e=n.ptr.out([ne.maxInclusive]).term;return{generic:jh(e)}}function jh(n){return e=>{const t=ur(e.valueOrNode.term,n);e.test(t!==null&&t<=0,ne.MaxInclusiveConstraintComponent,{args:{maxInclusive:n},message:[e.factory.literal("Value is not less than or equal to {$maxInclusive}")],value:e.valueOrNode})}}function Th(n){const e=n.ptr.out([ne.minExclusive]).term;return{generic:Ah(e)}}function Ah(n){return e=>{const t=ur(e.valueOrNode.term,n);e.test(t!==null&&t>0,ne.MinExclusiveConstraintComponent,{args:{minExclusive:n},message:[e.factory.literal("Value is not greater than {$minExclusive}")],value:e.valueOrNode})}}function Lh(n){const e=n.ptr.out([ne.minInclusive]).term;return{generic:Oh(e)}}function Oh(n){return e=>{const t=ur(e.valueOrNode.term,n);e.test(t!==null&&t>=0,ne.MinInclusiveConstraintComponent,{args:{minInclusive:n},message:[e.factory.literal("Value is not greater than or equal to {$minInclusive}")],value:e.valueOrNode})}}function $h(n){const e=[...n.ptr.out([ne.node])].map(t=>n.validator.shape(t));return{generic:Dh(e)}}function Dh(n){return async e=>{for(const t of n){const r=await t.validate(e.create({child:!0,focusNode:e.valueOrNode}));e.test(r.report.conforms,ne.NodeConstraintComponent,{args:{node:t.ptr.term},message:[e.factory.literal("Value does not have shape {$node}")],results:r.report.results,value:e.valueOrNode})}}}function Mh(n){const e=[...n.ptr.out([ne.property])].map(t=>n.validator.shape(t));return{generic:Ch(e)}}function Ch(n){return async e=>{const t=e.create({focusNode:e.valueOrNode});for(const r of n)await r.validate(t)}}function Ph(n){const e=n.validator.shape(n.ptr.out([ne.qualifiedValueShape])),t=n.ptr.out([ne.qualifiedValueShapesDisjoint]).term,r=t?Qr.fromRdf(t):!1,o=n.ptr.out([ne.qualifiedMaxCount]).term,i=o?parseInt(o.value):null,a=n.ptr.out([ne.qualifiedMinCount]).term,s=a?parseInt(a.value):null;return{property:Bh(e,r,i,s)}}function Bh(n,e,t,r){return async o=>{const i=[];let a=[];e&&(a=new Set(o.shape.ptr.in([ne.property]).out([ne.property]).out([ne.qualifiedValueShape]).filter(l=>!l.term.equals(n.ptr.term)).map(l=>o.shape.validator.shape(l))));const s=(await eh(o.values,async l=>{const u=(await n.validate(o.create({child:!0,focusNode:l}))).report;if(i.push(u.results),!u.conforms)return!1;if(a.length===0)return!0;if(o.options.debug||o.options.details){const f=await Cn([...a],async m=>(await m.validate(o.create({child:!0,focusNode:l}))).report);return i.push(f.flatMap(m=>m.results)),!f.every(m=>m.conforms)}else return!await Zf([...a],async f=>(await f.validate(o.create({child:!0,focusNode:l}))).report.conforms)})).length;t!==null&&o.test(s<=t,ne.QualifiedMaxCountConstraintComponent,{args:{qualifiedMaxCount:t,qualifiedValueShape:n.ptr.term,qualifiedValueShapesDisjoint:e},message:[o.factory.literal("More than {$qualifiedMaxCount} values have shape {$qualifiedValueShape}")],results:i.flat()}),r!==null&&o.test(s>=r,ne.QualifiedMinCountConstraintComponent,{args:{qualifiedMinCount:r,qualifiedValueShape:n.ptr.term,qualifiedValueShapesDisjoint:e},message:[o.factory.literal("Less than {$qualifiedMinCount} values have shape {$qualifiedValueShape}")],results:i.flat()})}}function qh(n,e){return e?e.slice(0,n.length)===n:!1}function Fh(n){const e=[...new Set([...n.ptr.out([ne.languageIn]).list()].map(t=>t.value))];return{generic:zh(e)}}function zh(n){return e=>{const t=n.some(r=>qh(r,e.valueOrNode.term.language));e.test(t,ne.LanguageInConstraintComponent,{args:{languageIn:n.join(", ")},message:[e.factory.literal("Language does not match any of {$languageIn}")],value:e.valueOrNode})}}function Uh(n){const e=parseInt(n.ptr.out([ne.maxLength]).value);return{generic:Hh(e)}}function Hh(n){return e=>{const t=e.valueOrNode.term.termType!=="BlankNode"&&e.valueOrNode.value.length<=n;e.test(t,ne.MaxLengthConstraintComponent,{args:{maxLength:n},message:[e.factory.literal("Value has more than {$maxLength} characters")],value:e.valueOrNode})}}function Gh(n){const e=parseInt(n.ptr.out([ne.minLength]).value);return{generic:Vh(e)}}function Vh(n){return e=>{const t=e.valueOrNode.term.termType!=="BlankNode"&&e.valueOrNode.value.length>=n;e.test(t,ne.MinLengthConstraintComponent,{args:{minLength:n},message:[e.factory.literal("Value has less than {$minLength} characters")],value:e.valueOrNode})}}function Wh(n){const e=n.ptr.out([ne.pattern]).value,t=n.ptr.out([ne.flags]).value,r=new RegExp(e,t);return{generic:Jh(e,t,r)}}function Jh(n,e,t){return r=>{r.test(t.test(r.valueOrNode.term.value),ne.PatternConstraintComponent,{args:{flags:e,pattern:n},message:[r.factory.literal('Value does not match pattern "{$pattern}"')],value:r.valueOrNode})}}function Qh(n){const e=n.ptr.out([ne.uniqueLang]).term;return e.value==="true"&&fa.boolean.equals(e.datatype)?{property:Xh()}:null}function Xh(){return n=>{const t=Object.entries(n.values.terms.reduce((r,o)=>(o.language&&(r[o.language]=(r[o.language]||0)+1),r),{})).filter(([,r])=>r>1);for(const[r]of t)n.violation(ne.UniqueLangConstraintComponent,{args:{lang:r},message:[n.factory.literal('Language "{?lang}" used more than once')]});t.length===0&&n.debug(ne.UniqueLangConstraintComponent)}}const vn=nt("http://www.w3.org/ns/shacl#"),fc=nt("https://schemas.link/shacl-next#");class sr{constructor({results:e=[]}={}){this.results=e}get conforms(){return!this.results.some(e=>e.severity.equals(vn.Info)||e.severity.equals(vn.Violation)||e.severity.equals(vn.Warning))}}function Kh(n,e){return Object.entries(e).reduce((t,[r,o])=>(o&&o.termType&&(o=Je(o)),t.replace(`{$${r}}`,o).replace(`{?${r}}`,o)),n)}class En{constructor({args:e={},factory:t,message:r=[],severity:o=vn.Violation}={}){this.severity=o,this.message=r.map(i=>t.literal(Kh(i.value,e),i.language||null))}}class ma{constructor({factory:e=pa}={}){this.factory=e}clone({factory:e}={}){return new ma({factory:e||this.factory})}validate(){return new sr}validateSimple(){return!0}}class pr extends ma{constructor({datatypes:e,factory:t}={}){super({factory:t}),this.datatypes=[];for(const r of Array.isArray(e)?e:[e])r&&this.datatypes.push(this.factory.fromTerm(r))}clone({factory:e}={}){return new pr({datatypes:this.datatypes,factory:e||this.factory})}}class Yh{constructor({factory:e=pa,validations:t}={}){if(this.factory=e,this.validations=new cr,t)for(const r of Object.values(t)){const o=r.clone({factory:this.factory});for(const i of o.datatypes)this.validations.set(i,o)}}validate(e){const t=this.validations.get(e.datatype);return t?t.validate(e):new sr}validateSimple(e){const t=this.validations.get(e.datatype);return t?t.validateSimple(e):!0}}class je extends pr{constructor(e,t,{factory:r}={}){super({datatypes:t,factory:r}),this.message=[this.factory.literal("term value {$this} matches pattern {$pattern}")],this.patterns=Array.isArray(e)?e:[e]}clone({factory:e}={}){return new je(this.patterns,this.datatypes,{factory:e||this.factory})}validate(e){const t=this.patterns.map(r=>{let o;r.test(e.value)&&(o=fc.Debug);const i={pattern:this.factory.literal(r.toString()),this:e};return new En({args:i,factory:this.factory,message:this.message,severity:o})});return new sr({results:t})}validateSimple(e){return this.patterns.every(t=>t.test(e.value))}}const Zh=/^([-+]?[0-9]+)$/;class Ve extends je{constructor(e=null,t=null,r,{factory:o}={}){super(Zh,r,{factory:o}),this.maxInclusive=null,this.minInclusive=null,typeof t=="string"&&(this.maxInclusive=BigInt(t)),typeof e=="string"&&(this.minInclusive=BigInt(e))}clone({factory:e}={}){return new Ve(this.minInclusive?.toString(),this.maxInclusive?.toString(),this.datatypes,{factory:e||this.factory})}validate(e){const t=super.validate(e).results;if(!fc.Debug.equals(t[0].severity))return new sr({results:t});const r=BigInt(e.value);if(this.minInclusive!==null&&r<this.minInclusive){const o=`term value "${e.value}" is less than "${this.minInclusive.toString()}"`,i=[this.factory.literal(o)];t.push(new En({factory:this.factory,message:i}))}if(this.maxInclusive!==null&&r>this.maxInclusive){const o=`term value "${e.value}" is greater than "${this.maxInclusive.toString()}"`,i=[this.factory.literal(o)];t.push(new En({factory:this.factory,message:i}))}return new sr({results:t})}validateSimple(e){if(!super.validateSimple(e))return!1;const t=BigInt(e.value);return!(this.minInclusive!==null&&t<this.minInclusive||this.maxInclusive!==null&&t>this.maxInclusive)}}class ga extends pr{constructor(e,t,{factory:r}={}){super({datatypes:t,factory:r}),this.values=new Set(e)}clone({factory:e}={}){return new ga(this.values,this.datatypes,{factory:e||this.factory})}validate(e){const t=[];if(!this.values.has(e.value)){const r=`term value "${e.value}" is not included in the list: ${[...this.values].join(",")}`,o=[this.factory.literal(r)];t.push(new En({factory:this.factory,message:o}))}return new sr({results:t})}validateSimple(e){return this.values.has(e.value)}}const ke={xsd:nt("http://www.w3.org/2001/XMLSchema#")},eb=new pr({datatypes:ke.xsd.anySimpleType}),tb=new pr({datatypes:ke.xsd.anyAtomicType}),Pn=/^([^\ud8ff-\udfff\ufffe-\uffff]*)$/,rb=/^((\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+))$/,hc=/^((\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+)([Ee](\+|-)?[0-9]+)?|(\+|-)?INF|NaN)$/,va=/^(-?P((([0-9]+Y([0-9]+M)?([0-9]+D)?|([0-9]+M)([0-9]+D)?|([0-9]+D))(T(([0-9]+H)([0-9]+M)?([0-9]+(\.[0-9]+)?S)?|([0-9]+M)([0-9]+(\.[0-9]+)?S)?|([0-9]+(\.[0-9]+)?S)))?)|(T(([0-9]+H)([0-9]+M)?([0-9]+(\.[0-9]+)?S)?|([0-9]+M)([0-9]+(\.[0-9]+)?S)?|([0-9]+(\.[0-9]+)?S)))))$/,bc=/^(-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,nb=/^((([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?|(24:00:00(\.0+)?))(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ob=/^(-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ib=/^(-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ab=/^(-?([1-9][0-9]{3,}|0[0-9]{3})(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,sb=/^(--(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,lb=/^(---(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,db=/^(--(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,cb=/^(([0-9a-fA-F]{2})*)$/,ub=/^(((([A-Za-z0-9+/] ?){4})*(([A-Za-z0-9+/] ?){3}[A-Za-z0-9+/]|([A-Za-z0-9+/] ?){2}[AEIMQUYcgkosw048] ?=|[A-Za-z0-9+/] ?[AQgw] ?= ?=))?)$/,pb=new je(Pn,ke.xsd.string),fb=new ga(["1","true","0","false"],ke.xsd.boolean),hb=new je(rb,ke.xsd.decimal),bb=new je(hc,ke.xsd.float),mb=new je(hc,ke.xsd.double),gb=new je(va,ke.xsd.duration),vb=new je(bc,ke.xsd.dateTime),yb=new je(nb,ke.xsd.time),wb=new je(ob,ke.xsd.date),xb=new je(ib,ke.xsd.gYearMonth),_b=new je(ab,ke.xsd.gYear),kb=new je(sb,ke.xsd.gMonthDay),Sb=new je(lb,ke.xsd.gDay),Eb=new je(db,ke.xsd.gMonth),Ib=new je(cb,ke.xsd.hexBinary),Rb=new je(ub,ke.xsd.base64Binary),Nb=new je(Pn,ke.xsd.anyURI),mc=/^([^\u000d\u000a\u0009]*)$/,jb=/^([^ ]+( [^ ]+)*)*$/,Tb=/^([a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*)$/,Ab=/^([^DT]*)$/,Lb=/^([^YM]*[DT].*)$/,Ob=/^(.*(Z|(\+|-)[0-9][0-9]:[0-9][0-9]))$/,$b=new je([Pn,mc],ke.xsd.normalizedString),Db=new je([Pn,mc,jb],ke.xsd.token),Mb=new je(Tb,ke.xsd.language),Cb=new Ve(null,null,ke.xsd.integer),Pb=new Ve(null,"0",ke.xsd.nonPositiveInteger),Bb=new Ve(null,"-1",ke.xsd.negativeInteger),qb=new Ve("-9223372036854775808","9223372036854775807",ke.xsd.long),Fb=new Ve("-2147483648","2147483647",ke.xsd.int),zb=new Ve("-32768","32767",ke.xsd.short),Ub=new Ve("-128","127",ke.xsd.byte),Hb=new Ve("0",null,ke.xsd.nonNegativeInteger),Gb=new Ve("0","18446744073709551615",ke.xsd.unsignedLong),Vb=new Ve("0","4294967295",ke.xsd.unsignedInt),Wb=new Ve("0","65535",ke.xsd.unsignedShort),Jb=new Ve("0","255",ke.xsd.unsignedByte),Qb=new Ve("1",null,ke.xsd.positiveInteger),Xb=new je([va,Ab],ke.xsd.yearMonthDuration),Kb=new je([va,Lb],ke.xsd.dayTimeDuration),Yb=new je([bc,Ob],ke.xsd.dateTimeStamp),Zb=Object.freeze(Object.defineProperty({__proto__:null,anyAtomicType:tb,anySimpleType:eb,anyURI:Nb,base64Binary:Rb,boolean:fb,byte:Ub,date:wb,dateTime:vb,dateTimeStamp:Yb,dayTimeDuration:Kb,decimal:hb,double:mb,duration:gb,float:bb,gDay:Sb,gMonth:Eb,gMonthDay:kb,gYear:_b,gYearMonth:xb,hexBinary:Ib,int:Fb,integer:Cb,language:Mb,long:qb,negativeInteger:Bb,nonNegativeInteger:Hb,nonPositiveInteger:Pb,normalizedString:$b,positiveInteger:Qb,short:zb,string:pb,time:yb,token:Db,unsignedByte:Jb,unsignedInt:Vb,unsignedLong:Gb,unsignedShort:Wb,yearMonthDuration:Xb},Symbol.toStringTag,{value:"Module"}));class em extends Yh{constructor({factory:e}={}){super({factory:e,validations:{...Zb}})}}const tm=new cr([[ne.BlankNode,new Set(["BlankNode"])],[ne.BlankNodeOrIRI,new Set(["BlankNode","NamedNode"])],[ne.BlankNodeOrLiteral,new Set(["BlankNode","Literal"])],[ne.IRI,new Set(["NamedNode"])],[ne.IRIOrLiteral,new Set(["NamedNode","Literal"])],[ne.Literal,new Set(["Literal"])]]);function rm(n){const e=n.ptr.out([ne.class]).map(t=>Bi(t));return{generic:nm(e)}}function nm(n){return e=>{const t=new tt(e.valueOrNode.out([Ut.type]).terms);for(const r of n){const o=[...t].some(i=>r.has(i));e.test(o,ne.ClassConstraintComponent,{value:e.valueOrNode})}}}function om(n){const e=n.ptr.out([ne.datatype]).term,t=new em;return{generic:im(e,t)}}function im(n,e){return t=>{const r=n.equals(t.valueOrNode.term.datatype)&&e.validateSimple(t.valueOrNode.term);t.test(r,ne.DatatypeConstraintComponent,{args:{datatype:n},message:[t.factory.literal("Value does not have datatype {$datatype}")],value:t.valueOrNode})}}function am(n){const e=n.ptr.out([ne.nodeKind]).term,t=tm.get(e);return{generic:sm(e,t)}}function sm(n,e){return t=>{t.test(e.has(t.valueOrNode.term.termType),ne.NodeKindConstraintComponent,{args:{nodeKind:n},message:[t.factory.literal("Value does not have node kind {$nodeKind}")],value:t.valueOrNode})}}const lm=new cr([[ne.maxCount,Qf],[ne.minCount,Kf],[ne.and,rh],[ne.not,oh],[ne.or,ah],[ne.xone,lh],[ne.closed,ch],[ne.hasValue,ph],[ne.in,bh],[ne.disjoint,gh],[ne.equals,yh],[ne.lessThan,_h],[ne.lessThanOrEquals,Sh],[ne.maxExclusive,Ih],[ne.maxInclusive,Nh],[ne.minExclusive,Th],[ne.minInclusive,Lh],[ne.node,$h],[ne.property,Mh],[ne.qualifiedValueShape,Ph],[ne.languageIn,Fh],[ne.maxLength,Uh],[ne.minLength,Gh],[ne.pattern,Wh],[ne.uniqueLang,Qh],[ne.class,rm],[ne.datatype,om],[ne.nodeKind,am]]);class dm{constructor(e,{factory:t,...r}){if(this.factory=t,this.options=r,this.registry=new Df(lm),this.shapesPtr=new Sn({dataset:e,factory:t}),this.shapes=new cr,this.options.coverage&&(this.options.debug=!0,this.options.details=!0,this.options.trace=!0),this.options.validations)for(const[i,a]of this.options.validations)this.registry.validations.set(i,a);const o=[...this.shapesPtr.hasOut([ne.targetClass]),...this.shapesPtr.hasOut([ne.targetNode]),...this.shapesPtr.hasOut([ne.targetObjectsOf]),...this.shapesPtr.hasOut([ne.targetSubjectsOf]),...this.shapesPtr.hasOut([Ut.type],[ne.NodeShape]),...this.shapesPtr.hasOut([Ut.type],[ne.PropertyShape])];for(const i of o)this.shape(i)}shape(e){if(!e.term)return null;let t=this.shapes.get(e.term);return t||(t=new Jf(e,{validator:this}),this.shapes.set(e.term,t)),t}async validate(e,t){const r=new Sn({...e,factory:this.factory}),o=new ha({factory:this.factory,focusNode:r,options:this.options,validator:this});t?t=t.map(i=>this.shape(this.shapesPtr.node(i.terms))):t=this.shapes.values();for(const i of t){const a=o.create({shape:i});let s;r.isAny()?s=i.resolveTargets(a):s=r;for(const l of s)await i.validate(a.create({focusNode:l}))}return o.report}}let cm=class extends HTMLElement{constructor(e){super(),this.shape=null,this.attachShadow({mode:"open"}),this.form=document.createElement("form"),this.config=new vl(e,this.form),this.form.addEventListener("change",t=>{t.stopPropagation(),this.config.editMode&&this.validate(!0).then(r=>{this.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1,composed:!0,detail:{valid:r.conforms,report:r}}))}).catch(r=>{console.warn(r)})})}static get observedAttributes(){return vl.dataAttributes()}connectedCallback(){this.shadowRoot.prepend(this.form)}attributeChangedCallback(){this.config.updateAttributes(this),this.initialize()}initialize(){clearTimeout(this.initDebounceTimeout),this.initDebounceTimeout=setTimeout(async()=>{this.form.replaceChildren(document.createTextNode(this.config.attributes.loading));try{await this.config.loader.loadGraphs(),this.form.replaceChildren(),this.config.renderedNodes.clear();const e=this.findRootShaclShapeSubject();if(e){this.form.classList.forEach(r=>{this.form.classList.remove(r)}),this.form.classList.toggle("mode-edit",this.config.editMode),this.form.classList.toggle("mode-view",!this.config.editMode),this.config.theme.apply(this.form);const t=[this.config.theme.stylesheet];for(const r of vu())r.stylesheet&&t.push(r.stylesheet);if(this.shadowRoot.adoptedStyleSheets=t,this.shape=new Rt(e,this.config,this.config.attributes.valuesSubject?_e.namedNode(this.config.attributes.valuesSubject):void 0),this.form.appendChild(this.shape),this.config.editMode){if(this.config.attributes.submitButton!==null){const r=this.config.theme.createButton(this.config.attributes.submitButton||"Submit",!0);r.addEventListener("click",o=>{o.preventDefault(),this.form.reportValidity()&&this.validate().then(i=>{if(i?.conforms)this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}));else{let a=this.form.querySelector(":scope .invalid > .editor");a?a.focus():this.form.querySelector(":scope .invalid")?.scrollIntoView()}})}),this.form.appendChild(r)}this.config.attributes.valuesSubject&&this.removeFromDataGraph(_e.namedNode(this.config.attributes.valuesSubject)),await this.validate(!0)}}else if(this.config.store.countQuads(null,null,null,yn)>0)throw new Error("shacl root node shape not found")}catch(e){console.error(e);const t=document.createElement("div");t.innerText=String(e),this.form.replaceChildren(t)}},200)}serialize(e="text/turtle",t=this.toRDF()){const r=t.getQuads(null,null,null,null);return hu(r,e,this.config.prefixes)}toRDF(e=new Fe){return this.shape?.toRDF(e),e}registerPlugin(e){gu(e),this.initialize()}setTheme(e){this.config.theme=e,this.initialize()}setSharedShapesGraph(e){Qp(e),this.initialize()}setClassInstanceProvider(e){this.config.classInstanceProvider=e,this.initialize()}async validate(e=!1){for(const t of this.form.querySelectorAll(":scope .validation-error"))t.remove();for(const t of this.form.querySelectorAll(":scope .property-instance"))t.classList.remove("invalid"),t.querySelector(":scope > .editor")?.value?t.classList.add("valid"):t.classList.remove("valid");this.config.store.deleteGraph(this.config.valuesGraphId||""),this.shape?.toRDF(this.config.store),this.shape&&this.config.store.add(new Rn(this.shape.shaclSubject,_e.namedNode(ve+"targetNode"),this.shape.nodeId,this.config.valuesGraphId));try{const t=this.config.store,r=await new dm(t,{details:!0,factory:_e}).validate({dataset:t});for(const o of r.results)if(o.focusNode?.ptrs?.length)for(const i of o.focusNode.ptrs){const a=i._term;if(o.path?.length){const s=o.path[0].predicates[0];let l=this.form.querySelectorAll(`
341
344
  :scope shacl-node[data-node-id='${a.id}'] > shacl-property > .property-instance[data-path='${s.id}'] > .editor,
342
345
  :scope shacl-node[data-node-id='${a.id}'] > shacl-property > .shacl-group > .property-instance[data-path='${s.id}'] > .editor,
343
346
  :scope shacl-node[data-node-id='${a.id}'] > .shacl-group > shacl-property > .property-instance[data-path='${s.id}'] > .editor,
344
347
  :scope shacl-node[data-node-id='${a.id}'] > .shacl-group > shacl-property > .shacl-group > .property-instance[data-path='${s.id}'] > .editor`);l.length===0&&(l=this.form.querySelectorAll(`
345
348
  :scope [data-node-id='${a.id}'] > shacl-property > .property-instance[data-path='${s.id}'],
346
- :scope [data-node-id='${a.id}'] > shacl-property > .shacl-group > .property-instance[data-path='${s.id}']`));for(const u of l)if(u.classList.contains("editor")){if(!e||u.value){let f=u.parentElement;f.classList.add("invalid"),f.classList.remove("valid"),f.appendChild(this.createValidationErrorDisplay(o));do f instanceof Qe&&(f.open=!0),f=f.parentElement;while(f)}}else e||(u.classList.add("invalid"),u.classList.remove("valid"),u.appendChild(this.createValidationErrorDisplay(o,"node")))}else e||this.form.querySelector(`:scope [data-node-id='${a.id}']`)?.prepend(this.createValidationErrorDisplay(o,"node"))}return n}catch(t){return console.error(t),!1}}createValidationErrorDisplay(e,t){const n=document.createElement("span");if(n.classList.add("validation-error"),t&&n.classList.add(t),e)if(e.message?.length>0)for(const o of e.message)n.title+=o.value+`
347
- `;else n.title=e.sourceConstraintComponent?.value;return n}findRootShaclShapeSubject(){let e=null;if(this.config.attributes.shapeSubject){if(e=Se.namedNode(this.config.attributes.shapeSubject),this.config.store.getQuads(e,Be,sn,null).length===0){console.warn(`shapes graph does not contain requested root shape ${this.config.attributes.shapeSubject}`);return}}else if(this.config.attributes.valuesSubject&&this.config.store.countQuads(null,null,null,dt)>0){const t=Se.namedNode(this.config.attributes.valuesSubject),n=[...this.config.store.getQuads(t,Be,null,dt),...this.config.store.getQuads(t,ji,null,dt)];if(n.length===0){console.warn(`value subject '${this.config.attributes.valuesSubject}' has neither ${Be.id} nor ${ji.id} statement`);return}for(const o of n)if(this.config.store.getQuads(o.object,Be,sn,null).length>0){e=o.object;break}if(!e){const o=this.config.store.getQuads(null,Hr,n[0].object,null);if(o.length===0){console.error(`value subject '${this.config.attributes.valuesSubject}' has no shacl shape definition in the shapes graph`);return}if(o.length>1&&console.warn(`value subject '${this.config.attributes.valuesSubject}' has multiple shacl shape definitions in the shapes graph, choosing the first found (${o[0].subject})`),this.config.store.getQuads(o[0].subject,Be,sn,null).length===0){console.error(`value subject '${this.config.attributes.valuesSubject}' references a shape which is not a NodeShape (${o[0].subject})`);return}e=o[0].subject}}else{const t=this.config.store.getQuads(null,Be,sn,null);if(t.length==0){console.warn("shapes graph does not contain any root shapes");return}t.length>1&&(console.warn("shapes graph contains",t.length,"root shapes. choosing first found which is",t[0].subject.value),console.info('hint: set the shape to use with attribute "data-shape-subject"')),e=t[0].subject}return e}removeFromDataGraph(e){this.config.attributes.valuesSubject;for(const t of this.config.store.getQuads(e,null,null,dt))this.config.store.delete(t),(t.object.termType==="NamedNode"||t.object.termType==="BlankNode")&&this.removeFromDataGraph(t.object)}};const sm=`.editor:not([type='checkbox']) { border: 1px solid #DDD; }
349
+ :scope [data-node-id='${a.id}'] > shacl-property > .shacl-group > .property-instance[data-path='${s.id}']`));for(const u of l)if(u.classList.contains("editor")){if(!e||u.value){let f=u.parentElement;f.classList.add("invalid"),f.classList.remove("valid"),f.appendChild(this.createValidationErrorDisplay(o));do f instanceof Qe&&(f.open=!0),f=f.parentElement;while(f)}}else e||(u.classList.add("invalid"),u.classList.remove("valid"),u.appendChild(this.createValidationErrorDisplay(o,"node")))}else e||this.form.querySelector(`:scope [data-node-id='${a.id}']`)?.prepend(this.createValidationErrorDisplay(o,"node"))}return r}catch(t){return console.error(t),!1}}createValidationErrorDisplay(e,t){const r=document.createElement("span");if(r.classList.add("validation-error"),t&&r.classList.add(t),e)if(e.message?.length>0)for(const o of e.message)r.title+=o.value+`
350
+ `;else r.title=e.sourceConstraintComponent?.value;return r}findRootShaclShapeSubject(){let e=null;if(this.config.attributes.shapeSubject){if(e=_e.namedNode(this.config.attributes.shapeSubject),this.config.store.getQuads(e,ze,ln,null).length===0){console.warn(`shapes graph does not contain requested root shape ${this.config.attributes.shapeSubject}`);return}}else if(this.config.attributes.valuesSubject&&this.config.store.countQuads(null,null,null,dt)>0){const t=_e.namedNode(this.config.attributes.valuesSubject),r=[...this.config.store.getQuads(t,ze,null,dt),...this.config.store.getQuads(t,ji,null,dt)];if(r.length===0){console.warn(`value subject '${this.config.attributes.valuesSubject}' has neither ${ze.id} nor ${ji.id} statement`);return}for(const o of r)if(this.config.store.getQuads(o.object,ze,ln,null).length>0){e=o.object;break}if(!e){const o=this.config.store.getQuads(null,Vr,r[0].object,null);if(o.length===0){console.error(`value subject '${this.config.attributes.valuesSubject}' has no shacl shape definition in the shapes graph`);return}if(o.length>1&&console.warn(`value subject '${this.config.attributes.valuesSubject}' has multiple shacl shape definitions in the shapes graph, choosing the first found (${o[0].subject})`),this.config.store.getQuads(o[0].subject,ze,ln,null).length===0){console.error(`value subject '${this.config.attributes.valuesSubject}' references a shape which is not a NodeShape (${o[0].subject})`);return}e=o[0].subject}}else{const t=this.config.store.getQuads(null,ze,ln,null);if(t.length==0){console.warn("shapes graph does not contain any root shapes");return}t.length>1&&(console.warn("shapes graph contains",t.length,"root shapes. choosing first found which is",t[0].subject.value),console.info('hint: set the shape to use with attribute "data-shape-subject"')),e=t[0].subject}return e}removeFromDataGraph(e){this.config.attributes.valuesSubject;for(const t of this.config.store.getQuads(e,null,null,dt))this.config.store.delete(t),(t.object.termType==="NamedNode"||t.object.termType==="BlankNode")&&this.removeFromDataGraph(t.object)}};const um=`.editor:not([type='checkbox']) { border: 1px solid #DDD; }
348
351
  .property-instance label { display: inline-flex; word-break: break-word; line-height: 1em; padding-top: 0.15em; padding-right: 1em; flex-shrink: 0; position: relative; }
349
352
  .property-instance:not(:first-child) > label:not(.persistent) { visibility: hidden; max-height: 0; }
350
353
  .mode-edit .property-instance label { width: var(--label-width); }
351
- `;class lm extends du{constructor(e){super(e||sm),this.idCtr=0}createDefaultTemplate(e,t,n,o,i){o.id=`e${this.idCtr++}`,o.classList.add("editor"),i?.datatype?o.shaclDatatype=i.datatype:t instanceof Ze&&(o.shaclDatatype=t.datatype),i?.minCount!==void 0&&(o.dataset.minCount=String(i.minCount)),i?.class&&(o.dataset.class=i.class.value),i?.nodeKind?o.dataset.nodeKind=i.nodeKind.value:t instanceof En&&(o.dataset.nodeKind=ve+"IRI"),(i?.hasValue||i?.readonly)&&(o.disabled=!0),o.value=t?.value||i?.defaultValue?.value||"";const a=document.createElement("label");a.htmlFor=o.id,a.innerText=e,i?.description&&a.setAttribute("title",i.description.value);const s=i?.description?i.description.value:i?.pattern?i.pattern:null;s&&o.setAttribute("placeholder",s),n&&(o.setAttribute("required","true"),a.classList.add("required"));const l=document.createElement("div");return l.appendChild(a),l.appendChild(o),l}createDateEditor(e,t,n,o){const i=new $e;o.datatype?.value===It+"dateTime"?(i.type="datetime-local",i.setAttribute("step","1")):i.type="date",i.clearable=!0,i.dense=!0,i.classList.add("pr-0");const a=this.createDefaultTemplate(e,null,n,i,o);if(t)try{let s=new Date(t.value).toISOString();o.datatype?.value===It+"dateTime"?s=s.slice(0,19):s=s.slice(0,10),i.value=s}catch(s){console.error(s,t)}return a}createTextEditor(e,t,n,o){let i;return o.singleLine===!1?(i=new qt,i.resize="auto"):i=new $e,i.dense=!0,o.pattern&&(i.pattern=o.pattern),o.minLength&&(i.minLength=o.minLength),o.maxLength&&(i.maxLength=o.maxLength),this.createDefaultTemplate(e,t,n,i,o)}createLangStringEditor(e,t,n,o){const i=this.createTextEditor(e,t,n,o),a=i.querySelector(":scope .editor");let s;if(o.languageIn?.length){s=document.createElement("select");for(const l of o.languageIn){const u=document.createElement("option");u.innerText=l.value,s.appendChild(u)}}else s=document.createElement("input"),s.maxLength=5,s.size=5,s.placeholder="lang?";return s.title="Language of the text",s.classList.add("lang-chooser"),s.slot="suffix",s.addEventListener("change",l=>{l.stopPropagation(),a&&(a.dataset.lang=s.value,a.dispatchEvent(new Event("change",{bubbles:!0})))}),t instanceof Ze&&(s.value=t.language),a.dataset.lang=s.value,a.appendChild(s),i}createBooleanEditor(e,t,n,o){const i=document.createElement("input");i.type="checkbox",i.classList.add("ml-0");const a=this.createDefaultTemplate(e,null,n,i,o);return i.removeAttribute("required"),a.querySelector(":scope label")?.classList.remove("required"),t instanceof Ze&&(i.checked=t.value==="true"),a}createFileEditor(e,t,n,o){const i=document.createElement("input");return i.type="file",i.addEventListener("change",a=>{if(i.files?.length){a.stopPropagation();const s=new FileReader;s.readAsDataURL(i.files[0]),s.onload=()=>{i.binaryData=btoa(s.result),i.parentElement?.dispatchEvent(new Event("change",{bubbles:!0}))}}else i.binaryData=void 0}),this.createDefaultTemplate(e,t,n,i,o)}createNumberEditor(e,t,n,o){const i=new $e;i.type="number",i.clearable=!0,i.dense=!0,i.classList.add("pr-0");const a=o.minInclusive!==void 0?o.minInclusive:o.minExclusive!==void 0?o.minExclusive+1:void 0,s=o.maxInclusive!==void 0?o.maxInclusive:o.maxExclusive!==void 0?o.maxExclusive-1:void 0;return a!==void 0&&(i.min=String(a)),s!==void 0&&(i.max=String(s)),o.datatype?.value!==It+"integer"&&(i.step="0.1"),this.createDefaultTemplate(e,t,n,i,o)}createListEditor(e,t,n,o,i){const a=new Me;a.clearable=!0,a.dense=!0;const s=this.createDefaultTemplate(e,null,n,a,i),l=document.createElement("ul");let u=!0;const f=(m,y)=>{const b=document.createElement("li");if(typeof m.value=="string"?(b.dataset.value=m.value,b.innerText=m.label?m.label:m.value):(m.value instanceof Ze&&m.value.datatype.equals(tu)?b.dataset.value=m.value.value:b.dataset.value=m.value.id,b.innerText=m.label?m.label:m.value.value),y.appendChild(b),m.children?.length){u=!1;const g=document.createElement("ul");b.appendChild(g);for(const x of m.children)f(x,g)}};for(const m of o)f(m,l);return u||(a.collapse=!0),a.appendChild(l),t&&(a.value=t.value),s}createButton(e,t){const n=document.createElement("button");return n.type="button",n.innerHTML=e,n}}const dm=`@charset "UTF-8";/*!
354
+ `;class pm extends pu{constructor(e){super(e||um),this.idCtr=0}createDefaultTemplate(e,t,r,o,i){o.id=`e${this.idCtr++}`,o.classList.add("editor"),i?.datatype?o.shaclDatatype=i.datatype:t instanceof Ze&&(o.shaclDatatype=t.datatype),i?.minCount!==void 0&&(o.dataset.minCount=String(i.minCount)),i?.class&&(o.dataset.class=i.class.value),i?.nodeKind?o.dataset.nodeKind=i.nodeKind.value:t instanceof In&&(o.dataset.nodeKind=ve+"IRI"),(i?.hasValue||i?.readonly)&&(o.disabled=!0),o.value=t?.value||i?.defaultValue?.value||"";const a=document.createElement("label");a.htmlFor=o.id,a.innerText=e,i?.description&&a.setAttribute("title",i.description.value);const s=i?.description?i.description.value:i?.pattern?i.pattern:null;s&&o.setAttribute("placeholder",s),r&&(o.setAttribute("required","true"),a.classList.add("required"));const l=document.createElement("div");return l.appendChild(a),l.appendChild(o),l}createDateEditor(e,t,r,o){const i=new $e;o.datatype?.value===It+"dateTime"?(i.type="datetime-local",i.setAttribute("step","1")):i.type="date",i.clearable=!0,i.dense=!0,i.classList.add("pr-0");const a=this.createDefaultTemplate(e,null,r,i,o);if(t)try{let s=new Date(t.value).toISOString();o.datatype?.value===It+"dateTime"?s=s.slice(0,19):s=s.slice(0,10),i.value=s}catch(s){console.error(s,t)}return a}createTextEditor(e,t,r,o){let i;return o.singleLine===!1?(i=new Ft,i.resize="auto"):i=new $e,i.dense=!0,o.pattern&&(i.pattern=o.pattern),o.minLength&&(i.minLength=o.minLength),o.maxLength&&(i.maxLength=o.maxLength),this.createDefaultTemplate(e,t,r,i,o)}createLangStringEditor(e,t,r,o){const i=this.createTextEditor(e,t,r,o),a=i.querySelector(":scope .editor");let s;if(o.languageIn?.length){s=document.createElement("select");for(const l of o.languageIn){const u=document.createElement("option");u.innerText=l.value,s.appendChild(u)}}else s=document.createElement("input"),s.maxLength=5,s.size=5,s.placeholder="lang?";return s.title="Language of the text",s.classList.add("lang-chooser"),s.slot="suffix",s.addEventListener("change",l=>{l.stopPropagation(),a&&(a.dataset.lang=s.value,a.dispatchEvent(new Event("change",{bubbles:!0})))}),t instanceof Ze&&(s.value=t.language),a.dataset.lang=s.value,a.appendChild(s),i}createBooleanEditor(e,t,r,o){const i=document.createElement("input");i.type="checkbox",i.classList.add("ml-0");const a=this.createDefaultTemplate(e,null,r,i,o);return i.removeAttribute("required"),a.querySelector(":scope label")?.classList.remove("required"),t instanceof Ze&&(i.checked=t.value==="true"),a}createFileEditor(e,t,r,o){const i=document.createElement("input");return i.type="file",i.addEventListener("change",a=>{if(i.files?.length){a.stopPropagation();const s=new FileReader;s.readAsDataURL(i.files[0]),s.onload=()=>{i.binaryData=btoa(s.result),i.parentElement?.dispatchEvent(new Event("change",{bubbles:!0}))}}else i.binaryData=void 0}),this.createDefaultTemplate(e,t,r,i,o)}createNumberEditor(e,t,r,o){const i=new $e;i.type="number",i.clearable=!0,i.dense=!0,i.classList.add("pr-0");const a=o.minInclusive!==void 0?o.minInclusive:o.minExclusive!==void 0?o.minExclusive+1:void 0,s=o.maxInclusive!==void 0?o.maxInclusive:o.maxExclusive!==void 0?o.maxExclusive-1:void 0;return a!==void 0&&(i.min=String(a)),s!==void 0&&(i.max=String(s)),o.datatype?.value!==It+"integer"&&(i.step="0.1"),this.createDefaultTemplate(e,t,r,i,o)}createListEditor(e,t,r,o,i){const a=new Me;a.clearable=!0,a.dense=!0;const s=this.createDefaultTemplate(e,null,r,a,i),l=document.createElement("ul");let u=!0;const f=(m,y)=>{const b=document.createElement("li");if(typeof m.value=="string"?(b.dataset.value=m.value,b.innerText=m.label?m.label:m.value):(m.value instanceof Ze&&m.value.datatype.equals(ou)?b.dataset.value=m.value.value:b.dataset.value=m.value.id,b.innerText=m.label?m.label:m.value.value),y.appendChild(b),m.children?.length){u=!1;const g=document.createElement("ul");b.appendChild(g);for(const x of m.children)f(x,g)}};for(const m of o)f(m,l);return u||(a.collapse=!0),a.appendChild(l),t&&(a.value=t.value),s}createButton(e,t){const r=document.createElement("button");return r.type="button",r.innerHTML=e,r}}const fm=`@charset "UTF-8";/*!
352
355
  * Bootstrap v5.3.7 (https://getbootstrap.com/)
353
356
  * Copyright 2011-2025 The Bootstrap Authors
354
357
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
355
358
  */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;line-height:inherit;font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-weight:300;line-height:1.2;font-size:calc(1.625rem + 4.5vw)}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-weight:300;line-height:1.2;font-size:calc(1.575rem + 3.9vw)}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-weight:300;line-height:1.2;font-size:calc(1.525rem + 3.3vw)}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-weight:300;line-height:1.2;font-size:calc(1.475rem + 2.7vw)}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-weight:300;line-height:1.2;font-size:calc(1.425rem + 2.1vw)}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-weight:300;line-height:1.2;font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), 0.05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), 0.1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#a6b5cc;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#b5b6b7;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#a7b9b1;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#a6c3ca;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#ccc2a4;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#c6acae;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#c6c7c8;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#4d5154;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;max-width:100%;height:100%;padding:1rem .75rem;overflow:hidden;color:rgba(var(--bs-body-color-rgb),.65);text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem;padding-left:.75rem}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:-webkit-autofill~label{transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>textarea:focus~label::after,.form-floating>textarea:not(:placeholder-shown)~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>textarea:disabled~label::after{background-color:var(--bs-secondary-bg)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>.form-control:disabled~label,.form-floating>:disabled~label{color:#6c757d}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(-1 * var(--bs-border-width));border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:var(--bs-box-shadow);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(-1 * var(--bs-border-width))}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(-1 * var(--bs-border-width))}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:nth-child(n+3),.btn-group-vertical>:not(.btn-check)+.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:0.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-grow:1;flex-basis:0;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), 0.65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), 0.8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), 0.3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), 0.15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-grow:1;flex-basis:100%;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child)>.card-header,.card-group>.card:not(:last-child)>.card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child)>.card-footer,.card-group>.card:not(:last-child)>.card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child)>.card-header,.card-group>.card:not(:first-child)>.card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child)>.card-footer,.card-group>.card:not(:first-child)>.card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-collapse,.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}[data-bs-theme=dark] .accordion-button::after{--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(-1 * var(--bs-border-width))}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:var(--bs-progress-height)}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:not(.active):focus,.list-group-item-action:not(.active):hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:not(.active):active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;filter:var(--bs-btn-close-filter);border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white{--bs-btn-close-filter:invert(1) grayscale(100%) brightness(200%)}:root,[data-bs-theme=light]{--bs-btn-close-filter: }[data-bs-theme=dark]{--bs-btn-close-filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color:var(--bs-body-color);--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transform:translate(0,-50px);transition:transform .3s ease-out}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin-top:calc(-.5 * var(--bs-modal-header-padding-y));margin-right:calc(-.5 * var(--bs-modal-header-padding-x));margin-bottom:calc(-.5 * var(--bs-modal-header-padding-y));margin-left:auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:var(--bs-box-shadow);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;filter:var(--bs-carousel-control-icon-filter);border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{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:var(--bs-carousel-indicator-active-bg);background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:var(--bs-carousel-caption-color);text-align:center}.carousel-dark{--bs-carousel-indicator-active-bg:#000;--bs-carousel-caption-color:#000;--bs-carousel-control-icon-filter:invert(1) grayscale(100)}:root,[data-bs-theme=light]{--bs-carousel-indicator-active-bg:#fff;--bs-carousel-caption-color:#fff;--bs-carousel-control-icon-filter: }[data-bs-theme=dark]{--bs-carousel-indicator-active-bg:#000;--bs-carousel-caption-color:#000;--bs-carousel-control-icon-filter:invert(1) grayscale(100)}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:var(--bs-box-shadow-sm);--bs-offcanvas-transition:transform 0.3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y));margin-left:auto}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-underline-offset:0.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.visually-hidden *,.visually-hidden-focusable:not(:focus):not(:focus-within) *{overflow:hidden!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10{--bs-link-opacity:0.1}.link-opacity-10-hover:hover{--bs-link-opacity:0.1}.link-opacity-25{--bs-link-opacity:0.25}.link-opacity-25-hover:hover{--bs-link-opacity:0.25}.link-opacity-50{--bs-link-opacity:0.5}.link-opacity-50-hover:hover{--bs-link-opacity:0.5}.link-opacity-75{--bs-link-opacity:0.75}.link-opacity-75-hover:hover{--bs-link-opacity:0.75}.link-opacity-100{--bs-link-opacity:1}.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1{text-underline-offset:0.125em!important}.link-offset-1-hover:hover{text-underline-offset:0.125em!important}.link-offset-2{text-underline-offset:0.25em!important}.link-offset-2-hover:hover{text-underline-offset:0.25em!important}.link-offset-3{text-underline-offset:0.375em!important}.link-offset-3-hover:hover{text-underline-offset:0.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0{--bs-link-underline-opacity:0}.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10{--bs-link-underline-opacity:0.1}.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:0.1}.link-underline-opacity-25{--bs-link-underline-opacity:0.25}.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:0.25}.link-underline-opacity-50{--bs-link-underline-opacity:0.5}.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:0.5}.link-underline-opacity-75{--bs-link-underline-opacity:0.75}.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:0.75}.link-underline-opacity-100{--bs-link-underline-opacity:1}.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}
356
- /*# sourceMappingURL=bootstrap.min.css.map */`,cm=`form.mode-edit { --label-width: 0em; }
359
+ /*# sourceMappingURL=bootstrap.min.css.map */`,hm=`form.mode-edit { --label-width: 0em; }
357
360
  .lang-chooser { right: 24px; font-size: 0.8em; }
358
361
  .property-instance[data-description]::after { content: attr(data-description); position: absolute; bottom: -12px; left: 13px; font-size: 12px; opacity: 0.7;}
359
362
  .property-instance { margin-bottom:14px; }
360
363
  .form-floating[data-description] { margin-bottom: 28px; }
361
- .remove-button { padding: 6px; }`;class um extends lm{constructor(){super(dm+`
362
- `+cm)}apply(e){super.apply(e),e.dataset.bsTheme="light"}createDefaultTemplate(e,t,n,o,i){const a=super.createDefaultTemplate(e,t,n,o,i);o.type!=="checkbox"&&(a.classList.add("form-floating"),o.tagName==="SELECT"?o.classList.add("form-select"):o.classList.add("form-control"));const s=a.querySelector("label");return s?.classList.add("form-label"),s?.title&&(a.dataset.description=s.title,s.removeAttribute("title")),a.prepend(o),a}createButton(e,t){const n=super.createButton(e,t);return n.classList.add("btn",t?"btn-primary":"btn-outline-secondary"),n}}class pm extends am{constructor(){super(new um)}}window.customElements.define("shacl-form",pm);export{gl as Config,Hp as Loader,wm as Plugin,pm as ShaclForm,su as ShaclPropertyTemplate,du as Theme,An as findLabel,hu as registerPlugin,Gp as setSharedShapesGraph};
364
+ .remove-button { padding: 6px; }`;class bm extends pm{constructor(){super(fm+`
365
+ `+hm)}apply(e){super.apply(e),e.dataset.bsTheme="light"}createDefaultTemplate(e,t,r,o,i){const a=super.createDefaultTemplate(e,t,r,o,i);o.type!=="checkbox"&&(a.classList.add("form-floating"),o.tagName==="SELECT"?o.classList.add("form-select"):o.classList.add("form-control"));const s=a.querySelector("label");return s?.classList.add("form-label"),s?.title&&(a.dataset.description=s.title,s.removeAttribute("title")),a.prepend(o),a}createButton(e,t){const r=super.createButton(e,t);return r.classList.add("btn",t?"btn-primary":"btn-outline-secondary"),r}}class mm extends cm{constructor(){super(new bm)}}window.customElements.define("shacl-form",mm);export{vl as Config,Jp as Loader,Sm as Plugin,mm as ShaclForm,cu as ShaclPropertyTemplate,pu as Theme,Pt as findLabel,gu as registerPlugin,Qp as setSharedShapesGraph};