@ulb-darmstadt/shacl-form 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ec(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ic(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?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 Vn={},hr={},ja;function Rc(){if(ja)return hr;ja=1,hr.byteLength=s,hr.toByteArray=d,hr.fromByteArray=v;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 d(b){var g,x=a(b),_=x[0],k=x[1],E=new t(l(b,_,k)),y=0,u=k>0?_-4:_,h;for(h=0;h<u;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[y++]=g>>16&255,E[y++]=g>>8&255,E[y++]=g&255;return k===2&&(g=e[b.charCodeAt(h)]<<2|e[b.charCodeAt(h+1)]>>4,E[y++]=g&255),k===1&&(g=e[b.charCodeAt(h)]<<10|e[b.charCodeAt(h+1)]<<4|e[b.charCodeAt(h+2)]>>2,E[y++]=g>>8&255,E[y++]=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 v(b){for(var g,x=b.length,_=x%3,k=[],E=16383,y=0,u=x-_;y<u;y+=E)k.push(m(b,y,y+E>u?u:y+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 hr}var tn={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Ta;function Nc(){return Ta||(Ta=1,tn.read=function(r,e,t,n,o){var i,a,s=o*8-n-1,l=(1<<s)-1,d=l>>1,f=-7,m=t?o-1:0,v=t?-1:1,b=r[e+m];for(m+=v,i=b&(1<<-f)-1,b>>=-f,f+=s;f>0;i=i*256+r[e+m],m+=v,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=a*256+r[e+m],m+=v,f-=8);if(i===0)i=1-d;else{if(i===l)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-d}return(b?-1:1)*a*Math.pow(2,i-n)},tn.write=function(r,e,t,n,o,i){var a,s,l,d=i*8-o-1,f=(1<<d)-1,m=f>>1,v=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+=v/l:e+=v*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,d+=o;d>0;r[t+b]=a&255,b+=g,a/=256,d-=8);r[t+b-g]|=x*128}),tn}/*!
1
+ var Kt=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 m=b.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=b.indexOf("=");x===-1&&(x=m);var _=x===m?0:4-x%4;return[x,_]}function s(b){var m=a(b),x=m[0],_=m[1];return(x+_)*3/4-_}function l(b,m,x){return(m+x)*3/4-x}function u(b){var m,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)m=e[b.charCodeAt(h)]<<18|e[b.charCodeAt(h+1)]<<12|e[b.charCodeAt(h+2)]<<6|e[b.charCodeAt(h+3)],E[v++]=m>>16&255,E[v++]=m>>8&255,E[v++]=m&255;return k===2&&(m=e[b.charCodeAt(h)]<<2|e[b.charCodeAt(h+1)]>>4,E[v++]=m&255),k===1&&(m=e[b.charCodeAt(h)]<<10|e[b.charCodeAt(h+1)]<<4|e[b.charCodeAt(h+2)]>>2,E[v++]=m>>8&255,E[v++]=m&255),E}function f(b){return r[b>>18&63]+r[b>>12&63]+r[b>>6&63]+r[b&63]}function g(b,m,x){for(var _,k=[],E=m;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 m,x=b.length,_=x%3,k=[],E=16383,v=0,c=x-_;v<c;v+=E)k.push(g(b,v,v+E>c?c:v+E));return _===1?(m=b[x-1],k.push(r[m>>2]+r[m<<4&63]+"==")):_===2&&(m=(b[x-2]<<8)+b[x-1],k.push(r[m>>10]+r[m>>4&63]+r[m<<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,g=t?o-1:0,y=t?-1:1,b=r[e+g];for(g+=y,i=b&(1<<-f)-1,b>>=-f,f+=s;f>0;i=i*256+r[e+g],g+=y,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=a*256+r[e+g],g+=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,g=f>>1,y=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,m=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+g>=1?e+=y/l:e+=y*Math.pow(2,1-g),e*l>=2&&(a++,l/=2),a+g>=f?(s=0,a=f):a+g>=1?(s=(e*l-1)*Math.pow(2,o),a=a+g):(s=e*Math.pow(2,g-1)*Math.pow(2,o),a=0));o>=8;r[t+b]=s&255,b+=m,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;r[t+b]=a&255,b+=m,a/=256,u-=8);r[t+b-m]|=x*128}),Yr}/*!
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 Aa;function vt(){return Aa||(Aa=1,function(r){const e=Rc(),t=Nc(),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),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(S,c),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 c=new Uint8Array(S);return Object.setPrototypeOf(c,s.prototype),c}function s(S,c,p){if(typeof S=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(S)}return l(S,c,p)}s.poolSize=8192;function l(S,c,p){if(typeof S=="string")return v(S,c);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,c,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($,c,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"),c,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,c,p){return l(S,c,p)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function d(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,c,p){return d(S),S<=0?a(S):c!==void 0?typeof p=="string"?a(S).fill(c,p):a(S).fill(c):a(S)}s.alloc=function(S,c,p){return f(S,c,p)};function m(S){return d(S),a(S<0?0:k(S)|0)}s.allocUnsafe=function(S){return m(S)},s.allocUnsafeSlow=function(S){return m(S)};function v(S,c){if((typeof c!="string"||c==="")&&(c="utf8"),!s.isEncoding(c))throw new TypeError("Unknown encoding: "+c);const p=y(S,c)|0;let $=a(p);const J=$.write(S,c);return J!==p&&($=$.slice(0,J)),$}function b(S){const c=S.length<0?0:k(S.length)|0,p=a(c);for(let $=0;$<c;$+=1)p[$]=S[$]&255;return p}function g(S){if(ie(S,Uint8Array)){const c=new Uint8Array(S);return x(c.buffer,c.byteOffset,c.byteLength)}return b(S)}function x(S,c,p){if(c<0||S.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<c+(p||0))throw new RangeError('"length" is outside of buffer bounds');let $;return c===void 0&&p===void 0?$=new Uint8Array(S):p===void 0?$=new Uint8Array(S,c):$=new Uint8Array(S,c,p),Object.setPrototypeOf($,s.prototype),$}function _(S){if(s.isBuffer(S)){const c=k(S.length)|0,p=a(c);return p.length===0||S.copy(p,0,0,c),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(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,p){if(ie(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),ie(p,Uint8Array)&&(p=s.from(p,p.offset,p.byteLength)),!s.isBuffer(c)||!s.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===p)return 0;let $=c.length,J=p.length;for(let oe=0,se=Math.min($,J);oe<se;++oe)if(c[oe]!==p[oe]){$=c[oe],J=p[oe];break}return $<J?-1:J<$?1:0},s.isEncoding=function(c){switch(String(c).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(c,p){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);let $;if(p===void 0)for(p=0,$=0;$<c.length;++$)p+=c[$].length;const J=s.allocUnsafe(p);let oe=0;for($=0;$<c.length;++$){let se=c[$];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 y(S,c){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(c){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;c=(""+c).toLowerCase(),J=!0}}s.byteLength=y;function u(S,c,p){let $=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,c>>>=0,p<=c))return"";for(S||(S="utf8");;)switch(S){case"hex":return K(this,c,p);case"utf8":case"utf-8":return A(this,c,p);case"ascii":return ee(this,c,p);case"latin1":case"binary":return C(this,c,p);case"base64":return j(this,c,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,c,p);default:if($)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),$=!0}}s.prototype._isBuffer=!0;function h(S,c,p){const $=S[c];S[c]=S[p],S[p]=$}s.prototype.swap16=function(){const c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<c;p+=2)h(this,p,p+1);return this},s.prototype.swap32=function(){const c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<c;p+=4)h(this,p,p+3),h(this,p+1,p+2);return this},s.prototype.swap64=function(){const c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<c;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 c=this.length;return c===0?"":arguments.length===0?A(this,0,c):u.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){let c="";const p=r.INSPECT_MAX_BYTES;return c=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(c+=" ... "),"<Buffer "+c+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(c,p,$,J,oe){if(ie(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(p===void 0&&(p=0),$===void 0&&($=c?c.length:0),J===void 0&&(J=0),oe===void 0&&(oe=this.length),p<0||$>c.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===c)return 0;let se=oe-J,ye=$-p;const Te=Math.min(se,ye),Ne=this.slice(J,oe),Ae=c.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,c,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 c=="string"&&(c=s.from(c,$)),s.isBuffer(c))return c.length===0?-1:D(S,c,p,$,J);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?J?Uint8Array.prototype.indexOf.call(S,c,p):Uint8Array.prototype.lastIndexOf.call(S,c,p):D(S,[c],p,$,J);throw new TypeError("val must be string, number or Buffer")}function D(S,c,p,$,J){let oe=1,se=S.length,ye=c.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(S.length<2||c.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(c,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(c,Ee)){Ae=!1;break}if(Ae)return Ne}return-1}s.prototype.includes=function(c,p,$){return this.indexOf(c,p,$)!==-1},s.prototype.indexOf=function(c,p,$){return R(this,c,p,$,!0)},s.prototype.lastIndexOf=function(c,p,$){return R(this,c,p,$,!1)};function N(S,c,p,$){p=Number(p)||0;const J=S.length-p;$?($=Number($),$>J&&($=J)):$=J;const oe=c.length;$>oe/2&&($=oe/2);let se;for(se=0;se<$;++se){const ye=parseInt(c.substr(se*2,2),16);if(Se(ye))return se;S[p+se]=ye}return se}function B(S,c,p,$){return fe(ue(c,S.length-p),S,p,$)}function I(S,c,p,$){return fe(he(c),S,p,$)}function M(S,c,p,$){return fe(le(c),S,p,$)}function q(S,c,p,$){return fe(X(c,S.length-p),S,p,$)}s.prototype.write=function(c,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),c.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,c,p,$);case"utf8":case"utf-8":return B(this,c,p,$);case"ascii":case"latin1":case"binary":return I(this,c,p,$);case"base64":return M(this,c,p,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,c,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,c,p){return c===0&&p===S.length?e.fromByteArray(S):e.fromByteArray(S.slice(c,p))}function A(S,c,p){p=Math.min(S.length,p);const $=[];let J=c;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 c=S.length;if(c<=Y)return String.fromCharCode.apply(String,S);let p="",$=0;for(;$<c;)p+=String.fromCharCode.apply(String,S.slice($,$+=Y));return p}function ee(S,c,p){let $="";p=Math.min(S.length,p);for(let J=c;J<p;++J)$+=String.fromCharCode(S[J]&127);return $}function C(S,c,p){let $="";p=Math.min(S.length,p);for(let J=c;J<p;++J)$+=String.fromCharCode(S[J]);return $}function K(S,c,p){const $=S.length;(!c||c<0)&&(c=0),(!p||p<0||p>$)&&(p=$);let J="";for(let oe=c;oe<p;++oe)J+=qe[S[oe]];return J}function w(S,c,p){const $=S.slice(c,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(c,p){const $=this.length;c=~~c,p=p===void 0?$:~~p,c<0?(c+=$,c<0&&(c=0)):c>$&&(c=$),p<0?(p+=$,p<0&&(p=0)):p>$&&(p=$),p<c&&(p=c);const J=this.subarray(c,p);return Object.setPrototypeOf(J,s.prototype),J};function z(S,c,p){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+c>p)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,p,$){c=c>>>0,p=p>>>0,$||z(c,p,this.length);let J=this[c],oe=1,se=0;for(;++se<p&&(oe*=256);)J+=this[c+se]*oe;return J},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,p,$){c=c>>>0,p=p>>>0,$||z(c,p,this.length);let J=this[c+--p],oe=1;for(;p>0&&(oe*=256);)J+=this[c+--p]*oe;return J},s.prototype.readUint8=s.prototype.readUInt8=function(c,p){return c=c>>>0,p||z(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,p){return c=c>>>0,p||z(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,p){return c=c>>>0,p||z(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,p){return c=c>>>0,p||z(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,p){return c=c>>>0,p||z(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readBigUInt64LE=we(function(c){c=c>>>0,L(c,"offset");const p=this[c],$=this[c+7];(p===void 0||$===void 0)&&G(c,this.length-8);const J=p+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24,oe=this[++c]+this[++c]*2**8+this[++c]*2**16+$*2**24;return BigInt(J)+(BigInt(oe)<<BigInt(32))}),s.prototype.readBigUInt64BE=we(function(c){c=c>>>0,L(c,"offset");const p=this[c],$=this[c+7];(p===void 0||$===void 0)&&G(c,this.length-8);const J=p*2**24+this[++c]*2**16+this[++c]*2**8+this[++c],oe=this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+$;return(BigInt(J)<<BigInt(32))+BigInt(oe)}),s.prototype.readIntLE=function(c,p,$){c=c>>>0,p=p>>>0,$||z(c,p,this.length);let J=this[c],oe=1,se=0;for(;++se<p&&(oe*=256);)J+=this[c+se]*oe;return oe*=128,J>=oe&&(J-=Math.pow(2,8*p)),J},s.prototype.readIntBE=function(c,p,$){c=c>>>0,p=p>>>0,$||z(c,p,this.length);let J=p,oe=1,se=this[c+--J];for(;J>0&&(oe*=256);)se+=this[c+--J]*oe;return oe*=128,se>=oe&&(se-=Math.pow(2,8*p)),se},s.prototype.readInt8=function(c,p){return c=c>>>0,p||z(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,p){c=c>>>0,p||z(c,2,this.length);const $=this[c]|this[c+1]<<8;return $&32768?$|4294901760:$},s.prototype.readInt16BE=function(c,p){c=c>>>0,p||z(c,2,this.length);const $=this[c+1]|this[c]<<8;return $&32768?$|4294901760:$},s.prototype.readInt32LE=function(c,p){return c=c>>>0,p||z(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,p){return c=c>>>0,p||z(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readBigInt64LE=we(function(c){c=c>>>0,L(c,"offset");const p=this[c],$=this[c+7];(p===void 0||$===void 0)&&G(c,this.length-8);const J=this[c+4]+this[c+5]*2**8+this[c+6]*2**16+($<<24);return(BigInt(J)<<BigInt(32))+BigInt(p+this[++c]*2**8+this[++c]*2**16+this[++c]*2**24)}),s.prototype.readBigInt64BE=we(function(c){c=c>>>0,L(c,"offset");const p=this[c],$=this[c+7];(p===void 0||$===void 0)&&G(c,this.length-8);const J=(p<<24)+this[++c]*2**16+this[++c]*2**8+this[++c];return(BigInt(J)<<BigInt(32))+BigInt(this[++c]*2**24+this[++c]*2**16+this[++c]*2**8+$)}),s.prototype.readFloatLE=function(c,p){return c=c>>>0,p||z(c,4,this.length),t.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,p){return c=c>>>0,p||z(c,4,this.length),t.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,p){return c=c>>>0,p||z(c,8,this.length),t.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,p){return c=c>>>0,p||z(c,8,this.length),t.read(this,c,!1,52,8)};function Q(S,c,p,$,J,oe){if(!s.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>J||c<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(c,p,$,J){if(c=+c,p=p>>>0,$=$>>>0,!J){const ye=Math.pow(2,8*$)-1;Q(this,c,p,$,ye,0)}let oe=1,se=0;for(this[p]=c&255;++se<$&&(oe*=256);)this[p+se]=c/oe&255;return p+$},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,p,$,J){if(c=+c,p=p>>>0,$=$>>>0,!J){const ye=Math.pow(2,8*$)-1;Q(this,c,p,$,ye,0)}let oe=$-1,se=1;for(this[p+oe]=c&255;--oe>=0&&(se*=256);)this[p+oe]=c/se&255;return p+$},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,1,255,0),this[p]=c&255,p+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,2,65535,0),this[p]=c&255,this[p+1]=c>>>8,p+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,2,65535,0),this[p]=c>>>8,this[p+1]=c&255,p+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,4,4294967295,0),this[p+3]=c>>>24,this[p+2]=c>>>16,this[p+1]=c>>>8,this[p]=c&255,p+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,4,4294967295,0),this[p]=c>>>24,this[p+1]=c>>>16,this[p+2]=c>>>8,this[p+3]=c&255,p+4};function W(S,c,p,$,J){pe(c,$,J,S,p,7);let oe=Number(c&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(c>>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,c,p,$,J){pe(c,$,J,S,p,7);let oe=Number(c&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(c>>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(c,p=0){return W(this,c,p,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=we(function(c,p=0){return ae(this,c,p,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(c,p,$,J){if(c=+c,p=p>>>0,!J){const Te=Math.pow(2,8*$-1);Q(this,c,p,$,Te-1,-Te)}let oe=0,se=1,ye=0;for(this[p]=c&255;++oe<$&&(se*=256);)c<0&&ye===0&&this[p+oe-1]!==0&&(ye=1),this[p+oe]=(c/se>>0)-ye&255;return p+$},s.prototype.writeIntBE=function(c,p,$,J){if(c=+c,p=p>>>0,!J){const Te=Math.pow(2,8*$-1);Q(this,c,p,$,Te-1,-Te)}let oe=$-1,se=1,ye=0;for(this[p+oe]=c&255;--oe>=0&&(se*=256);)c<0&&ye===0&&this[p+oe+1]!==0&&(ye=1),this[p+oe]=(c/se>>0)-ye&255;return p+$},s.prototype.writeInt8=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,1,127,-128),c<0&&(c=255+c+1),this[p]=c&255,p+1},s.prototype.writeInt16LE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,2,32767,-32768),this[p]=c&255,this[p+1]=c>>>8,p+2},s.prototype.writeInt16BE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,2,32767,-32768),this[p]=c>>>8,this[p+1]=c&255,p+2},s.prototype.writeInt32LE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,4,2147483647,-2147483648),this[p]=c&255,this[p+1]=c>>>8,this[p+2]=c>>>16,this[p+3]=c>>>24,p+4},s.prototype.writeInt32BE=function(c,p,$){return c=+c,p=p>>>0,$||Q(this,c,p,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[p]=c>>>24,this[p+1]=c>>>16,this[p+2]=c>>>8,this[p+3]=c&255,p+4},s.prototype.writeBigInt64LE=we(function(c,p=0){return W(this,c,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=we(function(c,p=0){return ae(this,c,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function U(S,c,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,c,p,$,J){return c=+c,p=p>>>0,J||U(S,c,p,4),t.write(S,c,p,$,23,4),p+4}s.prototype.writeFloatLE=function(c,p,$){return H(this,c,p,!0,$)},s.prototype.writeFloatBE=function(c,p,$){return H(this,c,p,!1,$)};function V(S,c,p,$,J){return c=+c,p=p>>>0,J||U(S,c,p,8),t.write(S,c,p,$,52,8),p+8}s.prototype.writeDoubleLE=function(c,p,$){return V(this,c,p,!0,$)},s.prototype.writeDoubleBE=function(c,p,$){return V(this,c,p,!1,$)},s.prototype.copy=function(c,p,$,J){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if($||($=0),!J&&J!==0&&(J=this.length),p>=c.length&&(p=c.length),p||(p=0),J>0&&J<$&&(J=$),J===$||c.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),c.length-p<J-$&&(J=c.length-p+$);const oe=J-$;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(p,$,J):Uint8Array.prototype.set.call(c,this.subarray($,J),p),oe},s.prototype.fill=function(c,p,$,J){if(typeof c=="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(c.length===1){const se=c.charCodeAt(0);(J==="utf8"&&se<128||J==="latin1")&&(c=se)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));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,c||(c=0);let oe;if(typeof c=="number")for(oe=p;oe<$;++oe)this[oe]=c;else{const se=s.isBuffer(c)?c:s.from(c,J),ye=se.length;if(ye===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(oe=0;oe<$-p;++oe)this[oe+p]=se[oe%ye]}return this};const F={};function Z(S,c,p){F[S]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:c.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,c){return`The "${S}" argument must be of type number. Received type ${typeof c}`},TypeError),Z("ERR_OUT_OF_RANGE",function(S,c,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 ${c}. Received ${J}`,$},RangeError);function te(S){let c="",p=S.length;const $=S[0]==="-"?1:0;for(;p>=$+4;p-=3)c=`_${S.slice(p-3,p)}${c}`;return`${S.slice(0,p)}${c}`}function ce(S,c,p){L(c,"offset"),(S[c]===void 0||S[c+p]===void 0)&&G(c,S.length-(p+1))}function pe(S,c,p,$,J,oe){if(S>p||S<c){const se=typeof c=="bigint"?"n":"";let ye;throw c===0||c===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,c){if(typeof S!="number")throw new F.ERR_INVALID_ARG_TYPE(c,"number",S)}function G(S,c,p){throw Math.floor(S)!==S?(L(S,p),new F.ERR_OUT_OF_RANGE("offset","an integer",S)):c<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${c}`,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,c){c=c||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){(c-=3)>-1&&oe.push(239,191,189);continue}else if(se+1===$){(c-=3)>-1&&oe.push(239,191,189);continue}J=p;continue}if(p<56320){(c-=3)>-1&&oe.push(239,191,189),J=p;continue}p=(J-55296<<10|p-56320)+65536}else J&&(c-=3)>-1&&oe.push(239,191,189);if(J=null,p<128){if((c-=1)<0)break;oe.push(p)}else if(p<2048){if((c-=2)<0)break;oe.push(p>>6|192,p&63|128)}else if(p<65536){if((c-=3)<0)break;oe.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((c-=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 c=[];for(let p=0;p<S.length;++p)c.push(S.charCodeAt(p)&255);return c}function X(S,c){let p,$,J;const oe=[];for(let se=0;se<S.length&&!((c-=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,c,p,$){let J;for(J=0;J<$&&!(J+p>=c.length||J>=S.length);++J)c[J+p]=S[J];return J}function ie(S,c){return S instanceof c||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===c.name}function Se(S){return S!==S}const qe=function(){const S="0123456789abcdef",c=new Array(256);for(let p=0;p<16;++p){const $=p*16;for(let J=0;J<16;++J)c[$+J]=S[p]+S[J]}return c}();function we(S){return typeof BigInt>"u"?Ue:S}function Ue(){throw new Error("BigInt not supported")}}(Vn)),Vn}var jc=vt();const br="http://www.w3.org/1999/02/22-rdf-syntax-ns#",mr="http://www.w3.org/2001/XMLSchema#",rn="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:`${rn}reify#forSome`,forAll:`${rn}reify#forAll`},log:{implies:`${rn}log#implies`,isImpliedBy:`${rn}log#isImpliedBy`}},{xsd:nn}=Pe,Tc=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g,La={"\\":"\\","'":"'",'"':'"',n:`
7
- `,r:"\r",t:" ",f:"\f",b:"\b",_:"_","~":"~",".":".","-":"-","!":"!",$:"$","&":"&","(":"(",")":")","*":"*","+":"+",",":",",";":";","=":"=","/":"/","?":"?","#":"#","@":"@","%":"%"},Ac=/[\x00-\x20<>\\"\{\}\|\^\`]/,Lc={_iri:!0,_unescapedIri:!0,_simpleQuotedString:!0,_langcode:!0,_blank:!0,_newline:!0,_comment:!0,_whitespace:!0,_endOfFile:!0},Oc=/$0^/;class $c{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 Lc)&&this[t]instanceof RegExp&&(this[t]=Oc)}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 d=this._line,f=n[0];let m="",v="",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",v=g[1];else if(g=this._iri.exec(n)){if(v=this._unescape(g[1]),v===null||Ac.test(v))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",v="<"):(m="inverse",v=">"));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="_",v=g[1]);break;case'"':if(g=this._simpleQuotedString.exec(n))v=g[1];else if({value:v,matchLength:x}=this._parseLiteral(n),v===null)return a(this);(g!==null||x!==0)&&(m="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(g=this._simpleApostropheString.exec(n))v=g[1];else if({value:v,matchLength:x}=this._parseLiteral(n),v===null)return a(this);(g!==null||x!==0)&&(m="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(g=this._variable.exec(n))&&(m="var",v=g[0]);break;case"@":this._previousMarker==="literal"&&(g=this._langcode.exec(n))?(m="langcode",v=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",v=g[0],b=typeof g[1]=="string"?nn.double:typeof g[2]=="string"?nn.decimal:nn.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",v=g[0],b=nn.boolean):_=!0;break;case"a":(g=this._shortPredicates.exec(n))?(m="abbreviation",v="a"):_=!0;break;case"=":this._n3Mode&&n.length>1&&(m="abbreviation",n[1]!==">"?(x=1,v="="):(x=2,v=">"));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",v=g[1]||""):((g=this._prefixed.exec(n))||t&&(g=this._prefixed.exec(`${n} `)))&&(m="prefixed",b=g[1]||"",v=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,v,b,d,k);this.previousToken=E,this._previousMarker=m,n=n.substr(k,n.length)}function i(s,l,d,f,m){const v=n?o-n.length:o,b=v+m,g={type:s,value:l,prefix:d,line:f,start:v,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(Tc,(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 La?La[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=jc.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:Dc,xsd:Mt}=Pe;let lr,Mc=0;const ke={namedNode:bd,blankNode:md,variable:vd,literal:gd,defaultGraph:qc,quad:Ai,triple:Ai,fromTerm:Mr,fromQuad:yd};class ot{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof ot?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 Vi=class extends ot{get termType(){return"NamedNode"}},lt=class hd extends ot{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 Vi(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:Dc.langString}equals(e){return e instanceof hd?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}}}},Cc=class extends ot{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},Pc=class extends ot{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},Bc=class extends ot{constructor(){return super(""),lr||this}get termType(){return"DefaultGraph"}equals(e){return this===e||!!e&&this.termType===e.termType}};lr=new Bc;function Dr(r,e,t){if(e=e||ke,!r)return e.defaultGraph();switch(r[0]){case"?":return e.variable(r.substr(1));case"_":return e.blankNode(r.substr(2));case'"':if(e===ke)return new lt(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(Dr(r[0],e,!0),Dr(r[1],e,!0),Dr(r[2],e,!0),r[3]&&Dr(r[3],e,!0))}function er(r,e){if(typeof r=="string")return r;if(r instanceof ot&&r.termType!=="Quad")return r.id;if(!r)return lr.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=[er(r.subject,!0),er(r.predicate,!0),er(r.object,!0)];return r.graph&&r.graph.termType!=="DefaultGraph"&&t.push(er(r.graph,!0)),e?t:JSON.stringify(t);default:throw new Error(`Unexpected termType: ${r.termType}`)}}let jn=class extends ot{constructor(e,t,n,o){super(""),this._subject=e,this._predicate=t,this._object=n,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 bd(r){return new Vi(r)}function md(r){return new Cc(r||`n3-${Mc++}`)}function gd(r,e){if(typeof e=="string")return new lt(`"${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 lt(`"${r}"`):new lt(`"${r}"^^${t}`)}function vd(r){return new Pc(r)}function qc(){return lr}function Ai(r,e,t,n){return new jn(r,e,t,n)}function Mr(r){if(r instanceof ot)return r;switch(r.termType){case"NamedNode":return bd(r.value);case"BlankNode":return md(r.value);case"Variable":return vd(r.value);case"DefaultGraph":return lr;case"Literal":return gd(r.value,r.language||r.datatype);case"Quad":return yd(r);default:throw new Error(`Unexpected termType: ${r.termType}`)}}function yd(r){if(r instanceof jn)return r;if(r.termType!=="Quad")throw new Error(`Unexpected termType: ${r.termType}`);return Ai(Mr(r.subject),Mr(r.predicate),Mr(r.object),Mr(r.graph))}let Oa=0;class Li{constructor(e){this._contextStack=[],this._graph=null,e=e||{},this._setBase(e.baseIRI),e.factory&&wd(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=d=>null),this._blankNodePrefix=typeof e.blankNodePrefix!="string"?"":e.blankNodePrefix.replace(/^(?!_:)/,"_:"),this._lexer=e.lexer||new $c({lineMode:l,n3:s,isImpliedBy:this._isImpliedBy}),this._explicitQuantifiers=!!e.explicitQuantifiers}static _resetBlankNodePrefix(){Oa=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=on}_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${Oa++}_`,this._prefixCallback=i||on,this._inversePredicate=!1,this._quantified=Object.create(null),!o){const l=[];let d;if(this._callback=(f,m)=>{f?d=f:m&&l.push(m)},this._lexer.tokenize(e).every(f=>this._readCallback=this._readCallback(f)),d)throw d;return l}let s=(l,d)=>{l!==null?(this._callback(l),this._callback=on):this._readCallback&&(this._readCallback=this._readCallback(d))};a&&(this._lexer.comments=!0,s=(l,d)=>{l!==null?(this._callback(l),this._callback=on):this._readCallback&&(d.type==="comment"?a(d.value):this._readCallback=this._readCallback(d))}),this._callback=o,this._lexer.tokenize(e,s)}}function on(){}function wd(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")}wd(Li.prototype,ke);function Oi(r){return!!r&&r.termType==="DefaultGraph"}function fn(r){return r.replace(/[\]\/\(\)\*\+\?\.\\\$]/g,"\\$&")}const Fc=/^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i,zc=/^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/,$a="./",Uc="../",Wn="?",Da="#";class Wi{constructor(e){this.base=e,this._baseLength=0,this._baseMatcher=null,this._pathReplacements=new Array(e.length+1)}static supports(e){return!Fc.test(e)}_getBaseMatcher(){if(this._baseMatcher)return this._baseMatcher;if(!Wi.supports(this.base))return this._baseMatcher=/.^/;const e=/^[^:]*:\/*/.exec(this.base)[0],t=["^",fn(e)],n=[],o=[],i=/[^/?#]*([/?#])/y;let a,s=0,l=0,d=i.lastIndex=e.length;for(;!s&&!l&&(a=i.exec(this.base));)a[1]===Da?l=i.lastIndex-1:(t.push(fn(a[0]),"(?:"),n.push(")?"),a[1]!==Wn?o.push(d=i.lastIndex):(s=d=i.lastIndex,l=this.base.indexOf(Da,s),this._pathReplacements[s]=Wn));for(let f=0;f<o.length;f++)this._pathReplacements[o[f]]=Uc.repeat(o.length-f-1);return this._pathReplacements[o[o.length-1]]=$a,this._baseLength=l>0?l:this.base.length,t.push(fn(this.base.substring(d,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!==Wn&&!zc.test(i)?e:o===$a&&/^[^?#]/.test(i)?i:o+i}return e.substring(n-1)}}const gr=ke.defaultGraph(),{rdf:Hc,xsd:Qt}=Pe,Ma=/["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/,Ca=/["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g,Gc={"\\":"\\\\",'"':'\\"'," ":"\\t","\n":"\\n","\r":"\\r","\b":"\\b","\f":"\\f"};class vr extends ot{equals(e){return e===this}}class Ji{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=gr,this._prefixIRIs=Object.create(null),t.prefixes&&this.addPrefixes(t.prefixes),t.baseIRI&&(this._baseIri=new Wi(t.baseIRI)))}get _inDefaultGraph(){return gr.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 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 g(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 m(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 g(S){return u(S),a(S<0?0:k(S)|0)}s.allocUnsafe=function(S){return g(S)},s.allocUnsafeSlow=function(S){return g(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 m(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 g="",y="",b="",m=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,g="^");break}case"<":if(m=this._unescapedIri.exec(n))g="IRI",y=m[1];else if(m=this._iri.exec(n)){if(y=this._unescape(m[1]),y===null||Ec.test(y))return a(this);g="IRI"}else n.length>1&&n[1]==="<"?(g="<<",x=2):this._n3Mode&&n.length>1&&n[1]==="="&&(x=2,this._isImpliedBy?(g="abbreviation",y="<"):(g="inverse",y=">"));break;case">":n.length>1&&n[1]===">"&&(g=">>",x=2);break;case"_":((m=this._blank.exec(n))||t&&(m=this._blank.exec(`${n} `)))&&(g="blank",b="_",y=m[1]);break;case'"':if(m=this._simpleQuotedString.exec(n))y=m[1];else if({value:y,matchLength:x}=this._parseLiteral(n),y===null)return a(this);(m!==null||x!==0)&&(g="literal",this._literalClosingPos=0);break;case"'":if(!this._lineMode){if(m=this._simpleApostropheString.exec(n))y=m[1];else if({value:y,matchLength:x}=this._parseLiteral(n),y===null)return a(this);(m!==null||x!==0)&&(g="literal",this._literalClosingPos=0)}break;case"?":this._n3Mode&&(m=this._variable.exec(n))&&(g="var",y=m[0]);break;case"@":this._previousMarker==="literal"&&(m=this._langcode.exec(n))?(g="langcode",y=m[1]):(m=this._keyword.exec(n))&&(g=m[0]);break;case".":if(n.length===1?t:n[1]<"0"||n[1]>"9"){g=".",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"-":(m=this._number.exec(n)||t&&(m=this._number.exec(`${n} `)))&&(g="literal",y=m[0],b=typeof m[1]=="string"?en.double:typeof m[2]=="string"?en.decimal:en.integer);break;case"B":case"b":case"p":case"P":case"G":case"g":(m=this._sparqlKeyword.exec(n))?g=m[0].toUpperCase():_=!0;break;case"f":case"t":(m=this._boolean.exec(n))?(g="literal",y=m[0],b=en.boolean):_=!0;break;case"a":(m=this._shortPredicates.exec(n))?(g="abbreviation",y="a"):_=!0;break;case"=":this._n3Mode&&n.length>1&&(g="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,g=f);break;case"{":!this._lineMode&&n.length>=2&&(n[1]==="|"?(g="{|",x=2):(g=f,x=1));break;case"|":n.length>=2&&n[1]==="}"&&(g="|}",x=2);break;default:_=!0}if(_&&((this._previousMarker==="@prefix"||this._previousMarker==="PREFIX")&&(m=this._prefix.exec(n))?(g="prefix",y=m[1]||""):((m=this._prefixed.exec(n))||t&&(m=this._prefixed.exec(`${n} `)))&&(g="prefixed",b=m[1]||"",y=this._unescape(m[2]))),this._previousMarker==="^^")switch(g){case"prefixed":g="type";break;case"IRI":g="typeIRI";break;default:g=""}if(!g)return t||!/^'''|^"""/.test(n)&&/\n|\r/.test(n)?a(this):this._input=n;const k=x||m[0].length,E=i(g,y,b,u,k);this.previousToken=E,this._previousMarker=g,n=n.substr(k,n.length)}function i(s,l,u,f,g){const y=n?o-n.length:o,b=y+g,m={type:s,value:l,prefix:u,line:f,start:y,end:b};return e(null,m),m}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:Dt}=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 it{constructor(e){this.id=e}get value(){return this.id}equals(e){return e instanceof it?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 it{get termType(){return"NamedNode"}},ot=class dd extends it{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!=="@"?Dt.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 it{constructor(e){super(`_:${e}`)}get termType(){return"BlankNode"}get value(){return this.id.substr(2)}},Lc=class extends it{constructor(e){super(`?${e}`)}get termType(){return"Variable"}get value(){return this.id.substr(1)}},Oc=class extends it{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 ot(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 Yt(r,e){if(typeof r=="string")return r;if(r instanceof it&&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!==Dt.string?`^^${r.datatype.value}`:""}`;case"Quad":const t=[Yt(r.subject,!0),Yt(r.predicate,!0),Yt(r.object,!0)];return r.graph&&r.graph.termType!=="DefaultGraph"&&t.push(Yt(r.graph,!0)),e?t:JSON.stringify(t);default:throw new Error(`Unexpected termType: ${r.termType}`)}}let In=class extends it{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 ot(`"${r}"@${e.toLowerCase()}`);let t=e?e.value:"";return t===""&&(typeof r=="boolean"?t=Dt.boolean:typeof r=="number"&&(Number.isFinite(r)?t=Number.isInteger(r)?Dt.integer:Dt.double:(t=Dt.double,Number.isNaN(r)||(r=r>0?"INF":"-INF")))),t===""||t===Dt.string?new ot(`"${r}"`):new ot(`"${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 it)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,g)=>{f?u=f:g&&l.push(g)},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:Wt}=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 it{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?`.
8
8
  `:`
9
9
  }
10
- `)+(gr.equals(o)?"":`${this._encodeIriOrBlank(o)} {
10
+ `)+(br.equals(o)?"":`${this._encodeIriOrBlank(o)} {
11
11
  `)),this._graph=o,this._subject=null),e.equals(this._subject)?t.equals(this._predicate)?this._write(`, ${this._encodeObject(n)}`,i):this._write(`;
12
12
  ${this._encodePredicate(this._predicate=t)} ${this._encodeObject(n)}`,i):this._write(`${(this._subject===null?"":`.
13
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)} .
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)),Ma.test(t)&&(t=t.replace(Ca,Pa));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(Ma.test(t)&&(t=t.replace(Ca,Pa)),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===Hc.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)}${Oi(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,gr,o):this._writeQuad(e,t,n,o||gr,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 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===Wt.string)return`"${t}"`}else switch(e.datatype.value){case Wt.string:return`"${t}"`;case Wt.boolean:if(t==="true"||t==="false")return t;break;case Wt.integer:if(/^[+-]?\d+$/.test(t))return t;break;case Wt.decimal:if(/^[+-]?\d*\.\d+$/.test(t))return t;break;case Wt.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?`.
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=fn(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 vr("[]");case 1:if(o=n[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=n[s],o.predicate.equals(e)?a+=`, ${this._encodeObject(o.object)}`:(a+=`${(s?`;
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?`;
21
21
  `:`
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,n=new Array(t);for(let o=0;o<t;o++)n[o]=this._encodeObject(e[o]);return new vr(`(${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 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?`.
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 Pa(r){let e=Gc[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 Jn={exports:{}},Qn={exports:{}},Xn,Ba;function Oe(){if(Ba)return Xn;Ba=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 Xn={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},Xn}var Kn={exports:{}},Yn,qa;function xd(){return qa||(qa=1,Yn={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"{}"}}}),Yn}var Zn,Fa;function He(){if(Fa)return Zn;Fa=1;const{format:r,inspect:e}=xd(),{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 d(_,k){if(!_)throw new l.ERR_INTERNAL_ASSERTION(k)}function f(_){let k="",E=_.length;const y=_[0]==="-"?1:0;for(;E>=y+4;E-=3)k=`_${_.slice(E-3,E)}${k}`;return`${_.slice(0,E)}${k}`}function m(_,k,E){if(typeof k=="function")return d(k.length<=E.length,`Code: ${_}; The provided arguments length (${E.length}) does not match the required ones (${k.length}).`),k(...E);const y=(k.match(/%[dfijoOs]/g)||[]).length;return d(y===E.length,`Code: ${_}; The provided arguments length (${E.length}) does not match the required ones (${y}).`),E.length===0?k:r(k,...E)}function v(_,k,E){E||(E=Error);class y extends E{constructor(...h){super(m(_,k,h))}toString(){return`${this.name} [${_}]: ${this.message}`}}Object.defineProperties(y.prototype,{name:{value:E.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${_}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),y.prototype.code=_,y.prototype[o]=!0,l[_]=y}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 v("ERR_ASSERTION","%s",Error),v("ERR_INVALID_ARG_TYPE",(_,k,E)=>{d(typeof _=="string","'name' must be a string"),Array.isArray(k)||(k=[k]);let y="The ";_.endsWith(" argument")?y+=`${_} `:y+=`"${_}" ${_.includes(".")?"property":"argument"} `,y+="must be ";const u=[],h=[],R=[];for(const N of k)d(typeof N=="string","All expected entries have to be of type string"),i.includes(N)?u.push(N.toLowerCase()):a.test(N)?h.push(N):(d(N!=="object",'The value "object" should be written as "Object"'),R.push(N));if(h.length>0){const N=u.indexOf("object");N!==-1&&(u.splice(u,N,1),h.push("Object"))}if(u.length>0){switch(u.length){case 1:y+=`of type ${u[0]}`;break;case 2:y+=`one of type ${u[0]} or ${u[1]}`;break;default:{const N=u.pop();y+=`one of type ${u.join(", ")}, or ${N}`}}(h.length>0||R.length>0)&&(y+=" or ")}if(h.length>0){switch(h.length){case 1:y+=`an instance of ${h[0]}`;break;case 2:y+=`an instance of ${h[0]} or ${h[1]}`;break;default:{const N=h.pop();y+=`an instance of ${h.join(", ")}, or ${N}`}}R.length>0&&(y+=" or ")}switch(R.length){case 0:break;case 1:R[0].toLowerCase()!==R[0]&&(y+="an "),y+=`${R[0]}`;break;case 2:y+=`one of ${R[0]} or ${R[1]}`;break;default:{const N=R.pop();y+=`one of ${R.join(", ")}, or ${N}`}}if(E==null)y+=`. Received ${E}`;else if(typeof E=="function"&&E.name)y+=`. Received function ${E.name}`;else if(typeof E=="object"){var D;if((D=E.constructor)!==null&&D!==void 0&&D.name)y+=`. Received an instance of ${E.constructor.name}`;else{const N=e(E,{depth:-1});y+=`. Received ${N}`}}else{let N=e(E,{colors:!1});N.length>25&&(N=`${N.slice(0,25)}...`),y+=`. Received type ${typeof E} (${N})`}return y},TypeError),v("ERR_INVALID_ARG_VALUE",(_,k,E="is invalid")=>{let y=e(k);return y.length>128&&(y=y.slice(0,128)+"..."),`The ${_.includes(".")?"property":"argument"} '${_}' ${E}. Received ${y}`},TypeError),v("ERR_INVALID_RETURN_VALUE",(_,k,E)=>{var y;const u=E!=null&&(y=E.constructor)!==null&&y!==void 0&&y.name?`instance of ${E.constructor.name}`:`type ${typeof E}`;return`Expected ${_} to be returned from the "${k}" function but got ${u}.`},TypeError),v("ERR_MISSING_ARGS",(..._)=>{d(_.length>0,"At least one arg needs to be specified");let k;const E=_.length;switch(_=(Array.isArray(_)?_:[_]).map(y=>`"${y}"`).join(" or "),E){case 1:k+=`The ${_[0]} argument`;break;case 2:k+=`The ${_[0]} and ${_[1]} arguments`;break;default:{const y=_.pop();k+=`The ${_.join(", ")}, and ${y} arguments`}break}return`${k} must be specified`},TypeError),v("ERR_OUT_OF_RANGE",(_,k,E)=>{d(k,'Missing "range" argument');let y;if(Number.isInteger(E)&&Math.abs(E)>2**32)y=f(String(E));else if(typeof E=="bigint"){y=String(E);const u=BigInt(2)**BigInt(32);(E>u||E<-u)&&(y=f(y)),y+="n"}else y=e(E);return`The value of "${_}" is out of range. It must be ${k}. Received ${y}`},RangeError),v("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),v("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),v("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),v("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),v("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),v("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),v("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),v("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),v("ERR_STREAM_WRITE_AFTER_END","write after end",Error),v("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Zn={AbortError:x,aggregateTwoErrors:b(g),hideStackFrames:b,codes:l},Zn}var yr={exports:{}},za;function Vr(){if(za)return yr.exports;za=1;const{AbortController:r,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return yr.exports=r,yr.exports.AbortSignal=e,yr.exports.default=r,yr.exports}var an={exports:{}},Ua;function Tn(){if(Ua)return an.exports;Ua=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(u){console&&console.warn&&console.warn(u)}var o=Number.isNaN||function(h){return h!==h};function i(){i.init.call(this)}an.exports=i,an.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(u){if(typeof u!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof u)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(u){if(typeof u!="number"||u<0||o(u))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+u+".");a=u}}),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(u){return u._maxListeners===void 0?i.defaultMaxListeners:u._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 d(u,h,R,D){var N,B,I;if(s(R),B=u._events,B===void 0?(B=u._events=Object.create(null),u._eventsCount=0):(B.newListener!==void 0&&(u.emit("newListener",h,R.listener?R.listener:R),B=u._events),I=B[h]),I===void 0)I=B[h]=R,++u._eventsCount;else if(typeof I=="function"?I=B[h]=D?[R,I]:[I,R]:D?I.unshift(R):I.push(R),N=l(u),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=u,M.type=h,M.count=I.length,n(M)}return u}i.prototype.addListener=function(h,R){return d(this,h,R,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(h,R){return d(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(u,h,R){var D={fired:!1,wrapFn:void 0,target:u,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 v(u,h,R){var D=u._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 v(this,h,!0)},i.prototype.rawListeners=function(h){return v(this,h,!1)},i.listenerCount=function(u,h){return typeof u.listenerCount=="function"?u.listenerCount(h):b.call(u,h)},i.prototype.listenerCount=b;function b(u){var h=this._events;if(h!==void 0){var R=h[u];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(u,h){for(var R=new Array(h),D=0;D<h;++D)R[D]=u[D];return R}function x(u,h){for(;h+1<u.length;h++)u[h]=u[h+1];u.pop()}function _(u){for(var h=new Array(u.length),R=0;R<h.length;++R)h[R]=u[R].listener||u[R];return h}function k(u,h){return new Promise(function(R,D){function N(I){u.removeListener(h,B),D(I)}function B(){typeof u.removeListener=="function"&&u.removeListener("error",N),R([].slice.call(arguments))}y(u,h,B,{once:!0}),h!=="error"&&E(u,N,{once:!0})})}function E(u,h,R){typeof u.on=="function"&&y(u,"error",h,R)}function y(u,h,R,D){if(typeof u.on=="function")D.once?u.once(h,R):u.on(h,R);else if(typeof u.addEventListener=="function")u.addEventListener(h,function N(B){D.once&&u.removeEventListener(h,N),R(B)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof u)}return an.exports}var Ha;function We(){return Ha||(Ha=1,function(r){const e=vt(),{format:t,inspect:n}=xd(),{codes:{ERR_INVALID_ARG_TYPE:o}}=He(),{kResistStopPropagation:i,AggregateError:a,SymbolDispose:s}=Oe(),l=globalThis.AbortSignal||Vr().AbortSignal,d=globalThis.AbortController||Vr().AbortController,f=Object.getPrototypeOf(async function(){}).constructor,m=globalThis.Blob||e.Blob,v=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,y)=>{x=E,_=y}),resolve:x,reject:_}},promisify(x){return new Promise((_,k)=>{x((E,...y)=>E?k(E):_(...y))})},debuglog(){return function(){}},format:t,inspect:n,types:{isAsyncFunction(x){return x instanceof f},isArrayBufferView(x){return ArrayBuffer.isView(x)}},isBlob:v,deprecate(x,_){return x},addAbortListener:Tn().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 y;(y=E)===null||y===void 0||y()}}},AbortSignalAny:l.any||function(_){if(_.length===1)return _[0];const k=new d,E=()=>k.abort();return _.forEach(y=>{b(y,"signals"),y.addEventListener("abort",E,{once:!0})}),k.signal.addEventListener("abort",()=>{_.forEach(y=>y.removeEventListener("abort",E))},{once:!0}),k.signal}},r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}(Kn)),Kn.exports}var sn={},eo,Ga;function Yr(){if(Ga)return eo;Ga=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:d,RegExpPrototypeExec:f,String:m,StringPrototypeToUpperCase:v,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:y}}=He(),{normalizeEncoding:u}=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(n(fe,qe=>typeof qe=="string"?`'${qe}'`:m(qe)),", ");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||!d(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&&r(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(!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],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[v(X)]!==void 0?new y(X+" (signals must use all capital letters)"):new y(X)}const F=g((X,le="buffer")=>{if(!R(X))throw new _(le,["Buffer","TypedArray","DataView"],X)});function Z(X,le){const fe=u(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 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 eo={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},eo}var ln={exports:{}},to={exports:{}},Va;function Ht(){if(Va)return to.exports;Va=1;var r=to.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,d,f=-1;function m(){!l||!d||(l=!1,d.length?s=d.concat(s):f=-1,s.length&&v())}function v(){if(!l){var x=i(m);l=!0;for(var _=s.length;_;){for(d=s,s=[];++f<_;)d&&d[f].run();f=-1,_=s.length}d=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(v)};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},to.exports}var ro,Wa;function yt(){if(Wa)return ro;Wa=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"),d=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 v(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 y(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 u(w){if(!m(w))return null;if(w.writableEnded===!0)return!0;const z=w._writableState;return z!=null&&z.errored?!1:typeof(z==null?void 0: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==null?void 0: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==null?void 0: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==null?void 0: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==null?void 0:w.readable)!="boolean"?null:y(w)?!1:f(w)&&w.readable&&!D(w)}function B(w){return w&&w[a]!=null?w[a]:typeof(w==null?void 0:w.writable)!="boolean"?null:y(w)?!1:m(w)&&w.writable&&!u(w)}function I(w,z){return b(w)?y(w)?!0:!((z==null?void 0:z.readable)!==!1&&N(w)||(z==null?void 0: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==null?void 0:z.closed)=="boolean"||typeof(Q==null?void 0:Q.closed)=="boolean"?(z==null?void 0:z.closed)||(Q==null?void 0: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 ro={isDestroyed:y,kIsDestroyed:n,isDisturbed:C,kIsDisturbed:s,isErrored:K,kIsErrored:o,isReadable:N,kIsReadable:i,kIsClosedPromise:l,kControllerErrorFunction:d,kIsWritable:a,isClosed:j,isDuplexNodeStream:v,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:u,isWritableFinished:h,isWritableErrored:M,isServerRequest:T,isServerResponse:Y,willEmitClose:ee,isTransformStream:_},ro}var Ja;function Nt(){if(Ja)return ln.exports;Ja=1;const r=Ht(),{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:d,validateBoolean:f}=Yr(),{Promise:m,PromisePrototypeThen:v,SymbolDispose:b}=Oe(),{isClosed:g,isReadable:x,isReadableNodeStream:_,isReadableStream:k,isReadableFinished:E,isReadableErrored:y,isWritable:u,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:d(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)||y(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)||y(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||u(C)===!1)||!ae&&(!F||u(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 v(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 ln.exports=Y,ln.exports.finished=ee,ln.exports}var no,Qa;function dr(){if(Qa)return no;Qa=1;const r=Ht(),{aggregateTwoErrors:e,codes:{ERR_MULTIPLE_CALLBACK:t},AbortError:n}=He(),{Symbol:o}=Oe(),{kIsDestroyed:i,isDestroyed:a,isFinished:s,isServerRequest:l}=yt(),d=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 v(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(d,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 y(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(u,I)}function u(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(d,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==null?void 0: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 no={construct:y,destroyer:B,destroy:v,undestroy:k,errorOrDestroy:E},no}var oo,Xa;function Qi(){if(Xa)return oo;Xa=1;const{ArrayIsArray:r,ObjectSetPrototypeOf:e}=Oe(),{EventEmitter:t}=Tn();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 d(){s.readable&&s.resume&&s.resume()}i.on("drain",d),!i._isStdio&&(!a||a.end!==!1)&&(s.on("end",m),s.on("close",v));let f=!1;function m(){f||(f=!0,i.end())}function v(){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",d),s.removeListener("end",m),s.removeListener("close",v),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 oo={Stream:n,prependListener:o},oo}var io={exports:{}},Ka;function An(){return Ka||(Ka=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 d;const f=(m,v)=>{if(typeof m!="object"||!("aborted"in m))throw new l(v,"AbortSignal",m)};r.exports.addAbortSignal=function(v,b){if(f(v,"signal"),!o(b)&&!i(b))throw new l("stream",["ReadableStream","WritableStream","Stream"],b);return r.exports.addAbortSignalNoValidate(v,b)},r.exports.addAbortSignalNoValidate=function(m,v){if(typeof m!="object"||!("aborted"in m))return v;const b=o(v)?()=>{v.destroy(new t(void 0,{cause:m.reason}))}:()=>{v[a](new t(void 0,{cause:m.reason}))};if(m.aborted)b();else{d=d||We().addAbortListener;const g=d(m,b);s(v,g[e])}return v}}(io)),io.exports}var ao,Ya;function Vc(){if(Ya)return ao;Ya=1;const{StringPrototypeSlice:r,SymbolIterator:e,TypedArrayPrototypeSet:t,Uint8Array:n}=Oe(),{Buffer:o}=vt(),{inspect:i}=We();return ao=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,d=""+l.data;for(;(l=l.next)!==null;)d+=s+l.data;return d}concat(s){if(this.length===0)return o.alloc(0);const l=o.allocUnsafe(s>>>0);let d=this.head,f=0;for(;d;)t(l,d.data,f),f+=d.data.length,d=d.next;return l}consume(s,l){const d=this.head.data;if(s<d.length){const f=d.slice(0,s);return this.head.data=d.slice(s),f}return s===d.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="",d=this.head,f=0;do{const m=d.data;if(s>m.length)l+=m,s-=m.length;else{s===m.length?(l+=m,++f,d.next?this.head=d.next:this.head=this.tail=null):(l+=r(m,0,s),this.head=d,d.data=r(m,s));break}++f}while((d=d.next)!==null);return this.length-=f,l}_getBuffer(s){const l=o.allocUnsafe(s),d=s;let f=this.head,m=0;do{const v=f.data;if(s>v.length)t(l,v,d-s),s-=v.length;else{s===v.length?(t(l,v,d-s),++m,f.next?this.head=f.next:this.head=this.tail=null):(t(l,new n(v.buffer,v.byteOffset,s),d-s),this.head=f,f.data=v.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})}},ao}var so,Za;function Ln(){if(Za)return so;Za=1;const{MathFloor:r,NumberIsInteger:e}=Oe(),{validateInteger:t}=Yr(),{ERR_INVALID_ARG_VALUE:n}=He().codes;let o=16*1024,i=16;function a(f,m,v){return f.highWaterMark!=null?f.highWaterMark:m?f[v]:null}function s(f){return f?i:o}function l(f,m){t(m,"value",0),f?i=m:o=m}function d(f,m,v,b){const g=a(m,b,v);if(g!=null){if(!e(g)||g<0){const x=b?`options.${v}`:"options.highWaterMark";throw new n(x,g)}return r(g)}return s(f.objectMode)}return so={getHighWaterMark:d,getDefaultHighWaterMark:s,setDefaultHighWaterMark:l},so}var lo={},dn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var es;function Wc(){return es||(es=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 d=n(a);return s!==void 0?typeof l=="string"?d.fill(s,l):d.fill(s):d.fill(0),d},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)}}(dn,dn.exports)),dn.exports}var ts;function Jc(){if(ts)return lo;ts=1;var r=Wc().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}lo.StringDecoder=o;function o(k){this.encoding=n(k);var E;switch(this.encoding){case"utf16le":this.text=m,this.end=v,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,y;if(this.lastNeed){if(E=this.fillLast(k),E===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<k.length?E?E+this.text(k,y):this.text(k,y):E||""},o.prototype.end=f,o.prototype.text=d,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,y){var u=E.length-1;if(u<y)return 0;var h=i(E[u]);return h>=0?(h>0&&(k.lastNeed=h-1),h):--u<y||h===-2?0:(h=i(E[u]),h>=0?(h>0&&(k.lastNeed=h-2),h):--u<y||h===-2?0:(h=i(E[u]),h>=0?(h>0&&(h===2?h=0:k.lastNeed=h-3),h):0))}function s(k,E,y){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,y=s(this,k);if(y!==void 0)return y;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 d(k,E){var y=a(this,k,E);if(!this.lastNeed)return k.toString("utf8",E);this.lastTotal=y;var u=k.length-(y-this.lastNeed);return k.copy(this.lastChar,0,u),k.toString("utf8",E,u)}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 y=k.toString("utf16le",E);if(y){var u=y.charCodeAt(y.length-1);if(u>=55296&&u<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",E,k.length-1)}function v(k){var E=k&&k.length?this.write(k):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,y)}return E}function b(k,E){var y=(k.length-E)%3;return y===0?k.toString("base64",E):(this.lastNeed=3-y,this.lastTotal=3,y===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-y))}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 lo}var co,rs;function _d(){if(rs)return co;rs=1;const r=Ht(),{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,d,f){let m;if(typeof d=="string"||d instanceof o)return new l({objectMode:!0,...f,read(){this.push(d),this.push(null)}});let v;if(d&&d[t])v=!0,m=d[t]();else if(d&&d[n])v=!1,m=d[n]();else throw new i("iterable",["Iterable"],d);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),y=>r.nextTick(E,y||k))};async function x(k){const E=k!=null,y=typeof m.throw=="function";if(E&&y){const{value:u,done:h}=await m.throw(k);if(await u,h)return}if(typeof m.return=="function"){const{value:u}=await m.return();await u}}async function _(){for(;;){try{const{value:k,done:E}=v?await m.next():m.next();if(E)b.push(null);else{const y=k&&typeof k.then=="function"?await k:k;if(y===null)throw g=!1,new a;if(b.push(y))continue;g=!1}}catch(k){b.destroy(k)}break}}return b}return co=s,co}var uo,ns;function On(){if(ns)return uo;ns=1;const r=Ht(),{ArrayPrototypeIndexOf:e,NumberIsInteger:t,NumberIsNaN:n,NumberParseInt:o,ObjectDefineProperties:i,ObjectKeys:a,ObjectSetPrototypeOf:s,Promise:l,SafeSet:d,SymbolAsyncDispose:f,SymbolAsyncIterator:m,Symbol:v}=Oe();uo=ie,ie.ReadableState=fe;const{EventEmitter:b}=Tn(),{Stream:g,prependListener:x}=Qi(),{Buffer:_}=vt(),{addAbortSignal:k}=An(),E=Nt();let y=We().debuglog("stream",O=>{y=O});const u=Vc(),h=dr(),{getHighWaterMark:R,getDefaultHighWaterMark:D}=Ln(),{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}=Yr(),T=v("kPaused"),{StringDecoder:ee}=Jc(),C=_d();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 bt()),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 u,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 bt();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){y("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,c(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){y("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 y("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?Fn(this):p(this),null;if(O=S(O,P),O===0&&P.ended)return P.length===0&&Fn(this),null;let me=(P.state&V)!==0;if(y("need readable",me),(P.length===0||P.length-O<P.highWaterMark)&&(me=!0,y("length less than watermark",me)),P.ended||P.reading||P.destroyed||P.errored||!P.constructed)me=!1,y("reading, ended or constructing",me);else if(me){y("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=ka(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&&Fn(this)),ge!==null&&!P.errorEmitted&&!P.closeEmitted&&(P.dataEmitted=!0,this.emit("data",ge)),ge};function c(O,P){if(y("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;y("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(y("emitReadable",P.flowing),P.emittedReadable=!0,r.nextTick($,O))}function $(O){const P=O._readableState;y("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(y("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 d(me.awaitDrainWriters?[me.awaitDrainWriters]:[]))),me.pipes.push(O),y("pipe count=%d opts=%j",me.pipes.length,P);const Fe=(!P||P.end!==!1)&&O!==r.stdout&&O!==r.stderr?Ea:fr;me.endEmitted?r.nextTick(Fe):be.once("end",Fe),O.on("unpipe",Ke);function Ke(At,ft){y("onunpipe"),At===be&&ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,Sc())}function Ea(){y("onend"),O.end()}let Tt,Ia=!1;function Sc(){y("cleanup"),O.removeListener("close",Hn),O.removeListener("finish",Gn),Tt&&O.removeListener("drain",Tt),O.removeListener("error",Un),O.removeListener("unpipe",Ke),be.removeListener("end",Ea),be.removeListener("end",fr),be.removeListener("data",Na),Ia=!0,Tt&&me.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&Tt()}function Ra(){Ia||(me.pipes.length===1&&me.pipes[0]===O?(y("false write response, pause",0),me.awaitDrainWriters=O,me.multiAwaitDrain=!1):me.pipes.length>1&&me.pipes.includes(O)&&(y("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",Na);function Na(At){y("ondata");const ft=O.write(At);y("dest.write",ft),ft===!1&&Ra()}function Un(At){if(y("onerror",At),fr(),O.removeListener("error",Un),O.listenerCount("error")===0){const ft=O._writableState||O._readableState;ft&&!ft.errorEmitted?w(O,At):O.emit("error",At)}}x(O,"error",Un);function Hn(){O.removeListener("finish",Gn),fr()}O.once("close",Hn);function Gn(){y("onfinish"),O.removeListener("close",Hn),fr()}O.once("finish",Gn);function fr(){y("unpipe"),be.unpipe(O)}return O.emit("pipe",be),O.writableNeedDrain===!0?Ra():me.flowing||(y("pipe resume"),be.resume()),O};function se(O,P){return function(){const me=O._readableState;me.awaitDrainWriters===P?(y("pipeOnDrain",1),me.awaitDrainWriters=null):me.multiAwaitDrain&&(y("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,y("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){y("readable nexttick read 0"),O.read(0)}ie.prototype.resume=function(){const O=this._readableState;return O.flowing||(y("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){y("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 y("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[T]=!0,this};function Ee(O){const P=O._readableState;for(y("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 _a(this)},ie.prototype.iterator=function(O){return O!==void 0&&Y(O,"options"),_a(this,O)};function _a(O,P){typeof O.read!="function"&&(O=ie.wrap(O,{objectMode:!0}));const be=xc(O,P);return be.stream=O,be}async function*xc(O,P){let be=K;function me(Ke){this===O?(be(),be=K):be=Ke}O.on("readable",me);let ge;const Fe=E(O,{writable:!1},Ke=>{ge=Ke?N(ge,Ke):null,be(),be=K});try{for(;;){const Ke=O.destroyed?null:O.read();if(Ke!==null)yield Ke;else{if(ge)throw ge;if(ge===null)return;await new l(me)}}}catch(Ke){throw ge=N(ge,Ke),ge}finally{(ge||(P==null?void 0: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=ka;function ka(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 Fn(O){const P=O._readableState;y("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,r.nextTick(_c,P,O))}function _c(O,P){if(y("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(kc,P);else if(O.autoDestroy){const be=P._writableState;(!be||be.autoDestroy&&(be.finished||be.writable===!1))&&P.destroy()}}}function kc(O){O.writable&&!O.writableEnded&&!O.destroyed&&O.end()}ie.from=function(O,P){return C(ie,O,P)};let zn;function Sa(){return zn===void 0&&(zn={}),zn}return ie.fromWeb=function(O,P){return Sa().newStreamReadableFromReadableStream(O,P)},ie.toWeb=function(O,P){return Sa().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)},uo}var po,os;function Xi(){if(os)return po;os=1;const r=Ht(),{ArrayPrototypeSlice:e,Error:t,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:o,ObjectDefineProperties:i,ObjectSetPrototypeOf:a,StringPrototypeToLowerCase:s,Symbol:l,SymbolHasInstance:d}=Oe();po=Y,Y.WritableState=j;const{EventEmitter:f}=Tn(),m=Qi().Stream,{Buffer:v}=vt(),b=dr(),{addAbortSignal:g}=An(),{getHighWaterMark:x,getDefaultHighWaterMark:_}=Ln(),{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:E,ERR_MULTIPLE_CALLBACK:y,ERR_STREAM_CANNOT_PIPE:u,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 bt()),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 bt();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,d,{__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 u)};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"&&!v.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=v.from(G,re),re="buffer");else if(G instanceof v)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)),!v.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 y);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 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?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??y());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)},po}var fo,is;function Qc(){if(is)return fo;is=1;const r=Ht(),e=vt(),{isReadable:t,isWritable:n,isIterable:o,isNodeStream:i,isReadableNodeStream:a,isWritableNodeStream:s,isDuplexNodeStream:l,isReadableStream:d,isWritableStream:f}=yt(),m=Nt(),{AbortError:v,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:g}}=He(),{destroyer:x}=dr(),_=bt(),k=On(),E=Xi(),{createDeferredPromise:y}=We(),u=_d(),h=globalThis.Blob||e.Blob,R=typeof h<"u"?function(j){return j instanceof h}:function(j){return!1},D=globalThis.AbortController||Vr().AbortController,{FunctionPrototypeCall:N}=Oe();class B extends _{constructor(j){super(j),(j==null?void 0:j.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(j==null?void 0:j.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}}fo=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(d(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 u(B,T,{objectMode:!0,write:ee,final:C,destroy:K});const w=T==null?void 0: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 u(B,j,{objectMode:!0,writable:!1});if(d(j==null?void 0:j.readable)&&f(j==null?void 0:j.writable))return B.fromWeb(j);if(typeof(j==null?void 0:j.writable)=="object"||typeof(j==null?void 0:j.readable)=="object"){const T=j!=null&&j.readable?a(j==null?void 0:j.readable)?j==null?void 0:j.readable:q(j.readable):void 0,ee=j!=null&&j.writable?s(j==null?void 0:j.writable)?j==null?void 0:j.writable:q(j.writable):void 0;return M({readable:T,writable:ee})}const Y=j==null?void 0: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}=y();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 v(void 0,{cause:T.reason});({promise:j,resolve:A}=y()),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 v),K=null,ee=null,C=null,w===null?ae(W):(w=ae,x(A,W),x(j,W))},z}return fo}var ho,as;function bt(){if(as)return ho;as=1;const{ObjectDefineProperties:r,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:t,ObjectSetPrototypeOf:n}=Oe();ho=a;const o=On(),i=Xi();n(a.prototype,o.prototype),n(a,o);{const f=t(i.prototype);for(let m=0;m<f.length;m++){const v=f[m];a.prototype[v]||(a.prototype[v]=i.prototype[v])}}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 d;return a.from=function(f){return d||(d=Qc()),d(f,"body")},ho}var bo,ss;function kd(){if(ss)return bo;ss=1;const{ObjectSetPrototypeOf:r,Symbol:e}=Oe();bo=a;const{ERR_METHOD_NOT_IMPLEMENTED:t}=He().codes,n=bt(),{getHighWaterMark:o}=Ln();r(a.prototype,n.prototype),r(a,n);const i=e("kCallback");function a(d){if(!(this instanceof a))return new a(d);const f=d?o(this,d,"readableHighWaterMark",!0):null;f===0&&(d={...d,highWaterMark:null,readableHighWaterMark:f,writableHighWaterMark:d.writableHighWaterMark||0}),n.call(this,d),this._readableState.sync=!1,this[i]=null,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",l)}function s(d){typeof this._flush=="function"&&!this.destroyed?this._flush((f,m)=>{if(f){d?d(f):this.destroy(f);return}m!=null&&this.push(m),this.push(null),d&&d()}):(this.push(null),d&&d())}function l(){this._final!==s&&s.call(this)}return a.prototype._final=s,a.prototype._transform=function(d,f,m){throw new t("_transform()")},a.prototype._write=function(d,f,m){const v=this._readableState,b=this._writableState,g=v.length;this._transform(d,f,(x,_)=>{if(x){m(x);return}_!=null&&this.push(_),b.ended||g===v.length||v.length<v.highWaterMark?m():this[i]=m})},a.prototype._read=function(){if(this[i]){const d=this[i];this[i]=null,d()}},bo}var mo,ls;function Sd(){if(ls)return mo;ls=1;const{ObjectSetPrototypeOf:r}=Oe();mo=t;const e=kd();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)},mo}var go,ds;function Ki(){if(ds)return go;ds=1;const r=Ht(),{ArrayIsArray:e,Promise:t,SymbolAsyncIterator:n,SymbolDispose:o}=Oe(),i=Nt(),{once:a}=We(),s=dr(),l=bt(),{aggregateTwoErrors:d,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:m,ERR_MISSING_ARGS:v,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:x}=He(),{validateFunction:_,validateAbortSignal:k}=Yr(),{isIterable:E,isReadable:y,isReadableNodeStream:u,isNodeStream:h,isTransformStream:R,isWebStream:D,isReadableStream:N,isReadableFinished:B}=yt(),I=globalThis.AbortController||Vr().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(u(W))return ee(W);throw new f("val",["Readable","Iterable","AsyncIterable"],W)}async function*ee(W){q||(q=On()),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?d(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 v("streams");const H=new I,V=H.signal,F=U==null?void 0: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(qe=>qe()),r.nextTick(ae,pe,L))}}let he;for(let fe=0;fe<W.length;fe++){const ie=W[fe],Se=fe<W.length-1,qe=fe>0,we=Se||(U==null?void 0:U.end)!==!1,Ue=fe===W.length-1;if(h(ie)){let S=function(c){c&&c.name!=="AbortError"&&c.code!=="ERR_STREAM_PREMATURE_CLOSE"&&de(c)};if(we){const{destroy:c,cleanup:p}=A(ie,Se,qe);G.push(c),y(ie)&&Ue&&Z.push(p)}ie.on("error",S),y(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)||u(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=Sd());const S=new M({objectMode:!0}),c=(le=he)===null||le===void 0?void 0:le.then;if(typeof c=="function")re++,c.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(u(he)){re+=2;const S=Q(he,ie,de,{end:we});y(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(u(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 go={pipelineImpl:z,pipeline:w},go}var vo,cs;function Ed(){if(cs)return vo;cs=1;const{pipeline:r}=Ki(),e=bt(),{destroyer:t}=dr(),{isNodeStream:n,isReadable:o,isWritable:i,isWebStream:a,isTransformStream:s,isWritableStream:l,isReadableStream:d}=yt(),{AbortError:f,codes:{ERR_INVALID_ARG_VALUE:m,ERR_MISSING_ARGS:v}}=He(),b=Nt();return vo=function(...x){if(x.length===0)throw new v("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])||d(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,y,u,h;function R(M){const q=u;u=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)||d(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(y){const M=y;y=null,M()}}),N.on("end",function(){h.push(null)}),h._read=function(){for(;;){const M=N.read();if(M===null){y=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&&u!==null&&(M=new f),y=null,k=null,E=null,u===null?q(M):(u=q,n(N)&&t(N,M))},h},vo}var us;function Xc(){if(us)return sn;us=1;const r=globalThis.AbortController||Vr().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}=Yr(),d=Oe().Symbol("kWeak"),f=Oe().Symbol("kResistStopPropagation"),{finished:m}=Nt(),v=Ed(),{addAbortSignalNoValidate:b}=An(),{isWritable:g,isNodeStream:x}=yt(),{deprecate:_}=We(),{ArrayPrototypePush:k,Boolean:E,MathFloor:y,Number:u,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==null?void 0:Z.signal)!=null&&a(Z.signal,"options.signal"),x(F)&&!g(F))throw new e("stream",F,"must be writable");const te=v(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==null?void 0:Z.signal)!=null&&a(Z.signal,"options.signal");let te=1;(Z==null?void 0:Z.concurrency)!=null&&(te=y(Z.concurrency));let ce=te-1;return(Z==null?void 0:Z.highWaterMark)!=null&&(ce=y(Z.highWaterMark)),s(te,"options.concurrency",1),s(ce,"options.highWaterMark",0),ce+=te,(async function*(){const L=We().AbortSignalAny([Z==null?void 0: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 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(),Se()}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==null?void 0: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==null?void 0: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,[d]: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==null?void 0: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=u(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==null?void 0: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==null?void 0: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 sn.streamReturningOperators={asIndexedPairs:_(Y,"readable.asIndexedPairs will be removed in a future version."),drop:H,filter:w,flatMap:ae,map:A,take:V,compose:j},sn.promiseReturningOperators={every:ee,forEach:K,reduce:Q,toArray:W,some:T,find:C},sn}var yo,ps;function Id(){if(ps)return yo;ps=1;const{ArrayPrototypePop:r,Promise:e}=Oe(),{isIterable:t,isNodeStream:n,isWebStream:o}=yt(),{pipelineImpl:i}=Ki(),{finished:a}=Nt();Rd();function s(...l){return new e((d,f)=>{let m,v;const b=l[l.length-1];if(b&&typeof b=="object"&&!n(b)&&!t(b)&&!o(b)){const g=r(l);m=g.signal,v=g.end}i(l,(g,x)=>{g?f(g):d(x)},{signal:m,end:v})})}return yo={finished:a,pipeline:s},yo}var fs;function Rd(){if(fs)return Qn.exports;fs=1;const{Buffer:r}=vt(),{ObjectDefineProperty:e,ObjectKeys:t,ReflectApply:n}=Oe(),{promisify:{custom:o}}=We(),{streamReturningOperators:i,promiseReturningOperators:a}=Xc(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:s}}=He(),l=Ed(),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:f}=Ln(),{pipeline:m}=Ki(),{destroyer:v}=dr(),b=Nt(),g=Id(),x=yt(),_=Qn.exports=Qi().Stream;_.isDestroyed=x.isDestroyed,_.isDisturbed=x.isDisturbed,_.isErrored=x.isErrored,_.isReadable=x.isReadable,_.isWritable=x.isWritable,_.Readable=On();for(const E of t(i)){let u=function(...h){if(new.target)throw s();return _.Readable.from(n(y,this,h))};const y=i[E];e(u,"name",{__proto__:null,value:y.name}),e(u,"length",{__proto__:null,value:y.length}),e(_.Readable.prototype,E,{__proto__:null,value:u,enumerable:!1,configurable:!0,writable:!0})}for(const E of t(a)){let u=function(...h){if(new.target)throw s();return n(y,this,h)};const y=a[E];e(u,"name",{__proto__:null,value:y.name}),e(u,"length",{__proto__:null,value:y.length}),e(_.Readable.prototype,E,{__proto__:null,value:u,enumerable:!1,configurable:!0,writable:!0})}_.Writable=Xi(),_.Duplex=bt(),_.Transform=kd(),_.PassThrough=Sd(),_.pipeline=m;const{addAbortSignal:k}=An();return _.addAbortSignal=k,_.finished=b,_.destroy=v,_.compose=l,_.setDefaultHighWaterMark=d,_.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(y){return y instanceof Uint8Array},_._uint8ArrayToBuffer=function(y){return r.from(y.buffer,y.byteOffset,y.byteLength)},Qn.exports}var hs;function Kc(){return hs||(hs=1,function(r){const e=Rd(),t=Id(),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}(Jn)),Jn.exports}var Nd=Kc();const wo=Symbol("iter");function qr(r,e,t=4){if(t===0)return Object.assign(r,e);for(const n in e)r[n]=qr(r[n]||Object.create(null),e[n],t-1);return r}function jd(r,e,t=4){let n=!1;for(const o in r)if(o in e){const i=t===0?null:jd(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 Td(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:qr({},r[o],t-1);else if(t!==0){const i=Td(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 Yc{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||ke}_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 Dr(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&&(Oi(e.graph)||(i=this._termToNumericId(e.graph)))&&this._ids[i?`.${t}.${n}.${o}.${i}`:`.${t}.${n}.${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)}${Oi(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,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||ke,this._entityIndex=t.entityIndex||new Yc({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 d,f,m;const v=this._entities,b=this._termFromId(v[l]),g={subject:null,predicate:null,object:null};t&&((d=e,e={})[t]=d[t]);for(const x in e)if(f=e[x]){g[i]=this._termFromId(v[x]),n&&((d=f,f={})[n]=d[n]);for(const _ in f)if(m=f[_]){g[a]=this._termFromId(v[_]);const k=o?o in m?[o]:[]:Object.keys(m);for(let E=0;E<k.length;E++)g[s]=this._termFromId(v[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 d in e)if(s=e[d]){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 Nd.Readable({objectMode:!0}),a=this.readQuads(e,t,n,o);return i._read=s=>{for(;--s>=0;){const{done:l,value:d}=a.next();if(l){i.push(null);return}i.push(d)}},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,d;if(!(e&&!(s=this._termToNumericId(e))||t&&!(l=this._termToNumericId(t))||n&&!(d=this._termToNumericId(n))))for(const f in i)(a=i[f])&&(s?d?yield*this._findInIndex(a.objects,d,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,d,null,"predicate","object","subject",f):d?yield*this._findInIndex(a.objects,d,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,d,f;if(e&&!(l=this._termToNumericId(e))||t&&!(d=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,d):a+=this._countInIndex(s.subjects,l,d,f):t?a+=this._countInIndex(s.predicates,d,f,l):a+=this._countInIndex(s.objects,f,l,d));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 d=!1,f,m;const v=s.graph;let b=s.subject;for(;b&&!d;){const g=this.getQuads(null,null,b,null),x=this.getQuads(b,null,null,null);let _,k=null,E=null,y=null;for(let u=0;u<x.length&&!d;u++)_=x[u],_.graph.equals(v)?f?d=o(b,"has non-list arcs out"):_.predicate.value===Pe.rdf.first?k?d=o(b,"has multiple rdf:first arcs"):a.push(k=_):_.predicate.value===Pe.rdf.rest?E?d=o(b,"has multiple rdf:rest arcs"):a.push(E=_):g.length?d=o(b,"can't be subject and object"):(f=_,m="subject"):d=o(b,"not confined to single graph");for(let u=0;u<g.length&&!d;++u)_=g[u],f?d=o(b,"can't have coreferences"):_.predicate.value===Pe.rdf.rest?y?d=o(b,"has incoming rdf:rest arcs"):y=_:(f=_,m="object");k?l.unshift(k.object):d=o(b,"has no list head"),b=y&&y.subject}d?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=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 ze)||this._entityIndex!==e._entityIndex)return e.every(d=>this.has(d));const t=this._graphs,n=e._graphs;let o,i,a,s,l;for(const d in n){if(!(o=t[d]))return!1;o=o.subjects;for(const f in i=n[d].subjects){if(!(a=o[f]))return!1;for(const m in s=i[f]){if(!(l=a[m]))return!1;for(const v in s[m])if(!(v 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=Td(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=qr(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=jd(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 Ji().quadsToString(this)}union(e){const t=new ze({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 at(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:at(r[i],e,t+1);a!==!1&&(o=o||Object.create(null),o[i]=a)}return o}class kt extends Nd.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,d;if(i&&!(s=a._termToNumericId(i))||o&&!(l=a._termToNumericId(o))||n&&!(d=a._termToNumericId(n)))return a;const f=e._getGraphs(t);for(const m in f){let v,b,g,x;(x=f[m])&&(!s&&l?(b=at(x.predicates,[l,d,s]))&&(v=at(x.subjects,[s,l,d]),g=at(x.objects,[d,s,l])):d?(g=at(x.objects,[d,s,l]))&&(v=at(x.subjects,[s,l,d]),b=at(x.predicates,[l,d,s])):(v=at(x.subjects,[s,l,d]))&&(b=at(x.predicates,[l,d,s]),g=at(x.objects,[d,s,l])),v&&(a._graphs[m]={subjects:v,predicates:b,objects:g}))}a._size=null}return this._filtered}get size(){return this.filtered.size}_read(e){e>0&&!this[wo]&&(this[wo]=this[Symbol.iterator]());const t=this[wo];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 Ji().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#",bs="http://datashapes.org/dash#",Pt="http://www.w3.org/2001/XMLSchema#",Yi="http://www.w3.org/1999/02/22-rdf-syntax-ns#",Zi="http://www.w3.org/2000/01/rdf-schema#",Ad="http://www.w3.org/2004/02/skos/core#",Ld="http://www.w3.org/2002/07/owl#",Zc="http://www.w3.org/ns/oa#",eu="http://purl.org/dc/terms/",tu="http://xmlns.com/foaf/0.1/",xn=ke.namedNode("loaded-shapes"),st=ke.namedNode("loaded-data"),Be=ke.namedNode(Yi+"type"),$i=ke.namedNode(eu+"conformsTo"),ru=ke.namedNode(Zi+"subClassOf"),nu=ke.namedNode(Ad+"broader"),ea=ke.namedNode(Ld+"imports"),ou=ke.namedNode(Ld+"NamedIndividual"),cn=ke.namedNode(ve+"NodeShape"),iu=ke.namedNode(ve+"IRI"),_n=ke.namedNode(ve+"property"),ta=ke.namedNode(ve+"class"),Wr=ke.namedNode(ve+"targetClass"),au=ke.namedNode(ve+"nodeKind");function Fr(r,e,t=ve,n){let o="";const i=su(r,e,t,n);return i&&(o=i.value),o}function su(r,e,t=ve,n){let o;const i=t+e;if(n!=null&&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 lu(r){var e;(e=r.querySelector("input,select,textarea"))==null||e.focus()}function $n(r,e){return Fr(r,"prefLabel",Ad,e)||Fr(r,"label",Zi,e)||Fr(r,"name",tu,e)}function Di(r,e,t,n){const o=[];for(const i of r)o.push({value:i,label:$n(e.getQuads(i,null,null,null),t),indent:n});return o}function Mi(r,e){for(const t in e)r=r.replace(e[t],"");return r}function Od(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&&Od(r,e.parent,t,n,o)}function kn(r,e,t=0){let n;if(e.shaclIn){const i=e.config.lists[e.shaclIn];n=i!=null&&i.length?i:[]}else n=e.config.store.getSubjects(Be,r,xn),n.push(...e.config.store.getSubjects(Be,r,st)),Od(r,e,e.config.store,n);const o=Di(n,e.config.store,e.config.languages,t);if(e.shaclIn===void 0){for(const i of e.config.store.getSubjects(ru,r,null))o.push(...kn(i,e,t+1));if(e.config.store.getQuads(r,Be,ou,null).length>0){o.push(...Di([r],e.config.store,e.config.languages,t));for(const i of e.config.store.getSubjects(nu,r,null))o.push(...kn(i,e,t+1))}}return o}function Ci(r){let e;try{e=new URL(r)}catch{return!1}return e.protocol==="http:"||e.protocol==="https:"}function ms(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 $d(r,e,t){const n=document.createElement("div");n.classList.add("shacl-or-constraint");const o=[];if(o.push({label:"--- please choose ---",value:""}),e instanceof Rt){const i=[];let a=!1;r.length&&(a=t.store.countQuads(r[0],_n,null,null)>0);for(let d=0;d<r.length;d++)if(a){const f=t.store.getObjects(r[d],_n,null),m=[];let v="";for(const b of f){const g=new In(b,e,t);m.push(g),v+=(v.length>1?" / ":"")+g.template.label}i.push(m),o.push({label:v,value:d.toString()})}else{const f=new In(r[d],e,t);i.push([f]),o.push({label:f.template.label,value:d.toString()})}const s=t.theme.createListEditor("Please choose",null,!1,o),l=s.querySelector(".editor");l.onchange=()=>{if(l.value){const d=i[parseInt(l.value)];let f;d.length&&(f=d[0],n.replaceWith(d[0]));for(let m=1;m<d.length;m++)f.after(d[m]),f=d[m]}},n.appendChild(s)}else{const i=[];for(let l=0;l<r.length;l++){const d=t.store.getQuads(r[l],null,null,null);d.length&&(i.push(d),o.push({label:$n(d,t.languages)||Mi(d[0].predicate.value,t.prefixes)+" = "+Mi(d[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(gn(e.template.clone().merge(i[parseInt(s.value)]),void 0,!0))},n.appendChild(a)}return n}function du(r,e,t){if(e instanceof lt){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,Wr,s,null).length>0)return i}if(a.predicate.equals(ta)){for(const s of n)if(a.object.equals(s))return i}}else if(a.predicate.equals(au)&&a.object.equals(iu))return i}}return console.error("couldn't resolve sh:or/sh:xone on property for value",e),[]}function cu(r,e,t){for(const n of r){let o=!1;const i=t.store.getObjects(n,_n,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 uu={[`${ve}name`]:(r,e)=>{const t=e;r.name=ms(r.config.languages,r.name,t)},[`${ve}description`]:(r,e)=>{const t=e;r.description=ms(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)},[`${bs}singleLine`]:(r,e)=>{r.singleLine=e.value==="true"},[`${bs}readonly`]:(r,e)=>{r.readonly=e.value==="true"},[`${Zc}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=ke.namedNode(Yi+"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)},[ea.id]:(r,e)=>{r.owlImports.push(e)},[ta.id]:(r,e)=>{r.class=e;const t=r.config.store.getSubjects(Wr,e,null);t.length>0&&(r.node=t[0])},[`${ve}or`]:(r,e)=>{const t=r.config.lists[e.value];t!=null&&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!=null&&t.length?r.shaclXone=t:console.error("list for sh:xone not found:",e.value,"existing lists:",r.config.lists)}};class pu{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){var t,n;for(const o of e)(t=uu[o.predicate.id])==null||t.call(this,this,o.object);if(this.label=((n=this.name)==null?void 0:n.value)||$n(e,this.config.languages),!this.label&&!this.shaclAnd&&(this.label=this.path?Mi(this.path,this.config.prefixes):"unknown"),(this.node||this.shaclAnd)&&(this.node&&this.extendedShapes.push(this.node),this.shaclAnd)){const o=this.config.lists[this.shaclAnd];if(o!=null&&o.length)for(const i of o)this.extendedShapes.push(i)}return this}clone(){const e=Object.assign({},this);return 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 fu=`form { box-sizing: border-box; display:block; --label-width: 8em; --caret-size: 10px; }
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 g(_,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(g(_,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 m(_,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(m),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=m(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 g(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,g(this,h,R)),this},i.prototype.prependOnceListener=function(h,R){return s(R),this.prependListener(h,g(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):m(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 m(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,g=globalThis.Blob||e.Blob,y=typeof g<"u"?function(_){return _ instanceof g}:function(_){return!1},b=(x,_)=>{if(x!==void 0&&(x===null||typeof x!="object"||!("aborted"in x)))throw new o(_,"AbortSignal",x)},m=(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"),m(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:g,StringPrototypeToUpperCase:y,StringPrototypeTrim:b}=Oe(),{hideStackFrames:m,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=m((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=m((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=m((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=m((X,le,fe)=>{if(!e(fe,X)){const ke="must be one of: "+t(n(fe,qe=>typeof qe=="string"?`'${qe}'`:g(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=m((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=m((X,le)=>{if(X!=null&&typeof X!="object"&&typeof X!="function")throw new _(le,"a dictionary",X)}),W=m((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=m((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=m((X,le)=>{if(X!==void 0&&(X===null||typeof X!="object"||!("aborted"in X)))throw new _(le,"AbortSignal",X)}),pe=m((X,le)=>{if(typeof X!="function")throw new _(le,"Function",X)}),L=m((X,le)=>{if(typeof X!="function"||h(X))throw new _(le,"Function",X)}),G=m((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 zt(){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 g(){!l||!u||(l=!1,u.length?s=u.concat(s):f=-1,s.length&&y())}function y(){if(!l){var x=i(g);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 m(){}return r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,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 g(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 m(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 m(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(!g(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(!g(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:g(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:m,isReadableEnded:R,isReadableFinished:D,isReadableErrored:q,isNodeStream:b,isWebStream:k,isWritable:B,isWritableNodeStream:g,isWritableStream:x,isWritableEnded:c,isWritableFinished:h,isWritableErrored:M,isServerRequest:T,isServerResponse:Y,willEmitClose:ee,isTransformStream:_},eo}var Ha;function Rt(){if(Ha)return on.exports;Ha=1;const r=zt(),{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:g,PromisePrototypeThen:y,SymbolDispose:b}=Oe(),{isClosed:m,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=m(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 g((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=zt(),{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 g(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):(g(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;g(Y,ee,T),ee&&(ee.closed=!0),T&&(T.closed=!0),typeof q=="function"&&q(Y),Y?r.nextTick(m,I,Y):r.nextTick(x,I)}try{I._destroy(M||null,A)}catch(Y){A(Y)}}function m(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",g),s.on("close",y));let f=!1;function g(){f||(f=!0,i.end())}function y(){f||(f=!0,typeof i.destroy=="function"&&i.destroy())}function b(x){m(),t.listenerCount(this,"error")===0&&this.emit("error",x)}o(s,"error",b),o(i,"error",b);function m(){s.removeListener("data",l),i.removeListener("drain",u),s.removeListener("end",g),s.removeListener("close",y),s.removeListener("error",b),i.removeListener("error",b),s.removeListener("end",m),s.removeListener("close",m),i.removeListener("close",m)}return s.on("end",m),s.on("close",m),i.on("close",m),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=Rt(),{ERR_INVALID_ARG_TYPE:l}=n;let u;const f=(g,y)=>{if(typeof g!="object"||!("aborted"in g))throw new l(y,"AbortSignal",g)};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(g,y){if(typeof g!="object"||!("aborted"in g))return y;const b=o(y)?()=>{y.destroy(new t(void 0,{cause:g.reason}))}:()=>{y[a](new t(void 0,{cause:g.reason}))};if(g.aborted)b();else{u=u||We().addAbortListener;const m=u(g,b);s(y,m[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 g=u.data;if(s>g.length)l+=g,s-=g.length;else{s===g.length?(l+=g,++f,u.next?this.head=u.next:this.head=this.tail=null):(l+=r(g,0,s),this.head=u,u.data=r(g,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,g=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),++g,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}++g}while((f=f.next)!==null);return this.length-=g,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,g,y){return f.highWaterMark!=null?f.highWaterMark:g?f[y]:null}function s(f){return f?i:o}function l(f,g){t(g,"value",0),f?i=g:o=g}function u(f,g,y,b){const m=a(g,b,y);if(m!=null){if(!e(m)||m<0){const x=b?`options.${y}`:"options.highWaterMark";throw new n(x,m)}return r(m)}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=g,this.end=y,E=4;break;case"utf8":this.fillLast=l,E=4;break;case"base64":this.text=b,this.end=m,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 g(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 m(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=zt(),{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 g;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,g=u[t]();else if(u&&u[n])y=!1,g=u[n]();else throw new i("iterable",["Iterable"],u);const b=new l({objectMode:!0,highWaterMark:1,...f});let m=!1;b._read=function(){m||(m=!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 g.throw=="function";if(E&&v){const{value:c,done:h}=await g.throw(k);if(await c,h)return}if(typeof g.return=="function"){const{value:c}=await g.return();await c}}async function _(){for(;;){try{const{value:k,done:E}=y?await g.next():g.next();if(E)b.push(null);else{const v=k&&typeof k.then=="function"?await k:k;if(v===null)throw m=!1,new a;if(b.push(v))continue;m=!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=zt(),{ArrayPrototypeIndexOf:e,NumberIsInteger:t,NumberIsNaN:n,NumberParseInt:o,ObjectDefineProperties:i,ObjectKeys:a,ObjectSetPrototypeOf:s,Promise:l,SafeSet:u,SymbolAsyncDispose:f,SymbolAsyncIterator:g,Symbol:y}=Oe();lo=ie,ie.ReadableState=fe;const{EventEmitter:b}=Rn(),{Stream:m,prependListener:x}=zi(),{Buffer:_}=vt(),{addAbortSignal:k}=Nn(),E=Rt();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,m.prototype),s(ie,m);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 bt()),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 bt();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)),m.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="":m._isUint8Array(P)?(P=m._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",Ke);function Ke(Tt,ft){v("onunpipe"),Tt===be&&ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,vc())}function xa(){v("onend"),O.end()}let jt,_a=!1;function vc(){v("cleanup"),O.removeListener("close",zn),O.removeListener("finish",Un),jt&&O.removeListener("drain",jt),O.removeListener("error",Fn),O.removeListener("unpipe",Ke),be.removeListener("end",xa),be.removeListener("end",ur),be.removeListener("data",Sa),_a=!0,jt&&me.awaitDrainWriters&&(!O._writableState||O._writableState.needDrain)&&jt()}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()),jt||(jt=se(be,O),O.on("drain",jt))}be.on("data",Sa);function Sa(Tt){v("ondata");const ft=O.write(Tt);v("dest.write",ft),ft===!1&&ka()}function Fn(Tt){if(v("onerror",Tt),ur(),O.removeListener("error",Fn),O.listenerCount("error")===0){const ft=O._writableState||O._readableState;ft&&!ft.errorEmitted?w(O,Tt):O.emit("error",Tt)}}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=m.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=m.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=m.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[g]=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(Ke){this===O?(be(),be=K):be=Ke}O.on("readable",me);let ge;const Fe=E(O,{writable:!1},Ke=>{ge=Ke?N(ge,Ke):null,be(),be=K});try{for(;;){const Ke=O.destroyed?null:O.read();if(Ke!==null)yield Ke;else{if(ge)throw ge;if(ge===null)return;await new l(me)}}}catch(Ke){throw ge=N(ge,Ke),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=zt(),{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(),g=zi().Stream,{Buffer:y}=vt(),b=sr(),{addAbortSignal:m}=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,g.prototype),a(Y,g);function M(){}const q=l("kOnFinished");function j(L,G,re){typeof re!="boolean"&&(re=G instanceof bt()),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 bt();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&&m(L.signal,this)),g.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(g._isUint8Array(G))G=g._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=zt(),e=vt(),{isReadable:t,isWritable:n,isIterable:o,isNodeStream:i,isReadableNodeStream:a,isWritableNodeStream:s,isDuplexNodeStream:l,isReadableStream:u,isWritableStream:f}=yt(),g=Rt(),{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:b,ERR_INVALID_RETURN_VALUE:m}}=He(),{destroyer:x}=sr(),_=bt(),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 m("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 m("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&&(g(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&&(g(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 bt(){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 g=0;g<f.length;g++){const y=f[g];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,g){return l().newStreamDuplexFromReadableWritablePair(f,g)},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=bt(),{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,g)=>{if(f){u?u(f):this.destroy(f);return}g!=null&&this.push(g),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,g){throw new t("_transform()")},a.prototype._write=function(u,f,g){const y=this._readableState,b=this._writableState,m=y.length;this._transform(u,f,(x,_)=>{if(x){g(x);return}_!=null&&this.push(_),b.ended||m===y.length||y.length<y.highWaterMark?g():this[i]=g})},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=zt(),{ArrayIsArray:e,Promise:t,SymbolAsyncIterator:n,SymbolDispose:o}=Oe(),i=Rt(),{once:a}=We(),s=sr(),l=bt(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:g,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:b,ERR_STREAM_PREMATURE_CLOSE:m},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 g("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 g("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 g("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 m)}),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=bt(),{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:g,ERR_MISSING_ARGS:y}}=He(),b=Rt();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 g(`streams[${M}]`,_[M],"must be readable");if(M>0&&!(i(x[M])||l(x[M])||s(x[M])))throw new g(`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:g}=Rt(),y=wd(),{addAbortSignalNoValidate:b}=Nn(),{isWritable:m,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)&&!m(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 g(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}=Rt();_d();function s(...l){return new e((u,f)=>{let g,y;const b=l[l.length-1];if(b&&typeof b=="object"&&!n(b)&&!t(b)&&!o(b)){const m=r(l);g=m.signal,y=m.end}i(l,(m,x)=>{m?f(m):u(x)},{signal:g,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:g}=Hi(),{destroyer:y}=sr(),b=Rt(),m=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=bt(),_.Transform=vd(),_.PassThrough=yd(),_.pipeline=g;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 m}}),e(g,o,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),e(b,o,{__proto__:null,enumerable:!0,get(){return m.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[Yt(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)}`}`:Yt(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,g;const y=this._entities,b=this._termFromId(y[l]),m={subject:null,predicate:null,object:null};t&&((u=e,e={})[t]=u[t]);for(const x in e)if(f=e[x]){m[i]=this._termFromId(y[x]),n&&((u=f,f={})[n]=u[n]);for(const _ in f)if(g=f[_]){m[a]=this._termFromId(y[_]);const k=o?o in g?[o]:[]:Object.keys(g);for(let E=0;E<k.length;E++)m[s]=this._termFromId(y[k[E]]),yield this._factory.quad(m.subject,m.predicate,m.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 g in i)(s=i[g])&&(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,g;const y=s.graph;let b=s.subject;for(;b&&!u;){const m=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=_):m.length?u=o(b,"can't be subject and object"):(f=_,g="subject"):u=o(b,"not confined to single graph");for(let c=0;c<m.length&&!u;++c)_=m[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=_,g="object");k?l.unshift(k.object):u=o(b,"has no list head"),b=v&&v.subject}u?e=!1:f&&(n[f[g].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 g in s=i[f]){if(!(l=a[g]))return!1;for(const y in s[g])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 st(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:st(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 g in f){let y,b,m,x;(x=f[g])&&(!s&&l?(b=st(x.predicates,[l,u,s]))&&(y=st(x.subjects,[s,l,u]),m=st(x.objects,[u,s,l])):u?(m=st(x.objects,[u,s,l]))&&(y=st(x.subjects,[s,l,u]),b=st(x.predicates,[l,u,s])):(y=st(x.subjects,[s,l,u]))&&(b=st(x.predicates,[l,u,s]),m=st(x.objects,[u,s,l])),y&&(a._graphs[g]={subjects:y,predicates:b,objects:m}))}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#",Ct="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"),lt=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");function Br(r,e,t=ve,n){let o="";const i=tu(r,e,t,n);return i&&(o=i.value),o}function tu(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 ru(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,lt)),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(o.push({label:"--- please choose ---",value:""}),e instanceof It){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),g=[];let y="";for(const b of f){const m=new _n(b,e,t);g.push(m),y+=(y.length>1?" / ":"")+m.template.label}i.push(g),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 g=1;g<u.length;g++)f.after(u[g]),f=u[g]}},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 nu(r,e,t){if(e instanceof ot){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 ou(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 iu={[`${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 au{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)iu[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.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 su=`form { box-sizing: border-box; display:block; --label-width: 8em; --caret-size: 10px; }
28
28
  form.mode-edit { padding-left: 1em; }
29
29
  form *, form ::after, form ::before { box-sizing: inherit; }
30
30
  shacl-node, .shacl-group { display: flex; flex-direction: column; width: 100%; position: relative; }
@@ -80,26 +80,26 @@ a, a:visited { color: inherit; }
80
80
  .collapsible.open > .property-instance:nth-child(odd) { background-color: #F5F5F5; }
81
81
  .ref-link { cursor: pointer; }
82
82
  .ref-link:hover { text-decoration: underline; }
83
- .node-id-display { color: #999; font-size: 11px; }`;class hu{constructor(e){let t=fu;e&&(t+=`
84
- `+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 Vi){const d=n.config.store.getQuads(a,null,null,null);if(d.length){const f=$n(d,n.config.languages);f&&(a=f)}}else t instanceof lt&&(t.language?(s=document.createElement("span"),s.classList.add("lang"),s.innerText=`@${t.language}`):t.datatype.value===`${Pt}date`?a=new Date(Date.parse(t.value)).toDateString():t.datatype.value===`${Pt}dateTime`&&(a=new Date(Date.parse(t.value)).toLocaleString()));let l;return Ci(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 bu(r,e,t){var n,o,i;if(t){const a=r.minCount!==void 0&&r.minCount>0;if(r.class)return r.config.theme.createListEditor(r.label,e,a,kn(r.class,r),r);if(r.shaclIn){const s=r.config.lists[r.shaclIn];if(s!=null&&s.length){const l=Di(s,r.config.store,r.config.languages);return r.config.theme.createListEditor(r.label,e,a,l,r)}else console.error("list not found:",r.shaclIn,"existing lists:",r.config.lists)}if(((n=r.datatype)==null?void 0:n.value)===`${Yi}langString`||(o=r.languageIn)!=null&&o.length)return r.config.theme.createLangStringEditor(r.label,e,a,r);switch((i=r.datatype)==null?void 0:i.value.replace(Pt,"")){case"integer":case"float":case"double":case"decimal":return r.config.theme.createNumberEditor(r.label,e,a,r);case"date":case"dateTime":return r.config.theme.createDateEditor(r.label,e,a,r);case"boolean":return r.config.theme.createBooleanEditor(r.label,e,a,r);case"base64Binary":return r.config.theme.createFileEditor(r.label,e,a,r)}return r.config.theme.createTextEditor(r.label,e,a,r)}else{if(e)return r.config.theme.createViewer(r.label,e,r);const a=document.createElement("div");return a.innerHTML="No value",a}}function mu(r,e,t){if(e==="application/ld+json")return gu(r);{const n=new Ji({format:e,prefixes:t});n.addQuads(r);let o="";return n.end((i,a)=>{i&&console.error(i),o=a}),o}}function gu(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 lt?t.object.language?o={"@language":t.object.language,"@value":t.object.value}:t.object.datatype&&t.object.datatype.value!==`${Pt}#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 vu(r){let e=r.shaclDatatype,t=r.value;if(t){if(r.dataset.class||r.dataset.nodeKind===ve+"IRI")return ke.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=ke.namedNode(n[1]))}return ke.literal(t,e)}else if((r.type==="checkbox"||r.getAttribute("type")==="checkbox")&&(r.checked||parseInt(r.dataset.minCount||"0")>0))return ke.literal(r.checked?"true":"false",e)}const zr={};function yu(r){r.predicate===void 0&&r.datatype===void 0?console.warn('not registering plugin because it does neither define "predicate" nor "datatype"',r):zr[`${r.predicate}^${r.datatype}`]=r}function wu(){return Object.entries(zr).map(r=>r[1])}function xu(r,e){let t=zr[`${r}^${e}`];return t||(t=zr[`${r}^undefined`],t)?t:zr[`undefined^${e}`]}class _m{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)}}/**
83
+ .node-id-display { color: #999; font-size: 11px; }`;class lu{constructor(e){let t=su;e&&(t+=`
84
+ `+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 ot&&(t.language?(s=document.createElement("span"),s.classList.add("lang"),s.innerText=`@${t.language}`):t.datatype.value===`${Ct}date`?a=new Date(Date.parse(t.value)).toDateString():t.datatype.value===`${Ct}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 du(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(Ct,"")){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 cu(r,e,t){if(e==="application/ld+json")return uu(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 uu(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 ot?t.object.language?o={"@language":t.object.language,"@value":t.object.value}:t.object.datatype&&t.object.datatype.value!==`${Ct}#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 pu(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 fu(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 hu(){return Object.entries(qr).map(r=>r[1])}function bu(r,e){let t=qr[`${r}^${e}`];return t||(t=qr[`${r}^undefined`],t)?t:qr[`undefined^${e}`]}class ym{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)}}/**
85
85
  * @license
86
86
  * Copyright 2019 Google LLC
87
87
  * SPDX-License-Identifier: BSD-3-Clause
88
- */const hn=globalThis,ra=hn.ShadowRoot&&(hn.ShadyCSS===void 0||hn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,na=Symbol(),gs=new WeakMap;let Dd=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==na)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(ra&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=gs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&gs.set(t,e))}return e}toString(){return this.cssText}};const _u=r=>new Dd(typeof r=="string"?r:r+"",void 0,na),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 Dd(t,r,na)},ku=(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=hn.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=t.cssText,r.appendChild(n)}},vs=ra?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return _u(t)})(r):r;/**
88
+ */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 mu=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)},gu=(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 mu(t)})(r):r;/**
89
89
  * @license
90
90
  * Copyright 2017 Google LLC
91
91
  * SPDX-License-Identifier: BSD-3-Clause
92
- */const{is:Su,defineProperty:Eu,getOwnPropertyDescriptor:Iu,getOwnPropertyNames:Ru,getOwnPropertySymbols:Nu,getPrototypeOf:ju}=Object,It=globalThis,ys=It.trustedTypes,Tu=ys?ys.emptyScript:"",xo=It.reactiveElementPolyfillSupport,Ur=(r,e)=>r,Pi={toAttribute(r,e){switch(e){case Boolean:r=r?Tu: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}},Md=(r,e)=>!Su(r,e),ws={attribute:!0,type:String,converter:Pi,reflect:!1,useDefault:!1,hasChanged:Md};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),It.litPropertyMetadata??(It.litPropertyMetadata=new WeakMap);let Xt=class 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=ws){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&&Eu(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:i}=Iu(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get:o,set(a){const s=o==null?void 0:o.call(this);i==null||i.call(this,a),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ws}static _$Ei(){if(this.hasOwnProperty(Ur("elementProperties")))return;const e=ju(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,n=[...Ru(t),...Nu(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(vs(o))}else e!==void 0&&t.push(vs(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 ku(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 i;const n=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,n);if(o!==void 0&&n.reflect===!0){const a=(((i=n.converter)==null?void 0:i.toAttribute)!==void 0?n.converter:Pi).toAttribute(t,n.type);this._$Em=e,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(e,t){var i,a;const n=this.constructor,o=n._$Eh.get(e);if(o!==void 0&&this._$Em!==o){const s=n.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)==null?void 0:i.fromAttribute)!==void 0?s.converter:Pi;this._$Em=o,this[o]=l.fromAttribute(t,s.type)??((a=this._$Ej)==null?void 0:a.get(o))??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??Md)(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 n;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 e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(n=this._$EO)==null||n.forEach(o=>{var i;return(i=o.hostUpdate)==null?void 0:i.call(o)}),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}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){}};Xt.elementStyles=[],Xt.shadowRootOptions={mode:"open"},Xt[Ur("elementProperties")]=new Map,Xt[Ur("finalized")]=new Map,xo==null||xo({ReactiveElement:Xt}),(It.reactiveElementVersions??(It.reactiveElementVersions=[])).push("2.1.0");/**
92
+ */const{is:vu,defineProperty:yu,getOwnPropertyDescriptor:wu,getOwnPropertyNames:xu,getOwnPropertySymbols:_u,getPrototypeOf:ku}=Object,Ln=globalThis,bs=Ln.trustedTypes,Su=bs?bs.emptyScript:"",Eu=Ln.reactiveElementPolyfillSupport,Fr=(r,e)=>r,Li={toAttribute(r,e){switch(e){case Boolean:r=r?Su: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)=>!vu(r,e),ms={attribute:!0,type:String,converter:Li,reflect:!1,useDefault:!1,hasChanged:Td};Symbol.metadata??=Symbol("metadata"),Ln.litPropertyMetadata??=new WeakMap;let Jt=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&&yu(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:i}=wu(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=ku(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=[...xu(t),..._u(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 gu(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){}};Jt.elementStyles=[],Jt.shadowRootOptions={mode:"open"},Jt[Fr("elementProperties")]=new Map,Jt[Fr("finalized")]=new Map,Eu?.({ReactiveElement:Jt}),(Ln.reactiveElementVersions??=[]).push("2.1.1");/**
93
93
  * @license
94
94
  * Copyright 2017 Google LLC
95
95
  * SPDX-License-Identifier: BSD-3-Clause
96
- */const Hr=globalThis,Sn=Hr.trustedTypes,xs=Sn?Sn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Cd="$lit$",St=`lit$${Math.random().toFixed(9).slice(2)}$`,Pd="?"+St,Au=`<${Pd}>`,Ft=document,Jr=()=>Ft.createComment(""),Qr=r=>r===null||typeof r!="object"&&typeof r!="function",oa=Array.isArray,Lu=r=>oa(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",_o=`[
97
- \f\r]`,wr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_s=/-->/g,ks=/>/g,Lt=RegExp(`>|${_o}(?:([^\\s"'>=/]+)(${_o}*=${_o}*(?:[^
98
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ss=/'/g,Es=/"/g,Bd=/^(?:script|style|textarea|title)$/i,Ou=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),dt=Ou(1),tr=Symbol.for("lit-noChange"),$e=Symbol.for("lit-nothing"),Is=new WeakMap,Ct=Ft.createTreeWalker(Ft,129);function qd(r,e){if(!oa(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return xs!==void 0?xs.createHTML(e):e}const $u=(r,e)=>{const t=r.length-1,n=[];let o,i=e===2?"<svg>":e===3?"<math>":"",a=wr;for(let s=0;s<t;s++){const l=r[s];let d,f,m=-1,v=0;for(;v<l.length&&(a.lastIndex=v,f=a.exec(l),f!==null);)v=a.lastIndex,a===wr?f[1]==="!--"?a=_s:f[1]!==void 0?a=ks:f[2]!==void 0?(Bd.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,d=f[1],a=f[3]===void 0?Lt:f[3]==='"'?Es:Ss):a===Es||a===Ss?a=Lt:a===_s||a===ks?a=wr:(a=Lt,o=void 0);const b=a===Lt&&r[s+1].startsWith("/>")?" ":"";i+=a===wr?l+Au:m>=0?(n.push(d),l.slice(0,m)+Cd+l.slice(m)+St+b):l+St+(m===-2?s:b)}return[qd(r,i+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};let Bi=class Fd{constructor({strings:e,_$litType$:t},n){let o;this.parts=[];let i=0,a=0;const s=e.length-1,l=this.parts,[d,f]=$u(e,t);if(this.el=Fd.createElement(d,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(Cd)){const v=f[a++],b=o.getAttribute(m).split(St),g=/([.?@])?(.*)/.exec(v);l.push({type:1,index:i,name:g[2],strings:b,ctor:g[1]==="."?Mu:g[1]==="?"?Cu:g[1]==="@"?Pu:Dn}),o.removeAttribute(m)}else m.startsWith(St)&&(l.push({type:6,index:i}),o.removeAttribute(m));if(Bd.test(o.tagName)){const m=o.textContent.split(St),v=m.length-1;if(v>0){o.textContent=Sn?Sn.emptyScript:"";for(let b=0;b<v;b++)o.append(m[b],Jr()),Ct.nextNode(),l.push({type:2,index:++i});o.append(m[v],Jr())}}}else if(o.nodeType===8)if(o.data===Pd)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=Ft.createElement("template");return n.innerHTML=e,n}};function rr(r,e,t=r,n){var a,s;if(e===tr)return e;let o=n!==void 0?(a=t._$Co)==null?void 0:a[n]:t._$Cl;const i=Qr(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==i&&((s=o==null?void 0:o._$AO)==null||s.call(o,!1),i===void 0?o=void 0:(o=new i(r),o._$AT(r,t,n)),n!==void 0?(t._$Co??(t._$Co=[]))[n]=o:t._$Cl=o),o!==void 0&&(e=rr(r,o._$AS(r,e.values),o,n)),e}let Du=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==null?void 0:e.creationScope)??Ft).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 d;l.type===2?d=new ia(i,i.nextSibling,this,e):l.type===1?d=new l.ctor(i,l.name,l.strings,this,e):l.type===6&&(d=new Bu(i,this,e)),this._$AV.push(d),l=n[++s]}a!==(l==null?void 0:l.index)&&(i=Ct.nextNode(),a++)}return Ct.currentNode=Ft,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++}},ia=class zd{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,n,o){this.type=2,this._$AH=$e,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?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),Qr(e)?e===$e||e==null||e===""?(this._$AH!==$e&&this._$AR(),this._$AH=$e):e!==this._$AH&&e!==tr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Lu(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!==$e&&Qr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ft.createTextNode(e)),this._$AH=e}$(e){var i;const{values:t,_$litType$:n}=e,o=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Bi.createElement(qd(n.h,n.h[0]),this.options)),n);if(((i=this._$AH)==null?void 0:i._$AD)===o)this._$AH.p(t);else{const a=new Du(o,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Is.get(e.strings);return t===void 0&&Is.set(e.strings,t=new Bi(e)),t}k(e){oa(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 zd(this.O(Jr()),this.O(Jr()),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){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}},Dn=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,o,i){this.type=1,this._$AH=$e,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=$e}_$AI(e,t=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=rr(this,e,t,0),a=!Qr(e)||e!==this._$AH&&e!==tr,a&&(this._$AH=e);else{const s=e;let l,d;for(e=i[0],l=0;l<i.length-1;l++)d=rr(this,s[n+l],t,l),d===tr&&(d=this._$AH[l]),a||(a=!Qr(d)||d!==this._$AH[l]),d===$e?e=$e:e!==$e&&(e+=(d??"")+i[l+1]),this._$AH[l]=d}a&&!o&&this.j(e)}j(e){e===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Mu=class extends Dn{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$e?void 0:e}},Cu=class extends Dn{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==$e)}},Pu=class extends Dn{constructor(e,t,n,o,i){super(e,t,n,o,i),this.type=5}_$AI(e,t=this){if((e=rr(this,e,t,0)??$e)===tr)return;const n=this._$AH,o=e===$e&&n!==$e||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==$e&&(n===$e||o);o&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}},Bu=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){rr(this,e)}};const ko=Hr.litHtmlPolyfillSupport;ko==null||ko(Bi,ia),(Hr.litHtmlVersions??(Hr.litHtmlVersions=[])).push("3.3.0");const qu=(r,e,t)=>{const n=(t==null?void 0:t.renderBefore)??e;let o=n._$litPart$;if(o===void 0){const i=(t==null?void 0:t.renderBefore)??null;n._$litPart$=o=new ia(e.insertBefore(Jr(),i),i,void 0,t??{})}return o._$AI(r),o};/**
96
+ */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,Iu=`<${Ld}>`,Bt=document,Gr=()=>Bt.createComment(""),Vr=r=>r===null||typeof r!="object"&&typeof r!="function",Zi=Array.isArray,Ru=r=>Zi(r)||typeof r?.[Symbol.iterator]=="function",yo=`[
97
+ \f\r]`,vr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vs=/-->/g,ys=/>/g,At=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^
98
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ws=/'/g,xs=/"/g,Od=/^(?:script|style|textarea|title)$/i,Nu=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),dt=Nu(1),Zt=Symbol.for("lit-noChange"),$e=Symbol.for("lit-nothing"),_s=new WeakMap,Mt=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 ju=(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,g=-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=At):f[3]!==void 0&&(a=At):a===At?f[0]===">"?(a=o??vr,g=-1):f[1]===void 0?g=-2:(g=a.lastIndex-f[2].length,u=f[1],a=f[3]===void 0?At:f[3]==='"'?xs:ws):a===xs||a===ws?a=At:a===vs||a===ys?a=vr:(a=At,o=void 0);const b=a===At&&r[s+1].startsWith("/>")?" ":"";i+=a===vr?l+Iu:g>=0?(n.push(u),l.slice(0,g)+Ad+l.slice(g)+St+b):l+St+(g===-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]=ju(e,t);if(this.el=Dd.createElement(u,n),Mt.currentNode=this.el.content,t===2||t===3){const g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(o=Mt.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const g of o.getAttributeNames())if(g.endsWith(Ad)){const y=f[a++],b=o.getAttribute(g).split(St),m=/([.?@])?(.*)/.exec(y);l.push({type:1,index:i,name:m[2],strings:b,ctor:m[1]==="."?Au:m[1]==="?"?Lu:m[1]==="@"?Ou:On}),o.removeAttribute(g)}else g.startsWith(St)&&(l.push({type:6,index:i}),o.removeAttribute(g));if(Od.test(o.tagName)){const g=o.textContent.split(St),y=g.length-1;if(y>0){o.textContent=wn?wn.emptyScript:"";for(let b=0;b<y;b++)o.append(g[b],Gr()),Mt.nextNode(),l.push({type:2,index:++i});o.append(g[y],Gr())}}}else if(o.nodeType===8)if(o.data===Ld)l.push({type:2,index:i});else{let g=-1;for(;(g=o.data.indexOf(St,g+1))!==-1;)l.push({type:7,index:i}),g+=St.length-1}i++}}static createElement(e,t){const n=Bt.createElement("template");return n.innerHTML=e,n}};function er(r,e,t=r,n){if(e===Zt)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=er(r,o._$AS(r,e.values),o,n)),e}let Tu=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);Mt.currentNode=o;let i=Mt.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 $u(i,this,e)),this._$AV.push(u),l=n[++s]}a!==l?.index&&(i=Mt.nextNode(),a++)}return Mt.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=$e,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=er(this,e,t),Vr(e)?e===$e||e==null||e===""?(this._$AH!==$e&&this._$AR(),this._$AH=$e):e!==this._$AH&&e!==Zt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ru(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!==$e&&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 Tu(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=$e,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=$e}_$AI(e,t=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=er(this,e,t,0),a=!Vr(e)||e!==this._$AH&&e!==Zt,a&&(this._$AH=e);else{const s=e;let l,u;for(e=i[0],l=0;l<i.length-1;l++)u=er(this,s[n+l],t,l),u===Zt&&(u=this._$AH[l]),a||=!Vr(u)||u!==this._$AH[l],u===$e?e=$e:e!==$e&&(e+=(u??"")+i[l+1]),this._$AH[l]=u}a&&!o&&this.j(e)}j(e){e===$e?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Au=class extends On{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===$e?void 0:e}},Lu=class extends On{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==$e)}},Ou=class extends On{constructor(e,t,n,o,i){super(e,t,n,o,i),this.type=5}_$AI(e,t=this){if((e=er(this,e,t,0)??$e)===Zt)return;const n=this._$AH,o=e===$e&&n!==$e||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==$e&&(n===$e||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)}},$u=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){er(this,e)}};const Du=Yi.litHtmlPolyfillSupport;Du?.(Oi,ea),(Yi.litHtmlVersions??=[]).push("3.3.1");const Mu=(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};/**
99
99
  * @license
100
100
  * Copyright 2017 Google LLC
101
101
  * SPDX-License-Identifier: BSD-3-Clause
102
- */const Bt=globalThis;class qt extends Xt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.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(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return tr}}var fd;qt._$litElement$=!0,qt.finalized=!0,(fd=Bt.litElementHydrateSupport)==null||fd.call(Bt,{LitElement:qt});const So=Bt.litElementPolyfillSupport;So==null||So({LitElement:qt});(Bt.litElementVersions??(Bt.litElementVersions=[])).push("4.2.0");var Ud=r=>{throw TypeError(r)},Hd=(r,e,t)=>e.has(r)||Ud("Cannot "+t),_t=(r,e,t)=>(Hd(r,e,"read from private field"),t?t.call(r):e.get(r)),Fu=(r,e,t)=>e.has(r)?Ud("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),zu=(r,e,t,n)=>(Hd(r,e,"write to private field"),e.set(r,t),t);const Gt=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)},bn=globalThis,aa=bn.ShadowRoot&&(bn.ShadyCSS===void 0||bn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gd=Symbol(),Rs=new WeakMap;let Uu=class{constructor(r,e,t){if(this._$cssResult$=!0,t!==Gd)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(aa&&r===void 0){const t=e!==void 0&&e.length===1;t&&(r=Rs.get(e)),r===void 0&&((this.o=r=new CSSStyleSheet).replaceSync(this.cssText),t&&Rs.set(e,r))}return r}toString(){return this.cssText}};const Hu=r=>new Uu(typeof r=="string"?r:r+"",void 0,Gd),Gu=(r,e)=>{if(aa)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const n=document.createElement("style"),o=bn.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=t.cssText,r.appendChild(n)}},Ns=aa?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return Hu(t)})(r):r,{is:Vu,defineProperty:Wu,getOwnPropertyDescriptor:Ju,getOwnPropertyNames:Qu,getOwnPropertySymbols:Xu,getPrototypeOf:Ku}=Object,nr=globalThis,js=nr.trustedTypes,Yu=js?js.emptyScript:"",Ts=nr.reactiveElementPolyfillSupport,Gr=(r,e)=>r,En={toAttribute(r,e){switch(e){case Boolean:r=r?Yu: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}},sa=(r,e)=>!Vu(r,e),As={attribute:!0,type:String,converter:En,reflect:!1,hasChanged:sa};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=As){if(t.state&&(t.attribute=!1),this._$Ei(),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}=Ju(this.prototype,e)??{get(){return this[t]},set(a){this[t]=a}};return{get(){return o==null?void 0:o.call(this)},set(a){const s=o==null?void 0:o.call(this);i.call(this,a),this.requestUpdate(e,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??As}static _$Ei(){if(this.hasOwnProperty(Gr("elementProperties")))return;const e=Ku(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gr("properties"))){const t=this.properties,n=[...Qu(t),...Xu(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(Ns(o))}else e!==void 0&&t.push(Ns(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 Gu(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)}_$EC(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:En).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){var n;const o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:En;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,n){if(e!==void 0){if(n??(n=this.constructor.getPropertyOptions(e)),!(n.hasChanged??sa)(this[e],t))return;this.P(e,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,n){this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){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)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],a)}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._$EU()}catch(o){throw t=!1,this._$EU(),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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}xr.elementStyles=[],xr.shadowRootOptions={mode:"open"},xr[Gr("elementProperties")]=new Map,xr[Gr("finalized")]=new Map,Ts==null||Ts({ReactiveElement:xr}),(nr.reactiveElementVersions??(nr.reactiveElementVersions=[])).push("2.0.4");const Zu={attribute:!0,type:String,converter:En,reflect:!1,hasChanged:sa},ep=(r=Zu,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),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.P(a,void 0,r),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"?ep(r,e,t):((n,o,i)=>{const a=o.hasOwnProperty(i);return o.constructor.createProperty(i,a?{...n,wrapped:!0}:n),a?Object.getOwnPropertyDescriptor(o,i):void 0})(r,e,t)}function la(r){return xe({...r,state:!0,attribute:!1})}const tp=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function ct(r,e){return(t,n,o)=>{const i=a=>{var s;return((s=a.renderRoot)==null?void 0:s.querySelector(r))??null};return tp(t,n,{get(){return i(this)}})}}var rp=Object.defineProperty,Vt=(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&&rp(e,t,o),o};const qi=class extends qt{constructor(){super(...arguments),this.dense=!1}};qi.shadowRootOptions={...qt.shadowRootOptions,delegatesFocus:!0},qi.styles=[wt`
102
+ */const ta=globalThis;class Pt extends Jt{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=Mu(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Zt}}Pt._$litElement$=!0,Pt.finalized=!0,ta.litElementHydrateSupport?.({LitElement:Pt});const Cu=ta.litElementPolyfillSupport;Cu?.({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)),Pu=(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),Bu=(r,e,t,n)=>(Pd(r,e,"write to private field"),e.set(r,t),t);const Ut=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 qu=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 Fu=r=>new qu(typeof r=="string"?r:r+"",void 0,Bd),zu=(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 Fu(t)})(r):r,{is:Uu,defineProperty:Hu,getOwnPropertyDescriptor:Gu,getOwnPropertyNames:Vu,getOwnPropertySymbols:Wu,getPrototypeOf:Ju}=Object,tr=globalThis,Es=tr.trustedTypes,Qu=Es?Es.emptyScript:"",Is=tr.reactiveElementPolyfillSupport,zr=(r,e)=>r,xn={toAttribute(r,e){switch(e){case Boolean:r=r?Qu: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)=>!Uu(r,e),Rs={attribute:!0,type:String,converter:xn,reflect:!1,useDefault:!1,hasChanged:na};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),tr.litPropertyMetadata??(tr.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&&Hu(this.prototype,e,o)}}static getPropertyDescriptor(e,t,n){const{get:o,set:i}=Gu(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=Ju(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=[...Vu(t),...Wu(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 zu(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}),(tr.reactiveElementVersions??(tr.reactiveElementVersions=[])).push("2.1.0");const Xu={attribute:!0,type:String,converter:xn,reflect:!1,hasChanged:na},Ku=(r=Xu,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"?Ku(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 Yu=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function ct(r,e){return(t,n,o)=>{const i=a=>{var s;return((s=a.renderRoot)==null?void 0:s.querySelector(r))??null};return Yu(t,n,{get(){return i(this)}})}}var Zu=Object.defineProperty,Ht=(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&&Zu(e,t,o),o};const $i=class extends Pt{constructor(){super(...arguments),this.dense=!1}};$i.shadowRootOptions={...Pt.shadowRootOptions,delegatesFocus:!0},$i.styles=[wt`
103
103
  :host {
104
104
  color-scheme: light dark;
105
105
  --rokit-primary-color-inner: var(--rokit-primary-color, #008877);
@@ -120,11 +120,11 @@ a, a:visited { color: inherit; }
120
120
  --rokit-background-color-inner: var(--rokit-background-color, #FFF);
121
121
  }
122
122
  }
123
- `];let Wt=qi;Vt([xe({type:Boolean,reflect:!0})],Wt.prototype,"dense");var rt;const Fi=class extends Wt{constructor(){super(),Fu(this,rt),this.value="",this.clearable=!1,this.required=!1,zu(this,rt,this.attachInternals())}checkValidity(){return _t(this,rt).checkValidity()}reportValidity(){const e=_t(this,rt).reportValidity();return this.classList.toggle("invalid",!e),e}get validity(){return _t(this,rt).validity}get validationMessage(){return _t(this,rt).validationMessage}setCustomValidity(e,t){e?_t(this,rt).setValidity({customError:!0},e,t):_t(this,rt).setValidity(void 0)}updateValidity(e,t,n){_t(this,rt).setValidity(e,t,n)}setFormValue(e,t){_t(this,rt).setFormValue(e,t)}};rt=new WeakMap,Fi.formAssociated=!0,Fi.styles=[...Wt.styles,wt`
123
+ `];let Gt=$i;Ht([xe({type:Boolean,reflect:!0})],Gt.prototype,"dense");var rt;const Di=class extends Gt{constructor(){super(),Pu(this,rt),this.value="",this.clearable=!1,this.required=!1,Bu(this,rt,this.attachInternals())}checkValidity(){return _t(this,rt).checkValidity()}reportValidity(){const e=_t(this,rt).reportValidity();return this.classList.toggle("invalid",!e),e}get validity(){return _t(this,rt).validity}get validationMessage(){return _t(this,rt).validationMessage}setCustomValidity(e,t){e?_t(this,rt).setValidity({customError:!0},e,t):_t(this,rt).setValidity(void 0)}updateValidity(e,t,n){_t(this,rt).setValidity(e,t,n)}setFormValue(e,t){_t(this,rt).setFormValue(e,t)}};rt=new WeakMap,Di.formAssociated=!0,Di.styles=[...Gt.styles,wt`
124
124
  :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; }
125
125
  :host(:focus) { border-color: var(--rokit-primary-color-inner); }
126
126
  :host(.invalid) { border-color: var(--rokit-error-color-inner); }
127
- `];let ut=Fi;Vt([xe()],ut.prototype,"name");Vt([xe()],ut.prototype,"value");Vt([xe({type:Boolean})],ut.prototype,"clearable");Vt([xe({type:Boolean})],ut.prototype,"required");Vt([xe()],ut.prototype,"label");Vt([xe()],ut.prototype,"placeholder");function np(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 op=(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 Xr=class extends Wt{render(){return dt`<a part="link"><slot><slot></a>`}};Xr.styles=[...Wt.styles,wt`
127
+ `];let ut=Di;Ht([xe()],ut.prototype,"name");Ht([xe()],ut.prototype,"value");Ht([xe({type:Boolean})],ut.prototype,"clearable");Ht([xe({type:Boolean})],ut.prototype,"required");Ht([xe()],ut.prototype,"label");Ht([xe()],ut.prototype,"placeholder");function ep(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 tp=(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 Gt{render(){return dt`<a part="link"><slot><slot></a>`}};Wr.styles=[...Gt.styles,wt`
128
128
  :host a { display: flex; min-width: 1em; height: 1em; padding: 0.5em; cursor: pointer; border-radius: 1em; align-items: center; justify-content: center; }
129
129
  :host a:hover { font-weight: 600; background-color: var(--rokit-light-background-darker-color-inner); }
130
130
  :host([dense]) { font-size: 0.65em; }
@@ -132,7 +132,7 @@ a, a:visited { color: inherit; }
132
132
  :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)); }
133
133
  :host(.caret.down) a:before { transform: translate(0.15em, 0.15em) rotate(225deg); }
134
134
  :host(.caret.right) a:before { transform: translate(0em, 0em) rotate(-45deg); }
135
- `];Xr=op([Gt("rokit-button")],Xr);var ip=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,Jt=(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};let mt=class extends Wt{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=np(getComputedStyle(this).getPropertyValue("--rokit-transition-duration-inner"))}updated(r){r.has("transitioning")&&this.classList.toggle("transitioning",this.transitioning)}updateContentHeight(){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")}toggle(r=!this.open){this.open||this.updateContentHeight(),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 dt`
135
+ `];Wr=tp([Ut("rokit-button")],Wr);var rp=Object.defineProperty,np=Object.getOwnPropertyDescriptor,Vt=(r,e,t,n)=>{for(var o=n>1?void 0:n?np(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&&rp(e,t,o),o};let mt=class extends Gt{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=ep(getComputedStyle(this).getPropertyValue("--rokit-transition-duration-inner"))}updated(r){r.has("transitioning")&&this.classList.toggle("transitioning",this.transitioning)}updateContentHeight(){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")}toggle(r=!this.open){this.open||this.updateContentHeight(),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 dt`
136
136
  <header part="header">
137
137
  <slot name="prefix" part="prefix"></slot>
138
138
  <span class="label"><slot name="label" part="label">${this.label}</slot></span>
@@ -143,7 +143,7 @@ a, a:visited { color: inherit; }
143
143
  <div id="content" part="content">
144
144
  <slot @slotchange=${this.updateContentHeight}></slot>
145
145
  </div>
146
- `}};mt.styles=[...Wt.styles,wt`
146
+ `}};mt.styles=[...Gt.styles,wt`
147
147
  :host { display: flex; flex-direction: column; align-items: stretch; border-bottom: 2px solid var(--rokit-light-background-darker-color-inner); }
148
148
  :host header { cursor: pointer; }
149
149
  :host([dense]) header { padding: 2px 4px; }
@@ -154,7 +154,7 @@ a, a:visited { color: inherit; }
154
154
  .label { flex-grow: 1; }
155
155
  #content { display: flex; transition: max-height var(--rokit-transition-duration-inner) ease-in-out; position: relative; scrollbar-width: thin; }
156
156
  #toggle { margin-left: 3px; }
157
- `];Jt([xe({type:Boolean,reflect:!0})],mt.prototype,"open",2);Jt([xe()],mt.prototype,"label",2);Jt([xe({reflect:!0})],mt.prototype,"maxHeight",2);Jt([ct("#content")],mt.prototype,"content",2);Jt([ct("#toggle")],mt.prototype,"toggleButton",2);Jt([la()],mt.prototype,"transitioning",2);mt=Jt([Gt("rokit-collapsible")],mt);var sp=Object.defineProperty,lp=Object.getOwnPropertyDescriptor,Vd=r=>{throw TypeError(r)},Qe=(r,e,t,n)=>{for(var o=n>1?void 0:n?lp(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&&sp(e,t,o),o},Wd=(r,e,t)=>e.has(r)||Vd("Cannot "+t),dp=(r,e,t)=>(Wd(r,e,"read from private field"),e.get(r)),cp=(r,e,t)=>e.has(r)?Vd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Ls=(r,e,t,n)=>(Wd(r,e,"write to private field"),e.set(r,t),t),Cr;let De=class extends ut{constructor(){super(),this.type="text",this.disabled=!1,this.readonly=!1,this.sticky=!1,this.minWidth=80,cp(this,Cr,""),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(){var r,e;Ls(this,Cr,this.value),this.inputElement.addEventListener("change",()=>{this.value=this.inputElement.value});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!==dp(this,Cr)&&(Ls(this,Cr,this.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))))}clear(){this.inputElement.value="",this.value="",this.blur()}renderInput(){return dt`<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 dt`
157
+ `];Vt([xe({type:Boolean,reflect:!0})],mt.prototype,"open",2);Vt([xe()],mt.prototype,"label",2);Vt([xe({reflect:!0})],mt.prototype,"maxHeight",2);Vt([ct("#content")],mt.prototype,"content",2);Vt([ct("#toggle")],mt.prototype,"toggleButton",2);Vt([oa()],mt.prototype,"transitioning",2);mt=Vt([Ut("rokit-collapsible")],mt);var op=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,qd=r=>{throw TypeError(r)},Qe=(r,e,t,n)=>{for(var o=n>1?void 0:n?ip(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&&op(e,t,o),o},Fd=(r,e,t)=>e.has(r)||qd("Cannot "+t),ap=(r,e,t)=>(Fd(r,e,"read from private field"),e.get(r)),sp=(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 De=class extends ut{constructor(){super(),this.type="text",this.disabled=!1,this.readonly=!1,this.sticky=!1,this.minWidth=80,sp(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(){var r,e;Ns(this,Dr,this.value),this.inputElement.addEventListener("change",()=>{this.value=this.inputElement.value});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!==ap(this,Dr)&&(Ns(this,Dr,this.value),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))))}clear(){this.inputElement.value="",this.value="",this.blur()}renderInput(){return dt`<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 dt`
158
158
  <slot name="prefix" part="prefix"></slot>
159
159
  <div class="wrapper">
160
160
  <label for="input" part="label">${this.label}</label>
@@ -164,7 +164,7 @@ a, a:visited { color: inherit; }
164
164
  `:$e}
165
165
  </div>
166
166
  <slot name="suffix" part="suffix"></slot>
167
- `}};Cr=new WeakMap;De.styles=[...ut.styles,wt`
167
+ `}};Dr=new WeakMap;De.styles=[...ut.styles,wt`
168
168
  :host { background-color: var(--rokit-light-background-color-inner); user-select: none; }
169
169
  :host([dense]) { padding: 2px 4px; }
170
170
  :host(.has-focus:not([readonly])) label, :host(.has-value) label, :host([sticky]) label { font-size: 0.75em; top: 0.5em; font-weight: 600; }
@@ -178,7 +178,7 @@ a, a:visited { color: inherit; }
178
178
  :host(.has-label) #input { margin-top: 0.9em; }
179
179
  :host(.has-label:not(.has-focus):not(.has-value):not([sticky])) #input { clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
180
180
  :host(:not(.has-value)) .clear { visibility: hidden; }
181
- `];Qe([xe()],De.prototype,"type",2);Qe([xe({type:Boolean})],De.prototype,"disabled",2);Qe([xe({type:Boolean,reflect:!0})],De.prototype,"readonly",2);Qe([xe({type:Boolean,reflect:!0})],De.prototype,"sticky",2);Qe([xe()],De.prototype,"pattern",2);Qe([xe()],De.prototype,"minLength",2);Qe([xe()],De.prototype,"maxLength",2);Qe([xe()],De.prototype,"min",2);Qe([xe()],De.prototype,"max",2);Qe([xe()],De.prototype,"step",2);Qe([xe()],De.prototype,"minWidth",2);Qe([ct("#input")],De.prototype,"inputElement",2);De=Qe([Gt("rokit-input")],De);var up=Object.defineProperty,pp=Object.getOwnPropertyDescriptor,Jd=r=>{throw TypeError(r)},Ge=(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},Qd=(r,e,t)=>e.has(r)||Jd("Cannot "+t),Os=(r,e,t)=>(Qd(r,e,"read from private field"),t?t.call(r):e.get(r)),$s=(r,e,t)=>e.has(r)?Jd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),un=(r,e,t,n)=>(Qd(r,e,"write to private field"),e.set(r,t),t),Kt,mn;let Me=class extends ut{constructor(){super(),this.emptyMessage="Nothing to select",this.collapsibleOrientationLeft="0",this.collapsibleOrientationRight="0",this.collapsibleWidth="",this.collapse=!1,this.filterableThreshold=15,this.itemCount=0,$s(this,Kt,""),$s(this,mn,""),this.addEventListener("focus",()=>{this.collapsible.toggle(!0)}),this.addEventListener("blur",()=>{this.checkInputValue(),this.collapsible.toggle(!1)})}firstUpdated(){un(this,Kt,this.value),un(this,mn,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="",un(this,Kt,""),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==null?void 0:r.getAttribute("disabled"))!==null&&(r=null),this.selectedItem=r,this.filter(""),this.highlightItem(r,!1),e&&this.value&&un(this,Kt,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==null?void 0: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||Os(this,Kt),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}*${Os(this,mn)})`);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 d of o.childNodes)if(d.nodeName!=="UL"){const f=d.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 d=document.createElement("ul");if(i.appendChild(d),this.copyItems(Array.prototype.slice.call(l.children),d,t+1),this.collapse){const f=new Xr;f.title="Open",f.dense=!0,f.classList.add("toggle-node","caret"),f.addEventListener("click",m=>{m.stopPropagation(),i.classList.toggle("open"),d.classList.toggle("open"),f.title=i.classList.contains("open")?"Close":"Open"}),a.prepend(f)}else d.classList.add("open")}e.appendChild(i),this.itemCount++}}render(){return dt`
181
+ `];Qe([xe()],De.prototype,"type",2);Qe([xe({type:Boolean})],De.prototype,"disabled",2);Qe([xe({type:Boolean,reflect:!0})],De.prototype,"readonly",2);Qe([xe({type:Boolean,reflect:!0})],De.prototype,"sticky",2);Qe([xe()],De.prototype,"pattern",2);Qe([xe()],De.prototype,"minLength",2);Qe([xe()],De.prototype,"maxLength",2);Qe([xe()],De.prototype,"min",2);Qe([xe()],De.prototype,"max",2);Qe([xe()],De.prototype,"step",2);Qe([xe()],De.prototype,"minWidth",2);Qe([ct("#input")],De.prototype,"inputElement",2);De=Qe([Ut("rokit-input")],De);var lp=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,zd=r=>{throw TypeError(r)},Ge=(r,e,t,n)=>{for(var o=n>1?void 0:n?dp(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&&lp(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),Qt,fn;let Me=class extends ut{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,Qt,""),Ts(this,fn,""),this.addEventListener("focus",()=>{this.collapsible.toggle(!0)}),this.addEventListener("blur",()=>{this.checkInputValue(),this.collapsible.toggle(!1)})}firstUpdated(){ln(this,Qt,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,Qt,""),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,Qt,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,Qt),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",g=>{g.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 dt`
182
182
  <rokit-collapsible ?dense="${this.dense}" part="collapsible">
183
183
  <slot name="prefix" part="prefix" slot="prefix"></slot>
184
184
  <slot name="suffix" part="suffix" slot="suffix"></slot>
@@ -193,11 +193,11 @@ a, a:visited { color: inherit; }
193
193
  <ul id="list-container" tabindex="-1" part="list" class="open"
194
194
  @mousedown="${r=>{r.preventDefault()}}"
195
195
  @click="${r=>{const e=r.target.closest("li");e&&e.getAttribute("disabled")===null&&!e.classList.contains("divider")&&this.selectItem(e)}}"
196
- @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"))}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"))}break;case"Escape":this.listContainer.blur();break}}}">
196
+ @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}}}">
197
197
  </ul>
198
198
  <slot id="list-container-slot" @slotchange=${this.onSlotChange}></slot>
199
199
  </rokit-collapsible>
200
- `}};Kt=new WeakMap;mn=new WeakMap;Me.styles=[...ut.styles,wt`
200
+ `}};Qt=new WeakMap;fn=new WeakMap;Me.styles=[...ut.styles,wt`
201
201
  :host { background-color: var(--rokit-light-background-color-inner); user-select: none; padding: 0; }
202
202
  :host([dense]) li > div { padding: 4px 2px; }
203
203
  :host([dense]) li.large > div, :host([dense]) li.header > div { padding-top: 6px; padding-bottom: 6px; }
@@ -223,15 +223,15 @@ a, a:visited { color: inherit; }
223
223
  :host([collapse]) li > div > div { padding-left: 1.8em; }
224
224
  :host([collapse]) ul:not(.open) { display: none; }
225
225
  :host([collapse]) li:not(.open) > div > .toggle-node::part(link):before { transform: translate(0em, 0em) rotate(-45deg); }
226
- `];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})],Me.prototype,"collapse",2);Ge([xe()],Me.prototype,"filterableThreshold",2);Ge([ct("rokit-collapsible")],Me.prototype,"collapsible",2);Ge([ct("#input")],Me.prototype,"input",2);Ge([ct("#list-container")],Me.prototype,"listContainer",2);Ge([la()],Me.prototype,"selectedItem",2);Ge([la()],Me.prototype,"itemCount",2);Me=Ge([Gt("rokit-select")],Me);var fp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,Mn=(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};let or=class extends De{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 dt`
226
+ `];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([ct("rokit-collapsible")],Me.prototype,"collapsible",2);Ge([ct("#input")],Me.prototype,"input",2);Ge([ct("#list-container")],Me.prototype,"listContainer",2);Ge([oa()],Me.prototype,"selectedItem",2);Ge([oa()],Me.prototype,"itemCount",2);Me=Ge([Ut("rokit-select")],Me);var cp=Object.defineProperty,up=Object.getOwnPropertyDescriptor,$n=(r,e,t,n)=>{for(var o=n>1?void 0:n?up(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&&cp(e,t,o),o};let rr=class extends De{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 dt`
227
227
  <textarea id="input" part="input" autocomplete="off" name="${this.name}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" .value="${this.value}"></textarea>
228
228
  <slot id="content" @slotchange=${this.onSlotChange}></slot>
229
- `}};or.styles=[...De.styles,wt`
229
+ `}};rr.styles=[...De.styles,wt`
230
230
  :host { align-items: last baseline; }
231
231
  #input { height: initial; }
232
232
  #content { display: none; }
233
233
  .wrapper { align-items: flex-start; }
234
- `];Mn([xe()],or.prototype,"resize",2);Mn([xe()],or.prototype,"rows",2);Mn([xe()],or.prototype,"cols",2);or=Mn([Gt("rokit-textarea")],or);var bp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Xd=r=>{throw TypeError(r)},pt=(r,e,t,n)=>{for(var o=n>1?void 0:n?mp(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&&bp(e,t,o),o},Kd=(r,e,t)=>e.has(r)||Xd("Cannot "+t),Ie=(r,e,t)=>(Kd(r,e,"read from private field"),t?t.call(r):e.get(r)),Eo=(r,e,t)=>e.has(r)?Xd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),pn=(r,e,t,n)=>(Kd(r,e,"write to private field"),e.set(r,t),t),Le,ht,Yt;const Et=18;let gt=class extends De{constructor(){super(...arguments),this.labelFormatter=r=>String(r),Eo(this,Le,[0,1]),Eo(this,ht,[Ie(this,Le)[0],Ie(this,Le)[1]]),Eo(this,Yt)}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")&&pn(this,Yt,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);pn(this,ht,[this.applyConstraints(e[0]),this.applyConstraints(e[1])])}else pn(this,ht,[this.applyConstraints(parseFloat(this.value))]);else pn(this,ht,[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,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(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,ht)[0]),this.endKnob&&this.updateKnob(this.endKnob,Ie(this,ht)[1])}onKnobDrag(r){if(r.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"))},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,ht)[0],e.value]):this.value=JSON.stringify([e.value,Ie(this,ht)[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 dt`
234
+ `];$n([xe()],rr.prototype,"resize",2);$n([xe()],rr.prototype,"rows",2);$n([xe()],rr.prototype,"cols",2);rr=$n([Ut("rokit-textarea")],rr);var pp=Object.defineProperty,fp=Object.getOwnPropertyDescriptor,Hd=r=>{throw TypeError(r)},pt=(r,e,t,n)=>{for(var o=n>1?void 0:n?fp(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&&pp(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,ht,Xt;const Et=18;let gt=class extends De{constructor(){super(...arguments),this.labelFormatter=r=>String(r),wo(this,Le,[0,1]),wo(this,ht,[Ie(this,Le)[0],Ie(this,Le)[1]]),wo(this,Xt)}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,Xt,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,ht,[this.applyConstraints(e[0]),this.applyConstraints(e[1])])}else dn(this,ht,[this.applyConstraints(parseFloat(this.value))]);else dn(this,ht,[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,Xt)&&(t=Math.round(t/Ie(this,Xt))*Ie(this,Xt)),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,ht)[0]),this.endKnob&&this.updateKnob(this.endKnob,Ie(this,ht)[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,ht)[0],e.value]):this.value=JSON.stringify([e.value,Ie(this,ht)[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 dt`
235
235
  ${super.renderInput()}
236
236
  <div id="slider" part="slider" tabindex="0" ?range="${this.range!==void 0}">
237
237
  <div id="track"></div>
@@ -240,7 +240,7 @@ a, a:visited { color: inherit; }
240
240
  <rokit-slider-knob id="end"></rokit-slider-knob>
241
241
  `}
242
242
  </div>
243
- `}};Le=new WeakMap;ht=new WeakMap;Yt=new WeakMap;gt.styles=[...De.styles,wt`
243
+ `}};Le=new WeakMap;ht=new WeakMap;Xt=new WeakMap;gt.styles=[...De.styles,wt`
244
244
  :host(.has-label:not(:focus):not(.has-value):not([sticky])) #slider > * { visibility: hidden; }
245
245
  :host(.has-label) .wrapper { padding-top: 1em; }
246
246
  :host([sticky]) #slider { margin-top: ${.25*Et+22}px; }
@@ -249,7 +249,7 @@ a, a:visited { color: inherit; }
249
249
  :host(:not([sticky])) #slider:not(:focus) rokit-slider-knob::part(label) { color: transparent; background-color: transparent; border-color: transparent; top: 0; }
250
250
  #track { height: 2px; flex-grow: 1; background-color: #CCC; }
251
251
  #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; }
252
- `];pt([xe()],gt.prototype,"range",2);pt([xe()],gt.prototype,"labelFormatter",2);pt([ct("#slider")],gt.prototype,"sliderElement",2);pt([ct("#track")],gt.prototype,"track",2);pt([ct("#start")],gt.prototype,"startKnob",2);pt([ct("#end")],gt.prototype,"endKnob",2);gt=pt([Gt("rokit-slider")],gt);let ir=class extends qt{constructor(){super(...arguments),this.offset=0,this.label="",this.value=0}updated(r){r.has("offset")&&(this.style.left=this.offset+"px")}render(){return dt`<label part="label">${this.label}</label>`}};ir.styles=[wt`
252
+ `];pt([xe()],gt.prototype,"range",2);pt([xe()],gt.prototype,"labelFormatter",2);pt([ct("#slider")],gt.prototype,"sliderElement",2);pt([ct("#track")],gt.prototype,"track",2);pt([ct("#start")],gt.prototype,"startKnob",2);pt([ct("#end")],gt.prototype,"endKnob",2);gt=pt([Ut("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 dt`<label part="label">${this.label}</label>`}};nr.styles=[wt`
253
253
  :host { position: absolute; width: ${Et}px; height: ${Et}px; border-radius: ${Et}px; background-color: var(--rokit-primary-color-inner); }
254
254
  :host(.focus), :host(:hover) { box-shadow: 0 0 0 ${Et/2}px var(--rokit-primary-color-transparent-inner); z-index: 1; }
255
255
  label {
@@ -279,34 +279,34 @@ a, a:visited { color: inherit; }
279
279
  background-color: inherit;
280
280
  clip-path: polygon(50% 50%, 100% 50%, 50% 100%, 0 50%);
281
281
  }
282
- `];pt([xe()],ir.prototype,"offset",2);pt([xe()],ir.prototype,"label",2);ir=pt([Gt("rokit-slider-knob")],ir);class In extends HTMLElement{constructor(e,t,n,o){if(super(),this.template=new pu(n.store.getQuads(e,null,null,null),t,n),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.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,st));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)}if(n.editMode&&!t.linked&&(this.addEventListener("change",()=>{this.updateControls()}),this.updateControls()),this.template.extendedShapes.length&&this.template.config.attributes.collapse!==null&&(!this.template.maxCount||this.template.maxCount>1)&&(n.editMode&&!t.linked||this.childElementCount>0)){const i=this;i.classList.add("collapsible"),this.template.config.attributes.collapse==="open"&&i.classList.add("open");const a=document.createElement("h1");a.classList.add("activator"),a.innerText=this.template.label,a.addEventListener("click",()=>{i.classList.toggle("open")}),this.prepend(a)}}addPropertyInstance(e){var n,o,i;let t;if((n=this.template.shaclOr)!=null&&n.length||(o=this.template.shaclXone)!=null&&o.length){const a=(i=this.template.shaclOr)!=null&&i.length?this.template.shaclOr:this.template.shaclXone;let s=!1;if(e){const l=du(a,e,this.template.config);l.length&&(t=gn(this.template.clone().merge(l),e,!0),s=!0)}s||(t=$d(a,this,this.template.config),Yd(t,""))}else{let a=!1;if(e){const s=this.getRdfClassToLinkOrCreate();s&&this.template.config.store.countQuads(e,Be,s,st)===0&&(a=!0)}t=gn(this.template,e,void 0,a||this.template.parent.linked)}return this.addButton?this.insertBefore(t,this.addButton):this.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)}toRDF(e,t){for(const n of this.querySelectorAll(":scope > .property-instance")){const o=ke.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=vu(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,Wr,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,Wr,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=kn(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(()=>{lu(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 d=document.createElement("li"),f=typeof l.value=="string"?l.value:l.value.value;d.innerText=l.label?l.label:f,d.dataset.value=JSON.stringify(l.value),o.appendChild(d)}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.insertBefore(gn(this.template,l,!0,!0),e)}e.value=""})}return e}}function gn(r,e,t=!1,n=!1){var i;let o;if(r.extendedShapes.length){o=document.createElement("div"),o.classList.add("property-instance");for(const a of r.extendedShapes)o.appendChild(new Rt(a,r.config,e,r.parent,r.nodeKind,r.label,n))}else{const a=xu(r.path,(i=r.datatype)==null?void 0:i.value);a?r.config.editMode&&!n?o=a.createEditor(r,e):o=a.createViewer(r,e):o=bu(r,e||null,r.config.editMode&&!n),o.classList.add("property-instance"),n&&o.classList.add("linked")}return r.config.editMode&&Yd(o,r.label,t),o.dataset.path=r.path,o}function Yd(r,e,t=!1){const n=new Xr;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==null||i.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},200)}),t&&n.classList.add("persistent"),r.appendChild(n)}window.customElements.define("shacl-property",In);function gp(r,e){const t=document.createElement("div");t.dataset.subject=r,t.classList.add("shacl-group");let n=r;const o=e.store.getQuads(r,null,null,null),i=Fr(o,"label",Zi,e.languages);i&&(n=i);const a=Fr(o,"order");a&&(t.style.order=a);const s=document.createElement("h1");return s.innerText=n,t.appendChild(s),e.attributes.collapse!==null&&(t.classList.add("collapsible"),e.attributes.collapse==="open"&&t.classList.add("open"),s.classList.add("activator"),s.addEventListener("click",()=>{t.classList.toggle("open")})),t}const Ce=[];for(let r=0;r<256;++r)Ce.push((r+256).toString(16).slice(1));function vp(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 Io;const yp=new Uint8Array(16);function wp(){if(!Io){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Io=crypto.getRandomValues.bind(crypto)}return Io(yp)}const xp=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ds={randomUUID:xp};function Ms(r,e,t){var o;if(Ds.randomUUID&&!r)return Ds.randomUUID();r=r||{};const n=r.random??((o=r.rng)==null?void 0:o.call(r))??wp();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,vp(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==null?void 0:i.value)===`${ve}IRI`?l=ke.namedNode(t.attributes.valuesNamespace+Ms()):l=ke.blankNode(Ms())}this.nodeId=l;const d=JSON.stringify([e,n]);if(n&&t.renderedNodes.has(d)){a=a||"Link";const f=document.createElement("label");f.innerText=a,f.classList.add("linked"),this.appendChild(f);const m=document.createElement("a");let v=n.termType==="BlankNode"?"_:"+n.value:n.value;m.innerText=v,m.classList.add("ref-link"),m.onclick=()=>{var b;(b=this.config.form.querySelector(`shacl-node[data-node-id='${v}']`))==null||b.scrollIntoView()},this.appendChild(m),this.style.flexDirection="row"}else{if(n&&t.renderedNodes.add(d),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,ea,null,null))this.owlImports.push(f.object);for(const f of t.store.getQuads(e,null,null,null))switch(f.predicate.id){case _n.id:this.addPropertyInstance(f.object,t,n);break;case`${ve}and`:const m=t.lists[f.object.value];if(m!=null&&m.length)for(const v of m)this.prepend(new Rt(v,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,ke.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=gp(s,t),this.appendChild(l)),o=l}else console.warn("ignoring unknown group reference",i[0],"existing groups:",t.groups)}const a=new In(e,this,t,n);a.childElementCount>0&&o.appendChild(a)}tryResolve(e,t,n){const o=n.lists[e.value];if(o!=null&&o.length){let i=!1;if(t){const a=cu(o,t,n);if(a.length){for(const s of a)this.addPropertyInstance(s,n,t);i=!0}}i||this.appendChild($d(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 Ro={},No,Cs;function da(){return Cs||(Cs=1,No=class Zd{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 Zd(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()]}}),No}var jo={},Ps;function _p(){return Ps||(Ps=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 y=new Array(arguments.length-1),u=0;u<y.length;u++)y[u]=arguments[u+1];var h={callback:E,args:y};return n[t]=h,a(t),t++}function l(E){delete n[E]}function d(E){var y=E.callback,u=E.args;switch(u.length){case 0:y();break;case 1:y(u[0]);break;case 2:y(u[0],u[1]);break;case 3:y(u[0],u[1],u[2]);break;default:y.apply(e,u);break}}function f(E){if(o)setTimeout(f,0,E);else{var y=n[E];if(y){o=!0;try{d(y)}finally{l(E),o=!1}}}}function m(){a=function(E){process.nextTick(function(){f(E)})}}function v(){if(r.postMessage&&!r.importScripts){var E=!0,y=r.onmessage;return r.onmessage=function(){E=!1},r.postMessage("","*"),r.onmessage=y,E}}function b(){var E="setImmediate$"+Math.random()+"$",y=function(u){u.source===r&&typeof u.data=="string"&&u.data.indexOf(E)===0&&f(+u.data.slice(E.length))};r.addEventListener?r.addEventListener("message",y,!1):r.attachEvent("onmessage",y),a=function(u){r.postMessage(E+u,"*")}}function g(){var E=new MessageChannel;E.port1.onmessage=function(y){var u=y.data;f(u)},a=function(y){E.port2.postMessage(y)}}function x(){var E=i.documentElement;a=function(y){var u=i.createElement("script");u.onreadystatechange=function(){f(y),u.onreadystatechange=null,E.removeChild(u),u=null},E.appendChild(u)}}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():v()?b():r.MessageChannel?g():i&&"onreadystatechange"in i.createElement("script")?x():_(),k.setImmediate=s,k.clearImmediate=l}(typeof self>"u"?typeof Zt>"u"?jo:Zt:self)),jo}/*!
282
+ `];pt([xe()],nr.prototype,"offset",2);pt([xe()],nr.prototype,"label",2);nr=pt([Ut("rokit-slider-knob")],nr);class _n extends HTMLElement{constructor(e,t,n,o){if(super(),this.template=new au(n.store.getQuads(e,null,null,null),t,n),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.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,lt));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)}if(n.editMode&&!t.linked&&(this.addEventListener("change",()=>{this.updateControls()}),this.updateControls()),this.template.extendedShapes.length&&this.template.config.attributes.collapse!==null&&(!this.template.maxCount||this.template.maxCount>1)&&(n.editMode&&!t.linked||this.childElementCount>0)){const i=this;i.classList.add("collapsible"),this.template.config.attributes.collapse==="open"&&i.classList.add("open");const a=document.createElement("h1");a.classList.add("activator"),a.innerText=this.template.label,a.addEventListener("click",()=>{i.classList.toggle("open")}),this.prepend(a)}}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=nu(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 ot)){const o=this.getRdfClassToLinkOrCreate();o&&this.template.config.store.countQuads(e,Be,o,lt)===0&&(n=!0)}t=hn(this.template,e,void 0,n||this.template.parent.linked)}return this.addButton?this.insertBefore(t,this.addButton):this.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)}toRDF(e,t){for(const n of this.querySelectorAll(":scope > .property-instance")){const o=Se.namedNode(n.dataset.path);if(n.firstChild instanceof It){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=pu(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(()=>{ru(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.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 It(i,r.config,e,r.parent,r.nodeKind,r.label,n))}else{const i=bu(r.path,r.datatype?.value);i?r.config.editMode&&!n?o=i.createEditor(r,e):o=i.createViewer(r,e):o=du(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 hp(r,e){const t=document.createElement("div");t.dataset.subject=r,t.classList.add("shacl-group");let n=r;const o=e.store.getQuads(r,null,null,null),i=Br(o,"label",Vi,e.languages);i&&(n=i);const a=Br(o,"order");a&&(t.style.order=a);const s=document.createElement("h1");return s.innerText=n,t.appendChild(s),e.attributes.collapse!==null&&(t.classList.add("collapsible"),e.attributes.collapse==="open"&&t.classList.add("open"),s.classList.add("activator"),s.addEventListener("click",()=>{t.classList.toggle("open")})),t}const Ce=[];for(let r=0;r<256;++r)Ce.push((r+256).toString(16).slice(1));function bp(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 mp=new Uint8Array(16);function gp(){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(mp)}const vp=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),As={randomUUID:vp};function Ls(r,e,t){if(As.randomUUID&&!r)return As.randomUUID();r=r||{};const n=r.random??r.rng?.()??gp();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,bp(n)}class It 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 g=document.createElement("a");let y=n.termType==="BlankNode"?"_:"+n.value:n.value;g.innerText=y,g.classList.add("ref-link"),g.onclick=()=>{this.config.form.querySelector(`shacl-node[data-node-id='${y}']`)?.scrollIntoView()},this.appendChild(g),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 g=t.lists[f.object.value];if(g?.length)for(const y of g)this.prepend(new It(y,t,n,this));else console.error("list not found:",f.object.value,"existing lists:",t.lists);break;case`${ve}node`:this.prepend(new It(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=hp(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=ou(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",It);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 yp(){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 g(){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 m(){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]"?g():y()?b():r.MessageChannel?m():i&&"onreadystatechange"in i.createElement("script")?x():_(),k.setImmediate=s,k.clearImmediate=l}(typeof self>"u"?typeof Kt>"u"?So:Kt:self)),So}/*!
283
283
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
284
- */var To,Bs;function Cn(){if(Bs)return To;Bs=1,_p();const r=self.crypto||self.msCrypto;return To=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}},To}/*!
284
+ */var Eo,Ds;function Dn(){if(Ds)return Eo;Ds=1,yp();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}/*!
285
285
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
286
- */var Ao,qs;function ec(){return qs||(qs=1,Ao=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],d=t.get(l);(o===null||l>o)&&(d&&s>0&&l>e[s-1]||!d&&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}}),Ao}/*!
286
+ */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}/*!
287
287
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
288
- */var Lo,Fs;function ca(){if(Fs)return Lo;Fs=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])(?:(?:["+_+".])*(?:["+_+"]))?)",y='"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"',u="(?:\\^\\^"+b+")",R="(?:"+y+"(?:"+u+"|"+"(?:@([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+"$")})(),Lo=class vn{static parse(g){const x=[],_={},k=g.split(s.eoln);let E=0;for(const y of k){if(E++,s.empty.test(y))continue;const u=y.match(s.quad);if(u===null)throw new Error("N-Quads parse error on line "+E+".");const h={subject:null,predicate:null,object:null,graph:null};if(u[1]!==void 0?h.subject={termType:n,value:u[1]}:h.subject={termType:o,value:u[2]},h.predicate={termType:n,value:u[3]},u[4]!==void 0?h.object={termType:n,value:u[4]}:u[5]!==void 0?h.object={termType:o,value:u[5]}:(h.object={termType:i,value:void 0,datatype:{termType:n}},u[7]!==void 0?h.object.datatype.value=u[7]:u[8]!==void 0?(h.object.datatype.value=e,h.object.language=u[8]):h.object.datatype.value=t,h.object.value=v(u[6])),u[9]!==void 0?h.graph={termType:n,value:u[9]}:u[10]!==void 0?h.graph={termType:o,value:u[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=vn.legacyDatasetToQuads(g));const x=[];for(const _ of g)x.push(vn.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+=` .
289
- `,E}static serializeQuad(g){return vn.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(y=>{const u={};for(const h in y){const R=y[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)),u[h]=D}k==="@default"?u.graph={termType:a,value:""}:u.graph={termType:k.startsWith("_:")?o:n,value:k},x.push(u)});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 d=/["\\\n\r]/g;function f(b){return b.replace(d,function(g){switch(g){case'"':return'\\"';case"\\":return"\\\\";case`
290
- `:return"\\n";case"\r":return"\\r"}})}const m=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function v(b){return b.replace(m,function(g,x,_,k){if(x)switch(x){case"t":return" ";case"b":return"\b";case"n":return`
291
- `;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 Lo}/*!
288
+ */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(m){const x=[],_={},k=m.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(m){Array.isArray(m)||(m=bn.legacyDatasetToQuads(m));const x=[];for(const _ of m)x.push(bn.serializeQuad(_));return x.sort().join("")}static serializeQuadComponents(m,x,_,k){let E="";return m.termType===n?E+=`<${m.value}>`:E+=`${m.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+=` .
289
+ `,E}static serializeQuad(m){return bn.serializeQuadComponents(m.subject,m.predicate,m.object,m.graph)}static legacyDatasetToQuads(m){const x=[],_={"blank node":o,IRI:n,literal:i};for(const k in m)m[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,m){return!(b.subject.termType===m.subject.termType&&b.object.termType===m.object.termType)||!(b.subject.value===m.subject.value&&b.predicate.value===m.predicate.value&&b.object.value===m.object.value)?!1:b.object.termType!==i?!0:b.object.datatype.termType===m.object.datatype.termType&&b.object.language===m.object.language&&b.object.datatype.value===m.object.datatype.value}const u=/["\\\n\r]/g;function f(b){return b.replace(u,function(m){switch(m){case'"':return'\\"';case"\\":return"\\\\";case`
290
+ `:return"\\n";case"\r":return"\\r"}})}const g=/(?:\\([tbnrf"'\\]))|(?:\\u([0-9A-Fa-f]{4}))|(?:\\U([0-9A-Fa-f]{8}))/g;function y(b){return b.replace(g,function(m,x,_,k){if(x)switch(x){case"t":return" ";case"b":return"\b";case"n":return`
291
+ `;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}/*!
292
292
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
293
- */var Oo,zs;function tc(){if(zs)return Oo;zs=1;const r=da(),e=Cn(),t=ec(),n=ca();Oo=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 d=0;for(const b of l)++d%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 v=[];for(const b of this.quads){const g=n.serializeQuadComponents(this._componentWithCanonicalId(b.subject),b.predicate,this._componentWithCanonicalId(b.object),this._componentWithCanonicalId(b.graph));v.push(g)}return v.sort(),v.join("")}async hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),d=l.quads;for(const m of d){const v={subject:null,predicate:m.predicate,object:null,graph:null};v.subject=this.modifyFirstDegreeComponent(a,m.subject,"subject"),v.object=this.modifyFirstDegreeComponent(a,m.object,"object"),v.graph=this.modifyFirstDegreeComponent(a,m.graph,"graph"),s.push(n.serializeQuad(v))}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,d){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(d),d!=="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 d=this.createMessageDigest(),f=await this.createHashToRelated(a,s),m=[...f.keys()].sort();for(const v of m){d.update(v);let b="",g;const x=new t(f.get(v));let _=0;for(;x.hasNext();){const k=x.next();++_%3===0&&await this._yield();let E=s.clone(),y="";const u=[];let h=!1;for(const R of k)if(this.canonicalIssuer.hasId(R)?y+=this.canonicalIssuer.getId(R):(E.hasId(R)||u.push(R),y+=E.getId(R)),b.length!==0&&y>b){h=!0;break}if(!h){for(const R of u){const D=await this.hashNDegreeQuads(R,E);if(y+=E.getId(R),y+=`<${D.hash}>`,E=D.issuer,b.length!==0&&y>b){h=!0;break}}h||(b.length===0||y<b)&&(b=y,g=E)}}d.update(b),s=g}return{hash:await d.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,d=this.blankNodeInfo.get(a).quads;let f=0;for(const m of d)++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),d=s.get(l);d?d.push(a):s.set(l,[a])}_addBlankNodeQuadInfo({quad:a,component:s}){if(s.termType!=="BlankNode")return;const l=s.value,d=this.blankNodeInfo.get(l);d?d.quads.add(a):this.blankNodeInfo.set(l,{quads:new Set([a]),hash:null})}async _addRelatedBlankNodeHash({quad:a,component:s,position:l,id:d,issuer:f,hashToRelated:m}){if(!(s.termType==="BlankNode"&&s.value!==d))return;const v=s.value,b=await this.hashRelatedBlankNode(v,a,f,l),g=m.get(b);g?g.push(v):m.set(b,[v])}_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 Oo}/*!
293
+ */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(),g=[];for(const b of f){const m=s.get(b);if(m.length>1){g.push(m);continue}const x=m[0];this.canonicalIssuer.getId(x)}for(const b of g){const m=[];for(const x of b){if(this.canonicalIssuer.hasId(x))continue;const _=new r("_:b");_.getId(x);const k=await this.hashNDegreeQuads(x,_);m.push(k)}m.sort(o);for(const x of m){const _=x.issuer.getOldIds();for(const k of _)this.canonicalIssuer.getId(k)}}const y=[];for(const b of this.quads){const m=n.serializeQuadComponents(this._componentWithCanonicalId(b.subject),b.predicate,this._componentWithCanonicalId(b.object),this._componentWithCanonicalId(b.graph));y.push(m)}return y.sort(),y.join("")}async hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),u=l.quads;for(const g of u){const y={subject:null,predicate:g.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(a,g.subject,"subject"),y.object=this.modifyFirstDegreeComponent(a,g.object,"object"),y.graph=this.modifyFirstDegreeComponent(a,g.graph,"graph"),s.push(n.serializeQuad(y))}s.sort();const f=this.createMessageDigest();for(const g of s)f.update(g);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 g=this.createMessageDigest();return g.update(u),u!=="g"&&g.update(this.getRelatedPredicate(s)),g.update(f),g.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),g=[...f.keys()].sort();for(const y of g){u.update(y);let b="",m;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,m=E)}}u.update(b),s=m}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 g of u)++f%100===0&&await this._yield(),await Promise.all([this._addRelatedBlankNodeHash({quad:g,component:g.subject,position:"s",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:g,component:g.object,position:"o",id:a,issuer:s,hashToRelated:l}),this._addRelatedBlankNodeHash({quad:g,component:g.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:g}){if(!(s.termType==="BlankNode"&&s.value!==u))return;const y=s.value,b=await this.hashRelatedBlankNode(y,a,f,l),m=g.get(b);m?m.push(y):g.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}/*!
294
294
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
295
- */var $o,Us;function kp(){if(Us)return $o;Us=1;const r=Cn(),e=tc();return $o=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 d,f;if(l.subject.termType==="BlankNode"&&l.subject.value!==n)f=l.subject.value,d="p";else if(l.object.termType==="BlankNode"&&l.object.value!==n)f=l.object.value,d="r";else continue;++s%100===0&&await this._yield();const m=await this.hashRelatedBlankNode(f,l,o,d),v=i.get(m);v?v.push(f):i.set(m,[f])}return i}},$o}/*!
295
+ */var jo,Bs;function wp(){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 g=await this.hashRelatedBlankNode(f,l,o,u),y=i.get(g);y?y.push(f):i.set(g,[f])}return i}},jo}/*!
296
296
  * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
297
- */var Do,Hs;function rc(){if(Hs)return Do;Hs=1;const r=da(),e=Cn(),t=ec(),n=ca();Do=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 v of a)this._addBlankNodeQuadInfo({quad:v,component:v.subject}),this._addBlankNodeQuadInfo({quad:v,component:v.object}),this._addBlankNodeQuadInfo({quad:v,component:v.graph});const s=new Map,l=[...this.blankNodeInfo.keys()];for(const v of l)this._hashAndTrackBlankNode({id:v,hashToBlankNodes:s});const d=[...s.keys()].sort(),f=[];for(const v of d){const b=s.get(v);if(b.length>1){f.push(b);continue}const g=b[0];this.canonicalIssuer.getId(g)}for(const v of f){const b=[];for(const g of v){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 v of this.quads){const b=n.serializeQuadComponents(this._componentWithCanonicalId({component:v.subject}),v.predicate,this._componentWithCanonicalId({component:v.object}),this._componentWithCanonicalId({component:v.graph}));m.push(b)}return m.sort(),m.join("")}hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),d=l.quads;for(const m of d){const v={subject:null,predicate:m.predicate,object:null,graph:null};v.subject=this.modifyFirstDegreeComponent(a,m.subject,"subject"),v.object=this.modifyFirstDegreeComponent(a,m.object,"object"),v.graph=this.modifyFirstDegreeComponent(a,m.graph,"graph"),s.push(n.serializeQuad(v))}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,d){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(d),d!=="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 d=this.createMessageDigest(),f=this.createHashToRelated(a,s),m=[...f.keys()].sort();for(const v of m){d.update(v);let b="",g;const x=new t(f.get(v));for(;x.hasNext();){const _=x.next();let k=s.clone(),E="";const y=[];let u=!1;for(const h of _)if(this.canonicalIssuer.hasId(h)?E+=this.canonicalIssuer.getId(h):(k.hasId(h)||y.push(h),E+=k.getId(h)),b.length!==0&&E>b){u=!0;break}if(!u){for(const h of y){const R=this.hashNDegreeQuads(h,k);if(E+=k.getId(h),E+=`<${R.hash}>`,k=R.issuer,b.length!==0&&E>b){u=!0;break}}u||(b.length===0||E<b)&&(b=E,g=k)}}d.update(b),s=g}return{hash:d.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,d=this.blankNodeInfo.get(a).quads;for(const f of d)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),d=s.get(l);d?d.push(a):s.set(l,[a])}_addBlankNodeQuadInfo({quad:a,component:s}){if(s.termType!=="BlankNode")return;const l=s.value,d=this.blankNodeInfo.get(l);d?d.quads.add(a):this.blankNodeInfo.set(l,{quads:new Set([a]),hash:null})}_addRelatedBlankNodeHash({quad:a,component:s,position:l,id:d,issuer:f,hashToRelated:m}){if(!(s.termType==="BlankNode"&&s.value!==d))return;const v=s.value,b=this.hashRelatedBlankNode(v,a,f,l),g=m.get(b);g?g.push(v):m.set(b,[v])}_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 Do}/*!
297
+ */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 m=b[0];this.canonicalIssuer.getId(m)}for(const y of f){const b=[];for(const m of y){if(this.canonicalIssuer.hasId(m))continue;const x=new r("_:b");x.getId(m);const _=this.hashNDegreeQuads(m,x);b.push(_)}b.sort(o);for(const m of b){const x=m.issuer.getOldIds();for(const _ of x)this.canonicalIssuer.getId(_)}}const g=[];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}));g.push(b)}return g.sort(),g.join("")}hashFirstDegreeQuads(a){const s=[],l=this.blankNodeInfo.get(a),u=l.quads;for(const g of u){const y={subject:null,predicate:g.predicate,object:null,graph:null};y.subject=this.modifyFirstDegreeComponent(a,g.subject,"subject"),y.object=this.modifyFirstDegreeComponent(a,g.object,"object"),y.graph=this.modifyFirstDegreeComponent(a,g.graph,"graph"),s.push(n.serializeQuad(y))}s.sort();const f=this.createMessageDigest();for(const g of s)f.update(g);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 g=this.createMessageDigest();return g.update(u),u!=="g"&&g.update(this.getRelatedPredicate(s)),g.update(f),g.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),g=[...f.keys()].sort();for(const y of g){u.update(y);let b="",m;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,m=k)}}u.update(b),s=m}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:g}){if(!(s.termType==="BlankNode"&&s.value!==u))return;const y=s.value,b=this.hashRelatedBlankNode(y,a,f,l),m=g.get(b);m?m.push(y):g.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}/*!
298
298
  * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
299
- */var Mo,Gs;function Sp(){if(Gs)return Mo;Gs=1;const r=Cn(),e=rc();return Mo=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,d;if(s.subject.termType==="BlankNode"&&s.subject.value!==n)d=s.subject.value,l="p";else if(s.object.termType==="BlankNode"&&s.object.value!==n)d=s.object.value,l="r";else continue;const f=this.hashRelatedBlankNode(d,s,o,l),m=i.get(f);m?m.push(d):i.set(f,[d])}return i}},Mo}const Ep={},Ip=Object.freeze(Object.defineProperty({__proto__:null,default:Ep},Symbol.toStringTag,{value:"Module"})),Rp=Ic(Ip);var Vs;function Np(){return Vs||(Vs=1,function(r){const e=tc(),t=kp(),n=rc(),o=Sp();let i;try{i=Rp}catch{}function a(s){return Array.isArray(s)?s:r.NQuads.legacyDatasetToQuads(s)}r.NQuads=ca(),r.IdentifierIssuer=da(),r._rdfCanonizeNative=function(s){return s&&(i=s),i},r.canonize=async function(s,l){const d=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(d,l,(v,b)=>v?m(v):f(b)))}if(l.algorithm==="URDNA2015")return new e(l).main(d);if(l.algorithm==="URGNA2012"){if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new t(l).main(d)}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 d=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(d,l)}if(l.algorithm==="URDNA2015")return new n(l).main(d);if(l.algorithm==="URGNA2012"){if(l.createMessageDigest)throw new Error('"createMessageDigest" cannot be used with "URGNA2012".');return new o(l).main(d)}throw"algorithm"in l?new Error("Invalid RDF Dataset Canonicalization algorithm: "+l.algorithm):new Error("No RDF Dataset Canonicalization algorithm specified.")}}(Ro)),Ro}var Co,Ws;function ua(){return Ws||(Ws=1,Co=Np()),Co}var Po,Js;function Xe(){if(Js)return Po;Js=1;const r={};return Po=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",Po}var Bo,Qs;function xt(){if(Qs)return Bo;Qs=1;const r=Xe(),e={};return Bo=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},Bo}var qo,Xs;function et(){return Xs||(Xs=1,qo=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}}),qo}var Fo,Ks;function Ye(){if(Ks)return Fo;Ks=1;const r=xt(),e=Xe(),t=ua().IdentifierIssuer,n=et(),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]+$/,d={headers:{accept:"application/ld+json, application/json"}},f={};Fo=f,f.IdentifierIssuer=t,f.REGEX_BCP47=o,f.REGEX_KEYWORD=l,f.clone=function(v){if(v&&typeof v=="object"){let b;if(e.isArray(v)){b=[];for(let g=0;g<v.length;++g)b[g]=f.clone(v[g])}else if(v instanceof Map){b=new Map;for(const[g,x]of v)b.set(g,f.clone(x))}else if(v instanceof Set){b=new Set;for(const g of v)b.add(f.clone(g))}else if(e.isObject(v)){b={};for(const g in v)b[g]=f.clone(v[g])}else b=v.toString();return b}return v},f.asArray=function(v){return Array.isArray(v)?v:[v]},f.buildHeaders=(v={})=>{if(Object.keys(v).some(g=>g.toLowerCase()==="accept"))throw new RangeError('Accept header may not be specified; only "'+d.headers.accept+'" is supported.');return Object.assign({Accept:d.headers.accept},v)},f.parseLinkHeader=v=>{const b={},g=v.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 y=k.rel||"";Array.isArray(b[y])?b[y].push(k):b.hasOwnProperty(y)?b[y]=[b[y],k]:b[y]=k}return b},f.validateTypeValue=(v,b)=>{if(!e.isString(v)&&!(e.isArray(v)&&v.every(g=>e.isString(g)))){if(b&&e.isObject(v))switch(Object.keys(v).length){case 0:return;case 1:if("@default"in v&&f.asArray(v["@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:v})}},f.hasProperty=(v,b)=>{if(v.hasOwnProperty(b)){const g=v[b];return!e.isArray(g)||g.length>0}return!1},f.hasValue=(v,b,g)=>{if(f.hasProperty(v,b)){let x=v[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=(v,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)v[b]=g;else if(e.isArray(g)){g.length===0&&x.propertyIsArray&&!v.hasOwnProperty(b)&&(v[b]=[]),x.prependValue&&(g=g.concat(v[b]),v[b]=[]);for(let _=0;_<g.length;++_)f.addValue(v,b,g[_],x)}else if(v.hasOwnProperty(b)){const _=!x.allowDuplicate&&f.hasValue(v,b,g);!e.isArray(v[b])&&(!_||x.propertyIsArray)&&(v[b]=[v[b]]),_||(x.prependValue?v[b].unshift(g):v[b].push(g))}else v[b]=x.propertyIsArray?[g]:g},f.getValues=(v,b)=>[].concat(v[b]||[]),f.removeProperty=(v,b)=>{delete v[b]},f.removeValue=(v,b,g,x)=>{x=x||{},"propertyIsArray"in x||(x.propertyIsArray=!1);const _=f.getValues(v,b).filter(k=>!f.compareValues(k,g));_.length===0?f.removeProperty(v,b):_.length===1&&!x.propertyIsArray?v[b]=_[0]:v[b]=_},f.relabelBlankNodes=(v,b)=>{b=b||{};const g=b.issuer||new t("_:b");return m(g,v)},f.compareValues=(v,b)=>v===b||r.isValue(v)&&r.isValue(b)&&v["@value"]===b["@value"]&&v["@type"]===b["@type"]&&v["@language"]===b["@language"]&&v["@index"]===b["@index"]?!0:e.isObject(v)&&"@id"in v&&e.isObject(b)&&"@id"in b?v["@id"]===b["@id"]:!1,f.compareShortestLeast=(v,b)=>v.length<b.length?-1:b.length<v.length?1:v===b?0:v<b?-1:1;function m(v,b){if(e.isArray(b))for(let g=0;g<b.length;++g)b[g]=m(v,b[g]);else if(r.isList(b))b["@list"]=m(v,b["@list"]);else if(e.isObject(b)){r.isBlankNode(b)&&(b["@id"]=v.getId(b["@id"]));const g=Object.keys(b).sort();for(let x=0;x<g.length;++x){const _=g[x];_!=="@id"&&(b[_]=m(v,b[_]))}}return b}return Fo}var zo,Ys;function pa(){if(Ys)return zo;Ys=1;const r="http://www.w3.org/1999/02/22-rdf-syntax-ns#",e="http://www.w3.org/2001/XMLSchema#";return zo={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"},zo}var Uo,Zs;function nc(){return Zs||(Zs=1,Uo=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]}}}),Uo}var Ho,el;function jt(){if(el)return Ho;el=1;const r=Xe(),e={};Ho=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("/"),d=a.fragment||a.query?0:1;for(;s.length>0&&l.length>d&&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),Ho}var Go,tl;function jp(){if(tl)return Go;tl=1;const{parseLinkHeader:r,buildHeaders:e}=Ye(),{LINK_HEADER_CONTEXT:t}=pa(),n=et(),o=nc(),{prependBase:i}=jt(),a=/(^|(\r\n))link:/i;Go=({secure:l,headers:d={},xhr:f}={headers:{}})=>{return d=e(d),new o().wrapLoader(v);async function v(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,d)}catch(y){throw new n("URL could not be dereferenced, an error occurred.","jsonld.LoadDocumentError",{code:"loading document failed",url:b,cause:y})}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 y=r(E),u=y[t];if(Array.isArray(u))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});u&&(x.contextUrl=u.target),_=y.alternate,_&&_.type=="application/ld+json"&&!(k||"").match(/^application\/(\w*\+)?json$/)&&(x=await v(i(b,_.target)))}return x}};function s(l,d,f){l=l||XMLHttpRequest;const m=new l;return new Promise((v,b)=>{m.onload=()=>v(m),m.onerror=g=>b(g),m.open("GET",d,!0);for(const g in f)m.setRequestHeader(g,f[g]);m.send()})}return Go}var Vo,rl;function Tp(){if(rl)return Vo;rl=1;const r=jp(),e={};return Vo=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})},Vo}var Wo,nl;function Ap(){return nl||(nl=1,Wo=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),Wo}var Jo,ol;function Lp(){if(ol)return Jo;ol=1,Jo=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(d){a.push(d)});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 d=0;l!==null;d++)s=i(s,l.value,d),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 d=this.length-1;l!==null;d--)s=i(s,l.value,d),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,d=this.head;d!==null&&l<i;l++)d=d.next;for(;d!==null&&l<a;l++,d=d.next)s.push(d.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,d=this.tail;d!==null&&l>a;l--)d=d.prev;for(;d!==null&&l>i;l--,d=d.prev)s.push(d.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,d=this.head;d!==null&&l<i;l++)d=d.next;for(var f=[],l=0;d&&l<a;l++)f.push(d.value),d=this.removeNode(d);d===null&&(d=this.tail),d!==this.head&&d!==this.tail&&(d=d.prev);for(var l=0;l<s.length;l++)d=e(this,d,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{Ap()(r)}catch{}return Jo}var Qo,il;function oc(){if(il)return Qo;il=1;const r=Lp(),e=Symbol("max"),t=Symbol("length"),n=Symbol("lengthCalculator"),o=Symbol("allowStale"),i=Symbol("maxAge"),a=Symbol("dispose"),s=Symbol("noDisposeOnSet"),l=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),m=()=>1;class v{constructor(u){if(typeof u=="number"&&(u={max:u}),u||(u={}),u.max&&(typeof u.max!="number"||u.max<0))throw new TypeError("max must be a non-negative number");this[e]=u.max||1/0;const h=u.length||m;if(this[n]=typeof h!="function"?m:h,this[o]=u.stale||!1,u.maxAge&&typeof u.maxAge!="number")throw new TypeError("maxAge must be a number");this[i]=u.maxAge||0,this[a]=u.dispose,this[s]=u.noDisposeOnSet||!1,this[f]=u.updateAgeOnGet||!1,this.reset()}set max(u){if(typeof u!="number"||u<0)throw new TypeError("max must be a non-negative number");this[e]=u||1/0,x(this)}get max(){return this[e]}set allowStale(u){this[o]=!!u}get allowStale(){return this[o]}set maxAge(u){if(typeof u!="number")throw new TypeError("maxAge must be a non-negative number");this[i]=u,x(this)}get maxAge(){return this[i]}set lengthCalculator(u){typeof u!="function"&&(u=m),u!==this[n]&&(this[n]=u,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(u,h){h=h||this;for(let R=this[l].tail;R!==null;){const D=R.prev;E(this,u,R,h),R=D}}forEach(u,h){h=h||this;for(let R=this[l].head;R!==null;){const D=R.next;E(this,u,R,h),R=D}}keys(){return this[l].toArray().map(u=>u.key)}values(){return this[l].toArray().map(u=>u.value)}reset(){this[a]&&this[l]&&this[l].length&&this[l].forEach(u=>this[a](u.key,u.value)),this[d]=new Map,this[l]=new r,this[t]=0}dump(){return this[l].map(u=>g(this,u)?!1:{k:u.key,v:u.value,e:u.now+(u.maxAge||0)}).toArray().filter(u=>u)}dumpLru(){return this[l]}set(u,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,u);if(this[d].has(u)){if(N>this[e])return _(this,this[d].get(u)),!1;const M=this[d].get(u).value;return this[a]&&(this[s]||this[a](u,M.value)),M.now=D,M.maxAge=R,M.value=h,this[t]+=N-M.length,M.length=N,this.get(u),x(this),!0}const B=new k(u,h,N,D,R);return B.length>this[e]?(this[a]&&this[a](u,h),!1):(this[t]+=B.length,this[l].unshift(B),this[d].set(u,this[l].head),x(this),!0)}has(u){if(!this[d].has(u))return!1;const h=this[d].get(u).value;return!g(this,h)}get(u){return b(this,u,!0)}peek(u){return b(this,u,!1)}pop(){const u=this[l].tail;return u?(_(this,u),u.value):null}del(u){_(this,this[d].get(u))}load(u){this.reset();const h=Date.now();for(let R=u.length-1;R>=0;R--){const D=u[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[d].forEach((u,h)=>b(this,h,!1))}}const b=(y,u,h)=>{const R=y[d].get(u);if(R){const D=R.value;if(g(y,D)){if(_(y,R),!y[o])return}else h&&(y[f]&&(R.value.now=Date.now()),y[l].unshiftNode(R));return D.value}},g=(y,u)=>{if(!u||!u.maxAge&&!y[i])return!1;const h=Date.now()-u.now;return u.maxAge?h>u.maxAge:y[i]&&h>y[i]},x=y=>{if(y[t]>y[e])for(let u=y[l].tail;y[t]>y[e]&&u!==null;){const h=u.prev;_(y,u),u=h}},_=(y,u)=>{if(u){const h=u.value;y[a]&&y[a](h.key,h.value),y[t]-=h.length,y[d].delete(h.key),y[l].removeNode(u)}};class k{constructor(u,h,R,D,N){this.key=u,this.value=h,this.length=R,this.now=D,this.maxAge=N||0}}const E=(y,u,h,R)=>{let D=h.value;g(y,D)&&(_(y,h),y[o]||(D=void 0)),D&&u.call(R,D.value,D.key,y)};return Qo=v,Qo}var Xo,al;function Op(){if(al)return Xo;al=1;const r=oc(),e=10;return Xo=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)}},Xo}var Ko,sl;function $p(){if(sl)return Ko;sl=1;const{isArray:r,isObject:e,isString:t}=Xe(),{asArray:n}=Ye(),{prependBase:o}=jt(),i=et(),a=Op(),s=10;Ko=class{constructor({sharedCache:m}){this.perOpCache=new Map,this.sharedCache=m}async resolve({activeCtx:m,context:v,documentLoader:b,base:g,cycles:x=new Set}){v&&e(v)&&v["@context"]&&(v=v["@context"]),v=n(v);const _=[];for(const k of v){if(t(k)){let u=this._get(k);u||(u=await this._resolveRemoteContext({activeCtx:m,url:k,documentLoader:b,base:g,cycles:x})),r(u)?_.push(...u):_.push(u);continue}if(k===null){_.push(new a({document:null}));continue}e(k)||l(v);const E=JSON.stringify(k);let y=this._get(E);y||(y=new a({document:k}),this._cacheResolvedContext({key:E,resolved:y,tag:"static"})),_.push(y)}return _}_get(m){let v=this.perOpCache.get(m);if(!v){const b=this.sharedCache.get(m);b&&(v=b.get("static"),v&&this.perOpCache.set(m,v))}return v}_cacheResolvedContext({key:m,resolved:v,tag:b}){if(this.perOpCache.set(m,v),b!==void 0){let g=this.sharedCache.get(m);g||(g=new Map,this.sharedCache.set(m,g)),g.set(b,v)}return v}async _resolveRemoteContext({activeCtx:m,url:v,documentLoader:b,base:g,cycles:x}){v=o(g,v);const{context:_,remoteDoc:k}=await this._fetchContext({activeCtx:m,url:v,documentLoader:b,cycles:x});g=k.documentUrl||v,d({context:_,base:g});const E=await this.resolve({activeCtx:m,context:_,documentLoader:b,base:g,cycles:x});return this._cacheResolvedContext({key:v,resolved:E,tag:k.tag}),E}async _fetchContext({activeCtx:m,url:v,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(v))throw new i("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:m.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:v});g.add(v);let x,_;try{_=await b(v),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: "${v}".`,"jsonld.InvalidUrl",{code:"loading remote context failed",url:v,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: "${v}".`,"jsonld.InvalidUrl",{code:"invalid remote context",url:v});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 d({context:f,base:m}){if(!f)return;const v=f["@context"];if(t(v)){f["@context"]=o(m,v);return}if(r(v)){for(let b=0;b<v.length;++b){const g=v[b];if(t(g)){v[b]=o(m,g);continue}e(g)&&d({context:{"@context":g},base:m})}return}if(e(v))for(const b in v)d({context:v[b],base:m})}return Ko}var Yo,ll;function Dp(){return ll||(ll=1,Yo=ua().NQuads),Yo}var Zo,dl;function Zr(){if(dl)return Zo;dl=1;const r=et(),{isArray:e}=Xe(),{asArray:t}=Ye(),n={};Zo=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 d=0;l&&d<s.length;++d){l=!1;const f=s[d];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},Zo}var ei,cl;function zt(){if(cl)return ei;cl=1;const r=Ye(),e=et(),{isArray:t,isObject:n,isString:o,isUndefined:i}=Xe(),{isAbsolute:a,isRelative:s,prependBase:l}=jt(),{handleEvent:d}=Zr(),{REGEX_BCP47:f,REGEX_KEYWORD:m,asArray:v,compareShortestLeast:b}=Ye(),g=new Map,x=1e4,_={};ei=_,_.process=async({activeCtx:y,localCtx:u,options:h,propagate:R=!0,overrideProtected:D=!1,cycles:N=new Set})=>{if(n(u)&&"@context"in u&&t(u["@context"])&&(u=u["@context"]),v(u).length===0)return y;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:y,context:u,documentLoader:h.documentLoader,base:h.base});n(j[0].document)&&typeof j[0].document["@propagate"]=="boolean"&&(R=j[0].document["@propagate"]);let A=y;!R&&!A.previousContext&&(A=A.clone(),A.previousContext=y);for(const Y of j){let{document:T}=Y;if(y=A,T===null){if(!D&&Object.keys(y.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=y=_.getInitialContext(h).clone();continue}const ee=Y.getProcessed(y);if(ee){if(q.eventHandler)for(const K of ee.events)d({event:K,options:q});A=y=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(y.processingMode&&y.processingMode==="json-ld-1.0")throw new e("@version: "+T["@version"]+" not compatible with "+y.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||y.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&&d({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&&d({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(y.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @direction not compatible with "+y.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(y.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @propagate not compatible with "+y.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:u});C.set("@propagate",!0)}if("@import"in T){const K=T["@import"];if(y.processingMode==="json-ld-1.0")throw new e("Invalid JSON-LD syntax; @import not compatible with "+y.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:u});const w=await h.contextResolver.resolve({activeCtx:y,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:u});const z=w[0].getProcessed(y);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:u});for(const W in Q)T.hasOwnProperty(W)||(T[W]=Q[W]);w[0].setProcessed(y,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(y,{context:A,events:I})}return A},_.createTermDefinition=({activeCtx:y,localCtx:u,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:u,term:h})}R.set(h,!1);let B;if(u.hasOwnProperty(h)&&(B=u[h]),h==="@type"&&n(B)&&(B["@container"]||"@set")==="@set"&&_.processingMode(y,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:u,term:h})}else{if(_.isKeyword(h))throw new e("Invalid JSON-LD syntax; keywords cannot be overridden.","jsonld.SyntaxError",{code:"keyword redefinition",context:u,term:h});if(h.match(m)){D.eventHandler&&d({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:u})}const I=y.mappings.get(h);y.mappings.has(h)&&y.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:u});const q={};y.mappings.set(h,q),q.reverse=!1;const j=["@container","@id","@language","@reverse","@type"];_.processingMode(y,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:u});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:u});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:u});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:u});if(T.match(m)){D.eventHandler&&d({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?y.mappings.set(h,I):y.mappings.delete(h);return}const ee=k(y,T,{vocab:!0,base:!1},u,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:u});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:u});if(T===null)q["@id"]=null;else if(!_.isKeyword(T)&&T.match(m)){D.eventHandler&&d({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?y.mappings.set(h,I):y.mappings.delete(h);return}else if(T!==h){if(T=k(y,T,{vocab:!0,base:!1},u,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:u});if(h.match(/(?::[^:])|\//)){const ee=new Map(R).set(h,!0);if(k(y,h,{vocab:!0,base:!1},u,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:u})}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(u.hasOwnProperty(T)&&_.createTermDefinition({activeCtx:y,localCtx:u,term:T,defined:R,options:D}),y.mappings.has(T)){const ee=h.substr(A+1);q["@id"]=y.mappings.get(T)["@id"]+ee}else q["@id"]=h}else if(h==="@type")q["@id"]=h;else{if(!("@vocab"in y))throw new e("Invalid JSON-LD syntax; @context terms must define an @id.","jsonld.SyntaxError",{code:"invalid IRI mapping",context:u,term:h});q["@id"]=y["@vocab"]+h}if((B["@protected"]===!0||R.get("@protected")===!0&&B["@protected"]!==!1)&&(y.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:u});if(T==="@json"||T==="@none"){if(_.processingMode(y,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:u})}else if(T!=="@id"&&T!=="@vocab"){if(T=k(y,T,{vocab:!0,base:!1},u,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:u});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:u})}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(y,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:u})}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:u})}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:u})}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:u});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:u});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:u});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:u});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:u});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:u});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:u});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:u})}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:u});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:u});q["@nest"]=T}// disallow aliasing @context and @preserve
300
- 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:u});if(I&&I.protected&&!N&&(y.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:u,term:h})},_.expandIri=(y,u,h,R)=>k(y,u,h,void 0,void 0,R);function k(y,u,h,R,D,N){if(u===null||!o(u)||_.isKeyword(u))return u;if(u.match(m))return null;if(R&&R.hasOwnProperty(u)&&D.get(u)!==!0&&_.createTermDefinition({activeCtx:y,localCtx:R,term:u,defined:D,options:N}),h=h||{},h.vocab){const I=y.mappings.get(u);if(I===null)return null;if(n(I)&&"@id"in I)return I["@id"]}const B=u.indexOf(":");if(B>0){const I=u.substr(0,B),M=u.substr(B+1);if(I==="_"||M.indexOf("//")===0)return u;R&&R.hasOwnProperty(I)&&_.createTermDefinition({activeCtx:y,localCtx:R,term:I,defined:D,options:N});const q=y.mappings.get(I);if(q&&q._prefix)return q["@id"]+M;if(a(u))return u}if(h.vocab&&"@vocab"in y)u=y["@vocab"]+u;else if(h.base){let I,M;"@base"in y?y["@base"]?(M=l(N.base,y["@base"]),I=l(M,u)):(M=y["@base"],I=u):(M=N.base,I=l(N.base,u)),u=I}return u}_.getInitialContext=y=>{const u=JSON.stringify({processingMode:y.processingMode}),h=g.get(u);if(h)return h;const R={processingMode:y.processingMode,mappings:new Map,inverse:null,getInverse:D,clone:I,revertToPreviousContext:M,protected:{}};return g.size===x&&g.clear(),g.set(u,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=v(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=(y,u,h)=>{if(u===null)return h==="@context"?void 0:null;if(y.mappings.has(u)){const R=y.mappings.get(u);if(i(h))return R;if(R.hasOwnProperty(h))return R[h]}if(h==="@language"&&h in y||h==="@direction"&&h in y)return y[h];if(h!=="@context")return null},_.processingMode=(y,u)=>u.toString()>="1.1"?!y.processingMode||y.processingMode>="json-ld-"+u.toString():y.processingMode==="json-ld-1.0",_.isKeyword=y=>{if(!o(y)||y[0]!=="@")return!1;switch(y){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(y,u){if(!(y&&typeof y=="object")||!(u&&typeof u=="object"))return y===u;const h=Array.isArray(y);if(h!==Array.isArray(u))return!1;if(h){if(y.length!==u.length)return!1;for(let N=0;N<y.length;++N)if(!E(y[N],u[N]))return!1;return!0}const R=Object.keys(y),D=Object.keys(u);if(R.length!==D.length)return!1;for(const N in y){let B=y[N],I=u[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 ei}var ti,ul;function Mp(){if(ul)return ti;ul=1;const r=et(),{isArray:e,isObject:t,isEmptyObject:n,isString:o,isUndefined:i}=Xe(),{isList:a,isValue:s,isGraph:l,isSubject:d}=xt(),{expandIri:f,getContextValue:m,isKeyword:v,process:b,processingMode:g}=zt(),{isAbsolute:x}=jt(),{REGEX_BCP47:_,REGEX_KEYWORD:k,addValue:E,asArray:y,getValues:u,validateTypeValue:h}=Ye(),{handleEvent:R}=Zr(),D={};ti=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?[]:y(U["@value"]),Z=u(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)||v(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(v(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",y(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}),y(G).map(re=>f(z,re,{base:!0,vocab:!0},{...C,typeExpansion:!0}))]))),h(V,C.isFrame),E(ee,"@type",y(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=y(await D.expand({activeCtx:j,activeProperty:A,element:V,options:C}));if(!L.every(G=>d(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=y(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=y(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":y(F)}),pe.includes("@graph")&&!pe.some(L=>L==="@id"||L==="@index")){if(F=y(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":y(L)}))}if(te.mappings.has(H)&&te.mappings.get(H).reverse){const L=ee["@reverse"]=ee["@reverse"]||{};F=y(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(v(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 ti}var ri,pl;function Pn(){if(pl)return ri;pl=1;const{isKeyword:r}=zt(),e=xt(),t=Xe(),n=Ye(),o=et(),i={};return ri=i,i.createMergedNodeMap=(a,s)=>{s=s||{};const l=s.issuer||new n.IdentifierIssuer("_:b"),d={"@default":{}};return i.createNodeMap(a,d,"@default",l),i.mergeNodeMaps(d)},i.createNodeMap=(a,s,l,d,f,m)=>{if(t.isArray(a)){for(const x of a)i.createNodeMap(x,s,l,d,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=d.getId(x))}m&&m.push(a);return}else if(m&&e.isList(a)){const x=[];i.createNodeMap(a["@list"],s,l,d,f,x),m.push({"@list":x});return}if("@type"in a){const x=a["@type"];for(const _ of x)_.indexOf("_:")===0&&d.getId(_)}t.isUndefined(f)&&(f=e.isBlankNode(a)?d.getId(a["@id"]):a["@id"]),m&&m.push({"@id":f});const v=s[l],b=v[f]=v[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 y in E){const u=E[y];for(const h of u){let R=h["@id"];e.isBlankNode(h)&&(R=d.getId(R)),i.createNodeMap(h,s,l,d,R),n.addValue(v[R],y,k,{propertyIsArray:!0,allowDuplicate:!1})}}continue}if(x==="@graph"){f in s||(s[f]={}),i.createNodeMap(a[x],s,f,d);continue}if(x==="@included"){i.createNodeMap(a[x],s,l,d);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=d.getId(x)),_.length===0){n.addValue(b,x,[],{propertyIsArray:!0});continue}for(let k of _)if(x==="@type"&&(k=k.indexOf("_:")===0?d.getId(k):k),e.isSubject(k)||e.isSubjectReference(k)){if("@id"in k&&!k["@id"])continue;const E=e.isBlankNode(k)?d.getId(k["@id"]):k["@id"];n.addValue(b,x,{"@id":E},{propertyIsArray:!0,allowDuplicate:!1}),i.createNodeMap(k,s,l,d,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,d,f,E),k={"@list":E},n.addValue(b,x,k,{propertyIsArray:!0,allowDuplicate:!1})}else i.createNodeMap(k,s,l,d,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 d of Object.keys(a[l]).sort()){const f=a[l][d];d in s||(s[d]={"@id":d});const m=s[d];for(const v of Object.keys(f).sort())if(r(v)&&v!=="@type")m[v]=n.clone(f[v]);else for(const b of f[v])n.addValue(m,v,n.clone(b),{propertyIsArray:!0,allowDuplicate:!1})}return s},i.mergeNodeMaps=a=>{const s=a["@default"],l=Object.keys(a).sort();for(const d of l){if(d==="@default")continue;const f=a[d];let m=s[d];m?"@graph"in m||(m["@graph"]=[]):s[d]=m={"@id":d,"@graph":[]};const v=m["@graph"];for(const b of Object.keys(f).sort()){const g=f[b];e.isSubjectReference(g)||v.push(g)}}return s},ri}var ni,fl;function Cp(){if(fl)return ni;fl=1;const{isSubjectReference:r}=xt(),{createMergedNodeMap:e}=Pn(),t={};return ni=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},ni}var oi,hl;function Pp(){if(hl)return oi;hl=1;const r=et(),e=xt(),t=Xe(),{REGEX_BCP47:n,addValue:o}=Ye(),{handleEvent:i}=Zr(),{RDF_LIST:a,RDF_FIRST:s,RDF_REST:l,RDF_NIL:d,RDF_TYPE:f,RDF_JSON_LITERAL:m,XSD_BOOLEAN:v,XSD_DOUBLE:b,XSD_INTEGER:g,XSD_STRING:x}=pa(),_={};oi=_,_.fromRDF=async(E,y)=>{const{useRdfType:u=!1,useNativeTypes:h=!1,rdfDirection:R=null}=y,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&&!u&&K){o(C,"@type",ee.value,{propertyIsArray:!0});continue}const w=k(ee,h,R,y);if(o(C,T,w,{propertyIsArray:!0}),K)if(ee.value===d){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(!(d in j))continue;const A=j[d];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,y,u,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(y){if(D===v)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"]));[v,g,b,x].includes(D)||(R["@type"]=D)}else if(u==="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 oi}var ii,bl;function Bp(){return bl||(bl=1,ii=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])},"")+"}"}),ii}var ai,ml;function qp(){if(ml)return ai;ml=1;const{createNodeMap:r}=Pn(),{isKeyword:e}=zt(),t=xt(),n=Bp(),o=et(),i=Xe(),a=Ye(),{handleEvent:s}=Zr(),{RDF_FIRST:l,RDF_REST:d,RDF_NIL:f,RDF_TYPE:m,RDF_JSON_LITERAL:v,RDF_LANGSTRING:b,XSD_BOOLEAN:g,XSD_DOUBLE:x,XSD_INTEGER:_,XSD_STRING:k}=pa(),{isAbsolute:E}=jt(),y={};ai=y,y.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}u(M,I[j],A,B,N)}return M};function u(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:d},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=v;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 ai}var si,gl;function Fp(){if(gl)return si;gl=1;const{isKeyword:r}=zt(),e=xt(),t=Xe(),n=Ye(),o=jt(),i=et(),{createNodeMap:a,mergeNodeMapGraphs:s}=Pn(),l={};si=l,l.frameMergedOrDefault=(u,h,R)=>{const D={options:R,embedded:!1,graph:"@default",graphMap:{"@default":{}},subjectStack:[],link:{},bnodeMap:{}},N=new n.IdentifierIssuer("_:b");a(u,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
301
- return R.link={},_(B,R)},l.frame=(u,h,R,D,N=null)=>{v(R),R=R[0];const B=u.options,I={embed:m(R,B,"embed"),explicit:m(R,B,"explicit"),requireAll:m(R,B,"requireAll")};u.link.hasOwnProperty(u.graph)||(u.link[u.graph]={});const M=u.link[u.graph],q=b(u,h,R,I),j=Object.keys(q).sort();for(const A of j){const Y=q[A];if(N===null?u.uniqueEmbeds={[u.graph]:{}}:u.uniqueEmbeds[u.graph]=u.uniqueEmbeds[u.graph]||{},I.embed==="@link"&&A in M){k(D,N,M[A]);continue}const T={"@id":A};if(A.indexOf("_:")===0&&n.addValue(u.bnodeMap,A,T,{propertyIsArray:!0}),M[A]=T,(I.embed==="@first"||I.embed==="@last")&&u.is11)throw new i("Invalid JSON-LD syntax; invalid value of @embed.","jsonld.SyntaxError",{code:"invalid @embed value",frame:R});if(!(!u.embedded&&u.uniqueEmbeds[u.graph].hasOwnProperty(A))){if(u.embedded&&(I.embed==="@never"||f(Y,u.graph,u.subjectStack))){k(D,N,T);continue}if(u.embedded&&(I.embed=="@first"||I.embed=="@once")&&u.uniqueEmbeds[u.graph].hasOwnProperty(A)){k(D,N,T);continue}if(I.embed==="@last"&&A in u.uniqueEmbeds[u.graph]&&x(u,A),u.uniqueEmbeds[u.graph][A]={parent:D,property:N},u.subjectStack.push({subject:Y,graph:u.graph}),A in u.graphMap){let ee=!1,C=null;"@graph"in R?(C=R["@graph"][0],ee=!(A==="@merged"||A==="@default"),t.isObject(C)||(C={})):(ee=u.graph!=="@merged",C={}),ee&&l.frame({...u,graph:A,embedded:!1},Object.keys(u.graphMap[A]).sort(),[C],T,"@graph")}"@included"in R&&l.frame({...u,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(u.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]:d(I);if(e.isList(C)){const w=R[ee]&&R[ee][0]&&R[ee][0]["@list"]?R[ee][0]["@list"]:d(I),z={"@list":[]};k(T,ee,z);const Q=C["@list"];for(const W of Q)e.isSubjectReference(W)?l.frame({...u,embedded:!0},[W["@id"]],w,z,"@list"):k(z,"@list",n.clone(W))}else e.isSubjectReference(C)?l.frame({...u,embedded:!0},[C["@id"]],K,T,ee):y(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(u.subjects))n.getValues(u.subjects[K],ee).some(z=>z["@id"]===A)&&(T["@reverse"]=T["@reverse"]||{},n.addValue(T["@reverse"],ee,[],{propertyIsArray:!0}),l.frame({...u,embedded:!0},[K],C,T["@reverse"][ee],N))}k(D,N,T),u.subjectStack.pop()}}},l.cleanupNull=(u,h)=>{if(t.isArray(u))return u.map(D=>l.cleanupNull(D,h)).filter(D=>D);if(u==="@null")return null;if(t.isObject(u)){if("@id"in u){const R=u["@id"];if(h.link.hasOwnProperty(R)){const D=h.link[R].indexOf(u);if(D!==-1)return h.link[R][D];h.link[R].push(u)}else h.link[R]=[u]}for(const R in u)u[R]=l.cleanupNull(u[R],h)}return u};function d(u){const h={};for(const R in u)u[R]!==void 0&&(h["@"+R]=[u[R]]);return[h]}function f(u,h,R){for(let D=R.length-1;D>=0;--D){const N=R[D];if(N.graph===h&&N.subject["@id"]===u["@id"])return!0}return!1}function m(u,h,R){const D="@"+R;let N=D in u?u[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:u})}return N}function v(u){if(!t.isArray(u)||u.length!==1||!t.isObject(u[0]))throw new i("Invalid JSON-LD syntax; a JSON-LD frame must be a single object.","jsonld.SyntaxError",{frame:u});if("@id"in u[0]){for(const h of n.asArray(u[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:u})}if("@type"in u[0]){for(const h of n.asArray(u[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:u})}}function b(u,h,R,D){const N={};for(const B of h){const I=u.graphMap[u.graph][B];g(u,I,R,D)&&(N[B]=I)}return N}function g(u,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&&(v([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=>y(T,C)):(e.isSubject(T)||e.isSubjectReference(T))&&(M=ee.some(C=>E(u,T,C,D)))}}else e.isValue(A)?M=q.some(T=>y(A,T)):e.isSubjectReference(A)?M=q.some(T=>E(u,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(u,h){const R=u.uniqueEmbeds[u.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)}/**
299
+ */var Ao,Fs;function xp(){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),g=i.get(f);g?g.push(u):i.set(f,[u])}return i}},Ao}const _p={},kp=Object.freeze(Object.defineProperty({__proto__:null,default:_p},Symbol.toStringTag,{value:"Module"})),Sp=wc(kp);var zs;function Ep(){return zs||(zs=1,function(r){const e=Qd(),t=wp(),n=Xd(),o=xp();let i;try{i=Sp}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,g)=>i.canonize(u,l,(y,b)=>y?g(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=Ep()),Lo}var Oo,Hs;function Xe(){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=Xe(),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 et(){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 Ye(){if(Ws)return Mo;Ws=1;const r=xt(),e=Xe(),t=sa().IdentifierIssuer,n=et(),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 m=0;m<y.length;++m)b[m]=f.clone(y[m])}else if(y instanceof Map){b=new Map;for(const[m,x]of y)b.set(m,f.clone(x))}else if(y instanceof Set){b=new Set;for(const m of y)b.add(f.clone(m))}else if(e.isObject(y)){b={};for(const m in y)b[m]=f.clone(y[m])}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(m=>m.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={},m=y.match(i);for(let x=0;x<m.length;++x){let _=m[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(m=>e.isString(m)))){if(b&&e.isObject(y))switch(Object.keys(y).length){case 0:return;case 1:if("@default"in y&&f.asArray(y["@default"]).every(m=>e.isString(m)))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 m=y[b];return!e.isArray(m)||m.length>0}return!1},f.hasValue=(y,b,m)=>{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(m,x[k]))return!0}else if(!e.isArray(m))return f.compareValues(m,x)}return!1},f.addValue=(y,b,m,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]=m;else if(e.isArray(m)){m.length===0&&x.propertyIsArray&&!y.hasOwnProperty(b)&&(y[b]=[]),x.prependValue&&(m=m.concat(y[b]),y[b]=[]);for(let _=0;_<m.length;++_)f.addValue(y,b,m[_],x)}else if(y.hasOwnProperty(b)){const _=!x.allowDuplicate&&f.hasValue(y,b,m);!e.isArray(y[b])&&(!_||x.propertyIsArray)&&(y[b]=[y[b]]),_||(x.prependValue?y[b].unshift(m):y[b].push(m))}else y[b]=x.propertyIsArray?[m]:m},f.getValues=(y,b)=>[].concat(y[b]||[]),f.removeProperty=(y,b)=>{delete y[b]},f.removeValue=(y,b,m,x)=>{x=x||{},"propertyIsArray"in x||(x.propertyIsArray=!1);const _=f.getValues(y,b).filter(k=>!f.compareValues(k,m));_.length===0?f.removeProperty(y,b):_.length===1&&!x.propertyIsArray?y[b]=_[0]:y[b]=_},f.relabelBlankNodes=(y,b)=>{b=b||{};const m=b.issuer||new t("_:b");return g(m,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 g(y,b){if(e.isArray(b))for(let m=0;m<b.length;++m)b[m]=g(y,b[m]);else if(r.isList(b))b["@list"]=g(y,b["@list"]);else if(e.isObject(b)){r.isBlankNode(b)&&(b["@id"]=y.getId(b["@id"]));const m=Object.keys(b).sort();for(let x=0;x<m.length;++x){const _=m[x];_!=="@id"&&(b[_]=g(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 Nt(){if(Xs)return Bo;Xs=1;const r=Xe(),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 g=0;g<s.length;++g)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 Ip(){if(Ks)return qo;Ks=1;const{parseLinkHeader:r,buildHeaders:e}=Ye(),{LINK_HEADER_CONTEXT:t}=la(),n=et(),o=Kd(),{prependBase:i}=Nt(),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 m;try{m=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(m.status>=400)throw new n("URL could not be dereferenced: "+m.statusText,"jsonld.LoadDocumentError",{code:"loading document failed",url:b,httpStatusCode:m.status});let x={contextUrl:null,documentUrl:b,document:m.response},_=null;const k=m.getResponseHeader("Content-Type");let E;if(a.test(m.getAllResponseHeaders())&&(E=m.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 g=new l;return new Promise((y,b)=>{g.onload=()=>y(g),g.onerror=m=>b(m),g.open("GET",u,!0);for(const m in f)g.setRequestHeader(m,f[m]);g.send()})}return qo}var Fo,Ys;function Rp(){if(Ys)return Fo;Ys=1;const r=Ip(),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 Np(){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 jp(){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{Np()(r)}catch{}return Uo}var Ho,tl;function Yd(){if(tl)return Ho;tl=1;const r=jp(),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"),g=()=>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||g;if(this[n]=typeof h!="function"?g: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=g),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=>m(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!m(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(m(v,D)){if(_(v,R),!v[o])return}else h&&(v[f]&&(R.value.now=Date.now()),v[l].unshiftNode(R));return D.value}},m=(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;m(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 Tp(){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 Ap(){if(nl)return Vo;nl=1;const{isArray:r,isObject:e,isString:t}=Xe(),{asArray:n}=Ye(),{prependBase:o}=Nt(),i=et(),a=Tp(),s=10;Vo=class{constructor({sharedCache:g}){this.perOpCache=new Map,this.sharedCache=g}async resolve({activeCtx:g,context:y,documentLoader:b,base:m,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:g,url:k,documentLoader:b,base:m,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(g){let y=this.perOpCache.get(g);if(!y){const b=this.sharedCache.get(g);b&&(y=b.get("static"),y&&this.perOpCache.set(g,y))}return y}_cacheResolvedContext({key:g,resolved:y,tag:b}){if(this.perOpCache.set(g,y),b!==void 0){let m=this.sharedCache.get(g);m||(m=new Map,this.sharedCache.set(g,m)),m.set(b,y)}return y}async _resolveRemoteContext({activeCtx:g,url:y,documentLoader:b,base:m,cycles:x}){y=o(m,y);const{context:_,remoteDoc:k}=await this._fetchContext({activeCtx:g,url:y,documentLoader:b,cycles:x});m=k.documentUrl||y,u({context:_,base:m});const E=await this.resolve({activeCtx:g,context:_,documentLoader:b,base:m,cycles:x});return this._cacheResolvedContext({key:y,resolved:E,tag:k.tag}),E}async _fetchContext({activeCtx:g,url:y,documentLoader:b,cycles:m}){if(m.size>s)throw new i("Maximum number of @context URLs exceeded.","jsonld.ContextUrlError",{code:g.processingMode==="json-ld-1.0"?"loading remote context failed":"context overflow",max:s});if(m.has(y))throw new i("Cyclical @context URLs detected.","jsonld.ContextUrlError",{code:g.processingMode==="json-ld-1.0"?"recursive context inclusion":"context overflow",url:y});m.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:g}){if(!f)return;const y=f["@context"];if(t(y)){f["@context"]=o(g,y);return}if(r(y)){for(let b=0;b<y.length;++b){const m=y[b];if(t(m)){y[b]=o(g,m);continue}e(m)&&u({context:{"@context":m},base:g})}return}if(e(y))for(const b in y)u({context:y[b],base:g})}return Vo}var Wo,ol;function Lp(){return ol||(ol=1,Wo=sa().NQuads),Wo}var Jo,il;function Xr(){if(il)return Jo;il=1;const r=et(),{isArray:e}=Xe(),{asArray:t}=Ye(),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 qt(){if(al)return Qo;al=1;const r=Ye(),e=et(),{isArray:t,isObject:n,isString:o,isUndefined:i}=Xe(),{isAbsolute:a,isRelative:s,prependBase:l}=Nt(),{handleEvent:u}=Xr(),{REGEX_BCP47:f,REGEX_KEYWORD:g,asArray:y,compareShortestLeast:b}=Ye(),m=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(g)){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(g)){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(g)){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
300
+ 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(g))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=m.get(c);if(h)return h;const R={processingMode:v.processingMode,mappings:new Map,inverse:null,getInverse:D,clone:I,revertToPreviousContext:M,protected:{}};return m.size===x&&m.clear(),m.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 Op(){if(sl)return Xo;sl=1;const r=et(),{isArray:e,isObject:t,isEmptyObject:n,isString:o,isUndefined:i}=Xe(),{isList:a,isValue:s,isGraph:l,isSubject:u}=xt(),{expandIri:f,getContextValue:g,isKeyword:y,process:b,processingMode:m}=qt(),{isAbsolute:x}=Nt(),{REGEX_BCP47:_,REGEX_KEYWORD:k,addValue:E,asArray:v,getValues:c,validateTypeValue:h}=Ye(),{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=g(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=g(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=g(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(!(m(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"||(g(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"&&m(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&&m(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=g(j,H,"@context");i(ce)||(te=await b({activeCtx:j,localCtx:ce,propagate:!0,overrideProtected:!0,options:C}));const pe=g(j,H,"@container")||[];if(pe.includes("@language")&&t(V)){const L=g(te,H,"@direction");F=M(te,V,L,C)}else if(pe.includes("@index")&&t(V)){const L=pe.includes("@graph"),G=g(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 g(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"&&m(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=g(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=g(j,A,"@language");w!==null&&(K["@language"]=w);const z=g(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=g(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}=qt(),e=xt(),t=Xe(),n=Ye(),o=et(),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,g)=>{if(t.isArray(a)){for(const x of a)i.createNodeMap(x,s,l,u,void 0,g);return}if(!t.isObject(a)){g&&g.push(a);return}if(e.isValue(a)){if("@type"in a){let x=a["@type"];x.indexOf("_:")===0&&(a["@type"]=x=u.getId(x))}g&&g.push(a);return}else if(g&&e.isList(a)){const x=[];i.createNodeMap(a["@list"],s,l,u,f,x),g.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"]),g&&g.push({"@id":f});const y=s[l],b=y[f]=y[f]||{};b["@id"]=f;const m=Object.keys(a).sort();for(let x of m){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 g=s[u];for(const y of Object.keys(f).sort())if(r(y)&&y!=="@type")g[y]=n.clone(f[y]);else for(const b of f[y])n.addValue(g,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 g=s[u];g?"@graph"in g||(g["@graph"]=[]):s[u]=g={"@id":u,"@graph":[]};const y=g["@graph"];for(const b of Object.keys(f).sort()){const m=f[b];e.isSubjectReference(m)||y.push(m)}}return s},Ko}var Yo,dl;function $p(){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 Dp(){if(cl)return Zo;cl=1;const r=et(),e=xt(),t=Xe(),{REGEX_BCP47:n,addValue:o}=Ye(),{handleEvent:i}=Xr(),{RDF_LIST:a,RDF_FIRST:s,RDF_REST:l,RDF_NIL:u,RDF_TYPE:f,RDF_JSON_LITERAL:g,XSD_BOOLEAN:y,XSD_DOUBLE:b,XSD_INTEGER:m,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===g){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===m){const N=parseInt(R["@value"],10);N.toFixed(0)===R["@value"]&&(R["@value"]=N)}else D===b&&(R["@value"]=parseFloat(R["@value"]));[y,m,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 Mp(){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 Cp(){if(pl)return ti;pl=1;const{createNodeMap:r}=Mn(),{isKeyword:e}=qt(),t=xt(),n=Mp(),o=et(),i=Xe(),a=Ye(),{handleEvent:s}=Xr(),{RDF_FIRST:l,RDF_REST:u,RDF_NIL:f,RDF_TYPE:g,RDF_JSON_LITERAL:y,RDF_LANGSTRING:b,XSD_BOOLEAN:m,XSD_DOUBLE:x,XSD_INTEGER:_,XSD_STRING:k}=la(),{isAbsolute:E}=Nt(),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=g;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||m;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 Pp(){if(fl)return ri;fl=1;const{isKeyword:r}=qt(),e=xt(),t=Xe(),n=Ye(),o=Nt(),i=et(),{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
301
+ return R.link={},_(B,R)},l.frame=(c,h,R,D,N=null)=>{y(R),R=R[0];const B=c.options,I={embed:g(R,B,"embed"),explicit:g(R,B,"explicit"),requireAll:g(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(!g(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 g(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];m(c,I,R,D)&&(N[B]=I)}return N}function m(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)}/**
302
302
  * Removes the @preserve keywords from expanded result of framing.
303
303
  *
304
304
  * @param input the framed, framed output.
305
305
  * @param options the framing options used.
306
306
  *
307
307
  * @return the resulting output.
308
- */function _(u,h){if(t.isArray(u))return u.map(R=>_(R,h));if(t.isObject(u)){// remove @preserve
309
- if("@preserve"in u)return u["@preserve"][0];if(e.isValue(u))return u;if(e.isList(u))return u["@list"]=_(u["@list"],h),u;if("@id"in u){const R=u["@id"];if(h.link.hasOwnProperty(R)){const D=h.link[R].indexOf(u);if(D!==-1)return h.link[R][D];h.link[R].push(u)}else h.link[R]=[u]}for(const R in u){if(R==="@id"&&h.bnodesToClear.includes(u[R])){delete u["@id"];continue}u[R]=_(u[R],h)}}return u}function k(u,h,R){t.isObject(u)?n.addValue(u,h,R,{propertyIsArray:!0}):u.push(R)}function E(u,h,R,D){if(!("@id"in R))return!1;const N=u.subjects[R["@id"]];return N&&g(u,N,h,D)}function y(u,h){const R=h["@value"],D=h["@type"],N=h["@language"],B=u["@value"]?t.isArray(u["@value"])?u["@value"]:[u["@value"]]:[],I=u["@type"]?t.isArray(u["@type"])?u["@type"]:[u["@type"]]:[],M=u["@language"]?t.isArray(u["@language"])?u["@language"]:[u["@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 si}var li,vl;function zp(){if(vl)return li;vl=1;const r=et(),{isArray:e,isObject:t,isString:n,isUndefined:o}=Xe(),{isList:i,isValue:a,isGraph:s,isSimpleGraph:l,isSubjectReference:d}=xt(),{expandIri:f,getContextValue:m,isKeyword:v,process:b,processingMode:g}=zt(),{removeBase:x,prependBase:_}=jt(),{REGEX_KEYWORD:k,addValue:E,asArray:y,compareShortestLeast:u}=Ye(),h={};li=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)||d(I)){const w=h.compactValue({activeCtx:N,activeProperty:B,value:I,options:M});return M.link&&d(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)&&!d(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=y(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=y(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"&&v(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]=y(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]=y(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(v(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||u(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 li}var di,yl;function Up(){return yl||(yl=1,di=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}),di}/**
308
+ */function _(c,h){if(t.isArray(c))return c.map(R=>_(R,h));if(t.isObject(c)){// remove @preserve
309
+ 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&&m(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 Bp(){if(hl)return ni;hl=1;const r=et(),{isArray:e,isObject:t,isString:n,isUndefined:o}=Xe(),{isList:i,isValue:a,isGraph:s,isSimpleGraph:l,isSubjectReference:u}=xt(),{expandIri:f,getContextValue:g,isKeyword:y,process:b,processingMode:m}=qt(),{removeBase:x,prependBase:_}=Nt(),{REGEX_KEYWORD:k,addValue:E,asArray:v,compareShortestLeast:c}=Ye(),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&&(g(N,B,"@container")||[]).length===0&&(j=j[0]),j}const q=g(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)&&(g(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=g(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=g(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=(g(N,W,"@container")||[]).includes("@set")&&m(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=(g(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((g(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=g(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=g(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=g(N,B,"@type"),T=g(N,B,"@language"),ee=g(N,B,"@direction"),C=g(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=g(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 qp(){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}/**
310
310
  * A JavaScript implementation of the JSON-LD API.
311
311
  *
312
312
  * @author Dave Longley
@@ -340,22 +340,22 @@ if("@preserve"in u)return u["@preserve"][0];if(e.isValue(u))return u;if(e.isList
340
340
  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
341
341
  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
342
342
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
343
- */var ci,wl;function Hp(){if(wl)return ci;wl=1;const r=ua(),e=Tp(),t=Ye(),n=$p(),o=t.IdentifierIssuer,i=et(),a=oc(),s=Dp(),{expand:l}=Mp(),{flatten:d}=Cp(),{fromRDF:f}=Pp(),{toRDF:m}=qp(),{frameMergedOrDefault:v,cleanupNull:b}=Fp(),{isArray:g,isObject:x,isString:_}=Xe(),{isSubjectReference:k}=xt(),{expandIri:E,getInitialContext:y,process:u,processingMode:h}=zt(),{compact:R,compactIri:D}=zp(),{createNodeMap:N,createMergedNodeMap:B,mergeNodeMaps:I}=Pn(),{logEventHandler:M,logWarningEventHandler:q,safeEventHandler:j,setDefaultEventHandler:A,setupEventHandler:Y,strictEventHandler:T,unhandledEventHandler:ee}=Zr(),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(y(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=y(H);for(const pe of F)te=await u({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=d(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(y(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=v(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?y(V):(H=t.clone(H),x(H)&&"@context"in H||(H={"@context":H}),u({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=nc(),w.JsonLdProcessor=Up()(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),ci=K,ci}var Gp=Hp();const ui={},pi={};let zi;class Vp{constructor(e){this.loadedExternalUrls=[],this.loadedClasses=[],this.config=e}async loadGraphs(){this.loadedExternalUrls=[],this.loadedClasses=[];let e=zi;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,xn))),t.push(this.importRDF(this.config.attributes.values?this.config.attributes.values:this.config.attributes.valuesUrl?this.fetchRDF(this.config.attributes.valuesUrl):"",e,st,new Li({blankNodePrefix:""}))),await Promise.all(t),!zi&&(e==null?void 0:e.size)==0&&this.config.attributes.valuesSubject){const n=[...e.getObjects(this.config.attributes.valuesSubject,Be,st),...e.getObjects(this.config.attributes.valuesSubject,$i,st)],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,xn)))}try{await Promise.allSettled(o)}catch(i){console.warn(i)}}this.config.store=e}async importRDF(e,t,n,o){const i=o||new Li,a=async s=>{const l=[];await new Promise((d,f)=>{i.parse(s,(m,v,b)=>{if(m)return console.warn("failed parsing graph",n,m.message),f(m);if(v){if(t.add(new jn(v.subject,v.predicate,v.object,n)),this.config.attributes.ignoreOwlImports===null&&ea.equals(v.predicate)){const g=this.toURL(v.object.value);g&&this.loadedExternalUrls.indexOf(g)<0&&(this.loadedExternalUrls.push(g),l.push(this.importRDF(this.fetchRDF(g),t,ke.namedNode(g),o)))}if(this.config.classInstanceProvider&&ta.equals(v.predicate)){const g=v.object.value;if(this.loadedClasses.indexOf(g)<0){let x;g in pi?x=pi[g]:(x=this.config.classInstanceProvider(g),pi[g]=x),this.loadedClasses.push(g),l.push(this.importRDF(x,t,n,o))}}return}b&&this.config.registerPrefixes(b),d(null)})});try{await Promise.allSettled(l)}catch(d){console.warn(d)}};if(e instanceof Promise&&(e=await e),e){try{e=await Gp.toRDF(JSON.parse(e),{format:"application/n-quads"})}catch{}await a(e)}}async fetchRDF(e){if(e in ui)return ui[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 ui[e]=t,t}toURL(e){if(Ci(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),Ci(e)))return e}}return null}}function Wp(r){zi=r}class fi{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 xl{constructor(e,t){this.attributes=new fi,this.loader=new Vp(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 fi;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=ke.namedNode(t.valuesGraph))}static dataAttributes(){const e=new fi;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 Jp(r){return"_:"+r.value}function Qp(r,e){return[...r].map(t=>e(t)).join(`
343
+ */var ii,ml;function Fp(){if(ml)return ii;ml=1;const r=sa(),e=Rp(),t=Ye(),n=Ap(),o=t.IdentifierIssuer,i=et(),a=Yd(),s=Lp(),{expand:l}=Op(),{flatten:u}=$p(),{fromRDF:f}=Dp(),{toRDF:g}=Cp(),{frameMergedOrDefault:y,cleanupNull:b}=Pp(),{isArray:m,isObject:x,isString:_}=Xe(),{isSubjectReference:k}=xt(),{expandIri:E,getInitialContext:v,process:c,processingMode:h}=qt(),{compact:R,compactIri:D}=Bp(),{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&&m(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),m(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]),m(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=[]),m(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?m(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=g(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(!m(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=qt().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=Nt(),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=qp()(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 zp=Fp();const ai={},si={};let Mi;class Up{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,lt,new Ri({blankNodePrefix:""}))),await Promise.all(t),!Mi&&e?.size==0&&this.config.attributes.valuesSubject){const n=[...e.getObjects(this.config.attributes.valuesSubject,Be,lt),...e.getObjects(this.config.attributes.valuesSubject,ji,lt)],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,(g,y,b)=>{if(g)return console.warn("failed parsing graph",n,g.message),f(g);if(y){if(t.add(new In(y.subject,y.predicate,y.object,n)),this.config.attributes.ignoreOwlImports===null&&Wi.equals(y.predicate)){const m=this.toURL(y.object.value);m&&this.loadedExternalUrls.indexOf(m)<0&&(this.loadedExternalUrls.push(m),l.push(this.importRDF(this.fetchRDF(m),t,Se.namedNode(m),o)))}if(this.config.classInstanceProvider&&Ji.equals(y.predicate)){const m=y.object.value;if(this.loadedClasses.indexOf(m)<0){let x;m in si?x=si[m]:(x=this.config.classInstanceProvider(m),si[m]=x),this.loadedClasses.push(m),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 zp.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 Hp(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 Up(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 Gp(r){return"_:"+r.value}function Vp(r,e){return[...r].map(t=>e(t)).join(`
344
344
  `)+`
345
- `}function Xp(){return""}function ic(r){return"<"+r.value+">"}const Kp=/["\\\\\n\r]/,Yp=/["\\\\\n\r]/g,Zp={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function ef(r){return Zp[r]}function tf(r){return Kp.test(r)?r.replace(Yp,ef):r}function rf(r){const e=tf(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+'"^^'+ic(r.datatype)}function nf(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 of(r){return"?"+r.value}function Je(r){if(!r)return null;if(r.termType==="BlankNode")return Jp(r);if(r.termType==="DefaultGraph")return Xp();if(r.termType==="Literal")return rf(r);if(r.termType==="NamedNode")return ic(r);if(r.termType==="Quad"||r.subject&&r.predicate&&r.object&&r.graph)return nf(r,Je);if(r.termType==="Variable")return of(r);if(r[Symbol.iterator])return Qp(r,Je);throw new Error(`unknown termType ${r.termType}`)}class cr{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 _l{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 kl(r){try{return Je(r)}catch{return null}}class Ze{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(kl(e)):!1}entries(){return this.values().entries()}forEach(e,t){return this.values().forEach(e,t)}has(e){return e?this.index.has(kl(e)):!1}values(){return new Set(this.index.values())}keys(){return this.values()}[Symbol.iterator](){return this.index.values()}}let ac=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};ac.prototype.termType="BlankNode";let fa=class{equals(e){return!!e&&e.termType===this.termType}};fa.prototype.termType="DefaultGraph";fa.prototype.value="";function Sl(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 yn=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}};yn.prototype.termType="Literal";let en=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};en.prototype.termType="NamedNode";let ha=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)}};ha.prototype.termType="Quad";ha.prototype.value="";let sc=class{constructor(e){this.value=e}equals(e){return!!e&&e.termType===this.termType&&e.value===this.value}};sc.prototype.termType="Variable";const af=new en("http://www.w3.org/1999/02/22-rdf-syntax-ns#dirLangString"),El=new en("http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"),sf=new en("http://www.w3.org/2001/XMLSchema#string");let lc=class{constructor(){this.init()}init(){this._data={blankNodeCounter:0,defaultGraph:new fa}}namedNode(e){return new en(e)}blankNode(e){return e=e||"b"+ ++this._data.blankNodeCounter,new ac(e)}literal(e,t){return typeof t=="string"?new yn(e,t,El):typeof(t==null?void 0:t.language)=="string"?new yn(e,t.language,t.direction?af:El,t.direction):new yn(e,"",t||sf)}variable(e){return new sc(e)}defaultGraph(){return this._data.defaultGraph}quad(e,t,n,o=this.defaultGraph()){return new ha(e,t,n,o)}fromTerm(e){return Sl(this,e)}fromQuad(e){return Sl(this,e)}};lc.exports=["blankNode","defaultGraph","fromQuad","fromTerm","literal","namedNode","quad","variable"];const ba=new lc,lf={apply:(r,e,t)=>r(t[0]),get:(r,e)=>r(e)};function tt(r,{factory:e=ba}={}){const t=(n="")=>e.namedNode(`${r}${n.raw||n}`);return typeof Proxy>"u"?t:new Proxy(t,lf)}tt("http://www.w3.org/2001/XMLSchema#");const it=tt("http://www.w3.org/1999/02/22-rdf-syntax-ns#");tt("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 d=()=>{};l&&(d=f=>{l(new _l({dataset:e.dataset,start:t,end:n,quad:f}))});for(const f of o)for(const m of i)for(const v of a)for(const b of s){const g={subject:f,predicate:m,object:v,graph:b};g[t]=e.term;const x=e.factory.quad(g.subject,g.predicate,g.object,g.graph);e.dataset.add(x),d(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]||it.nil,a));for(let l=0;l<s.length;l++)e.dataset.add(e.factory.quad(s[l],it.first,n[l],a)),e.dataset.add(e.factory.quad(s[l],it.rest,s[l+1]||it.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 d={subject:a,predicate:s,object:l};d[t]=e.term;const f=e.dataset.match(d.subject,d.predicate,d.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);!it.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:d,items:f,callback:m}={}){if(t==="add")return Re.add({ptr:e,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:d,callback:m});if(t==="addList")return Re.addList({ptr:e,predicates:s,items:f,graphs:d});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:d});throw new Error(`unknown operation ${t}`)}static isList({ptr:e}){return e.isAny()?!1:!!(it.nil.equals(e.term)||Re.traverse({ptr:e,predicates:[it.first]}).length===1)}static list({ptr:e}){if(e.isList())return{*[Symbol.iterator](){for(;e&&!e.term.equals(it.nil);){const t=e.out([it.first]);if(t.length!==1)throw new Error(`Invalid list: rdf:first count not equals one on ${e.value}`);const n=e.out([it.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:d}){if(t==="one")return Re.traverseOne({ptr:e,start:n,end:o,subjects:i,predicates:a,objects:s,graphs:l,callback:d});if(t==="oneOrMore"){const f=Re.traverse({ptr:e,end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:d});return Re.traverseMore({ptrs:f,end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:d})}if(t==="zeroOrMore")return Re.traverseMore({ptrs:[e],end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:d});if(t==="zeroOrOne")return[e,...Re.traverse({ptr:e,end:o,start:n,subjects:i,predicates:a,objects:s,graphs:l,callback:d})];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 d=[...e],f,m;do{f=[];for(const v of e)f=[...f,...Re.traverseOne({ptr:v,end:t,start:n,subjects:o,predicates:i,objects:a,graphs:s,callback:l})];m&&(f=f.filter(v=>!m.has(v.term))),e=f,d=[...d,...f],m=new Ze(d.map(v=>v.term))}while(f.length>0);return d}static traverseOne({ptr:e,start:t,end:n,subjects:o,predicates:i,objects:a,graphs:s,callback:l=(d,f)=>f.extend(d)}={}){const d=[];for(const f of o)for(const m of i)for(const v of a)for(const b of s){const g={subject:f,predicate:m,object:v,graph:b};g[t]=e.term;for(const x of e.dataset.match(g.subject,g.predicate,g.object,g.graph))d.push(l(new _l({dataset:e.dataset,end:n,quad:x,start:t}),e))}return d}}function Il(r,e){return e?t=>e(r.extend(t)):()=>{}}class Rl{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:Il(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:Il(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:d,callback:f}){return Re.execute({ptr:this,operation:e,quantifier:t,start:n,end:o,subjects:i,predicates:a,objects:s,graphs:l,items:d,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 Nl(r,e){return r?r.equals(e):r===e}function df(r,e){return!(r.dataset!==e.dataset||!Nl(r.graph,e.graph)||!Nl(r.term,e.term))}function jl(r,e){return e?t=>e(new r.constructor({factory:r.factory,ptrs:[t]})):()=>{}}class Rn{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 Rl({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 Ze(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==null?void 0:e.value}get values(){return this.ptrs.map(e=>e.value)}addIn(e,t,n){const o=jl(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=jl(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=>df(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 Rl({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]})}}tt("http://www.w3.org/2002/07/owl#");const Ut=tt("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),cf=tt("http://www.w3.org/2000/01/rdf-schema#"),ne=tt("http://www.w3.org/ns/shacl#"),Ui=tt("https://schemas.link/shacl-next#"),ma=tt("http://www.w3.org/2001/XMLSchema#");function uf(r){return r?`{${[...r.quads()].map(e=>Je(e)).join(" ")}}`:"{}"}function pf(r){return r?`{${r.map(e=>uf(e)).join(" ")}}`:"{}"}var hi,Tl;function ff(){if(Tl)return hi;Tl=1;var r=/\s/;function e(t){for(var n=t.length;n--&&r.test(t.charAt(n)););return n}return hi=e,hi}var bi,Al;function hf(){if(Al)return bi;Al=1;var r=ff(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return bi=t,bi}var mi,Ll;function bf(){if(Ll)return mi;Ll=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return mi=r,mi}var gi,Ol;function mf(){if(Ol)return gi;Ol=1;var r=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt;return gi=r,gi}var vi,$l;function gf(){if($l)return vi;$l=1;var r=mf(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return vi=t,vi}var yi,Dl;function dc(){if(Dl)return yi;Dl=1;var r=gf(),e=r.Symbol;return yi=e,yi}var wi,Ml;function vf(){if(Ml)return wi;Ml=1;var r=dc(),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 d=!0}catch{}var f=n.call(a);return d&&(s?a[o]=l:delete a[o]),f}return wi=i,wi}var xi,Cl;function yf(){if(Cl)return xi;Cl=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return xi=t,xi}var _i,Pl;function wf(){if(Pl)return _i;Pl=1;var r=dc(),e=vf(),t=yf(),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 _i=a,_i}var ki,Bl;function xf(){if(Bl)return ki;Bl=1;function r(e){return e!=null&&typeof e=="object"}return ki=r,ki}var Si,ql;function _f(){if(ql)return Si;ql=1;var r=wf(),e=xf(),t="[object Symbol]";function n(o){return typeof o=="symbol"||e(o)&&r(o)==t}return Si=n,Si}var Ei,Fl;function kf(){if(Fl)return Ei;Fl=1;var r=hf(),e=bf(),t=_f(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(d){if(typeof d=="number")return d;if(t(d))return n;if(e(d)){var f=typeof d.valueOf=="function"?d.valueOf():d;d=e(f)?f+"":f}if(typeof d!="string")return d===0?d:+d;d=r(d);var m=i.test(d);return m||a.test(d)?s(d.slice(2),m?2:8):o.test(d)?n:+d}return Ei=l,Ei}var Ii,zl;function Sf(){if(zl)return Ii;zl=1;var r=kf(),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 Ii=n,Ii}var Ri,Ul;function Ef(){if(Ul)return Ri;Ul=1;var r=Sf();function e(t){var n=r(t),o=n%1;return n===n?o?n-o:n:0}return Ri=e,Ri}var Ni,Hl;function If(){if(Hl)return Ni;Hl=1;var r=Ef(),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 Ni=t,Ni}var ji,Gl;function Rf(){if(Gl)return ji;Gl=1;var r=If();function e(t){return r(2,t)}return ji=e,ji}var Nf=Rf();const nt=Ec(Nf);let Vl=class{constructor({details:e,factory:t,options:n,results:o=[]}={}){this.details=e,this.factory=t,this.options=n,this.results=o,this._conforms=nt(()=>!this.results.some(i=>i.severity.equals(ne.Info)||i.severity.equals(ne.Violation)||i.severity.equals(ne.Warning))),this._ptr=nt(()=>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 Rn({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(),ma.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 jf(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 Tf=class{constructor({args:e={},constraintComponent:t,factory:n,focusNode:o,message:i=[],path:a,results:s=[],severity:l,shape:d,source:f=[],value:m,valuePaths:v=[]}={}){this.args=e,this.constraintComponent=t,this.factory=n,this.focusNode=o,this.path=a||d.path,this.results=s,this.severity=l,this.shape=d,this.source=f,this.value=m,this.valuePaths=v,this._message=nt(()=>(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(jf(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 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 ga{constructor({factory:e,focusNode:t,options:n={debug:!1,details:!1},processed:o=new Set,report:i=new Vl({factory:e,options:n}),results:a=new Map,shape:s,value:l,valueOrNode:d,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=d,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 ga({factory:this.factory,focusNode:t,options:this.options,processed:this.processed,report:e?new Vl({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)} - ${pf(this.valuePaths)}`}result(e){const t=new Tf({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:Ui.Debug,constraintComponent:e,...t})}trace(e,t){this.options.trace&&this.result({severity:Ui.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 Af(){return{generic:Lf()}}function Lf(){return r=>{r.trace(Ui.TraversalConstraintComponent,{args:{},message:[r.factory.literal("Traversal")],value:r.valueOrNode})}}class Of{constructor(e){this.validations=new cr(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(Af),[...o].map(i=>i(e)).filter(Boolean)}}var Ot={},$t={},_r={},Wl;function cc(){if(Wl)return _r;Wl=1,Object.defineProperty(_r,"__esModule",{value:!0}),_r.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 _r.BlankNode=r,_r}var kr={},Sr={},Jl;function uc(){if(Jl)return Sr;Jl=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.DefaultGraph=void 0;let r=class{constructor(){this.termType="DefaultGraph",this.value=""}equals(t){return!!t&&t.termType==="DefaultGraph"}};return Sr.DefaultGraph=r,r.INSTANCE=new r,Sr}var Er={},Ir={},Ql;function va(){if(Ql)return Ir;Ql=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.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 Ir.NamedNode=r,Ir}var Xl;function pc(){if(Xl)return Er;Xl=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.Literal=void 0;const r=va();let e=class Pr{constructor(n,o){this.termType="Literal",this.value=n,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(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 Er.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"),Er}var Rr={},Kl;function fc(){if(Kl)return Rr;Kl=1,Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.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 Rr.Quad=r,Rr}var Nr={},Yl;function hc(){if(Yl)return Nr;Yl=1,Object.defineProperty(Nr,"__esModule",{value:!0}),Nr.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 Nr.Variable=r,Nr}var Zl;function $f(){if(Zl)return kr;Zl=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.DataFactory=void 0;const r=cc(),e=uc(),t=pc(),n=va(),o=fc(),i=hc();let a=0,s=class{constructor(d){this.blankNodeCounter=0,d=d||{},this.blankNodePrefix=d.blankNodePrefix||`df_${a++}_`}namedNode(d){return new n.NamedNode(d)}blankNode(d){return new r.BlankNode(d||`${this.blankNodePrefix}${this.blankNodeCounter++}`)}literal(d,f){return new t.Literal(d,f)}variable(d){return new i.Variable(d)}defaultGraph(){return e.DefaultGraph.INSTANCE}quad(d,f,m,v){return new o.Quad(d,f,m,v||this.defaultGraph())}fromTerm(d){switch(d.termType){case"NamedNode":return this.namedNode(d.value);case"BlankNode":return this.blankNode(d.value);case"Literal":return d.language?this.literal(d.value,d.language):d.datatype.equals(t.Literal.XSD_STRING)?this.literal(d.value):this.literal(d.value,this.fromTerm(d.datatype));case"Variable":return this.variable(d.value);case"DefaultGraph":return this.defaultGraph();case"Quad":return this.quad(this.fromTerm(d.subject),this.fromTerm(d.predicate),this.fromTerm(d.object),this.fromTerm(d.graph))}}fromQuad(d){return this.fromTerm(d)}resetBlankNodeCounter(){this.blankNodeCounter=0}};return kr.DataFactory=s,kr}var ed;function Df(){return ed||(ed=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(cc(),r),t($f(),r),t(uc(),r),t(pc(),r),t(va(),r),t(fc(),r),t(hc(),r)}($t)),$t}var Dt={},jr={},Tr={},td;function ar(){if(td)return Tr;td=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.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 Tr.Translator=r,Tr}var rd;function Mf(){if(rd)return jr;rd=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.TypeHandlerBoolean=void 0;const r=ar();let e=class bc{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(bc.TYPE))}};return jr.TypeHandlerBoolean=e,e.TYPE="http://www.w3.org/2001/XMLSchema#boolean",jr}var Ar={},nd;function Cf(){if(nd)return Ar;nd=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.TypeHandlerDate=void 0;const r=ar();let e=class Hi{fromRdf(n,o){switch(o&&!n.value.match(Hi.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(Hi.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 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={},od;function Pf(){if(od)return Lr;od=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.TypeHandlerNumberDouble=void 0;const r=ar();let e=class mc{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(mc.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 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={},id;function Bf(){if(id)return Or;id=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.TypeHandlerNumberInteger=void 0;const r=ar();let e=class Br{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<=Br.MAX_INT&&n>=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={},ad;function qf(){if(ad)return $r;ad=1,Object.defineProperty($r,"__esModule",{value:!0}),$r.TypeHandlerString=void 0;let r=class{fromRdf(t){return t.value}toRdf(t,{datatype:n,dataFactory:o}){return o.literal(t,n)}};return $r.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"],$r}var sd;function ld(){return sd||(sd=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(Mf(),r),t(Cf(),r),t(Pf(),r),t(Bf(),r),t(qf(),r)}(Dt)),Dt}var Ti={},dd;function Ff(){return dd||(dd=1,Object.defineProperty(Ti,"__esModule",{value:!0})),Ti}var cd;function zf(){return cd||(cd=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=d,r.getTermRaw=f,r.getSupportedRdfDatatypes=m,r.getSupportedJavaScriptPrimitives=v;const n=Df(),o=ld(),i=ar();t(ld(),r),t(Ff(),r),t(ar(),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 d(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 v(){return s.getSupportedJavaScriptPrimitives()}}(Ot)),Ot}var Kr=zf();function ud(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 Uf(r){return r.terms.length===0?null:r.ptrs[0].isList()?[...r.list()].map(e=>ud(e)):[ud(r)]}class Hf{constructor(e){this.shape=e,this._compiled=nt(()=>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 Ze(t.terms)),o=[...t].reduce((a,s)=>{const l=s.term,d=t.node([l]);return a.has(l)||a.set(l,{value:d,valuePaths:[]}),a.get(l).valuePaths.push(s),a},new cr).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 d of this.compiled)d.generic&&await d.generic(l)}}}function Gi(r){const e=new Ze,n=new Rn({dataset:r.dataset,terms:r.terms}).execute({quantifier:"zeroOrMore",start:"object",end:"subject",predicates:[cf.subClassOf]});for(const o of n.ptrs)for(const{term:i}of o.nodes())e.add(i);return e}class Gf{constructor(e){this.targetClass=new Ze([...Gi(e.hasOut([Ut.type],[ne.NodeShape])),...Gi(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([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:n});return o.node([...new Ze(o.terms)])}}class Vf{constructor(e,{validator:t}){this.ptr=e,this.validator=t,this._deactivated=nt(()=>{const n=this.ptr.out([ne.deactivated]).term;return n&&Kr.fromRdf(n)}),this._message=nt(()=>this.ptr.out([ne.message]).terms),this._path=nt(()=>Uf(this.ptr.out([ne.path]))),this._severity=nt(()=>this.ptr.out([ne.severity]).term),this._shapeValidator=nt(()=>new Hf(this)),this._sparql=nt(()=>this.ptr.out([ne.sparql])),this._targetResolver=nt(()=>new Gf(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 Wf(r){const e=parseInt(r.ptr.out([ne.maxCount]).value);return{property:Jf(e)}}function Jf(r){return e=>{e.test(e.values.terms.length<=r,ne.MaxCountConstraintComponent,{args:{maxCount:r},message:[e.factory.literal("More than {$maxCount} values")]})}}function Qf(r){const e=parseInt(r.ptr.out([ne.minCount]).value);return{property:Xf(e)}}function Xf(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 Kf(r,e){for(const t of r)if(!await e(t))return!1;return!0}async function Yf(r,e){return(await Promise.all(r.map(t=>e(t)))).filter(Boolean)}async function Bn(r,e){return Promise.all(r.map(e))}async function Zf(r,e){for(const t of r)if(await e(t))return!0;return!1}function eh(r){const e=[...r.ptr.out([ne.and])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:th(e)}}function th(r){return async e=>{const t=await Bn(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 rh(r){const e=r.validator.shape(r.ptr.out([ne.not]));return{generic:nh(e)}}function nh(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 oh(r){const e=[...r.ptr.out([ne.or])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:ih(e)}}function ih(r){return async e=>{let t=[],n;if(e.options.debug||e.options.details){const o=await Bn(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 Zf(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 ah(r){const e=[...r.ptr.out([ne.xone])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:sh(e)}}function sh(r){return async e=>{const t=await Bn(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 lh(r){if(!Kr.fromRdf(r.ptr.out([ne.closed]).term))return null;const t=r.ptr.out([ne.property]).map(i=>r.validator.shape(i)),n=new Ze(t.filter(i=>!i.deactivated).map(i=>i.path[0].predicates[0])),o=new Ze([...r.ptr.out([ne.ignoredProperties]).list()||[]].map(i=>i.term));return{node:dh(n,o)}}function dh(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 ch(r){const e=r.ptr.out([ne.hasValue]).term;return{node:uh(e),property:ph(e)}}function uh(r){return e=>{e.test(r.equals(e.valueOrNode.term),ne.HasValueConstraintComponent,{args:{hasValue:r},message:[e.factory.literal("Value must be {$hasValue}")]})}}function ph(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 fh(r){const e=new Ze([...r.ptr.out([ne.in]).list()].map(t=>t.term));return{generic:hh(e)}}function hh(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 ur(r,e){if(!r||r.termType!=="Literal"||!e||e.termType!=="Literal"||pd(r)!==pd(e))return null;const t=Kr.fromRdf(r),n=Kr.fromRdf(e);return typeof t!=typeof n?null:typeof t=="string"?t.localeCompare(n):t-n}function pd(r){const e=/^.*(((\+|-)\d{2}:\d{2})|Z)$/;return ma.dateTime.equals(r.datatype)&&e.test(r.value)}function bh(r){const e=r.ptr.out([ne.disjoint]).term;return{generic:mh(e)}}function mh(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 gh(r){const e=r.ptr.out([ne.equals]).term;return{node:vh(e),property:yh(e)}}function vh(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 yh(r){return e=>{const t=new Ze(e.focusNode.out([r]).terms),n=new Ze(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 wh(r){const e=r.ptr.out([ne.lessThan]).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=ur(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 _h(r){const e=r.ptr.out([ne.lessThanOrEquals]).term;return{property:kh(e)}}function kh(r){return e=>{const t=e.focusNode.out([r]).terms;for(const n of e.values)for(const o of t){const i=ur(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 Sh(r){const e=r.ptr.out([ne.maxExclusive]).term;return{generic:Eh(e)}}function Eh(r){return e=>{const t=ur(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 Ih(r){const e=r.ptr.out([ne.maxInclusive]).term;return{generic:Rh(e)}}function Rh(r){return e=>{const t=ur(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 Nh(r){const e=r.ptr.out([ne.minExclusive]).term;return{generic:jh(e)}}function jh(r){return e=>{const t=ur(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 Th(r){const e=r.ptr.out([ne.minInclusive]).term;return{generic:Ah(e)}}function Ah(r){return e=>{const t=ur(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 Lh(r){const e=[...r.ptr.out([ne.node])].map(t=>r.validator.shape(t));return{generic:Oh(e)}}function Oh(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 $h(r){const e=[...r.ptr.out([ne.property])].map(t=>r.validator.shape(t));return{generic:Dh(e)}}function Dh(r){return async e=>{const t=e.create({focusNode:e.valueOrNode});for(const n of r)await n.validate(t)}}function Mh(r){const e=r.validator.shape(r.ptr.out([ne.qualifiedValueShape])),t=r.ptr.out([ne.qualifiedValueShapesDisjoint]).term,n=t?Kr.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:Ch(e,n,i,s)}}function Ch(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 Yf(o.values,async l=>{const d=(await r.validate(o.create({child:!0,focusNode:l}))).report;if(i.push(d.results),!d.conforms)return!1;if(a.length===0)return!0;if(o.options.debug||o.options.details){const f=await Bn([...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 Kf([...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 Ph(r,e){return e?e.slice(0,r.length)===r:!1}function Bh(r){const e=[...new Set([...r.ptr.out([ne.languageIn]).list()].map(t=>t.value))];return{generic:qh(e)}}function qh(r){return e=>{const t=r.some(n=>Ph(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 Fh(r){const e=parseInt(r.ptr.out([ne.maxLength]).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.MaxLengthConstraintComponent,{args:{maxLength:r},message:[e.factory.literal("Value has more than {$maxLength} characters")],value:e.valueOrNode})}}function Uh(r){const e=parseInt(r.ptr.out([ne.minLength]).value);return{generic:Hh(e)}}function Hh(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 Gh(r){const e=r.ptr.out([ne.pattern]).value,t=r.ptr.out([ne.flags]).value,n=new RegExp(e,t);return{generic:Vh(e,t,n)}}function Vh(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 Wh(r){const e=r.ptr.out([ne.uniqueLang]).term;return e.value==="true"&&ma.boolean.equals(e.datatype)?{property:Jh()}:null}function Jh(){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 wn=tt("http://www.w3.org/ns/shacl#"),gc=tt("https://schemas.link/shacl-next#");class sr{constructor({results:e=[]}={}){this.results=e}get conforms(){return!this.results.some(e=>e.severity.equals(wn.Info)||e.severity.equals(wn.Violation)||e.severity.equals(wn.Warning))}}function Qh(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 Nn{constructor({args:e={},factory:t,message:n=[],severity:o=wn.Violation}={}){this.severity=o,this.message=n.map(i=>t.literal(Qh(i.value,e),i.language||null))}}class ya{constructor({factory:e=ba}={}){this.factory=e}clone({factory:e}={}){return new ya({factory:e||this.factory})}validate(){return new sr}validateSimple(){return!0}}class pr extends ya{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 pr({datatypes:this.datatypes,factory:e||this.factory})}}class Xh{constructor({factory:e=ba,validations:t}={}){if(this.factory=e,this.validations=new cr,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 sr}validateSimple(e){const t=this.validations.get(e.datatype);return t?t.validateSimple(e):!0}}class je extends pr{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=gc.Debug);const i={pattern:this.factory.literal(n.toString()),this:e};return new Nn({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 Kh=/^([-+]?[0-9]+)$/;class Ve extends je{constructor(e=null,t=null,n,{factory:o}={}){super(Kh,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}={}){var t,n;return new Ve((t=this.minInclusive)==null?void 0:t.toString(),(n=this.maxInclusive)==null?void 0:n.toString(),this.datatypes,{factory:e||this.factory})}validate(e){const t=super.validate(e).results;if(!gc.Debug.equals(t[0].severity))return new sr({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 Nn({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 Nn({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 wa extends pr{constructor(e,t,{factory:n}={}){super({datatypes:t,factory:n}),this.values=new Set(e)}clone({factory:e}={}){return new wa(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 Nn({factory:this.factory,message:o}))}return new sr({results:t})}validateSimple(e){return this.values.has(e.value)}}const _e={xsd:tt("http://www.w3.org/2001/XMLSchema#")},Yh=new pr({datatypes:_e.xsd.anySimpleType}),Zh=new pr({datatypes:_e.xsd.anyAtomicType}),qn=/^([^\ud8ff-\udfff\ufffe-\uffff]*)$/,eb=/^((\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+))$/,vc=/^((\+|-)?([0-9]+(\.[0-9]*)?|\.[0-9]+)([Ee](\+|-)?[0-9]+)?|(\+|-)?INF|NaN)$/,xa=/^(-?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)))))$/,yc=/^(-?([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))?)$/,tb=/^((([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))?)$/,rb=/^(-?([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))?)$/,nb=/^(-?([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))?)$/,ob=/^(-?([1-9][0-9]{3,}|0[0-9]{3})(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ib=/^(--(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))?)$/,ab=/^(---(0[1-9]|[12][0-9]|3[01])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,sb=/^(--(0[1-9]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,lb=/^(([0-9a-fA-F]{2})*)$/,db=/^(((([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] ?= ?=))?)$/,cb=new je(qn,_e.xsd.string),ub=new wa(["1","true","0","false"],_e.xsd.boolean),pb=new je(eb,_e.xsd.decimal),fb=new je(vc,_e.xsd.float),hb=new je(vc,_e.xsd.double),bb=new je(xa,_e.xsd.duration),mb=new je(yc,_e.xsd.dateTime),gb=new je(tb,_e.xsd.time),vb=new je(rb,_e.xsd.date),yb=new je(nb,_e.xsd.gYearMonth),wb=new je(ob,_e.xsd.gYear),xb=new je(ib,_e.xsd.gMonthDay),_b=new je(ab,_e.xsd.gDay),kb=new je(sb,_e.xsd.gMonth),Sb=new je(lb,_e.xsd.hexBinary),Eb=new je(db,_e.xsd.base64Binary),Ib=new je(qn,_e.xsd.anyURI),wc=/^([^\u000d\u000a\u0009]*)$/,Rb=/^([^ ]+( [^ ]+)*)*$/,Nb=/^([a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*)$/,jb=/^([^DT]*)$/,Tb=/^([^YM]*[DT].*)$/,Ab=/^(.*(Z|(\+|-)[0-9][0-9]:[0-9][0-9]))$/,Lb=new je([qn,wc],_e.xsd.normalizedString),Ob=new je([qn,wc,Rb],_e.xsd.token),$b=new je(Nb,_e.xsd.language),Db=new Ve(null,null,_e.xsd.integer),Mb=new Ve(null,"0",_e.xsd.nonPositiveInteger),Cb=new Ve(null,"-1",_e.xsd.negativeInteger),Pb=new Ve("-9223372036854775808","9223372036854775807",_e.xsd.long),Bb=new Ve("-2147483648","2147483647",_e.xsd.int),qb=new Ve("-32768","32767",_e.xsd.short),Fb=new Ve("-128","127",_e.xsd.byte),zb=new Ve("0",null,_e.xsd.nonNegativeInteger),Ub=new Ve("0","18446744073709551615",_e.xsd.unsignedLong),Hb=new Ve("0","4294967295",_e.xsd.unsignedInt),Gb=new Ve("0","65535",_e.xsd.unsignedShort),Vb=new Ve("0","255",_e.xsd.unsignedByte),Wb=new Ve("1",null,_e.xsd.positiveInteger),Jb=new je([xa,jb],_e.xsd.yearMonthDuration),Qb=new je([xa,Tb],_e.xsd.dayTimeDuration),Xb=new je([yc,Ab],_e.xsd.dateTimeStamp),Kb=Object.freeze(Object.defineProperty({__proto__:null,anyAtomicType:Zh,anySimpleType:Yh,anyURI:Ib,base64Binary:Eb,boolean:ub,byte:Fb,date:vb,dateTime:mb,dateTimeStamp:Xb,dayTimeDuration:Qb,decimal:pb,double:hb,duration:bb,float:fb,gDay:_b,gMonth:kb,gMonthDay:xb,gYear:wb,gYearMonth:yb,hexBinary:Sb,int:Bb,integer:Db,language:$b,long:Pb,negativeInteger:Cb,nonNegativeInteger:zb,nonPositiveInteger:Mb,normalizedString:Lb,positiveInteger:Wb,short:qb,string:cb,time:gb,token:Ob,unsignedByte:Vb,unsignedInt:Hb,unsignedLong:Ub,unsignedShort:Gb,yearMonthDuration:Jb},Symbol.toStringTag,{value:"Module"}));class Yb extends Xh{constructor({factory:e}={}){super({factory:e,validations:{...Kb}})}}const Zb=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 em(r){const e=r.ptr.out([ne.class]).map(t=>Gi(t));return{generic:tm(e)}}function tm(r){return e=>{const t=new Ze(e.valueOrNode.out([Ut.type]).terms);for(const n of r){const o=[...t].some(i=>n.has(i));e.test(o,ne.ClassConstraintComponent,{value:e.valueOrNode})}}}function rm(r){const e=r.ptr.out([ne.datatype]).term,t=new Yb;return{generic:nm(e,t)}}function nm(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 om(r){const e=r.ptr.out([ne.nodeKind]).term,t=Zb.get(e);return{generic:im(e,t)}}function im(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 am=new cr([[ne.maxCount,Wf],[ne.minCount,Qf],[ne.and,eh],[ne.not,rh],[ne.or,oh],[ne.xone,ah],[ne.closed,lh],[ne.hasValue,ch],[ne.in,fh],[ne.disjoint,bh],[ne.equals,gh],[ne.lessThan,wh],[ne.lessThanOrEquals,_h],[ne.maxExclusive,Sh],[ne.maxInclusive,Ih],[ne.minExclusive,Nh],[ne.minInclusive,Th],[ne.node,Lh],[ne.property,$h],[ne.qualifiedValueShape,Mh],[ne.languageIn,Bh],[ne.maxLength,Fh],[ne.minLength,Uh],[ne.pattern,Gh],[ne.uniqueLang,Wh],[ne.class,em],[ne.datatype,rm],[ne.nodeKind,om]]);class sm{constructor(e,{factory:t,...n}){if(this.factory=t,this.options=n,this.registry=new Of(am),this.shapesPtr=new Rn({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 Vf(e,{validator:this}),this.shapes.set(e.term,t)),t}async validate(e,t){const n=new Rn({...e,factory:this.factory}),o=new ga({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 lm=class extends HTMLElement{constructor(e){super(),this.shape=null,this.attachShadow({mode:"open"}),this.form=document.createElement("form"),this.config=new xl(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 xl.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 wu())n.stylesheet&&t.push(n.stylesheet);if(this.shadowRoot.adoptedStyleSheets=t,this.shape=new Rt(e,this.config,this.config.attributes.valuesSubject?ke.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=>{var a;i!=null&&i.conforms?this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0})):(a=this.form.querySelector(":scope .invalid > .editor"))==null||a.focus()})}),this.form.appendChild(n)}this.config.attributes.valuesSubject&&this.removeFromDataGraph(ke.namedNode(this.config.attributes.valuesSubject)),await this.validate(!0)}}else if(this.config.store.countQuads(null,null,null,xn)>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 mu(n,e,this.config.prefixes)}toRDF(e=new ze){var t;return(t=this.shape)==null||t.toRDF(e),e}registerPlugin(e){yu(e),this.initialize()}setTheme(e){this.config.theme=e,this.initialize()}setSharedShapesGraph(e){Wp(e),this.initialize()}setClassInstanceProvider(e){this.config.classInstanceProvider=e,this.initialize()}async validate(e=!1){var t,n,o,i,a,s;for(const l of this.form.querySelectorAll(":scope .validation-error"))l.remove();for(const l of this.form.querySelectorAll(":scope .property-instance"))l.classList.remove("invalid"),(t=l.querySelector(":scope > .editor"))!=null&&t.value?l.classList.add("valid"):l.classList.remove("valid");this.config.store.deleteGraph(this.config.valuesGraphId||""),(n=this.shape)==null||n.toRDF(this.config.store),this.shape&&this.config.store.add(new jn(this.shape.shaclSubject,ke.namedNode(ve+"targetNode"),this.shape.nodeId,this.config.valuesGraphId));try{const l=this.config.store,d=await new sm(l,{details:!0,factory:ke}).validate({dataset:l});for(const f of d.results)if((i=(o=f.focusNode)==null?void 0:o.ptrs)!=null&&i.length)for(const m of f.focusNode.ptrs){const v=m._term;if((a=f.path)!=null&&a.length){const b=f.path[0].predicates[0];let g=this.form.querySelectorAll(`:scope shacl-node[data-node-id='${v.id}'] > shacl-property > .property-instance[data-path='${b.id}'] > .editor, :scope shacl-node[data-node-id='${v.id}'] > .shacl-group > shacl-property > .property-instance[data-path='${b.id}'] > .editor`);g.length===0&&(g=this.form.querySelectorAll(`:scope [data-node-id='${v.id}'] > * > [data-path='${b.id}']`));for(const x of g)if(x.classList.contains("editor")){if(!e||x.value){let _=x.parentElement;_.classList.add("invalid"),_.classList.remove("valid"),_.appendChild(this.createValidationErrorDisplay(f));do _.classList.contains("collapsible")&&_.classList.add("open"),_=_.parentElement;while(_)}}else e||(x.classList.add("invalid"),x.classList.remove("valid"),x.appendChild(this.createValidationErrorDisplay(f,"node")))}else e||(s=this.form.querySelector(`:scope [data-node-id='${v.id}']`))==null||s.prepend(this.createValidationErrorDisplay(f,"node"))}return d}catch(l){return console.error(l),!1}}createValidationErrorDisplay(e,t){var o,i;const n=document.createElement("span");if(n.classList.add("validation-error"),t&&n.classList.add(t),e)if(((o=e.message)==null?void 0:o.length)>0)for(const a of e.message)n.title+=a.value+`
346
- `;else n.title=(i=e.sourceConstraintComponent)==null?void 0:i.value;return n}findRootShaclShapeSubject(){let e=null;if(this.config.attributes.shapeSubject){if(e=ke.namedNode(this.config.attributes.shapeSubject),this.config.store.getQuads(e,Be,cn,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,st)>0){const t=ke.namedNode(this.config.attributes.valuesSubject),n=[...this.config.store.getQuads(t,Be,null,st),...this.config.store.getQuads(t,$i,null,st)];if(n.length===0){console.warn(`value subject '${this.config.attributes.valuesSubject}' has neither ${Be.id} nor ${$i.id} statement`);return}for(const o of n)if(this.config.store.getQuads(o.object,Be,cn,null).length>0){e=o.object;break}if(!e){const o=this.config.store.getQuads(null,Wr,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,cn,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,cn,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,st))this.config.store.delete(t),(t.object.termType==="NamedNode"||t.object.termType==="BlankNode")&&this.removeFromDataGraph(t.object)}};const dm=`.editor:not([type='checkbox']) { border: 1px solid #DDD; padding: 2px 4px; }
345
+ `}function Wp(){return""}function Zd(r){return"<"+r.value+">"}const Jp=/["\\\\\n\r]/,Qp=/["\\\\\n\r]/g,Xp={'"':'\\"',"\\":"\\\\","\n":"\\n","\r":"\\r"};function Kp(r){return Xp[r]}function Yp(r){return Jp.test(r)?r.replace(Qp,Kp):r}function Zp(r){const e=Yp(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 ef(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 tf(r){return"?"+r.value}function Je(r){if(!r)return null;if(r.termType==="BlankNode")return Gp(r);if(r.termType==="DefaultGraph")return Wp();if(r.termType==="Literal")return Zp(r);if(r.termType==="NamedNode")return Zd(r);if(r.termType==="Quad"||r.subject&&r.predicate&&r.object&&r.graph)return ef(r,Je);if(r.termType==="Variable")return tf(r);if(r[Symbol.iterator])return Vp(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 Ze{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 rf=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"),nf=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?rf:xl,t.direction):new mn(e,"",t||nf)}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,of={apply:(r,e,t)=>r(t[0]),get:(r,e)=>r(e)};function tt(r,{factory:e=ua}={}){const t=(n="")=>e.namedNode(`${r}${n.raw||n}`);return typeof Proxy>"u"?t:new Proxy(t,of)}tt("http://www.w3.org/2001/XMLSchema#");const at=tt("http://www.w3.org/1999/02/22-rdf-syntax-ns#");tt("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 g of i)for(const y of a)for(const b of s){const m={subject:f,predicate:g,object:y,graph:b};m[t]=e.term;const x=e.factory.quad(m.subject,m.predicate,m.object,m.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]||at.nil,a));for(let l=0;l<s.length;l++)e.dataset.add(e.factory.quad(s[l],at.first,n[l],a)),e.dataset.add(e.factory.quad(s[l],at.rest,s[l+1]||at.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 g of f)e.dataset.delete(g)}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);!at.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:g}={}){if(t==="add")return Re.add({ptr:e,start:o,end:i,subjects:a,predicates:s,objects:l,graphs:u,callback:g});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:!!(at.nil.equals(e.term)||Re.traverse({ptr:e,predicates:[at.first]}).length===1)}static list({ptr:e}){if(e.isList())return{*[Symbol.iterator](){for(;e&&!e.term.equals(at.nil);){const t=e.out([at.first]);if(t.length!==1)throw new Error(`Invalid list: rdf:first count not equals one on ${e.value}`);const n=e.out([at.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,g;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})];g&&(f=f.filter(y=>!g.has(y.term))),e=f,u=[...u,...f],g=new Ze(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 g of i)for(const y of a)for(const b of s){const m={subject:f,predicate:g,object:y,graph:b};m[t]=e.term;for(const x of e.dataset.match(m.subject,m.predicate,m.object,m.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 af(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 Ze(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=>af(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]})}}tt("http://www.w3.org/2002/07/owl#");const Ft=tt("http://www.w3.org/1999/02/22-rdf-syntax-ns#"),sf=tt("http://www.w3.org/2000/01/rdf-schema#"),ne=tt("http://www.w3.org/ns/shacl#"),Ci=tt("https://schemas.link/shacl-next#"),pa=tt("http://www.w3.org/2001/XMLSchema#");function lf(r){return r?`{${[...r.quads()].map(e=>Je(e)).join(" ")}}`:"{}"}function df(r){return r?`{${r.map(e=>lf(e)).join(" ")}}`:"{}"}var di,Il;function cf(){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 uf(){if(Rl)return ci;Rl=1;var r=cf(),e=/^\s+/;function t(n){return n&&n.slice(0,r(n)+1).replace(e,"")}return ci=t,ci}var ui,Nl;function pf(){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 ff(){if(jl)return pi;jl=1;var r=typeof Kt=="object"&&Kt&&Kt.Object===Object&&Kt;return pi=r,pi}var fi,Tl;function hf(){if(Tl)return fi;Tl=1;var r=ff(),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=hf(),e=r.Symbol;return hi=e,hi}var bi,Ll;function bf(){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 mf(){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 gf(){if($l)return gi;$l=1;var r=nc(),e=bf(),t=mf(),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 vf(){if(Dl)return vi;Dl=1;function r(e){return e!=null&&typeof e=="object"}return vi=r,vi}var yi,Ml;function yf(){if(Ml)return yi;Ml=1;var r=gf(),e=vf(),t="[object Symbol]";function n(o){return typeof o=="symbol"||e(o)&&r(o)==t}return yi=n,yi}var wi,Cl;function wf(){if(Cl)return wi;Cl=1;var r=uf(),e=pf(),t=yf(),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 g=i.test(u);return g||a.test(u)?s(u.slice(2),g?2:8):o.test(u)?n:+u}return wi=l,wi}var xi,Pl;function xf(){if(Pl)return xi;Pl=1;var r=wf(),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 _f(){if(Bl)return _i;Bl=1;var r=xf();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 kf(){if(ql)return ki;ql=1;var r=_f(),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 Sf(){if(Fl)return Si;Fl=1;var r=kf();function e(t){return r(2,t)}return Si=e,Si}var Ef=Sf();const nt=yc(Ef);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=nt(()=>!this.results.some(i=>i.severity.equals(ne.Info)||i.severity.equals(ne.Violation)||i.severity.equals(ne.Warning))),this._ptr=nt(()=>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([Ft.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 If(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 Rf=class{constructor({args:e={},constraintComponent:t,factory:n,focusNode:o,message:i=[],path:a,results:s=[],severity:l,shape:u,source:f=[],value:g,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=g,this.valuePaths=y,this._message=nt(()=>(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(If(b.value,e),b.language||null))))}get message(){return this._message()}build(e,{details:t}={}){e.addOut([Ft.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:g}={}){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=g}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)} - ${df(this.valuePaths)}`}result(e){const t=new Rf({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 Nf(){return{generic:jf()}}function jf(){return r=>{r.trace(Ci.TraversalConstraintComponent,{args:{},message:[r.factory.literal("Traversal")],value:r.valueOrNode})}}class Tf{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(Nf),[...o].map(i=>i(e)).filter(Boolean)}}var Lt={},Ot={},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 Af(){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,g,y){return new o.Quad(u,f,g,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 Lf(){return Xl||(Xl=1,function(r){var e=Ot&&Ot.__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=Ot&&Ot.__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(Af(),r),t(ic(),r),t(ac(),r),t(ha(),r),t(sc(),r),t(lc(),r)}(Ot)),Ot}var $t={},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 Of(){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 $f(){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 Df(){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 Mf(){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 Cf(){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=$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(Of(),r),t($f(),r),t(Df(),r),t(Mf(),r),t(Cf(),r)}($t)),$t}var Ei={},id;function Pf(){return id||(id=1,Object.defineProperty(Ei,"__esModule",{value:!0})),Ei}var ad;function Bf(){return ad||(ad=1,function(r){var e=Lt&&Lt.__createBinding||(Object.create?function(b,m,x,_){_===void 0&&(_=x);var k=Object.getOwnPropertyDescriptor(m,x);(!k||("get"in k?!m.__esModule:k.writable||k.configurable))&&(k={enumerable:!0,get:function(){return m[x]}}),Object.defineProperty(b,_,k)}:function(b,m,x,_){_===void 0&&(_=x),b[_]=m[x]}),t=Lt&&Lt.__exportStar||function(b,m){for(var x in b)x!=="default"&&!Object.prototype.hasOwnProperty.call(m,x)&&e(m,b,x)};Object.defineProperty(r,"__esModule",{value:!0}),r.fromRdf=l,r.toRdf=u,r.getTermRaw=f,r.getSupportedRdfDatatypes=g,r.getSupportedJavaScriptPrimitives=y;const n=Lf(),o=od(),i=or();t(od(),r),t(Pf(),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,m){return s.fromRdf(b,m)}function u(b,m){return m&&"namedNode"in m&&(m={dataFactory:m}),m=m||{},m&&!m.dataFactory&&(m.dataFactory=a),s.toRdf(b,m)}function f(b,m){return b.termType==="Literal"?l(b,m):b.value}function g(){return s.getSupportedRdfDatatypes()}function y(){return s.getSupportedJavaScriptPrimitives()}}(Lt)),Lt}var Jr=Bf();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 qf(r){return r.terms.length===0?null:r.ptrs[0].isList()?[...r.list()].map(e=>sd(e)):[sd(r)]}class Ff{constructor(e){this.shape=e,this._compiled=nt(()=>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 Ze(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 Ze,n=new kn({dataset:r.dataset,terms:r.terms}).execute({quantifier:"zeroOrMore",start:"object",end:"subject",predicates:[sf.subClassOf]});for(const o of n.ptrs)for(const{term:i}of o.nodes())e.add(i);return e}class zf{constructor(e){this.targetClass=new Ze([...Bi(e.hasOut([Ft.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([Ft.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 Ze(o.terms)])}}class Uf{constructor(e,{validator:t}){this.ptr=e,this.validator=t,this._deactivated=nt(()=>{const n=this.ptr.out([ne.deactivated]).term;return n&&Jr.fromRdf(n)}),this._message=nt(()=>this.ptr.out([ne.message]).terms),this._path=nt(()=>qf(this.ptr.out([ne.path]))),this._severity=nt(()=>this.ptr.out([ne.severity]).term),this._shapeValidator=nt(()=>new Ff(this)),this._sparql=nt(()=>this.ptr.out([ne.sparql])),this._targetResolver=nt(()=>new zf(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 Hf(r){const e=parseInt(r.ptr.out([ne.maxCount]).value);return{property:Gf(e)}}function Gf(r){return e=>{e.test(e.values.terms.length<=r,ne.MaxCountConstraintComponent,{args:{maxCount:r},message:[e.factory.literal("More than {$maxCount} values")]})}}function Vf(r){const e=parseInt(r.ptr.out([ne.minCount]).value);return{property:Wf(e)}}function Wf(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 Jf(r,e){for(const t of r)if(!await e(t))return!1;return!0}async function Qf(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 Xf(r,e){for(const t of r)if(await e(t))return!0;return!1}function Kf(r){const e=[...r.ptr.out([ne.and])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:Yf(e)}}function Yf(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 Zf(r){const e=r.validator.shape(r.ptr.out([ne.not]));return{generic:eh(e)}}function eh(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 th(r){const e=[...r.ptr.out([ne.or])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:rh(e)}}function rh(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 Xf(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 nh(r){const e=[...r.ptr.out([ne.xone])].flatMap(t=>[...t.list()]).map(t=>r.validator.shape(t));return{generic:oh(e)}}function oh(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 ih(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 Ze(t.filter(i=>!i.deactivated).map(i=>i.path[0].predicates[0])),o=new Ze([...r.ptr.out([ne.ignoredProperties]).list()||[]].map(i=>i.term));return{node:ah(n,o)}}function ah(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 sh(r){const e=r.ptr.out([ne.hasValue]).term;return{node:lh(e),property:dh(e)}}function lh(r){return e=>{e.test(r.equals(e.valueOrNode.term),ne.HasValueConstraintComponent,{args:{hasValue:r},message:[e.factory.literal("Value must be {$hasValue}")]})}}function dh(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 ch(r){const e=new Ze([...r.ptr.out([ne.in]).list()].map(t=>t.term));return{generic:uh(e)}}function uh(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 ph(r){const e=r.ptr.out([ne.disjoint]).term;return{generic:fh(e)}}function fh(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 hh(r){const e=r.ptr.out([ne.equals]).term;return{node:bh(e),property:mh(e)}}function bh(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 mh(r){return e=>{const t=new Ze(e.focusNode.out([r]).terms),n=new Ze(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 gh(r){const e=r.ptr.out([ne.lessThan]).term;return{property:vh(e)}}function vh(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 yh(r){const e=r.ptr.out([ne.lessThanOrEquals]).term;return{property:wh(e)}}function wh(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 xh(r){const e=r.ptr.out([ne.maxExclusive]).term;return{generic:_h(e)}}function _h(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 kh(r){const e=r.ptr.out([ne.maxInclusive]).term;return{generic:Sh(e)}}function Sh(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 Eh(r){const e=r.ptr.out([ne.minExclusive]).term;return{generic:Ih(e)}}function Ih(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 Rh(r){const e=r.ptr.out([ne.minInclusive]).term;return{generic:Nh(e)}}function Nh(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 jh(r){const e=[...r.ptr.out([ne.node])].map(t=>r.validator.shape(t));return{generic:Th(e)}}function Th(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 Ah(r){const e=[...r.ptr.out([ne.property])].map(t=>r.validator.shape(t));return{generic:Lh(e)}}function Lh(r){return async e=>{const t=e.create({focusNode:e.valueOrNode});for(const n of r)await n.validate(t)}}function Oh(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:$h(e,n,i,s)}}function $h(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 Qf(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 g=>(await g.validate(o.create({child:!0,focusNode:l}))).report);return i.push(f.flatMap(g=>g.results)),!f.every(g=>g.conforms)}else return!await Jf([...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 Dh(r,e){return e?e.slice(0,r.length)===r:!1}function Mh(r){const e=[...new Set([...r.ptr.out([ne.languageIn]).list()].map(t=>t.value))];return{generic:Ch(e)}}function Ch(r){return e=>{const t=r.some(n=>Dh(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 Ph(r){const e=parseInt(r.ptr.out([ne.maxLength]).value);return{generic:Bh(e)}}function Bh(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 qh(r){const e=parseInt(r.ptr.out([ne.minLength]).value);return{generic:Fh(e)}}function Fh(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 zh(r){const e=r.ptr.out([ne.pattern]).value,t=r.ptr.out([ne.flags]).value,n=new RegExp(e,t);return{generic:Uh(e,t,n)}}function Uh(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 Hh(r){const e=r.ptr.out([ne.uniqueLang]).term;return e.value==="true"&&pa.boolean.equals(e.datatype)?{property:Gh()}:null}function Gh(){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=tt("http://www.w3.org/ns/shacl#"),uc=tt("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 Vh(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(Vh(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 Wh{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 Jh=/^([-+]?[0-9]+)$/;class Ve extends je{constructor(e=null,t=null,n,{factory:o}={}){super(Jh,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:tt("http://www.w3.org/2001/XMLSchema#")},Qh=new cr({datatypes:_e.xsd.anySimpleType}),Xh=new cr({datatypes:_e.xsd.anyAtomicType}),Pn=/^([^\ud8ff-\udfff\ufffe-\uffff]*)$/,Kh=/^((\+|-)?([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))?)$/,Yh=/^((([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=/^(-?([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))?)$/,eb=/^(-?([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))?)$/,tb=/^(-?([1-9][0-9]{3,}|0[0-9]{3})(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,rb=/^(--(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))?)$/,nb=/^(---(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]|1[0-2])(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)$/,ib=/^(([0-9a-fA-F]{2})*)$/,ab=/^(((([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] ?= ?=))?)$/,sb=new je(Pn,_e.xsd.string),lb=new ma(["1","true","0","false"],_e.xsd.boolean),db=new je(Kh,_e.xsd.decimal),cb=new je(pc,_e.xsd.float),ub=new je(pc,_e.xsd.double),pb=new je(ga,_e.xsd.duration),fb=new je(fc,_e.xsd.dateTime),hb=new je(Yh,_e.xsd.time),bb=new je(Zh,_e.xsd.date),mb=new je(eb,_e.xsd.gYearMonth),gb=new je(tb,_e.xsd.gYear),vb=new je(rb,_e.xsd.gMonthDay),yb=new je(nb,_e.xsd.gDay),wb=new je(ob,_e.xsd.gMonth),xb=new je(ib,_e.xsd.hexBinary),_b=new je(ab,_e.xsd.base64Binary),kb=new je(Pn,_e.xsd.anyURI),hc=/^([^\u000d\u000a\u0009]*)$/,Sb=/^([^ ]+( [^ ]+)*)*$/,Eb=/^([a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*)$/,Ib=/^([^DT]*)$/,Rb=/^([^YM]*[DT].*)$/,Nb=/^(.*(Z|(\+|-)[0-9][0-9]:[0-9][0-9]))$/,jb=new je([Pn,hc],_e.xsd.normalizedString),Tb=new je([Pn,hc,Sb],_e.xsd.token),Ab=new je(Eb,_e.xsd.language),Lb=new Ve(null,null,_e.xsd.integer),Ob=new Ve(null,"0",_e.xsd.nonPositiveInteger),$b=new Ve(null,"-1",_e.xsd.negativeInteger),Db=new Ve("-9223372036854775808","9223372036854775807",_e.xsd.long),Mb=new Ve("-2147483648","2147483647",_e.xsd.int),Cb=new Ve("-32768","32767",_e.xsd.short),Pb=new Ve("-128","127",_e.xsd.byte),Bb=new Ve("0",null,_e.xsd.nonNegativeInteger),qb=new Ve("0","18446744073709551615",_e.xsd.unsignedLong),Fb=new Ve("0","4294967295",_e.xsd.unsignedInt),zb=new Ve("0","65535",_e.xsd.unsignedShort),Ub=new Ve("0","255",_e.xsd.unsignedByte),Hb=new Ve("1",null,_e.xsd.positiveInteger),Gb=new je([ga,Ib],_e.xsd.yearMonthDuration),Vb=new je([ga,Rb],_e.xsd.dayTimeDuration),Wb=new je([fc,Nb],_e.xsd.dateTimeStamp),Jb=Object.freeze(Object.defineProperty({__proto__:null,anyAtomicType:Xh,anySimpleType:Qh,anyURI:kb,base64Binary:_b,boolean:lb,byte:Pb,date:bb,dateTime:fb,dateTimeStamp:Wb,dayTimeDuration:Vb,decimal:db,double:ub,duration:pb,float:cb,gDay:yb,gMonth:wb,gMonthDay:vb,gYear:gb,gYearMonth:mb,hexBinary:xb,int:Mb,integer:Lb,language:Ab,long:Db,negativeInteger:$b,nonNegativeInteger:Bb,nonPositiveInteger:Ob,normalizedString:jb,positiveInteger:Hb,short:Cb,string:sb,time:hb,token:Tb,unsignedByte:Ub,unsignedInt:Fb,unsignedLong:qb,unsignedShort:zb,yearMonthDuration:Gb},Symbol.toStringTag,{value:"Module"}));class Qb extends Wh{constructor({factory:e}={}){super({factory:e,validations:{...Jb}})}}const Xb=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 Kb(r){const e=r.ptr.out([ne.class]).map(t=>Bi(t));return{generic:Yb(e)}}function Yb(r){return e=>{const t=new Ze(e.valueOrNode.out([Ft.type]).terms);for(const n of r){const o=[...t].some(i=>n.has(i));e.test(o,ne.ClassConstraintComponent,{value:e.valueOrNode})}}}function Zb(r){const e=r.ptr.out([ne.datatype]).term,t=new Qb;return{generic:em(e,t)}}function em(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 tm(r){const e=r.ptr.out([ne.nodeKind]).term,t=Xb.get(e);return{generic:rm(e,t)}}function rm(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 nm=new lr([[ne.maxCount,Hf],[ne.minCount,Vf],[ne.and,Kf],[ne.not,Zf],[ne.or,th],[ne.xone,nh],[ne.closed,ih],[ne.hasValue,sh],[ne.in,ch],[ne.disjoint,ph],[ne.equals,hh],[ne.lessThan,gh],[ne.lessThanOrEquals,yh],[ne.maxExclusive,xh],[ne.maxInclusive,kh],[ne.minExclusive,Eh],[ne.minInclusive,Rh],[ne.node,jh],[ne.property,Ah],[ne.qualifiedValueShape,Oh],[ne.languageIn,Mh],[ne.maxLength,Ph],[ne.minLength,qh],[ne.pattern,zh],[ne.uniqueLang,Hh],[ne.class,Kb],[ne.datatype,Zb],[ne.nodeKind,tm]]);class om{constructor(e,{factory:t,...n}){if(this.factory=t,this.options=n,this.registry=new Tf(nm),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([Ft.type],[ne.NodeShape]),...this.shapesPtr.hasOut([Ft.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 Uf(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 im=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 hu())n.stylesheet&&t.push(n.stylesheet);if(this.shadowRoot.adoptedStyleSheets=t,this.shape=new It(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=>{i?.conforms?this.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0})):this.form.querySelector(":scope .invalid > .editor")?.focus()})}),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 cu(n,e,this.config.prefixes)}toRDF(e=new ze){return this.shape?.toRDF(e),e}registerPlugin(e){fu(e),this.initialize()}setTheme(e){this.config.theme=e,this.initialize()}setSharedShapesGraph(e){Hp(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 om(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(`:scope shacl-node[data-node-id='${a.id}'] > shacl-property > .property-instance[data-path='${s.id}'] > .editor, :scope shacl-node[data-node-id='${a.id}'] > .shacl-group > shacl-property > .property-instance[data-path='${s.id}'] > .editor`);l.length===0&&(l=this.form.querySelectorAll(`:scope [data-node-id='${a.id}'] > * > [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.classList.contains("collapsible")&&f.classList.add("open"),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+`
346
+ `;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,lt)>0){const t=Se.namedNode(this.config.attributes.valuesSubject),n=[...this.config.store.getQuads(t,Be,null,lt),...this.config.store.getQuads(t,ji,null,lt)];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,lt))this.config.store.delete(t),(t.object.termType==="NamedNode"||t.object.termType==="BlankNode")&&this.removeFromDataGraph(t.object)}};const am=`.editor:not([type='checkbox']) { border: 1px solid #DDD; padding: 2px 4px; }
347
347
  .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; }
348
348
  .property-instance:not(:first-child) > label:not(.persistent) { visibility: hidden; max-height: 0; }
349
349
  .mode-edit .property-instance label { width: var(--label-width); }
350
- `;class cm extends hu{constructor(e){super(e||dm),this.idCtr=0}createDefaultTemplate(e,t,n,o,i){var d;o.id=`e${this.idCtr++}`,o.classList.add("editor"),i!=null&&i.datatype?o.shaclDatatype=i.datatype:t instanceof lt&&(o.shaclDatatype=t.datatype),(i==null?void 0:i.minCount)!==void 0&&(o.dataset.minCount=String(i.minCount)),i!=null&&i.class&&(o.dataset.class=i.class.value),i!=null&&i.nodeKind&&(o.dataset.nodeKind=i.nodeKind.value),(i!=null&&i.hasValue||i!=null&&i.readonly)&&(o.disabled=!0),o.value=(t==null?void 0:t.value)||((d=i==null?void 0:i.defaultValue)==null?void 0:d.value)||"";const a=document.createElement("label");a.htmlFor=o.id,a.innerText=e,i!=null&&i.description&&a.setAttribute("title",i.description.value);const s=i!=null&&i.description?i.description.value:i!=null&&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){var s,l;const i=document.createElement("input");((s=o.datatype)==null?void 0:s.value)===Pt+"dateTime"?(i.type="datetime-local",i.setAttribute("step","1")):i.type="date",i.classList.add("pr-0");const a=this.createDefaultTemplate(e,null,n,i,o);if(t)try{let d=new Date(t.value).toISOString();((l=o.datatype)==null?void 0:l.value)===Pt+"dateTime"?d=d.slice(0,19):d=d.slice(0,10),i.value=d}catch(d){console.error(d,t)}return a}createTextEditor(e,t,n,o){let i;return o.singleLine===!1?(i=document.createElement("textarea"),i.rows=5):(i=document.createElement("input"),i.type="text",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){var l;const i=this.createTextEditor(e,t,n,o),a=i.querySelector(":scope .editor");let s;if((l=o.languageIn)!=null&&l.length){s=document.createElement("select");for(const d of o.languageIn){const f=document.createElement("option");f.innerText=d.value,s.appendChild(f)}}else s=document.createElement("input"),s.maxLength=5,s.placeholder="lang?";return s.title="Language of the text",s.classList.add("lang-chooser"),s.addEventListener("change",d=>{d.stopPropagation(),a&&(a.dataset.lang=s.value,a.dispatchEvent(new Event("change",{bubbles:!0})))}),t instanceof lt&&(s.value=t.language),a.dataset.lang=s.value,a.after(s),i}createBooleanEditor(e,t,n,o){var s;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"),(s=a.querySelector(":scope label"))==null||s.classList.remove("required"),t instanceof lt&&(i.checked=t.value==="true"),a}createFileEditor(e,t,n,o){const i=document.createElement("input");return i.type="file",i.addEventListener("change",a=>{var s;if((s=i.files)!=null&&s.length){a.stopPropagation();const l=new FileReader;l.readAsDataURL(i.files[0]),l.onload=()=>{var d;i.binaryData=btoa(l.result),(d=i.parentElement)==null||d.dispatchEvent(new Event("change",{bubbles:!0}))}}else i.binaryData=void 0}),this.createDefaultTemplate(e,t,n,i,o)}createNumberEditor(e,t,n,o){var l;const i=document.createElement("input");i.type="number",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)),((l=o.datatype)==null?void 0:l.value)!==Pt+"integer"&&(i.step="0.1"),this.createDefaultTemplate(e,t,n,i,o)}createListEditor(e,t,n,o,i){const a=document.createElement("select"),s=this.createDefaultTemplate(e,null,n,a,i);let l=!0;for(const d of o){const f=document.createElement("option");let m="";if(typeof d.value=="string"?m=d.value:m=d.value.id,f.innerHTML=d.label?d.label:m,f.value=m,d.indent)for(let v=0;v<d.indent;v++)f.innerHTML="&#160;&#160;"+f.innerHTML;t&&t.value===m&&(f.selected=!0),m===""&&(l=!1),a.appendChild(f)}if(l){const d=document.createElement("option");d.value="",t||(d.selected=!0),a.prepend(d)}return t&&(a.value=t.value),s}createButton(e,t){const n=document.createElement("button");return n.type="button",n.innerHTML=e,n}}const um=`@charset "UTF-8";/*!
350
+ `;class sm extends lu{constructor(e){super(e||am),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 ot&&(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=document.createElement("input");o.datatype?.value===Ct+"dateTime"?(i.type="datetime-local",i.setAttribute("step","1")):i.type="date",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===Ct+"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=document.createElement("textarea"),i.rows=5):(i=document.createElement("input"),i.type="text",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.placeholder="lang?";return s.title="Language of the text",s.classList.add("lang-chooser"),s.addEventListener("change",l=>{l.stopPropagation(),a&&(a.dataset.lang=s.value,a.dispatchEvent(new Event("change",{bubbles:!0})))}),t instanceof ot&&(s.value=t.language),a.dataset.lang=s.value,a.after(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 ot&&(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=document.createElement("input");i.type="number",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!==Ct+"integer"&&(i.step="0.1"),this.createDefaultTemplate(e,t,n,i,o)}createListEditor(e,t,n,o,i){const a=new Me;a.dense=!0,a.clearable=!0,a.collapse=!0;const s=this.createDefaultTemplate(e,null,n,a,i),l=document.createElement("ul"),u=(f,g)=>{const y=document.createElement("li");let b="";if(typeof f.value=="string"?b=f.value:b=f.value.id,y.innerText=f.label?f.label:b,y.dataset.value=b,g.appendChild(y),f.children?.length){const m=document.createElement("ul");y.appendChild(m);for(const x of f.children)u(x,m)}};for(const f of o)u(f,l);return 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 lm=`@charset "UTF-8";/*!
351
351
  * Bootstrap v5.3.7 (https://getbootstrap.com/)
352
352
  * Copyright 2011-2025 The Bootstrap Authors
353
353
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
354
354
  */: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}}
355
- /*# sourceMappingURL=bootstrap.min.css.map */`,pm=`form.mode-edit { --label-width: 0em; }
355
+ /*# sourceMappingURL=bootstrap.min.css.map */`,dm=`form.mode-edit { --label-width: 0em; }
356
356
  .lang-chooser { right: 24px; font-size: 0.8em; }
357
357
  .property-instance[data-description]::after { content: attr(data-description); position: absolute; bottom: -12px; left: 13px; font-size: 12px; opacity: 0.7;}
358
358
  .property-instance { margin-bottom:14px; }
359
359
  .form-floating[data-description] { margin-bottom: 28px; }
360
- .remove-button { padding: 6px; }`;class fm extends cm{constructor(){super(um+`
361
- `+pm)}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==null||s.classList.add("form-label"),s!=null&&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 hm extends lm{constructor(){super(new fm)}}window.customElements.define("shacl-form",hm);export{xl as Config,Vp as Loader,_m as Plugin,hm as ShaclForm,pu as ShaclPropertyTemplate,hu as Theme,$n as findLabel,yu as registerPlugin,Wp as setSharedShapesGraph};
360
+ .remove-button { padding: 6px; }`;class cm extends sm{constructor(){super(lm+`
361
+ `+dm)}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 um extends im{constructor(){super(new cm)}}window.customElements.define("shacl-form",um);export{gl as Config,Up as Loader,ym as Plugin,um as ShaclForm,au as ShaclPropertyTemplate,lu as Theme,An as findLabel,fu as registerPlugin,Hp as setSharedShapesGraph};